Home
last modified time | relevance | path

Searched refs:locale (Results 1 – 10 of 10) sorted by relevance

/bootable/recovery/tools/image_generator/
DImageGenerator.java369 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 …]
/bootable/recovery/
Drecovery_main.cpp355 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()
Drecovery.cpp130 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/
Dresources.cpp340 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/
Dminui.h177 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/
DMain.java107 private void switchTo(Locale locale) { in switchTo() argument
112 config.locale = locale; in switchTo()
/bootable/recovery/recovery_ui/include/recovery_ui/
Dui.h67 virtual bool Init(const std::string& locale);
Dscreen_ui.h200 bool Init(const std::string& locale) override;
/bootable/recovery/recovery_ui/
Dscreen_ui.cpp903 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/
Drecovery_body79 ro.product.locale=en-US