Home
last modified time | relevance | path

Searched refs:TypoLookup (Results 1 – 3 of 3) sorted by relevance

/sdk/lint/libs/lint_checks/tests/src/com/android/tools/lint/checks/
DTypoLookupTest.java44 TypoLookup db = TypoLookup.get(client, "de", null); in testCapitalization()
82 TypoLookup db = TypoLookup.get(new TestLintClient(), "en", null); in test1()
109 TypoLookup db = TypoLookup.get(new TestLintClient(), "en", "US"); in testRegion()
111 db = TypoLookup.get(new TestLintClient(), "en", "GB"); in testRegion()
116 TypoLookup db = TypoLookup.get(new TestLintClient(), "nb", null); //$NON-NLS-1$ in test2()
137 TypoLookup db = TypoLookup.get(new TestLintClient(), "de", "DE"); //$NON-NLS-1$ in testMultiWords()
167 TypoLookup db = TypoLookup.get(new TestLintClient(), "de", null); in testGlobbing()
228 int textCompare = TypoLookup.compare(prevBytes, 0, (byte) 0, text, 0, in testComparisons()
230 int byteCompare = TypoLookup.compare(prevBytes, 0, (byte) 0, bytes, 0, in testComparisons()
246 int textCompare = TypoLookup.compare(prevBytes, 0, (byte) 0, text, 0, in testComparison1()
[all …]
/sdk/lint/libs/lint_checks/src/com/android/tools/lint/checks/
DTypoLookup.java47 public class TypoLookup { class
48 private static final TypoLookup NONE = new TypoLookup();
70 private static WeakHashMap<String, TypoLookup> sInstanceMap =
71 new WeakHashMap<String, TypoLookup>();
90 public static TypoLookup get(@NonNull LintClient client, @NonNull String locale, in get()
92 synchronized (TypoLookup.class) { in get()
105 TypoLookup db = sInstanceMap.get(key); in get()
151 private static TypoLookup get(LintClient client, File xmlFile) { in get()
188 return new TypoLookup(client, xmlFile, binaryData); in get()
222 private TypoLookup( in TypoLookup() method in TypoLookup
[all …]
DTypoDetector.java19 import static com.android.tools.lint.checks.TypoLookup.isLetter;
79 private @Nullable TypoLookup mLookup;
144 mLookup = TypoLookup.get(context.getClient(), mLanguage, mRegion); in beforeCheckFile()