Searched refs:locale (Results 1 – 13 of 13) sorted by relevance
/bootable/recovery/tools/image_generator/ |
D | ImageGenerator.java | 365 Locale locale = getLocaleFromFilename(name); in readLocalizedStringFromXmls() local 367 result.put(locale, localizedText.substring(1, localizedText.length() - 1)); in readLocalizedStringFromXmls() 463 private List<Integer> encodeTextInfo(int width, int height, String locale) { in encodeTextInfo() argument 471 locale.length())); in encodeTextInfo() 473 byte[] localeBytes = locale.getBytes(); in encodeTextInfo() 483 private Graphics2D createGraphics(Locale locale) throws IOException, FontFormatException { in createGraphics() argument 488 graphics.setFont(loadFontsByLocale(locale.getLanguage())); in createGraphics() 494 private int measureTextWidth(String text, Locale locale) in measureTextWidth() argument 496 Graphics2D graphics = createGraphics(locale); in measureTextWidth() 513 + locale); in measureTextWidth() [all …]
|
D | README.md | 26 a localized image for every supported locale. 28 Each individual localized image contains an encoded locale header string, and the rendered 29 background text. The locale header string is generated by `Locale.forLanguageTag`. And sample
|
/bootable/recovery/ |
D | recovery_main.cpp | 359 std::string locale; in main() local 379 locale = optarg; in main() 393 if (locale.empty()) { in main() 395 locale = load_locale_from_cache(); in main() 398 if (locale.empty()) { in main() 399 locale = DEFAULT_LOCALE; in main() 433 if (!device->GetUI()->Init(locale)) { in main() 459 LOG(INFO) << "locale is [" << locale << "]"; in main()
|
D | recovery.cpp | 126 std::string locale = ui->GetLocale(); in FinishRecovery() local 129 if (!locale.empty() && HasCache()) { in FinishRecovery() 130 LOG(INFO) << "Saving locale \"" << locale << "\""; in FinishRecovery() 133 } else if (!android::base::WriteStringToFile(locale, LOCALE_FILE)) { in FinishRecovery() 633 std::string locale; in start_recovery() local
|
/bootable/recovery/minui/ |
D | resources.cpp | 364 bool matches_locale(const std::string& prefix, const std::string& locale) { in matches_locale() argument 378 if (android::base::StartsWith(locale, prefix)) { in matches_locale() 387 return std::regex_match(locale, loc_regex); in matches_locale() 419 const char* locale, in res_create_localized_alpha_surface() argument 422 if (locale == nullptr) { in res_create_localized_alpha_surface() 451 if (matches_locale(loc, locale)) { in res_create_localized_alpha_surface()
|
/bootable/recovery/minui/include/minui/ |
D | minui.h | 194 bool matches_locale(const std::string& prefix, const std::string& locale); 225 int res_create_localized_alpha_surface(const char* name, const char* locale,
|
/bootable/recovery/recovery_ui/include/recovery_ui/ |
D | wear_ui.h | 29 bool Init(const std::string& locale) override;
|
D | ui.h | 67 virtual bool Init(const std::string& locale);
|
D | screen_ui.h | 200 bool Init(const std::string& locale) override;
|
/bootable/recovery/tools/recovery_l10n/src/com/android/recovery_l10n/ |
D | Main.java | 107 private void switchTo(Locale locale) { in switchTo() argument 112 config.locale = locale; in switchTo()
|
/bootable/recovery/recovery_ui/ |
D | wear_ui.cpp | 81 bool WearRecoveryUI::Init(const std::string& locale) { in Init() argument 82 auto result = ScreenRecoveryUI::Init(locale); in Init()
|
D | screen_ui.cpp | 909 bool ScreenRecoveryUI::Init(const std::string& locale) { in Init() argument 910 RecoveryUI::Init(locale); in Init() 932 SetLocale(locale); in Init()
|
/bootable/recovery/tests/testdata/ |
D | recovery_body | 79 ro.product.locale=en-US
|