Package org.robolectric.shadows
Class ShadowArscApkAssets9
- java.lang.Object
-
- org.robolectric.shadows.ShadowApkAssets
-
- org.robolectric.shadows.ShadowArscApkAssets9
-
@Implements(value=android.content.res.ApkAssets.class, minSdk=28, shadowPicker=Picker.class, isInAndroidSdk=false) public class ShadowArscApkAssets9 extends ShadowApkAssets
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static interfaceShadowArscApkAssets9.ApkAssetMakerprotected static classShadowArscApkAssets9.KeyCaching key forApkAssets.-
Nested classes/interfaces inherited from class org.robolectric.shadows.ShadowApkAssets
ShadowApkAssets.Picker
-
-
Field Summary
Fields Modifier and Type Field Description protected static java.lang.StringFRAMEWORK_APK_PATH
-
Constructor Summary
Constructors Constructor Description ShadowArscApkAssets9()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description protected static android.content.res.ApkAssetsgetFromCacheOrLoad(ShadowArscApkAssets9.Key key, ShadowArscApkAssets9.ApkAssetMaker callable)protected static android.content.res.ApkAssetsloadFromFd(java.io.FileDescriptor fd, java.lang.String friendlyName, boolean system, boolean forceSharedLibrary)protected static android.content.res.ApkAssetsloadFromPath(java.lang.String path)protected static android.content.res.ApkAssetsloadFromPath(java.lang.String path, boolean system)Necessary to shadow this method because the framework path is hard-coded.protected static android.content.res.ApkAssetsloadFromPath(java.lang.String path, boolean system, boolean forceSharedLibrary)protected static android.content.res.ApkAssetsloadOverlayFromPath(java.lang.String idmapPath, boolean system)protected static java.lang.StringnativeGetAssetPath(long ptr)protected static longnativeGetStringBlock(long ptr)protected static booleannativeIsUpToDate(long ptr)protected static longnativeLoad(java.lang.String java_path, boolean system, boolean force_shared_lib, boolean overlay)protected static longnativeLoadFromFd(java.io.FileDescriptor file_descriptor, java.lang.String friendly_name, boolean system, boolean force_shared_lib)protected static longnativeOpenXml(long ptr, java.lang.String file_name)
-
-
-
Method Detail
-
getFromCacheOrLoad
protected static android.content.res.ApkAssets getFromCacheOrLoad(ShadowArscApkAssets9.Key key, ShadowArscApkAssets9.ApkAssetMaker callable)
-
loadFromPath
@Implementation protected static android.content.res.ApkAssets loadFromPath(java.lang.String path) throws java.io.IOException- Throws:
java.io.IOException
-
loadFromPath
@Implementation protected static android.content.res.ApkAssets loadFromPath(java.lang.String path, boolean system) throws java.io.IOExceptionNecessary to shadow this method because the framework path is hard-coded. Called from AssetManager.createSystemAssetsInZygoteLocked() in P+.- Throws:
java.io.IOException
-
loadFromPath
@Implementation protected static android.content.res.ApkAssets loadFromPath(java.lang.String path, boolean system, boolean forceSharedLibrary) throws java.io.IOException- Throws:
java.io.IOException
-
loadFromFd
@Implementation protected static android.content.res.ApkAssets loadFromFd(java.io.FileDescriptor fd, java.lang.String friendlyName, boolean system, boolean forceSharedLibrary) throws java.io.IOException- Throws:
java.io.IOException
-
loadOverlayFromPath
@Implementation protected static android.content.res.ApkAssets loadOverlayFromPath(java.lang.String idmapPath, boolean system) throws java.io.IOException- Throws:
java.io.IOException
-
nativeLoad
@Implementation protected static long nativeLoad(java.lang.String java_path, boolean system, boolean force_shared_lib, boolean overlay) throws java.io.IOException- Throws:
java.io.IOException
-
nativeLoadFromFd
@Implementation protected static long nativeLoadFromFd(java.io.FileDescriptor file_descriptor, java.lang.String friendly_name, boolean system, boolean force_shared_lib)
-
nativeGetAssetPath
@Implementation protected static java.lang.String nativeGetAssetPath(long ptr)
-
nativeGetStringBlock
@Implementation protected static long nativeGetStringBlock(long ptr)
-
nativeIsUpToDate
@Implementation protected static boolean nativeIsUpToDate(long ptr)
-
nativeOpenXml
@Implementation protected static long nativeOpenXml(long ptr, java.lang.String file_name) throws java.io.FileNotFoundException- Throws:
java.io.FileNotFoundException
-
-