Package org.robolectric.shadows
Class ShadowVMRuntime
java.lang.Object
org.robolectric.shadows.ShadowVMRuntime
@Implements(value=dalvik.system.VMRuntime.class,
isInAndroidSdk=false)
public class ShadowVMRuntime
extends Object
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionlong
Returns a unique identifier of the object instead of a 'native' address.protected static String
Returns the instruction set of the current runtime.protected static int
getObjectForAddress
(long address) Returns the object previously registered withaddressOf(Object)
.protected boolean
is64Bit()
Returns whether the VM is running in 64-bit mode.newNonMovableArray
(Class<?> type, int size) 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.
-
Constructor Details
-
ShadowVMRuntime
public ShadowVMRuntime()
-
-
Method Details
-
newUnpaddedArray
-
newNonMovableArray
-
addressOf
Returns a unique identifier of the object instead of a 'native' address. -
getObjectForAddress
Returns the object previously registered withaddressOf(Object)
. -
is64Bit
Returns whether the VM is running in 64-bit mode. Available in Android L+. Defaults to true. -
setIs64Bit
public static void setIs64Bit(boolean is64Bit) Sets whether the VM is running in 64-bit mode. -
getCurrentInstructionSet
Returns the instruction set of the current runtime. -
setCurrentInstructionSet
Sets the instruction set of the current runtime. -
reset
-
getNotifyNativeInterval
-