Searched refs:apk_assets (Results 1 – 9 of 9) sorted by relevance
/frameworks/base/core/jni/ |
D | android_content_res_ApkAssets.cpp | 86 static void DeleteGuardedApkAssets(Guarded<AssetManager2::ApkAssetsPtr>& apk_assets) { in DeleteGuardedApkAssets() argument 87 apk_assets.safeDelete([&apk_assets](AssetManager2::ApkAssetsPtr* assets) { in DeleteGuardedApkAssets() 89 ALOGW("ApkAssets: Double delete of native assets object %p, ignored", &apk_assets); in DeleteGuardedApkAssets() 91 ALOGW("ApkAssets: Empty native assets pointer in native assets object %p", &apk_assets); in DeleteGuardedApkAssets() 107 delete &apk_assets; in DeleteGuardedApkAssets() 232 AssetManager2::ApkAssetsPtr apk_assets; in NativeLoad() local 238 apk_assets = ApkAssets::Load(std::move(assets), property_flags); in NativeLoad() 242 apk_assets = ApkAssets::LoadOverlay(path.c_str(), property_flags); in NativeLoad() 245 apk_assets = ApkAssets::LoadTable(AssetsProvider::CreateAssetFromFile(path.c_str()), in NativeLoad() 252 apk_assets = ApkAssets::Load(std::move(assets), property_flags); in NativeLoad() [all …]
|
D | android_util_AssetManager.cpp | 322 std::vector<AssetManager2::ApkAssetsPtr> apk_assets; in NativeSetApkAssets() local 323 apk_assets.reserve(apk_assets_len); in NativeSetApkAssets() 343 apk_assets.emplace_back(*scoped_assets); in NativeSetApkAssets() 348 assetmanager->PresetApkAssets(apk_assets); in NativeSetApkAssets() 350 assetmanager->SetApkAssets(apk_assets, invalidate_caches); in NativeSetApkAssets() 781 const auto& apk_assets = assetmanager->GetApkAssets(attr_value.cookie); in NativeGetResourceStringArray() local 782 if (apk_assets) { in NativeGetResourceStringArray() 783 const ResStringPool* pool = apk_assets->GetLoadedArsc()->GetStringPool(); in NativeGetResourceStringArray()
|
/frameworks/base/libs/androidfw/tests/ |
D | BenchmarkHelpers.cpp | 56 std::vector<AssetManager2::ApkAssetsPtr> apk_assets; in GetResourceBenchmark() local 63 apk_assets.push_back(std::move(apk)); in GetResourceBenchmark() 67 assetmanager.SetApkAssets(apk_assets); in GetResourceBenchmark()
|
D | Idmap_test.cpp | 215 auto apk_assets = ApkAssets::LoadOverlay(temp_file.path); in TEST_F() local 216 ASSERT_NE(nullptr, apk_assets); in TEST_F() 217 ASSERT_TRUE(apk_assets->IsUpToDate()); in TEST_F() 220 ASSERT_FALSE(apk_assets->IsUpToDate()); in TEST_F() 226 ASSERT_FALSE(apk_assets->IsUpToDate()); in TEST_F()
|
D | AttributeResolution_test.cpp | 70 auto apk_assets = ApkAssets::Load(GetTestDataPath() + "/styles/styles.apk", PROPERTY_DYNAMIC); in TEST() local 71 ASSERT_NE(nullptr, apk_assets); in TEST() 72 assetmanager.SetApkAssets({apk_assets}); in TEST()
|
/frameworks/base/libs/androidfw/ |
D | AssetManager2.cpp | 100 AssetManager2::AssetManager2(ApkAssetsList apk_assets, const ResTable_config& configuration) { in AssetManager2() argument 104 SetApkAssets(apk_assets, false); in AssetManager2() 111 bool AssetManager2::SetApkAssets(ApkAssetsList apk_assets, bool invalidate_caches) { in SetApkAssets() argument 112 BuildDynamicRefTable(apk_assets); in SetApkAssets() 120 void AssetManager2::PresetApkAssets(ApkAssetsList apk_assets) { in PresetApkAssets() argument 121 BuildDynamicRefTable(apk_assets); in PresetApkAssets() 124 bool AssetManager2::SetApkAssets(std::initializer_list<ApkAssetsPtr> apk_assets, in SetApkAssets() argument 126 return SetApkAssets(ApkAssetsList(apk_assets.begin(), apk_assets.size()), invalidate_caches); in SetApkAssets() 129 void AssetManager2::BuildDynamicRefTable(ApkAssetsList apk_assets) { in BuildDynamicRefTable() argument 132 apk_assets_.resize(apk_assets.size()); in BuildDynamicRefTable() [all …]
|
/frameworks/base/cmds/idmap2/idmap2/ |
D | Lookup.cpp | 177 std::vector<AssetManager2::ApkAssetsPtr> apk_assets; in Lookup() local 195 apk_assets.push_back(std::move(target_apk)); in Lookup() 217 apk_assets.push_back(std::move(overlay_apk)); in Lookup() 222 AssetManager2 am(apk_assets, config); in Lookup()
|
/frameworks/base/libs/androidfw/include/androidfw/ |
D | AssetManager2.h | 105 AssetManager2(ApkAssetsList apk_assets, const ResTable_config& configuration); 125 bool SetApkAssets(ApkAssetsList apk_assets, bool invalidate_caches = true); 126 bool SetApkAssets(std::initializer_list<ApkAssetsPtr> apk_assets, bool invalidate_caches = true); 129 void PresetApkAssets(ApkAssetsList apk_assets);
|
/frameworks/base/cmds/idmap2/libidmap2/ |
D | ResourceContainer.cpp | 265 AssetManager2::ApkAssetsPtr apk_assets; member 275 if ((state.apk_assets = ApkAssets::Load(std::move(zip), flags)) == nullptr) { in Initialize() 279 if ((state.arsc = state.apk_assets->GetLoadedArsc()) == nullptr) { in Initialize() 288 if (!state.am->SetApkAssets({state.apk_assets}, false)) { in Initialize()
|