/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 | CallScreeningServiceTest.java | 100 CallScreeningServiceCallbacks callbacks = createCallbacks(); in testTelephonyCall_bindsToCallScreeningService() local 101 MockCallScreeningService.setCallbacks(callbacks); in testTelephonyCall_bindsToCallScreeningService() 105 if (callbacks.lock.tryAcquire(TestUtils.WAIT_FOR_CALL_ADDED_TIMEOUT_S, in testTelephonyCall_bindsToCallScreeningService() 126 CallScreeningServiceCallbacks callbacks = createCallbacks(); in testBindsToCallScreeningServiceWhenContactExist() local 127 MockCallScreeningService.setCallbacks(callbacks); in testBindsToCallScreeningServiceWhenContactExist() 133 if (callbacks.lock.tryAcquire(TestUtils.WAIT_FOR_CALL_ADDED_TIMEOUT_S, in testBindsToCallScreeningServiceWhenContactExist() 155 CallScreeningServiceCallbacks callbacks = createCallbacks(); in testVerificationFailed() local 156 MockCallScreeningService.setCallbacks(callbacks); in testVerificationFailed() 160 if (callbacks.lock.tryAcquire(TestUtils.WAIT_FOR_CALL_ADDED_TIMEOUT_S, in testVerificationFailed() 179 CallScreeningServiceCallbacks callbacks = createCallbacks(); in testNumberNotVerified() local [all …]
|
D | BasicInCallServiceTest.java | 106 final InCallServiceCallbacks callbacks = createCallbacks(); in testTelephonyCall_bindsToInCallServiceAndAddsCall() local 108 MockInCallService.setCallbacks(callbacks); in testTelephonyCall_bindsToInCallServiceAndAddsCall() 113 if (callbacks.lock.tryAcquire(TestUtils.WAIT_FOR_CALL_ADDED_TIMEOUT_S, in testTelephonyCall_bindsToInCallServiceAndAddsCall() 124 final InCallServiceCallbacks callbacks = new InCallServiceCallbacks() { in createCallbacks() local 132 return callbacks; in createCallbacks()
|
D | MockCallScreeningService.java | 69 public static void setCallbacks(CallScreeningServiceCallbacks callbacks) { in setCallbacks() argument 70 sCallbacks = callbacks; in setCallbacks()
|
D | MockInCallService.java | 368 public static void setCallbacks(InCallServiceCallbacks callbacks) { in setCallbacks() argument 370 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/net/src/android/net/cts/ |
D | NetworkAgentTest.kt | 370 val callbacks = thresholds.map { strength -> in testSignalStrengthThresholds() constant 391 callbacks.forEach { it.assertNoCallback(NO_CALLBACK_TIMEOUT) } in testSignalStrengthThresholds() 395 callbacks[0].expectAvailableCallbacks(agent.network) in testSignalStrengthThresholds() 396 callbacks[1].assertNoCallback(NO_CALLBACK_TIMEOUT) in testSignalStrengthThresholds() 397 callbacks[2].assertNoCallback(NO_CALLBACK_TIMEOUT) in testSignalStrengthThresholds() 401 callbacks[0].expectCapabilitiesThat(agent.network) { it.signalStrength == 80 } in testSignalStrengthThresholds() 402 callbacks[1].expectAvailableCallbacks(agent.network) in testSignalStrengthThresholds() 403 callbacks[2].expectAvailableCallbacks(agent.network) in testSignalStrengthThresholds() 407 callbacks[0].expectCapabilitiesThat(agent.network) { it.signalStrength == 55 } in testSignalStrengthThresholds() 408 callbacks[1].expectCapabilitiesThat(agent.network) { it.signalStrength == 55 } in testSignalStrengthThresholds() [all …]
|
/cts/tests/tests/print/printTestUtilLib/src/android/print/test/ |
D | BasePrintTest.java | 904 PrinterDiscoverySessionCallbacks callbacks = mock(PrinterDiscoverySessionCallbacks.class); in createMockPrinterDiscoverySessionCallbacks() local 906 doCallRealMethod().when(callbacks).setSession(any(StubbablePrinterDiscoverySession.class)); in createMockPrinterDiscoverySessionCallbacks() 907 when(callbacks.getSession()).thenCallRealMethod(); in createMockPrinterDiscoverySessionCallbacks() 910 doAnswer(onStartPrinterDiscovery).when(callbacks).onStartPrinterDiscovery( in createMockPrinterDiscoverySessionCallbacks() 914 doAnswer(onStopPrinterDiscovery).when(callbacks).onStopPrinterDiscovery(); in createMockPrinterDiscoverySessionCallbacks() 917 doAnswer(onValidatePrinters).when(callbacks).onValidatePrinters( in createMockPrinterDiscoverySessionCallbacks() 921 doAnswer(onStartPrinterStateTracking).when(callbacks).onStartPrinterStateTracking( in createMockPrinterDiscoverySessionCallbacks() 925 doAnswer(onRequestCustomPrinterIcon).when(callbacks).onRequestCustomPrinterIcon( in createMockPrinterDiscoverySessionCallbacks() 930 doAnswer(onStopPrinterStateTracking).when(callbacks).onStopPrinterStateTracking( in createMockPrinterDiscoverySessionCallbacks() 934 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 293 getTestJournal(owner).callbacks.add(callback); in addCallback()
|
D | ActivityManagerTestBase.java | 1596 TestJournalContainer.get(activityName).callbacks, relaunched); 1733 updateCount(TestJournalContainer.get(componentName).callbacks); 1736 ActivityLifecycleCounts(List<ActivityCallback> callbacks) { 1737 updateCount(callbacks); 1740 private void updateCount(List<ActivityCallback> callbacks) { 1744 for (int i = 0; i < callbacks.size(); i++) { 1745 final ActivityCallback callback = callbacks.get(i); 1772 updateCount(TestJournalContainer.get(mActivityName).callbacks);
|
/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()
|