summaryrefslogtreecommitdiff
path: root/services
AgeCommit message (Collapse)Author
2021-03-19Merge changes I18d2ccea,I4e80a75d,Ib8ea2a17,Iaba678edTreehugger Robot
* changes: Remove hidden API usage of RouteInfo Remove reference of NetworkAgent#unwanted() Remove references of NetworkAgentConfig constructor Remove reference of @ValidationStatus annotation
2021-03-19Merge "[NS03] Mix in other CS-managed properties"Chalard Jean
2021-03-19Merge "Reland "Add an API to listen for changes in network blocked status of ↵Treehugger Robot
an uid.""
2021-03-19Merge "Send a Network instead of network id for wifi no internet dialog"Chiachang Wang
2021-03-19Merge "Remove hidden API usage from ProxyTracker"Aaron Huang
2021-03-19Remove hidden API usage of RouteInfojunyulai
For callers who use hidden constructor of RouteInfo, replace them with public constructor. Test: TH Bug: 182963397 Merged-In: I18d2cceafad633a95bd909b7f693d45e8a861bc9 Change-Id: I18d2cceafad633a95bd909b7f693d45e8a861bc9 (cherry-picked from ag/13925164)
2021-03-19Remove reference of NetworkAgent#unwanted()junyulai
This is hidden, use onNetworkUnwanted instead. Test: TH Bug: 182963397 Merged-In: I4e80a75d25cfd9ffc07aa219fff5a2604eb307f2 Change-Id: I4e80a75d25cfd9ffc07aa219fff5a2604eb307f2 (cherry-picked from ag/13925163)
2021-03-19Remove references of NetworkAgentConfig constructorjunyulai
This is hidden, use public Builder instead. Test: TH Bug: 182963397 Merged-In: Ib8ea2a17276cfd000e7003fc86d15458e1f82b39 Change-Id: Ib8ea2a17276cfd000e7003fc86d15458e1f82b39 (cherry-picked from ag/13925162)
2021-03-19Remove reference of @ValidationStatus annotationjunyulai
This is hidden and no longer accessible after ConnectivityService becomes mainline module. Test: TH Bug: 182963397 Merged-In: Iaba678ed3af92f87cfeccaacf1cc5723c8e5dcae Change-Id: Iaba678ed3af92f87cfeccaacf1cc5723c8e5dcae (cherry-picked from ag/13925161)
2021-03-19Merge "Ensure all calls to getCallingUid use the version in mDeps."Lorenzo Colitti
2021-03-19Merge "Use the NetworkScore API in VPN"Chalard Jean
2021-03-19Remove hidden API usage from ProxyTrackerAaron Huang
Connectivity mainline module cannot use HandlerExecutor because it is a hidden API. So, replace it with alternative. Bug: 177035719 Test: FrameworksNetTests Change-Id: I228a8a2e3479b0af1e977d13f877a565f0789a7e
2021-03-19Merge "Report RoR metrics in recovery system"Tianjie Xu
2021-03-19[NS03] Mix in other CS-managed propertiesChalard Jean
These properties are necessary to figure out the maximum score of a network. Test: FrameworksNetTests Change-Id: I48dce20ad4a80597039393dca607e8da829b2a61
2021-03-19[NS02] Mix in validation of the scoreChalard Jean
Test: FrameworksNetTests FrameworksWifiTests NetworkStackTests Change-Id: I9cac3a05ad0c4008599973b12d2c5e4c02233a5c
2021-03-19Merge "CaptivePortalData: use CharSequence in VenueFriendlyName API"Treehugger Robot
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-19Revert^2 "Replace the usage of UidRange"Chiachang Wang
5b7aad6995711879823b6a035792b13c5cc06f59 UidRange is used in a shared way between ConnectivityService and VPN through the use of NetworkCapabilities. UidRange will be part of the ConnectivityService mainline but Vpn.java will stay in the framework. We need a way to replace the APIs using UidRange, or to make UidRange system API. The only really relevant surface here is NetworkCapabilities#{setUids, getUids}. The need for UidRange could be replaced by an integer Range, so replace the usage of UidRange by a integer Range in NetworkCapabilities#{setUids, getUids} and update the relevant callers. Bug: 172183305 Test: atest FrameworksNetTests CtsNetTestCasesLatestSdk Change-Id: I0f679fb5fb8f4fe26461ca4912ca1fdfe7f43c9e Merged-In: I4e5aec6ef1ea02e038fcd7ed117a3b67b69c5cb9
2021-03-19Send a Network instead of network id for wifi no internet dialogChiachang Wang
It's a refactor work for incoming connectivity mainline. The network information contained in the no internet notification action was placed the target network id. The receiver which is Settings will need to construct the network from the network id using the hidden Network constructor. Since Network is moving into module, Settings will not be able to access it. Apps should use Network instead of network id, so just send the network object to Settings. Bug: 172183305 Test: manually test with no internet dialog and check the behavior and log Test: atest FrameworksNetTests Change-Id: I68acc70a26a27eeeb9ab7af068a459905839f942
2021-03-19Merge "Check for FEATURE_TELEPHONY instead of CM"Chalard Jean
2021-03-18Merge "Add the LCE system API"Kai Shi
2021-03-18Remove the reading of APK file.yawanng
Dex file size is etract from APK file. It seems to consume MBs memory. Report this metrics from dex2oat instead of in PackageManager. Bug: 182997960 Test: m Change-Id: I09144dde48ed73de88e8d7bcc6078f88fc993b05
2021-03-18Merge "Append root cause with error message while parsing APEX"Mohammad Islam
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-18Report RoR metrics in recovery systemTianjie
Add metrics reporting for resume on reboot in RecoverySystem. These metrics are reported before reboot. Details in http://go/ror-metrics Bug: 179105110 Test: build Change-Id: I5a4cb56bd1e6596f41d35259be5be4958f4a20e9
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 changes from topic "revert-1626206-replaceUidRange-MSYTKFNGUE"Anthony Stange
* changes: Revert "Replace the usage of UidRange" Revert "Expose uids related APIs in NetworkRequest and NetworkCa..."
2021-03-18Revert "Replace the usage of UidRange"Anthony Stange
Revert "Add shims for NetworkRequest" Revert submission 1626206-replaceUidRange Reason for revert: Breaking build - b/183106405 Reverted Changes: I0b79c73e8:Add shims for NetworkRequest I4bc0daf5a:Replace the usage of UidRange I4e5aec6ef:Replace the usage of UidRange I107c329d4:Expose uids related APIs in NetworkRequest and Net... Change-Id: I6290429db1c8e787f8138b55b98fd92a74ac6402
2021-03-18Merge "Add an API to listen for changes in network blocked status of an uid."Sudheer Shanka
2021-03-18Merge changes from topic "replaceUidRange"Chiachang Wang
* changes: Expose uids related APIs in NetworkRequest and NetworkCapabilities Replace the usage of UidRange
2021-03-18Use the NetworkScore API in VPNChalard Jean
Test: FrameworksNetTests Change-Id: I72de86c0e58a2f2d01bc31c1a1afe640d48798b1
2021-03-18Merge "Add more connectivity module settings"Paul Hu
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-18OWNERS for a few Voice Interaction files.Ahaan Ugale
Change-Id: I8855c9bd420e0c1708ca4443e1acac038ec0082f
2021-03-18Add more connectivity module settingspaulhu
Add more connectivity module settings and update all references to ConnectivitySettingsManager. Bug: 182538166 Test: atest FrameworksNetTests Change-Id: Ie96fbd0996ed3acb37099b6270bf3d4c2e558e9a
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-17Update OWNERS fileChris Wailes
This CL updates an OWNERS file to use an include directive instead of an explicit list of owners. Test: None Change-Id: Ibea5a370c43f7b6d9d56275507cb9fb5e226da2a
2021-03-17Merge "TelephonyRegistry: Pass featureId to LocationAccessPolicy"Jack Yu
2021-03-17TelephonyRegistry: Pass featureId to LocationAccessPolicyNarayan Kamath
Bug: 162850073 Test: manual Merged-In: I3a5afddfc151e06f5deb0220620bbd40849626c4 Change-Id: I3a5afddfc151e06f5deb0220620bbd40849626c4 (cherry picked from commit 923b6d86784d2109e6cd0953215c37d8cf460ee7)
2021-03-17Append root cause with error message while parsing APEXMohammad Samiul Islam
Bug: 182409819 Test: manual Change-Id: I30b1376f4d4738487e21a263f217777dc89949c4
2021-03-17Merge "Add support for a hw_timeout_multiplier system property."Peter Collingbourne
2021-03-17Merge "Adding OWNERS to assets of device policy tests"Treehugger Robot
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-17Replace the usage of UidRangeChiachang Wang
UidRange is used in a shared way between ConnectivityService and VPN through the use of NetworkCapabilities. UidRange will be part of the ConnectivityService mainline but Vpn.java will stay in the framework. We need a way to replace the APIs using UidRange, or to make UidRange system API. The only really relevant surface here is NetworkCapabilities#{setUids, getUids}. The need for UidRange could be replaced by an integer Range, so replace the usage of UidRange by a integer Range in NetworkCapabilities#{setUids, getUids} and update the relevant callers. Bug: 172183305 Test: atest FrameworksNetTests CtsNetTestCasesLatestSdk Change-Id: I4e5aec6ef1ea02e038fcd7ed117a3b67b69c5cb9
2021-03-17Merge "Add ConnectivitySettingsManager"Paul Hu
2021-03-17Merge "Remove Settings.Global.TCP_DEFAULT_INIT_RWND on CS"Paul Hu
2021-03-17Merge "Remove usage of networkAttributes"Remi NGUYEN VAN
2021-03-17Remove Settings.Global.TCP_DEFAULT_INIT_RWND on CSpaulhu
TCP_DEFAULT_INIT_RWND setting has never been set before, CS always read the tcp receive window size from net.tcp.default_init_rwnd then set to net.tcp_def_init_rwnd. Thus, remove the unnecessary setting from CS, and the property doesn't need to set either. Because aosp/1639922 migrate the properties, the default value has been set to kernel already. Bug: 182538166 Test: atest FrameworksNetTests Change-Id: I13e175ab4dea72446af7df4a25e307e5934fa813
2021-03-17Add ConnectivitySettingsManagerpaulhu
This class is used to manager the connectivity module related settings. Bug: 182538166 Test: make Change-Id: I5e02e719ce0d305d7c8a45fefb850d7b981f07eb