Lines Matching refs:piid

97         if (DEBUG) { Log.v(TAG, "trackPlayer() new piid=" + newPiid); }
108 public void playerAttributes(int piid, @NonNull AudioAttributes attr, int binderUid) {
111 final AudioPlaybackConfiguration apc = mPlayers.get(new Integer(piid));
112 if (checkConfigurationCaller(piid, apc, binderUid)) {
124 public void playerEvent(int piid, int event, int binderUid) {
125 if (DEBUG) { Log.v(TAG, String.format("playerEvent(piid=%d, event=%d)", piid, event)); }
128 final AudioPlaybackConfiguration apc = mPlayers.get(new Integer(piid));
136 if (checkConfigurationCaller(piid, apc, binderUid)) {
152 public void releasePlayer(int piid, int binderUid) {
153 if (DEBUG) { Log.v(TAG, "releasePlayer() for piid=" + piid); }
155 final AudioPlaybackConfiguration apc = mPlayers.get(new Integer(piid));
156 if (checkConfigurationCaller(piid, apc, binderUid)) {
157 mPlayers.remove(new Integer(piid));
165 public void playerDeath(int piid) {
166 releasePlayer(piid, 0);
182 for (int piid : mMutedPlayers) {
183 pw.println(" " + piid);
189 * Check that piid and uid are valid for the given valid configuration.
190 * @param piid the piid of the player.
191 * @param apc the configuration found for this piid.
196 private static boolean checkConfigurationCaller(int piid,
201 Log.e(TAG, "Forbidden operation from uid " + binderUid + " for player " + piid);
340 final Integer piid = piidIterator.next();
341 final AudioPlaybackConfiguration apc = mPlayers.get(piid);
355 Log.v(TAG, "call: muting player" + piid + " uid:" + apc.getClientUid());
357 mMutedPlayers.add(new Integer(piid));
359 Log.e(TAG, "call: error muting player " + piid, e);
375 for (int piid : mMutedPlayers) {
376 final AudioPlaybackConfiguration apc = mPlayers.get(piid);
379 Log.v(TAG, "call: unmuting player" + piid + " uid:" + apc.getClientUid());
382 Log.e(TAG, "call: error unmuting player " + piid + " uid:"
516 if (DEBUG) { Log.v(TAG, "DuckingManager: checkDuck() player piid:"
533 if (DEBUG) { Log.v(TAG, "DuckingManager: removedReleased() player piid: "
552 for (int piid : mDuckedPlayers) {
553 pw.print(" " + piid);
562 final int piid = new Integer(apc.getPlayerInterfaceId());
563 if (mDuckedPlayers.contains(piid)) {
564 if (DEBUG) { Log.v(TAG, "player piid:" + piid + " already ducked"); }
568 Log.v(TAG, "ducking (skipRamp=" + skipRamp + ") player piid:"
573 mDuckedPlayers.add(piid);
575 Log.e(TAG, "Error ducking player piid:" + piid + " uid:" + mUid, e);
580 for (int piid : mDuckedPlayers) {
581 final AudioPlaybackConfiguration apc = players.get(piid);
584 Log.v(TAG, "unducking player " + piid + " uid:" + mUid);
589 Log.e(TAG, "Error unducking player piid:" + piid + " uid:" + mUid, e);
592 // this piid was in the list of ducked players, but wasn't found
594 Log.v(TAG, "Error unducking player piid:" + piid