History log of /packages/services/Car/service/src/com/android/car/CarTestService.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
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/service/src/com/android/car/CarTestService.java
a54e116228fb7fda680f58d4cfe8a0d36f5473e2 29-Jul-2016 Keun-young Park <keunyoung@google.com> stop mocking when hal mocking process dies

bug: 30476739
Change-Id: I66e0a2e35123d7690f62eb200fc069c5d4300b97
/packages/services/Car/service/src/com/android/car/CarTestService.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/service/src/com/android/car/CarTestService.java
a28d7b201584823286f26e21a9f30d07c416eb3e 01-Mar-2016 Keun-young Park <keunyoung@google.com> add input service

- CarInputService monitors input event through vehicle hal
and handle it by itself (for now, VOICE_ASSITANT only),
deliver it to other relevant component,
or inject as android key event into kernel input device.
- renamed jni to jni_car_service
- added kitchensink input test.
- From kitchensink test, single touch of volume key does not work
as touch event in other window mess things up. But long press should
work. It will work in real physical keys.
- TODO: android key to linux key mapping should be expanded
for all possible keys.

bug: 27461452

Change-Id: I51e4b64bcd3c745f27ebb089fafce536be91f04d
/packages/services/Car/service/src/com/android/car/CarTestService.java
43cfff21932b23f0e382aa78ffc1bb053928b1c5 19-Feb-2016 Keun-young Park <keunyoung@google.com> fix race in vehicle hal mocking

- run mock start / stop in main thread of car service so that
it does not have race with on-going init
- fix synchronization in CarTestManager so that callback
and mock start / stop cannot deadlock

bug: 27245898
Change-Id: Iceb0b46227368ad5ead9f70f5a977155367f96b2
/packages/services/Car/service/src/com/android/car/CarTestService.java
e54ac276796c6535558f8444d882adecd19ce2bd 17-Feb-2016 Keun-young Park <keunyoung@google.com> add android.car

- instead of using binder as compatibility layer, add android.car
- apps using android.car should add it to LOCAL_JAVA_LIBRARIES
unless doing include
packages/services/Car/car-support-lib/car-support.mk

- support lib renamed to android.support.car
- UI stuffs only exist in android.support.car
UI has dependency on androud support library and not added to
android.car

- permission only uses android.car namespace even for support.car

- car-systemtest remains as static library. To use CarTestManager,
test app should get CarTestManagerBinderWrapper then create
CarTestManager.

bug: 27199752
Change-Id: I3522e11e958dade404443fbe2d45f576c827fa7a
/packages/services/Car/service/src/com/android/car/CarTestService.java
75623ce0736848d0b27f08c65d843a031b325027 21-Jan-2016 Pavel Maltsev <pavelm@google.com> Rename car system api package

We should use android.support.car for car system Api.

Bug: 26091392
Change-Id: I15fb50614c3d08e90854cf835f4fcf5dbc73b650
/packages/services/Car/service/src/com/android/car/CarTestService.java
4b0212c1b3576f4174c292bbcdd72815584ff075 30-Oct-2015 keunyoung <keunyoung@google.com> basic power management service

- handle boot complete and shutdown
- skeleton code for deep sleep added. Complete
implementation requires kernel interaction which is TBD.
- handle display on / off with keeping display on with wakelock
- added interface for implementing garage mode
- tested with hal mocking only

bug: 25348217

Change-Id: Iae64ee7a16c861edd5473e392589e7e7213bd52b
(cherry picked from commit 099bc004632a2d274a11a5c436d718cba362ddc6)
/packages/services/Car/service/src/com/android/car/CarTestService.java
5c7cb266f8900450c2ab41802b079b02f14d707f 19-Oct-2015 keunyoung <keunyoung@google.com> add audio routing policy configuration to audio service

- audio routing policy is read from config.xml.
- There can be multiple policy and AUDIO_HW_VARIANT property
chooses which one to use.
- added mocking test to verify the policy setting.

bug: 25126797

Change-Id: Ia9d6fad90f6536dddd79a56be514f6f3afb56270
(cherry picked from commit 1e1fdf6387b0ec4333c0d06a21b8f482590db3aa)
/packages/services/Car/service/src/com/android/car/CarTestService.java
1ab8e18e01d8063821bee0bf641a365224c7e1ee 24-Sep-2015 keunyoung <keunyoung@google.com> Add vehicle HAL mocking with carsystem and carsystemtest API

- System API and system test API for testing only added. Client
should link only one of them.
- vehicle HAL mocking allows mocking vehicle HAL completely.
- Once mocking is started, for now, all previous states are forgotton,
so stopping mocking does not return to original state. It is
better to simply restart framework after test.
- Added skeleton code for audio focus handling. Detailed implementaiton
will be added later.

bug: 24874617

Change-Id: I6e60daab3dc96769a94acc09a695f8f49dbb8536
(cherry picked from commit a32e24f50d5895a94d3a13d6ec2233af6e43dac5)
/packages/services/Car/service/src/com/android/car/CarTestService.java