Searched refs:stateMask (Results 1 – 2 of 2) sorted by relevance
126 public void runOnceAtState(int stateMask, Runnable callback) { in runOnceAtState() argument127 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() argument150 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 …]
186 public boolean hasState(int stateMask) { in hasState() argument187 return mStateCallback.hasStates(stateMask); in hasState()200 public void runOnceAtState(int stateMask, Runnable callback) { in runOnceAtState() argument201 mStateCallback.runOnceAtState(stateMask, callback); in runOnceAtState()