@Implements(value=dalvik.system.DexFile.class) public class ShadowDexFile extends Object
Shadow implementation of dalvik.system.Dexfile.
Constructor and Description |
---|
ShadowDexFile() |
Modifier and Type | Method and Description |
---|---|
protected static boolean |
isDexOptNeeded(String fileName) |
static void |
reset() |
static void |
setIsDexOptNeeded(boolean isDexOptNeeded)
Sets the value to be returned when isDexOptNeeded() is called with any argument.
|
static void |
setIsDexOptNeededError(Throwable error)
Sets the throwable that will be thrown when isDexOptNeeded() is called.
|
@Implementation protected static boolean isDexOptNeeded(String fileName) throws Throwable
Throwable
public static void setIsDexOptNeeded(boolean isDexOptNeeded)
Sets the value to be returned when isDexOptNeeded() is called with any argument.
public static void setIsDexOptNeededError(Throwable error)
Sets the throwable that will be thrown when isDexOptNeeded() is called. isDexOptNeeded() won’t throw if the error is null.
@Resetter public static void reset()