/cts/tests/tests/telephony/current/src/android/telephony/cts/ |
D | CarrierSignalTest.java | 82 (cm) -> cm.overrideConfig(mTestSub, b)); in setUp() 91 (cm) -> cm.overrideConfig(mTestSub, null)); in tearDown() 92 ConnectivityManager cm = mContext.getSystemService(ConnectivityManager.class); in tearDown() local 93 ShellIdentityUtils.invokeMethodWithShellPermissionsNoReturn(cm, in tearDown() 107 ConnectivityManager cm = mContext.getSystemService(ConnectivityManager.class); in testResetBroadcast() local 108 ShellIdentityUtils.invokeMethodWithShellPermissionsNoReturn(cm, in testResetBroadcast()
|
D | SubscriptionManagerTest.java | 179 (cm) -> cm.overrideConfig(subId, bundle)); in overrideCarrierConfig() 210 final ConnectivityManager cm = InstrumentationRegistry.getContext() in setUpClass() local 212 cm.registerNetworkCallback(new NetworkRequest.Builder() in setUpClass() 222 cm.unregisterNetworkCallback(callback); in setUpClass() 407 final ConnectivityManager cm = InstrumentationRegistry.getContext() 428 assertTrue(cm.getNetworkCapabilities(net).hasCapability(NET_CAPABILITY_NOT_CONGESTED)); 528 final ConnectivityManager cm = InstrumentationRegistry.getContext() in testSubscriptionPlansOverrideUnmetered() local 537 assertFalse(cm.getNetworkCapabilities(net).hasCapability( in testSubscriptionPlansOverrideUnmetered() 563 final ConnectivityManager cm = InstrumentationRegistry.getContext() in testSubscriptionPlansUnmetered() local 577 assertFalse(cm.getNetworkCapabilities(net).hasCapability( in testSubscriptionPlansUnmetered() [all …]
|
D | SignalStrengthTest.java | 172 ConnectivityManager cm = getContext().getSystemService(ConnectivityManager.class); in assertDeviceIsOnCellDataOrNoData() local 173 Network activeNetwork = cm.getActiveNetwork(); in assertDeviceIsOnCellDataOrNoData() 176 cm.getNetworkCapabilities(activeNetwork) in assertDeviceIsOnCellDataOrNoData()
|
D | CarrierConfigManagerTest.java | 527 (cm) -> cm.getDefaultCarrierServicePackageName())); in testCarrierConfigManagerResultDependentApi()
|
/cts/tests/tests/rscpp/src/android/cts/rscpp/ |
D | RSColorMatrixTest.java | 61 … ScriptIntrinsicColorMatrix cm = ScriptIntrinsicColorMatrix.create(mRS, Element.RGBA_8888(mRS)); in testRSColorMatrix0() local 63 cm.setColorMatrix(mat); in testRSColorMatrix0() 64 cm.forEach(rsInput, rsOutput); in testRSColorMatrix0() 92 … ScriptIntrinsicColorMatrix cm = ScriptIntrinsicColorMatrix.create(mRS, Element.RGBA_8888(mRS)); in testRSColorMatrix1() local 93 cm.setGreyscale(); in testRSColorMatrix1() 94 cm.forEach(rsInput, rsOutput); in testRSColorMatrix1() 126 … ScriptIntrinsicColorMatrix cm = ScriptIntrinsicColorMatrix.create(mRS, Element.RGBA_8888(mRS)); in testRSColorMatrix2() local 128 cm.setColorMatrix(mat); in testRSColorMatrix2() 129 cm.forEach(rsInput, rsOutput); in testRSColorMatrix2() 158 … ScriptIntrinsicColorMatrix cm = ScriptIntrinsicColorMatrix.create(mRS, Element.RGBA_8888(mRS)); in testRSColorMatrix3() local [all …]
|
/cts/tests/tests/webkit/src/android/webkit/cts/ |
D | WebViewDataDirTest.java | 139 CookieManager cm = CookieManager.getInstance(); in run() local 140 String cookie = cm.getCookie(COOKIE_URL); in run() 147 CookieManager cm = CookieManager.getInstance(); in testCookieJarsSeparate() local 148 cm.setCookie(COOKIE_URL, COOKIE_VALUE + SET_COOKIE_PARAMS); in testCookieJarsSeparate() 149 cm.flush(); in testCookieJarsSeparate() 150 String cookie = cm.getCookie(COOKIE_URL); in testCookieJarsSeparate()
|
/cts/apps/CameraITS/utils/ |
D | noise_model_constants.py | 91 RAINBOW_CMAP = plt.cm.rainbow 94 COLOR_BAR = plt.cm.ScalarMappable(cmap=RAINBOW_CMAP, norm=COLOR_NORM)
|
/cts/common/device-side/preconditions/src/com/android/compatibility/common/preconditions/ |
D | WifiHelper.java | 34 ConnectivityManager cm = (ConnectivityManager) in isWifiConnected() local 36 NetworkInfo wifiNetworkInfo = cm.getNetworkInfo(ConnectivityManager.TYPE_WIFI); in isWifiConnected()
|
/cts/hostsidetests/devicepolicy/app/MeteredDataTestApp/src/com/android/cts/devicepolicy/metereddatatestapp/ |
D | MainActivity.java | 62 final ConnectivityManager cm = (ConnectivityManager) getSystemService( in getActiveNetworkInfo() local 65 return cm.getActiveNetworkInfo(); in getActiveNetworkInfo()
|
/cts/hostsidetests/devicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/ |
D | PrivateDnsPolicyTest.java | 165 ConnectivityManager cm = mContext.getSystemService(ConnectivityManager.class); in waitForNetwork() local 167 while (cm.getActiveNetwork() == null && System.currentTimeMillis() < deadline) { in waitForNetwork() 170 assertNotNull("No active network present", cm.getActiveNetwork()); in waitForNetwork()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/clipboard/ |
D | ClipboardPreviewTestActivity.java | 57 ClipboardManager cm = this.getSystemService(ClipboardManager.class); in setClipboardData() local 64 cm.setPrimaryClip(cd); in setClipboardData()
|
/cts/tests/tests/graphics/src/android/graphics/cts/ |
D | ColorMatrixColorFilterTest.java | 45 ColorMatrix cm = new ColorMatrix(); in testColorMatrixColorFilter() local 51 cm.set(blueToCyan); in testColorMatrixColorFilter() 52 filter = new ColorMatrixColorFilter(cm); in testColorMatrixColorFilter()
|
/cts/tests/location/common/src/android/location/cts/common/ |
D | TestUtils.java | 107 ConnectivityManager cm = getConnectivityManager(context); in getActiveNetworkInfo() local 108 if (cm != null) { in getActiveNetworkInfo() 109 return cm.getActiveNetworkInfo(); in getActiveNetworkInfo()
|
/cts/tests/tests/rscpp/librscpptest/ |
D | rs_jni.cpp | 276 sp<ScriptIntrinsicColorMatrix> cm = ScriptIntrinsicColorMatrix::create(rs); in Java_android_cts_rscpp_RSColorMatrixTest_colorMatrixTest() local 278 cm->setColorMatrix3(coeffs); in Java_android_cts_rscpp_RSColorMatrixTest_colorMatrixTest() 280 cm->setGreyscale(); in Java_android_cts_rscpp_RSColorMatrixTest_colorMatrixTest() 282 cm->setColorMatrix4(coeffs); in Java_android_cts_rscpp_RSColorMatrixTest_colorMatrixTest() 284 cm->setYUVtoRGB(); in Java_android_cts_rscpp_RSColorMatrixTest_colorMatrixTest() 286 cm->setRGBtoYUV(); in Java_android_cts_rscpp_RSColorMatrixTest_colorMatrixTest() 288 cm->setColorMatrix4(coeffs); in Java_android_cts_rscpp_RSColorMatrixTest_colorMatrixTest() 290 cm->setAdd(add); in Java_android_cts_rscpp_RSColorMatrixTest_colorMatrixTest() 292 cm->forEach(inputAlloc, outputAlloc); in Java_android_cts_rscpp_RSColorMatrixTest_colorMatrixTest()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/wifiaware/testcase/ |
D | DataPathOutOfBandTestCase.java | 277 ConnectivityManager cm = (ConnectivityManager) mContext.getSystemService( in executeTestResponder() local 287 cm.requestNetwork(nr, networkCb, CALLBACK_TIMEOUT_SEC * 1000); in executeTestResponder() 294 cm.unregisterNetworkCallback(networkCb); in executeTestResponder() 422 ConnectivityManager cm = (ConnectivityManager) mContext.getSystemService( in executeTestInitiator() local 432 cm.requestNetwork(nr, networkCb, CALLBACK_TIMEOUT_SEC * 1000); in executeTestInitiator() 439 cm.unregisterNetworkCallback(networkCb); in executeTestInitiator()
|
/cts/hostsidetests/sustainedperf/src/android/SustainedPerformance/cts/ |
D | SustainedPerformanceHostTest.java | 69 public Dhrystone(boolean enabled, long cm) { in Dhrystone() argument 70 cpumask = cm; in Dhrystone()
|
/cts/tests/mediapc/src/android/mediapc/cts/ |
D | MultiCodecPerfTestBase.java | 356 ConnectivityManager cm = context.getSystemService(ConnectivityManager.class); in isInternetAvailable() local 357 NetworkCapabilities cap = cm.getNetworkCapabilities(cm.getActiveNetwork()); in isInternetAvailable()
|
D | VideoCodecRequirementsTest.java | 137 CameraManager cm = context.getSystemService(CameraManager.class); in getMaxSupportedRecordingSize() local 138 String[] cameraIdList = cm.getCameraIdList(); in getMaxSupportedRecordingSize() 141 CameraCharacteristics characteristics = cm.getCameraCharacteristics(cameraId); in getMaxSupportedRecordingSize()
|
/cts/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/vpn/ |
D | VpnTestHelper.java | 114 ConnectivityManager cm = context.getSystemService(ConnectivityManager.class); in waitForVpn() local 149 NetworkInfo vpnInfo = cm.getNetworkInfo(ConnectivityManager.TYPE_VPN); in waitForVpn()
|
/cts/tests/JobScheduler/src/android/jobscheduler/cts/ |
D | NetworkingHelper.java | 434 ConnectivityManager cm) { in NetworkTracker() argument 437 mConnectivityManager = cm; in NetworkTracker()
|
/cts/hostsidetests/statsdatom/apps/statsdapp/src/com/android/server/cts/device/statsdatom/ |
D | AtomTests.java | 935 final ConnectivityManager cm = context.getSystemService(ConnectivityManager.class); in doGenerateNetworkTraffic() local 941 cm.requestNetwork(request, callback); in doGenerateNetworkTraffic() 952 exerciseRemoteHost(cm, network, new URL(HTTPS_HOST_URL)); in doGenerateNetworkTraffic() 959 cm.unregisterNetworkCallback(callback); in doGenerateNetworkTraffic() 966 private void exerciseRemoteHost(@NonNull ConnectivityManager cm, @NonNull Network network, in exerciseRemoteHost() argument 968 cm.bindProcessToNetwork(network); in exerciseRemoteHost()
|
/cts/tests/app/src/android/app/cts/ |
D | DownloadManagerTestBase.java | 422 private static boolean hasConnectedNetwork(final ConnectivityManager cm) { in hasConnectedNetwork() argument 423 return cm.getActiveNetwork() != null; in hasConnectedNetwork()
|
/cts/tests/tests/mediastress/src/android/mediastress/cts/ |
D | CodecTest.java | 68 String cm = "dumpsys cpuinfo"; in printCpuInfo() local 72 Process p = Runtime.getRuntime().exec(cm); in printCpuInfo()
|
/cts/tests/media/common/src/android/mediav2/common/cts/ |
D | CodecTestBase.java | 572 CameraManager cm = CONTEXT.getSystemService(CameraManager.class); in isHDRCaptureSupported() 574 String[] cameraIds = cm.getCameraIdList(); in isHDRCaptureSupported() 576 CameraCharacteristics ch = cm.getCameraCharacteristics(id); in isHDRCaptureSupported()
|
/cts/tests/tests/wifi/src/android/net/wifi/cts/ |
D | ConcurrencyTest.java | 449 ConnectivityManager cm = in enableWifi() local 463 cm.registerNetworkCallback(request, networkCallback); in enableWifi() 465 cm.unregisterNetworkCallback(networkCallback); in enableWifi()
|