Searched refs:locale (Results 1 – 11 of 11) sorted by relevance
/bootable/recovery/tools/image_generator/ |
D | ImageGenerator.java | 369 Locale locale = getLocaleFromFilename(name); in readLocalizedStringFromXmls() local 371 result.put(locale, localizedText.substring(1, localizedText.length() - 1)); in readLocalizedStringFromXmls() 467 private List<Integer> encodeTextInfo(int width, int height, String locale) { in encodeTextInfo() argument 475 locale.length())); in encodeTextInfo() 477 byte[] localeBytes = locale.getBytes(); in encodeTextInfo() 487 private Graphics2D createGraphics(Locale locale) throws IOException, FontFormatException { in createGraphics() argument 492 graphics.setFont(loadFontsByLocale(locale.getLanguage())); in createGraphics() 498 private int measureTextWidth(String text, Locale locale) in measureTextWidth() argument 500 Graphics2D graphics = createGraphics(locale); in measureTextWidth() 517 + 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 | 355 std::string locale; in main() local 375 locale = optarg; in main() 389 if (locale.empty()) { in main() 391 locale = load_locale_from_cache(); in main() 394 if (locale.empty()) { in main() 395 locale = DEFAULT_LOCALE; in main() 429 if (!device->GetUI()->Init(locale)) { in main() 455 LOG(INFO) << "locale is [" << locale << "]"; in main()
|
D | recovery.cpp | 130 std::string locale = ui->GetLocale(); in FinishRecovery() local 133 if (!locale.empty() && HasCache()) { in FinishRecovery() 134 LOG(INFO) << "Saving locale \"" << locale << "\""; in FinishRecovery() 137 } else if (!android::base::WriteStringToFile(locale, LOCALE_FILE)) { in FinishRecovery() 630 std::string locale; in start_recovery() local
|
/bootable/recovery/minui/ |
D | resources.cpp | 340 bool matches_locale(const std::string& prefix, const std::string& locale) { in matches_locale() argument 354 if (android::base::StartsWith(locale, prefix)) { in matches_locale() 363 return std::regex_match(locale, loc_regex); in matches_locale() 395 const char* locale, in res_create_localized_alpha_surface() argument 398 if (locale == nullptr) { in res_create_localized_alpha_surface() 427 if (matches_locale(loc, locale)) { in res_create_localized_alpha_surface()
|
/bootable/recovery/minui/include/minui/ |
D | minui.h | 177 bool matches_locale(const std::string& prefix, const std::string& locale); 208 int res_create_localized_alpha_surface(const char* name, const char* locale,
|
/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/include/recovery_ui/ |
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/recovery_ui/ |
D | screen_ui.cpp | 903 bool ScreenRecoveryUI::Init(const std::string& locale) { in Init() argument 904 RecoveryUI::Init(locale); in Init() 925 SetLocale(locale); in Init()
|
/bootable/recovery/tests/testdata/ |
D | recovery_body | 79 ro.product.locale=en-US
|