Package org.robolectric.res.android
Class CppAssetManager2
- java.lang.Object
-
- org.robolectric.res.android.CppAssetManager2
-
public class CppAssetManager2 extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
CppAssetManager2.PackageFunc
static class
CppAssetManager2.ResolvedBag
static class
CppAssetManager2.ResourceName
static class
CppAssetManager2.Theme
-
Constructor Summary
Constructors Constructor Description CppAssetManager2()
-
Method Summary
-
-
-
Method Detail
-
GetApkAssets
public final List<CppApkAssets> GetApkAssets()
-
SetApkAssets
public boolean SetApkAssets(List<CppApkAssets> apk_assets, boolean invalidate_caches)
-
GetDynamicRefTableForCookie
public final DynamicRefTable GetDynamicRefTableForCookie(ApkAssetsCookie cookie)
-
SetConfiguration
public void SetConfiguration(ResTable_config configuration)
-
GetResourceConfigurations
public Set<ResTable_config> GetResourceConfigurations(boolean exclude_system, boolean exclude_mipmap)
-
GetResourceLocales
public Set<String> GetResourceLocales(boolean exclude_system, boolean merge_equivalent_languages)
-
Open
public Asset Open(String filename, Asset.AccessMode mode)
-
OpenNonAsset
public Asset OpenNonAsset(String filename, Asset.AccessMode mode, Ref<ApkAssetsCookie> out_cookie)
-
OpenNonAsset
public Asset OpenNonAsset(String filename, Asset.AccessMode mode)
-
OpenNonAsset
public Asset OpenNonAsset(String filename, ApkAssetsCookie cookie, Asset.AccessMode mode)
-
ForEachPackage
public void ForEachPackage(CppAssetManager2.PackageFunc func)
-
GetResourceName
public boolean GetResourceName(int resid, CppAssetManager2.ResourceName out_name)
-
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
public final CppAssetManager2.ResolvedBag GetBag(int resid)
-
GetResourceId
public int GetResourceId(String resource_name, String fallback_type, String fallback_package)
-
NewTheme
public CppAssetManager2.Theme NewTheme()
-
-