Add LocaleManager host-side CTS suite to TEST_MAPPING.
Also modify locale manager shell output to be consistent with language tag format. Bug: 202362940 Test: atest CtsLocaleManagerHostTestCases Change-Id: I4928950d3dc04b4d5acbc93ce6c6993b870d179d
This commit is contained in:
@@ -133,7 +133,7 @@ public class LocaleManagerShellCommand extends ShellCommand {
|
||||
try {
|
||||
LocaleList locales = mBinderService.getApplicationLocales(packageName, userId);
|
||||
getOutPrintWriter().println("Locales for " + packageName
|
||||
+ " for user " + userId + " are " + locales);
|
||||
+ " for user " + userId + " are [" + locales.toLanguageTags() + "]");
|
||||
} catch (RemoteException e) {
|
||||
getOutPrintWriter().println("Remote Exception: " + e);
|
||||
} catch (IllegalArgumentException e) {
|
||||
|
||||
@@ -10,6 +10,9 @@
|
||||
},
|
||||
{
|
||||
"name": "CtsLocaleManagerTestCases"
|
||||
},
|
||||
{
|
||||
"name": "CtsLocaleManagerHostTestCases"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user