Add one item in ApplicationLocalesChanged atom
Add one more item to distinguish the caller that calling the setApplicationLocales API Bug: 272741428 Test: Build pass Change-Id: I374b1a94f7b327d939bf37c52aa0dee39f889ae9
This commit is contained in:
@@ -30,7 +30,8 @@ public final class AppLocaleChangedAtomRecord {
|
||||
String mPrevLocales = "";
|
||||
int mStatus = FrameworkStatsLog
|
||||
.APPLICATION_LOCALES_CHANGED__STATUS__STATUS_UNSPECIFIED;
|
||||
|
||||
int mCaller = FrameworkStatsLog
|
||||
.APPLICATION_LOCALES_CHANGED__CALLER__CALLER_UNKNOWN;
|
||||
AppLocaleChangedAtomRecord(int callingUid) {
|
||||
this.mCallingUid = callingUid;
|
||||
}
|
||||
@@ -50,4 +51,8 @@ public final class AppLocaleChangedAtomRecord {
|
||||
void setStatus(int status) {
|
||||
this.mStatus = status;
|
||||
}
|
||||
|
||||
void setCaller(int caller) {
|
||||
this.mCaller = caller;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -554,7 +554,8 @@ public class LocaleManagerService extends SystemService {
|
||||
atomRecordForMetrics.mTargetUid,
|
||||
atomRecordForMetrics.mNewLocales,
|
||||
atomRecordForMetrics.mPrevLocales,
|
||||
atomRecordForMetrics.mStatus);
|
||||
atomRecordForMetrics.mStatus,
|
||||
atomRecordForMetrics.mCaller);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user