Lines Matching refs:AudioMode
30 import com.android.services.telephony.common.AudioMode;
52 private int mAudioMode = AudioMode.EARPIECE;
53 private int mPreviousMode = AudioMode.EARPIECE;
54 private int mSupportedModes = AudioMode.ALL_MODES;
113 logD("setAudioMode " + AudioMode.toString(mode));
125 if (AudioMode.SPEAKER == mode) {
129 } else if (AudioMode.BLUETOOTH == mode) {
144 "supportedModes: " + AudioMode.toString(calculateSupportedModes()));
149 } else if (AudioMode.EARPIECE == mode || AudioMode.WIRED_HEADSET == mode) {
160 "Resetting mode to " + AudioMode.toString(mode) + ".");
174 setAudioMode(AudioMode.SPEAKER);
176 setAudioMode(AudioMode.WIRED_OR_EARPIECE);
222 newMode = AudioMode.SPEAKER;
224 newMode = AudioMode.EARPIECE;
231 newMode = AudioMode.WIRED_HEADSET;
236 newMode = pluggedIn ? AudioMode.WIRED_HEADSET : AudioMode.EARPIECE;
252 if (mode == AudioMode.WIRED_OR_EARPIECE) {
253 mode = AudioMode.WIRED_OR_EARPIECE & mSupportedModes;
258 mode = AudioMode.EARPIECE;
305 int mode = AudioMode.EARPIECE;
309 mode = AudioMode.BLUETOOTH;
311 mode = AudioMode.SPEAKER;
313 mode = AudioMode.WIRED_HEADSET;
316 logD("calculateModeFromCurrentState " + AudioMode.toString(mode));
335 AudioMode.toString(mode) + ", supported (" +
336 AudioMode.toString(mSupportedModes) + ")");
343 Log.i(LOG_TAG, "Audio mode changing to " + AudioMode.toString(mode));
360 int supportedModes = AudioMode.SPEAKER;
363 supportedModes |= AudioMode.WIRED_HEADSET;
365 supportedModes |= AudioMode.EARPIECE;
369 supportedModes |= AudioMode.BLUETOOTH;
376 logD("AudioMode: " + AudioMode.toString(mAudioMode));
377 logD("Supported AudioMode: " + AudioMode.toString(mSupportedModes));