aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2018-06-30Merge "Adding car specific default guest restrictions." into pi-devJovana Knezevic
2018-06-30Adding car specific default guest restrictions.jovanak
Fixes: 109697763 Test: atest CarUserManagerHelperTest Change-Id: I6b5c70b9e2975198f5db90604604f68eb4e757bf
2018-06-29Merge "Fix setting night mode and change test crashes EKS" into pi-devKai Wang
2018-06-29Merge "Fixing a bug in maximum users allowed logic on the device." into pi-devJovana Knezevic
2018-06-29Fix setting night mode and change test crashes EKSKai
Add AsyncTask to refresh Car*Manager. Ensure all properties will be checked when we use unregister a listener. Bug: 110043754, 110437786 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)
2018-06-29Fixing a bug in maximum users allowed logic on the device.jovanak
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
2018-06-28Merge "Invoke Assistant via VoiceInteractionSession." into pi-devTreeHugger Robot
2018-06-28Adding methods for keeping track of user limits on the device.jovanak
Bug:80197830 Test: atest CarUserManagerHelperTest Change-Id: I32f06fdff713c3f0b71e9c39c3a6db8804643b8f
2018-06-28Invoke Assistant via VoiceInteractionSession.Nicholas Sauer
bug: 110378156 Test: lunch bat_land-userdbyg && m; deploy and use the input activity in kitchen sink to verify voice. Change-Id: I96ff5377560a5698290a082eb6eb3b4e8017e3bb
2018-06-26Disable location for headless system user.Ying Zheng
Bug: 79535369 Test: Unit test Change-Id: If93a9aedd69588dbc939fe7fa1c963ae91a85dc6
2018-06-25Merge "Enables registering/unregistering multiple update listeners." into pi-devJovana Knezevic
2018-06-25Merge "Update last active user." into pi-devYing Zheng
2018-06-25Enables registering/unregistering multiple update listeners.jovanak
Change-Id: I8c59dd8bb675644f4c7bc0e4488a3c3576b01631 Fixes: 110708099 Test: atest CarUserManagerHelperTest
2018-06-25Update last active user.Ying Zheng
Test: Unit test Bug: 110156344 Change-Id: If8967f3acc434759e4f5b8bc25d6d913c1fa4ee6
2018-06-22Fix bug in CarPropertyUtils.toCarPropertyValue which returns an Integer when ↵Xin Wei Chow
an Integer[] is expected. Bug: 110245496 Change-Id: Ib09593c4b03e65e60208e326e070220223e96550 Fixes: 110245496 Test: runtest -x packages/services/Car/tests/android_car_api_test
2018-06-21Merge "Associate user id with unlock token handle" into pi-devTreeHugger Robot
2018-06-21Merge "Update set last active user to exclude ephemeral users." into pi-devYing Zheng
2018-06-21Associate user id with unlock token handleHongwei Wang
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
2018-06-21Merge "Return mocked AudioManager in car unit tests" into pi-devHongwei Wang
2018-06-21Update set last active user to exclude ephemeral users.Ying Zheng
Bug: 110156344,78908555 Test: Unit test Change-Id: I4975184ef47adaeb472ea295b7d433cee24ea3a4
2018-06-21Return mocked AudioManager in car unit testsHongwei Wang
Bug: 110532739 Test: atest CarServiceTest Change-Id: I12d8499e5b3cca6696b934b03d89647a271113c0
2018-06-21Merge "Fix display brightness scaling" into pi-devSteve Paik
2018-06-21Fix display brightness scalingSteve Paik
Bug: 80498984 Test: Settings app Change-Id: I009ce2df5f003255c4ebefff6876aa1c38037897 Merged-In: Ifdfb1340ee0236a77664d11676082d60db4b1663
2018-06-21Merge "Import CarPropertyManager into CarInfoManager" into pi-devKai Wang
2018-06-20Import CarPropertyManager into CarInfoManagerKai
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
2018-06-20Complete the logic around last active user, including:Ying Zheng
- 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
2018-06-20Removes the test that fails when running it in user 0.jovanak
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
2018-06-20Merge "Update the CarLocationService to work when the system user is ↵Gregory Clark
headless." into pi-dev
2018-06-20Merge "Change BASIC_INFO_EV_CONNECTOR_TYPES ValueType" into pi-devTreeHugger Robot
2018-06-20Merge "Ensure the initial volume when creating audio patch" into pi-devHongwei Wang
2018-06-19Update the CarLocationService to work when the system user is headless.Gregory Clark
Bug: b/79772231 Test: Tested on Owl and ran atest CarLocationServiceTest Change-Id: I1598f0fba0ba5335cb1d9c81e16d1db8d7922df0
2018-06-19Ensure the initial volume when creating audio patchHongwei Wang
Bug: 79984989 Test: Switch audio sources on OWL bench Change-Id: Ic7320fecfc8a42ff4886099ff7831f85cba146b0
2018-06-19Merge "Check app install source before checking for DO." into pi-devRam Periathiruvadi
2018-06-19Change BASIC_INFO_EV_CONNECTOR_TYPES ValueTypeKai
BASIC_INFO_EV_CONNECTOR_TYPES should be Int32_vec Bug: 110245496 Test: Build and run Unit Test Change-Id: I28ee4a379d6c426160da37e59b204a5b17c18c19
2018-06-19Merge "Making Guest ephemeral for the missed build targets." into pi-devJovana Knezevic
2018-06-19Merge "Adjusting restrictions applied to non-admins." into pi-devJovana Knezevic
2018-06-18Adjusting restrictions applied to non-admins.jovanak
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
2018-06-18Making Guest ephemeral for the missed build targets.jovanak
Bug: 77336441 Test: verified in emulator. Change-Id: I8ae72f1b21581ae0a07e613ea09edc7c2f61427b
2018-06-18Sends KEYCODE_MEDIA_{PLAY,PAUSE} on master muteHongwei Wang
Bug: 80080995 Test: Press mute button on OWL Change-Id: Ie35850893ec2e2b3f36badb25800b6d94f4e3830
2018-06-18Persists master mute state, overlay-ableHongwei Wang
Bug: 80541413 Test: adb shell input keyevent 164 Change-Id: I1626692885c67a0ff81bf88b57b8d00aad093b01
2018-06-18Check app install source before checking for DO.Ram Periathiruvadi
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
2018-06-15Merge "Fix CarUserManagerHelperTest." into pi-devYing Zheng
2018-06-15Merge "Only admins or system user car create other admins." into pi-devJovana Knezevic
2018-06-15Only admins or system user car create other admins.jovanak
Change-Id: Ie67d0a9f7ff70594c075af6bb824e69d85feaf02 Fixes: 109698068 Test: atest CarUserManagerHelperTest
2018-06-15Fix CarUserManagerHelperTest.Ying Zheng
Test: Unit test Bug: 110165933 Change-Id: I6b286316a3c3b64624f366ad23356a36373ed7a5
2018-06-15Merge "Fix typecast" into pi-devTreeHugger Robot
2018-06-14Fix typecastSteve Paik
Bug: 110238490 Test: Code review Change-Id: I4978041e86b04686362588376b7c7f16de2bfa69
2018-06-14[Garage Mode: Refactoring] Scoped out GarageModePolicy into separateSerik Beketayev
class. Test: JUnit and Manual Bug: 110113240 Change-Id: If74bf030dcef842eca1f8c0fa8e9758897be0cb9 (cherry picked from commit 06a666831768f85e042c49868e5ed27231ba95d7)
2018-06-14Merge "Disable add accounts for user 0." into pi-devYing Zheng
2018-06-14Merge "Clean up for ENV_OUTSIDE_TEMPERATURE" into pi-devKai Wang