Home
last modified time | relevance | path

Searched refs:callbacks (Results 1 – 25 of 30) sorted by relevance

12

/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()
DAppWidgetProviderWithFeatures.java24 public static void setCallbacks(AppWidgetProviderCallbacks callbacks) { in setCallbacks() argument
26 sCallbacks = callbacks; in setCallbacks()
/cts/tests/tests/print/printTestUtilLib/src/android/print/test/services/
DStubbablePrintService.java33 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()
DFirstPrintService.java25 public static void setCallbacks(PrintServiceCallbacks callbacks) { in setCallbacks() argument
27 sCallbacks = callbacks; in setCallbacks()
DStubbablePrinterDiscoverySession.java33 PrinterDiscoverySessionCallbacks callbacks) { in StubbablePrinterDiscoverySession() argument
35 mCallbacks = callbacks; in StubbablePrinterDiscoverySession()
/cts/tests/tests/telecom/src/android/telecom/cts/
DCallScreeningServiceTest.java99 CallScreeningServiceCallbacks callbacks = createCallbacks(); in testTelephonyCall_bindsToCallScreeningService() local
100 MockCallScreeningService.setCallbacks(callbacks); in testTelephonyCall_bindsToCallScreeningService()
104 if (callbacks.lock.tryAcquire(TestUtils.WAIT_FOR_CALL_ADDED_TIMEOUT_S, in testTelephonyCall_bindsToCallScreeningService()
125 CallScreeningServiceCallbacks callbacks = createCallbacks(); in testBindsToCallScreeningServiceWhenContactExist() local
126 MockCallScreeningService.setCallbacks(callbacks); in testBindsToCallScreeningServiceWhenContactExist()
132 if (callbacks.lock.tryAcquire(TestUtils.WAIT_FOR_CALL_ADDED_TIMEOUT_S, in testBindsToCallScreeningServiceWhenContactExist()
154 CallScreeningServiceCallbacks callbacks = createCallbacks(); in testVerificationFailed() local
155 MockCallScreeningService.setCallbacks(callbacks); in testVerificationFailed()
159 if (callbacks.lock.tryAcquire(TestUtils.WAIT_FOR_CALL_ADDED_TIMEOUT_S, in testVerificationFailed()
178 CallScreeningServiceCallbacks callbacks = createCallbacks(); in testNumberNotVerified() local
[all …]
DBasicInCallServiceTest.java104 final InCallServiceCallbacks callbacks = createCallbacks(); in testTelephonyCall_bindsToInCallServiceAndAddsCall() local
106 MockInCallService.setCallbacks(callbacks); in testTelephonyCall_bindsToInCallServiceAndAddsCall()
111 if (callbacks.lock.tryAcquire(TestUtils.WAIT_FOR_CALL_ADDED_TIMEOUT_S, in testTelephonyCall_bindsToInCallServiceAndAddsCall()
122 final InCallServiceCallbacks callbacks = new InCallServiceCallbacks() { in createCallbacks() local
130 return callbacks; in createCallbacks()
DMockCallScreeningService.java69 public static void setCallbacks(CallScreeningServiceCallbacks callbacks) { in setCallbacks() argument
70 sCallbacks = callbacks; in setCallbacks()
DMockInCallService.java447 public static void setCallbacks(InCallServiceCallbacks callbacks) { in setCallbacks() argument
449 sCallbacks = callbacks; in setCallbacks()
/cts/tests/input/InputInjectionApp/src/com/android/test/inputinjection/
DInputInjectionActivity.kt69 private lateinit var callbacks: IInputInjectionTestCallbacks in <lambda>() variable in com.android.test.inputinjection.InputInjectionActivity
77 callbacks = IInputInjectionTestCallbacks.Stub.asInterface( in <lambda>()
93 callbacks.onWindowFocused() in <lambda>()
116 callbacks.onTestInjectionFromApp(errors) in <lambda>()
120 callbacks.onKeyEvent(event) in <lambda>()
125 callbacks.onTouchEvent(event) in <lambda>()
/cts/hostsidetests/jvmti/attaching/app/jni/
Dcts_agent.cpp70 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/
Dtracking.cpp80 jvmtiEventCallbacks callbacks; in Java_android_jvmti_cts_JvmtiTrackingTest_setupObjectAllocCallback() local
81 memset(&callbacks, 0, sizeof(jvmtiEventCallbacks)); in Java_android_jvmti_cts_JvmtiTrackingTest_setupObjectAllocCallback()
83 callbacks.VMObjectAlloc = global ? ObjectAllocatedGlobal : ObjectAllocatedThread; in Java_android_jvmti_cts_JvmtiTrackingTest_setupObjectAllocCallback()
85 callbacks.VMObjectAlloc = nullptr; in Java_android_jvmti_cts_JvmtiTrackingTest_setupObjectAllocCallback()
88 jvmtiError ret = jvmti_env->SetEventCallbacks(&callbacks, sizeof(callbacks)); in Java_android_jvmti_cts_JvmtiTrackingTest_setupObjectAllocCallback()
/cts/hostsidetests/adpf/app/hintsession/src/cpp/external/
Dandroid_native_app_glue.c427 activity->callbacks->onDestroy = onDestroy; in ANativeActivity_onCreate()
428 activity->callbacks->onStart = onStart; in ANativeActivity_onCreate()
429 activity->callbacks->onResume = onResume; in ANativeActivity_onCreate()
430 activity->callbacks->onSaveInstanceState = onSaveInstanceState; in ANativeActivity_onCreate()
431 activity->callbacks->onPause = onPause; in ANativeActivity_onCreate()
432 activity->callbacks->onStop = onStop; in ANativeActivity_onCreate()
433 activity->callbacks->onConfigurationChanged = onConfigurationChanged; in ANativeActivity_onCreate()
434 activity->callbacks->onLowMemory = onLowMemory; in ANativeActivity_onCreate()
435 activity->callbacks->onWindowFocusChanged = onWindowFocusChanged; in ANativeActivity_onCreate()
436 activity->callbacks->onNativeWindowCreated = onNativeWindowCreated; in ANativeActivity_onCreate()
[all …]
/cts/tests/framework/base/windowmanager/src/android/server/wm/display/
DWindowContextTests.java138 final TestComponentCallbacks callbacks = new TestComponentCallbacks(); in testWindowContextRegisterComponentCallbacks() local
145 windowContext.registerComponentCallbacks(callbacks); in testWindowContextRegisterComponentCallbacks()
147 callbacks.mLatch = new CountDownLatch(1); in testWindowContextRegisterComponentCallbacks()
153 assertTrue(callbacks.mLatch.await(4, TimeUnit.SECONDS)); in testWindowContextRegisterComponentCallbacks()
157 Rect bounds = callbacks.mConfiguration.windowConfiguration.getBounds(); in testWindowContextRegisterComponentCallbacks()
160 windowContext.unregisterComponentCallbacks(callbacks); in testWindowContextRegisterComponentCallbacks()
168 final TestComponentCallbacks callbacks = new TestComponentCallbacks(); in testWindowContextGlobalConfigChanges() local
173 windowContext.registerComponentCallbacks(callbacks); in testWindowContextGlobalConfigChanges()
178 callbacks.waitForConfigChanged(); in testWindowContextGlobalConfigChanges()
185 expectedFontScale == callbacks.mConfiguration.fontScale); in testWindowContextGlobalConfigChanges()
[all …]
/cts/tests/tests/telecom3/src/android/telecom/cts/
DSelfManagedAwareInCallServiceTest.java186 SelfManagedAwareInCallService.CallCallback callbacks = in testSelfManagedSignalling() local
188 assertNotNull(callbacks); in testSelfManagedSignalling()
191 assertEquals(Call.STATE_DIALING, callbacks.waitDialingState()); in testSelfManagedSignalling()
195 assertEquals(Call.STATE_ACTIVE, callbacks.waitOnStateChanged()); in testSelfManagedSignalling()
203 assertEquals(Call.STATE_HOLDING, callbacks.waitOnStateChanged()); in testSelfManagedSignalling()
/cts/hostsidetests/appsecurity/test-apps/rro/OverlayTarget/src/com/android/cts/overlay/target/
DOverlayTargetActivity.java66 BiConsumer<OverlayTargetActivity, Configuration> callbacks) { in setConfigurationChangedCallback() argument
67 mConfigurationChangedCallback = callbacks; in setConfigurationChangedCallback()
/cts/tests/tests/print/printTestUtilLib/src/android/print/test/
DBasePrintTest.java757 PrinterDiscoverySessionCallbacks callbacks = mock(PrinterDiscoverySessionCallbacks.class); in createMockPrinterDiscoverySessionCallbacks() local
759 doCallRealMethod().when(callbacks).setSession(any(StubbablePrinterDiscoverySession.class)); in createMockPrinterDiscoverySessionCallbacks()
760 when(callbacks.getSession()).thenCallRealMethod(); in createMockPrinterDiscoverySessionCallbacks()
763 doAnswer(onStartPrinterDiscovery).when(callbacks).onStartPrinterDiscovery( in createMockPrinterDiscoverySessionCallbacks()
767 doAnswer(onStopPrinterDiscovery).when(callbacks).onStopPrinterDiscovery(); in createMockPrinterDiscoverySessionCallbacks()
770 doAnswer(onValidatePrinters).when(callbacks).onValidatePrinters( in createMockPrinterDiscoverySessionCallbacks()
774 doAnswer(onStartPrinterStateTracking).when(callbacks).onStartPrinterStateTracking( in createMockPrinterDiscoverySessionCallbacks()
778 doAnswer(onRequestCustomPrinterIcon).when(callbacks).onRequestCustomPrinterIcon( in createMockPrinterDiscoverySessionCallbacks()
783 doAnswer(onStopPrinterStateTracking).when(callbacks).onStopPrinterStateTracking( in createMockPrinterDiscoverySessionCallbacks()
787 doAnswer(onDestroy).when(callbacks).onDestroy(); in createMockPrinterDiscoverySessionCallbacks()
[all …]
/cts/tests/tests/appwidget/src/android/appwidget/cts/
DAppWidgetTest.java257 AppWidgetProviderCallbacks callbacks = createAppWidgetProviderCallbacks(invocationCounter); in testAppWidgetProviderCallbacks() local
258 FirstAppWidgetProvider.setCallbacks(callbacks); in testAppWidgetProviderCallbacks()
332 InOrder inOrder = inOrder(callbacks); in testAppWidgetProviderCallbacks()
334 inOrder.verify(callbacks).onEnabled(any(Context.class)); in testAppWidgetProviderCallbacks()
335 inOrder.verify(callbacks).onUpdate(any(Context.class), in testAppWidgetProviderCallbacks()
337 inOrder.verify(callbacks).onAppWidgetOptionsChanged(any(Context.class), in testAppWidgetProviderCallbacks()
340 inOrder.verify(callbacks).onUpdate(any(Context.class), in testAppWidgetProviderCallbacks()
342 inOrder.verify(callbacks).onAppWidgetOptionsChanged(any(Context.class), in testAppWidgetProviderCallbacks()
345 inOrder.verify(callbacks).onDeleted(any(Context.class), in testAppWidgetProviderCallbacks()
347 inOrder.verify(callbacks).onDeleted(any(Context.class), in testAppWidgetProviderCallbacks()
[all …]
/cts/tests/tests/print/src/android/print/cts/
DInteractionBetweenPrintDocumentAndPrinterDiscovery.java99 final PrinterDiscoverySessionCallbacks callbacks = in printerReappearsWhileCanceling() local
111 FirstPrintService.setCallbacks(createMockPrintServiceCallbacks((inv) -> callbacks, null, in printerReappearsWhileCanceling()
DPrintDocumentInfoTest.java321 final PrinterDiscoverySessionCallbacks callbacks = in createFirstMockPrintServiceCallbacks() local
323 return createMockPrintServiceCallbacks(invocation -> callbacks, invocation -> { in createFirstMockPrintServiceCallbacks()
/cts/tests/tests/telephony/current/src/android/telephony/cts/
DInCallServiceStateValidator.java75 public static void setCallbacks(InCallServiceCallbacks callbacks) { in setCallbacks() argument
77 sCallbacks = callbacks; in setCallbacks()
/cts/tests/input/src/android/input/cts/
DInputInjectionTest.kt97 val callbacks = withCallbacks(onTestResult = { errors: List<String?> -> in <lambda>() constant
103 startInjectionActivitySync(callbacks).use { in <lambda>()
/cts/tests/framework/base/windowmanager/util/src/android/server/wm/
DTestJournalProvider.java275 public final ArrayList<ActivityCallback> callbacks = new ArrayList<>(); field in TestJournalProvider.TestJournal
336 getTestJournal(owner).callbacks.add(callback); in addCallback()

12