Searched refs:lang_ids (Results 1 – 2 of 2) sorted by relevance
/hardware/interfaces/confirmationui/support/src/ |
D | ConfirmationUITranslations.c | 1091 int ConfirmationUITranslations_lang_id_match(const char** lang_ids, const char* lang_id) { in ConfirmationUITranslations_lang_id_match() argument 1096 ret = ConfirmationUITranslations_find_str(lang_ids, lang_id); in ConfirmationUITranslations_lang_id_match() 1117 ret = ConfirmationUITranslations_find_str(lang_ids, lang_id_buf); in ConfirmationUITranslations_lang_id_match()
|
/hardware/interfaces/confirmationui/support/test/ |
D | ConfirmationUITranslations-test.c | 34 extern int ConfirmationUITranslations_lang_id_match(const char** lang_ids, 37 static const char* test_lang_id_match(const char* lang_ids[], const char* lang_id) { in test_lang_id_match() argument 38 int ret = ConfirmationUITranslations_lang_id_match(lang_ids, lang_id); in test_lang_id_match() 42 return lang_ids[ret]; in test_lang_id_match() 1317 const char* lang_ids[] = { in main() local 1325 ASSERT_STR(test_lang_id_match(lang_ids, "de"), "de"); in main() 1326 ASSERT_STR(test_lang_id_match(lang_ids, "de-DE"), "de"); in main() 1327 ASSERT_STR(test_lang_id_match(lang_ids, "de-CH-1901"), "de"); in main() 1328 ASSERT_STR(test_lang_id_match(lang_ids, "de-AT"), "de"); in main() 1329 ASSERT_STR(test_lang_id_match(lang_ids, "da-DK"), "da"); in main() [all …]
|