Lines Matching refs:assetmanager

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()
161 assetmanager.GetResource(libclient::R::string::foo_one, false /*may_be_bag*/, in TEST_F()
170 cookie = assetmanager.GetResource(value.data, false /* may_be_bag */, 0 /* density_override*/, in TEST_F()
176 GetStringFromPool(assetmanager.GetStringPoolForCookie(cookie), value.data)); in TEST_F()
178 cookie = assetmanager.GetResource(libclient::R::string::foo_two, false /*may_be_bag*/, in TEST_F()
187 cookie = assetmanager.GetResource(value.data, false /* may_be_bag */, 0 /* density_override*/, in TEST_F()
193 GetStringFromPool(assetmanager.GetStringPoolForCookie(cookie), value.data)); in TEST_F()
197 AssetManager2 assetmanager; in TEST_F() local
198 assetmanager.SetApkAssets({appaslib_assets_.get()}); in TEST_F()
205 ApkAssetsCookie cookie = assetmanager.GetResource( in TEST_F()
214 AssetManager2 assetmanager; in TEST_F() local
215 assetmanager.SetApkAssets({basic_assets_.get()}); in TEST_F()
217 const ResolvedBag* bag = assetmanager.GetBag(basic::R::array::integerArray1); in TEST_F()
237 AssetManager2 assetmanager; in TEST_F() local
241 assetmanager.SetApkAssets( in TEST_F()
244 const ResolvedBag* bag = assetmanager.GetBag(fix_package_id(lib_one::R::style::Theme, 0x03)); in TEST_F()
256 AssetManager2 assetmanager; in TEST_F() local
260 assetmanager.SetApkAssets( in TEST_F()
263 const ResolvedBag* bag = assetmanager.GetBag(libclient::R::style::Theme); in TEST_F()
275 AssetManager2 assetmanager; in TEST_F() local
276 assetmanager.SetApkAssets({style_assets_.get()}); in TEST_F()
278 const ResolvedBag* bag_one = assetmanager.GetBag(app::R::style::StyleOne); in TEST_F()
292 const ResolvedBag* bag_two = assetmanager.GetBag(app::R::style::StyleTwo); in TEST_F()
306 EXPECT_EQ(std::string("string"), GetStringFromPool(assetmanager.GetStringPoolForCookie(0), in TEST_F()
333 AssetManager2 assetmanager; in TEST_F() local
334 assetmanager.SetApkAssets({style_assets_.get()}); in TEST_F()
338 const ResolvedBag* bag_one = assetmanager.GetBag(app::R::style::StyleFour); in TEST_F()
344 AssetManager2 assetmanager; in TEST_F() local
345 assetmanager.SetApkAssets({basic_assets_.get()}); in TEST_F()
351 assetmanager.GetResource(basic::R::integer::ref1, false /*may_be_bag*/, in TEST_F()
359 cookie = assetmanager.ResolveReference(cookie, &value, &selected_config, &flags, &last_ref); in TEST_F()
367 AssetManager2 assetmanager; in TEST_F() local
368 assetmanager.SetApkAssets({basic_assets_.get()}); in TEST_F()
374 assetmanager.GetResource(basic::R::integer::number2, true /*may_be_bag*/, in TEST_F()
382 cookie = assetmanager.ResolveReference(cookie, &value, &selected_config, &flags, &last_ref); in TEST_F()
390 AssetManager2 assetmanager; in TEST_F() local
391 assetmanager.SetApkAssets({basic_assets_.get()}); in TEST_F()
394 const uint32_t high_ref = assetmanager in TEST_F()
397 const uint32_t middle_ref = assetmanager in TEST_F()
400 const uint32_t low_ref = assetmanager in TEST_F()
408 ApkAssetsCookie cookie = assetmanager.GetResource(high_ref, false /*may_be_bag*/, in TEST_F()
417 assetmanager.ResolveReference(cookie, &value, &config, &flags, &last_ref); in TEST_F()
422 AssetManager2 assetmanager; in TEST_F() local
423 assetmanager.SetApkAssets({basic_assets_.get()}); in TEST_F()
436 EXPECT_EQ(1, assetmanager.ResolveReference(1, &value, &selected_config, &flags, &last_ref)); in TEST_F()
446 AssetManager2 assetmanager; in TEST_F() local
447 assetmanager.SetApkAssets({system_assets_.get(), basic_de_fr_assets_.get()}); in TEST_F()
449 std::set<ResTable_config> configurations = assetmanager.GetResourceConfigurations(); in TEST_F()
470 configurations = assetmanager.GetResourceConfigurations(true /* exclude_system */); in TEST_F()
489 AssetManager2 assetmanager; in TEST_F() local
490 assetmanager.SetApkAssets({system_assets_.get(), basic_de_fr_assets_.get()}); in TEST_F()
492 std::set<std::string> locales = assetmanager.GetResourceLocales(); in TEST_F()
500 locales = assetmanager.GetResourceLocales(true /*exclude_system*/); in TEST_F()
508 AssetManager2 assetmanager; in TEST_F() local
509 assetmanager.SetApkAssets({basic_assets_.get()}); in TEST_F()
512 assetmanager.GetResourceId("com.android.basic:layout/main", "", "")); in TEST_F()
514 assetmanager.GetResourceId("layout/main", "", "com.android.basic")); in TEST_F()
516 assetmanager.GetResourceId("main", "layout", "com.android.basic")); in TEST_F()
520 AssetManager2 assetmanager; in TEST_F() local
521 assetmanager.SetApkAssets({system_assets_.get()}); in TEST_F()
523 std::unique_ptr<Asset> asset = assetmanager.Open("file.txt", Asset::ACCESS_BUFFER); in TEST_F()
532 AssetManager2 assetmanager; in TEST_F() local
533 assetmanager.SetApkAssets({system_assets_.get(), app_assets_.get()}); in TEST_F()
535 std::unique_ptr<Asset> asset = assetmanager.Open("file.txt", Asset::ACCESS_BUFFER); in TEST_F()
544 AssetManager2 assetmanager; in TEST_F() local
545 assetmanager.SetApkAssets({system_assets_.get()}); in TEST_F()
547 std::unique_ptr<AssetDir> asset_dir = assetmanager.OpenDir(""); in TEST_F()
557 asset_dir = assetmanager.OpenDir("subdir"); in TEST_F()
566 AssetManager2 assetmanager; in TEST_F() local
567 assetmanager.SetApkAssets({system_assets_.get(), app_assets_.get()}); in TEST_F()
569 std::unique_ptr<AssetDir> asset_dir = assetmanager.OpenDir(""); in TEST_F()