/packages/modules/Connectivity/tests/unit/java/com/android/server/connectivityservice/ |
D | CSBlockedReasonsTest.kt | 98 cm.requestNetwork(cellRequest(), cellCb) in cellNc() 99 cm.requestNetwork(wifiRequest(), wifiCb) in cellNc() 114 cm.unregisterNetworkCallback(cellCb) in cellNc() 115 cm.unregisterNetworkCallback(wifiCb) in cellNc() 126 cm.requestNetwork(cellRequest(), cellCb) in cellNc() 127 cm.requestNetwork(wifiRequest(), wifiCb) in cellNc() 147 cm.setDataSaverEnabled(false) in cellNc() 159 cm.setDataSaverEnabled(true) in cellNc() 169 cm.unregisterNetworkCallback(cellCb) in cellNc() 170 cm.unregisterNetworkCallback(wifiCb) in cellNc() [all …]
|
D | CSFirewallChainTest.kt | 63 cm.setFirewallChainEnabled(FIREWALL_CHAIN_BACKGROUND, true) in <lambda>() 68 cm.setFirewallChainEnabled(FIREWALL_CHAIN_BACKGROUND, false) in <lambda>() 80 cm.setFirewallChainEnabled(FIREWALL_CHAIN_BACKGROUND, true) in <lambda>() 83 cm.setFirewallChainEnabled(FIREWALL_CHAIN_BACKGROUND, false) in <lambda>() 99 cm.replaceFirewallChain(FIREWALL_CHAIN_BACKGROUND, uids) in <lambda>() 112 cm.replaceFirewallChain(FIREWALL_CHAIN_BACKGROUND, uids) in <lambda>() 129 cm.setUidFirewallRule(FIREWALL_CHAIN_BACKGROUND, uid, FIREWALL_RULE_DEFAULT) in <lambda>() 134 cm.setUidFirewallRule(FIREWALL_CHAIN_BACKGROUND, uid, FIREWALL_RULE_DENY) in <lambda>() 139 cm.setUidFirewallRule(FIREWALL_CHAIN_BACKGROUND, uid, FIREWALL_RULE_ALLOW) in <lambda>() 154 cm.setUidFirewallRule(FIREWALL_CHAIN_BACKGROUND, uid, rule) in <lambda>() [all …]
|
D | CSBasicMethodsTest.kt | 41 assertTrue(cm.isNetworkSupported(ConnectivityManager.TYPE_WIFI)) in testNetworkTypes() 42 assertTrue(cm.isNetworkSupported(ConnectivityManager.TYPE_MOBILE)) in testNetworkTypes() 43 assertTrue(cm.isNetworkSupported(ConnectivityManager.TYPE_MOBILE_MMS)) in testNetworkTypes() 44 assertTrue(cm.isNetworkSupported(ConnectivityManager.TYPE_MOBILE_FOTA)) in testNetworkTypes() 45 assertFalse(cm.isNetworkSupported(ConnectivityManager.TYPE_PROXY)) in testNetworkTypes() 50 assertTrue(cm.isNetworkSupported(ConnectivityManager.TYPE_ETHERNET)) in testNetworkTypes()
|
D | CSNetworkActivityTest.kt | 90 cm.requestNetwork(cellNr, cellCb) in <lambda>() 93 cm.registerDefaultNetworkCallback(defaultCb) in <lambda>() 126 cm.addDefaultNetworkActiveListener(listener) in <lambda>() 135 assertTrue(cm.isDefaultNetworkActive) in <lambda>() 146 assertTrue(cm.isDefaultNetworkActive) in <lambda>() 150 cm.unregisterNetworkCallback(cellCb) in <lambda>() 151 cm.unregisterNetworkCallback(defaultCb) in <lambda>() 152 cm.removeDefaultNetworkActiveListener(listener) in <lambda>() 174 cm.requestNetwork(dataNetworkNr, dataNetworkCb) in <lambda>() 192 cm.requestNetwork(imsNetworkNr, imsNetworkCb) in <lambda>() [all …]
|
D | CSIngressDiscardRuleTests.kt | 115 cm.registerNetworkCallback(nr, cb) in testVpnIngressDiscardRule_UpdateVpnAddress() 139 cm.unregisterNetworkCallback(cb) in testVpnIngressDiscardRule_UpdateVpnAddress() 148 cm.registerNetworkCallback(nr, cb) in testVpnIngressDiscardRule_UpdateInterfaceName() 171 cm.unregisterNetworkCallback(cb) in testVpnIngressDiscardRule_UpdateInterfaceName() 188 cm.requestNetwork(nr, cb) in testVpnIngressDiscardRule_DuplicatedIpAddress_UpdateVpnAddress() 220 cm.unregisterNetworkCallback(cb) in testVpnIngressDiscardRule_DuplicatedIpAddress_UpdateVpnAddress() 238 cm.requestNetwork(nr, cb) in testVpnIngressDiscardRule_DuplicatedIpAddress_UpdateNonVpnAddress() 273 cm.unregisterNetworkCallback(cb) in testVpnIngressDiscardRule_DuplicatedIpAddress_UpdateNonVpnAddress() 303 cm.registerNetworkCallback(nr, cb) in testVpnIngressDiscardRule_FeatureDisabled()
|
D | CSDestroySocketTest.kt | 96 cm.setUidFirewallRule( in doTestBackgroundRestrictionDestroySockets() 173 cm.setUidFirewallRule( in testReplaceFirewallChain() 181 cm.setUidFirewallRule( in testReplaceFirewallChain() 194 cm.replaceFirewallChain(FIREWALL_CHAIN_BACKGROUND, intArrayOf(TEST_UID2)) in testReplaceFirewallChain() 234 cm.setUidFirewallRule( in doTestDestroySockets() 255 cm.setFirewallChainEnabled(FIREWALL_CHAIN_BACKGROUND, false) in doTestDestroySockets() 261 cm.setUidFirewallRule( in doTestDestroySockets()
|
D | CSNetworkRequestStateStatsMetricsTests.kt | 54 cm.requestNetwork(CELL_INTERNET_NOT_METERED_NR, TestableNetworkCallback()) in <lambda>() 64 cm.registerNetworkCallback(CELL_INTERNET_NOT_METERED_NR, TestableNetworkCallback()) in <lambda>() 72 cm.requestNetwork(CELL_INTERNET_NOT_METERED_NR, cb) in <lambda>() 77 cm.unregisterNetworkCallback(cb) in <lambda>()
|
D | CSLocalAgentTests.kt | 132 cm.requestNetwork(NetworkRequest.Builder() in keepScore() 161 cm.requestNetwork(NetworkRequest.Builder() in keepScore() 247 cm.registerNetworkCallback(NetworkRequest.Builder().clearCapabilities().build(), cb) in keepScore() 323 cm.registerNetworkCallback(NetworkRequest.Builder().clearCapabilities() in keepScore() 375 cm.registerNetworkCallback(NetworkRequest.Builder().clearCapabilities() in keepScore() 427 cm.registerNetworkCallback(NetworkRequest.Builder().clearCapabilities() in keepScore() 484 cm.registerNetworkCallback(NetworkRequest.Builder().clearCapabilities().build(), cb) in keepScore() 549 cm.registerNetworkCallback(NetworkRequest.Builder().clearCapabilities().build(), cb) in keepScore() 592 cm.requestNetwork(NetworkRequest.Builder().clearCapabilities() in keepScore() 598 cm.registerNetworkCallback(NetworkRequest.Builder().clearCapabilities().build(), cb) in keepScore() [all …]
|
/packages/modules/Connectivity/staticlibs/testutils/devicetests/com/android/testutils/ |
D | AutoReleaseNetworkCallbackRule.kt | 61 private val cm by lazy { in <lambda>() constant in com.android.testutils.NetworkCallbackHelper 126 cm.requestNetwork(request, it) in requestNetwork() 128 cm.requestNetwork(request, it, handler) in requestNetwork() 140 ) = addCallback(cb) { cm.requestNetwork(request, it, timeoutMs) } in requestNetwork() 155 ) = addCallback(cb) { cm.registerNetworkCallback(request, it) } in registerNetworkCallback() 166 cm.registerDefaultNetworkCallback(it) in registerDefaultNetworkCallback() 168 cm.registerDefaultNetworkCallback(it, handler) in registerDefaultNetworkCallback() 179 ) = addCallback(cb) { cm.registerSystemDefaultNetworkCallback(it, handler) } in registerSystemDefaultNetworkCallback() 189 ) = addCallback(cb) { cm.registerDefaultNetworkCallbackForUid(uid, it, handler) } in registerDefaultNetworkCallbackForUid() 199 ) = addCallback(cb) { cm.registerBestMatchingNetworkCallback(request, it, handler) } in registerBestMatchingNetworkCallback() [all …]
|
D | PacketBridge.kt | 48 private val cm = context.getSystemService(ConnectivityManager::class.java)!! constant 106 cm.unregisterNetworkCallback(internalNetworkCallback) in stop() 107 cm.unregisterNetworkCallback(externalNetworkCallback) in stop() 125 cm.requestNetwork(nr, testCb) in createTestNetwork()
|
D | TestNetworkTracker.kt | 115 private val cm = context.getSystemService(ConnectivityManager::class.java)!! constant 136 cm.requestNetwork(networkRequest, networkCallback) 147 cm.unregisterNetworkCallback(networkCallback) 155 cm.unregisterNetworkCallback(networkCallback) in teardown()
|
D | ConnectUtil.kt | 58 private val cm = context.getSystemService(ConnectivityManager::class.java) constant in com.android.testutils.ConnectUtil 68 cm.requestNetwork( in ensureWifiConnected() 81 cm.unregisterNetworkCallback(cb) in ensureWifiConnected() 87 cm.registerNetworkCallback(NetworkRequest.Builder() in ensureWifiConnected() 116 cm.unregisterNetworkCallback(callback) in ensureWifiConnected()
|
/packages/modules/Connectivity/tests/cts/hostside/networkslicingtestapp/src/com.android.cts.net.hostside.networkslicingtestapp/ |
D | NetworkSelfDeclaredCapabilitiesTest.java | 46 final ConnectivityManager cm = in requestNetwork_withoutRequestCapabilities() local 55 cm.requestNetwork(request, callback); in requestNetwork_withoutRequestCapabilities() 56 cm.unregisterNetworkCallback(callback); in requestNetwork_withoutRequestCapabilities() 62 final ConnectivityManager cm = in requestNetwork_withSelfDeclaredCapabilities() local 74 cm.requestNetwork(request, callback); in requestNetwork_withSelfDeclaredCapabilities() 75 cm.unregisterNetworkCallback(callback); in requestNetwork_withSelfDeclaredCapabilities() 81 final ConnectivityManager cm = in requestNetwork_lackingRequiredSelfDeclaredCapabilities() local 95 () -> cm.requestNetwork(request, callback)); in requestNetwork_lackingRequiredSelfDeclaredCapabilities()
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/util/bluetooth/ |
D | BluetoothNameUtils.java | 79 final Matcher cm = COLOR_PATTERN.matcher(cs); in getColorConfiguration() local 80 if (!cm.matches()) { in getColorConfiguration() 84 0xff000000 | Integer.parseInt(cm.group(1), 16), in getColorConfiguration() 85 0xff000000 | Integer.parseInt(cm.group(2), 16), in getColorConfiguration() 86 "p".equals(cm.group(3))); in getColorConfiguration() 87 config.isTransient = "t".equals(cm.group(4)); in getColorConfiguration()
|
/packages/modules/Connectivity/Tethering/tests/unit/src/com/android/networkstack/tethering/ |
D | TestConnectivityManager.java | 309 public final TestConnectivityManager cm; field in TestConnectivityManager.TestNetworkAgent 316 public TestNetworkAgent(TestConnectivityManager cm, NetworkCapabilities nc) { in TestNetworkAgent() argument 317 this.cm = cm; in TestNetworkAgent() 318 this.networkId = new Network(cm.getNetworkId()); in TestNetworkAgent() 324 public TestNetworkAgent(TestConnectivityManager cm, UpstreamNetworkState state) { in TestNetworkAgent() argument 325 this.cm = cm; in TestNetworkAgent() 355 for (Integer requestedLegacyType : cm.mLegacyTypeMap.values()) { in maybeSendConnectivityBroadcast() 357 cm.sendConnectivityAction(legacyType, connected /* connected */); in maybeSendConnectivityBroadcast() 374 for (NetworkCallback cb : cm.mListening.keySet()) { in fakeConnect() 375 final NetworkRequestInfo nri = cm.mListening.get(cb); in fakeConnect() [all …]
|
/packages/modules/Connectivity/framework/src/android/net/connectivity/ |
D | ConnectivityInternalApiUtil.java | 47 final ConnectivityManager cm = ctx.getSystemService(ConnectivityManager.class); in getCompanionDeviceManagerProxyService() local 48 return cm.getCompanionDeviceManagerProxyService(); in getCompanionDeviceManagerProxyService() 58 final ConnectivityManager cm = ctx.getSystemService(ConnectivityManager.class); in getRoutingCoordinatorManager() local 59 return cm.getRoutingCoordinatorManager(); in getRoutingCoordinatorManager()
|
/packages/modules/Connectivity/framework/src/android/net/ |
D | ConnectivityFrameworkInitializer.java | 56 final ConnectivityManager cm = context.getSystemService( in registerServiceWrappers() 58 return cm.createDiagnosticsManager(); in registerServiceWrappers() 66 final ConnectivityManager cm = context.getSystemService( in registerServiceWrappers() 68 return cm.startOrGetTestNetworkManager(); in registerServiceWrappers()
|
/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/ |
D | PhoneStateBroadcasterTest.java | 72 CallsManager cm = mock(CallsManager.class); in testNotifyOutgoingEmergencyCallWithNoTelephonyCalling() local 73 when(cm.getContext()).thenReturn(mContext); in testNotifyOutgoingEmergencyCallWithNoTelephonyCalling() 76 PhoneStateBroadcaster psb = new PhoneStateBroadcaster(cm); in testNotifyOutgoingEmergencyCallWithNoTelephonyCalling() 98 CallsManager cm = mock(CallsManager.class); in testNotifyOutgoingEmergencyCallWithNoTelephonySubscription() local 99 when(cm.getContext()).thenReturn(mContext); in testNotifyOutgoingEmergencyCallWithNoTelephonySubscription() 109 PhoneStateBroadcaster psb = new PhoneStateBroadcaster(cm); in testNotifyOutgoingEmergencyCallWithNoTelephonySubscription()
|
/packages/modules/NeuralNetworks/runtime/test/specs/V1_3/ |
D | depthwise_conv2d_quant8_signed.mod.py | 225 cm = Int32Scalar("channelMultiplier", 2) variable 232 cm, act_none).To(output) 257 cm = Int32Scalar("channelMultiplier", 1) variable 264 cm, act).To(output) 285 cm = Int32Scalar("channelMultiplier", 1) variable 292 cm, act).To(output) 318 cm = Int32Scalar("channelMultiplier", 1) variable 325 cm, act).To(output) 346 cm = Int32Scalar("channelMultiplier", 1) variable 353 cm, act).To(output)
|
/packages/providers/MediaProvider/tests/src/com/android/providers/media/scan/ |
D | MediaScannerTest.java | 99 Cursor cm = modernContext.getContentResolver().query(uri, null, null, null)) { in testCorrectness() argument 102 assertEquals(cl.getCount(), cm.getCount()); in testCorrectness() 104 while (cl.moveToNext() && cm.moveToNext()) { in testCorrectness() 111 assertEquals(cl.getColumnName(i), cm.getColumnName(i)); in testCorrectness() 114 cl.getType(i), cm.getType(i)); in testCorrectness() 117 cl.getString(i), cm.getString(i)); in testCorrectness() 124 DatabaseUtils.dumpCursor(cm); in testCorrectness()
|
/packages/modules/Wifi/service/java/com/android/server/wifi/ |
D | WifiPseudonymManager.java | 125 ConnectivityManager cm = mWifiContext.getSystemService( 127 if (cm != null) { 128 cm.unregisterNetworkCallback(mNetworkCallback); 459 ConnectivityManager cm = mWifiContext.getSystemService( in onAlarm() local 461 if (cm != null) { in onAlarm() 462 cm.registerDefaultNetworkCallback(mNetworkCallback, mWifiHandler); in onAlarm() 480 ConnectivityManager cm = mWifiContext.getSystemService(ConnectivityManager.class); in isNetworkConnected() local 481 Network activeNetwork = cm.getActiveNetwork(); in isNetworkConnected() 486 NetworkCapabilities nc = cm.getNetworkCapabilities(activeNetwork); in isNetworkConnected()
|
/packages/modules/Connectivity/tests/cts/net/src/android/net/cts/ |
D | CaptivePortalTest.kt | 99 private val cm by lazy { context.getSystemService(ConnectivityManager::class.java)!! } in <lambda>() constant in android.net.cts.CaptivePortalTest 192 cm.requestNetwork(NetworkRequest.Builder().addTransportType(TRANSPORT_WIFI).build(), wifiCb) in testCaptivePortalIsNotDefaultNetwork() 202 assertNotEquals(network, cm.activeNetwork, wifiDefaultMessage) in testCaptivePortalIsNotDefaultNetwork() 207 runAsShell(startPortalAppPermission) { cm.startCaptivePortalApp(network) } in testCaptivePortalIsNotDefaultNetwork() 216 assertNotEquals(network, cm.activeNetwork, wifiDefaultMessage) in testCaptivePortalIsNotDefaultNetwork() 218 cm.unregisterNetworkCallback(wifiCb) in testCaptivePortalIsNotDefaultNetwork()
|
/packages/apps/Settings/src/com/android/settings/development/ |
D | WirelessDebuggingPreferenceController.java | 142 ConnectivityManager cm = (ConnectivityManager) context.getSystemService( in isWifiConnected() local 144 if (cm == null) { in isWifiConnected() 147 for (Network network : cm.getAllNetworks()) { in isWifiConnected() 148 final NetworkCapabilities nc = cm.getNetworkCapabilities(network); in isWifiConnected()
|
/packages/services/Telephony/testapps/TestRcsApp/aosp_test_rcsclient/src/com/android/libraries/rcs/simpleclient/protocol/msrp/ |
D | ImsPdnNetworkFetcher.java | 68 ConnectivityManager cm = getConnectivityManager(); in requestNetwork() local 77 cm.unregisterNetworkCallback(this); in requestNetwork() 81 cm.requestNetwork(createNetworkRequest(), cb); in requestNetwork()
|
/packages/modules/Connectivity/thread/tests/integration/src/android/net/thread/ |
D | ThreadIntegrationTest.java | 272 ConnectivityManager cm = mContext.getSystemService(ConnectivityManager.class); in addPrefixToNetData_routeIsAddedToTunInterface() local 285 LinkProperties lp = cm.getLinkProperties(getThreadNetwork(CALLBACK_TIMEOUT)); in addPrefixToNetData_routeIsAddedToTunInterface() 293 ConnectivityManager cm = mContext.getSystemService(ConnectivityManager.class); in removePrefixFromNetData_routeIsRemovedFromTunInterface() local 307 LinkProperties lp = cm.getLinkProperties(getThreadNetwork(CALLBACK_TIMEOUT)); in removePrefixFromNetData_routeIsRemovedFromTunInterface() 315 ConnectivityManager cm = mContext.getSystemService(ConnectivityManager.class); in toggleThreadNetwork_routeFromPreviousNetDataIsRemoved() local 324 LinkProperties lp = cm.getLinkProperties(getThreadNetwork(CALLBACK_TIMEOUT)); in toggleThreadNetwork_routeFromPreviousNetDataIsRemoved()
|