Searched refs:stateMask (Results 1 – 2 of 2) sorted by relevance
163 public void runOnceAtState(int stateMask, Runnable callback) { in runOnceAtState() argument164 if ((mState & stateMask) == stateMask) { in runOnceAtState()168 if (mCallbacks.indexOfKey(stateMask) >= 0) { in runOnceAtState()169 callbacks = mCallbacks.get(stateMask); in runOnceAtState()175 mCallbacks.put(stateMask, callbacks); in runOnceAtState()185 public void addChangeListener(int stateMask, Consumer<Boolean> listener) { in addChangeListener() argument187 if (mStateChangeListeners.indexOfKey(stateMask) >= 0) { in addChangeListener()188 listeners = mStateChangeListeners.get(stateMask); in addChangeListener()191 mStateChangeListeners.put(stateMask, listeners); in addChangeListener()200 public boolean hasStates(int stateMask) { in hasStates() argument[all …]
238 public boolean hasState(int stateMask) { in hasState() argument239 return mStateCallback.hasStates(stateMask); in hasState()252 public void runOnceAtState(int stateMask, Runnable callback) { in runOnceAtState() argument253 mStateCallback.runOnceAtState(stateMask, callback); in runOnceAtState()