/cts/tests/tests/appwidget/src/android/appwidget/cts/provider/ |
D | StubbableAppWidgetProvider.java | 27 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 …]
|
D | SecondAppWidgetProvider.java | 24 public static void setCallbacks(AppWidgetProviderCallbacks callbacks) { in setCallbacks() argument 26 sCallbacks = callbacks; in setCallbacks()
|
D | FirstAppWidgetProvider.java | 24 public static void setCallbacks(AppWidgetProviderCallbacks callbacks) { in setCallbacks() argument 26 sCallbacks = callbacks; in setCallbacks()
|
D | AppWidgetProviderWithFeatures.java | 24 public static void setCallbacks(AppWidgetProviderCallbacks callbacks) { in setCallbacks() argument 26 sCallbacks = callbacks; in setCallbacks()
|
/cts/tests/tests/print/printTestUtilLib/src/android/print/test/services/ |
D | StubbablePrintService.java | 33 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()
|
D | SecondPrintService.java | 25 public static void setCallbacks(PrintServiceCallbacks callbacks) { in setCallbacks() argument 27 sCallbacks = callbacks; in setCallbacks()
|
D | FirstPrintService.java | 25 public static void setCallbacks(PrintServiceCallbacks callbacks) { in setCallbacks() argument 27 sCallbacks = callbacks; in setCallbacks()
|
D | StubbablePrinterDiscoverySession.java | 33 PrinterDiscoverySessionCallbacks callbacks) { in StubbablePrinterDiscoverySession() argument 35 mCallbacks = callbacks; in StubbablePrinterDiscoverySession()
|
/cts/tests/tests/telecom/src/android/telecom/cts/ |
D | BasicInCallServiceTest.java | 73 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()
|
D | CallScreeningServiceTest.java | 96 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()
|
D | MockCallScreeningService.java | 69 public static void setCallbacks(CallScreeningServiceCallbacks callbacks) { in setCallbacks() argument 70 sCallbacks = callbacks; in setCallbacks()
|
D | MockInCallService.java | 369 public static void setCallbacks(InCallServiceCallbacks callbacks) { in setCallbacks() argument 371 sCallbacks = callbacks; in setCallbacks()
|
/cts/hostsidetests/jvmti/attaching/app/jni/ |
D | cts_agent.cpp | 70 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/ |
D | tracking.cpp | 63 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/ |
D | SelfManagedAwareInCallServiceTest.java | 177 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/ |
D | AppWidgetTest.java | 230 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/ |
D | BasePrintTest.java | 903 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/ |
D | InteractionBetweenPrintDocumentAndPrinterDiscovery.java | 99 final PrinterDiscoverySessionCallbacks callbacks = in printerReappearsWhileCanceling() local 111 FirstPrintService.setCallbacks(createMockPrintServiceCallbacks((inv) -> callbacks, null, in printerReappearsWhileCanceling()
|
D | PrintDocumentInfoTest.java | 321 final PrinterDiscoverySessionCallbacks callbacks = in createFirstMockPrintServiceCallbacks() local 323 return createMockPrintServiceCallbacks(invocation -> callbacks, invocation -> { in createFirstMockPrintServiceCallbacks()
|
D | PrintDocumentAdapterContractTest.java | 2068 final PrinterDiscoverySessionCallbacks callbacks = in createFirstMockPrintServiceCallbacks() local 2070 return createMockPrintServiceCallbacks(invocation -> callbacks, invocation -> { in createFirstMockPrintServiceCallbacks()
|
/cts/tests/framework/base/windowmanager/util/src/android/server/wm/ |
D | TestJournalProvider.java | 245 public final ArrayList<ActivityCallback> callbacks = new ArrayList<>(); field in TestJournalProvider.TestJournal 283 getTestJournal(owner).callbacks.add(callback); in addCallback()
|
D | ActivityManagerTestBase.java | 1538 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/ |
D | ActivityLifecycleTests.java | 545 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/ |
D | AnimatedImageDrawableTest.java | 191 Callback[] callbacks = new Callback[] { in testClearCallbacks() local 203 for (Callback cb : callbacks) { in testClearCallbacks() 210 for (Callback cb : callbacks) { in testClearCallbacks()
|