Add a metrics reason code for USE_EXACT_ALARM
Updating the reason code logging to better differentiate between usage of both the permissions. The only functional changes expected from this change are the values of exactAllowReason in an alarm: - Prioritized alarms change from "Permission" to "Not applicable" - When crashing is turned off, reason code changes from "Permission" to "Not applicable" - When the caller has USE_EXACT_ALARM, reason code changes from "Permission" to "Policy Permission". Also updating the error message to include USE_EXACT_ALARM. Test: atest FrameworksMockingServicesTests:AlarmManagerServiceTest atest CtsStatsdAtomHostTestCases:AlarmStatsTest Existing tests should pass: atest CtsAlarmManagerTestCases Manually test output of `./out/host/linux-x86/bin/statsd_testdrive 368` and `adb shell dumpsys alarm` Bug: 231661615 Change-Id: I13239c300cfb468e7fc2df21fccb494fdf8c80ac
Loading
Please register or sign in to comment