Loading services/core/java/com/android/server/grammaticalinflection/GrammaticalInflectionService.java +7 −1 Original line number Original line Diff line number Diff line Loading @@ -222,7 +222,7 @@ public class GrammaticalInflectionService extends SystemService { } } final int uid = mPackageManagerInternal.getPackageUid(appPackageName, 0, userId); final int uid = mPackageManagerInternal.getPackageUid(appPackageName, 0, userId); FrameworkStatsLog.write(FrameworkStatsLog.GRAMMATICAL_INFLECTION_CHANGED, FrameworkStatsLog.write(FrameworkStatsLog.APPLICATION_GRAMMATICAL_INFLECTION_CHANGED, FrameworkStatsLog.APPLICATION_GRAMMATICAL_INFLECTION_CHANGED__SOURCE_ID__OTHERS, FrameworkStatsLog.APPLICATION_GRAMMATICAL_INFLECTION_CHANGED__SOURCE_ID__OTHERS, uid, uid, gender != GRAMMATICAL_GENDER_NOT_SPECIFIED, gender != GRAMMATICAL_GENDER_NOT_SPECIFIED, Loading Loading @@ -266,8 +266,14 @@ public class GrammaticalInflectionService extends SystemService { try { try { Configuration config = new Configuration(); Configuration config = new Configuration(); int preValue = config.getGrammaticalGender(); config.setGrammaticalGender(grammaticalGender); config.setGrammaticalGender(grammaticalGender); ActivityTaskManager.getService().updateConfiguration(config); ActivityTaskManager.getService().updateConfiguration(config); FrameworkStatsLog.write(FrameworkStatsLog.SYSTEM_GRAMMATICAL_INFLECTION_CHANGED, FrameworkStatsLog.SYSTEM_GRAMMATICAL_INFLECTION_CHANGED__SOURCE_ID__SYSTEM, userId, grammaticalGender != GRAMMATICAL_GENDER_NOT_SPECIFIED, preValue != GRAMMATICAL_GENDER_NOT_SPECIFIED); } catch (RemoteException e) { } catch (RemoteException e) { Log.w(TAG, "Can not update configuration", e); Log.w(TAG, "Can not update configuration", e); } } Loading Loading
services/core/java/com/android/server/grammaticalinflection/GrammaticalInflectionService.java +7 −1 Original line number Original line Diff line number Diff line Loading @@ -222,7 +222,7 @@ public class GrammaticalInflectionService extends SystemService { } } final int uid = mPackageManagerInternal.getPackageUid(appPackageName, 0, userId); final int uid = mPackageManagerInternal.getPackageUid(appPackageName, 0, userId); FrameworkStatsLog.write(FrameworkStatsLog.GRAMMATICAL_INFLECTION_CHANGED, FrameworkStatsLog.write(FrameworkStatsLog.APPLICATION_GRAMMATICAL_INFLECTION_CHANGED, FrameworkStatsLog.APPLICATION_GRAMMATICAL_INFLECTION_CHANGED__SOURCE_ID__OTHERS, FrameworkStatsLog.APPLICATION_GRAMMATICAL_INFLECTION_CHANGED__SOURCE_ID__OTHERS, uid, uid, gender != GRAMMATICAL_GENDER_NOT_SPECIFIED, gender != GRAMMATICAL_GENDER_NOT_SPECIFIED, Loading Loading @@ -266,8 +266,14 @@ public class GrammaticalInflectionService extends SystemService { try { try { Configuration config = new Configuration(); Configuration config = new Configuration(); int preValue = config.getGrammaticalGender(); config.setGrammaticalGender(grammaticalGender); config.setGrammaticalGender(grammaticalGender); ActivityTaskManager.getService().updateConfiguration(config); ActivityTaskManager.getService().updateConfiguration(config); FrameworkStatsLog.write(FrameworkStatsLog.SYSTEM_GRAMMATICAL_INFLECTION_CHANGED, FrameworkStatsLog.SYSTEM_GRAMMATICAL_INFLECTION_CHANGED__SOURCE_ID__SYSTEM, userId, grammaticalGender != GRAMMATICAL_GENDER_NOT_SPECIFIED, preValue != GRAMMATICAL_GENDER_NOT_SPECIFIED); } catch (RemoteException e) { } catch (RemoteException e) { Log.w(TAG, "Can not update configuration", e); Log.w(TAG, "Can not update configuration", e); } } Loading