summaryrefslogtreecommitdiff
path: root/common/device/android/net/NetworkFactoryImpl.java
Commit message (Collapse)AuthorAgeFilesLines
* Add null check for mProviderMotomu Utsumi2022-04-281-4/+3
| | | | | | | | | | | | | | mProvider is null before register is called. But toString call mProvider.getProviderId() without null check and caused NullPointerException. This commit add null check and fix this issue. Original change: https://android-review.googlesource.com/c/platform/frameworks/libs/net/+/2076539 Bug: 228796405 Test: m Ignore-AOSP-First: manual cherry-pick from AOSP Change-Id: Ic8e23b21d11705219f1a8fddd544941fbddb183e
* Replace clearAll with withoutDefaultCapabilitiesChiachang Wang2021-05-141-1/+2
| | | | | | | | | | Update the method to clearer naming as the feedback from API review. Bug: 184735772 Test: m Change-Id: Id0b1df83926352969049a50b3f1af111a4ac603c Ignore-AOSP-First: Parts of the topic are only available in internal
* Support both R and S+ in NetworkFactoryChalard Jean2021-05-031-0/+322
NetworkFactory needs to be backwards compatible as it is statically linked by the Wifi module, which needs to run on both R and S. To achieve this, maintain 2 separate implementations called NetworkFactoryImpl (S+) and NetworkFactoryLegacyImpl (R). NetworkFactory itself becomes a shim that delegates to one of these implementations depending on the device's SDK version. Ignore-AOSP-First: Merge in internal first to fix S-on-R test breakages. Bug: 183902758 Test: ClientModeImplTest OemWifiNetworkFactoryTest TelephonyNetworkFactoryTest UntrustedWifiNetworkFactoryTest WifiNetworkFactoryTest Change-Id: I6a08f39ad1633dd7c1582c362c97821e24ce6683