Home
last modified time | relevance | path

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

/frameworks/base/core/jni/
Dandroid_content_res_ApkAssets.cpp43 std::unique_ptr<const ApkAssets> apk_assets; in NativeLoad() local
45 apk_assets = ApkAssets::LoadOverlay(path.c_str(), system); in NativeLoad()
47 apk_assets = ApkAssets::LoadAsSharedLibrary(path.c_str(), system); in NativeLoad()
49 apk_assets = ApkAssets::Load(path.c_str(), system); in NativeLoad()
52 if (apk_assets == nullptr) { in NativeLoad()
57 return reinterpret_cast<jlong>(apk_assets.release()); in NativeLoad()
81 std::unique_ptr<const ApkAssets> apk_assets = ApkAssets::LoadFromFd(std::move(dup_fd), in NativeLoadFromFd() local
84 if (apk_assets == nullptr) { in NativeLoadFromFd()
90 return reinterpret_cast<jlong>(apk_assets.release()); in NativeLoadFromFd()
98 const ApkAssets* apk_assets = reinterpret_cast<const ApkAssets*>(ptr); in NativeGetAssetPath() local
[all …]
Dandroid_util_AssetManager.cpp310 std::vector<const ApkAssets*> apk_assets; in NativeSetApkAssets() local
311 apk_assets.reserve(apk_assets_len); in NativeSetApkAssets()
324 apk_assets.push_back(reinterpret_cast<const ApkAssets*>(apk_assets_native_ptr)); in NativeSetApkAssets()
328 assetmanager->SetApkAssets(apk_assets, invalidate_caches); in NativeSetApkAssets()
691 const ApkAssets* apk_assets = assetmanager->GetApkAssets()[cookie]; in NativeGetResourceStringArray() local
692 const ResStringPool* pool = apk_assets->GetLoadedArsc()->GetStringPool(); in NativeGetResourceStringArray()
/frameworks/base/libs/androidfw/tests/
DBenchmarkHelpers.cpp56 std::vector<std::unique_ptr<const ApkAssets>> apk_assets; in GetResourceBenchmark() local
65 apk_assets.push_back(std::move(apk)); in GetResourceBenchmark()
DAttributeResolution_test.cpp70 auto apk_assets = ApkAssets::LoadAsSharedLibrary(GetTestDataPath() + "/styles/styles.apk"); in TEST() local
71 ASSERT_NE(nullptr, apk_assets); in TEST()
72 assetmanager.SetApkAssets({apk_assets.get()}); in TEST()
/frameworks/base/libs/androidfw/
DAssetManager2.cpp69 bool AssetManager2::SetApkAssets(const std::vector<const ApkAssets*>& apk_assets, in SetApkAssets() argument
71 apk_assets_ = apk_assets; in SetApkAssets()
140 for (const auto& apk_assets : apk_assets_) { in DumpToLog() local
141 base::StringAppendF(&list, "%s,", apk_assets->GetPath().c_str()); in DumpToLog()
258 const ApkAssets* apk_assets = *iter; in OpenDir() local
264 info.setSourceName(String8(apk_assets->GetPath().c_str())); in OpenDir()
268 if (!apk_assets->ForEachFile(full_path, func)) { in OpenDir()
/frameworks/base/libs/androidfw/include/androidfw/
DAssetManager2.h99 bool SetApkAssets(const std::vector<const ApkAssets*>& apk_assets, bool invalidate_caches = true);