Home
last modified time | relevance | path

Searched refs:mOnBackInvokedCallbacks (Results 1 – 2 of 2) sorted by relevance

/aosp14/frameworks/base/core/java/android/window/
H A DWindowOnBackInvokedDispatcher.java74 mOnBackInvokedCallbacks = new TreeMap<>(); field in WindowOnBackInvokedDispatcher
119 if (!mOnBackInvokedCallbacks.containsKey(priority)) { in registerOnBackInvokedCallbackUnchecked()
120 mOnBackInvokedCallbacks.put(priority, new ArrayList<>()); in registerOnBackInvokedCallbackUnchecked()
122 ArrayList<OnBackInvokedCallback> callbacks = mOnBackInvokedCallbacks.get(priority); in registerOnBackInvokedCallbackUnchecked()
130 mOnBackInvokedCallbacks.get(prevPriority).remove(callback); in registerOnBackInvokedCallbackUnchecked()
157 ArrayList<OnBackInvokedCallback> callbacks = mOnBackInvokedCallbacks.get(priority); in unregisterOnBackInvokedCallback()
160 mOnBackInvokedCallbacks.remove(priority); in unregisterOnBackInvokedCallback()
212 mOnBackInvokedCallbacks.clear(); in clear()
244 for (Integer priority : mOnBackInvokedCallbacks.descendingKeySet()) { in getTopCallback()
245 ArrayList<OnBackInvokedCallback> callbacks = mOnBackInvokedCallbacks.get(priority); in getTopCallback()
/aosp14/frameworks/base/core/tests/coretests/src/android/window/
H A DWindowOnBackInvokedDispatcherTest.java130 .mOnBackInvokedCallbacks.get(PRIORITY_DEFAULT); in assertCallbacksSize()
135 .mOnBackInvokedCallbacks.get(PRIORITY_OVERLAY); in assertCallbacksSize()