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
release-request-33811b80-8470-43aa-a2e6-0c80aa8b51af-for-git_oc-release-4070583 snap-temp-L92300000070865789
Change-Id: I7b28a55a6c175308adf7babfbfc57bd8b3b1261d
Change-Id: I7b28a55a6c175308adf7babfbfc57bd8b3b1261d
6 years agoFix Bluetooth failing to connect after pairing oreo-dev android-vts-8.0_r1 android-vts-8.0_r2
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)
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)
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
- 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
release-request-777c0f47-a42e-446a-b45c-0bb1aaa9612e-for-git_oc-release-4066915 snap-temp-L92300000070444114
Change-Id: I97a7e8e32fdea00c823fc7ed2746e9a59df13708
Change-Id: I97a7e8e32fdea00c823fc7ed2746e9a59df13708
Merge "add bootchart and systrace support to bootanalyze" into oc-dev
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
- 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
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)
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)
release-request-18270495-77c6-4d95-8968-eb22e3d2fe8b-for-git_oc-release-4057656 snap-temp-L93200000069424216
Change-Id: Ifd73c20dbc27e4c6fa33d54ea120f0d7e8bd2945
Change-Id: Ifd73c20dbc27e4c6fa33d54ea120f0d7e8bd2945
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)
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)
release-request-fca2b5ac-03eb-4055-a549-b4fc2b292b64-for-git_oc-release-4049993 snap-temp-L04900000068539456
Change-Id: Ia19cab42053d3b2901df8110c036dc1cabb123c9
Change-Id: Ia19cab42053d3b2901df8110c036dc1cabb123c9
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
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
Merge "release-request-aaaef485-cf88-426c-8186-1f3903a60dd5-for-git_oc-release-4038872 snap-temp-L67700000067294126" into oc-release
release-request-2b4652df-202e-4cb9-bf98-5bd21a9292d6-for-git_oc-release-4038361 snap-temp-L17500000067353615
Change-Id: Ifbd4d0a9f2a2ec99737656e44f3fb2e4bbe3da38
Change-Id: Ifbd4d0a9f2a2ec99737656e44f3fb2e4bbe3da38
release-request-aaaef485-cf88-426c-8186-1f3903a60dd5-for-git_oc-release-4038872 snap-temp-L67700000067294126
Change-Id: I886309462e1d5ab6914f433e677313b0a2c0193d
Change-Id: I886309462e1d5ab6914f433e677313b0a2c0193d
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)
- 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)
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
- 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
release-request-94bbded7-c270-40fa-9a74-fedecfd046c6-for-git_oc-release-4034177 snap-temp-L73200000066785187
Change-Id: I3c95aa507ca2f2d70ad1c2ecf468c10695986e09
Change-Id: I3c95aa507ca2f2d70ad1c2ecf468c10695986e09
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
Change-Id: I782606e5c7484d372653892db26fda3c48110788
Fixes: 38457170
Test: runtest -x packages/services/Car/tests/android_car_api_test/src/android/car/apitest/CarDiagnosticManagerTest.java
release-request-60f55d52-4657-4714-89dc-b6443475d767-for-git_oc-release-4022373 snap-temp-L45500000065414617
Change-Id: Ia1f51cd29c297bba78223a9cf3d3f1d7e9a50257
Change-Id: Ia1f51cd29c297bba78223a9cf3d3f1d7e9a50257
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)
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)
disable kitchensink build in PDK due to missing dependency in PDK
bug: 38361526
Test: build (not tested in PDK env itself)
Change-Id: If10580e55d678e0d85a96ccb92f7d23d9e81bee4
bug: 38361526
Test: build (not tested in PDK env itself)
Change-Id: If10580e55d678e0d85a96ccb92f7d23d9e81bee4
release-request-6c498b17-9310-412b-ad36-3dcf25ffef73-for-git_oc-release-4017086 snap-temp-L16500000064871237
Change-Id: I978f300f3af6e8d2c6bd4edaba1d846003e9f7ff
Change-Id: I978f300f3af6e8d2c6bd4edaba1d846003e9f7ff
Merge "add bootloader time to bootanalyze" into oc-dev
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
- 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
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
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
release-request-ad2b7abc-f489-4c21-891e-cb2cf48c6370-for-git_oc-release-4012004 snap-temp-L44000000064332402
Change-Id: I814b530f4452d597d79aee73b19d7daa8b312c21
Change-Id: I814b530f4452d597d79aee73b19d7daa8b312c21
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)
This is the app that starts the last app that was used.
bug: 38318983
Change-Id: I07708bf0c184966863be42debe6d11604a154cc2
(cherry picked from commit 32fd35bea5015a465ea38880b488532cff8267c1)
release-request-951b3a8b-6c0c-4d2e-8af4-1c3f7e209f66-for-git_oc-release-4006899 snap-temp-L39600000063784275
Change-Id: I6d711ea3843c7070022dae90eb20e952743e571b
Change-Id: I6d711ea3843c7070022dae90eb20e952743e571b
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)
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)
merge in oc-release history after reset to oc-dev
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
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
merge in oc-release history after reset to oc-dev
merge in oc-release history after reset to oc-dev
merge in oc-release history after reset to oc-dev
merge in oc-release history after reset to oc-dev
merge in oc-release history after reset to oc-dev
merge in oc-release history after reset to oc-dev
merge in oc-release history after reset to oc-dev
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
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
merge in oc-release history after reset to oc-dev
Merge "bootanalyze: add timing event for kernel with bugreport capturing for time events" into oc-dev
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)
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)
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
- 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
merge in oc-release history after reset to oc-dev
Merge "Adding more benchmark tests for Vehicle stack" into oc-dev
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
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
merge in oc-release history after reset to oc-dev
Merge "Remove the local sdk version from car support lib" into oc-dev
Merge "Remove @SystemApi marker from diagnostics API fields. The diagnostics API is not meant for O." into oc-dev
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
It was added for compatibility with projected mode. no longer needed.
Bug: 37504356
Test: Builds ok
Merged-In: I7a0553e891cc32b3dcfd904d9e340d0270218562
Change-Id: I10ab9f8ee15f05649e6fe6b2a1ede1ae264c6ba0
Merge "update Car.VERSION and add old API snapshot" into oc-dev
Remove @SystemApi marker from diagnostics API fields.
The diagnostics API is not meant for O.
Bug: b/37509437
Test: build
Change-Id: I70f30caa8cd0b234b9199c917a160fb9fe0cb856
The diagnostics API is not meant for O.
Bug: b/37509437
Test: build
Change-Id: I70f30caa8cd0b234b9199c917a160fb9fe0cb856
update Car.VERSION and add old API snapshot
bug: 36789624
Test: build
Change-Id: I6de31f31392578e8bde58cddd88d4f5103473de2
bug: 36789624
Test: build
Change-Id: I6de31f31392578e8bde58cddd88d4f5103473de2
Fix CarHvacManagerTest to not need min/max on certain properties.
Bug 36791505
Change-Id: I7888d93e1470d38f5abd5c1bc81927d70e182db3
(cherry picked from commit 4abd8028b840e55788e6f698f83ae033cc2b4e92)
Bug 36791505
Change-Id: I7888d93e1470d38f5abd5c1bc81927d70e182db3
(cherry picked from commit 4abd8028b840e55788e6f698f83ae033cc2b4e92)
merge in oc-release history after reset to oc-dev
Merge "Initial e2e Vehicle s/w stack infrastructure" into oc-dev
Merge "Fixing sync in Car(Sensor|Diagnostic)Manager" into oc-dev
Fixing sync in Car(Sensor|Diagnostic)Manager
Bug: b/37254546
Test: verified e2e tests no longer crashing with
ConcurrentModificationException
Change-Id: I2e295bfec36f6e0b4a6c4187ad8d8c7eaf9250c7
Bug: b/37254546
Test: verified e2e tests no longer crashing with
ConcurrentModificationException
Change-Id: I2e295bfec36f6e0b4a6c4187ad8d8c7eaf9250c7
merge in oc-release history after reset to oc-dev
Merge "bootanalyze: handle all valid fs_stat properly" into oc-dev
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
- 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
Merge "Move mic button to its own fragment." into oc-dev
Merge "Do not start home activity if it's not ready" into oc-dev
Move mic button to its own fragment.
Bug: 37317932
Test: Manually tested. Mic does not show up in every fragment anymore.
Change-Id: Ic219e570e0c8426119db96b781892f1186e51fef
Bug: 37317932
Test: Manually tested. Mic does not show up in every fragment anymore.
Change-Id: Ic219e570e0c8426119db96b781892f1186e51fef
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
Also, fixed some sensor mapping between CarSensorManager and VHAL
Bug: b/36510399
Test: runtest -x packages/services/Car/tests/vehiclehal_test/
Change-Id: I556e03402c16a3b2c8cb25d7a048f8c9a072e23b
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
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
Merge "Changed the naming scheme for Treble java libraries (both static and dynamic)" into oc-dev
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
android.hardware.foo@1.0-java => android.hardware.foo-V1.0-java
Bug: 37207894
Test: make
Change-Id: If611e6cc1f05320b8fc99d5244eb40f92be9aa71
Merged-In: Ie2a1af8bb38e0ef4f044ca5dbea9cf50b61a0c68
Added Annotation to execute test.
Test: Tested locally.
Change-Id: I92adb3b405704c9a793e0510c96e33ecc4f28401
(cherry picked from commit a3b34bfdcbd88eab3353e4ef52c9d54ad5416cd4)
Test: Tested locally.
Change-Id: I92adb3b405704c9a793e0510c96e33ecc4f28401
(cherry picked from commit a3b34bfdcbd88eab3353e4ef52c9d54ad5416cd4)
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)
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)
merge in oc-release history after reset to oc-dev
Merge "Fix compiling with javac" into oc-dev
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)
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)
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)
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)
merge in oc-release history after reset to oc-dev
Merge "Use GraphicBuffer instead of GraphicBufferMapper" into oc-dev
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
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
merge in oc-release history after reset to oc-dev
Merge "Put an assistant mic in KitchenSink" into oc-dev
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)
- 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)
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)
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)
Merge "Fix transitive include." into oc-dev
Fix transitive include.
Was relying on include from MQDescriptor.h
Test: pass
Change-Id: I25406e96bf00aa97abd21b9ef87d36b4d900fb06
Was relying on include from MQDescriptor.h
Test: pass
Change-Id: I25406e96bf00aa97abd21b9ef87d36b4d900fb06
Add missing makefile to build StressFS tool.
Bug 36444880
Change-Id: I52d09b6be6eb63eb1a070fc8fdd9a089062baded
(cherry picked from commit 8c333422eb01f114112c340cf7256e3439c0efdb)
Bug 36444880
Change-Id: I52d09b6be6eb63eb1a070fc8fdd9a089062baded
(cherry picked from commit 8c333422eb01f114112c340cf7256e3439c0efdb)
merge in oc-release history after reset to oc-dev
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)
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)
Merge "Add cleanspec to fix incremental build issue" into oc-dev
Merge "Don't try to load jni_car_service which no longer exists" into oc-dev
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)
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)
Merge "Remove deprecated CarCamera interface" into oc-dev
merge in oc-release history after reset to oc-dev
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: 36900851, 36900269
Test: Code builds for bat_land-eng
Change-Id: Ia952e267a8b6a0e8c81be6818a653012ffd76b00
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: 36900851, 36900269
Test: Code builds for bat_land-eng
Change-Id: Ia952e267a8b6a0e8c81be6818a653012ffd76b00
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)
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)
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)
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)
merge in oc-release history after reset to oc-dev
Merge "Update EVS app and manager for HAL revisions" into oc-dev
Merge "Fix CarVolumeServiceTest failure." into oc-dev
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
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
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
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
Utility for continuously writing to flash.
Used for boot analysis and to stress the filesystem to know whether or
not the cleanup is being done correctly. Spawns two threads that
simultaneously write to the app's local data storage and the external
storage (SD card; sometimes emulated).
Intended to be invoked from the shell.
Bug 36444880
Change-Id: I82db5e4d25c534383a0e7ecc751ebad94f60e552
(cherry picked from commit 7e90c364f3e97d840aae75f4f1986471162977d1)
Used for boot analysis and to stress the filesystem to know whether or
not the cleanup is being done correctly. Spawns two threads that
simultaneously write to the app's local data storage and the external
storage (SD card; sometimes emulated).
Intended to be invoked from the shell.
Bug 36444880
Change-Id: I82db5e4d25c534383a0e7ecc751ebad94f60e552
(cherry picked from commit 7e90c364f3e97d840aae75f4f1986471162977d1)