Package org.robolectric.res.android
Class CppAssetManager2
java.lang.Object
org.robolectric.res.android.CppAssetManager2
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic interface
static class
static class
static class
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
final List<CppApkAssets>
GetBag
(int resid) final DynamicRefTable
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) GetResourceConfigurations
(boolean exclude_system, boolean exclude_mipmap) int
GetResourceId
(String resource_name, String fallback_type, String fallback_package) GetResourceLocales
(boolean exclude_system, boolean merge_equivalent_languages) boolean
GetResourceName
(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) boolean
SetApkAssets
(List<CppApkAssets> apk_assets, boolean invalidate_caches) void
SetConfiguration
(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
-