summaryrefslogtreecommitdiff
path: root/core/java
AgeCommit message (Collapse)Author
2021-03-23ScanFilter.setDeviceAddress: Should send deviceAddress instead of ↵Chen Chen
mDeviceAddress to the next level Bug: 183409081 Test: build and run Change-Id: I2d25d21b0f143fc7362679e0094455c9132fda9d
2021-03-23Merge changes from topic "vcn-status-changed"Cody Kesting
* changes: Rename VcnStatusCallback#onVcnStatusChanged. Reevaluate VcnGatewayConnections on receiving new configs.
2021-03-23Merge "Expose ServiceState#getDataNetworkType in telephony provider"Rambo Wang
2021-03-22Expose ServiceState#getDataNetworkType in telephony providerRambo Wang
Data network type is key information to make the switching decision. Exporting to telephony provider can let application get the information without location permission. Bug: 182601774 Test: atest com.android.phone.ServiceStateProviderTest Change-Id: I9753eee2619baf6b1627835624444c0e4f0cd410
2021-03-22Rename VcnStatusCallback#onVcnStatusChanged.Cody Kesting
Per API Council feedback, VcnStatusCallback#onVcnStatusChanged is renamed to VcnStatusCallback#onStatusChanged. Bug: 182345902 Test: atest FrameworksVcnTests CtsVcnTestCases Change-Id: Ie0277c5f053e1802aa98240618a9d9e8aa6d9d09
2021-03-22Fix the case where blocked reasons for dataSaver are not considered.Sudheer Shanka
Fixes: 183267528 Test: atest ./tests/cts/hostside/src/com/android/cts/net/HostsideNetworkCallbackTests.java Merged-In: I3c90c3849261df4c289c398f22661f91f7cf4994 Change-Id: Iba3ff804a74fb482847dd999c2854405b21affd2
2021-03-21Merge "Add new @SystemApi for specifying AddressType and IRK"Treehugger Robot
2021-03-21Merge "The phone didn't reload the allowed Network Type"SongFerng Wang
2021-03-20Add new @SystemApi for specifying AddressType and IRKMartin Brabham
Bug: 178234318 Test: compiles and runs Tag: #feature Change-Id: Ib67e681af01260df98602003b2aca47963494c6f
2021-03-20Expose isUidNetworkingBlocked and isUidRestrictedOnMeteredNetworksLorenzo Colitti
These methods are used by ConnectivityService for synchronous calls such as getActiveNetworkInfo, isActiveNetworkMetered, etc. These calls must call into NPMS and acquire the NPMS lock because they are synchronous. They cannot use the stale copy of the policy rules maintained by ConnectivityService, because if they did, races like the following could occur: 1. App gets broadcast/callback/.... 2. App calls isActiveNetworkMetered or other synchronous method. 3. ConnectivityService's copy of the rules is out of date, so the call returns stale information that the UID is still blocked. 4. The app thinks it has no networking, and does not call the synchronous method again until some other event occurs, potentially much later. Bug: 176289731 Test: passes existing tests in ConnectivityServiceTest Change-Id: I4ad0ca60431fe3702be85332530b6e93728d55e7 Merged-In: I4ad0ca60431fe3702be85332530b6e93728d55e7
2021-03-20Add multipath preference, background status APIRemi NGUYEN VAN
Add APIs for getMultipathPreference and getRestrictBackgroundStatus. Both are used by Connectivity to back the external ConnectivityManager.getRestrictBackgroundStatus, and ConnectivityManager.getMultipathPreference APIs. Test: atest CtsNetTestCases atest ConnectivityServiceTests atest NetworkPolicyManagerServiceTest Bug: 176289731 Change-Id: I8a03162b2f6691086bb64e75ffd354cdfca7f86a Merged-In: I8a03162b2f6691086bb64e75ffd354cdfca7f86a
2021-03-20Merge changes from topic "app_hibernation_permission"Kevin Han
* changes: Add API to get hibernating packages Add MANAGE_APP_HIBERNATION permission
2021-03-20Merge "Le Scan: Add ambient discovery mode (1/2)"Chienyuan Huang
2021-03-19Merge changes from topic "bluetooth_oob_api"Treehugger Robot
* changes: Fix CTS Failure Bluetooth: Modify and append to the Out-of-Band API
2021-03-19Merge "OWNERS for a few Voice Interaction files."Jeff Sharkey
2021-03-19Merge "Camera: Fix a removal-while-iterate bug"Shuzhen Wang
2021-03-19Add API to get hibernating packagesKevin Han
Add API to AppHibernationService to get hibernating packages so Settings can access this information. Bug: 175829330 Test: atest AppHibernationServiceTest Change-Id: Icd186807c19ece55a21fc4d240d2f0132951af82
2021-03-19Add MANAGE_APP_HIBERNATION permissionKevin Han
Add permission for app hibernation state manipulation. Bug: 183058954 Test: run hibernation job and confirm the API works for PermissionController (cherrypick of ag/13909632) Merged-In: Id57ee57f49710d0b8a49a4ec561800db43089f87 Change-Id: Id57ee57f49710d0b8a49a4ec561800db43089f87
2021-03-19Merge "Keystore 2.0: Enable by default."Treehugger Robot
2021-03-19The phone didn't reload the allowed Network TypeSongFerngWang
Reload the allowed Network after device insert SIM card. Change the behavior of notifyAllowedNetworkTypesChanged. Log print String representation of the allowed network types. Bug: 180903931 Bug: 179814490 Test: atest cts/tests/tests/telephony/current/src/android/telephony/cts/TelephonyManagerTest.java#testSetAllowedNetworkTypesForReason_moreReason atest cts/tests/tests/telephony/current/src/android/telephony/cts/TelephonyManagerTest.java#testSetAllowedNetworkTypesForReason atest android.telephony.cts.TelephonyCallbackTest Change-Id: Icfffea3c74ecf6938455d841da9d6175f6aa07de Merged-In: Icfffea3c74ecf6938455d841da9d6175f6aa07de
2021-03-19Merge "Implementation of "Enable 2G" for Settings."SongFerng Wang
2021-03-19Merge "Reland "Add an API to listen for changes in network blocked status of ↵Treehugger Robot
an uid.""
2021-03-19Merge "Add TEST_NETWORK_SERVICE to module API"Remi NGUYEN VAN
2021-03-19Add TEST_NETWORK_SERVICE to module APIRemi NGUYEN VAN
TestNetworkManager is being unbundled; the TEST_NETWORK_SERVICE constant is necessary for the module to register the manager with registerContextAwareService. Bug: 171540887 Test: m Change-Id: I0690251ddfcdaa8a34830e110b75869a370de389 Merged-In: I0690251ddfcdaa8a34830e110b75869a370de389
2021-03-18Merge "Move network selection utils to Connectivity"Remi NGUYEN VAN
2021-03-18Merge "Add the LCE system API"Kai Shi
2021-03-18Reland "Add an API to listen for changes in network blocked status of an uid."Sudheer Shanka
This reverts commit 8623f2b3ca11bcc228fdad7169f609d26b61a1f8. Reason for revert: The issue causing the build breakage has been fixed Change-Id: I03fa406551b51aaa4d4d9255cf1a53f9b4bcc1bd Merged-In: Ib9949b8619c6b148f73630b314c4113d76c31ec1
2021-03-18Merge "Hide required underlying caps APIs"Benedict Wong
2021-03-18Merge "Revert "Add an API to listen for changes in network blocked status of ↵Anthony Stange
an uid.""
2021-03-18Revert "Add an API to listen for changes in network blocked status of an uid."Anthony Stange
This reverts commit 7dc302d612565f210d6bf4dd6b83d90b823a7b3c. Reason for revert: Breaking build - b/183106805 Bug: 183106805 Merged-In: Ib9949b8619c6b148f73630b314c4113d76c31ec1 Change-Id: I9789ed81e630f49c71034b6917188983bd11d774
2021-03-18Merge "Add an API to listen for changes in network blocked status of an uid."Sudheer Shanka
2021-03-18Move network selection utils to ConnectivityRemi NGUYEN VAN
NetworkScore, IOnCompleteListener should be in the Connectivity scope, as they are supporting classes for the ConnectivityManager APIs. Bug: 181512874 Test: m Change-Id: I6dc40a80e0bf5f86f5625b657b01eba969d41fcf
2021-03-18Add an API to listen for changes in network blocked status of an uid.Sudheer Shanka
Given that ConnectivityService is moving to a mainline module, we need a @SystemApi for it to listen for changes in blocked status of an uid. So, we decided to create a new API for this which can provide ConnectivityService with more info about why an uid is blocked (which will be useful for adding a new similar onBlockedStatusChanged callback in CM.NetworkCallback) and also captures data saver restriction without having out to track it separately. Currently, NPMS does some redundant computations because we are calculating both uid rules and blocked reasons separately. In a follow-up change, we will compute uid rules using blocked reasons and later possibly remove that onUidRulesChanged callback. Bug: 176289731 Test: atest ./tests/cts/hostside/src/com/android/cts/net/HostsideRestrictBackgroundNetworkTests.java Test: atest ./tests/net/java/com/android/server/ConnectivityServiceTest.java Test: atest ./services/tests/servicestests/src/com/android/server/net/NetworkPolicyManagerServiceTest.java Change-Id: Ib9949b8619c6b148f73630b314c4113d76c31ec1 Merged-In: Ib9949b8619c6b148f73630b314c4113d76c31ec1
2021-03-18Add a VpnManager.TYPE_VPN_OEM.Lorenzo Colitti
This needed for OEMs that have VPN types not supported by AOSP. Bug: 171872481 Test: new test coverage in VpnTransportInfoTest Change-Id: Ic7529bef7f12d2c74a3be5b1a4a2d54fb0d0bfac
2021-03-18OWNERS for a few Voice Interaction files.Ahaan Ugale
Change-Id: I8855c9bd420e0c1708ca4443e1acac038ec0082f
2021-03-17Add the LCE system APIKai Shi
Add the link capacity estimate system API. Remove the system API of getCarrierBandwidth() and CarrierBandwidth as they are replaced by the new LCE system API in PhoneStateListener. Bug: 180434672 Bug: 176814680 Test: manual test of the new LCE system API in LinkBandwidthEstimator Test: atest -c PhoneStateListenerTest Merged-In: I5899acf02006a164e31f9b82aeaa7974dd6d2869 Change-Id: I5899acf02006a164e31f9b82aeaa7974dd6d2869
2021-03-17Camera: Fix a removal-while-iterate bugShuzhen Wang
The onStatusChangedLocked removes entries from the ArrayMap. Needs to iterate in the reverse order. Test: Vendor testing Bug: 182876702 Change-Id: I5891f24a25c83f096d23ca5675126889a7d2a61c
2021-03-17Merge "Expose VPN_UID"Jeff Sharkey
2021-03-17Merge "Add support for a hw_timeout_multiplier system property."Peter Collingbourne
2021-03-17Hide required underlying caps APIsBenedict Wong
VCN underlying network capabilities should be transport-dependent in order to allow using anything other than the INTERNET capability for VCN types that support wifi offload. Specifically, if underlying network capabilities are not transport-dependent, and Wifi only ever supports the INTERNET capability, the VCN is unable to utilize wifi offload together with requiring NET_CAPABILITY_IMS or NET_CAPABILITY_CBS, since the IMS or CBS capability would be required for both cellular and wifi underlying networks. Until such time as a per-transport capability set is allowed, hide the exposedCapability pieces, and document that all underlying networks MUST have INTERNET capability in order to be used. Bug: 182219992 Test: atest FrameworksVcnTests Test: atest CtsVcnTestCases Change-Id: I50d7f1be42e0e001f1413a3d5fe8aa4b7afec223
2021-03-17Keystore 2.0: Enable by default.Janis Danisevskis
Keystore 2.0 is to replace Keystore. This patch removes checking the keystore2 enable property and installs the Keystore 2.0 SPI by default. Bug: 171563717 Test: N/A Merged-In: I13a3db8ca736cceb06e864457046ff9ca641322d Change-Id: I13a3db8ca736cceb06e864457046ff9ca641322d
2021-03-17Implementation of "Enable 2G" for Settings.Yomna Nasser
(1) Adds KEY_HIDE_ENABLE_2G_BOOL to CarrierConfigManager, and (2) Adds new reason ALLOWED_NETWORK_TYPES_REASON_ENABLE_2G. Test: manual & atest -c Enable2gPreferenceControllerTest Bug: b/163168917 Change-Id: I81052549f8dde491697c35365320145fd24c3842 Merged-In: I81052549f8dde491697c35365320145fd24c3842
2021-03-17Remove Protocol.BASE_* usage in ConnectivityRemi NGUYEN VAN
ConnectivityManager and NetworkAgent do not share their handler with any other component, so there is no reason to use addresses that do not overlap. Protocol.BASE_* was written to allow for interaction "between different StateMachine implementations without a conflict", but the classes do not use StateMachine, and they do not have such interactions. Bug: 177046265 Test: atest FrameworksNetTests Change-Id: I18c341d4a2c01cb9559d682a9ad1ff259e6b5855
2021-03-17Expose VPN_UIDlucaslin
ConnectivityService will be a part of mainline module, so it cannot access hidden API. Expose VPN_UID for ConnectivityService to access. Bug: 170598012 Test: m Change-Id: I9f74fb97ba27e5feacf1820cf75e28ad73516d7d
2021-03-17Merge "[Telephony] Exposed PhysicalChannelConfigListener as public API ↵Zoey Chen
instead of system"
2021-03-17Merge changes I335e82e2,I84ba363d,I8f18083b,I854a952d,I00e23441Chalard Jean
* changes: Remove per-user preference when the user is removed Expose the enterprise per-profile networking API. Implement setNetworkPreferenceForUser. Public API for per-profile network preference. Add tests for setNetworkPreferenceForUser
2021-03-16Fix CTS FailureMartin Brabham
Bug: 182849735 Test: atest CtsSystemApiAnnotationTestCases:android.signature.cts.api.AnnotationTest#testAnnotation -- --abi x86_64 Change-Id: I1b9e77b05cd23299bf179c854e136fa341c81566
2021-03-16Bluetooth: Modify and append to the Out-of-Band APIMartin Brabham
- Modify createOutOfBand to be a SystemApi, and accept p192 and p256 data objects. - Modify OobData to become a SystemApi and to provide a Builder pattern for creation. CTS-Coverage-Bug: 182420103 Bug: 178007935 Test: compiles and runs Tag: #feature Change-Id: I46aec8c2cb64a8da8957d01d32b879d60df7a31c Merged-In: I46aec8c2cb64a8da8957d01d32b879d60df7a31c
2021-03-17Merge "Annotate NSM heavy methods with @WorkerThread"Chalard Jean
2021-03-17Merge "Move LocationPermissionChecker to libs/net"Remi NGUYEN VAN