Home
last modified time | relevance | path

Searched refs:LOCALE_FILE (Results 1 – 2 of 2) sorted by relevance

/bootable/recovery/
Drecovery_main.cpp64 static constexpr const char* LOCALE_FILE = "/cache/recovery/last_locale"; variable
175 if (ensure_path_mounted(LOCALE_FILE) != 0) { in load_locale_from_cache()
176 LOG(ERROR) << "Can't mount " << LOCALE_FILE; in load_locale_from_cache()
181 if (!android::base::ReadFileToString(LOCALE_FILE, &content)) { in load_locale_from_cache()
182 PLOG(ERROR) << "Can't read " << LOCALE_FILE; in load_locale_from_cache()
Drecovery.cpp68 static constexpr const char* LOCALE_FILE = "/cache/recovery/last_locale"; variable
135 if (ensure_path_mounted(LOCALE_FILE) != 0) { in FinishRecovery()
136 LOG(ERROR) << "Failed to mount " << LOCALE_FILE; in FinishRecovery()
137 } else if (!android::base::WriteStringToFile(locale, LOCALE_FILE)) { in FinishRecovery()
138 PLOG(ERROR) << "Failed to save locale to " << LOCALE_FILE; in FinishRecovery()