Home
last modified time | relevance | path

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

/frameworks/base/libs/androidfw/tests/
DAssetManager2_test.cpp98 AssetManager2 assetmanager; in TEST_F() local
99 assetmanager.SetConfiguration(desired_config); in TEST_F()
100 assetmanager.SetApkAssets({basic_assets_.get()}); in TEST_F()
107 assetmanager.GetResource(basic::R::string::test1, false /*may_be_bag*/, in TEST_F()
128 AssetManager2 assetmanager; in TEST_F() local
129 assetmanager.SetConfiguration(desired_config); in TEST_F()
130 assetmanager.SetApkAssets({basic_assets_.get(), basic_de_fr_assets_.get()}); in TEST_F()
137 assetmanager.GetResource(basic::R::string::test1, false /*may_be_bag*/, in TEST_F()
153 AssetManager2 assetmanager; in TEST_F() local
157 assetmanager.SetApkAssets( in TEST_F()
[all …]
DBenchmarkHelpers.cpp27 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()
DTheme_test.cpp64 AssetManager2 assetmanager; in TEST_F() local
65 assetmanager.SetApkAssets({style_assets_.get()}); in TEST_F()
67 std::unique_ptr<Theme> theme = assetmanager.NewTheme(); in TEST_F()
69 EXPECT_EQ(&assetmanager, theme->GetAssetManager()); in TEST_F()
77 AssetManager2 assetmanager; in TEST_F() local
78 assetmanager.SetApkAssets({style_assets_.get()}); in TEST_F()
80 std::unique_ptr<Theme> theme = assetmanager.NewTheme(); in TEST_F()
101 AssetManager2 assetmanager; in TEST_F() local
102 assetmanager.SetApkAssets({style_assets_.get()}); in TEST_F()
104 std::unique_ptr<Theme> theme = assetmanager.NewTheme(); in TEST_F()
[all …]
DAttributeResolution_bench.cpp46 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()
DAttributeResolution_test.cpp69 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/
Dandroid_util_AssetManager.cpp341 Guarded<AssetManager2>* AssetManagerForNdkAssetManager(::AAssetManager* assetmanager) { in AssetManagerForNdkAssetManager() argument
342 if (assetmanager == nullptr) { in AssetManagerForNdkAssetManager()
345 return &reinterpret_cast<GuardedAssetManager*>(assetmanager)->guarded_assetmanager; in AssetManagerForNdkAssetManager()
358 ScopedLock<AssetManager2> assetmanager(AssetManagerFromLong(ptr)); in NativeGetOverlayableMap() local
364 assetmanager->ForEachPackage([&](const std::string& this_package_name, uint8_t package_id) { in NativeGetOverlayableMap()
366 map = assetmanager->GetOverlayableMapForPackage(package_id); in NativeGetOverlayableMap()
483 ScopedLock<AssetManager2> assetmanager(AssetManagerFromLong(ptr)); in NativeSetApkAssets() local
484 assetmanager->SetApkAssets(apk_assets, invalidate_caches); in NativeSetApkAssets()
532 ScopedLock<AssetManager2> assetmanager(AssetManagerFromLong(ptr)); in NativeSetConfiguration() local
533 assetmanager->SetConfiguration(configuration); in NativeSetConfiguration()
[all …]
/frameworks/base/libs/androidfw/
DAttributeResolution.cpp72 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()
359 assetmanager->ResolveReference(new_cookie, &value, &config, &type_set_flags, &resid); in ApplyStyle()
406 bool RetrieveAttributes(AssetManager2* assetmanager, ResXMLParser* xml_parser, uint32_t* attrs, in RetrieveAttributes() argument
446 assetmanager->ResolveReference(cookie, &value, &config, &type_set_flags, &resid); in RetrieveAttributes()
/frameworks/base/core/jni/include/android_runtime/
Dandroid_util_AssetManager.h29 extern Guarded<AssetManager2>* AssetManagerForNdkAssetManager(AAssetManager* assetmanager);
/frameworks/base/libs/androidfw/include/androidfw/
DAttributeResolution.h60 bool RetrieveAttributes(AssetManager2* assetmanager, ResXMLParser* xml_parser, uint32_t* attrs,