/packages/apps/Settings/tests/robotests/src/com/android/settings/search/ |
D | DatabaseIndexingManagerTest.java | 92 private final String localeStr = "en_US"; field in DatabaseIndexingManagerTest 188 mManager.indexOneSearchIndexableData(mDb, localeStr, raw, in testInsertRawColumn_rowInserted() 202 mManager.indexOneSearchIndexableData(mDb, localeStr, raw, niks); in testInsertRawColumn_nonIndexableKey_resultIsDisabled() 210 mManager.indexOneSearchIndexableData(mDb, localeStr, raw, in testInsertRawColumn_rowMatches() 216 assertThat(cursor.getString(0)).isEqualTo(localeStr); in testInsertRawColumn_rowMatches() 265 mManager.indexOneSearchIndexableData(mDb, localeStr, raw, null /* Non-indexable keys */); in testInsertRawColumn_mismatchedLocale_noRowInserted() 275 mManager.indexOneSearchIndexableData(mDb, localeStr, null /* searchIndexableResource */, in testNullResource_NothingInserted() 284 mManager.indexOneSearchIndexableData(mDb, localeStr, resource, new HashMap<>()); in testAddResource_RowsInserted() 296 mManager.indexOneSearchIndexableData(mDb, localeStr, resource, niks); in testAddResource_withNIKs_rowsInsertedDisabled() 307 mManager.indexOneSearchIndexableData(mDb, localeStr, resource, new HashMap<>()); in testAddResourceHeader_rowsMatch() [all …]
|
/packages/inputmethods/LatinIME/tools/make-keyboard-text/src/com/android/inputmethod/keyboard/tools/ |
D | LocaleUtils.java | 53 public static Locale constructLocaleFromString(final String localeStr) { in constructLocaleFromString() argument 54 if (localeStr == null) { in constructLocaleFromString() 58 if (sLocaleCache.containsKey(localeStr)) { in constructLocaleFromString() 59 return sLocaleCache.get(localeStr); in constructLocaleFromString() 63 final String[] localeElements = localeStr.split("_", ELEMENT_LIMIT); in constructLocaleFromString() 69 throw new RuntimeException("Unknown locale format: " + localeStr); in constructLocaleFromString() 80 throw new RuntimeException("Unknown locale format: " + localeStr); in constructLocaleFromString() 88 throw new RuntimeException("Unknown locale format: " + localeStr); in constructLocaleFromString() 92 sLocaleCache.put(localeStr, locale); in constructLocaleFromString()
|
D | JarUtils.java | 101 final String localeStr = parentName.substring(localePos + 1); 102 final int regionPos = localeStr.indexOf("-r"); 104 return LocaleUtils.constructLocaleFromString(localeStr); 106 return LocaleUtils.constructLocaleFromString(localeStr.replace("-r", "_"));
|
D | MoreKeysResources.java | 190 final String localeStr = LocaleUtils.getLocaleCode(locale); in dumpLocalesMap() local 192 ? String.format("\"%s\"", localeStr) in dumpLocalesMap() 193 : String.format("\"%s\"%s", localeStr, " ".substring(localeStr.length())); in dumpLocalesMap()
|
/packages/apps/Settings/src/com/android/settings/search/ |
D | DatabaseIndexingManager.java | 175 final String localeStr = Locale.getDefault().toString(); in performIndexing() local 180 final boolean isFullIndex = IndexDatabaseHelper.isFullIndex(mContext, localeStr, in performIndexing() 206 updateDatabase(isFullIndex, localeStr); in performIndexing() 213 IndexDatabaseHelper.setLocaleIndexed(mContext, localeStr); in performIndexing() 247 void updateDatabase(boolean needsReindexing, String localeStr) { in updateDatabase() argument 269 addDataToDatabase(database, localeStr, dataToUpdate, nonIndexableKeys); in updateDatabase() 294 void addDataToDatabase(SQLiteDatabase database, String localeStr, in addDataToDatabase() argument 300 indexOneSearchIndexableData(database, localeStr, data, nonIndexableKeys); in addDataToDatabase() 303 + " for locale: " + localeStr, e); in addDataToDatabase() 308 Log.d(LOG_TAG, "Indexing locale '" + localeStr + "' took " + in addDataToDatabase() [all …]
|
/packages/apps/Settings/src/com/android/settings/inputmethod/ |
D | UserDictionarySettingsUtils.java | 31 public static String getLocaleDisplayName(Context context, String localeStr) { in getLocaleDisplayName() argument 32 if (TextUtils.isEmpty(localeStr)) { in getLocaleDisplayName() 37 final Locale locale = Utils.createLocaleFromString(localeStr); in getLocaleDisplayName()
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/userdictionary/ |
D | UserDictionarySettingsUtils.java | 32 public static String getLocaleDisplayName(Context context, String localeStr) { in getLocaleDisplayName() argument 33 if (TextUtils.isEmpty(localeStr)) { in getLocaleDisplayName() 38 final Locale locale = LocaleUtils.constructLocaleFromString(localeStr); in getLocaleDisplayName()
|
/packages/inputmethods/LatinIME/native/jni/src/suggest/core/session/ |
D | dic_traverse_session.h | 41 static AK_FORCE_INLINE void *getSessionInstance(JNIEnv *env, jstring localeStr, in getSessionInstance() argument 45 return new DicTraverseSession(env, localeStr, in getSessionInstance() 53 AK_FORCE_INLINE DicTraverseSession(JNIEnv *env, jstring localeStr, bool usesLargeCache) in DicTraverseSession() argument
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/ |
D | UserBinaryDictionary.java | 63 final String localeStr = locale.toString(); in UserBinaryDictionary() local 64 if (SubtypeLocaleUtils.NO_LANGUAGE.equals(localeStr)) { in UserBinaryDictionary() 68 mLocaleString = localeStr; in UserBinaryDictionary()
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/spellcheck/ |
D | AndroidSpellCheckerSession.java | 165 final String localeStr = getLocale(); in splitAndSuggest() local 166 if (!TextUtils.isEmpty(localeStr)) { in splitAndSuggest() 168 new Locale(localeStr)); in splitAndSuggest()
|
/packages/apps/Settings/src/com/android/settings/ |
D | Utils.java | 286 public static Locale createLocaleFromString(String localeStr) { in createLocaleFromString() argument 293 if (null == localeStr) in createLocaleFromString() 295 String[] brokenDownLocale = localeStr.split("_", 3); in createLocaleFromString()
|