/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 | FirstAppWidgetProvider.java | 24 public static void setCallbacks(AppWidgetProviderCallbacks callbacks) { in setCallbacks() argument 26 sCallbacks = callbacks; in setCallbacks()
|
D | SecondAppWidgetProvider.java | 24 public static void setCallbacks(AppWidgetProviderCallbacks callbacks) { in setCallbacks() argument 26 sCallbacks = callbacks; in setCallbacks()
|
/cts/tests/tests/print/src/android/print/cts/services/ |
D | StubbablePrintService.java | 27 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()
|
D | FirstPrintService.java | 25 public static void setCallbacks(PrintServiceCallbacks callbacks) { in setCallbacks() argument 27 sCallbacks = callbacks; in setCallbacks()
|
D | SecondPrintService.java | 25 public static void setCallbacks(PrintServiceCallbacks callbacks) { in setCallbacks() argument 27 sCallbacks = callbacks; in setCallbacks()
|
D | StubbablePrinterDiscoverySession.java | 30 PrinterDiscoverySessionCallbacks callbacks) { in StubbablePrinterDiscoverySession() argument 32 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(3, TimeUnit.SECONDS)) { in testTelephonyCall_bindsToInCallServiceAndAddsCall() 90 final InCallServiceCallbacks callbacks = new InCallServiceCallbacks() { in createCallbacks() local 98 return callbacks; in createCallbacks()
|
D | MockInCallService.java | 290 public static void setCallbacks(InCallServiceCallbacks callbacks) { in setCallbacks() argument 292 sCallbacks = callbacks; in setCallbacks()
|
/cts/tests/tests/print/src/android/print/cts/ |
D | BasePrintTest.java | 439 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()
|
D | PrintDocumentAdapterContractTest.java | 1567 final PrinterDiscoverySessionCallbacks callbacks = in createFirstMockPrintServiceCallbacks() local 1650 return callbacks; in createFirstMockPrintServiceCallbacks()
|
/cts/tests/tests/appwidget/src/android/appwidget/cts/ |
D | AppWidgetTest.java | 202 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/ |
D | knownfailures.txt | 258 description: "The timing measurements for preview callbacks are not reliable",
|