summaryrefslogtreecommitdiff
path: root/packages
AgeCommit message (Collapse)Author
2021-03-18Merge "Expose APIs for Settings"Chiachang Wang
2021-03-18Expose getCapabilitieslucaslin
Expose getCapabilities() for EthernetNetworkFactory. Bug: 182963415 Test: m ethernet-service Change-Id: I430416af8fae3d4ee99f2f2abe529e3051e9e5cb
2021-03-18Merge "Move constants to MODULE_LIB"Chalard Jean
2021-03-18Merge "Add more connectivity module settings"Paul Hu
2021-03-18Add SystemMessages protos to ConnectivityRemi NGUYEN VAN
This follows the model used for the same protos by the Wifi module in service-wifi. SystemMessageProto is used by NetworkNotificationManager to define IDs for notifications that are also counted in system notification metrics. Bug: 171860710 Test: m Change-Id: Iec674913fad9ad59c04249714a08b5a0d8ab0f84
2021-03-18Fix CS external dependencies on CarrierDefaultApppaulhu
- Use formal API getSystemService to get ConnectivityManager. - Stop using setProcessDefaultNetworkForHostResolution(), it's only used for legacy API startUsingNetworkFeature() but CaptivePortalLoginActivity is used requestNetwork(). So remove it from CaptivePortalLoginActivity. Bug: 183068713 Test: atest CarrierDefaultAppUnitTests Change-Id: Ib3a5dcb70b71ec5b959aeb90a5e3596f3426ceb1
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-18Merge "Add framework-connectivity.impl"Remi NGUYEN VAN
2021-03-18Expose APIs for SettingsChiachang Wang
ConnectivityManager will be a part of incoming connectivity mainline. Settings will no longer to access the hidden methods. For those methods that accept the interaction from users, they should be exposed as formal interface to allow the functionality. Expose them to API surface. Bug: 172183305 Test: make update-api Change-Id: Id4533b94291766bb060af0091b5ccb81a00630fd
2021-03-18Merge "Replace hidden CM#isNetworkSupported() usage"Treehugger Robot
2021-03-18Add framework-connectivity.implRemi NGUYEN VAN
The library will be included in the connectivity module APEX when migrating its sources out of framework-minus-apex. Bug: 171540887 Test: m Change-Id: I1595521eaced6e6997c076bb56b06ffdd22a4fa0
2021-03-17Replace hidden CM#isNetworkSupported() usageChiachang Wang
It's a refactor work for connectivity mainline module. The hidden methods access is no longer allowed, so the usage for isNetworkSupported() should be replaced. Settingslib use it to check if device support telephony service. Use alternative method to check if device supports such feature. Bug: 172183305 Test: make RunSettingsLibRoboTests Change-Id: I713c6410fcf9543d54d9b0057ed7b2ecdab201ee Merged-In: I713c6410fcf9543d54d9b0057ed7b2ecdab201ee
2021-03-17Expose uids related APIs in NetworkRequest and NetworkCapabilitiesChiachang Wang
NetworkRequest is moving into the incoming connectivity mainline module. The hidden setUids becomes inaccessible outside the module. Shims for support cts in different API levels will need to use it to verify the behavior of NetworkRequest. Thus, expose it to the API surface. Also, VPN uses getUids and setUids to control network capabilities. Networkcapabilities is a part of incoming connectivity mainline module but VPN is not. Thus, exposing these two methods are needed to allow VPN to continue using it. Test: make update-api Bug: 172183305 Change-Id: I107c329d4d7130d488772166eae8b5e7aaa2ff04
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 Protocol.BASE_* usage in Connectivity"Remi NGUYEN VAN
2021-03-17Merge "Remove extra comment"Remi NGUYEN VAN
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-17Merge "Modify the comment of getPrivateDnsMode"Lucas Lin
2021-03-17Merge "Remove usage of networkAttributes"Remi NGUYEN VAN
2021-03-17Remove extra commentRemi NGUYEN VAN
This fixes a merge conflict with downstream branches due to an incomplete cherry-pick. Bug: 171540887 Test: m Change-Id: I27a8f20f1a1d83b472700648f3f5a68413a76ac3 Merged-In: I7432fe4c87cd3cab04dcb6185c9a4f3f84376549
2021-03-17Add ConnectivitySettingsManagerpaulhu
This class is used to manager the connectivity module related settings. Bug: 182538166 Test: make Change-Id: I5e02e719ce0d305d7c8a45fefb850d7b981f07eb
2021-03-17Modify the comment of getPrivateDnsModelucaslin
Bug: 172183305 Test: m Change-Id: I2f1b44cf2a362b42f052ea5d34a5cec03d46e661
2021-03-17Merge "Change the parameter type from ContentResolver to Context"Lucas Lin
2021-03-17Expose systemReady for SystemServerlucaslin
SystemServer cannot call the hidden API of ConnectivityManager after it becomes a part of mainline module. So expose the hidden API for SystemServer. Bug: 182963354 Test: m services Change-Id: I9c1dc8eb1401dbdc069d5c9fc3992f4c7939b70e
2021-03-17Move constants to MODULE_LIBChalard Jean
These constants are used by a MODULE_LIBRARIES API, they should have the same visibility. Test: ConnectivityServiceTest Change-Id: I14cb189d949fe552f463cae3002801fd8cf8230c
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-16CaptivePortalData: use CharSequence in VenueFriendlyName APIHai Shalom
Following up on feedback from API council, change the String type to CharSequence in the get and set Venue friendly name API. Bug: 179163405 Test: atest ConnectivityServiceTest CtsNetTestCasesLatestSdk:CaptivePortalDataTest Test: atest NetworkNotificationManagerTest NetworkMonitorTest Change-Id: Ia63974cd2ff5975bde410eb93731d4b1def36d19
2021-03-17Move trimV4AddrZeros to libs/netRemi NGUYEN VAN
The utility is @UnsupportedAppUsage, and also used by internal classes like WifiTrackerLib or Mms, so it needs to be in a shared location. Bug: 182859030 Test: m Change-Id: I25cb374f4743a5869e9da5b01d3a543a9a165c0e
2021-03-17Merge "Remove MessageUtils usage in VpnTransportInfo"Remi NGUYEN VAN
2021-03-16Merge "[VCN14] Expose registerBestMatchingNetworkCallback"Junyu Lai
2021-03-16Merge "Use `ro.boot.qemu` to check if the device is an emulator"Treehugger Robot
2021-03-16[VCN14] Expose registerBestMatchingNetworkCallbackjunyulai
Test: m -j doc-comment-check-docs Bug: 175662146 Change-Id: Ie67dd2f4f8d973de37bc64a03908d7cbb7c2b7ad
2021-03-16[VCN13] Implement tracking best matching networkjunyulai
This is done by: 1. In requestNetwork, provide a basic permission check. 2. rematchNetworksAndRequests: no change, since non listen requests will be automatically processed to track best satisfying network. 3. applyNetworkReassignment: no change, since non-request will not be sent to factories. Test: atest ConnectivityServiceTest#testRegisterBestMatchingNetworkCallback_noIssueToFactory Test: atest ConnectivityServiceTest#testRegisterBestMatchingNetworkCallback_trackBestNetwork Bug: 175662146 Change-Id: I8cf4ab334df6812d84cdda160e9b72b6f54062af
2021-03-16Merge "Replace interal okhttp APIs"Paul Hu
2021-03-16Expose the enterprise per-profile networking API.Chalard Jean
Also unify the listener for Oem settings, which have never been released as public API (it is slated to be released in S). Test: FrameworksNetTests Change-Id: I84ba363dd0ec03871c37b1c3a31e5557d9aa12e7
2021-03-16Implement setNetworkPreferenceForUser.Chalard Jean
Test: FrameworksNetTests Change-Id: I8f18083b5857289892fe8adea5f5ea3f5dbe0809
2021-03-16Public API for per-profile network preference.Chalard Jean
This patch defines the API, but does not make it public yet as there is no implementation yet. Test: none so far Change-Id: I854a952dfe35cc80847eb62f522b1667b8e9b8a0
2021-03-16Change the parameter type from ContentResolver to Contextlucaslin
Context is more useful than ContentResolver, it can provide more information if we want to change the behavior in the future. Bug: 172183305 Test: atest FrameworksNetTests Change-Id: I5702c7d74b862a76558b94f1abe2c6df9eb7f097 Merged-In: I5702c7d74b862a76558b94f1abe2c6df9eb7f097
2021-03-16Merge "Add comments to describe the value of converting hex to decimal"Lucas Lin
2021-03-16Merge "Have a new API to get private DNS mode"Lucas Lin
2021-03-16Remove usage of networkAttributesRemi NGUYEN VAN
networkAttributes is a legacy configuration that is now only used to configure which legacy type networks are supported, and what the restore timer is for that network type, for the deprecated startUsingNetworkFeature API. Use a dedicated resource for the restore timers, and build supported legacy network types using hasSystemFeature for wifi, wifi p2p, bluetooth, proxy types, and TelephonyManager.isDataCapable for the mobile types. Bug: 146206136 Test: atest FrameworksNetTests Change-Id: I3a771d3de6c5e912f18d2834e3a50af797ac4991
2021-03-16Merge "[NS01] Add NetworkScore"Chalard Jean
2021-03-16Merge "Add ParseException constructors to API"Remi NGUYEN VAN
2021-03-16Merge "Create ServiceConnectivityResources"Remi NGUYEN VAN
2021-03-15Replace interal okhttp APIspaulhu
Connectivity is becoming a mainline module in S but mainline modules are not allowed to use non-formal APIs. Thus, replace internal okhttp APIs to stable libcore APIs which are created for using HttpURLConnectionFactory. Bug: 182238821 Test: atest FrameworksNetTests Change-Id: I56ba1b9e6e94f9c6519c3f1c8f0c5993fccbe185
2021-03-15Merge changes from topic "b174856119_aosp"Treehugger Robot
* changes: Drop prebuilt files to android source tree. Update CTS shim
2021-03-15Merge changes from topic "pacproxy-service"Aaron Huang
* changes: Make PacProxyService be a system service Revert^2 "Refactor setCurrentProxyScriptUrl to a void method"
2021-03-15Merge "Add OWNER to SettingsLib/connectivity and wifi path"Treehugger Robot
2021-03-15Add comments to describe the value of converting hex to decimallucaslin
Bug: 172183305 Test: N/A Change-Id: Id274295d6c8c97d3014214f875168ff968f79bb6