aboutsummaryrefslogtreecommitdiff
path: root/tests/UxRestrictionsSample
AgeCommit message (Collapse)Author
2018-06-04Update Car UxR Manager API name.Ram Periathiruvadi
The Listener Interface type name did not start with a capital letter. Bug: 80506092 Test: Test the UXR listeners are updated with the restriction changes. Change-Id: I3cd792cbfe5806d1000cc22bb6aca77ed756ddb7
2018-04-30Enable/disable app blocking during restricted state.Ram Periathiruvadi
Removed the dummy toggle button and reused it for enabling/disabling driving restriction. Bug:78603623 Test: App blocking is enabled or disabled accordingly. Change-Id: I1c5c7c4e55b871e089ed9038ee970763db7c485a
2018-04-16Migrate to androidx namespace for support library.Anthony Chen
Fixes: 77483560 Test: build KitchenSink, deploy and test through fragments Test: build and launch UxRestrictionsSample Change-Id: I539c71464f5a486c9a9373bbbcae8ac14d24e477
2018-04-10Merge "Depend on correct target for the car support library." into pi-devTreeHugger Robot
2018-04-06Depend on correct target for the car support library.Anthony Chen
The macro that was being depended on before has been deprecated. Instead, applications can just depend on the android-support-car target directly. Bug: 77601495 Test: build UxRestrictionsApp and run it Test: build EmbeddedKitchenSinkApp and run it Change-Id: Ia185a1ab051ffaa97ce543c42b8a95fea417937a
2018-04-06Restriction parameters reported via CarUxRestrictions.Ram Periathiruvadi
Moved the APIs to report CarUxRestrictions paramaters from CarUxRestrictionaManager to CarUxRestrictions to make it easy for clients to consume. Bug: 77480435 Test: UXR changes can be observed and the parameter values are retrieved. Change-Id: Icf686fe49b18a5b4c01f5bf0a5bd817b4e37c574
2018-04-03Migrate to androidx.* dependencies.Anthony Chen
Note, that the EmbeddedKitchenSinkApp has not been migrated because it depends on car support library. The car support library target is not yet ready to be migrated. Also, clean up that app so that it no longer depends on car-stream-ui-lib. Test: build and flash Bug: 77483560 Change-Id: I80f532b7ac2e328b22bf45f0dacc5d2b43a6cb6e
2018-04-02Modified to use ANDROID_SUPPORT_CAR_TARGETS.Dean Harding
Test: make Bug: 69479655 Change-Id: I814ee9452275f961127156687363695c8069d7f8
2018-04-01Display driving state info in sample app.Ram Periathiruvadi
Display Driving state and UX restrictions in the sample app for QA manual testing. Bug: 77297775 Test: App shows the driving state info on event changes. Change-Id: If31d61b9a3c46cf26fd4df8f35b686fcc6aa9eb1
2018-03-23Rename Unrestricted UXR to BaselineRam Periathiruvadi
Bug: 76223206 Test: compile and boot. Change-Id: If3242de4466177f93865b7a5c200e665e947ae2c
2018-03-02Parse installed pkgs for Distraction Optimization.Ram Periathiruvadi
1. Check the configurable whitelist for apps and activities that can run during DO. 2. If not in whitelist, check if the apps have tagged their activities to be DO and add them to the allowable list. Bug: 68717481 Test: Whitelisted and DO tagged apps can run while restrictions are in place. Change-Id: Ic46b95dd9e4e4194c8753d26250f0dc123163908
2018-02-27packages/services/Car: Set LOCAL_SDK_VERSION where possible.Anton Hansson
This change sets LOCAL_SDK_VERSION for all packages where this is possible without breaking the build, and LOCAL_PRIVATE_PLATFORM_APIS := true otherwise. Setting one of these two will be made required soon, and this is a change in preparation for that. Not setting LOCAL_SDK_VERSION makes the app implicitly depend on the bootclasspath, which is often not required. This change effectively makes depending on private apis opt-in rather than opt-out. Test: make relevant packages Bug: 73535841 Change-Id: I1e77ed30aa2b67a6b8640a23fc42c28b0445bf29
2018-02-08Migrate to AAPT2Alan Viverette
Bug: 73128633 Test: m UxRestrictionsSample; m CarDiagnosticVerifier Change-Id: I0695fe338b6349bae929b01a665b38fd591d05cb
2018-02-06Create a sample app for UxRestrictions.Yao, Yuxing
This sample app depends on Car Support Lib to support UXR. Currently it has a button that mocks toggling UXR. Test: make UxRestrictions Bug: 69859979 Change-Id: I45af609ff03faf94a8ca6667271f851eae00e8ba