Home
last modified time | relevance | path

Searched refs:callbacks (Results 1 – 24 of 24) sorted by relevance

/cts/tests/tests/appwidget/src/android/appwidget/cts/provider/
DStubbableAppWidgetProvider.java27 AppWidgetProviderCallbacks callbacks = getCallbacks(); in onUpdate() local
28 if (callbacks != null) { in onUpdate()
29 callbacks.onUpdate(context, appWidgetManager, appWidgetIds); in onUpdate()
36 AppWidgetProviderCallbacks callbacks = getCallbacks(); in onAppWidgetOptionsChanged() local
37 if (callbacks != null) { in onAppWidgetOptionsChanged()
38 callbacks.onAppWidgetOptionsChanged(context, appWidgetManager, appWidgetId, newOptions); in onAppWidgetOptionsChanged()
44 AppWidgetProviderCallbacks callbacks = getCallbacks(); in onDeleted() local
45 if (callbacks != null) { in onDeleted()
46 callbacks.onDeleted(context, appWidgetIds); in onDeleted()
52 AppWidgetProviderCallbacks callbacks = getCallbacks(); in onEnabled() local
[all …]
DSecondAppWidgetProvider.java24 public static void setCallbacks(AppWidgetProviderCallbacks callbacks) { in setCallbacks() argument
26 sCallbacks = callbacks; in setCallbacks()
DFirstAppWidgetProvider.java24 public static void setCallbacks(AppWidgetProviderCallbacks callbacks) { in setCallbacks() argument
26 sCallbacks = callbacks; in setCallbacks()
DAppWidgetProviderWithFeatures.java24 public static void setCallbacks(AppWidgetProviderCallbacks callbacks) { in setCallbacks() argument
26 sCallbacks = callbacks; in setCallbacks()
/cts/tests/tests/print/printTestUtilLib/src/android/print/test/services/
DStubbablePrintService.java33 PrintServiceCallbacks callbacks = getCallbacks(); in onCreatePrinterDiscoverySession() local
34 if (callbacks != null) { in onCreatePrinterDiscoverySession()
75 PrintServiceCallbacks callbacks = getCallbacks(); in onRequestCancelPrintJob() local
76 if (callbacks != null) { in onRequestCancelPrintJob()
77 callbacks.onRequestCancelPrintJob(printJob); in onRequestCancelPrintJob()
83 PrintServiceCallbacks callbacks = getCallbacks(); in onPrintJobQueued() local
84 if (callbacks != null) { in onPrintJobQueued()
85 callbacks.onPrintJobQueued(printJob); in onPrintJobQueued()
DSecondPrintService.java25 public static void setCallbacks(PrintServiceCallbacks callbacks) { in setCallbacks() argument
27 sCallbacks = callbacks; in setCallbacks()
DFirstPrintService.java25 public static void setCallbacks(PrintServiceCallbacks callbacks) { in setCallbacks() argument
27 sCallbacks = callbacks; in setCallbacks()
DStubbablePrinterDiscoverySession.java33 PrinterDiscoverySessionCallbacks callbacks) { in StubbablePrinterDiscoverySession() argument
35 mCallbacks = callbacks; in StubbablePrinterDiscoverySession()
/cts/tests/tests/telecom/src/android/telecom/cts/
DBasicInCallServiceTest.java73 final InCallServiceCallbacks callbacks = createCallbacks(); in testTelephonyCall_bindsToInCallServiceAndAddsCall() local
75 MockInCallService.setCallbacks(callbacks); in testTelephonyCall_bindsToInCallServiceAndAddsCall()
80 if (callbacks.lock.tryAcquire(TestUtils.WAIT_FOR_CALL_ADDED_TIMEOUT_S, in testTelephonyCall_bindsToInCallServiceAndAddsCall()
91 final InCallServiceCallbacks callbacks = new InCallServiceCallbacks() { in createCallbacks() local
99 return callbacks; in createCallbacks()
DCallScreeningServiceTest.java96 CallScreeningServiceCallbacks callbacks = createCallbacks(); in testTelephonyCall_bindsToCallScreeningService() local
97 MockCallScreeningService.setCallbacks(callbacks); in testTelephonyCall_bindsToCallScreeningService()
101 if (callbacks.lock.tryAcquire(TestUtils.WAIT_FOR_CALL_ADDED_TIMEOUT_S, in testTelephonyCall_bindsToCallScreeningService()
DMockCallScreeningService.java69 public static void setCallbacks(CallScreeningServiceCallbacks callbacks) { in setCallbacks() argument
70 sCallbacks = callbacks; in setCallbacks()
DMockInCallService.java369 public static void setCallbacks(InCallServiceCallbacks callbacks) { in setCallbacks() argument
371 sCallbacks = callbacks; in setCallbacks()
/cts/hostsidetests/jvmti/attaching/app/jni/
Dcts_agent.cpp70 jvmtiEventCallbacks callbacks; variable
71 memset(&callbacks, 0, sizeof(jvmtiEventCallbacks));
72 callbacks.ClassLoad = class_load;
73 callbacks.ClassPrepare = class_prepare;
74 jvmtiError ret = jvmti_env->SetEventCallbacks(&callbacks, sizeof(callbacks));
/cts/hostsidetests/jvmti/base/jni/
Dtracking.cpp63 jvmtiEventCallbacks callbacks; in Java_android_jvmti_cts_JvmtiTrackingTest_setupObjectAllocCallback() local
64 memset(&callbacks, 0, sizeof(jvmtiEventCallbacks)); in Java_android_jvmti_cts_JvmtiTrackingTest_setupObjectAllocCallback()
65 callbacks.VMObjectAlloc = enable ? ObjectAllocated : nullptr; in Java_android_jvmti_cts_JvmtiTrackingTest_setupObjectAllocCallback()
67 jvmtiError ret = jvmti_env->SetEventCallbacks(&callbacks, sizeof(callbacks)); in Java_android_jvmti_cts_JvmtiTrackingTest_setupObjectAllocCallback()
/cts/tests/tests/telecom3/src/android/telecom/cts/
DSelfManagedAwareInCallServiceTest.java177 SelfManagedAwareInCallService.CallCallback callbacks = in testSelfManagedSignalling() local
179 assertNotNull(callbacks); in testSelfManagedSignalling()
182 assertEquals(Call.STATE_DIALING, callbacks.waitDialingState()); in testSelfManagedSignalling()
186 assertEquals(Call.STATE_ACTIVE, callbacks.waitOnStateChanged()); in testSelfManagedSignalling()
194 assertEquals(Call.STATE_HOLDING, callbacks.waitOnStateChanged()); in testSelfManagedSignalling()
/cts/tests/tests/appwidget/src/android/appwidget/cts/
DAppWidgetTest.java230 AppWidgetProviderCallbacks callbacks = createAppWidgetProviderCallbacks(invocationCounter); in testAppWidgetProviderCallbacks() local
231 FirstAppWidgetProvider.setCallbacks(callbacks); in testAppWidgetProviderCallbacks()
305 InOrder inOrder = inOrder(callbacks); in testAppWidgetProviderCallbacks()
307 inOrder.verify(callbacks).onEnabled(any(Context.class)); in testAppWidgetProviderCallbacks()
308 inOrder.verify(callbacks).onUpdate(any(Context.class), in testAppWidgetProviderCallbacks()
310 inOrder.verify(callbacks).onAppWidgetOptionsChanged(any(Context.class), in testAppWidgetProviderCallbacks()
313 inOrder.verify(callbacks).onUpdate(any(Context.class), in testAppWidgetProviderCallbacks()
315 inOrder.verify(callbacks).onAppWidgetOptionsChanged(any(Context.class), in testAppWidgetProviderCallbacks()
318 inOrder.verify(callbacks).onDeleted(any(Context.class), in testAppWidgetProviderCallbacks()
320 inOrder.verify(callbacks).onDeleted(any(Context.class), in testAppWidgetProviderCallbacks()
[all …]
/cts/tests/tests/print/printTestUtilLib/src/android/print/test/
DBasePrintTest.java903 PrinterDiscoverySessionCallbacks callbacks = mock(PrinterDiscoverySessionCallbacks.class); in createMockPrinterDiscoverySessionCallbacks() local
905 doCallRealMethod().when(callbacks).setSession(any(StubbablePrinterDiscoverySession.class)); in createMockPrinterDiscoverySessionCallbacks()
906 when(callbacks.getSession()).thenCallRealMethod(); in createMockPrinterDiscoverySessionCallbacks()
909 doAnswer(onStartPrinterDiscovery).when(callbacks).onStartPrinterDiscovery( in createMockPrinterDiscoverySessionCallbacks()
913 doAnswer(onStopPrinterDiscovery).when(callbacks).onStopPrinterDiscovery(); in createMockPrinterDiscoverySessionCallbacks()
916 doAnswer(onValidatePrinters).when(callbacks).onValidatePrinters( in createMockPrinterDiscoverySessionCallbacks()
920 doAnswer(onStartPrinterStateTracking).when(callbacks).onStartPrinterStateTracking( in createMockPrinterDiscoverySessionCallbacks()
924 doAnswer(onRequestCustomPrinterIcon).when(callbacks).onRequestCustomPrinterIcon( in createMockPrinterDiscoverySessionCallbacks()
929 doAnswer(onStopPrinterStateTracking).when(callbacks).onStopPrinterStateTracking( in createMockPrinterDiscoverySessionCallbacks()
933 doAnswer(onDestroy).when(callbacks).onDestroy(); in createMockPrinterDiscoverySessionCallbacks()
[all …]
/cts/tests/tests/print/src/android/print/cts/
DInteractionBetweenPrintDocumentAndPrinterDiscovery.java99 final PrinterDiscoverySessionCallbacks callbacks = in printerReappearsWhileCanceling() local
111 FirstPrintService.setCallbacks(createMockPrintServiceCallbacks((inv) -> callbacks, null, in printerReappearsWhileCanceling()
DPrintDocumentInfoTest.java321 final PrinterDiscoverySessionCallbacks callbacks = in createFirstMockPrintServiceCallbacks() local
323 return createMockPrintServiceCallbacks(invocation -> callbacks, invocation -> { in createFirstMockPrintServiceCallbacks()
DPrintDocumentAdapterContractTest.java2068 final PrinterDiscoverySessionCallbacks callbacks = in createFirstMockPrintServiceCallbacks() local
2070 return createMockPrintServiceCallbacks(invocation -> callbacks, invocation -> { in createFirstMockPrintServiceCallbacks()
/cts/tests/framework/base/windowmanager/util/src/android/server/wm/
DTestJournalProvider.java245 public final ArrayList<ActivityCallback> callbacks = new ArrayList<>(); field in TestJournalProvider.TestJournal
283 getTestJournal(owner).callbacks.add(callback); in addCallback()
DActivityManagerTestBase.java1538 TestJournalContainer.get(activityName).callbacks, relaunched);
1674 this(TestJournalContainer.get(componentName).callbacks);
1677 ActivityLifecycleCounts(List<ActivityCallback> callbacks) {
1678 mCallbackHistory = callbacks;
1679 for (int i = 0; i < callbacks.size(); i++) {
1680 final ActivityCallback callback = callbacks.get(i);
/cts/tests/framework/base/windowmanager/src/android/server/wm/lifecycle/
DActivityLifecycleTests.java545 final List<LifecycleLog.ActivityCallback> callbacks; in testOnPostCreateAfterRecreateInOnStop() local
547 callbacks = Arrays.asList(ON_STOP, ON_DESTROY, PRE_ON_CREATE, ON_CREATE, ON_START, in testOnPostCreateAfterRecreateInOnStop()
550 callbacks = Arrays.asList(ON_DESTROY, PRE_ON_CREATE, ON_CREATE, ON_START, in testOnPostCreateAfterRecreateInOnStop()
555 CallbackTrackingActivity.class, getLifecycleLog(), callbacks, "recreate"); in testOnPostCreateAfterRecreateInOnStop()
/cts/tests/tests/graphics/src/android/graphics/drawable/cts/
DAnimatedImageDrawableTest.java191 Callback[] callbacks = new Callback[] { in testClearCallbacks() local
203 for (Callback cb : callbacks) { in testClearCallbacks()
210 for (Callback cb : callbacks) { in testClearCallbacks()