Searched refs:assetName (Results 1 – 6 of 6) sorted by relevance
81 public static final String getFileUrl(String assetName) { in getFileUrl() argument82 if (assetName.contains(":") || assetName.startsWith("/")) { in getFileUrl()85 return "file:///android_asset/" + assetName; in getFileUrl()
93 final String assetName = "testmp3.mp3"; in testAddCompletedDownload_mediaStoreEntry() local101 try (InputStream in = mContext.getAssets().open(assetName); in testAddCompletedDownload_mediaStoreEntry()113 assertArrayEquals(hash(mContext.getAssets().open(assetName)), in testAddCompletedDownload_mediaStoreEntry()
167 private List<Certificate> loadCertificateChain(String assetName) throws Exception { in loadCertificateChain() argument168 final Collection<Certificate> certs = loadCertificatesFromAsset(assetName); in loadCertificateChain()735 private Collection<Certificate> loadCertificatesFromAsset(String assetName) { in loadCertificatesFromAsset() argument739 InputStream is = am.open(assetName); in loadCertificatesFromAsset()747 private PrivateKey loadPrivateKeyFromAsset(String assetName) { in loadPrivateKeyFromAsset() argument750 InputStream is = am.open(assetName); in loadPrivateKeyFromAsset()
170 private Bitmap loadAsset(@NonNull String assetName, @NonNull Bitmap.Config config) { in loadAsset() argument173 try (InputStream in = assets.open(assetName)) { in loadAsset()
204 final String assetName = "noiseandchirps.mp3"; in testAddCompletedDownload_mediaStoreEntry() local214 try (InputStream in = mContext.getAssets().open(assetName); in testAddCompletedDownload_mediaStoreEntry()
480 String assetName = ASSET_NAMES[i]; in testOutColorSpace() local481 InputStream is1 = obtainInputStream(assetName); in testOutColorSpace()707 private InputStream obtainInputStream(String assetName) throws IOException { in obtainInputStream() argument708 return mRes.getAssets().open(assetName); in obtainInputStream()