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 int
android.companion.virtual.sensor.VirtualSensorCallback
android.companion.virtual.sensor.VirtualSensorDirectChannelCallback
protected List<android.companion.virtual.sensor.VirtualSensor>
protected void
launchPendingIntent
(int displayId, PendingIntent pendingIntent, Executor executor, IntConsumer listener) static void
reset()
void
setPendingIntentCallbackResultCode
(int resultCode)
-
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. -
getVirtualSensorList
@Implementation protected List<android.companion.virtual.sensor.VirtualSensor> getVirtualSensorList() -
launchPendingIntent
@Implementation protected void launchPendingIntent(int displayId, PendingIntent pendingIntent, Executor executor, IntConsumer listener) -
setPendingIntentCallbackResultCode
public void setPendingIntentCallbackResultCode(int resultCode) -
getLastLaunchedPendingIntent
-
getVirtualSensorCallback
public android.companion.virtual.sensor.VirtualSensorCallback getVirtualSensorCallback() -
getVirtualSensorDirectChannelCallback
public android.companion.virtual.sensor.VirtualSensorDirectChannelCallback getVirtualSensorDirectChannelCallback() -
reset
-