Lines Matching defs:cb
1317 public void forceVolumeControlStream(int streamType, IBinder cb) {
1326 mForceControlStreamClient = new ForceControlStreamClient(cb);
1334 ForceControlStreamClient(IBinder cb) {
1335 if (cb != null) {
1337 cb.linkToDeath(this, 0);
1340 Log.w(TAG, "ForceControlStreamClient() could not link to "+cb+" binder death");
1341 cb = null;
1344 mCb = cb;
1511 public void setStreamSolo(int streamType, boolean state, IBinder cb) {
1520 mStreamStates[stream].mute(cb, state);
1525 public void setStreamMute(int streamType, boolean state, IBinder cb) {
1539 mStreamStates[stream].mute(cb, state);
1578 RmtSbmxFullVolDeathHandler(IBinder cb) {
1579 mICallback = cb;
1581 cb.linkToDeath(this, 0/*flags*/);
1587 boolean isHandlerFor(IBinder cb) {
1588 return mICallback.equals(cb);
1608 private boolean discardRmtSbmxFullVolDeathHandlerFor(IBinder cb) {
1612 if (handler.isHandlerFor(cb)) {
1622 private boolean hasRmtSbmxFullVolDeathHandlerFor(IBinder cb) {
1625 if (it.next().isHandlerFor(cb)) {
1636 public void forceRemoteSubmixFullVolume(boolean startForcing, IBinder cb) {
1637 if (cb == null) {
1648 if (!hasRmtSbmxFullVolDeathHandlerFor(cb)) {
1649 mRmtSbmxFullVolDeathHandlers.add(new RmtSbmxFullVolDeathHandler(cb));
1658 if (discardRmtSbmxFullVolDeathHandlerFor(cb) && (mRmtSbmxFullVolRefCount > 0)) {
1676 public void setMasterMute(boolean state, int flags, String callingPackage, IBinder cb) {
1677 setMasterMuteInternal(state, flags, callingPackage, cb, Binder.getCallingUid());
1680 private void setMasterMuteInternal(boolean state, int flags, String callingPackage, IBinder cb,
2038 SetModeDeathHandler(IBinder cb, int pid) {
2039 mCb = cb;
2081 public void setMode(int mode, IBinder cb) {
2105 newModeOwnerPid = setModeInt(mode, cb, Binder.getCallingPid());
2117 private int setModeInt(int mode, IBinder cb, int pid) {
2120 if (cb == null) {
2143 cb = hdlr.getBinder();
2152 hdlr = new SetModeDeathHandler(cb, pid);
2156 cb.linkToDeath(hdlr, 0);
2159 Log.w(TAG, "setMode() could not link to "+cb+" binder death");
2176 cb.unlinkToDeath(hdlr, 0);
2531 public void startBluetoothSco(IBinder cb, int targetSdkVersion) {
2535 startBluetoothScoInt(cb, scoAudioMode);
2539 public void startBluetoothScoVirtualCall(IBinder cb) {
2540 startBluetoothScoInt(cb, SCO_MODE_VIRTUAL_CALL);
2543 void startBluetoothScoInt(IBinder cb, int scoAudioMode){
2548 ScoClient client = getScoClient(cb, true);
2560 public void stopBluetoothSco(IBinder cb){
2565 ScoClient client = getScoClient(cb, false);
2582 ScoClient(IBinder cb) {
2583 mCb = cb;
2774 private ScoClient getScoClient(IBinder cb, boolean create) {
2780 if (client.getBinder() == cb)
2784 client = new ScoClient(cb);
3698 public void mute(IBinder cb, boolean state) {
3700 VolumeDeathHandler handler = getDeathHandler_syncVSS(cb, state);
3747 VolumeDeathHandler(IBinder cb) {
3748 mICallback = cb;
3831 private VolumeDeathHandler getDeathHandler_syncVSS(IBinder cb, boolean state) {
3836 if (cb == handler.mICallback) {
3843 handler = new VolumeDeathHandler(cb);
5131 public int requestAudioFocus(AudioAttributes aa, int durationHint, IBinder cb,
5153 return mMediaFocusControl.requestAudioFocus(aa, durationHint, cb, fd,
5837 public void setMasterMuteForUid(boolean state, int flags, String callingPackage, IBinder cb,
5839 setMasterMuteInternal(state, flags, callingPackage, cb, uid);