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 Details

    • ShadowVirtualDevice

      public ShadowVirtualDevice()
  • Method Details

    • __constructor__

      @Implementation protected void __constructor__(IVirtualDeviceManager service, Context context, int associationId, VirtualDeviceParams params)
    • getDeviceId

      @Implementation protected int getDeviceId()
    • close

      @Implementation protected void 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

      public PendingIntent getLastLaunchedPendingIntent()
    • getVirtualSensorCallback

      public android.companion.virtual.sensor.VirtualSensorCallback getVirtualSensorCallback()
    • getVirtualSensorDirectChannelCallback

      public android.companion.virtual.sensor.VirtualSensorDirectChannelCallback getVirtualSensorDirectChannelCallback()
    • reset

      @Resetter public static void reset()