Home
last modified time | relevance | path

Searched refs:interceptor (Results 1 – 16 of 16) sorted by relevance

/frameworks/base/libs/hostgraphics/
DANativeWindow.cpp32 ANativeWindow_cancelBufferInterceptor interceptor, in ANativeWindow_setCancelBufferInterceptor() argument
34 return window->perform(window, NATIVE_WINDOW_SET_CANCEL_INTERCEPTOR, interceptor, data); in ANativeWindow_setCancelBufferInterceptor()
38 ANativeWindow_dequeueBufferInterceptor interceptor, in ANativeWindow_setDequeueBufferInterceptor() argument
40 return window->perform(window, NATIVE_WINDOW_SET_DEQUEUE_INTERCEPTOR, interceptor, data); in ANativeWindow_setDequeueBufferInterceptor()
44 ANativeWindow_queueBufferInterceptor interceptor, in ANativeWindow_setQueueBufferInterceptor() argument
46 return window->perform(window, NATIVE_WINDOW_SET_QUEUE_INTERCEPTOR, interceptor, data); in ANativeWindow_setQueueBufferInterceptor()
50 ANativeWindow_performInterceptor interceptor, void* data) { in ANativeWindow_setPerformInterceptor() argument
51 return window->perform(window, NATIVE_WINDOW_SET_PERFORM_INTERCEPTOR, interceptor, data); in ANativeWindow_setPerformInterceptor()
/frameworks/native/libs/nativewindow/include/apex/
Dwindow.h125 ANativeWindow_cancelBufferInterceptor interceptor,
141 ANativeWindow_dequeueBufferInterceptor interceptor,
156 ANativeWindow_performInterceptor interceptor, void* data);
170 ANativeWindow_queueBufferInterceptor interceptor,
/frameworks/base/tests/utils/testutils/java/com/android/internal/util/test/
DBroadcastInterceptingContext.java128 final BroadcastInterceptor interceptor = new BroadcastInterceptor(null, filter, null); in nextBroadcastIntent() local
130 mInterceptors.add(interceptor); in nextBroadcastIntent()
132 return interceptor; in nextBroadcastIntent()
194 final BroadcastInterceptor interceptor = i.next(); in unregisterReceiver() local
195 if (receiver.equals(interceptor.mReceiver)) { in unregisterReceiver()
207 final BroadcastInterceptor interceptor = i.next(); in sendBroadcast() local
208 if (interceptor.dispatchBroadcast(intent)) { in sendBroadcast()
/frameworks/opt/car/services/updatableServices/src/com/android/server/wm/
DCarActivityInterceptorUpdatableImpl.java101 CarActivityInterceptorUpdatable interceptor = mInterceptors.valueAt(i); in onInterceptActivityLaunch() local
102 ActivityInterceptResultWrapper result = interceptor.onInterceptActivityLaunch(info); in onInterceptActivityLaunch()
119 @NonNull CarActivityInterceptorUpdatable interceptor) { in registerInterceptor() argument
125 mInterceptors.put(index, interceptor); in registerInterceptor()
286 CarActivityInterceptorUpdatable interceptor = mInterceptors.valueAt(i); in dump() local
287 writer.println("Interceptor " + interceptor + " is registered at index " + i); in dump()
/frameworks/native/libs/nativewindow/
DANativeWindow.cpp430 ANativeWindow_cancelBufferInterceptor interceptor, in ANativeWindow_setCancelBufferInterceptor() argument
432 return window->perform(window, NATIVE_WINDOW_SET_CANCEL_INTERCEPTOR, interceptor, data); in ANativeWindow_setCancelBufferInterceptor()
436 ANativeWindow_dequeueBufferInterceptor interceptor, in ANativeWindow_setDequeueBufferInterceptor() argument
438 return window->perform(window, NATIVE_WINDOW_SET_DEQUEUE_INTERCEPTOR, interceptor, data); in ANativeWindow_setDequeueBufferInterceptor()
442 ANativeWindow_performInterceptor interceptor, void* data) { in ANativeWindow_setPerformInterceptor() argument
443 return window->perform(window, NATIVE_WINDOW_SET_PERFORM_INTERCEPTOR, interceptor, data); in ANativeWindow_setPerformInterceptor()
447 ANativeWindow_queueBufferInterceptor interceptor, in ANativeWindow_setQueueBufferInterceptor() argument
449 return window->perform(window, NATIVE_WINDOW_SET_QUEUE_INTERCEPTOR, interceptor, data); in ANativeWindow_setQueueBufferInterceptor()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/collection/
DNotifCollection.java262 void addNotificationDismissInterceptor(NotifDismissInterceptor interceptor) { in addNotificationDismissInterceptor() argument
265 if (mDismissInterceptors.contains(interceptor)) { in addNotificationDismissInterceptor()
266 throw new IllegalArgumentException("Interceptor " + interceptor + " already added."); in addNotificationDismissInterceptor()
268 mDismissInterceptors.add(interceptor); in addNotificationDismissInterceptor()
269 interceptor.setCallback(this::onEndDismissInterception); in addNotificationDismissInterceptor()
763 for (NotifDismissInterceptor interceptor : mDismissInterceptors) { in updateDismissInterceptors()
764 if (interceptor.shouldInterceptDismissal(entry)) { in updateDismissInterceptors()
765 entry.mDismissInterceptors.add(interceptor); in updateDismissInterceptors()
788 NotifDismissInterceptor interceptor, in onEndDismissInterception() argument
797 if (!entry.mDismissInterceptors.remove(interceptor)) { in onEndDismissInterception()
[all …]
DNotifPipeline.kt120 fun addNotificationDismissInterceptor(interceptor: NotifDismissInterceptor) { in addNotificationDismissInterceptor()
121 mNotifCollection.addNotificationDismissInterceptor(interceptor) in addNotificationDismissInterceptor()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/collection/notifcollection/
DNotifDismissInterceptor.java64 NotifDismissInterceptor interceptor, in onEndDismissInterception() argument
/frameworks/base/packages/SystemUI/compose/features/src/com/android/systemui/common/ui/compose/
DSelectedUserAwareInputConnection.kt52 interceptor = { request, nextHandler -> in <lambda>()
/frameworks/native/libs/gui/
DSurface.cpp416 auto interceptor = c->mDequeueInterceptor; in hook_dequeueBuffer() local
418 return interceptor(window, Surface::dequeueBufferInternal, data, buffer, fenceFd); in hook_dequeueBuffer()
436 auto interceptor = c->mCancelInterceptor; in hook_cancelBuffer() local
438 return interceptor(window, Surface::cancelBufferInternal, data, buffer, fenceFd); in hook_cancelBuffer()
455 auto interceptor = c->mQueueInterceptor; in hook_queueBuffer() local
457 return interceptor(window, Surface::queueBufferInternal, data, buffer, fenceFd); in hook_queueBuffer()
539 auto interceptor = c->mQueryInterceptor; in hook_query() local
541 return interceptor(window, Surface::queryInternal, data, what, value); in hook_query()
1717 ANativeWindow_cancelBufferInterceptor interceptor = in dispatchAddCancelInterceptor() local
1721 mCancelInterceptor = interceptor; in dispatchAddCancelInterceptor()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/companion/virtual/
DVirtualDeviceManagerServiceTest.java1826 IVirtualDeviceIntentInterceptor.Stub interceptor = in canActivityBeLaunched_intentInterceptedWhenRegistered_activityNoLaunch() local
1828 doNothing().when(interceptor).onIntentIntercepted(any()); in canActivityBeLaunched_intentInterceptedWhenRegistered_activityNoLaunch()
1829 doReturn(interceptor).when(interceptor).asBinder(); in canActivityBeLaunched_intentInterceptedWhenRegistered_activityNoLaunch()
1830 doReturn(interceptor).when(interceptor).queryLocalInterface(anyString()); in canActivityBeLaunched_intentInterceptedWhenRegistered_activityNoLaunch()
1846 mDeviceImpl.registerIntentInterceptor(interceptor, intentFilter); in canActivityBeLaunched_intentInterceptedWhenRegistered_activityNoLaunch()
1851 verify(interceptor).onIntentIntercepted(intentCaptor.capture()); in canActivityBeLaunched_intentInterceptedWhenRegistered_activityNoLaunch()
1858 mDeviceImpl.unregisterIntentInterceptor(interceptor); in canActivityBeLaunched_intentInterceptedWhenRegistered_activityNoLaunch()
1869 IVirtualDeviceIntentInterceptor.Stub interceptor = in canActivityBeLaunched_noMatchIntentFilter_activityLaunches() local
1871 doNothing().when(interceptor).onIntentIntercepted(any()); in canActivityBeLaunched_noMatchIntentFilter_activityLaunches()
1872 doReturn(interceptor).when(interceptor).asBinder(); in canActivityBeLaunched_noMatchIntentFilter_activityLaunches()
[all …]
DGenericWindowPolicyControllerTest.java595 IVirtualDeviceIntentInterceptor.Stub interceptor = in canActivityBeLaunched_intentInterceptedWhenRegistered_activityNoLaunch() local
597 doNothing().when(interceptor).onIntentIntercepted(any()); in canActivityBeLaunched_intentInterceptedWhenRegistered_activityNoLaunch()
598 doReturn(interceptor).when(interceptor).asBinder(); in canActivityBeLaunched_intentInterceptedWhenRegistered_activityNoLaunch()
599 doReturn(interceptor).when(interceptor).queryLocalInterface(anyString()); in canActivityBeLaunched_intentInterceptedWhenRegistered_activityNoLaunch()
/frameworks/base/services/core/java/com/android/server/wm/
DDragDropController.java589 final DragState.InputInterceptor interceptor = in handleMessage() local
591 if (interceptor == null) return; in handleMessage()
593 interceptor.tearDown(); in handleMessage()
DActivityStarter.java334 ActivityTaskSupervisor supervisor, ActivityStartInterceptor interceptor) { in DefaultFactory() argument
337 mInterceptor = interceptor; in DefaultFactory()
645 ActivityTaskSupervisor supervisor, ActivityStartInterceptor interceptor) { in ActivityStarter() argument
650 mInterceptor = interceptor; in ActivityStarter()
/frameworks/native/libs/nativewindow/include/system/
Dwindow.h1306 ANativeWindow_queryInterceptor interceptor, in ANativeWindow_setQueryInterceptor() argument
1308 return window->perform(window, NATIVE_WINDOW_SET_QUERY_INTERCEPTOR, interceptor, data); in ANativeWindow_setQueryInterceptor()
/frameworks/base/services/companion/java/com/android/server/companion/virtual/
DVirtualDeviceImpl.java1481 for (Map.Entry<IBinder, IntentFilter> interceptor : mIntentInterceptors.entrySet()) {
1482 IntentFilter intentFilter = interceptor.getValue();
1494 IVirtualDeviceIntentInterceptor.Stub.asInterface(interceptor.getKey())