History log of /packages/services/Car/tests/carservice_test/src/com/android/car/test/CarAudioFocusTest.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
0bb47d392757b67a7b2ddf334d34b60ae3662b2f 02-Jun-2017 Enrico Granata <egranata@google.com> Move audio focus tests to the new AudioFocusRequest API

Using an AudioFocusRequest is the supported path forward, and enables the
framework to return a DELAYED focus response to the requestor.

Test: runtest -x packages/services/Car/tests/carservice_test/src/com/android/car/test/
Bug: 33352354
Change-Id: I67f49e1b9c0c2c71b348b625b5f3298728c14fe9
/packages/services/Car/tests/carservice_test/src/com/android/car/test/CarAudioFocusTest.java
cfe93105f637c2822da113308f113ed418d0b319 02-Feb-2017 Pavel Maltsev <pavelm@google.com> Move Vehicle HAL under automotive package

Test: all existing tests passing

Bug: b/33200203
Change-Id: Id1ff815ae2af9c48ce8612b4cfb5327de13a5a1f
/packages/services/Car/tests/carservice_test/src/com/android/car/test/CarAudioFocusTest.java
0d07c76bbc788fba8c77d8e932330ab22ec6ba27 04-Nov-2016 Pavel Maltsev <pavelm@google.com> Migrating Car service to new Vehicle HAL

- make car service work directly with Vehicle HAL
- getting rid of protobufs and dependencies on VNS
- get rid of CarTestManager / CarTestService and refactor
tests accordingly
- reworked ICarImpl to pass dependencies rather than
using singletons for better testing experience

Test: existing test should work, although some of the tests
(esp. audio) are broken and we will fix them in follow up CLs

Bug: b/31971746
Change-Id: I229969af332304ba3b1718f130cdf22038e86fad
Tests: tests adjusted to new data structures
/packages/services/Car/tests/carservice_test/src/com/android/car/test/CarAudioFocusTest.java
32b6382264510577126f9723337a7f48332b2ae3 02-Aug-2016 Keun-young Park <keunyoung@google.com> support system sound with no focus request

- When system sound is played without focus, send
NO_DUCK focus request.
- system sound will be also added if non-system sound
is already having focus
- Sound from non-system sound physical stream will be
ignored when focus is not requested.
- also fix routing policy test by adding fixed policy for test

bug: 25984205

Change-Id: If3981ff45fbf13fff67892bf78562ed071336b40
/packages/services/Car/tests/carservice_test/src/com/android/car/test/CarAudioFocusTest.java
4c6834a27ccbcf42cbeef43059751752baf80ac3 28-Jun-2016 Keun-young Park <keunyoung@google.com> add external audio routing support

- external audio routing is done via audio focus request
- add hidden CarAudioManager API for apps to request audio focus
for external audio source: will be left hidden until it is good
to go as public or system api
- add test to confirm external routing

bug: 29601910
Change-Id: I33600a6f53b0854cd3b55663a8be6987ac20413a
/packages/services/Car/tests/carservice_test/src/com/android/car/test/CarAudioFocusTest.java
7877faa874e502ef9a20bc9299222c718873ec91 12-May-2016 Yao Chen <yaochen@google.com> Add CarVolumeServiceTest

Change-Id: I6326088b889aadc28f9f5ca2ed3f742ee5fae387
/packages/services/Car/tests/carservice_test/src/com/android/car/test/CarAudioFocusTest.java
3cb891017933140b613cfaf5b8422c112c0f32dc 05-May-2016 Keun-young Park <keunyoung@google.com> add CarAudioManager.mute

- radio can be also muted by this.
- muting will also make new focus request, so client
requesting mute can also lose focus (LOSS_TRANSIENT) if it is
holding focus.
- For muting, muting request will be sen to vehicle hal.

- also fixed some bugs:
- handle IllegalArgumentException for focus request as this can happen
when mocked test ends
- fixed wrong addition of second context when focus loss is from car

bug: 28615094
Change-Id: I80b1c07305cad857763011711b7954ac5625fb64
/packages/services/Car/tests/carservice_test/src/com/android/car/test/CarAudioFocusTest.java
021310d76665163d6a7907d056b3ef43e6e910e4 26-Apr-2016 Keun-young Park <keunyoung@google.com> fix failing carservice tests

- revamp hal release init order during mocking:
release hal after service release and init hal before service init
- fix wrong order of mocking state setting. This led into
bringing audio muting while in mocking.
- remove some default properties from CarEmulator
as default dummy value does not work.
- add synchronization for mCarVolumeController
- handle ServiceSpecificException for get call
- reduce init time for non-functioning vhal by caching
volule get calls in init
- update CarAudioFocusTest
- remove CarConnectionListenerInMockingTest as connection state
is no longer notified when mocking starts

bug: 28387670

Change-Id: Idf975a3b0ed86b111618487eedbc380c5662a487
/packages/services/Car/tests/carservice_test/src/com/android/car/test/CarAudioFocusTest.java
3057ebd67bdbeaee67f132c6f0004d04d8943dfd 29-Mar-2016 Keun-young Park <keunyoung@google.com> cleanup audio config

- add "radio" to audio routing and remove
all specialization for radio.
- make focus wait timeout overridable.
- fix wrong handling of VR context: CAR_AUDIO_USAGE should
be used instead of CAR_AUDIO_TYPE to check internal usages
- send radio context to vehicle hal for radio: Do not
delete radio context anymore. Also cleaned up some radio
handling

bug: 27886033

Change-Id: Iae5148291a5d63c79bf49d3bbc5ee73055a20411
/packages/services/Car/tests/carservice_test/src/com/android/car/test/CarAudioFocusTest.java
2906c4461afa9ac0c5865768a3238281e5ecf26d 24-Mar-2016 Pavel Maltsev <pavelm@google.com> Add test size annotation to car tests

Bug:26873938
Change-Id: Ie0d0cb1ea41d77756ac6f88d27d2487245c7957d
/packages/services/Car/tests/carservice_test/src/com/android/car/test/CarAudioFocusTest.java
1488ef2171bbc3bf25fc00c424a9979843f5ec6e 25-Feb-2016 Keun-young Park <keunyoung@google.com> support audio context properly

- audio context is now part of AUDIO_FOCUS
- For now, resolve up to two contexts for a focus
request
- audio context is cleared after audio focus is requested

bug: 27110889

Change-Id: Iaf63ef4a96d17c6585ff3558ce40b4775140c21c
/packages/services/Car/tests/carservice_test/src/com/android/car/test/CarAudioFocusTest.java