Home
last modified time | relevance | path

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

/frameworks/base/services/core/java/com/android/server/audio/
DPlaybackActivityMonitor.java140 final int piid = apc.getPlayerInterfaceId(); in checkBanPlayer() local
142 Log.v(TAG, "banning player " + piid + " uid:" + uid); in checkBanPlayer()
145 Log.e(TAG, "error banning player " + piid + " uid:" + uid, e); in checkBanPlayer()
177 public void playerAttributes(int piid, @NonNull AudioAttributes attr, int binderUid) { in playerAttributes() argument
187 final AudioPlaybackConfiguration apc = mPlayers.get(new Integer(piid)); in playerAttributes()
188 if (checkConfigurationCaller(piid, apc, binderUid)) { in playerAttributes()
189 sEventLogger.log(new AudioAttrEvent(piid, attr)); in playerAttributes()
207 public void playerSessionId(int piid, int sessionId, int binderUid) { in playerSessionId() argument
210 final AudioPlaybackConfiguration apc = mPlayers.get(new Integer(piid)); in playerSessionId()
211 if (checkConfigurationCaller(piid, apc, binderUid)) { in playerSessionId()
[all …]
DFadeOutManager.java217 for (int piid : mFadedPlayers) { in dump()
218 pw.print(" " + piid); in dump()
231 final int piid = new Integer(apc.getPlayerInterfaceId()); in addFade() local
232 if (mFadedPlayers.contains(piid)) { in addFade()
234 Log.v(TAG, "player piid:" + piid + " already faded out"); in addFade()
244 mFadedPlayers.add(piid); in addFade()
246 Log.e(TAG, "Error fading out player piid:" + piid in addFade()
252 for (int piid : mFadedPlayers) { in removeUnfadeAll()
253 final AudioPlaybackConfiguration apc = players.get(piid); in removeUnfadeAll()
258 + piid)).printLog(TAG)); in removeUnfadeAll()
[all …]
DAudioService.java9722 public void playerAttributes(int piid, AudioAttributes attr) { in playerAttributes() argument
9726 mPlaybackMonitor.playerAttributes(piid, attr, Binder.getCallingUid()); in playerAttributes()
9734 public void playerSessionId(int piid, int sessionId) { in playerSessionId() argument
9738 mPlaybackMonitor.playerSessionId(piid, sessionId, Binder.getCallingUid()); in playerSessionId()
9747 public void playerEvent(int piid, int event, int deviceId) { in playerEvent() argument
9748 mPlaybackMonitor.playerEvent(piid, event, deviceId, Binder.getCallingUid()); in playerEvent()
9751 public void playerHasOpPlayAudio(int piid, boolean hasOpPlayAudio) { in playerHasOpPlayAudio() argument
9752 mPlaybackMonitor.playerHasOpPlayAudio(piid, hasOpPlayAudio, Binder.getCallingUid()); in playerHasOpPlayAudio()
9755 public void releasePlayer(int piid) { in releasePlayer() argument
9756 mPlaybackMonitor.releasePlayer(piid, Binder.getCallingUid()); in releasePlayer()
/frameworks/native/services/audiomanager/
DIAudioManager.cpp65 const audio_unique_id_t piid = (audio_unique_id_t) reply.readInt32(); in trackPlayer() local
66 ALOGV("trackPlayer() returned piid %d", piid); in trackPlayer()
67 return piid; in trackPlayer()
71 virtual status_t playerAttributes(audio_unique_id_t piid, audio_usage_t usage, in playerAttributes() argument
75 data.writeInt32((int32_t) piid); in playerAttributes()
89 virtual status_t playerEvent(audio_unique_id_t piid, player_state_t event, in playerEvent() argument
93 data.writeInt32((int32_t) piid); in playerEvent()
99 virtual status_t releasePlayer(audio_unique_id_t piid) { in releasePlayer() argument
102 data.writeInt32((int32_t) piid); in releasePlayer()
137 virtual status_t playerSessionId(audio_unique_id_t piid, audio_session_t sessionId) { in playerSessionId() argument
[all …]
/frameworks/native/include/audiomanager/
DIAudioManager.h52 /*oneway*/ virtual status_t playerAttributes(audio_unique_id_t piid, audio_usage_t usage,
54 /*oneway*/ virtual status_t playerEvent(audio_unique_id_t piid, player_state_t event,
56 /*oneway*/ virtual status_t releasePlayer(audio_unique_id_t piid) = 0;
60 …/*oneway*/ virtual status_t playerSessionId(audio_unique_id_t piid, audio_session_t sessionId) = 0;
/frameworks/base/media/java/android/media/
DPlayerBase.java153 int piid; in baseUpdateDeviceId() local
155 piid = mPlayerIId; in baseUpdateDeviceId()
159 getService().playerEvent(piid, in baseUpdateDeviceId()
164 + " device id will not be tracked for piid=" + piid, e); in baseUpdateDeviceId()
169 final int piid; in updateState() local
172 piid = mPlayerIId; in updateState()
176 getService().playerEvent(piid, state, deviceId); in updateState()
180 + " state will not be tracked for piid=" + piid, e); in updateState()
DAudioPlaybackConfiguration.java219 private AudioPlaybackConfiguration(int piid) { in AudioPlaybackConfiguration() argument
220 mPlayerIId = piid; in AudioPlaybackConfiguration()
227 public AudioPlaybackConfiguration(PlayerBase.PlayerIdCard pic, int piid, int uid, int pid) { in AudioPlaybackConfiguration() argument
229 Log.d(TAG, "new: piid=" + piid + " iplayer=" + pic.mIPlayer in AudioPlaybackConfiguration()
232 mPlayerIId = piid; in AudioPlaybackConfiguration()
469 public void playerDeath(int piid); in playerDeath() argument
DIAudioService.aidl65 oneway void playerAttributes(in int piid, in AudioAttributes attr); in playerAttributes() argument
67 oneway void playerEvent(in int piid, in int event, in int deviceId); in playerEvent() argument
69 oneway void releasePlayer(in int piid); in releasePlayer() argument
77 oneway void playerSessionId(in int piid, in int sessionId); in playerSessionId() argument
271 oneway void playerHasOpPlayAudio(in int piid, in boolean hasOpPlayAudio); in playerHasOpPlayAudio() argument