Package org.robolectric.shadows
Class ShadowVirtualDeviceManager.ShadowVirtualDevice
java.lang.Object
org.robolectric.shadows.ShadowVirtualDeviceManager.ShadowVirtualDevice
- Enclosing class:
- ShadowVirtualDeviceManager
@Implements(value=android.companion.virtual.VirtualDeviceManager.VirtualDevice.class,
minSdk=34,
isInAndroidSdk=false)
public static class ShadowVirtualDeviceManager.ShadowVirtualDevice
extends Object
Shadow for inner class VirtualDeviceManager.VirtualDevice.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
__constructor__
(IVirtualDeviceManager service, Context context, int associationId, VirtualDeviceParams params) protected void
close()
Prevents a NPE when calling .close() on a VirtualDevice in unit tests.protected VirtualKeyboard
protected VirtualMouse
createVirtualMouse
(VirtualDisplay display, String inputDeviceName, int vendorId, int productId) protected VirtualMouse
createVirtualMouse
(VirtualMouseConfig config) protected VirtualTouchscreen
createVirtualTouchscreen
(VirtualDisplay display, String inputDeviceName, int vendorId, int productId) protected VirtualTouchscreen
protected int
android.companion.virtual.sensor.VirtualSensorCallback
android.companion.virtual.sensor.VirtualSensorDirectChannelCallback
protected List<android.companion.virtual.sensor.VirtualSensor>
boolean
isClosed()
protected void
launchPendingIntent
(int displayId, PendingIntent pendingIntent, Executor executor, IntConsumer listener) static void
reset()
void
setPendingIntentCallbackResultCode
(int resultCode) protected void
setShowPointerIcon
(boolean showPointerIcon)
-
Constructor Details
-
ShadowVirtualDevice
public ShadowVirtualDevice()
-
-
Method Details
-
__constructor__
@Implementation protected void __constructor__(IVirtualDeviceManager service, Context context, int associationId, VirtualDeviceParams params) -
getDeviceId
-
close
Prevents a NPE when calling .close() on a VirtualDevice in unit tests. -
isClosed
public boolean isClosed() -
getVirtualSensorList
@Implementation protected List<android.companion.virtual.sensor.VirtualSensor> getVirtualSensorList() -
launchPendingIntent
@Implementation protected void launchPendingIntent(int displayId, PendingIntent pendingIntent, Executor executor, IntConsumer listener) -
createVirtualMouse
@Implementation protected VirtualMouse createVirtualMouse(VirtualDisplay display, String inputDeviceName, int vendorId, int productId) -
createVirtualMouse
-
setShowPointerIcon
-
createVirtualTouchscreen
@Implementation protected VirtualTouchscreen createVirtualTouchscreen(VirtualDisplay display, String inputDeviceName, int vendorId, int productId) -
createVirtualTouchscreen
@Implementation protected VirtualTouchscreen createVirtualTouchscreen(VirtualTouchscreenConfig config) -
createVirtualKeyboard
-
setPendingIntentCallbackResultCode
public void setPendingIntentCallbackResultCode(int resultCode) -
getLastLaunchedPendingIntent
-
getVirtualSensorCallback
public android.companion.virtual.sensor.VirtualSensorCallback getVirtualSensorCallback() -
getVirtualSensorDirectChannelCallback
public android.companion.virtual.sensor.VirtualSensorDirectChannelCallback getVirtualSensorDirectChannelCallback() -
reset
-