]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - android/platform-packages-services-car.git/log
android/platform-packages-services-car.git
5 years agoSnap for 4957529 from 95c93939201441d8b5eaba422ccc7c1bea47e574 to pi-qpr1-release pie-qpr1-release pie-qpr1-s1-release pie-qpr1-s2-release pie-qpr1-s3-release pie-qpr2-release android-9.0.0_r16 android-9.0.0_r19 android-9.0.0_r20 android-9.0.0_r21 android-9.0.0_r22 android-9.0.0_r30 android-9.0.0_r31 android-9.0.0_r32 android-9.0.0_r33 android-9.0.0_r34 android-9.0.0_r35
android-build-team Robot [Thu, 16 Aug 2018 03:06:20 +0000 (03:06 +0000)]
Snap for 4957529 from 95c93939201441d8b5eaba422ccc7c1bea47e574 to pi-qpr1-release

Change-Id: I13691362b626005dc503e12312f76a0aad67e315

5 years agoAdds CarTrustAgentClientApp as test app for trust agent pie-b4s4-dev pie-qpr3-b-release pie-qpr3-release pie-qpr3-s1-release android-9.0.0_r36 android-9.0.0_r37 android-9.0.0_r40 android-9.0.0_r41 android-9.0.0_r42 android-9.0.0_r43 android-9.0.0_r44 android-9.0.0_r45 android-9.0.0_r46 android-9.0.0_r47
Hongwei Wang [Mon, 23 Jul 2018 23:07:55 +0000 (16:07 -0700)]
Adds CarTrustAgentClientApp as test app for trust agent

Bug: 111192659
Test: m -j CarTrustAgentClient
Change-Id: Ic075bc44fc192157cf323a806e1fcd1063411666
Merged-In: Ic075bc44fc192157cf323a806e1fcd1063411666
(cherry picked from commit f7a9b9a878a68638bb07470f70177aee47f580d0)

5 years agoSnap for 4922203 from 50191247deaa32508a5d230b9124ce9df74e0416 to pi-qpr1-release
android-build-team Robot [Tue, 31 Jul 2018 03:14:13 +0000 (03:14 +0000)]
Snap for 4922203 from 50191247deaa32508a5d230b9124ce9df74e0416 to pi-qpr1-release

Change-Id: I4b58f776f690060aa1032106843449f29ca5dde8

5 years agoMerge "Cache CarPropertyConfigs in CarPropertyService" into pi-dev
TreeHugger Robot [Mon, 30 Jul 2018 22:40:59 +0000 (22:40 +0000)]
Merge "Cache CarPropertyConfigs in CarPropertyService" into pi-dev

5 years agoSnap for 4916303 from a4673b6b5ccbdb09fc65d316497ab39b826fcbfa to pi-qpr1-release
android-build-team Robot [Fri, 27 Jul 2018 03:06:56 +0000 (03:06 +0000)]
Snap for 4916303 from a4673b6b5ccbdb09fc65d316497ab39b826fcbfa to pi-qpr1-release

Change-Id: I67bafc194b2562c817f6d3a272aa7e76b3f127e8

5 years agoFixed package name in mocked car service
Chao Yan [Tue, 24 Jul 2018 19:28:31 +0000 (12:28 -0700)]
Fixed package name in mocked car service

Bug: 111373478
Test: atest CarServiceTest

Change-Id: I4a98ca4411f5caa4925acffc7d3630284c7471dd

5 years agoMerge "Expose PortLocationType in car-lib" into pi-dev
TreeHugger Robot [Tue, 24 Jul 2018 00:46:58 +0000 (00:46 +0000)]
Merge "Expose PortLocationType in car-lib" into pi-dev

5 years agoMerge "Remove ADJUST_CAR_CABIN permission" into pi-dev
TreeHugger Robot [Mon, 23 Jul 2018 23:21:06 +0000 (23:21 +0000)]
Merge "Remove ADJUST_CAR_CABIN permission" into pi-dev

5 years agoExpose PortLocationType in car-lib
Kai [Mon, 23 Jul 2018 22:13:21 +0000 (15:13 -0700)]
Expose PortLocationType in car-lib

Expose PortLocationType in car-lib

Bug: 111659213
Test: make and flash
Change-Id: If5265fe05b9b8a15fbab8bb69f3ca60cec2bdc23

5 years agoRemove ADJUST_CAR_CABIN permission
Kai [Mon, 23 Jul 2018 20:52:26 +0000 (13:52 -0700)]
Remove ADJUST_CAR_CABIN permission

Remove ADJUST_CAR_CABIN permission.

Bug: 111695778
Test: make and flash
Change-Id: I4bb6a7bcaf5066bf64b14e3318de2f2f094835ea

5 years agoCache CarPropertyConfigs in CarPropertyService
Kai [Fri, 20 Jul 2018 21:25:34 +0000 (14:25 -0700)]
Cache CarPropertyConfigs in CarPropertyService

Cache CarPropertyConfigs in init().

Bug:111694943
Test: build and logcat
Change-Id: I66713cf7accf4b12279d809a2d77e2e2e69e93d7

5 years agoMerge "Provide an option to disable UxR change broadcast." into pi-dev pie-dr1-dev
TreeHugger Robot [Thu, 19 Jul 2018 22:29:50 +0000 (22:29 +0000)]
Merge "Provide an option to disable UxR change broadcast." into pi-dev

5 years agoProvide an option to disable UxR change broadcast.
Ram Periathiruvadi [Wed, 18 Jul 2018 01:01:31 +0000 (18:01 -0700)]
Provide an option to disable UxR change broadcast.

This is an option in debug builds to be able to turn off broadcasting UX
restriction changes, so non-drive-optimized apps will not be blocked by
the system in a restricted state. In other words, this turns off the UX
restriction engine.

Bug: 111515554
Test: Test if previously blocked apps and activities can run when UX
restriction engine is disabled.

Change-Id: I6e6af550bade5fb5e84603e3bf5c962e94a881ef

5 years agoMerge "EVS patches from AOSP" into pi-dev
TreeHugger Robot [Tue, 17 Jul 2018 15:41:44 +0000 (15:41 +0000)]
Merge "EVS patches from AOSP" into pi-dev

5 years agoMerge "Expose VehicleLightState and VehicleLightSwitch" into pi-dev
TreeHugger Robot [Tue, 17 Jul 2018 02:13:22 +0000 (02:13 +0000)]
Merge "Expose VehicleLightState and VehicleLightSwitch" into pi-dev

5 years agoExpose VehicleLightState and VehicleLightSwitch
Kai [Mon, 16 Jul 2018 21:32:50 +0000 (14:32 -0700)]
Expose VehicleLightState and VehicleLightSwitch

Bug: 111449581
Test: make and flash into Mojave
Change-Id: I651ee213cf67d68a223727156c6a8b606556d8b3

5 years agoMerge "Expose accessIds in car-lib" into pi-dev
TreeHugger Robot [Sat, 14 Jul 2018 00:26:22 +0000 (00:26 +0000)]
Merge "Expose accessIds in car-lib" into pi-dev

5 years agoExpose accessIds in car-lib
Kai [Fri, 13 Jul 2018 22:07:53 +0000 (15:07 -0700)]
Expose accessIds in car-lib

Expose accessIds in car-lib.

Bug: 111372110
Test: make and flash into Mojave
Change-Id: I7a9315efc331006197fc45c82bd3b56e0c59ba03

5 years agoMerge "Expose VHAL propertyId for CarPropertyManager" into pi-dev
Kai Wang [Fri, 13 Jul 2018 18:10:53 +0000 (18:10 +0000)]
Merge "Expose VHAL propertyId for CarPropertyManager" into pi-dev

5 years agoMerge "Change default name of first admin user in headless model." into pi-dev
TreeHugger Robot [Fri, 13 Jul 2018 17:35:07 +0000 (17:35 +0000)]
Merge "Change default name of first admin user in headless model." into pi-dev

5 years agoExpose VHAL propertyId for CarPropertyManager
Kai [Wed, 11 Jul 2018 17:45:50 +0000 (10:45 -0700)]
Expose VHAL propertyId for CarPropertyManager

Expose VHAL propertyid for CarPorertyManger in car-lib.

Bug: 111321976
Test: build and flash into Mojave
Change-Id: I348b727631cfac0cc4121f14fe985acb085ba16b

5 years agoFix car service crash. Add needed sepolicy configs
Nicholas Sauer [Thu, 12 Jul 2018 19:23:43 +0000 (12:23 -0700)]
Fix car service crash. Add needed sepolicy configs

bug: 111399355
Test: lunch gcar & m & emulator
Change-Id: I1ad7cbf0db22460a69f61cff5a46cf7528dab65b

5 years agoEVS patches from AOSP
Scott Randolph [Thu, 12 Jul 2018 20:10:36 +0000 (13:10 -0700)]
EVS patches from AOSP

Apply a couple of minor fixes recieved via AOSP patches to the sample
EVS driver and evs application.
Header guards added
MIPs turned off for video texture
Video buffer released from gl context at end of each frame

Bug: 111402303
Test: Build mojave
Change-Id: Ic96a91601b74030a894f8a3f5182709af0c761d0

5 years agoMerge "Cleanup javadoc for CarUxRestrictions." into pi-dev
Ram Periathiruvadi [Thu, 12 Jul 2018 17:01:54 +0000 (17:01 +0000)]
Merge "Cleanup javadoc for CarUxRestrictions." into pi-dev

5 years agoCleanup javadoc for CarUxRestrictions.
Ram Periathiruvadi [Thu, 12 Jul 2018 03:34:14 +0000 (20:34 -0700)]
Cleanup javadoc for CarUxRestrictions.

Bug: 111273021
Test: make and boot
Change-Id: I1732660249c57e95c9128412dd3d54915b05a3ba

5 years agoMerge "Fix CarPackageManager reading blacklisted packages." into pi-dev
Ram Periathiruvadi [Thu, 12 Jul 2018 03:22:36 +0000 (03:22 +0000)]
Merge "Fix CarPackageManager reading blacklisted packages." into pi-dev

5 years agoFix CarPackageManager reading blacklisted packages.
Ram Periathiruvadi [Thu, 12 Jul 2018 01:31:13 +0000 (18:31 -0700)]
Fix CarPackageManager reading blacklisted packages.

Ignore empty strings coming from the config.xml.

Bug: 80428042
Test: check boot logcat to make sure we ignore empty blacklist strings.

Change-Id: Ie9563690f85f7dfbde1e80a1ff545bc66abb0e92

5 years agoChange default name of first admin user in headless model.
Ying Zheng [Wed, 11 Jul 2018 23:39:01 +0000 (16:39 -0700)]
Change default name of first admin user in headless model.

Test: Unit test
Bug: 110787654
Change-Id: I0d05b8c13c67de935c15cb7290cf061e02c6ea38

5 years agoUpdate default fallback idling state UX restrictions.
Ram Periathiruvadi [Wed, 11 Jul 2018 23:30:48 +0000 (16:30 -0700)]
Update default fallback idling state UX restrictions.

Update the fallback restrictions to be in sync with the default
restrictions found in the car_ux_restrictions_map.xml.

Bug: 111367243
Test: Validate idling UX restrictions to not require DO, when no mapping
XML is provided.

Change-Id: Ibcbb9dbafd99dfe0444a04ecd5b3c7dc590ee833

5 years agoMerge "Send global type property event in register" into pi-dev
Kai Wang [Tue, 10 Jul 2018 17:18:13 +0000 (17:18 +0000)]
Merge "Send global type property event in register" into pi-dev

5 years agoMerge "Init DayNightMode after booting" into pi-dev
Kai Wang [Tue, 10 Jul 2018 17:18:13 +0000 (17:18 +0000)]
Merge "Init DayNightMode after booting" into pi-dev

5 years agoMerge "Add connectivity test fragment to KitchenSink" into pi-dev
TreeHugger Robot [Tue, 10 Jul 2018 01:30:42 +0000 (01:30 +0000)]
Merge "Add connectivity test fragment to KitchenSink" into pi-dev

5 years agoSend global type property event in register
Kai [Fri, 29 Jun 2018 00:24:12 +0000 (17:24 -0700)]
Send global type property event in register

Send global type properties' events sunch as AC_ON, Night_Mode
when we are registering.

Bug: 110899894109817929
Test: Test in OWL and Mojave
Change-Id: If713a18b33361466ab2e7499db48732ff57eb255

5 years agoMerge "Adding car specific default guest restrictions." into pi-dev
Jovana Knezevic [Sat, 30 Jun 2018 22:56:41 +0000 (22:56 +0000)]
Merge "Adding car specific default guest restrictions." into pi-dev

5 years agoAdding car specific default guest restrictions.
jovanak [Thu, 28 Jun 2018 18:22:14 +0000 (11:22 -0700)]
Adding car specific default guest restrictions.

Fixes: 109697763
Test: atest CarUserManagerHelperTest
Change-Id: I6b5c70b9e2975198f5db90604604f68eb4e757bf

5 years agoMerge "Fix setting night mode and change test crashes EKS" into pi-dev
Kai Wang [Fri, 29 Jun 2018 21:48:36 +0000 (21:48 +0000)]
Merge "Fix setting night mode and change test crashes EKS" into pi-dev

5 years agoMerge "Fixing a bug in maximum users allowed logic on the device." into pi-dev
Jovana Knezevic [Fri, 29 Jun 2018 20:37:51 +0000 (20:37 +0000)]
Merge "Fixing a bug in maximum users allowed logic on the device." into pi-dev

5 years agoFix setting night mode and change test crashes EKS
Kai [Wed, 20 Jun 2018 19:37:52 +0000 (12:37 -0700)]
Fix setting night mode and change test crashes EKS

Add AsyncTask to refresh Car*Manager. Ensure all properties will
be checked when we use unregister a listener.

Bug: 110043754110437786
Test: 1) Start EKS, Select "Sensors" test.
      2) Use vhal_emulator.py to set night model state to 1.
      3) Switch to "hvac" test, set nigth model state to 0.

Change-Id: I48ce210c45cf2da2db90178aa909e5f10eada8f6
Merged-In: I48ce210c45cf2da2db90178aa909e5f10eada8f6
(cherry picked from commit cf3387bd4c90ee09eeff2dc0878c26a399e5ff23)

5 years agoAdd connectivity test fragment to KitchenSink
Pavel Maltsev [Fri, 22 Jun 2018 22:45:09 +0000 (15:45 -0700)]
Add connectivity test fragment to KitchenSink

Right now it displays a list of networks and can send request for
OEM-paid and Eth1 networks.

Bug: 74811930
Test: kitchen sink
Change-Id: I5628d4ef745b4bbe1a7b4f33d0c3d2056c5884c1
Merged-In: I5628d4ef745b4bbe1a7b4f33d0c3d2056c5884c1

5 years agoFixing a bug in maximum users allowed logic on the device.
jovanak [Fri, 29 Jun 2018 18:38:57 +0000 (11:38 -0700)]
Fixing a bug in maximum users allowed logic on the device.

We need to use CarUserManagerHelper.getMaxSupportedUsers instead of
UserManager.getMaxSupportedUsers() to correctly take user 0 into account
in headles system user model.

Bug: 80197830
Test: atest CarUserManagerHelperTest
Change-Id: I167aa03d2c6ed03dc225cb4686a07395518752b8

5 years agoMerge "Invoke Assistant via VoiceInteractionSession." into pi-dev
TreeHugger Robot [Thu, 28 Jun 2018 18:41:06 +0000 (18:41 +0000)]
Merge "Invoke Assistant via VoiceInteractionSession." into pi-dev

5 years agoAdding methods for keeping track of user limits on the device.
jovanak [Wed, 27 Jun 2018 01:45:30 +0000 (18:45 -0700)]
Adding methods for keeping track of user limits on the device.

Bug:80197830
Test: atest CarUserManagerHelperTest
Change-Id: I32f06fdff713c3f0b71e9c39c3a6db8804643b8f

5 years agoInvoke Assistant via VoiceInteractionSession.
Nicholas Sauer [Tue, 19 Jun 2018 22:04:04 +0000 (15:04 -0700)]
Invoke Assistant via VoiceInteractionSession.

bug: 110378156
Test: lunch bat_land-userdbyg && m; deploy and use the input activity in kitchen sink to verify voice.

Change-Id: I96ff5377560a5698290a082eb6eb3b4e8017e3bb

5 years agoDisable location for headless system user.
Ying Zheng [Tue, 26 Jun 2018 19:47:26 +0000 (12:47 -0700)]
Disable location for headless system user.

Bug: 79535369
Test: Unit test
Change-Id: If93a9aedd69588dbc939fe7fa1c963ae91a85dc6

5 years agoInit DayNightMode after booting
Kai [Fri, 22 Jun 2018 21:41:57 +0000 (14:41 -0700)]
Init DayNightMode after booting

Get and set DayNightMode after booting.

Bug: 109817929
Test: Flash to Owl and test
Change-Id: Iaca1cb22490899d5e7e3b60aeaa2a45b18e2c7b0
(cherry picked from commit 7644f4826eef7b45dd0528367d56bed7a08c4b96)

5 years agoMerge "Enables registering/unregistering multiple update listeners." into pi-dev
Jovana Knezevic [Mon, 25 Jun 2018 22:14:32 +0000 (22:14 +0000)]
Merge "Enables registering/unregistering multiple update listeners." into pi-dev

5 years agoMerge "Update last active user." into pi-dev
Ying Zheng [Mon, 25 Jun 2018 20:09:05 +0000 (20:09 +0000)]
Merge "Update last active user." into pi-dev

5 years agoEnables registering/unregistering multiple update listeners.
jovanak [Sat, 23 Jun 2018 00:23:43 +0000 (17:23 -0700)]
Enables registering/unregistering multiple update listeners.

Change-Id: I8c59dd8bb675644f4c7bc0e4488a3c3576b01631
Fixes: 110708099
Test: atest CarUserManagerHelperTest

5 years agoUpdate last active user.
Ying Zheng [Fri, 22 Jun 2018 23:54:51 +0000 (16:54 -0700)]
Update last active user.

Test: Unit test
Bug: 110156344
Change-Id: If8967f3acc434759e4f5b8bc25d6d913c1fa4ee6

5 years agoFix bug in CarPropertyUtils.toCarPropertyValue which returns an Integer when an Integ...
Xin Wei Chow [Wed, 20 Jun 2018 10:20:59 +0000 (20:20 +1000)]
Fix bug in CarPropertyUtils.toCarPropertyValue which returns an Integer when an Integer[] is expected.

Bug: 110245496
Change-Id: Ib09593c4b03e65e60208e326e070220223e96550
Fixes: 110245496
Test: runtest -x packages/services/Car/tests/android_car_api_test

5 years agoMerge "Associate user id with unlock token handle" into pi-dev
TreeHugger Robot [Thu, 21 Jun 2018 23:00:15 +0000 (23:00 +0000)]
Merge "Associate user id with unlock token handle" into pi-dev

5 years agoMerge "Update set last active user to exclude ephemeral users." into pi-dev
Ying Zheng [Thu, 21 Jun 2018 22:30:11 +0000 (22:30 +0000)]
Merge "Update set last active user to exclude ephemeral users." into pi-dev

5 years agoAssociate user id with unlock token handle
Hongwei Wang [Tue, 5 Jun 2018 23:42:06 +0000 (16:42 -0700)]
Associate user id with unlock token handle

Note: this assumes user-0 is always unlocked otherwise one would not
be able to access shared preference for user-0 when cold booted to lock
screen.

To test this CL, turn on the following system property

android.car.systemuser.headless=true

This build flag will make Android boot into a headless user-0 model and
user-0 will always be unlocked.

Bluetooth stack gets restarted every time switching user. This CL also
ensures the BLE trust agent service is started after bluetooth finishes
rebooting.

Current limitations:
- Unlock token works only if user sets password
- Unlock token is not activated till user finishes lock-unlock once

Bug: 78602296
Bug: 77854782
Test: unlock user by trust device on Mojave
Change-Id: Ifc2bf97593adbb77d518d6b11c06ea5234a4ebbd

5 years agoMerge "Return mocked AudioManager in car unit tests" into pi-dev
Hongwei Wang [Thu, 21 Jun 2018 21:35:54 +0000 (21:35 +0000)]
Merge "Return mocked AudioManager in car unit tests" into pi-dev

5 years agoUpdate set last active user to exclude ephemeral users.
Ying Zheng [Thu, 21 Jun 2018 17:05:58 +0000 (10:05 -0700)]
Update set last active user to exclude ephemeral users.

Bug: 110156344,78908555
Test: Unit test
Change-Id: I4975184ef47adaeb472ea295b7d433cee24ea3a4

5 years agoReturn mocked AudioManager in car unit tests
Hongwei Wang [Thu, 21 Jun 2018 18:51:28 +0000 (11:51 -0700)]
Return mocked AudioManager in car unit tests

Bug: 110532739
Test: atest CarServiceTest
Change-Id: I12d8499e5b3cca6696b934b03d89647a271113c0

5 years agoMerge "Fix display brightness scaling" into pi-dev
Steve Paik [Thu, 21 Jun 2018 18:31:00 +0000 (18:31 +0000)]
Merge "Fix display brightness scaling" into pi-dev

5 years agoFix display brightness scaling
Steve Paik [Wed, 20 Jun 2018 19:35:23 +0000 (12:35 -0700)]
Fix display brightness scaling

Bug: 80498984
Test: Settings app
Change-Id: I009ce2df5f003255c4ebefff6876aa1c38037897
Merged-In: Ifdfb1340ee0236a77664d11676082d60db4b1663

5 years agoMerge "Import CarPropertyManager into CarInfoManager" into pi-dev
Kai Wang [Thu, 21 Jun 2018 06:36:22 +0000 (06:36 +0000)]
Merge "Import CarPropertyManager into CarInfoManager" into pi-dev

5 years agoImport CarPropertyManager into CarInfoManager
Kai [Thu, 21 Jun 2018 00:23:06 +0000 (17:23 -0700)]
Import CarPropertyManager into CarInfoManager

Bug: 110492154
Test: runtest -x packages/services/Car/tests/carservice_unit_test/
      runtest -x packages/services/Car/tests/carservice_test/
      runtest -x packages/services/Car/tests/android_car_api_test

Change-Id: I47b4f26ecb8868890d490b95176b14f6e7b60822

5 years agoComplete the logic around last active user, including:
Ying Zheng [Tue, 19 Jun 2018 23:01:05 +0000 (16:01 -0700)]
Complete the logic around last active user, including:

- Update CarSettings last active user when user switched.
- Boot into the last active user if valid, or boot into the smallest
user id.
- Not allow deleting the last admin user, so we have a user 10+ to boot
into.

Test: Unit test
Bug: 110156344,110425490,110425354
Change-Id: I3e85805bf469bd17709973936e8c3285c8f44207

5 years agoRemoves the test that fails when running it in user 0.
jovanak [Wed, 20 Jun 2018 21:15:39 +0000 (14:15 -0700)]
Removes the test that fails when running it in user 0.

Cannot implement this test because of inability to mock current user, so
removing until robolectric tests are available.

Bug:110232368
Test: atest CarUserManagerHelperTest
Change-Id: I4be6615ab8c3c616606384495bc7006f2bbeb0f8

5 years agoMerge "Update the CarLocationService to work when the system user is headless." into...
Gregory Clark [Wed, 20 Jun 2018 19:21:37 +0000 (19:21 +0000)]
Merge "Update the CarLocationService to work when the system user is headless." into pi-dev

5 years agoMerge "Change BASIC_INFO_EV_CONNECTOR_TYPES ValueType" into pi-dev
TreeHugger Robot [Wed, 20 Jun 2018 14:10:04 +0000 (14:10 +0000)]
Merge "Change BASIC_INFO_EV_CONNECTOR_TYPES ValueType" into pi-dev

5 years agoMerge "Ensure the initial volume when creating audio patch" into pi-dev
Hongwei Wang [Wed, 20 Jun 2018 02:07:06 +0000 (02:07 +0000)]
Merge "Ensure the initial volume when creating audio patch" into pi-dev

5 years agoUpdate the CarLocationService to work when the system user is headless.
Gregory Clark [Thu, 7 Jun 2018 23:42:12 +0000 (16:42 -0700)]
Update the CarLocationService to work when the system user is headless.

Bug: b/79772231
Test: Tested on Owl and ran atest CarLocationServiceTest
Change-Id: I1598f0fba0ba5335cb1d9c81e16d1db8d7922df0

5 years agoEnsure the initial volume when creating audio patch
Hongwei Wang [Tue, 19 Jun 2018 19:22:08 +0000 (12:22 -0700)]
Ensure the initial volume when creating audio patch

Bug: 79984989
Test: Switch audio sources on OWL bench

Change-Id: Ic7320fecfc8a42ff4886099ff7831f85cba146b0

5 years agoMerge "Check app install source before checking for DO." into pi-dev
Ram Periathiruvadi [Tue, 19 Jun 2018 19:44:04 +0000 (19:44 +0000)]
Merge "Check app install source before checking for DO." into pi-dev

5 years agoChange BASIC_INFO_EV_CONNECTOR_TYPES ValueType
Kai [Tue, 19 Jun 2018 18:11:48 +0000 (11:11 -0700)]
Change BASIC_INFO_EV_CONNECTOR_TYPES ValueType

BASIC_INFO_EV_CONNECTOR_TYPES should be Int32_vec

Bug: 110245496
Test: Build and run Unit Test
Change-Id: I28ee4a379d6c426160da37e59b204a5b17c18c19

5 years agoMerge "Making Guest ephemeral for the missed build targets." into pi-dev
Jovana Knezevic [Tue, 19 Jun 2018 06:11:35 +0000 (06:11 +0000)]
Merge "Making Guest ephemeral for the missed build targets." into pi-dev

5 years agoMerge "Adjusting restrictions applied to non-admins." into pi-dev
Jovana Knezevic [Tue, 19 Jun 2018 06:11:17 +0000 (06:11 +0000)]
Merge "Adjusting restrictions applied to non-admins." into pi-dev

5 years agoAdjusting restrictions applied to non-admins.
jovanak [Thu, 14 Jun 2018 22:22:28 +0000 (15:22 -0700)]
Adjusting restrictions applied to non-admins.

1. Do not apply DISALLOW_REMOVE_USERS restriction. Enforce this in removeUser method to allow users to remove themselves.

2. Remove DISALLOW_SMS and DISALLOW_OUTGOING_CALLS restrictions that are applied by the framework.

Fixes: 110232368
Bug: 109697822
Test: atest CarUserManagerHelperTest; verified restrictions on mojave.
Change-Id: I036e30088ec9febdab87c19006f32772f2a3b1fc

5 years agoMaking Guest ephemeral for the missed build targets.
jovanak [Mon, 18 Jun 2018 18:44:03 +0000 (11:44 -0700)]
Making Guest ephemeral for the missed build targets.

Bug: 77336441
Test: verified in emulator.
Change-Id: I8ae72f1b21581ae0a07e613ea09edc7c2f61427b

5 years agoSends KEYCODE_MEDIA_{PLAY,PAUSE} on master mute
Hongwei Wang [Fri, 8 Jun 2018 18:02:06 +0000 (11:02 -0700)]
Sends KEYCODE_MEDIA_{PLAY,PAUSE} on master mute

Bug: 80080995
Test: Press mute button on OWL
Change-Id: Ie35850893ec2e2b3f36badb25800b6d94f4e3830

5 years agoPersists master mute state, overlay-able
Hongwei Wang [Thu, 31 May 2018 20:11:03 +0000 (13:11 -0700)]
Persists master mute state, overlay-able

Bug: 80541413
Test: adb shell input keyevent 164
Change-Id: I1626692885c67a0ff81bf88b57b8d00aad093b01

5 years agoCheck app install source before checking for DO.
Ram Periathiruvadi [Wed, 13 Jun 2018 19:28:12 +0000 (12:28 -0700)]
Check app install source before checking for DO.

Check if the non system apps were installed from an allowed app store
before looking for the distraction optimized activities in their
manifest.  This prevents unauthorized apps faking DO behavior.

Bug: 109941605
Test: Test if sideloaded apps with DO activities are not added to the
allowed to run in a restricted state list.

Change-Id: I20f1560d1f26910216dcacc0333d2ae3b6fd1f27

5 years agoMerge "Fix CarUserManagerHelperTest." into pi-dev
Ying Zheng [Fri, 15 Jun 2018 20:02:43 +0000 (20:02 +0000)]
Merge "Fix CarUserManagerHelperTest." into pi-dev

5 years agoMerge "Only admins or system user car create other admins." into pi-dev
Jovana Knezevic [Fri, 15 Jun 2018 19:44:35 +0000 (19:44 +0000)]
Merge "Only admins or system user car create other admins." into pi-dev

5 years agoOnly admins or system user car create other admins.
jovanak [Thu, 14 Jun 2018 19:13:49 +0000 (12:13 -0700)]
Only admins or system user car create other admins.

Change-Id: Ie67d0a9f7ff70594c075af6bb824e69d85feaf02
Fixes: 109698068
Test: atest CarUserManagerHelperTest

5 years agoFix CarUserManagerHelperTest.
Ying Zheng [Fri, 15 Jun 2018 18:17:20 +0000 (11:17 -0700)]
Fix CarUserManagerHelperTest.

Test: Unit test
Bug: 110165933
Change-Id: I6b286316a3c3b64624f366ad23356a36373ed7a5

5 years agoMerge "Fix typecast" into pi-dev
TreeHugger Robot [Fri, 15 Jun 2018 15:24:50 +0000 (15:24 +0000)]
Merge "Fix typecast" into pi-dev

5 years agoFix typecast
Steve Paik [Fri, 15 Jun 2018 02:40:47 +0000 (19:40 -0700)]
Fix typecast

Bug: 110238490
Test: Code review
Change-Id: I4978041e86b04686362588376b7c7f16de2bfa69

5 years ago[Garage Mode: Refactoring] Scoped out GarageModePolicy into separate
Serik Beketayev [Tue, 12 Jun 2018 23:54:29 +0000 (16:54 -0700)]
[Garage Mode: Refactoring] Scoped out GarageModePolicy into separate
class.

Test: JUnit and Manual
Bug: 110113240
Change-Id: If74bf030dcef842eca1f8c0fa8e9758897be0cb9
(cherry picked from commit 06a666831768f85e042c49868e5ed27231ba95d7)

5 years agoMerge "Disable add accounts for user 0." into pi-dev
Ying Zheng [Thu, 14 Jun 2018 20:21:38 +0000 (20:21 +0000)]
Merge "Disable add accounts for user 0." into pi-dev

5 years agoMerge "Clean up for ENV_OUTSIDE_TEMPERATURE" into pi-dev
Kai Wang [Thu, 14 Jun 2018 20:04:24 +0000 (20:04 +0000)]
Merge "Clean up for ENV_OUTSIDE_TEMPERATURE" into pi-dev

5 years agoDisable add accounts for user 0.
Ying Zheng [Wed, 13 Jun 2018 19:42:31 +0000 (12:42 -0700)]
Disable add accounts for user 0.

Bug: 79535560
Test: Unit test
Change-Id: Ib0f04ee28829c60e46fbc378b04917a04a52c5ae

5 years agoMerge "Fixing tests in CarUserManagerHelperTest." into pi-dev
Jovana Knezevic [Thu, 14 Jun 2018 06:54:26 +0000 (06:54 +0000)]
Merge "Fixing tests in CarUserManagerHelperTest." into pi-dev

5 years agoClean up for ENV_OUTSIDE_TEMPERATURE
Kai [Thu, 7 Jun 2018 23:25:46 +0000 (16:25 -0700)]
Clean up for ENV_OUTSIDE_TEMPERATURE

Replace SENSOR_TYPE_ENVIRONMENT with ENV_OUTSIDE_TEMPERATURE.
Correct permission of ENV_OUTSIDE_TEMPERATURE in
PropertyHalServiceIds.

Bug: 109742155
Test: runtest -x packages/services/Car/tests/android_car_api_test
      runtest -x packages/services/Car/tests/carservice_unit_test

Change-Id: I28b3567407d81584711b1f27ca98892e1b56d1e5

5 years agoFixing tests in CarUserManagerHelperTest.
jovanak [Wed, 13 Jun 2018 22:52:35 +0000 (15:52 -0700)]
Fixing tests in CarUserManagerHelperTest.

We cannot rely on foreground user being different than system user. This depends
on which user runs the test.

Since we cannot mock foreground user, test that requires it has been removed. It
will be migrated to robolectric test.

Bug: 110165933
Test: atest CarUserManagerHelperTest
Change-Id: I4b7bab2ea38afd5e3278a735418cfa2dd266ce5a

5 years agoMerge "Cache property configs for CarSensorManager" into pi-dev
TreeHugger Robot [Wed, 13 Jun 2018 21:16:21 +0000 (21:16 +0000)]
Merge "Cache property configs for CarSensorManager" into pi-dev

5 years agoCache property configs for CarSensorManager
Steve Paik [Wed, 13 Jun 2018 18:41:31 +0000 (11:41 -0700)]
Cache property configs for CarSensorManager

Bug:110049364
Test: Embedded Kitchen Sink + logcat
Change-Id: I02aa0e28894d93fe5fefb3be45008d3db41d4a64

5 years agoMerge "Adding default user restrictions for non-admin users." into pi-dev
TreeHugger Robot [Tue, 12 Jun 2018 23:13:24 +0000 (23:13 +0000)]
Merge "Adding default user restrictions for non-admin users." into pi-dev

5 years agoAdding default user restrictions for non-admin users.
jovanak [Tue, 12 Jun 2018 17:50:40 +0000 (10:50 -0700)]
Adding default user restrictions for non-admin users.

When a new non-admin is created, restrictions are applied.
When a non-admin is upgraded to admin status, restrictions are lifted.

Change-Id: I3798ec181cb0752cfb8851815c115bef349b311a
Fixes: 109697822
Test: atest CarUserManagerHelperTest

5 years agoMerge "Make default boot into user and last active user settable." into pi-dev
Ying Zheng [Tue, 12 Jun 2018 20:47:56 +0000 (20:47 +0000)]
Merge "Make default boot into user and last active user settable." into pi-dev

5 years agoMake default boot into user and last active user settable.
Ying Zheng [Thu, 7 Jun 2018 21:08:41 +0000 (14:08 -0700)]
Make default boot into user and last active user settable.

Bug: 79535271 78908507
Test: Build
Change-Id: Ie30982b9b34a154faa580fff7a025b1d1be88e2d

5 years agoMerge "Adding API for assigning admin privileges to CarUserManagerHelper." into pi-dev
Jovana Knezevic [Tue, 12 Jun 2018 17:46:51 +0000 (17:46 +0000)]
Merge "Adding API for assigning admin privileges to CarUserManagerHelper." into pi-dev

5 years agoMerge "Fixing failing tests in CarUserManagerHelperTest." into pi-dev
Jovana Knezevic [Mon, 11 Jun 2018 21:56:58 +0000 (21:56 +0000)]
Merge "Fixing failing tests in CarUserManagerHelperTest." into pi-dev

5 years agoAdding API for assigning admin privileges to CarUserManagerHelper.
jovanak [Mon, 11 Jun 2018 21:26:41 +0000 (14:26 -0700)]
Adding API for assigning admin privileges to CarUserManagerHelper.

Change-Id: Id413d30f9d75bbf2eaebed784a5164d7b1a24c85
Fixes: 109698105
Test: atest CarUserManagerHelperTest

5 years agoFixing failing tests in CarUserManagerHelperTest.
jovanak [Thu, 7 Jun 2018 22:03:13 +0000 (15:03 -0700)]
Fixing failing tests in CarUserManagerHelperTest.

Annotating the Test with @SmallTest to run it on builds and get code coverage.

Change-Id: I329ad8358b3b15e3333439020b94f8a2a8d32de3
Fixes: 109885930
Test: atest CarUserManagerHelperTest

5 years agoChange keyguard pattern layout to side by side
Jian Jin [Wed, 6 Jun 2018 01:42:05 +0000 (18:42 -0700)]
Change keyguard pattern layout to side by side

Change-Id: I5aaecbedce12e23cdd1ab5c12028671c769453e0
Fixes: 80135373
Test: In head unit