Home
last modified time | relevance | path

Searched refs:getFocusState (Results 1 – 7 of 7) sorted by relevance

/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/a2dpsink/
DA2dpSinkStreamHandlerTest.java219 assertThat(mStreamHandler.getFocusState()).isEqualTo(AudioManager.AUDIOFOCUS_GAIN); in testFocusGain()
234 assertThat(mStreamHandler.getFocusState()) in testFocusTransientMayDuck()
252 assertThat(mStreamHandler.getFocusState()) in testFocusLostTransient()
288 assertThat(mStreamHandler.getFocusState()).isEqualTo(AudioManager.AUDIOFOCUS_GAIN); in testFocusGainFromTransientLoss()
303 assertThat(mStreamHandler.getFocusState()).isEqualTo(AudioManager.AUDIOFOCUS_NONE); in testFocusLost()
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/avrcpcontroller/
DAvrcpControllerStateMachine.java484 int focusState = getFocusState(); in processMessage()
609 int focusState = getFocusState(); in processMessage()
1250 private int getFocusState() { in getFocusState() method in AvrcpControllerStateMachine
1254 focusState = a2dpSinkService.getFocusState(); in getFocusState()
1274 if (getFocusState() == AudioManager.AUDIOFOCUS_LOSS_TRANSIENT) {
1315 if (getFocusState() == AudioManager.AUDIOFOCUS_LOSS_TRANSIENT) {
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/a2dpsink/
DA2dpSinkService.java170 public int getFocusState() { in getFocusState() method in A2dpSinkService
173 return mA2dpSinkStreamHandler.getFocusState(); in getFocusState()
DA2dpSinkStreamHandler.java120 int getFocusState() { in getFocusState() method in A2dpSinkStreamHandler
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/avrcpcontroller/
DAvrcpControllerStateMachineTest.java195 when(mA2dpSinkService.getFocusState()).thenReturn(state); in sendAudioFocusUpdate()
1152 when(mA2dpSinkService.getFocusState()).thenReturn(AudioManager.AUDIOFOCUS_NONE); in testPlaybackWhileMusicPlaying()
1170 when(mA2dpSinkService.getFocusState()).thenReturn(AudioManager.AUDIOFOCUS_NONE); in testPlaybackWhileIdle()
1188 when(mA2dpSinkService.getFocusState()).thenReturn(AudioManager.ERROR); in testPlaybackWhileErrorState()
1209 when(mA2dpSinkService.getFocusState()).thenReturn(AudioManager.AUDIOFOCUS_GAIN); in testPlaybackWhilePlayingState()
/packages/apps/Messaging/src/com/android/messaging/ui/mediapicker/camerafocus/
DFocusOverlayManager.java503 /* package */ int getFocusState() { in getFocusState() method in FocusOverlayManager
/packages/apps/Camera2/src/com/android/camera/
DFocusOverlayManager.java558 /* package */ int getFocusState() { in getFocusState() method in FocusOverlayManager