]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - android/platform-packages-services-car.git/log
android/platform-packages-services-car.git
6 years agoSnap for 4455664 from f531a01580dd939b3e0dd5bf795e920dfcad9a62 to oreo-vts-release oreo-vts-release android-vts-8.0_r10 android-vts-8.0_r11 android-vts-8.0_r12 android-vts-8.0_r6 android-vts-8.0_r7 android-vts-8.0_r8 android-vts-8.0_r9
android-build-prod (mdb) [Fri, 17 Nov 2017 00:22:58 +0000 (00:22 +0000)]
Snap for 4455664 from f531a01580dd939b3e0dd5bf795e920dfcad9a62 to oreo-vts-release

Change-Id: I817cbb1c952dc9e860e9086ee20adee140b3eb0d

6 years agorelease-request-33811b80-8470-43aa-a2e6-0c80aa8b51af-for-git_oc-release-4070583 snap... oreo-cts-release oreo-r2-release oreo-r3-release oreo-r4-release oreo-r5-release oreo-r6-release oreo-release oreo-security-release android-8.0.0_r1 android-8.0.0_r10 android-8.0.0_r11 android-8.0.0_r12 android-8.0.0_r13 android-8.0.0_r15 android-8.0.0_r16 android-8.0.0_r17 android-8.0.0_r2 android-8.0.0_r28 android-8.0.0_r29 android-8.0.0_r3 android-8.0.0_r30 android-8.0.0_r31 android-8.0.0_r32 android-8.0.0_r35 android-8.0.0_r36 android-8.0.0_r37 android-8.0.0_r4 android-8.0.0_r7 android-8.0.0_r9 android-cts-8.0_r1 android-cts-8.0_r10 android-cts-8.0_r11 android-cts-8.0_r12 android-cts-8.0_r13 android-cts-8.0_r14 android-cts-8.0_r15 android-cts-8.0_r16 android-cts-8.0_r17 android-cts-8.0_r18 android-cts-8.0_r19 android-cts-8.0_r2 android-cts-8.0_r20 android-cts-8.0_r3 android-cts-8.0_r4 android-cts-8.0_r5 android-cts-8.0_r6 android-cts-8.0_r7 android-cts-8.0_r8 android-cts-8.0_r9
android-build-team Robot [Tue, 6 Jun 2017 07:12:54 +0000 (07:12 +0000)]
release-request-33811b80-8470-43aa-a2e6-0c80aa8b51af-for-git_oc-release-4070583 snap-temp-L92300000070865789

Change-Id: I7b28a55a6c175308adf7babfbfc57bd8b3b1261d

6 years agoFix Bluetooth failing to connect after pairing oreo-dev android-vts-8.0_r1 android-vts-8.0_r2
Ram Periathiruvadi [Thu, 1 Jun 2017 06:31:40 +0000 (23:31 -0700)]
Fix Bluetooth failing to connect after pairing

After successful pairing, supported profiles between 2 devices was not
connecting automatically, if the device was previously paired and
unpaired.  This is because, unpairing sets the priority of the profile
for that device to UNDEFINED.  Hence, subsequent pairing attempts fails
to connect, since the Bluetooth profiles ignore connection requests when
the priority is not set to ON or AUTO_CONNECT.
So, its upto the Device's Bluetooth policy to set the priority of
supported bluetooth profiles per remote device to ON, everytime it
pairs to a remote device. For Carkit, we do this in its
BluetoothDeviceConnectionPolicy. For phones, it is done in PhonePolicy.

Bug: b/38500587
Test: Tested by pairing and seeing the supported Car Bluetooth profiles
connect automatically. Also, checked the saved priority for the profile
per device in Settingsglobal content provider by querying
adb shell content query --uri content://settings/global

Change-Id: Ie102a0923022d844106bdb864cbd57c4ab5aa19c
(cherry picked from commit be7ea0fe212996a6afc095bb910e44a0c8cb4c2f)

6 years agobootanalyze: fix errata
Keun-young Park [Mon, 5 Jun 2017 16:27:25 +0000 (09:27 -0700)]
bootanalyze: fix errata

- args used for testing purpose not removed and broke bootchart capturing

bug: 38271495
Test: python packages/services/Car/tools/bootanalyze/bootanalyze.py -r -c packages/services/Car/tools/bootanalyze/config.yaml -n 20 -f -e 15 -w 30 -v -b
Change-Id: Ie836822bfdec569700d0ae7df7aa8d2a29abcaa9

6 years agorelease-request-777c0f47-a42e-446a-b45c-0bb1aaa9612e-for-git_oc-release-4066915 snap...
android-build-team Robot [Sun, 4 Jun 2017 07:14:01 +0000 (07:14 +0000)]
release-request-777c0f47-a42e-446a-b45c-0bb1aaa9612e-for-git_oc-release-4066915 snap-temp-L92300000070444114

Change-Id: I97a7e8e32fdea00c823fc7ed2746e9a59df13708

6 years agoMerge "add bootchart and systrace support to bootanalyze" into oc-dev
TreeHugger Robot [Fri, 2 Jun 2017 21:33:26 +0000 (21:33 +0000)]
Merge "add bootchart and systrace support to bootanalyze" into oc-dev

6 years agoadd bootchart and systrace support to bootanalyze
Keun-young Park [Wed, 31 May 2017 19:14:37 +0000 (12:14 -0700)]
add bootchart and systrace support to bootanalyze

- necessary to analyze boot performance issue
- -b for enabling bootchart
- -y for enabling systrace

bug: 38271495
Test: python packages/services/Car/tools/bootanalyze/bootanalyze.py -r -c packages/services/Car/tools/bootanalyze/config.yaml -n 20 -f -e 15 -w 30 -v -y, python packages/services/Car/tools/bootanalyze/bootanalyze.py -r -c packages/services/Car/tools/bootanalyze/config.yaml -n 20 -f -e 15 -w 30 -v -b

Change-Id: Ic5324568dc6e14a92ff88c9bce2cae4631340ce6

6 years agoCheck if service is bound before unbinding.
Ram Periathiruvadi [Tue, 30 May 2017 22:31:07 +0000 (15:31 -0700)]
Check if service is bound before unbinding.

Adding a check to unbind from PerUserCarService only when we are already
bound.

Bug: b/62133680
Test: runtest -x packages/services/Car/tests/android_car_api_test/
Change-Id: I8386b23077a3ca6bb42ba946577a50d0a7143f9a
(cherry picked from commit ee7c58ab931f36cc8709c8af627d1c45f7c77556)

6 years agorelease-request-18270495-77c6-4d95-8968-eb22e3d2fe8b-for-git_oc-release-4057656 snap...
android-build-team Robot [Thu, 1 Jun 2017 07:13:49 +0000 (07:13 +0000)]
release-request-18270495-77c6-4d95-8968-eb22e3d2fe8b-for-git_oc-release-4057656 snap-temp-L93200000069424216

Change-Id: Ifd73c20dbc27e4c6fa33d54ea120f0d7e8bd2945

6 years agoFix a scenario where Bluetooth Autoconnect fails.
Ram Periathiruvadi [Thu, 25 May 2017 20:09:07 +0000 (13:09 -0700)]
Fix a scenario where Bluetooth Autoconnect fails.

The Bluetooth Car policy's record of number of paired devices gets
inaacurate when unpaired and paired after disabling certain profiles.
Also, the number of paired devices was not getting updated properly on
unpairing. This manifested in the policy sometimes deducing that there
is no paired device to connect to, when that wasn't true.
Fixes include:
1. Use the device information list size to know the number of paired
devices instead of holding the duplicate information in a separate
variable.
2. Fix the bug in removing the device info from the device info list
when unpaired.

Bug: b/38501043
Test: Tested Pairing/unpairing, bluetooth toggling and made sure the
device inititated connection and checked the number of paired and active
connections stored by the policy from adb shell dumpsys activity service
com.android.car

Change-Id: I22fc2de6e0d69b8c065879e71311c63889c52ddd
(cherry picked from commit ee77ddef8c2d1b503610da42b87141d3b22b4bc9)

6 years agorelease-request-fca2b5ac-03eb-4055-a549-b4fc2b292b64-for-git_oc-release-4049993 snap...
android-build-team Robot [Sun, 28 May 2017 07:23:24 +0000 (07:23 +0000)]
release-request-fca2b5ac-03eb-4055-a549-b4fc2b292b64-for-git_oc-release-4049993 snap-temp-L04900000068539456

Change-Id: Ia19cab42053d3b2901df8110c036dc1cabb123c9

6 years agoRemove VMS test from OC.
Demyn Plantenberg [Mon, 22 May 2017 16:24:23 +0000 (09:24 -0700)]
Remove VMS test from OC.

The VEHICLE_MAPS_SERVICE (VMS) feature is not enabled in O. This CL
removes the related tests.

This commit is based on a cherry-pick of master CL 2311991 in order to
prevent an automerge of these deletions back into master.

Bug: 38344571
Fixes: 38344571
Test: Ran CarHvacManagerTest.java in same package as removed tests.

Change-Id: Id7c41211a015ed4054fb153e85e01033a9d150c8

6 years agoMerge "release-request-aaaef485-cf88-426c-8186-1f3903a60dd5-for-git_oc-release-403887...
android-build-team Robot [Wed, 24 May 2017 17:51:38 +0000 (17:51 +0000)]
Merge "release-request-aaaef485-cf88-426c-8186-1f3903a60dd5-for-git_oc-release-4038872 snap-temp-L67700000067294126" into oc-release

6 years agorelease-request-2b4652df-202e-4cb9-bf98-5bd21a9292d6-for-git_oc-release-4038361 snap...
android-build-team Robot [Wed, 24 May 2017 17:08:41 +0000 (17:08 +0000)]
release-request-2b4652df-202e-4cb9-bf98-5bd21a9292d6-for-git_oc-release-4038361 snap-temp-L17500000067353615

Change-Id: Ifbd4d0a9f2a2ec99737656e44f3fb2e4bbe3da38

6 years agorelease-request-aaaef485-cf88-426c-8186-1f3903a60dd5-for-git_oc-release-4038872 snap...
android-build-team Robot [Wed, 24 May 2017 14:23:40 +0000 (14:23 +0000)]
release-request-aaaef485-cf88-426c-8186-1f3903a60dd5-for-git_oc-release-4038872 snap-temp-L67700000067294126

Change-Id: I886309462e1d5ab6914f433e677313b0a2c0193d

6 years agohandle duplicate events properly
Keun-young Park [Tue, 23 May 2017 01:41:55 +0000 (18:41 -0700)]
handle duplicate events properly

- The same pattern can be matched multiple times and this led into
  wrong results.
- Rename to _(\d) when the same name already exists.

bug: 37962756
Test: python packages/services/Car/tools/bootanalyze/bootanalyze.py -r -c packages/services/Car/tools/bootanalyze/config.yaml -n 10 -f -e 16 -w 30 -v
Change-Id: Ie60fad6e74c08f0062760ec5ff7f799ed5019460
(cherry picked from commit eb14fdee32dede74b6a818ac6a5b003f690e944f)

6 years agoadd more boot animation events
Keun-young Park [Tue, 23 May 2017 16:51:24 +0000 (09:51 -0700)]
add more boot animation events

- add rendering start and surface flinger wait completion point.

bug: 38450031
Test: ython packages/services/Car/tools/bootanalyze/bootanalyze.py -r -c packages/services/Car/tools/bootanalyze/config.yaml -n 20 -f -e 14.8 -w 30 -v
Change-Id: I06c9b378af8eeff21339a5846e5c4a08a6421501

6 years agorelease-request-94bbded7-c270-40fa-9a74-fedecfd046c6-for-git_oc-release-4034177 snap...
android-build-team Robot [Tue, 23 May 2017 12:20:05 +0000 (12:20 +0000)]
release-request-94bbded7-c270-40fa-9a74-fedecfd046c6-for-git_oc-release-4034177 snap-temp-L73200000066785187

Change-Id: I3c95aa507ca2f2d70ad1c2ecf468c10695986e09

6 years agoCheck whether the diagnostics API is enabled before running
Enrico Granata [Fri, 19 May 2017 23:11:39 +0000 (16:11 -0700)]
Check whether the diagnostics API is enabled before running

Change-Id: I782606e5c7484d372653892db26fda3c48110788
Fixes: 38457170
Test: runtest -x packages/services/Car/tests/android_car_api_test/src/android/car/apitest/CarDiagnosticManagerTest.java

6 years agorelease-request-60f55d52-4657-4714-89dc-b6443475d767-for-git_oc-release-4022373 snap...
android-build-team Robot [Thu, 18 May 2017 07:13:17 +0000 (07:13 +0000)]
release-request-60f55d52-4657-4714-89dc-b6443475d767-for-git_oc-release-4022373 snap-temp-L45500000065414617

Change-Id: Ia1f51cd29c297bba78223a9cf3d3f1d7e9a50257

6 years agoAdd a notification channel for car services.
Anthony Chen [Wed, 17 May 2017 18:24:11 +0000 (11:24 -0700)]
Add a notification channel for car services.

Notification channels are a feature that is being introduced in O. When
O is targetted, a corresponding notification channel needs to be
included with each notification.

Using the default notification channel because these notifications will
not be shown to the user during run time.

Remove the notification as a field in CanBusErrorNotifier because it's
not used in a release build; so, it's not necessary to keep around for
performance reasons.

Test: booted up on headunit and ensured no crashes
Bug: 38350550
Change-Id: I830bb3093331871ed7f1eaafa7684a79b4b1d310
(cherry picked from commit 31a1cf8f64dfbe21d4f97c8eed143a7a808cbebf)

6 years agodisable kitchensink build in PDK due to missing dependency in PDK
Keun-young Park [Wed, 17 May 2017 16:39:54 +0000 (09:39 -0700)]
disable kitchensink build in PDK due to missing dependency in PDK

bug: 38361526
Test: build (not tested in PDK env itself)
Change-Id: If10580e55d678e0d85a96ccb92f7d23d9e81bee4

6 years agorelease-request-6c498b17-9310-412b-ad36-3dcf25ffef73-for-git_oc-release-4017086 snap...
android-build-team Robot [Wed, 17 May 2017 07:19:43 +0000 (07:19 +0000)]
release-request-6c498b17-9310-412b-ad36-3dcf25ffef73-for-git_oc-release-4017086 snap-temp-L16500000064871237

Change-Id: I978f300f3af6e8d2c6bd4edaba1d846003e9f7ff

6 years agoMerge "add bootloader time to bootanalyze" into oc-dev
Keun-young Park [Wed, 17 May 2017 01:11:05 +0000 (01:11 +0000)]
Merge "add bootloader time to bootanalyze" into oc-dev

6 years agoupdate automotive_app_desc for kitchensink and vms subscriber
Keun-young Park [Tue, 16 May 2017 21:46:46 +0000 (14:46 -0700)]
update automotive_app_desc for kitchensink and vms subscriber

- Wrong name led into cts failure requiring all system apps tagged
  for automotive to be driving safe.

bug: 38344375
Test: cts CarPackageManagerTest
Change-Id: Iaa9a2e24eb592663d616b5d245c5d5a5e8b137e4

6 years agoadd bootloader time to bootanalyze
Keun-young Park [Mon, 15 May 2017 16:16:38 +0000 (09:16 -0700)]
add bootloader time to bootanalyze

bug: 38271495
Test: python packages/services/Car/tools/bootanalyze/bootanalyze.py -r -c packages/services/Car/tools/bootanalyze/config.yaml -n 10 -f -e 16 -w 30 -v

Change-Id: I3253bdbe533e28499b725c4eb2283b141e545790

6 years agorelease-request-ad2b7abc-f489-4c21-891e-cb2cf48c6370-for-git_oc-release-4012004 snap...
android-build-team Robot [Tue, 16 May 2017 07:34:51 +0000 (07:34 +0000)]
release-request-ad2b7abc-f489-4c21-891e-cb2cf48c6370-for-git_oc-release-4012004 snap-temp-L44000000064332402

Change-Id: I814b530f4452d597d79aee73b19d7daa8b312c21

6 years agoAdd LensPicker as startup home app.
Bryan Eyler [Fri, 12 May 2017 22:51:44 +0000 (15:51 -0700)]
Add LensPicker as startup home app.

This is the app that starts the last app that was used.

bug: 38318983
Change-Id: I07708bf0c184966863be42debe6d11604a154cc2
(cherry picked from commit 32fd35bea5015a465ea38880b488532cff8267c1)

6 years agorelease-request-951b3a8b-6c0c-4d2e-8af4-1c3f7e209f66-for-git_oc-release-4006899 snap...
android-build-team Robot [Sun, 14 May 2017 07:20:31 +0000 (07:20 +0000)]
release-request-951b3a8b-6c0c-4d2e-8af4-1c3f7e209f66-for-git_oc-release-4006899 snap-temp-L39600000063784275

Change-Id: I6d711ea3843c7070022dae90eb20e952743e571b

6 years agoFix Car Service Test crash.
Ram Periathiruvadi [Tue, 9 May 2017 14:35:03 +0000 (07:35 -0700)]
Fix Car Service Test crash.

Safeguard against unregistering a broadcast reciever more than once
caused by calling cleanup successively.
Respect ICarImpl release order - should be the reverse of the init
order.

Bug: b/38046032
Test: runtest -x packages/services/Car/tests/carservice_test/
Change-Id: I79f810292100f579bc10352121c59558f5ceb0e5
(cherry picked from commit a048c0a3b653982a8a5560f9202f71cfc4d338e8)

6 years agomerge in oc-release history after reset to oc-dev
gitbuildkicker [Thu, 11 May 2017 07:10:11 +0000 (00:10 -0700)]
merge in oc-release history after reset to oc-dev

6 years agoadd keyguard related timing to bootanalyze
Keun-young Park [Mon, 8 May 2017 23:42:44 +0000 (16:42 -0700)]
add keyguard related timing to bootanalyze

bug: 37867510
Test: python packages/services/Car/tools/bootanalyze/bootanalyze.py -r -c packages/services/Car/tools/bootanalyze/config.yaml -n 20 -f -e 16 -w 30 -v
Change-Id: I5e6e37c97404374304a580d901d6b487d93af27d

6 years agomerge in oc-release history after reset to oc-dev
gitbuildkicker [Sat, 6 May 2017 02:29:12 +0000 (19:29 -0700)]
merge in oc-release history after reset to oc-dev

6 years agomerge in oc-release history after reset to oc-dev
gitbuildkicker [Sat, 6 May 2017 01:44:08 +0000 (18:44 -0700)]
merge in oc-release history after reset to oc-dev

6 years agomerge in oc-release history after reset to oc-dev
gitbuildkicker [Sat, 6 May 2017 01:17:43 +0000 (18:17 -0700)]
merge in oc-release history after reset to oc-dev

6 years agomerge in oc-release history after reset to oc-dev
gitbuildkicker [Fri, 5 May 2017 20:48:20 +0000 (13:48 -0700)]
merge in oc-release history after reset to oc-dev

6 years agomerge in oc-release history after reset to oc-dev
gitbuildkicker [Fri, 5 May 2017 15:23:05 +0000 (08:23 -0700)]
merge in oc-release history after reset to oc-dev

6 years agomerge in oc-release history after reset to oc-dev
gitbuildkicker [Fri, 5 May 2017 14:21:57 +0000 (07:21 -0700)]
merge in oc-release history after reset to oc-dev

6 years agomerge in oc-release history after reset to oc-dev
gitbuildkicker [Thu, 4 May 2017 07:08:30 +0000 (00:08 -0700)]
merge in oc-release history after reset to oc-dev

6 years agoBluetooth overlay for Automotive
Joseph Pirozzo [Wed, 3 May 2017 21:41:45 +0000 (14:41 -0700)]
Bluetooth overlay for Automotive

Migrate bluetooth overlay files out of the device specific directory and
into car_product since these overlays apply to all automotive targets.

Bug: 37944705
Test: pair with a phone and connect hfp, a2dp, and pbap.
Change-Id: I57558cd18c7bf44c941a227576b6272108f929d5

6 years agomerge in oc-release history after reset to oc-dev
gitbuildkicker [Tue, 2 May 2017 07:09:12 +0000 (00:09 -0700)]
merge in oc-release history after reset to oc-dev

6 years agoMerge "bootanalyze: add timing event for kernel with bugreport capturing for time...
Keun-young Park [Tue, 2 May 2017 00:00:36 +0000 (00:00 +0000)]
Merge "bootanalyze: add timing event for kernel with bugreport capturing for time events" into oc-dev

6 years agoBluetooth Auto-connect per user, fix multidevice connections
Ram Periathiruvadi [Thu, 13 Apr 2017 23:19:09 +0000 (16:19 -0700)]
Bluetooth Auto-connect per user, fix multidevice connections

When auto connecting to devices on bluetooth, store and try devices per
user. Added a CarUserService that is created for the current user on
UserSwitch.  The CarUserService deals with scenarios where the
CarService, running as a System User, doesn't get to listen to events
from processes running as the current user.
Fix the issue where when 2 phones were connected on HFP, auto-connect
only connects to one.
Other cleanup and slight code re-org

Bug: b/35324581
Bug: b/37305537
Test: Manually tested by switching between different users and connecting
to multiple phones.

Change-Id: I53583bee9ed1ff1a6bfd20363d4544efd2cc152f
(cherry picked from commit acb6024180232a2c0b6bad6f14758ef28d8f63f7)

6 years agobootanalyze: add timing event for kernel with bugreport capturing for time events
Keun-young Park [Tue, 25 Apr 2017 00:52:16 +0000 (17:52 -0700)]
bootanalyze: add timing event for kernel with bugreport capturing for time events

- add timing event capture for kernel: from int and ueventd log. only
  collect up to zygote start as it is less meaningful after that,
- add -m option which allows capturing bugreport when some time event
  exceeds specified time. For example, to capture bugreport
  for zygoteInit taking more than 6 secs, -m zygoteInit=6000
- This helps tracking specific component starting late.
- Added number of runs in summary section to distinguish items with
  less number of occurrence. Item with full number of occurrence will
  not display the number.
- Fixed wrong unit for ro.boot.init.*. It is stored in ms unit.

bug: 37752410
Test: python packages/services/Car/tools/bootanalyze/bootanalyze.py -r -c packages/services/Car/tools/bootanalyze/config.yaml -n 3 -f -e 16 -w 30 -v -m zygoteInit=5700

Change-Id: Ie5566c81d694e119ad5c8a243fa71d9016703a49

6 years agomerge in oc-release history after reset to oc-dev
gitbuildkicker [Tue, 25 Apr 2017 07:10:04 +0000 (00:10 -0700)]
merge in oc-release history after reset to oc-dev

6 years agoMerge "Adding more benchmark tests for Vehicle stack" into oc-dev
TreeHugger Robot [Mon, 24 Apr 2017 17:19:57 +0000 (17:19 +0000)]
Merge "Adding more benchmark tests for Vehicle stack" into oc-dev

6 years agoAdding more benchmark tests for Vehicle stack
Pavel Maltsev [Thu, 20 Apr 2017 20:05:26 +0000 (13:05 -0700)]
Adding more benchmark tests for Vehicle stack

Also, change mapping of predefined frequence, if client specify
SENSOR_RATE_FASTEST us maximum available rate from vehicle property
configuration. Allow users to use all predefined SENSOR_RATE_*

Test: runtest -x packages/services/Car/test/vehiclehal_test

Bug: b/36510399
Change-Id: Ica466c0ff35161cd1e580ad3da2c87d8b844795e
Fix: b/37538698

7 years agomerge in oc-release history after reset to oc-dev
gitbuildkicker [Thu, 20 Apr 2017 07:10:11 +0000 (00:10 -0700)]
merge in oc-release history after reset to oc-dev

7 years agoMerge "Remove the local sdk version from car support lib" into oc-dev
TreeHugger Robot [Thu, 20 Apr 2017 02:18:31 +0000 (02:18 +0000)]
Merge "Remove the local sdk version from car support lib" into oc-dev

7 years agoMerge "Remove @SystemApi marker from diagnostics API fields. The diagnostics API...
TreeHugger Robot [Thu, 20 Apr 2017 00:26:13 +0000 (00:26 +0000)]
Merge "Remove @SystemApi marker from diagnostics API fields. The diagnostics API is not meant for O." into oc-dev

7 years agoRemove the local sdk version from car support lib
Yao Chen [Wed, 19 Apr 2017 18:15:41 +0000 (11:15 -0700)]
Remove the local sdk version from car support lib

It was added for compatibility with projected mode. no longer needed.

Bug: 37504356
Test: Builds ok

Merged-In: I7a0553e891cc32b3dcfd904d9e340d0270218562

Change-Id: I10ab9f8ee15f05649e6fe6b2a1ede1ae264c6ba0

7 years agoMerge "update Car.VERSION and add old API snapshot" into oc-dev
TreeHugger Robot [Wed, 19 Apr 2017 22:37:51 +0000 (22:37 +0000)]
Merge "update Car.VERSION and add old API snapshot" into oc-dev

7 years agoRemove @SystemApi marker from diagnostics API fields.
Enrico Granata [Wed, 19 Apr 2017 21:39:44 +0000 (14:39 -0700)]
Remove @SystemApi marker from diagnostics API fields.
The diagnostics API is not meant for O.

Bug: b/37509437
Test: build
Change-Id: I70f30caa8cd0b234b9199c917a160fb9fe0cb856

7 years agoupdate Car.VERSION and add old API snapshot
Keun-young Park [Wed, 19 Apr 2017 20:25:42 +0000 (13:25 -0700)]
update Car.VERSION and add old API snapshot

bug: 36789624
Test: build
Change-Id: I6de31f31392578e8bde58cddd88d4f5103473de2

7 years agoFix CarHvacManagerTest to not need min/max on certain properties.
Bryan Eyler [Wed, 19 Apr 2017 00:41:36 +0000 (17:41 -0700)]
Fix CarHvacManagerTest to not need min/max on certain properties.

Bug 36791505

Change-Id: I7888d93e1470d38f5abd5c1bc81927d70e182db3
(cherry picked from commit 4abd8028b840e55788e6f698f83ae033cc2b4e92)

7 years agomerge in oc-release history after reset to oc-dev
gitbuildkicker [Tue, 18 Apr 2017 07:09:22 +0000 (00:09 -0700)]
merge in oc-release history after reset to oc-dev

7 years agoMerge "Initial e2e Vehicle s/w stack infrastructure" into oc-dev
TreeHugger Robot [Mon, 17 Apr 2017 20:57:37 +0000 (20:57 +0000)]
Merge "Initial e2e Vehicle s/w stack infrastructure" into oc-dev

7 years agoMerge "Fixing sync in Car(Sensor|Diagnostic)Manager" into oc-dev
TreeHugger Robot [Mon, 17 Apr 2017 19:39:05 +0000 (19:39 +0000)]
Merge "Fixing sync in Car(Sensor|Diagnostic)Manager" into oc-dev

7 years agoFixing sync in Car(Sensor|Diagnostic)Manager
Pavel Maltsev [Wed, 12 Apr 2017 21:33:09 +0000 (14:33 -0700)]
Fixing sync in Car(Sensor|Diagnostic)Manager

Bug: b/37254546

Test: verified e2e tests no longer crashing with
ConcurrentModificationException

Change-Id: I2e295bfec36f6e0b4a6c4187ad8d8c7eaf9250c7

7 years agomerge in oc-release history after reset to oc-dev
gitbuildkicker [Sun, 16 Apr 2017 07:10:44 +0000 (00:10 -0700)]
merge in oc-release history after reset to oc-dev

7 years agoMerge "bootanalyze: handle all valid fs_stat properly" into oc-dev
TreeHugger Robot [Sat, 15 Apr 2017 01:39:29 +0000 (01:39 +0000)]
Merge "bootanalyze: handle all valid fs_stat properly" into oc-dev

7 years agobootanalyze: handle all valid fs_stat properly
Keun-young Park [Fri, 14 Apr 2017 22:21:13 +0000 (15:21 -0700)]
bootanalyze: handle all valid fs_stat properly

- Any bits in 0x17 are valid. Capture bugreport for bits outside them.

bug: 32246772
Test: python packages/services/Car/tools/bootanalyze/bootanalyze.py -r -c packages/services/Car/tools/bootanalyze/config.yaml -n 10 -f -e 16 -w 30 -m WaitForDisplay=1000
Change-Id: I379b7c0d202bdfb094bc16353901e4884c1bb264

7 years agoMerge "Move mic button to its own fragment." into oc-dev
TreeHugger Robot [Fri, 14 Apr 2017 20:54:58 +0000 (20:54 +0000)]
Merge "Move mic button to its own fragment." into oc-dev

7 years agoMerge "Do not start home activity if it's not ready" into oc-dev
TreeHugger Robot [Fri, 14 Apr 2017 20:13:41 +0000 (20:13 +0000)]
Merge "Do not start home activity if it's not ready" into oc-dev

7 years agoMove mic button to its own fragment.
Yao Chen [Fri, 14 Apr 2017 18:34:37 +0000 (11:34 -0700)]
Move mic button to its own fragment.

Bug: 37317932
Test: Manually tested. Mic does not show up in every fragment anymore.
Change-Id: Ic219e570e0c8426119db96b781892f1186e51fef

7 years agoInitial e2e Vehicle s/w stack infrastructure
Pavel Maltsev [Tue, 11 Apr 2017 19:38:17 +0000 (12:38 -0700)]
Initial e2e Vehicle s/w stack infrastructure

Also, fixed some sensor mapping between CarSensorManager and VHAL

Bug: b/36510399

Test: runtest -x packages/services/Car/tests/vehiclehal_test/
Change-Id: I556e03402c16a3b2c8cb25d7a048f8c9a072e23b

7 years agoDo not start home activity if it's not ready
Pavel Maltsev [Wed, 12 Apr 2017 21:27:10 +0000 (14:27 -0700)]
Do not start home activity if it's not ready

If driving status is not UNRESTRICTED then Car Service may try to block
Andorid SetupWizard which may result in Car Service crash if home
(launcher) activity is not ready yet.

Test: flash and verify Car Service doesn't crash when VHAL reports
rahter than unrestricted state.

Bug: b/37278657
Change-Id: I98081d469f4eeb7b084351abcfebff8df80fe5a3

7 years agoMerge "Changed the naming scheme for Treble java libraries (both static and dynamic...
TreeHugger Robot [Fri, 14 Apr 2017 02:13:21 +0000 (02:13 +0000)]
Merge "Changed the naming scheme for Treble java libraries (both static and dynamic)" into oc-dev

7 years agoChanged the naming scheme for Treble java libraries (both static and dynamic)
Andreas Huber [Thu, 13 Apr 2017 18:20:35 +0000 (11:20 -0700)]
Changed the naming scheme for Treble java libraries (both static and dynamic)

android.hardware.foo@1.0-java => android.hardware.foo-V1.0-java

Bug: 37207894
Test: make
Change-Id: If611e6cc1f05320b8fc99d5244eb40f92be9aa71
Merged-In: Ie2a1af8bb38e0ef4f044ca5dbea9cf50b61a0c68

7 years agoAdded Annotation to execute test.
smaraaosp [Wed, 5 Apr 2017 20:05:08 +0000 (13:05 -0700)]
Added Annotation to execute test.

Test: Tested locally.
Change-Id: I92adb3b405704c9a793e0510c96e33ecc4f28401
(cherry picked from commit a3b34bfdcbd88eab3353e4ef52c9d54ad5416cd4)

7 years agoImplement support of AUDIO_STREAM_STATE property
Pavel Maltsev [Fri, 24 Mar 2017 19:46:40 +0000 (12:46 -0700)]
Implement support of AUDIO_STREAM_STATE property

Fixing Audio tests

Fix: b/33235166
Fix: b/36524594
Fix: b/36790725

Test: runtest -x packages/services/Car/tests/carservice_test
Change-Id: I7d9dade59ce81342d859239f2e3e9a360008e7d3
(cherry picked from commit 79d5e12ad8708c1f7f7f1a60aaeb349ac7ed0f7b)

7 years agomerge in oc-release history after reset to oc-dev
gitbuildkicker [Wed, 12 Apr 2017 07:09:39 +0000 (00:09 -0700)]
merge in oc-release history after reset to oc-dev

7 years agoMerge "Fix compiling with javac" into oc-dev
Colin Cross [Wed, 12 Apr 2017 00:06:02 +0000 (00:06 +0000)]
Merge "Fix compiling with javac" into oc-dev

7 years agoFix compiling with javac
Colin Cross [Wed, 5 Apr 2017 22:09:32 +0000 (15:09 -0700)]
Fix compiling with javac

Remove import of an inner class in the same file, and explicitly
reference the static nested class through the outer class.

Bug: 36902714
Test: m -j ANDROID_COMPILE_WITH_JACK=false vehicle-hal-support-lib
Change-Id: I4c58bcae3f26a9f79d5931d0e489d85e7dba46e0
(cherry picked from commit 0f088b64c6c8e65bdfb91c87c837938eb41df91f)

7 years agoFix makefile warning.
Tomasz Wasilczyk [Mon, 10 Apr 2017 22:37:05 +0000 (15:37 -0700)]
Fix makefile warning.

src_feature_current and _future source directories are not used yet.

Test: it builds.
Bug: b/37159108
Change-Id: I6bced012eeb5e7317d1b0022e4ed41fee54c30ec
(cherry picked from commit 2e949a07b84fcf808ecd362b240531bbde01ef03)

7 years agomerge in oc-release history after reset to oc-dev
gitbuildkicker [Tue, 11 Apr 2017 07:09:29 +0000 (00:09 -0700)]
merge in oc-release history after reset to oc-dev

7 years agoMerge "Use GraphicBuffer instead of GraphicBufferMapper" into oc-dev
Chia-I Wu [Tue, 11 Apr 2017 01:08:37 +0000 (01:08 +0000)]
Merge "Use GraphicBuffer instead of GraphicBufferMapper" into oc-dev

7 years agoUse GraphicBuffer instead of GraphicBufferMapper
Chia-I Wu [Mon, 10 Apr 2017 18:10:15 +0000 (11:10 -0700)]
Use GraphicBuffer instead of GraphicBufferMapper

It is easy to use GraphicBufferMapper incorrectly and
implementations tend not to genenrate any error.  GraphicBuffer
should be used in most cases.

Test: make
Change-Id: I6d4da8df79470d05a57fc26717ece5f166276abd

7 years agomerge in oc-release history after reset to oc-dev
gitbuildkicker [Sun, 9 Apr 2017 07:10:31 +0000 (00:10 -0700)]
merge in oc-release history after reset to oc-dev

7 years agoMerge "Put an assistant mic in KitchenSink" into oc-dev
TreeHugger Robot [Sat, 8 Apr 2017 19:13:26 +0000 (19:13 +0000)]
Merge "Put an assistant mic in KitchenSink" into oc-dev

7 years agoswitch back to svc power reboot by default
Keun-young Park [Thu, 6 Apr 2017 20:38:24 +0000 (13:38 -0700)]
switch back to svc power reboot by default

- adb reboot cuts some shutdown sequence from system server and
  gives issue like modem not shutdown properly.
- need to specify -a to use adb reboot.
- also fix broken svc power reboot path as adb is kept longer
  than before and waiting for device after reboot command returns
  immediately while shutdown is not done yet.
- add -v option to toggle selinux to be permissive before reboot.
  This helps init to use lsof to list all files.

bug: 36984129
Test: python packages/services/Car/tools/bootanalyze/bootanalyze.py -r -c packages/services/Car/tools/bootanalyze/config.yaml -n 100 -f -e 20 -w 40 -v

Change-Id: I9a3871941b71700f80a5b22d965687ac17f66ccb
(cherry picked from commit 24d4399574f847467d1939a1bbf233945d23a0ee)

7 years agoPut an assistant mic in KitchenSink
Yao Chen [Fri, 7 Apr 2017 00:16:33 +0000 (17:16 -0700)]
Put an assistant mic in KitchenSink

The overview app is gone. Put the mic in KitchenSink to help testing.

Bug: 35144554

Test: manually tested
Change-Id: I17e2c986e8560b4ae317777870d426c29fc18f9a
(cherry picked from commit 140295d8700f8888a58199e14431e50236952c7c)

7 years agoMerge "Fix transitive include." into oc-dev
TreeHugger Robot [Fri, 7 Apr 2017 03:31:27 +0000 (03:31 +0000)]
Merge "Fix transitive include." into oc-dev

7 years agoFix transitive include.
Steven Moreland [Fri, 7 Apr 2017 01:33:16 +0000 (18:33 -0700)]
Fix transitive include.

Was relying on include from MQDescriptor.h

Test: pass
Change-Id: I25406e96bf00aa97abd21b9ef87d36b4d900fb06

7 years agoAdd missing makefile to build StressFS tool.
Bryan Eyler [Mon, 3 Apr 2017 19:33:18 +0000 (12:33 -0700)]
Add missing makefile to build StressFS tool.

Bug 36444880

Change-Id: I52d09b6be6eb63eb1a070fc8fdd9a089062baded
(cherry picked from commit 8c333422eb01f114112c340cf7256e3439c0efdb)

7 years agomerge in oc-release history after reset to oc-dev
gitbuildkicker [Thu, 6 Apr 2017 07:08:58 +0000 (00:08 -0700)]
merge in oc-release history after reset to oc-dev

7 years agoActually fix incremental builds
Dan Willemsen [Wed, 29 Mar 2017 01:19:00 +0000 (18:19 -0700)]
Actually fix incremental builds

Both android.car7 and android.car use the same source list, so we need
to remove both.

Bug: 36698184
Test: None
Change-Id: I3aca71f0b1acc2ab16ec502707ae641418b00a09
(cherry picked from commit f418b6f691d2e48ce9f43a47121b5ace5f1179c9)

7 years agoMerge "Add cleanspec to fix incremental build issue" into oc-dev
Scott Randolph [Wed, 5 Apr 2017 18:46:38 +0000 (18:46 +0000)]
Merge "Add cleanspec to fix incremental build issue" into oc-dev

7 years agoMerge "Don't try to load jni_car_service which no longer exists" into oc-dev
TreeHugger Robot [Wed, 5 Apr 2017 18:32:55 +0000 (18:32 +0000)]
Merge "Don't try to load jni_car_service which no longer exists" into oc-dev

7 years agoAdd cleanspec to fix incremental build issue
Colin Cross [Tue, 28 Mar 2017 23:47:27 +0000 (16:47 -0700)]
Add cleanspec to fix incremental build issue

Removing an aidl file in I691c4dc07491d51158f109c79c93f0748186bfc6
caused an incremental build issue.  Wipe the intermediates to fix
incremental builds until the underlying issue is fixed.

Test: none
Bug: 36698184
Change-Id: Ibd31f917c6516c3c376c19e9cccda1ba38e97dff
(cherry picked from commit 0927beaf82ebd3a535ef9355815929936fd62b0d)

7 years agoMerge "Remove deprecated CarCamera interface" into oc-dev
Scott Randolph [Wed, 5 Apr 2017 17:14:10 +0000 (17:14 +0000)]
Merge "Remove deprecated CarCamera interface" into oc-dev

7 years agomerge in oc-release history after reset to oc-dev
gitbuildkicker [Wed, 5 Apr 2017 07:08:57 +0000 (00:08 -0700)]
merge in oc-release history after reset to oc-dev

7 years agoDon't try to load jni_car_service which no longer exists
Scott Randolph [Tue, 4 Apr 2017 23:09:23 +0000 (16:09 -0700)]
Don't try to load jni_car_service which no longer exists

Avoids spamming the log (and wasting time) trying to load a module that
no longer exists.  This module used to contain implementation for
CarCameraService, but that is not a part of 'O'.  EVS HAL is used
isntead.

Bug: 3690085136900269
Test: Code builds for bat_land-eng
Change-Id: Ia952e267a8b6a0e8c81be6818a653012ffd76b00

7 years agoRemove deprecated CarCamera interface
Scott Randolph [Wed, 22 Mar 2017 22:42:42 +0000 (15:42 -0700)]
Remove deprecated CarCamera interface

CarCamera is being replaced by the EVS HAL and manager.
See hardware/interfaces/automotive/evs and packages/services/Car/evs

Test:  build full tree
Bug:  36900851
Change-Id: I691c4dc07491d51158f109c79c93f0748186bfc6
(cherry picked from commit 251fb78dc11923820402156e251b6029175eaa73)

7 years agoAdd writing utility invocation to bootanalyze.
Bryan Eyler [Wed, 29 Mar 2017 21:52:12 +0000 (14:52 -0700)]
Add writing utility invocation to bootanalyze.

Adds a flag for invoking StressFS utility before shutdown.
Updates WritingService to handle no data in intent.

Bug 36444880

Change-Id: Ied6f4f538648b19d8ffda79f0eb57e65e7347bf7
(cherry picked from commit ed0e5e38a2a3a1f5e73ea01f4b227512f6c41e41)

7 years agomerge in oc-release history after reset to oc-dev
gitbuildkicker [Sun, 2 Apr 2017 07:10:52 +0000 (00:10 -0700)]
merge in oc-release history after reset to oc-dev

7 years agoMerge "Update EVS app and manager for HAL revisions" into oc-dev
TreeHugger Robot [Fri, 31 Mar 2017 00:37:29 +0000 (00:37 +0000)]
Merge "Update EVS app and manager for HAL revisions" into oc-dev

7 years agoMerge "Fix CarVolumeServiceTest failure." into oc-dev
TreeHugger Robot [Fri, 31 Mar 2017 00:32:45 +0000 (00:32 +0000)]
Merge "Fix CarVolumeServiceTest failure." into oc-dev

7 years agoFix CarVolumeServiceTest failure.
Yao Chen [Tue, 28 Mar 2017 20:47:10 +0000 (13:47 -0700)]
Fix CarVolumeServiceTest failure.

1. VolumeLimit test failure
 - The min config value is always 0 in the new vhal. So the test for min
   volume is removed.

2. testSuppressVolumeUI failure
 - The reason is the car service code runs in the same process with the
   test. When the test waits for a callback, it blocked the main thread
   on which the Handler is running
 - Moved the Handler in the car volume controller to a handler thread.

Fix: 36614115

Test: runtest -x packages/services/Car/tests/carservice_test/ \
       -c com.android.car.test.CarVolumeServiceTest

(cherry picked from commit 543ef8915362454aa2ea13b61ebe9f6d21a8070c)

Change-Id: I5a7fa4cf232e39090288d6cdc5379f00295e6ee5

7 years agoUpdate EVS app and manager for HAL revisions
Scott Randolph [Thu, 30 Mar 2017 21:30:34 +0000 (14:30 -0700)]
Update EVS app and manager for HAL revisions

The HAL contract, particuarly with respect to opening and closing
devices has changed and the manager and app have been revised
accordingly.  The previous "test" has been removed as it has been
superceeded by the VTS test for the HAL.

NOTE:  This change was originally developed and +2'd on the master
branch as ag/2021133.  However cherry picking to oc-dev is broken, so
this will be submitted directly to oc-dev and auto-merged back to
master.

Test: build locally against updated EVS HAL
Change-Id: I2378d622079a2326dc7d1432adca72bcf112e193