Lines Matching refs:stream

223     /* mStreamVolumeAlias[] indicates for each stream if it uses the volume settings
224 * of another stream: This avoids multiplying the volume settings for hidden
225 * stream types that follow other stream behavior for volume settings
276 // stream names used by dumpStreamStates()
406 // mVolumeControlStream is set by VolumePanel to temporarily force the stream type which volume
430 * A fake stream type to match the notion of remote media playback
449 // case, the new requested volume, stream type and device are stored in mPendingVolumeCommand
603 // apply stream volume
652 // apply stream mute states according to new value of mRingerModeAffectedStreams
740 // Each stream will read its own persisted settings
802 if (DEBUG_VOL) Log.d(TAG, "adjustSuggestedStreamVolume() stream="+suggestedStreamType);
834 if (DEBUG_VOL) Log.d(TAG, "adjustStreamVolume() stream="+streamType+", dir="+direction);
839 // use stream type alias here so that streams with same alias have the same behavior,
886 // convert one UI step (+/-1) into a number of internal units on the stream alias
891 // or the stream type is one that is affected by ringer modes
925 // to persist). Do not change volume if stream is muted.
976 // setting volume on master stream type also controls silent mode
1096 Log.w(TAG, "unregistered control stream client died");
1209 * Sets the stream state's index, and posts a message to set system volume.
1210 * This will not call out to the UI. Assumes a valid stream type.
1212 * @param streamType Type of the stream
1213 * @param index Desired volume index of the stream
1243 for (int stream = 0; stream < mStreamStates.length; stream++) {
1244 if (!isStreamAffectedByMute(stream) || stream == streamType) continue;
1245 mStreamStates[stream].mute(cb, state);
1260 /** get stream mute state. */
1295 // by convention getStreamVolume() returns 0 when a stream is muted.
1356 /** Get last audible volume before stream was muted. */
1411 // Mute stream if not previously muted by ringer mode and ringer mode
1412 // is not RINGER_MODE_NORMAL and stream is affected by ringer mode.
1413 // Unmute stream if previously muted by ringer mode and ringer mode
1414 // is RINGER_MODE_NORMAL or stream is not affected by ringer mode.
1908 // unmute stream that was muted but is not affect by mute anymore
2490 * indices on the stream states.
2502 // Because of rounding when rescaling from one stream index range to its alias
2564 // devices (tablets) include media stream in silent mode whereas phones don't.
2623 throw new IllegalArgumentException("Bad stream type " + streamType);
2666 Log.v(TAG, "getActiveStreamType: Forcing STREAM_MUSIC stream active");
2681 Log.v(TAG, "getActiveStreamType: Forcing STREAM_MUSIC stream active");
2784 private int getDeviceForStream(int stream) {
2785 int device = AudioSystem.getDevicesForStream(stream);
2872 // do not read system stream volume from settings: this stream is always aliased
2873 // to another stream type and its volume is never persisted. Values in settings can
2898 // if no volume stored for current stream and device, use default volume if default
2979 // device on aliased stream
3015 // apply default device volume from source stream to all devices first in case
3016 // some devices are present in this stream state but not in source stream state
3025 // Now apply actual volume for devices in source stream state
3050 Log.e(TAG, "Could not get client death handler for stream: "+mStreamType);
3090 // If the stream is not yet muted by any client, set level to 0
3100 Log.w(TAG, "stream: "+mStreamType+" was already muted by this client");
3105 Log.e(TAG, "unexpected unmute for stream: "+mStreamType);
3132 Log.w(TAG, "Volume service client died for stream: "+mStreamType);
3169 Log.w(TAG, "stream was not muted by this client");
3225 // Make sure volume is also maxed out on A2DP device for aliased stream
3581 // Restore stream volumes
3730 * Ensure all stream types that should be affected by ringer mode
4484 // MUSIC stream volume level is limited when headphones are connected according to safety