Lines Matching defs:record

54     // The last record that either entered one of the playing states or was
64 * Add a record to the priority tracker.
66 * @param record The record to add.
68 public void addSession(MediaSessionRecord record) {
69 mSessions.add(record);
71 mLastInterestingRecord = record;
75 * Remove a record from the priority tracker.
77 * @param record The record to remove.
79 public void removeSession(MediaSessionRecord record) {
80 mSessions.remove(record);
81 if (record == mGlobalPrioritySession) {
90 * @param record The record that changed.
95 public boolean onPlaystateChange(MediaSessionRecord record, int oldState, int newState) {
97 mSessions.remove(record);
98 mSessions.add(0, record);
100 // This becomes the last interesting record since it entered a
102 mLastInterestingRecord = record;
115 * @param record The record that changed.
117 public void onSessionStateChange(MediaSessionRecord record) {
118 if ((record.getFlags() & MediaSession.FLAG_EXCLUSIVE_GLOBAL_PRIORITY) != 0) {
119 mGlobalPrioritySession = record;
192 MediaSessionRecord record = records.get(0);
193 if (record.isPlaybackActive(false)) {
194 // Since we're going to send a button event to this record make
196 mLastInterestingRecord = record;
197 mCachedButtonReceiver = record;
202 // That record is no longer used. Clear its reference.
207 // If we really want a record and we didn't find one yet use the
209 mCachedButtonReceiver = record;
225 MediaSessionRecord record = records.get(i);
226 if (record.isPlaybackActive(false)) {
227 mCachedVolumeDefault = record;
228 return record;
239 MediaSessionRecord record = records.get(i);
240 if (record.getPlaybackType() == PlaybackInfo.PLAYBACK_TYPE_REMOTE) {
241 return record;
259 MediaSessionRecord record = sortedSessions.get(i);
260 record.dump(pw, indent);