Lines Matching defs:token
52 * @param token a token identifying the view that is managing the remote input
54 public void addRemoteInput(NotificationData.Entry entry, Object token) {
56 Preconditions.checkNotNull(token);
59 entry /* contains */, null /* remove */, token /* removeToken */);
61 mOpen.add(new Pair<>(new WeakReference<>(entry), token));
71 * @param token a token identifying the view that is requesting the removal. If non-null,
72 * the entry is only removed if the token matches the last added token for this
75 public void removeRemoteInput(NotificationData.Entry entry, Object token) {
78 pruneWeakThenRemoveAndContains(null /* contains */, entry /* remove */, token);
87 * @param token the token of the view managing the remote input.
89 public void addSpinning(String key, Object token) {
91 Preconditions.checkNotNull(token);
93 mSpinning.put(key, token);
100 * @param token a token identifying the view that is requesting the removal. If non-null,
101 * the entry is only removed if the token matches the last added token for this
104 public void removeSpinning(String key, Object token) {
107 if (token == null || mSpinning.get(key) == token) {
146 * @param removeToken if non-null, only removes an entry if this matches the token when the
162 // We need to update the token. Remove here and let caller reinsert it.