Searched refs:asset_path_utf8 (Results 1 – 1 of 1) sorted by relevance
/frameworks/base/core/jni/ |
D | android_util_AssetManager.cpp | 445 ScopedUtfChars asset_path_utf8(env, asset_path); in NativeOpenAsset() local 446 if (asset_path_utf8.c_str() == nullptr) { in NativeOpenAsset() 451 ATRACE_NAME(base::StringPrintf("AssetManager::OpenAsset(%s)", asset_path_utf8.c_str()).c_str()); in NativeOpenAsset() 461 assetmanager->Open(asset_path_utf8.c_str(), static_cast<Asset::AccessMode>(access_mode)); in NativeOpenAsset() 463 jniThrowException(env, "java/io/FileNotFoundException", asset_path_utf8.c_str()); in NativeOpenAsset() 471 ScopedUtfChars asset_path_utf8(env, asset_path); in NativeOpenAssetFd() local 472 if (asset_path_utf8.c_str() == nullptr) { in NativeOpenAssetFd() 477 ATRACE_NAME(base::StringPrintf("AssetManager::OpenAssetFd(%s)", asset_path_utf8.c_str()).c_str()); in NativeOpenAssetFd() 480 std::unique_ptr<Asset> asset = assetmanager->Open(asset_path_utf8.c_str(), Asset::ACCESS_RANDOM); in NativeOpenAssetFd() 482 jniThrowException(env, "java/io/FileNotFoundException", asset_path_utf8.c_str()); in NativeOpenAssetFd() [all …]
|