Home | History | Annotate | Download | only in media

Lines Matching defs:cb

809      * @param cb Callback to add
811 public void addCallback(int types, Callback cb) {
812 addCallback(types, cb, 0);
826 * @param cb Callback to add
831 public void addCallback(int types, Callback cb, int flags) {
833 int index = findCallbackInfo(cb);
839 info = new CallbackInfo(cb, types, flags, this);
848 * @param cb Callback to remove
850 public void removeCallback(Callback cb) {
851 int index = findCallbackInfo(cb);
856 Log.w(TAG, "removeCallback(" + cb + "): callback not registered");
860 private int findCallbackInfo(Callback cb) {
864 if (info.cb == cb) {
1181 cbi.cb.onRouteSelected(cbi.router, type, info);
1189 cbi.cb.onRouteUnselected(cbi.router, type, info);
1209 cbi.cb.onRouteAdded(cbi.router, info);
1211 cbi.cb.onRouteSelected(cbi.router, newSupportedTypes, info);
1215 cbi.cb.onRouteChanged(cbi.router, info);
1219 cb.onRouteUnselected(cbi.router, oldSupportedTypes, info);
1221 cbi.cb.onRouteRemoved(cbi.router, info);
1229 cbi.cb.onRouteAdded(cbi.router, info);
1237 cbi.cb.onRouteRemoved(cbi.router, info);
1245 cbi.cb.onRouteGrouped(cbi.router, info, group, index);
1253 cbi.cb.onRouteUngrouped(cbi.router, info, group);
1261 cbi.cb.onRouteVolumeChanged(cbi.router, info);
1269 cbi.cb.onRoutePresentationDisplayChanged(cbi.router, info);
2593 public final Callback cb;
2596 public CallbackInfo(Callback cb, int type, int flags, MediaRouter router) {
2597 this.cb = cb;