Home | History | Annotate | Download | only in nfc

Lines Matching refs:Callback

40     private final SparseArray<List<Callback>> mBackgroundCallbacks =
41 new SparseArray<List<Callback>>();
57 public interface Callback {
67 * and if it does, registers a callback for when that UID no longer has any foreground
69 * get a callback if this method returns true.
71 * @param callback Callback to be called
73 * @return true when the UID has an Activity in the foreground and the callback
76 public boolean registerUidToBackgroundCallback(Callback callback, int uid) {
81 // This uid is in the foreground; register callback for when it moves
83 List<Callback> callbacks = mBackgroundCallbacks.get(uid, new ArrayList<Callback>());
84 callbacks.add(callback);
119 ArrayList<Callback> pendingCallbacks = null;
121 List<Callback> callbacks = mBackgroundCallbacks.get(uid);
123 pendingCallbacks = new ArrayList<Callback>(callbacks);
130 for (Callback callback : pendingCallbacks) {
131 callback.onUidToBackground(uid);