Home
last modified time | relevance | path

Searched refs:cb (Results 1 – 25 of 98) sorted by relevance

1234

/cts/tests/tests/graphics/src/android/graphics/drawable/cts/
DAnimatedImageDrawableTest.java168 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 …]
DTransitionDrawableTest.java84 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 …]
DDrawableWrapperTest.java103 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 …]
DRippleDrawableTest.java129 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()
DLayerDrawableTest.java349 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/
DNetworkCallbackTest.java97 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 …]
DMyServiceClient.java100 public void registerNetworkCallback(INetworkCallback cb) throws RemoteException { in registerNetworkCallback() argument
101 mService.registerNetworkCallback(cb); in registerNetworkCallback()
/cts/tests/tests/net/src/android/net/cts/
DConnectivityDiagnosticsManagerTest.java173 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 …]
DIkev2VpnTest.java426 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/
DAppPredictionServiceTest.java139 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()
DServiceReporter.java63 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/
DMyService.java93 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/
Dandroid_view_cts_ChoreographerNativeTest.cpp55 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/
Dredefine.cpp135 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/
DColorUtils.java50 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/
DTestNetworkUtils.java78 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/
DSharedElementCallbackTest.java57 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/
DPrintActivity.java66 CancellationSignal signal, PrintDocumentAdapter.LayoutResultCallback cb, in onStart()
73 PrintDocumentAdapter.WriteResultCallback cb) { in onStart()
/cts/tests/tests/content/src/android/content/cts/
DMockSyncAdapter.java81 public void onUnsyncableAccount(ISyncAdapterUnsyncableAccountCallback cb) in onUnsyncableAccount() argument
83 cb.onUnsyncableAccountDone(true); in onUnsyncableAccount()
/cts/hostsidetests/net/aidl/com/android/cts/net/hostside/
DIMyService.aidl27 void registerNetworkCallback(in INetworkCallback cb); in registerNetworkCallback() argument
/cts/tests/tests/net/util/java/android/net/cts/util/
DCtsNetUtils.java137 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/
DHandlerTest.java53 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/
DAllocationTest.java315 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/
DAtomTests.java169 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/
Dopenssl_heartbleed_test_cert.pem77 c2:fa:9c:be:c3:da:76:2b:cb:4e:65:4d:b6:98:80:5d:66:d7:

1234