/frameworks/base/libs/androidfw/tests/ |
D | AssetManager2_test.cpp | 94 AssetManager2 assetmanager; in TEST_F() local 95 assetmanager.SetConfiguration(desired_config); in TEST_F() 96 assetmanager.SetApkAssets({basic_assets_.get()}); in TEST_F() 103 assetmanager.GetResource(basic::R::string::test1, false /*may_be_bag*/, in TEST_F() 124 AssetManager2 assetmanager; in TEST_F() local 125 assetmanager.SetConfiguration(desired_config); in TEST_F() 126 assetmanager.SetApkAssets({basic_assets_.get(), basic_de_fr_assets_.get()}); in TEST_F() 133 assetmanager.GetResource(basic::R::string::test1, false /*may_be_bag*/, in TEST_F() 149 AssetManager2 assetmanager; in TEST_F() local 153 assetmanager.SetApkAssets( in TEST_F() [all …]
|
D | Theme_test.cpp | 62 AssetManager2 assetmanager; in TEST_F() local 63 assetmanager.SetApkAssets({style_assets_.get()}); in TEST_F() 65 std::unique_ptr<Theme> theme = assetmanager.NewTheme(); in TEST_F() 67 EXPECT_EQ(&assetmanager, theme->GetAssetManager()); in TEST_F() 75 AssetManager2 assetmanager; in TEST_F() local 76 assetmanager.SetApkAssets({style_assets_.get()}); in TEST_F() 78 std::unique_ptr<Theme> theme = assetmanager.NewTheme(); in TEST_F() 99 AssetManager2 assetmanager; in TEST_F() local 100 assetmanager.SetApkAssets({style_assets_.get()}); in TEST_F() 102 std::unique_ptr<Theme> theme = assetmanager.NewTheme(); in TEST_F() [all …]
|
D | BenchmarkHelpers.cpp | 27 AssetManager assetmanager; in GetResourceBenchmarkOld() local 29 if (!assetmanager.addAssetPath(String8(path.c_str()), nullptr /* cookie */, in GetResourceBenchmarkOld() 37 const ResTable& table = assetmanager.getResources(true); in GetResourceBenchmarkOld() 39 assetmanager.setConfiguration(*config); in GetResourceBenchmarkOld() 68 AssetManager2 assetmanager; in GetResourceBenchmark() local 69 assetmanager.SetApkAssets(apk_assets_ptrs); in GetResourceBenchmark() 71 assetmanager.SetConfiguration(*config); in GetResourceBenchmark() 80 ApkAssetsCookie cookie = assetmanager.GetResource( in GetResourceBenchmark() 82 assetmanager.ResolveReference(cookie, &value, &selected_config, &flags, &last_id); in GetResourceBenchmark()
|
D | AttributeResolution_bench.cpp | 46 AssetManager2 assetmanager; in BM_ApplyStyle() local 47 assetmanager.SetApkAssets({styles_apk.get()}); in BM_ApplyStyle() 50 assetmanager.OpenNonAsset("res/layout/layout.xml", Asset::ACCESS_BUFFER); in BM_ApplyStyle() 66 std::unique_ptr<Theme> theme = assetmanager.NewTheme(); in BM_ApplyStyle() 96 AssetManager2 assetmanager; in BM_ApplyStyleFramework() local 97 assetmanager.SetApkAssets({framework_apk.get(), basic_apk.get()}); in BM_ApplyStyleFramework() 115 assetmanager.GetResource(basic::R::layout::layoutt, false /*may_be_bag*/, in BM_ApplyStyleFramework() 124 assetmanager.GetStringPoolForCookie(cookie)->string8At(value.data, &len); in BM_ApplyStyleFramework() 130 std::unique_ptr<Asset> asset = assetmanager.OpenNonAsset( in BM_ApplyStyleFramework() 147 std::unique_ptr<Theme> theme = assetmanager.NewTheme(); in BM_ApplyStyleFramework()
|
D | AttributeResolution_test.cpp | 69 AssetManager2 assetmanager; in TEST() local 72 assetmanager.SetApkAssets({apk_assets.get()}); in TEST() 74 std::unique_ptr<Theme> theme = assetmanager.NewTheme(); in TEST()
|
/frameworks/base/core/jni/ |
D | android_util_AssetManager.cpp | 231 Guarded<AssetManager2>* AssetManagerForNdkAssetManager(::AAssetManager* assetmanager) { in AssetManagerForNdkAssetManager() argument 232 if (assetmanager == nullptr) { in AssetManagerForNdkAssetManager() 235 return &reinterpret_cast<GuardedAssetManager*>(assetmanager)->guarded_assetmanager; in AssetManagerForNdkAssetManager() 327 ScopedLock<AssetManager2> assetmanager(AssetManagerFromLong(ptr)); in NativeSetApkAssets() local 328 assetmanager->SetApkAssets(apk_assets, invalidate_caches); in NativeSetApkAssets() 376 ScopedLock<AssetManager2> assetmanager(AssetManagerFromLong(ptr)); in NativeSetConfiguration() local 377 assetmanager->SetConfiguration(configuration); in NativeSetConfiguration() 381 ScopedLock<AssetManager2> assetmanager(AssetManagerFromLong(ptr)); in NativeGetAssignedPackageIdentifiers() local 391 assetmanager->ForEachPackage([&](const std::string& package_name, uint8_t package_id) { in NativeGetAssignedPackageIdentifiers() 411 ScopedLock<AssetManager2> assetmanager(AssetManagerFromLong(ptr)); in NativeList() local [all …]
|
/frameworks/base/libs/androidfw/ |
D | AttributeResolution.cpp | 72 AssetManager2* assetmanager = theme->GetAssetManager(); in ResolveAttrs() local 92 default_style_bag = assetmanager->GetBag(def_style_res); in ResolveAttrs() 158 assetmanager->ResolveReference(new_cookie, &value, &config, &type_set_flags, &resid); in ResolveAttrs() 213 AssetManager2* assetmanager = theme->GetAssetManager(); in ApplyStyle() local 252 default_style_bag = assetmanager->GetBag(def_style_resid); in ApplyStyle() 263 xml_style_bag = assetmanager->GetBag(style_resid); in ApplyStyle() 352 assetmanager->ResolveReference(new_cookie, &value, &config, &type_set_flags, &resid); in ApplyStyle() 399 bool RetrieveAttributes(AssetManager2* assetmanager, ResXMLParser* xml_parser, uint32_t* attrs, in RetrieveAttributes() argument 439 assetmanager->ResolveReference(cookie, &value, &config, &type_set_flags, &resid); in RetrieveAttributes()
|
/frameworks/base/core/jni/include/android_runtime/ |
D | android_util_AssetManager.h | 29 extern Guarded<AssetManager2>* AssetManagerForNdkAssetManager(AAssetManager* assetmanager);
|
/frameworks/base/libs/androidfw/include/androidfw/ |
D | AttributeResolution.h | 58 bool RetrieveAttributes(AssetManager2* assetmanager, ResXMLParser* xml_parser, uint32_t* attrs,
|