/cts/tests/tests/graphics/src/android/graphics/drawable/cts/ |
D | AnimatedImageDrawableTest.java | 168 Callback cb = new Callback(drawable); in testRegisterWithoutLooper() local 169 drawable.registerAnimationCallback(cb); in testRegisterWithoutLooper() 178 Callback cb = new Callback(drawable); in testRegisterCallback() local 179 drawable.registerAnimationCallback(cb); in testRegisterCallback() 180 assertTrue(drawable.unregisterAnimationCallback(cb)); in testRegisterCallback() 183 assertFalse(drawable.unregisterAnimationCallback(cb)); in testRegisterCallback() 203 for (Callback cb : callbacks) { in testClearCallbacks() 204 drawable.registerAnimationCallback(cb); in testClearCallbacks() 210 for (Callback cb : callbacks) { in testClearCallbacks() 212 assertFalse(drawable.unregisterAnimationCallback(cb)); in testClearCallbacks() [all …]
|
D | TransitionDrawableTest.java | 84 Drawable.Callback cb = mock(Drawable.Callback.class); in testStartTransition() local 85 mTransitionDrawable.setCallback(cb); in testStartTransition() 89 verify(cb, times(1)).invalidateDrawable(any()); in testStartTransition() 94 reset(cb); in testStartTransition() 96 verify(cb, times(1)).invalidateDrawable(any()); in testStartTransition() 101 reset(cb); in testStartTransition() 103 verify(cb, times(1)).invalidateDrawable(any()); in testStartTransition() 112 Drawable.Callback cb = mock(Drawable.Callback.class); in testResetTransition() local 113 mTransitionDrawable.setCallback(cb); in testResetTransition() 117 verify(cb, times(1)).invalidateDrawable(any()); in testResetTransition() [all …]
|
D | DrawableWrapperTest.java | 103 Drawable.Callback cb = mock(Drawable.Callback.class); in testInvalidateDrawable() local 104 wrapper.setCallback(cb); in testInvalidateDrawable() 106 verify(cb, times(1)).invalidateDrawable(any()); in testInvalidateDrawable() 108 reset(cb); in testInvalidateDrawable() 110 verify(cb, times(1)).invalidateDrawable(any()); in testInvalidateDrawable() 112 reset(cb); in testInvalidateDrawable() 115 verify(cb, never()).invalidateDrawable(any()); in testInvalidateDrawable() 123 Drawable.Callback cb = mock(Drawable.Callback.class); in testScheduleDrawable() local 124 wrapper.setCallback(cb); in testScheduleDrawable() 126 verify(cb, times(1)).scheduleDrawable(any(), any(), anyLong()); in testScheduleDrawable() [all …]
|
D | RippleDrawableTest.java | 129 Drawable.Callback cb = mock(Drawable.Callback.class); in testSetColor() local 131 dr.setCallback(cb); in testSetColor() 134 verify(cb, times(1)).invalidateDrawable(dr); in testSetColor()
|
D | LayerDrawableTest.java | 349 Drawable.Callback cb = mock(Drawable.Callback.class); in testInvalidateDrawable() local 350 layerDrawable.setCallback(cb); in testInvalidateDrawable() 352 verify(cb, times(1)).invalidateDrawable(any()); in testInvalidateDrawable() 354 reset(cb); in testInvalidateDrawable() 356 verify(cb, times(1)).invalidateDrawable(any()); in testInvalidateDrawable() 358 reset(cb); in testInvalidateDrawable() 361 verify(cb, never()).invalidateDrawable(any()); in testInvalidateDrawable() 369 Drawable.Callback cb = mock(Drawable.Callback.class); in testScheduleDrawable() local 370 layerDrawable.setCallback(cb); in testScheduleDrawable() 372 verify(cb, times(1)).scheduleDrawable(any(), any(), anyLong()); in testScheduleDrawable() [all …]
|
/cts/hostsidetests/net/app/src/com/android/cts/net/hostside/ |
D | NetworkCallbackTest.java | 97 CallbackInfo cb = null; in nextCallback() local 99 cb = mCallbacks.poll(timeoutMs, TimeUnit.MILLISECONDS); in nextCallback() 102 if (cb == null) { in nextCallback() 105 return cb; in nextCallback() 136 final CallbackInfo cb = nextCallback(TEST_CONNECT_TIMEOUT_MS); in expectAvailableCallbackAndGetNetwork() local 137 if (cb.state != CallbackState.AVAILABLE) { in expectAvailableCallbackAndGetNetwork() 139 + cb); in expectAvailableCallbackAndGetNetwork() 141 return cb.network; in expectAvailableCallbackAndGetNetwork() 152 final CallbackInfo cb = nextCallback((int) (deadline - System.currentTimeMillis())); in expectBlockedStatusCallbackEventually() local 153 if (cb.state == CallbackState.BLOCKED_STATUS in expectBlockedStatusCallbackEventually() [all …]
|
D | MyServiceClient.java | 100 public void registerNetworkCallback(INetworkCallback cb) throws RemoteException { in registerNetworkCallback() argument 101 mService.registerNetworkCallback(cb); in registerNetworkCallback()
|
/cts/tests/tests/net/src/android/net/cts/ |
D | ConnectivityDiagnosticsManagerTest.java | 173 for (TestConnectivityDiagnosticsCallback cb : mRegisteredCallbacks) { in tearDown() 174 mCdm.unregisterConnectivityDiagnosticsCallback(cb); in tearDown() 183 final TestConnectivityDiagnosticsCallback cb = in testRegisterConnectivityDiagnosticsCallback() local 189 cb.expectOnConnectivityReportAvailable(mTestNetwork, interfaceName); in testRegisterConnectivityDiagnosticsCallback() 190 cb.assertNoCallback(); in testRegisterConnectivityDiagnosticsCallback() 285 final TestConnectivityDiagnosticsCallback cb = in testRegisterDuplicateConnectivityDiagnosticsCallback() local 289 mCdm.registerConnectivityDiagnosticsCallback(TEST_NETWORK_REQUEST, INLINE_EXECUTOR, cb); in testRegisterDuplicateConnectivityDiagnosticsCallback() 297 final TestConnectivityDiagnosticsCallback cb = new TestConnectivityDiagnosticsCallback(); in testUnregisterConnectivityDiagnosticsCallback() local 298 mCdm.registerConnectivityDiagnosticsCallback(TEST_NETWORK_REQUEST, INLINE_EXECUTOR, cb); in testUnregisterConnectivityDiagnosticsCallback() 299 mCdm.unregisterConnectivityDiagnosticsCallback(cb); in testUnregisterConnectivityDiagnosticsCallback() [all …]
|
D | Ikev2VpnTest.java | 426 final TestNetworkCallback cb = new TestNetworkCallback(); in checkStartStopVpnProfileBuildsNetworks() local 427 sCM.requestNetwork(nr, cb); in checkStartStopVpnProfileBuildsNetworks() 428 cb.waitForAvailable(); in checkStartStopVpnProfileBuildsNetworks() 429 final Network vpnNetwork = cb.currentNetwork; in checkStartStopVpnProfileBuildsNetworks() 438 cb.waitForLost(); in checkStartStopVpnProfileBuildsNetworks() 439 assertEquals(vpnNetwork, cb.lastLostNetwork); in checkStartStopVpnProfileBuildsNetworks()
|
/cts/tests/apppredictionservice/src/android/apppredictionservice/cts/ |
D | AppPredictionServiceTest.java | 139 RequestVerifier cb = new RequestVerifier(mReporter); in testRegisterPredictionUpdatesLifecycle() local 140 client.registerPredictionUpdates(Executors.newSingleThreadExecutor(), cb); in testRegisterPredictionUpdatesLifecycle() local 143 assertTrue(cb.requestAndWaitForTargets(createPredictions(), in testRegisterPredictionUpdatesLifecycle() 145 assertTrue(cb.requestAndWaitForTargets(createPredictions(), in testRegisterPredictionUpdatesLifecycle() 147 assertTrue(cb.requestAndWaitForTargets(createPredictions(), in testRegisterPredictionUpdatesLifecycle() 150 client.unregisterPredictionUpdates(cb); in testRegisterPredictionUpdatesLifecycle() 153 assertFalse(cb.requestAndWaitForTargets(createPredictions(), in testRegisterPredictionUpdatesLifecycle() 216 RequestVerifier cb = new RequestVerifier(mReporter); in testSortTargets() local 217 assertTrue(cb.requestAndWaitForTargets(sortedTargets, in testSortTargets() 219 Executors.newSingleThreadExecutor(), cb))); in testSortTargets()
|
D | ServiceReporter.java | 63 void setPredictionsProvider(PredictionsProvider cb) { in setPredictionsProvider() argument 64 mPredictionsProvider = cb; in setPredictionsProvider() 71 void setSortedPredictionsProvider(SortedPredictionsProvider cb) { in setSortedPredictionsProvider() argument 72 mSortedPredictionsProvider = cb; in setSortedPredictionsProvider()
|
/cts/hostsidetests/net/app2/src/com/android/cts/net/hostside/app2/ |
D | MyService.java | 93 public void registerNetworkCallback(INetworkCallback cb) { 104 cb.onBlockedStatusChanged(network, blocked); 114 cb.onAvailable(network); 124 cb.onLost(network); 134 cb.onCapabilitiesChanged(network, cap); 143 cb.asBinder().linkToDeath(() -> unregisterNetworkCallback(), 0);
|
/cts/tests/tests/view/jni/ |
D | android_view_cts_ChoreographerNativeTest.cpp | 55 Callback* cb = static_cast<Callback*>(data); in frameCallback64() local 56 cb->count++; in frameCallback64() 57 cb->frameTime = std::chrono::nanoseconds{frameTimeNanos}; in frameCallback64() 83 static void verifyCallback(JNIEnv* env, Callback* cb, int expectedCount, in verifyCallback() argument 86 ASSERT(cb->count == expectedCount, "Choreographer failed to invoke '%s' %d times - actual: %d", in verifyCallback() 87 cb->name, expectedCount, cb->count); in verifyCallback() 89 auto duration = cb->frameTime - startTime; in verifyCallback() 91 cb->name, expectedCount); in verifyCallback()
|
/cts/hostsidetests/jvmti/base/jni/ |
D | redefine.cpp | 135 jvmtiEventCallbacks cb; in Java_android_jvmti_cts_JvmtiRedefineClassesTest_setTransformationEvent() local 136 memset(&cb, 0, sizeof(cb)); in Java_android_jvmti_cts_JvmtiRedefineClassesTest_setTransformationEvent() 137 cb.ClassFileLoadHook = CommonClassFileLoadHookRetransformable; in Java_android_jvmti_cts_JvmtiRedefineClassesTest_setTransformationEvent() 138 if (JvmtiErrorToException(env, jvmti_env, jvmti_env->SetEventCallbacks(&cb, sizeof(cb)))) { in Java_android_jvmti_cts_JvmtiRedefineClassesTest_setTransformationEvent()
|
/cts/tests/tests/systemui/src/android/systemui/cts/ |
D | ColorUtils.java | 50 final float cb = (V - b) / vtemp; in hue() local 53 H = cb - cg; in hue() 55 H = 2 + cr - cb; in hue()
|
/cts/tests/tests/net/ipsec/src/android/net/ipsec/ike/cts/ |
D | TestNetworkUtils.java | 78 TestNetworkCallback cb = new TestNetworkCallback(); in setupAndGetTestNetwork() local 79 connMgr.requestNetwork(nr, cb); in setupAndGetTestNetwork() 85 return cb; in setupAndGetTestNetwork()
|
/cts/tests/tests/transition/src/android/transition/cts/ |
D | SharedElementCallbackTest.java | 57 Callback cb = new Callback(); in testSnapshot() local 60 Parcelable snapshot = cb.onCaptureSharedElementSnapshot(originalView, matrix, screenBounds); in testSnapshot() 63 View view = cb.onCreateSnapshotView(context, snapshot); in testSnapshot()
|
/cts/hostsidetests/devicepolicy/app/PrintingApp/src/com/android/cts/devicepolicy/printingapp/ |
D | PrintActivity.java | 66 CancellationSignal signal, PrintDocumentAdapter.LayoutResultCallback cb, in onStart() 73 PrintDocumentAdapter.WriteResultCallback cb) { in onStart()
|
/cts/tests/tests/content/src/android/content/cts/ |
D | MockSyncAdapter.java | 81 public void onUnsyncableAccount(ISyncAdapterUnsyncableAccountCallback cb) in onUnsyncableAccount() argument 83 cb.onUnsyncableAccountDone(true); in onUnsyncableAccount()
|
/cts/hostsidetests/net/aidl/com/android/cts/net/hostside/ |
D | IMyService.aidl | 27 void registerNetworkCallback(in INetworkCallback cb); in registerNetworkCallback() argument
|
/cts/tests/tests/net/util/java/android/net/cts/util/ |
D | CtsNetUtils.java | 137 final TestNetworkCallback cb = new TestNetworkCallback(); in setupAndGetTestNetwork() local 138 mCm.requestNetwork(nr, cb); in setupAndGetTestNetwork() 144 return cb; in setupAndGetTestNetwork()
|
/cts/tests/tests/os/src/android/os/cts/ |
D | HandlerTest.java | 53 final Callback cb = new Callback() { in testConstructor() local 63 new Handler(cb); in testConstructor() 69 new Handler(Looper.getMainLooper(), cb); in testConstructor() local
|
/cts/tests/camera/src/android/hardware/camera2/cts/ |
D | AllocationTest.java | 315 float cb = yuvData[1] & 0xFF; // U channel in convertPixelYuvToRgb() local 320 float g = y - 0.34414f * (cb - 128) - 0.71414f * (cr - 128); in convertPixelYuvToRgb() 321 float b = y + 1.772f * (cb - 128); in convertPixelYuvToRgb()
|
/cts/hostsidetests/statsd/apps/statsdapp/src/com/android/server/cts/device/statsd/ |
D | AtomTests.java | 169 final CameraDevice.StateCallback cb = new CameraDevice.StateCallback() { in testCameraState() local 196 cam.openCamera(cameraIds[0], cb, handler); in testCameraState()
|
/cts/tests/tests/security/res/raw/ |
D | openssl_heartbleed_test_cert.pem | 77 c2:fa:9c:be:c3:da:76:2b:cb:4e:65:4d:b6:98:80:5d:66:d7:
|