Home
last modified time | relevance | path

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

/packages/apps/Launcher3/quickstep/src/com/android/quickstep/
DMultiStateCallback.java126 public void runOnceAtState(int stateMask, Runnable callback) { in runOnceAtState() argument
127 if ((mState & stateMask) == stateMask) { in runOnceAtState()
131 if (mCallbacks.indexOfKey(stateMask) >= 0) { in runOnceAtState()
132 callbacks = mCallbacks.get(stateMask); in runOnceAtState()
138 mCallbacks.put(stateMask, callbacks); in runOnceAtState()
148 public void addChangeListener(int stateMask, Consumer<Boolean> listener) { in addChangeListener() argument
150 if (mStateChangeListeners.indexOfKey(stateMask) >= 0) { in addChangeListener()
151 listeners = mStateChangeListeners.get(stateMask); in addChangeListener()
154 mStateChangeListeners.put(stateMask, listeners); in addChangeListener()
163 public boolean hasStates(int stateMask) { in hasStates() argument
[all …]
DGestureState.java186 public boolean hasState(int stateMask) { in hasState() argument
187 return mStateCallback.hasStates(stateMask); in hasState()
200 public void runOnceAtState(int stateMask, Runnable callback) { in runOnceAtState() argument
201 mStateCallback.runOnceAtState(stateMask, callback); in runOnceAtState()