Package org.robolectric.res.android
Class CppAssetManager2
java.lang.Object
org.robolectric.res.android.CppAssetManager2
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfacestatic classstatic classstatic class -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidfinal List<CppApkAssets> GetBag(int resid) final DynamicRefTableGetResource(int resid, boolean may_be_bag, short density_override, Ref<ResourceTypes.Res_value> out_value, Ref<ResTable_config> out_selected_config, Ref<Integer> out_flags) GetResourceConfigurations(boolean exclude_system, boolean exclude_mipmap) intGetResourceId(String resource_name, String fallback_type, String fallback_package) GetResourceLocales(boolean exclude_system, boolean merge_equivalent_languages) booleanGetResourceName(int resid, CppAssetManager2.ResourceName out_name) NewTheme()Open(String filename, Asset.AccessMode mode) OpenNonAsset(String filename, ApkAssetsCookie cookie, Asset.AccessMode mode) OpenNonAsset(String filename, Asset.AccessMode mode) OpenNonAsset(String filename, Asset.AccessMode mode, Ref<ApkAssetsCookie> out_cookie) ResolveReference(ApkAssetsCookie cookie, Ref<ResourceTypes.Res_value> in_out_value, Ref<ResTable_config> in_out_selected_config, Ref<Integer> in_out_flags, Ref<Integer> out_last_reference) booleanSetApkAssets(List<CppApkAssets> apk_assets, boolean invalidate_caches) voidSetConfiguration(ResTable_config configuration)
-
Constructor Details
-
CppAssetManager2
public CppAssetManager2()
-
-
Method Details
-
GetApkAssets
-
SetApkAssets
-
GetDynamicRefTableForCookie
-
SetConfiguration
-
GetResourceConfigurations
public Set<ResTable_config> GetResourceConfigurations(boolean exclude_system, boolean exclude_mipmap) -
GetResourceLocales
-
Open
-
OpenDir
-
OpenNonAsset
-
OpenNonAsset
-
OpenNonAsset
-
ForEachPackage
-
GetResourceName
-
GetResource
public ApkAssetsCookie GetResource(int resid, boolean may_be_bag, short density_override, Ref<ResourceTypes.Res_value> out_value, Ref<ResTable_config> out_selected_config, Ref<Integer> out_flags) -
ResolveReference
public ApkAssetsCookie ResolveReference(ApkAssetsCookie cookie, Ref<ResourceTypes.Res_value> in_out_value, Ref<ResTable_config> in_out_selected_config, Ref<Integer> in_out_flags, Ref<Integer> out_last_reference) -
GetBag
-
GetResourceId
-
NewTheme
-
getAssetPaths
-