summaryrefslogtreecommitdiff
path: root/core
AgeCommit message (Collapse)Author
2021-03-23Merge "UCE OPTIONS APIs updated"James Lin
2021-03-23Merge "Replace createSmsSubmitPdu with createFromNativeSmsSubmitPdu"Zongheng Wang
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-22Replace createSmsSubmitPdu with createFromNativeSmsSubmitPduZongheng Wang
Test: atest bluetooth_test_common Test: atest CtsTelephonyTestCases Bug: 183051612 Change-Id: If15d31eb699e2c5d3e371628dba8adbaa9bbebfa
2021-03-22Merge "Fix the case where blocked reasons for dataSaver are not considered."Treehugger Robot
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-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-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 "Switch to bionic's pidfd_open."Josh Gao
2021-03-19Merge changes from topic "tej_isolate_protologging"Tej Singh
* changes: Remove network transport from core/proto Move service/enums.proto to proto_logging Add usb and networkcapabilities back to core/proto
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-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-18Remove network transport from core/protoTej Singh
Move the network transport type to proto_logging. It is needed in atoms.proto, and all atoms.proto dependencies should live in proto_logging. Previously, networkcapabilities.proto was in proto_logging, but the majority of that proto is not needed for logging and is used for incident reports. Test: m Bug: 182392879 Change-Id: I24ff96806e417ad4ee89d84f051ea790a416338f Merged-In: I24ff96806e417ad4ee89d84f051ea790a416338f
2021-03-18Move service/enums.proto to proto_loggingTej Singh
Add usb contaminent status to service/enums.proto. It was previously in usb.proto, but is an enum. Enums.proto is a better fit because other enums in usb.proto are located in enums.proto, and the enum is also used by atoms.proto. Additionally, move the enums.proto file to proto_logging, since all atoms.proto dependencies should be in proto_logging. Test: m Bug: 182392879 Change-Id: I9ea0a1482336694c446e950ea5cb46b95372b76d Merged-In: I9ea0a1482336694c446e950ea5cb46b95372b76d
2021-03-18Add usb and networkcapabilities back to core/protoTej Singh
usb.proto and networkcapabilities.proto were moved to proto_logging because they were needed in atom.proto. However, the majority of the protos aren't needed and belong in core/proto. This moves the files back in preparation for splitting the relevant enums back into proto_logging. Test: m Bug: 182392879 Change-Id: I055a3ca44b83921018697bdefec29161b483d0fe Merged-In: I055a3ca44b83921018697bdefec29161b483d0fe
2021-03-19Merge "Add TEST_NETWORK_SERVICE to module API"Remi NGUYEN VAN
2021-03-18Switch to bionic's pidfd_open.Josh Gao
Bionic's syscall wrappers contain instrumentation so that libraries like fdtrack can hook them at runtime when diagnosing fd leaks. Bug: http://b/172518739 Test: treehugger Change-Id: I9b2e07f6be9463a37cd4e51d914d93ffc89907fc
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-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