Home
last modified time | relevance | path

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

/frameworks/base/core/jni/
Dandroid_util_AssetManager.cpp602 ScopedUtfChars asset_path_utf8(env, asset_path); in NativeOpenAsset() local
603 if (asset_path_utf8.c_str() == nullptr) { in NativeOpenAsset()
608 ATRACE_NAME(base::StringPrintf("AssetManager::OpenAsset(%s)", asset_path_utf8.c_str()).c_str()); in NativeOpenAsset()
618 assetmanager->Open(asset_path_utf8.c_str(), static_cast<Asset::AccessMode>(access_mode)); in NativeOpenAsset()
620 jniThrowException(env, "java/io/FileNotFoundException", asset_path_utf8.c_str()); in NativeOpenAsset()
628 ScopedUtfChars asset_path_utf8(env, asset_path); in NativeOpenAssetFd() local
629 if (asset_path_utf8.c_str() == nullptr) { in NativeOpenAssetFd()
634 ATRACE_NAME(base::StringPrintf("AssetManager::OpenAssetFd(%s)", asset_path_utf8.c_str()).c_str()); in NativeOpenAssetFd()
637 std::unique_ptr<Asset> asset = assetmanager->Open(asset_path_utf8.c_str(), Asset::ACCESS_RANDOM); in NativeOpenAssetFd()
639 jniThrowException(env, "java/io/FileNotFoundException", asset_path_utf8.c_str()); in NativeOpenAssetFd()
[all …]