Home
last modified time | relevance | path

Searched refs:OnBackInvokedCallback (Results 1 – 25 of 46) sorted by relevance

12

/frameworks/base/core/java/android/window/
DWindowOnBackInvokedDispatcher.java95 private final HashMap<OnBackInvokedCallback, Integer> mAllCallbacks = new HashMap<>();
100 public final TreeMap<Integer, ArrayList<OnBackInvokedCallback>>
161 @Priority int priority, @NonNull OnBackInvokedCallback callback) { in registerOnBackInvokedCallback()
172 @NonNull OnBackInvokedCallback callback, @Priority int priority) { in registerOnBackInvokedCallbackUnchecked()
191 ArrayList<OnBackInvokedCallback> callbacks = mOnBackInvokedCallbacks.get(priority); in registerOnBackInvokedCallbackUnchecked()
202 OnBackInvokedCallback previousTopCallback = getTopCallback(); in registerOnBackInvokedCallbackUnchecked()
214 public void unregisterOnBackInvokedCallback(@NonNull OnBackInvokedCallback callback) { in unregisterOnBackInvokedCallback()
229 OnBackInvokedCallback previousTopCallback = getTopCallback(); in unregisterOnBackInvokedCallback()
231 ArrayList<OnBackInvokedCallback> callbacks = mOnBackInvokedCallbacks.get(priority); in unregisterOnBackInvokedCallback()
257 private void sendCancelledIfInProgress(@NonNull OnBackInvokedCallback callback) { in sendCancelledIfInProgress()
[all …]
DProxyOnBackInvokedDispatcher.java51 private final List<Pair<OnBackInvokedCallback, Integer>> mCallbacks = new ArrayList<>();
63 int priority, @NonNull OnBackInvokedCallback callback) { in registerOnBackInvokedCallback()
74 public void registerSystemOnBackInvokedCallback(@NonNull OnBackInvokedCallback callback) { in registerSystemOnBackInvokedCallback()
80 @NonNull OnBackInvokedCallback callback) { in unregisterOnBackInvokedCallback()
94 @NonNull OnBackInvokedCallback callback, int priority) { in registerOnBackInvokedCallbackUnchecked()
124 for (Pair<OnBackInvokedCallback, Integer> callbackPair : mCallbacks) { in transferCallbacksToDispatcher()
140 for (Pair<OnBackInvokedCallback, Integer> callback : mCallbacks) { in clearCallbacksOnDispatcher()
DOnBackInvokedDispatcher.java83 @Priority @IntRange(from = 0) int priority, @NonNull OnBackInvokedCallback callback); in registerOnBackInvokedCallback()
91 void unregisterOnBackInvokedCallback(@NonNull OnBackInvokedCallback callback); in unregisterOnBackInvokedCallback()
97 default void registerSystemOnBackInvokedCallback(@NonNull OnBackInvokedCallback callback) { } in registerSystemOnBackInvokedCallback()
DImeOnBackInvokedDispatcher.java94 @NonNull OnBackInvokedCallback callback) { in registerOnBackInvokedCallback()
110 @NonNull OnBackInvokedCallback callback) { in unregisterOnBackInvokedCallback()
311 private final OnBackInvokedCallback mCallback;
313 ImeOnBackInvokedCallbackWrapper(@NonNull OnBackInvokedCallback callback) { in ImeOnBackInvokedCallbackWrapper()
DCompatOnBackInvokedCallback.java26 public interface CompatOnBackInvokedCallback extends OnBackInvokedCallback{
DOnBackInvokedCallback.java47 public interface OnBackInvokedCallback { interface
DOnBackAnimationCallback.java41 public interface OnBackAnimationCallback extends OnBackInvokedCallback {
/frameworks/base/packages/SystemUI/src/com/android/systemui/biometrics/ui/binder/
DCredentialPasswordViewBinder.kt10 import android.window.OnBackInvokedCallback in <lambda>()
40 val onBackInvokedCallback = OnBackInvokedCallback { host.onCredentialAborted() } in <lambda>()
97 private class OnBackButtonListener(private val onBackInvokedCallback: OnBackInvokedCallback) :
/frameworks/base/packages/SystemUI/src/com/android/systemui/back/domain/interactor/
DBackActionInteractor.kt21 import android.window.OnBackInvokedCallback in <lambda>()
73 OnBackInvokedCallback { onBackRequested() } in <lambda>()
/frameworks/base/packages/SystemUI/accessibility/accessibilitymenu/src/com/android/systemui/accessibility/accessibilitymenu/activity/
DA11yMenuSettingsActivity.java30 import android.window.OnBackInvokedCallback;
44 private OnBackInvokedCallback mCallback = () -> {
/frameworks/base/packages/SystemUI/src/com/android/systemui/keyguard/ui/binder/
DAlternateBouncerViewBinder.kt26 import android.window.OnBackInvokedCallback in <lambda>()
129 private val onBackInvokedCallback: OnBackInvokedCallback = OnBackInvokedCallback { in <lambda>()
/frameworks/base/packages/SystemUI/src/com/android/systemui/keyguard/
DWorkLockActivity.java36 import android.window.OnBackInvokedCallback;
66 private final OnBackInvokedCallback mBackCallback = this::onBackInvoked;
/frameworks/base/packages/SystemUI/src/com/android/systemui/user/
DCreateUserActivity.java28 import android.window.OnBackInvokedCallback;
67 private final OnBackInvokedCallback mBackCallback = this::onBackInvoked;
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/
DRemoteInputViewTest.java60 import android.window.OnBackInvokedCallback;
267 ArgumentCaptor<OnBackInvokedCallback> onBackInvokedCallbackCaptor = ArgumentCaptor.forClass( in testPredictiveBack_registerAndUnregister()
268 OnBackInvokedCallback.class); in testPredictiveBack_registerAndUnregister()
295 ArgumentCaptor<OnBackInvokedCallback> onBackInvokedCallbackCaptor = ArgumentCaptor.forClass( in testUiPredictiveBack_openAndDispatchCallback()
296 OnBackInvokedCallback.class); in testUiPredictiveBack_openAndDispatchCallback()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/controls/management/
DControlsEditingActivityTest.kt9 import android.window.OnBackInvokedCallback
57 @Captor private lateinit var captureCallback: ArgumentCaptor<OnBackInvokedCallback>
DControlsFavoritingActivityTest.kt10 import android.window.OnBackInvokedCallback
78 @Captor private lateinit var captureCallback: ArgumentCaptor<OnBackInvokedCallback>
DControlsProviderSelectorActivityTest.kt27 import android.window.OnBackInvokedCallback
88 @Captor private lateinit var captureCallback: ArgumentCaptor<OnBackInvokedCallback>
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/back/domain/interactor/
DBackActionInteractorTest.kt26 import android.window.OnBackInvokedCallback
313 private fun getBackInvokedCallback(): OnBackInvokedCallback { in getBackInvokedCallback()
315 val captor = argumentCaptor<OnBackInvokedCallback>() in getBackInvokedCallback()
/frameworks/base/packages/SystemUI/src/com/android/systemui/controls/management/
DControlsProviderSelectorActivity.kt32 import android.window.OnBackInvokedCallback in <lambda>()
82 private val mOnBackInvokedCallback = OnBackInvokedCallback { in <lambda>()
DControlsEditingActivity.kt31 import android.window.OnBackInvokedCallback
87 private val mOnBackInvokedCallback = OnBackInvokedCallback { in <lambda>()
DControlsFavoritingActivity.kt36 import android.window.OnBackInvokedCallback in <lambda>()
111 private val mOnBackInvokedCallback = OnBackInvokedCallback { in <lambda>()
/frameworks/base/packages/SystemUI/src/com/android/systemui/screenshot/
DLegacyScreenshotViewProxy.kt31 import android.window.OnBackInvokedCallback
186 val onBackInvokedCallback = OnBackInvokedCallback { in addPredictiveBackListener()
DScreenshotShelfViewProxy.kt37 import android.window.OnBackInvokedCallback in <lambda>()
284 val onBackInvokedCallback = OnBackInvokedCallback { in <lambda>()
/frameworks/base/core/tests/coretests/src/android/window/
DWindowOnBackInvokedDispatcherTest.java146 ArrayList<OnBackInvokedCallback> callbacksDefault = mDispatcher in assertCallbacksSize()
151 ArrayList<OnBackInvokedCallback> callbacksOverlay = mDispatcher in assertCallbacksSize()
157 private void assertTopCallback(OnBackInvokedCallback expectedCallback) { in assertTopCallback()
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DBackNavigationControllerTests.java67 import android.window.OnBackInvokedCallback;
562 OnBackInvokedCallback appCallback = createBackCallback(appLatch); in testUnregisterCallbacksWithSystemCallback()
563 OnBackInvokedCallback systemCallback = createBackCallback(systemLatch); in testUnregisterCallbacksWithSystemCallback()
769 private OnBackInvokedCallback createBackCallback(CountDownLatch latch) { in createBackCallback()
770 return new OnBackInvokedCallback() { in createBackCallback()

12