summaryrefslogtreecommitdiff
path: root/libs/androidfw/ResourceTimer.cpp
diff options
context:
space:
mode:
author Suprabh Shukla <suprabh@google.com> 2022-05-18 16:11:37 -0700
committer Suprabh Shukla <suprabh@google.com> 2022-05-18 23:42:37 -0700
commit4d56d13e01d2f752e7c6f30ad7c09c7973e32d69 (patch)
treed3edbf7a1d845bdc02d1ec397fb162423ba984fe /libs/androidfw/ResourceTimer.cpp
parent92e59dde2f7745fd830d716cc41ebec83f9d65f5 (diff)
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
Diffstat (limited to 'libs/androidfw/ResourceTimer.cpp')
0 files changed, 0 insertions, 0 deletions