Add fgsStartReasonCode and other fields into metric ForegroundServiceStateChanged.
1. Besides ENTER and EXIT state, add a new state DENIED.
2. Add more fields inth the metric:
int32 fgs_start_reason_code = 5;
int32 target_sdk_version = 6;
int32 calling_uid = 7;
int32 caller_target_sdk_version = 8;
int32 temp_allow_list_calling_uid = 9;
bool fgs_notification_deferred = 10;
bool fgs_notification_shown = 11;
int32 fgs_duration_ms = 12;
int32 fgs_start_count = 13;
Bug: 171305836
Test: build and run.
Change-Id: I049070f343f578fa3e9f6bb4dab914da5b23672a
2 files changed