Home
last modified time | relevance | path

Searched refs:callbacks (Results 1 – 13 of 13) 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()
DFirstPrintService.java25 public static void setCallbacks(PrintServiceCallbacks callbacks) { in setCallbacks() argument
27 sCallbacks = callbacks; in setCallbacks()
DSecondPrintService.java25 public static void setCallbacks(PrintServiceCallbacks callbacks) { in setCallbacks() argument
27 sCallbacks = callbacks; in setCallbacks()
DStubbablePrinterDiscoverySession.java30 PrinterDiscoverySessionCallbacks callbacks) { in StubbablePrinterDiscoverySession() argument
32 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(3, TimeUnit.SECONDS)) { in testTelephonyCall_bindsToInCallServiceAndAddsCall()
90 final InCallServiceCallbacks callbacks = new InCallServiceCallbacks() { in createCallbacks() local
98 return callbacks; in createCallbacks()
DMockInCallService.java290 public static void setCallbacks(InCallServiceCallbacks callbacks) { in setCallbacks() argument
292 sCallbacks = callbacks; in setCallbacks()
/cts/tests/tests/print/src/android/print/cts/
DBasePrintTest.java439 PrinterDiscoverySessionCallbacks callbacks = mock(PrinterDiscoverySessionCallbacks.class); in createMockPrinterDiscoverySessionCallbacks() local
441 doCallRealMethod().when(callbacks).setSession(any(StubbablePrinterDiscoverySession.class)); in createMockPrinterDiscoverySessionCallbacks()
442 when(callbacks.getSession()).thenCallRealMethod(); in createMockPrinterDiscoverySessionCallbacks()
445 doAnswer(onStartPrinterDiscovery).when(callbacks).onStartPrinterDiscovery( in createMockPrinterDiscoverySessionCallbacks()
449 doAnswer(onStopPrinterDiscovery).when(callbacks).onStopPrinterDiscovery(); in createMockPrinterDiscoverySessionCallbacks()
452 doAnswer(onValidatePrinters).when(callbacks).onValidatePrinters( in createMockPrinterDiscoverySessionCallbacks()
456 doAnswer(onStartPrinterStateTracking).when(callbacks).onStartPrinterStateTracking( in createMockPrinterDiscoverySessionCallbacks()
460 doAnswer(onStopPrinterStateTracking).when(callbacks).onStopPrinterStateTracking( in createMockPrinterDiscoverySessionCallbacks()
464 doAnswer(onDestroy).when(callbacks).onDestroy(); in createMockPrinterDiscoverySessionCallbacks()
467 return callbacks; in createMockPrinterDiscoverySessionCallbacks()
DPrintDocumentAdapterContractTest.java1567 final PrinterDiscoverySessionCallbacks callbacks = in createFirstMockPrintServiceCallbacks() local
1650 return callbacks; in createFirstMockPrintServiceCallbacks()
/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/expectations/
Dknownfailures.txt258 description: "The timing measurements for preview callbacks are not reliable",