/packages/apps/StorageManager/src/com/android/storagemanager/automatic/ |
D | JobPreconditions.java | 18 ConnectivityManager connectivityManager = (ConnectivityManager) context.getSystemService( in isNetworkMetered() local 20 if (connectivityManager != null) { in isNetworkMetered() 21 return connectivityManager.isActiveNetworkMetered(); in isNetworkMetered() 27 ConnectivityManager connectivityManager = (ConnectivityManager) context.getSystemService( in isWifiConnected() local 29 if (connectivityManager != null) { in isWifiConnected() 30 for (Network network : connectivityManager.getAllNetworks()) { in isWifiConnected() 31 NetworkInfo networkInfo = connectivityManager.getNetworkInfo(network); in isWifiConnected()
|
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/network/ |
D | NetworkUtilsTest.java | 39 ConnectivityManager connectivityManager = mock(ConnectivityManager.class); in hasMobileNetwork_hasCellularCapabilities_returnsTrue() local 43 when(connectivityManager.getAllNetworks()).thenReturn(new Network[]{network}); in hasMobileNetwork_hasCellularCapabilities_returnsTrue() 44 when(connectivityManager.getNetworkCapabilities(network)).thenReturn(capabilities); in hasMobileNetwork_hasCellularCapabilities_returnsTrue() 47 assertThat(NetworkUtils.hasMobileNetwork(connectivityManager)).isTrue(); in hasMobileNetwork_hasCellularCapabilities_returnsTrue() 52 ConnectivityManager connectivityManager = mock(ConnectivityManager.class); in hasMobileNetwork_hasNoCellularCapabilities_returnsFalse() local 56 when(connectivityManager.getAllNetworks()).thenReturn(new Network[]{network}); in hasMobileNetwork_hasNoCellularCapabilities_returnsFalse() 57 when(connectivityManager.getNetworkCapabilities(network)).thenReturn(capabilities); in hasMobileNetwork_hasNoCellularCapabilities_returnsFalse() 60 assertThat(NetworkUtils.hasMobileNetwork(connectivityManager)).isFalse(); in hasMobileNetwork_hasNoCellularCapabilities_returnsFalse()
|
/packages/apps/Settings/src/com/android/settings/network/ |
D | ConnectivityRepository.kt | 33 private val connectivityManager = context.getSystemService(ConnectivityManager::class.java)!! constant 51 connectivityManager.registerDefaultNetworkCallback(callback) in <lambda>() 53 awaitClose { connectivityManager.unregisterNetworkCallback(callback) } in <lambda>() 57 connectivityManager.getNetworkCapabilities(connectivityManager.activeNetwork) in getNetworkCapabilities()
|
/packages/providers/MediaProvider/photopicker/src/com/android/photopicker/core/network/ |
D | NetworkMonitor.kt | 56 private val connectivityManager: ConnectivityManager = context.requireSystemService() constant 87 connectivityManager in <lambda>() 89 connectivityManager.activeNetwork, in <lambda>() 96 connectivityManager.registerNetworkCallback(request, networkStatusCallback) in <lambda>() 100 connectivityManager.unregisterNetworkCallback(networkStatusCallback) in <lambda>()
|
/packages/apps/Dialer/java/com/android/dialer/common/ |
D | NetworkUtil.java | 44 ConnectivityManager connectivityManager = in getCurrentNetworkType() local 46 return getNetworkType(connectivityManager.getActiveNetworkInfo()); in getCurrentNetworkType() 56 ConnectivityManager connectivityManager = in getCurrentNetworkInfo() local 58 return connectivityManager.getActiveNetworkInfo(); in getCurrentNetworkInfo() 70 ConnectivityManager connectivityManager = in getCurrentNetworkTypeName() local 72 NetworkInfo netInfo = connectivityManager.getActiveNetworkInfo(); in getCurrentNetworkTypeName()
|
/packages/modules/Connectivity/service-t/src/com/android/server/connectivity/mdns/ |
D | ConnectivityMonitorWithConnectivityManager.java | 36 private final ConnectivityManager connectivityManager; field in ConnectivityMonitorWithConnectivityManager 49 connectivityManager = in ConnectivityMonitorWithConnectivityManager() 91 connectivityManager.registerNetworkCallback( in startWatchingConnectivityChanges() 107 connectivityManager.unregisterNetworkCallback(networkCallback); in stopWatchingConnectivityChanges()
|
/packages/apps/TV/src/com/android/tv/util/ |
D | NetworkUtils.java | 33 public static boolean isNetworkAvailable(@Nullable ConnectivityManager connectivityManager) { in isNetworkAvailable() argument 34 if (connectivityManager == null) { in isNetworkAvailable() 37 NetworkInfo info = connectivityManager.getActiveNetworkInfo(); in isNetworkAvailable()
|
/packages/services/Telephony/testapps/TestRcsApp/aosp_test_rcsclient/src/com/android/libraries/rcs/simpleclient/protocol/msrp/ |
D | MsrpSession.java | 67 private final ConnectivityManager connectivityManager; field in MsrpSession 73 MsrpSession(ConnectivityManager connectivityManager, Context context, Network network, in MsrpSession() argument 75 this.connectivityManager = connectivityManager; in MsrpSession() 118 connectivityManager.registerQosCallback(new QosSocketInfo(network, socket), in listenForBearer() 181 connectivityManager.unregisterQosCallback(qosCallback); in terminate()
|
/packages/apps/Car/Settings/src/com/android/car/settings/network/ |
D | NetworkUtils.java | 38 public static boolean hasMobileNetwork(ConnectivityManager connectivityManager) { in hasMobileNetwork() argument 39 Network[] networks = connectivityManager.getAllNetworks(); in hasMobileNetwork() 41 NetworkCapabilities capabilities = connectivityManager.getNetworkCapabilities(network); in hasMobileNetwork()
|
/packages/services/BuiltInPrintService/src/com/android/bips/util/ |
D | WifiMonitor.java | 48 ConnectivityManager connectivityManager = in WifiMonitor() local 50 if (connectivityManager == null) { in WifiMonitor() 60 NetworkInfo info = connectivityManager.getNetworkInfo( in WifiMonitor()
|
/packages/apps/Dialer/java/com/android/voicemail/impl/sync/ |
D | VvmNetworkRequestCallback.java | 57 private ConnectivityManager connectivityManager; field in VvmNetworkRequestCallback 189 if (connectivityManager == null) { in getConnectivityManager() 190 connectivityManager = in getConnectivityManager() 193 return connectivityManager; in getConnectivityManager()
|
/packages/services/Mms/src/com/android/mms/service/ |
D | MmsNetworkManager.java | 449 final ConnectivityManager connectivityManager = getConnectivityManager(); in startNewNetworkRequestLocked() local 451 connectivityManager.requestNetwork( in startNewNetworkRequestLocked() 462 final ConnectivityManager connectivityManager = getConnectivityManager(); in releaseRequestLocked() local 464 connectivityManager.unregisterNetworkCallback(callback); in releaseRequestLocked() 528 final ConnectivityManager connectivityManager = getConnectivityManager(); in getApnName() local 529 final NetworkInfo mmsNetworkInfo = connectivityManager.getNetworkInfo(network); in getApnName()
|
/packages/modules/Connectivity/remoteauth/service/java/com/android/server/remoteauth/ |
D | RemoteAuthConnectionCache.java | 45 public RemoteAuthConnectionCache(@NonNull ConnectivityManager connectivityManager) { in RemoteAuthConnectionCache() argument 46 Preconditions.checkNotNull(connectivityManager); in RemoteAuthConnectionCache() 47 this.mConnectivityManager = connectivityManager; in RemoteAuthConnectionCache()
|
/packages/apps/Dialer/java/com/android/incallui/calllocation/impl/ |
D | LocationHelper.java | 168 private final ConnectivityManager connectivityManager; field in LocationHelper.LocationHelperInternal 176 connectivityManager = in LocationHelperInternal() 244 if (connectivityManager == null) { in isConnected() 247 NetworkInfo networkInfo = connectivityManager.getActiveNetworkInfo(); in isConnected()
|
/packages/modules/ConfigInfrastructure/service/java/com/android/server/deviceconfig/ |
D | UnattendedRebootManager.java | 150 final ConnectivityManager connectivityManager = in triggerRebootOnNetworkAvailable() local 156 connectivityManager.requestNetwork( in triggerRebootOnNetworkAvailable() 461 final ConnectivityManager connectivityManager = 463 if (connectivityManager == null) { 467 Network activeNetwork = connectivityManager.getActiveNetwork(); 469 connectivityManager.getNetworkCapabilities(activeNetwork);
|
/packages/modules/Connectivity/remoteauth/tests/unit/src/com/android/server/remoteauth/connectivity/ |
D | ConnectivityManagerFactoryTest.java | 40 ConnectivityManager connectivityManager = in testFactory_returnsConnectivityManager() local 43 assertThat(connectivityManager).isNotNull(); in testFactory_returnsConnectivityManager()
|
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/google/ |
D | GoogleSuggestClient.kt | 145 val connectivityManager = constant 147 val activeNetwork = connectivityManager.getActiveNetwork() 148 return connectivityManager.getNetworkCapabilities(activeNetwork)
|
/packages/modules/DeviceLock/DeviceLockController/src/com/android/devicelockcontroller/provision/grpc/impl/ |
D | DeviceCheckInClientImpl.java | 142 ConnectivityManager connectivityManager) { in DeviceCheckInClientImpl() argument 143 this(clientInterceptor, connectivityManager, in DeviceCheckInClientImpl() 151 ConnectivityManager connectivityManager, in DeviceCheckInClientImpl() argument 154 mConnectivityManager = connectivityManager; in DeviceCheckInClientImpl() 163 connectivityManager.registerBestMatchingNetworkCallback( in DeviceCheckInClientImpl()
|
/packages/modules/Wifi/service/java/com/android/server/wifi/ |
D | OemWifiNetworkFactory.java | 42 WifiConnectivityManager connectivityManager) { in OemWifiNetworkFactory() argument 44 mWifiConnectivityManager = connectivityManager; in OemWifiNetworkFactory()
|
D | UntrustedWifiNetworkFactory.java | 46 WifiConnectivityManager connectivityManager) { in UntrustedWifiNetworkFactory() argument 48 mWifiConnectivityManager = connectivityManager; in UntrustedWifiNetworkFactory()
|
D | RestrictedWifiNetworkFactory.java | 48 WifiConnectivityManager connectivityManager) { in RestrictedWifiNetworkFactory() argument 50 mWifiConnectivityManager = connectivityManager; in RestrictedWifiNetworkFactory()
|
/packages/modules/Connectivity/framework/src/android/net/ |
D | QosCallbackConnection.java | 59 public QosCallbackConnection(@NonNull final ConnectivityManager connectivityManager, in QosCallbackConnection() argument 62 mConnectivityManager = Objects.requireNonNull(connectivityManager, in QosCallbackConnection()
|
/packages/apps/Car/Settings/src/com/android/car/settings/system/ |
D | ResetNetworkConfirmFragment.java | 93 ConnectivityManager connectivityManager = (ConnectivityManager) in resetNetwork() local 95 if (connectivityManager != null) { in resetNetwork() 96 connectivityManager.factoryReset(); in resetNetwork()
|
/packages/apps/TvSettings/SettingsAPI/java/com/android/tv/settings/library/network/ |
D | AccessPointPreferenceController.java | 97 ConnectivityManager connectivityManager = mContext.getSystemService( in isCaptivePortal() local 102 NetworkCapabilities nc = connectivityManager.getNetworkCapabilities( in isCaptivePortal()
|
D | WifiTracker.java | 131 WifiManager wifiManager, ConnectivityManager connectivityManager) { in WifiTracker() argument 146 context, wifiManager, connectivityManager, ThreadUtils.getUiThreadHandler(), in WifiTracker()
|