Home
last modified time | relevance | path

Searched refs:callbacks (Results 1 – 15 of 15) 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 …]
DFirstAppWidgetProvider.java24 public static void setCallbacks(AppWidgetProviderCallbacks callbacks) { in setCallbacks() argument
26 sCallbacks = callbacks; in setCallbacks()
DSecondAppWidgetProvider.java24 public static void setCallbacks(AppWidgetProviderCallbacks callbacks) { in setCallbacks() argument
26 sCallbacks = callbacks; in setCallbacks()
/cts/tests/tests/print/src/android/print/cts/services/
DStubbablePrintService.java27 PrintServiceCallbacks callbacks = getCallbacks(); in onCreatePrinterDiscoverySession() local
28 if (callbacks != null) { in onCreatePrinterDiscoverySession()
37 PrintServiceCallbacks callbacks = getCallbacks(); in onRequestCancelPrintJob() local
38 if (callbacks != null) { in onRequestCancelPrintJob()
39 callbacks.onRequestCancelPrintJob(printJob); in onRequestCancelPrintJob()
45 PrintServiceCallbacks callbacks = getCallbacks(); in onPrintJobQueued() local
46 if (callbacks != null) { in onPrintJobQueued()
47 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.java32 PrinterDiscoverySessionCallbacks callbacks) { in StubbablePrinterDiscoverySession() argument
34 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()
DMockCallScreeningService.java69 public static void setCallbacks(CallScreeningServiceCallbacks callbacks) { in setCallbacks() argument
70 sCallbacks = callbacks; in setCallbacks()
DCallScreeningServiceTest.java97 CallScreeningServiceCallbacks callbacks = createCallbacks(); in testTelephonyCall_bindsToCallScreeningService() local
98 MockCallScreeningService.setCallbacks(callbacks); in testTelephonyCall_bindsToCallScreeningService()
102 if (callbacks.lock.tryAcquire(TestUtils.WAIT_FOR_CALL_ADDED_TIMEOUT_S, in testTelephonyCall_bindsToCallScreeningService()
DMockInCallService.java301 public static void setCallbacks(InCallServiceCallbacks callbacks) { in setCallbacks() argument
303 sCallbacks = callbacks; in setCallbacks()
/cts/tests/tests/appwidget/src/android/appwidget/cts/
DAppWidgetTest.java202 AppWidgetProviderCallbacks callbacks = createAppWidgetProviderCallbacks(invocationCounter); in testAppWidgetProviderCallbacks() local
203 FirstAppWidgetProvider.setCallbacks(callbacks); in testAppWidgetProviderCallbacks()
277 InOrder inOrder = inOrder(callbacks); in testAppWidgetProviderCallbacks()
279 inOrder.verify(callbacks).onEnabled(any(Context.class)); in testAppWidgetProviderCallbacks()
280 inOrder.verify(callbacks).onUpdate(any(Context.class), in testAppWidgetProviderCallbacks()
282 inOrder.verify(callbacks).onAppWidgetOptionsChanged(any(Context.class), in testAppWidgetProviderCallbacks()
285 inOrder.verify(callbacks).onUpdate(any(Context.class), in testAppWidgetProviderCallbacks()
287 inOrder.verify(callbacks).onAppWidgetOptionsChanged(any(Context.class), in testAppWidgetProviderCallbacks()
290 inOrder.verify(callbacks).onDeleted(any(Context.class), in testAppWidgetProviderCallbacks()
292 inOrder.verify(callbacks).onDeleted(any(Context.class), in testAppWidgetProviderCallbacks()
[all …]
/cts/tests/tests/print/src/android/print/cts/
DBasePrintTest.java659 PrinterDiscoverySessionCallbacks callbacks = mock(PrinterDiscoverySessionCallbacks.class); in createMockPrinterDiscoverySessionCallbacks() local
661 doCallRealMethod().when(callbacks).setSession(any(StubbablePrinterDiscoverySession.class)); in createMockPrinterDiscoverySessionCallbacks()
662 when(callbacks.getSession()).thenCallRealMethod(); in createMockPrinterDiscoverySessionCallbacks()
665 doAnswer(onStartPrinterDiscovery).when(callbacks).onStartPrinterDiscovery( in createMockPrinterDiscoverySessionCallbacks()
669 doAnswer(onStopPrinterDiscovery).when(callbacks).onStopPrinterDiscovery(); in createMockPrinterDiscoverySessionCallbacks()
672 doAnswer(onValidatePrinters).when(callbacks).onValidatePrinters( in createMockPrinterDiscoverySessionCallbacks()
676 doAnswer(onStartPrinterStateTracking).when(callbacks).onStartPrinterStateTracking( in createMockPrinterDiscoverySessionCallbacks()
680 doAnswer(onRequestCustomPrinterIcon).when(callbacks).onRequestCustomPrinterIcon( in createMockPrinterDiscoverySessionCallbacks()
685 doAnswer(onStopPrinterStateTracking).when(callbacks).onStopPrinterStateTracking( in createMockPrinterDiscoverySessionCallbacks()
689 doAnswer(onDestroy).when(callbacks).onDestroy(); in createMockPrinterDiscoverySessionCallbacks()
[all …]
DPrintDocumentAdapterContractTest.java1817 final PrinterDiscoverySessionCallbacks callbacks = in createFirstMockPrintServiceCallbacks() local
1900 return callbacks; in createFirstMockPrintServiceCallbacks()
/cts/tests/expectations/
Dknownfailures.txt198 description: "The timing measurements for preview callbacks are not reliable",