Lines Matching refs:cbs
386 ArrayList<Callback> cbs = mOpModeWatchers.get(code);
387 if (cbs != null) {
391 repCbs.addAll(cbs);
393 cbs = mPackageModeWatchers.get(packageName);
394 if (cbs != null) {
398 repCbs.addAll(cbs);
421 String packageName, int op, ArrayList<Callback> cbs) {
422 if (cbs == null) {
428 for (int i=0; i<cbs.size(); i++) {
429 Callback cb = cbs.get(i);
519 ArrayList<Callback> cbs = mOpModeWatchers.get(op);
520 if (cbs == null) {
521 cbs = new ArrayList<Callback>();
522 mOpModeWatchers.put(op, cbs);
524 cbs.add(cb);
527 ArrayList<Callback> cbs = mPackageModeWatchers.get(packageName);
528 if (cbs == null) {
529 cbs = new ArrayList<Callback>();
530 mPackageModeWatchers.put(packageName, cbs);
532 cbs.add(cb);
544 ArrayList<Callback> cbs = mOpModeWatchers.valueAt(i);
545 cbs.remove(cb);
546 if (cbs.size() <= 0) {
551 ArrayList<Callback> cbs = mPackageModeWatchers.valueAt(i);
552 cbs.remove(cb);
553 if (cbs.size() <= 0) {