Searched refs:assetName (Results 1 – 6 of 6) sorted by relevance
80 public static final String getFileUrl(String assetName) { in getFileUrl() argument81 if (assetName.contains(":") || assetName.startsWith("/")) { in getFileUrl()84 return "file:///android_asset/" + assetName; in getFileUrl()
106 private X509Certificate readAssetAsX509Certificate(String assetName) in readAssetAsX509Certificate() argument108 InputStream is = mContext.getAssets().open(assetName); in readAssetAsX509Certificate()
170 private Bitmap loadAsset(@NonNull String assetName, @NonNull Bitmap.Config config) { in loadAsset() argument173 try (InputStream in = assets.open(assetName)) { in loadAsset()
207 final String assetName = "noiseandchirps.mp3"; in testAddCompletedDownload_mediaStoreEntry() local222 try (InputStream in = mContext.getAssets().open(assetName); in testAddCompletedDownload_mediaStoreEntry()
191 private List<Certificate> loadCertificateChain(String assetName) throws Exception { in loadCertificateChain() argument192 final Collection<Certificate> certs = loadCertificatesFromAsset(assetName); in loadCertificateChain()955 private Collection<Certificate> loadCertificatesFromAsset(String assetName) { in loadCertificatesFromAsset() argument959 InputStream is = am.open(assetName); in loadCertificatesFromAsset()967 private PrivateKey loadPrivateKeyFromAsset(String assetName) { in loadPrivateKeyFromAsset() argument970 InputStream is = am.open(assetName); in loadPrivateKeyFromAsset()
478 String assetName = ASSET_NAMES[i]; in testOutColorSpace() local479 InputStream is1 = obtainInputStream(assetName); in testOutColorSpace()823 private InputStream obtainInputStream(String assetName) throws IOException { in obtainInputStream() argument824 return mRes.getAssets().open(assetName); in obtainInputStream()