Initial implementation of CarDevicePolicySafetyChecker.

This class will be used to decide if DevicePolicyManager APIs are
safe to be executed or not, based on the current Car UX restrictions.

This initial implementation uses cmd car_service to set the state;
future CLs will add the proper integration.

Test: adb shell dumpsys system_server_dumper --name CarServiceHelper --drive
Test: adb shell dumpsys system_server_dumper --name CarServiceHelper --park
Bug: 172376923

Change-Id: I458a7de1fb45e1faeb972e48700c7aaf87827e81
2 files changed
tree: f136381f0f640211c3d7d647fe7a517e8b1e5e4e
  1. src/
  2. tests/
  3. Android.bp
  4. OWNERS
  5. PREUPLOAD.cfg