summaryrefslogtreecommitdiff
path: root/core/api
AgeCommit message (Collapse)Author
2021-03-23Merge "UCE OPTIONS APIs updated"James Lin
2021-03-23Merge "Replace createSmsSubmitPdu with createFromNativeSmsSubmitPdu"Zongheng Wang
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-22Replace createSmsSubmitPdu with createFromNativeSmsSubmitPduZongheng Wang
Test: atest bluetooth_test_common Test: atest CtsTelephonyTestCases Bug: 183051612 Change-Id: If15d31eb699e2c5d3e371628dba8adbaa9bbebfa
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-23UCE OPTIONS APIs updatedJames.cf Lin
1. Expose OPTIONS APIs in the RcsContactUceCapability. 2. Update the feature tags type from List to Set. Bug: 181175307 Test: atest RcsUceAdapterTest ImsServiceTest RcsContactUceCapabilityTest Merged-In: Id4499d7f9f6eb2b572902d76129f9ad388354d9f Change-Id: Id4499d7f9f6eb2b572902d76129f9ad388354d9f
2021-03-22Merge "KEY_CARRIER_NR_AVAILABILITIES_INT_ARRAY change type as IntArray"SongFerng Wang
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-22Merge "Make isDataCapable a public API"Treehugger Robot
2021-03-22Merge "Add capability for thermal mitigation."Jack Nudelman
2021-03-22KEY_CARRIER_NR_AVAILABILITIES_INT_ARRAY change type as IntArraySongFerngWang
Bug: 179814490 Test: build pass Change-Id: Ica29b8aee243168bb7719f01972075d54ff763e9 Merged-In: Ica29b8aee243168bb7719f01972075d54ff763e9
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-21Merge changes from topic "backport-connectivityresources"Lorenzo Colitti
* changes: Use module resources in NetworkNotificationManager. Cherry-pick some test changes from ag/13210542. Add connectivity protos to framework-connectivity Remove unused NetworkPolicyManagerInternal in CS Move connectivity AIDLs to android.net Migrate framework-connectivity internal resources Expose isUidNetworkingBlocked and isUidRestrictedOnMeteredNetworks Add multipath preference, background status API
2021-03-21Merge "Add VoPS support info for NR"Hui 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 "AudioTrack: get/setStartThresholdInFrames"Andy Hung
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-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-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-19AudioTrack: get/setStartThresholdInFramesAndy Hung
setStartThresholdInFrames is used to set the start threshold in frames for streaming AudioTrack playback. Normally this is the entire buffer capacity in frames but may be reduced for low latency playback, compressed formats, and direct tracks. See CTS test AudioTrackTest#testStartThresholdInFrames for example calling details and behavior. Test: atest AudioTrackTest#testStartThresholdInFrames Test: atest AudioTrackTest#testStartThresholdInFramesExceptions Bug: 183003720 Merged-In: I5064d04961e48b530c49071ff84c2e0d2065f41b Change-Id: I5064d04961e48b530c49071ff84c2e0d2065f41b
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-18Add VoPS support info for NRHui Wang
Bug: 167991878 Test: atest FrameworksTelephonyTests:CellularNetworkServiceTest Test: atest FrameworksTelephonyTests:ServiceStateTrackerTest Test: atest CtsTelephonyTestCases:VopsSupportInfoTest Change-Id: Ib7ee266d2fb2bbfc16b33c9c79f2ef2a576a8e81
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-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-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-18Make isDataCapable a public APIRemi NGUYEN VAN
There is no definitive API to determine whether a device supports mobile data; this API fills the gap. Bug: 146206136 Test: m Change-Id: I5daa302063ee4e9c27dd9ba1a09d65af80ed9d99
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-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-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-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-16Merge "Add carrier config keys for RTT-VT compat"Hall Liu