Home
last modified time | relevance | path

Searched refs:AssetFileAddress (Results 1 – 6 of 6) sorted by relevance

/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/
DAssetFileAddress.java29 public final class AssetFileAddress { class
34 public AssetFileAddress(final String filename, final long offset, final long length) { in AssetFileAddress() method in AssetFileAddress
40 public static AssetFileAddress makeFromFile(final File file) { in makeFromFile()
42 return new AssetFileAddress(file.getAbsolutePath(), 0L, file.length()); in makeFromFile()
45 public static AssetFileAddress makeFromFileName(final String filename) { in makeFromFileName()
50 public static AssetFileAddress makeFromFileNameAndOffset(final String filename, in makeFromFileNameAndOffset()
55 return new AssetFileAddress(filename, offset, length); in makeFromFileNameAndOffset()
DBinaryDictionaryGetter.java88 public static AssetFileAddress loadFallbackResource(final Context context, in loadFallbackResource()
97 return AssetFileAddress.makeFromFileNameAndOffset( in loadFallbackResource()
264 public static ArrayList<AssetFileAddress> getDictionaryFiles(final Locale locale, in getDictionaryFiles()
275 final ArrayList<AssetFileAddress> fileList = new ArrayList<>(); in getDictionaryFiles()
285 final AssetFileAddress afa = AssetFileAddress.makeFromFileName(f.getPath()); in getDictionaryFiles()
295 final AssetFileAddress fallbackAsset = loadFallbackResource(context, fallbackResId); in getDictionaryFiles()
DDictionaryFactory.java58 final ArrayList<AssetFileAddress> assetFileList = in createMainDictionaryFromManager()
61 for (final AssetFileAddress f : assetFileList) { in createMainDictionaryFromManager()
86 private static void killDictionary(final Context context, final AssetFileAddress f) { in killDictionary()
188 public static Dictionary createDictionaryForTest(final AssetFileAddress[] dictionaryList, in createDictionaryForTest()
192 for (final AssetFileAddress address : dictionaryList) { in createDictionaryForTest()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/dictionarypack/
DAssetFileAddress.java27 final class AssetFileAddress { class
32 public AssetFileAddress(final String filename, final long offset, final long length) { in AssetFileAddress() method in AssetFileAddress
44 public static AssetFileAddress makeFromFileName(final String filename) { in makeFromFileName()
48 return new AssetFileAddress(filename, 0l, f.length()); in makeFromFileName()
59 public static AssetFileAddress makeFromFileNameAndOffset(final String filename, in makeFromFileNameAndOffset()
64 return new AssetFileAddress(filename, offset, length); in makeFromFileNameAndOffset()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/utils/
DDictionaryInfoUtils.java26 import com.android.inputmethod.latin.AssetFileAddress;
63 public final AssetFileAddress mFileAddress;
66 final AssetFileAddress fileAddress, final int version) { in DictionaryInfo()
309 final AssetFileAddress fileAddress) { in createDictionaryInfoFromFileAddress()
351 final AssetFileAddress fileAddress = AssetFileAddress.makeFromFile(dict); in getCurrentDictionaryFileNameAndVersionInfo()
372 final AssetFileAddress fileAddress = in getCurrentDictionaryFileNameAndVersionInfo()
/packages/inputmethods/LatinIME/java/
Dproguard.flags20 -keep class com.android.inputmethod.latin.AssetFileAddress