Commit graph android_packages_modules_Co.../core/java/android
Message SHA1
Merge "Cut the dependency to APN constants" am: b3c04f00fc am: ec0f7aaaf3
am: d021be89fb

Change-Id: I71f8a944fcb8b3d8199296aef67251b50abe6172

Chalard Jean   authored and   android-build-merger   commited 2019-11-21 05:00:52 -08:00
7fa1f100d2
Cut the dependency to APN constants
With Telephony moving to Mainline these constants are not accessible
any more, and should not be made public. As they are only used by
a deprecated method that can only be called by apps with a target
SDK < M and only for one of the features it used to handle, copying
the constants until this method is completely removed is the simplest
way to go.

Test: FrameworksNetTests
Bug: 144454341
Change-Id: Iea18c8d2f2c8a40f04db9383d3f74b917267ba25

Chalard Jean   commited 2019-11-21 14:48:00 +09:00
1f42df12dc
Merge "Use TelephonyManager instead of ITelephony Binder" am: 33046223a2 am: eb1e692b65
am: 21f23c28dc

Change-Id: I52c56a08092297b45b57f37f258f38ef5d93b393

Meng Wang   authored and   android-build-merger   commited 2019-11-20 20:59:54 -08:00
e9adcc943e
Merge "Use TelephonyManager instead of ITelephony Binder"
Meng Wang   authored and   Gerrit Code Review   commited 2019-11-21 04:36:10 +00:00
33046223a2
Use TelephonyManager instead of ITelephony Binder
Bug: 140908357
Test: make
Change-Id: If3be915329cc27c560af3fd71a903984a626aca8

Meng Wang   commited 2019-11-20 10:05:33 -08:00
91311c0033
Merge "Add @UnsupportedAppUsage annotations for greylist."
Artur Satayev   authored and   Android (Google) Code Review   commited 2019-11-19 15:05:51 +00:00
fe00410093
Add @UnsupportedAppUsage annotations for greylist.
go/cleanup-greylist-txt

These have already been greylisted, however due to bugs/omissions in the tooling have been kept in go/greylist-txt instead of being annotated in the code.

This is partial merge of aosp/Id6c1f5e403a0e66edb1102ee45f3bf19f244fb09. Telephony greylist cleanup has been done separately. Note that annotations outside of frameworks/base/ have been merged from AOSP.

Bug: 137350495
Test: m
Exempt-From-Owner-Approval: merge
Change-Id: I015c466e8b69cc0fed5e9d394ba865aad11d8ba6

Artur Satayev   commited 2019-11-19 15:05:35 +00:00
fc03a99f74
Merge "StaticIpConfiguration: Couple of minor fixes" am: bf78f3fcc0 am: 3c28bfe9d4
am: 45fe413537

Change-Id: I66a1e125c1ecfa456ae7e83153dfc02eb7d7d3b0

Roshan Pius   authored and   android-build-merger   commited 2019-11-18 07:17:43 -08:00
7f49645689
Merge "StaticIpConfiguration: Couple of minor fixes"
Roshan Pius   authored and   Gerrit Code Review   commited 2019-11-18 15:05:31 +00:00
bf78f3fcc0
Merge "Remove usage of Telephonymanager getDefault() and from() hidden APIs" am: 73e22ad21d am: c9c264b861
am: f1b55ba4af

Change-Id: Ief1f090f3664d583565f291c89357bfbac58fe17

Jayachandran Chinnakkannu   authored and   android-build-merger   commited 2019-11-18 01:09:40 -08:00
0072e72ac1
Remove usage of Telephonymanager getDefault() and from() hidden APIs
This CL replaces with getSystemService(TelephonyManager.class)

Bug: 140768340
Test: atest frameworks/base/tests/net
Change-Id: I0f14cc5440fa85c81ab90f3199e9e91c1b00f5e1

Jayachandran C   commited 2019-11-15 19:26:33 -08:00
4022aa3829
StaticIpConfiguration: Couple of minor fixes
a) Ensure the Builder.build() does not crash if setDnsServers() is not
invoked.
b) Add a checkNotNull on setDnsServers() since it is marked @NonNull.

Bug: 144487020
Test: Compiles
Change-Id: I2b9f990efa0583c0f067c25e23d8c944ffbdf6a5
(cherry-picked from d0348339c50eeae0fe137c62476f6a01542f4163)

Roshan Pius   commited 2019-11-14 18:13:26 -08:00
d4ec409242
Add @UnsupportedAppUsage to test apis that are known to be used by apps.
go/testapi-enforcement

Bug: 133832325
Test: m
Change-Id: Ifc8db120640a1554dcbf1722e61e09c7ddc65dd6
Merged-In: Ifc8db120640a1554dcbf1722e61e09c7ddc65dd6

Artur Satayev   authored and   satayev   commited 2019-11-13 15:05:56 +00:00
4bac8c7057
Add @UnsupportedAppUsage to test apis that are known to be used by apps.
go/testapi-enforcement

Bug: 133832325
Test: m
Change-Id: Ifc8db120640a1554dcbf1722e61e09c7ddc65dd6
Merged-In: Ifc8db120640a1554dcbf1722e61e09c7ddc65dd6

Artur Satayev   commited 2019-11-13 12:58:29 +00:00
5781ab39c7
Add @UnsupportedAppUsage annotations for greylist.
go/cleanup-greylist-txt

These have already been greylisted, however due to bugs/omissions in the tooling have been kept in go/greylist-txt instead of being annotated in the code.

Bug: 137350495
Test: m

Change-Id: Id6c1f5e403a0e66edb1102ee45f3bf19f244fb09
Merged-In: Id6c1f5e403a0e66edb1102ee45f3bf19f244fb09

Artur Satayev   commited 2019-11-08 16:17:13 +00:00
198d650573
Add @UnsupportedAppUsage annotations for max-p.
See go/UnsupportedAppUsage for more details.

These have already been greylisted, however due to bugs/omissions in the tooling have been kept in go/greylist-txt instead of being annotated in the code.

Bug: 137350495
Test: m
Change-Id: I5aa29a49b193db47aaee4d3a756c17f48cc9f0b1
Merged-In: I5aa29a49b193db47aaee4d3a756c17f48cc9f0b1

Artur Satayev   commited 2019-11-08 16:17:13 +00:00
28a9741626
Merge "[NS01] Create NetworkScore" am: 0dba9c87f1 am: 6ee212b303
am: 15731e9d75

Change-Id: Ic093e655b1ff7e44db57d7add6b0818a06700962

Lucas Lin   authored and   android-build-merger   commited 2019-11-07 17:05:20 -08:00
d2e1439018
[NS01] Create NetworkScore
It's the first patch for refounding network selection. The new
network selection will try to compare the networks by more
factors, and will try to choose the best network after doing
the evaluation of trade-off.
Create the object that will serve to represent network quality
for more comprehensive ranking.

Bug: 143676287
Test: 1. Build pass.
      2. atest FrameworksNetTests

Change-Id: I4b6071d14365aa84d06be9802516fedf527e70f7

lucaslin   commited 2019-11-07 16:47:56 +08:00
fe4c578d6e
Merge "Better notification to user when DNS-over-TLS is broken" am: 7317869f48 am: 52b44b20c4 am: a7f8602ea3
am: 9941806049

Change-Id: Iffbdc181d8249f26b3c370474583673aaa1c5032

Lucas Lin   authored and   android-build-merger   commited 2019-10-23 03:27:05 -07:00
1b284f0674
Merge "Better notification to user when DNS-over-TLS is broken"
Lucas Lin   authored and   Gerrit Code Review   commited 2019-10-23 09:20:09 +00:00
7317869f48
Better notification to user when DNS-over-TLS is broken
Provide a specifc notification to let users know that device
has no internet is because it really doesn't have internet access
or it's caused by private DNS resolution failed.

Bug: 113242081
Test: atest FrameworksNetTests
Change-Id: I710c88a4742f5fd56c39fc797d7fa3ad36dba553

lucaslin   commited 2019-10-22 18:27:33 +08:00
8cf57f5cd5
Merge "p2p: mirgrate p2p into tethering modes" am: 05727ec32d am: 5cec9c17ec am: 9940357dec
am: 1b4613034a

Change-Id: I069022ca21c0a09ac2eab1b97436223df99a3b1b

Jimmy Chen   authored and   android-build-merger   commited 2019-10-17 23:25:44 -07:00
9d04479f2e
Merge "p2p: mirgrate p2p into tethering modes"
Jimmy Chen   authored and   Gerrit Code Review   commited 2019-10-18 05:42:31 +00:00
05727ec32d
Merge "Expose MacAddress methods to public API" am: c54645390f am: 623f385dc8 am: d3ace8c221
am: d60dd6fc63

Change-Id: Ie117595096175ddb0affaa36d5f287a533e99eb5

Aaron Huang   authored and   android-build-merger   commited 2019-10-17 21:20:51 -07:00
4fa3e60988
Expose MacAddress methods to public API
To support mainline modules, adding the methods which
are used by wifi.

Bug: 139268426
Bug: 135998869
Bug: 138306002
Test: atest android.net.cts
      atest android.net.wifi.cts
      atest FrameworksNetTests
      atest NetworkStackTests
      ./frameworks/opt/net/wifi/tests/wifitests/runtests.sh

Change-Id: I49856863c15b6b3b59aa867a77b0f137003149ef

Aaron Huang   commited 2019-10-15 17:33:05 +08:00
fd39026749
Merge "Improve documentation for NetworkCallbacks." am: f34bdd0f74 am: a6916097ee am: ef2b0b9f0a
am: c6433e73c6

Change-Id: I9a6eb4841c29e6e6944e3bb6eeb036f8026db4cf

Chalard Jean   authored and   android-build-merger   commited 2019-10-09 23:34:18 -07:00
46d230b03e
Merge "Improve documentation for NetworkCallbacks."
Chalard Jean   authored and   Gerrit Code Review   commited 2019-10-10 05:56:59 +00:00
f34bdd0f74
Improve documentation for NetworkCallbacks.
Bug: 139570489
Test: m doc-comment-check-docs
Change-Id: I9e13057b7e46908863156986429ff2ce93d4be78

Chalard Jean   commited 2019-10-09 18:33:09 +09:00
7f3a8746c3
resolve merge conflicts of 395a0a5e69 to master
Test: I solemnly swear I tested this conflict resolution.
Bug: None
Change-Id: Ia9db1400207d9196012362c480ede059e94184af

Valentin Iftime   commited 2019-10-08 22:21:44 +02:00
e942babfef
API to detect which network interfaces support wake-on-lan
Add a new method in LinkProperties, isWakeOnLanEnabled() which returns
true if network interface is defined in config_wakeonlan_enabled_interfaces
string-array (config.xml)

Bug: 132705025
Test: atest LinkPropertiesTest & atest ConnectivityServiceTest
Change-Id: I3f7803aafd2f8eaf8aa18419b21339e15d4b7a0b

Valentin Iftime   commited 2019-10-08 13:03:30 +02:00
a039e57ead
p2p: mirgrate p2p into tethering modes
Bug: 137602441
Bug: 139783330
Test: atest FrameworksNetTests
Test: atest FrameworksWifiTests
Test: CtsVerifier - Wi-Fi Direct
Test: Enable hotspot when P2P GO is running
      * P2P GO is terminated
      * hotspot is running
Test: Enable P2P GO when hotspot is running
      * hotspot is intact
      * P2P GO could not be launched
Test: Verify P2P functions with legacy WifiP2pService

Change-Id: Icb2e2b106ae52b19af29b7a1ebc55d3cdf80db9c

Jimmy Chen   commited 2019-10-08 14:37:19 +08:00
87db154b42
Merge "Followup to CL 1103896" am: e4713e7f18 am: f59fb89406 am: 08eb639ef6
am: c204fb1f40

Change-Id: I9aec9d7481722e2533200dcab9bc9066142496a1

Oscar Shu   authored and   android-build-merger   commited 2019-09-24 16:06:25 -07:00
089bfd550d
Merge "Followup to CL 1103896"
Oscar Shu   authored and   Gerrit Code Review   commited 2019-09-24 22:06:27 +00:00
e4713e7f18
Followup to CL 1103896
Optimizes the logic that ensures the default randomized MAC is not
returned.

Bug: 137796328
Test: atest MacAddressTest
Change-Id: Ie95d7a020bfac8850b8a67e4d396de77db22e1db

xshu   commited 2019-09-20 16:56:54 -07:00
6aa877983e
Merge "Add missing nullability annotations." into stage-aosp-master
Aurimas Liutikas   authored and   Android (Google) Code Review   commited 2019-08-30 15:19:45 +00:00
7958bb6ac8
Merge "Add missing nullability annotations."
Aurimas Liutikas   authored and   Android (Google) Code Review   commited 2019-08-30 15:14:37 +00:00
772ad4867f
Merge "Run callbacks on ConnectivityService thread" am: 1ef61592b8 am: ab507d4e34 am: bb5e40bc49 am: 49d314a21d
am: 6fb7791309

Change-Id: I382db90c318495244a42a2d4af6e5ebf54f05750

Remi NGUYEN VAN   authored and   android-build-merger   commited 2019-08-30 04:17:08 -07:00
b3899a384d
Merge "Run callbacks on ConnectivityService thread"
am: 1ef61592b8

Change-Id: I7a8d035ec7453c5351eb2646c631c19964cb0f88

Remi NGUYEN VAN   authored and   android-build-merger   commited 2019-08-30 03:36:26 -07:00
ab507d4e34
Add missing nullability annotations.
To prepare for enabling MissingNullability Metalava check this CL
works on adding missing nullability issues that metalava flags if
we tell it to flag new things since API 29.

This is not a complete CL, mostly addresses public api and
toString/equals for @SystemApi

Exempt-From-Owner-Approval: Large scale nullability clean up
Bug: 124515653
Test: make -j checkapi
Change-Id: I109260842cfc25f06e40694997fcbb4afa02c867

Aurimas Liutikas   commited 2019-08-29 17:15:44 -07:00
449a5f69c7
Add missing nullability annotations.
To prepare for enabling MissingNullability Metalava check this CL
works on adding missing nullability issues that metalava flags if
we tell it to flag new things since API 29.

This is not a complete CL, mostly addresses public api and
toString/equals for @SystemApi

Exempt-From-Owner-Approval: Large scale nullability clean up
Bug: 124515653
Test: make -j checkapi
Merged-In: I109260842cfc25f06e40694997fcbb4afa02c867
Change-Id: I109260842cfc25f06e40694997fcbb4afa02c867

Aurimas Liutikas   commited 2019-08-30 00:14:44 +00:00
9242b6de9c
Run callbacks on ConnectivityService thread
Run MultinetworkPolicyTracker and DataConnectionStats callbacks on the
ConnectivityService handler thread.

Previously the callbacks would be using the SystemServer foreground
thread (Looper.myLooper()), or the broadcast thread for the
MultinetworkPolicyTracker BroadcastReceiver. This is error-prone, can
cause threading issues and makes it difficult to test the components.

Test: atest FrameworksNetTests
Change-Id: I189213dd363004abed294659165bf5430d153bba

Remi NGUYEN VAN   commited 2019-08-28 10:10:04 +09:00
6f7ef3f258
Merge "avoid generating reserved local MACs" am: da8955aa2a am: 0ea945e919 am: 4f05f46f13 am: f30d01c91b
am: 83de8f4348

Change-Id: If0fdc7bd46f711714986440a9a905f2ccb154830

Oscar Shu   authored and   android-build-merger   commited 2019-08-24 01:33:53 -07:00
e686dcfd8f
Merge "avoid generating reserved local MACs"
am: da8955aa2a

Change-Id: Ia6d0eb0c5e8101d9c4b4bc63de79157f7d1c2284

Oscar Shu   authored and   android-build-merger   commited 2019-08-23 02:24:15 -07:00
0ea945e919
Merge "avoid generating reserved local MACs"
Oscar Shu   authored and   Gerrit Code Review   commited 2019-08-21 17:45:00 +00:00
da8955aa2a
avoid generating reserved local MACs
Avoid generating WifiInfo.DEFAULT_MAC_ADDRESS as a randomized MAC
address since it's being used for another purpose.

Bug: 137796328
Test: atest MacAddressTest
Change-Id: Ia7beef0d0af5d7b39845e662cd343d81aef97702

xshu   commited 2019-08-16 10:20:22 -07:00
f6ff8b31f0
Merge "Get resource based on subId for multi-SIM" am: 55752cf8d4 am: a784eb71ef am: 2b7f2fbb5b am: 879358bcf2
am: 953f3a62ce

Change-Id: Ief32e4d6376062ba6e86472e39d84681f562980a

Chiachang Wang   authored and   android-build-merger   commited 2019-08-14 05:21:30 -07:00
a3e4f5c790
Merge "Get resource based on subId for multi-SIM"
am: 55752cf8d4

Change-Id: I020c2546fa4432d05cf27b20fdb1943508aac671

Chiachang Wang   authored and   android-build-merger   commited 2019-08-14 04:30:57 -07:00
a784eb71ef
Get resource based on subId for multi-SIM
The resource loading is done based on the last SIM to come up
which is not a deterministic design. Thus, update the way to get
the resource based on the subId.

Test: atest FrameworksNetTests
Test: manually test with avoid bad wifi feature supported sim
Bug: 138956509
Change-Id: Ib5b085d97103889600773d269e03b939c29ca47d

Chiachang Wang   commited 2019-08-14 13:56:37 +08:00
113d65976b
Add @UnsupportedAppUsage annotations for max-p.
See go/UnsupportedAppUsage for more details.

These have already been greylisted, however due to bugs/omissions in the tooling have been kept in go/greylist-txt instead of being annotated in the code.

Exempted-From-Owner-Approval: Mechanical changes to the codebase
which have been approved by Android API council and announced on
android-eng@

Bug: 137350495
Test: m
Change-Id: I5aa29a49b193db47aaee4d3a756c17f48cc9f0b1

Artur Satayev   commited 2019-08-01 19:46:29 +01:00
4510ea5101
Return NonNull and other imports
Change-Id: Ia38b13209b45d8228ac02f06663e4dc12be9de60

Fedor Kudasov   commited 2019-07-09 14:19:04 +00:00
12ab343b65