aboutsummaryrefslogtreecommitdiff
path: root/service/src/com/android/car/CarTestService.java
AgeCommit message (Collapse)Author
2017-10-12Always call ICarImpl::init in the main threadPavel Maltsev
Right now it can be called from CarTestService from binder thread which results in crashes as TimingsTraceLog must be called in the same thread it was created. Test: runtest -x packages/services/Car/tests/carservice_test Change-Id: I1b282637d8c3a900f354f285e26b991d113ec140 Fix: b/67499283
2016-11-16Migrating Car service to new Vehicle HALPavel Maltsev
- 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
2016-08-01stop mocking when hal mocking process diesKeun-young Park
bug: 30476739 Change-Id: I66e0a2e35123d7690f62eb200fc069c5d4300b97
2016-04-26fix failing carservice testsKeun-young Park
- 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
2016-03-03add input serviceKeun-young Park
- 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
2016-02-19fix race in vehicle hal mockingKeun-young Park
- 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
2016-02-18add android.carKeun-young Park
- 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
2016-01-20Rename car system api packagePavel Maltsev
We should use android.support.car for car system Api. Bug: 26091392 Change-Id: I15fb50614c3d08e90854cf835f4fcf5dbc73b650
2015-11-19basic power management servicekeunyoung
- 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)
2015-11-17add audio routing policy configuration to audio servicekeunyoung
- 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)
2015-11-17Add vehicle HAL mocking with carsystem and carsystemtest APIkeunyoung
- 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)