Home
last modified time | relevance | path

Searched refs:piid (Results 1 – 7 of 7) sorted by relevance

/frameworks/base/services/core/java/com/android/server/audio/
DPlaybackActivityMonitor.java139 final int piid = apc.getPlayerInterfaceId(); in checkBanPlayer() local
141 Log.v(TAG, "banning player " + piid + " uid:" + uid); in checkBanPlayer()
144 Log.e(TAG, "error banning player " + piid + " uid:" + uid, e); in checkBanPlayer()
170 public void playerAttributes(int piid, @NonNull AudioAttributes attr, int binderUid) { in playerAttributes() argument
173 final AudioPlaybackConfiguration apc = mPlayers.get(new Integer(piid)); in playerAttributes()
174 if (checkConfigurationCaller(piid, apc, binderUid)) { in playerAttributes()
175 sEventLogger.log(new AudioAttrEvent(piid, attr)); in playerAttributes()
223 public void playerEvent(int piid, int event, int binderUid) { in playerEvent() argument
224 if (DEBUG) { Log.v(TAG, String.format("playerEvent(piid=%d, event=%d)", piid, event)); } in playerEvent()
227 final AudioPlaybackConfiguration apc = mPlayers.get(new Integer(piid)); in playerEvent()
[all …]
DAudioService.java7210 public void playerAttributes(int piid, AudioAttributes attr) { in playerAttributes() argument
7211 mPlaybackMonitor.playerAttributes(piid, attr, Binder.getCallingUid()); in playerAttributes()
7214 public void playerEvent(int piid, int event) { in playerEvent() argument
7215 mPlaybackMonitor.playerEvent(piid, event, Binder.getCallingUid()); in playerEvent()
7218 public void playerHasOpPlayAudio(int piid, boolean hasOpPlayAudio) { in playerHasOpPlayAudio() argument
7219 mPlaybackMonitor.playerHasOpPlayAudio(piid, hasOpPlayAudio, Binder.getCallingUid()); in playerHasOpPlayAudio()
7222 public void releasePlayer(int piid) { in releasePlayer() argument
7223 mPlaybackMonitor.releasePlayer(piid, Binder.getCallingUid()); in releasePlayer()
/frameworks/native/services/audiomanager/
DIAudioManager.cpp63 const audio_unique_id_t piid = (audio_unique_id_t) reply.readInt32(); in trackPlayer() local
64 ALOGV("trackPlayer() returned piid %d", piid); in trackPlayer()
65 return piid; in trackPlayer()
69 virtual status_t playerAttributes(audio_unique_id_t piid, audio_usage_t usage, in playerAttributes() argument
73 data.writeInt32((int32_t) piid); in playerAttributes()
87 virtual status_t playerEvent(audio_unique_id_t piid, player_state_t event) { in playerEvent() argument
90 data.writeInt32((int32_t) piid); in playerEvent()
95 virtual status_t releasePlayer(audio_unique_id_t piid) { in releasePlayer() argument
98 data.writeInt32((int32_t) piid); in releasePlayer()
/frameworks/native/include/audiomanager/
DIAudioManager.h50 /*oneway*/ virtual status_t playerAttributes(audio_unique_id_t piid, audio_usage_t usage,
52 /*oneway*/ virtual status_t playerEvent(audio_unique_id_t piid, player_state_t event) = 0;
53 /*oneway*/ virtual status_t releasePlayer(audio_unique_id_t piid) = 0;
/frameworks/base/media/java/android/media/
DAudioPlaybackConfiguration.java191 private AudioPlaybackConfiguration(int piid) { in AudioPlaybackConfiguration() argument
192 mPlayerIId = piid; in AudioPlaybackConfiguration()
199 public AudioPlaybackConfiguration(PlayerBase.PlayerIdCard pic, int piid, int uid, int pid) { in AudioPlaybackConfiguration() argument
200 if (DEBUG) { Log.d(TAG, "new: piid=" + piid + " iplayer=" + pic.mIPlayer); } in AudioPlaybackConfiguration()
201 mPlayerIId = piid; in AudioPlaybackConfiguration()
385 public void playerDeath(int piid); in playerDeath() argument
DIAudioService.aidl57 oneway void playerAttributes(in int piid, in AudioAttributes attr); in playerAttributes() argument
59 oneway void playerEvent(in int piid, in int event); in playerEvent() argument
61 oneway void releasePlayer(in int piid); in releasePlayer() argument
238 oneway void playerHasOpPlayAudio(in int piid, in boolean hasOpPlayAudio); in playerHasOpPlayAudio() argument
DPlayerBase.java155 final int piid; in updateState() local
158 piid = mPlayerIId; in updateState()
161 getService().playerEvent(piid, state); in updateState()
165 + " state will not be tracked for piid=" + piid, e); in updateState()