Package org.robolectric.res.android
Class CppAssetManager
- java.lang.Object
-
- org.robolectric.res.android.CppAssetManager
-
public class CppAssetManager extends Object
-
-
Constructor Summary
Constructors Constructor Description CppAssetManager()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
addAssetPath(String8 path, Ref<Integer> cookie, boolean appAsLib)
boolean
addAssetPath(String8 path, Ref<Integer> cookie, boolean appAsLib, boolean isSystemAsset)
boolean
addDefaultAssets(String systemAssetsPath)
boolean
addDefaultAssets(Path systemAssetsPath)
List<AssetPath>
getAssetPaths()
void
getConfiguration(Ref<ResTable_config> outConfig)
static int
getGlobalCount()
ResTable
getResources()
Asset
open(String fileName, Asset.AccessMode mode)
AssetDir
openDir(String dirName)
Asset
openNonAsset(int cookie, String fileName, Asset.AccessMode mode)
Asset
openNonAsset(String fileName, Asset.AccessMode mode, Ref<Integer> outCookie)
void
setConfiguration(ResTable_config config, String locale)
-
-
-
Method Detail
-
getGlobalCount
public static int getGlobalCount()
-
addAssetPath
public boolean addAssetPath(String8 path, @Nullable Ref<Integer> cookie, boolean appAsLib, boolean isSystemAsset)
-
addDefaultAssets
public boolean addDefaultAssets(Path systemAssetsPath)
-
addDefaultAssets
public boolean addDefaultAssets(String systemAssetsPath)
-
setConfiguration
public void setConfiguration(ResTable_config config, String locale)
-
getConfiguration
public void getConfiguration(Ref<ResTable_config> outConfig)
-
open
public Asset open(String fileName, Asset.AccessMode mode)
-
openNonAsset
public Asset openNonAsset(String fileName, Asset.AccessMode mode, Ref<Integer> outCookie)
-
openNonAsset
public Asset openNonAsset(int cookie, String fileName, Asset.AccessMode mode)
-
getResources
public final ResTable getResources()
-
-