Home
last modified time | relevance | path

Searched refs:focusChange (Results 1 – 12 of 12) sorted by relevance

/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/audio/
DAudioTestFragment.java101 private final AudioManager.OnAudioFocusChangeListener mNavFocusListener = (focusChange) -> {
102 Log.i(TAG, "Nav focus change:" + focusChange);
104 private final AudioManager.OnAudioFocusChangeListener mVrFocusListener = (focusChange) -> {
105 Log.i(TAG, "VR focus change:" + focusChange);
107 private final AudioManager.OnAudioFocusChangeListener mRadioFocusListener = (focusChange) -> {
108 Log.i(TAG, "Radio focus change:" + focusChange);
663 public void onAudioFocusChange(int focusChange) { in onAudioFocusChange() argument
664 Log.i(TAG, "onAudioFocusChange " + focusChange); in onAudioFocusChange()
665 if (focusChange == AudioManager.AUDIOFOCUS_GAIN) { in onAudioFocusChange()
667 } else if (focusChange == AudioManager.AUDIOFOCUS_LOSS) { in onAudioFocusChange()
[all …]
DAudioPlayer.java53 public void onAudioFocusChange(int focusChange) {
58 if (focusChange == AudioManager.AUDIOFOCUS_GAIN) {
66 } else if (focusChange == AudioManager.AUDIOFOCUS_LOSS_TRANSIENT_CAN_DUCK) {
70 } else if (focusChange == AudioManager.AUDIOFOCUS_LOSS_TRANSIENT) {
81 Log.e(TAG, "Unrecognized audio focus change " + focusChange);
/packages/apps/Car/Radio/src/com/android/car/radio/audio/
DAudioStreamController.java250 private void onAudioFocusChange(int focusChange) { in onAudioFocusChange() argument
251 Log.v(TAG, "onAudioFocusChange(" + focusChange + ")"); in onAudioFocusChange()
254 switch (focusChange) { in onAudioFocusChange()
271 Log.w(TAG, "Unexpected audio focus state: " + focusChange); in onAudioFocusChange()
/packages/apps/Dialer/java/com/android/dialer/app/voicemail/
DVoicemailAudioManager.java70 public void onAudioFocusChange(int focusChange) { in onAudioFocusChange() argument
71 LogUtil.d("VoicemailAudioManager.onAudioFocusChange", "focusChange=" + focusChange); in onAudioFocusChange()
72 voicemailPlaybackPresenter.onAudioFocusChange(focusChange == AudioManager.AUDIOFOCUS_GAIN); in onAudioFocusChange()
/packages/apps/Bluetooth/src/com/android/bluetooth/a2dpsink/
DA2dpSinkStreamHandler.java105 public void onAudioFocusChange(int focusChange) {
107 Log.d(TAG, "onAudioFocusChangeListener focuschange " + focusChange);
109 A2dpSinkStreamHandler.this.obtainMessage(AUDIO_FOCUS_CHANGE, focusChange)
/packages/apps/TV/src/com/android/tv/audio/
DAudioManagerHelper.java141 public void onAudioFocusChange(int focusChange) { in onAudioFocusChange() argument
142 mAudioFocusStatus = focusChange; in onAudioFocusChange()
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/volume/
DVolumeTestFragment.java96 public void onAudioFocusChange(int focusChange) { in onAudioFocusChange() argument
97 if (focusChange == AudioManager.AUDIOFOCUS_GAIN) { in onAudioFocusChange()
/packages/apps/Music/kotlin/src/com/android/music/
DAudioPreview.kt249 override fun onAudioFocusChange(focusChange: Int) { in onAudioFocusChange()
256 when (focusChange) { in onAudioFocusChange()
/packages/apps/Music/src/com/android/music/
DAudioPreview.java278 public void onAudioFocusChange(int focusChange) {
285 switch (focusChange) {
/packages/services/Car/tests/carservice_test/src/com/android/car/audio/
DAudioFocusTest.java482 public void onAudioFocusChange(int focusChange) { in onAudioFocusChange() argument
484 mFocusChange = focusChange; in onAudioFocusChange()
/packages/services/Car/tests/BugReportApp/src/com/google/android/car/bugreport/
DBugReportActivity.java538 .setOnAudioFocusChangeListener(focusChange -> in startRecordingWithPermission()
539 Log.d(TAG, "AudioManager focus change " + focusChange)) in startRecordingWithPermission()
/packages/apps/CellBroadcastReceiver/src/com/android/cellbroadcastreceiver/
DCellBroadcastAlertService.java759 public void onAudioFocusChange(int focusChange) { in onAudioFocusChange() argument
760 if(focusChange == AudioManager.AUDIOFOCUS_GAIN) { in onAudioFocusChange()