@Implements(value=dalvik.system.VMRuntime.class, isInAndroidSdk=false) public class ShadowVMRuntime extends Object
Constructor | Description |
---|---|
ShadowVMRuntime() |
Modifier and Type | Method | Description |
---|---|---|
long |
addressOf(Object obj) |
Returns a unique identifier of the object instead of a 'native' address.
|
protected static String |
getCurrentInstructionSet() |
Returns the instruction set of the current runtime.
|
Object |
getObjectForAddress(long address) |
Returns the object previously registered with
addressOf(Object) . |
protected boolean |
is64Bit() |
Returns whether the VM is running in 64-bit mode.
|
Object |
newNonMovableArray(Class<?> type,
int size) |
|
Object |
newUnpaddedArray(Class<?> klass,
int size) |
|
static void |
reset() |
|
static void |
setCurrentInstructionSet(String currentInstructionSet) |
Sets the instruction set of the current runtime.
|
static void |
setIs64Bit(boolean is64Bit) |
Sets whether the VM is running in 64-bit mode.
|
@Implementation(minSdk=21) public Object newUnpaddedArray(Class<?> klass, int size)
@Implementation public Object newNonMovableArray(Class<?> type, int size)
@Implementation public long addressOf(Object obj)
@Nullable public Object getObjectForAddress(long address)
addressOf(Object)
.@Implementation(minSdk=21) protected boolean is64Bit()
public static void setIs64Bit(boolean is64Bit)
@Implementation(minSdk=21) protected static String getCurrentInstructionSet()
public static void setCurrentInstructionSet(@Nullable String currentInstructionSet)
@Resetter public static void reset()