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:
Pratyush More
2021-11-15 16:56:48 +00:00
parent b5c41d94fd
commit 120ca9ee4e
2 changed files with 5 additions and 2 deletions

View File

@@ -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) {

View File

@@ -10,6 +10,9 @@
},
{
"name": "CtsLocaleManagerTestCases"
},
{
"name": "CtsLocaleManagerHostTestCases"
}
]
}
}