use of android.hardware.SensorDirectChannel in project robolectric by robolectric.
the class ShadowSensorManagerTest method createDirectChannel.
@Test
@Config(minSdk = Build.VERSION_CODES.O)
public void createDirectChannel() throws Exception {
SensorDirectChannel channel = sensorManager.createDirectChannel(new MemoryFile("name", 10));
assertThat(channel.isOpen()).isTrue();
channel.close();
assertThat(channel.isOpen()).isFalse();
}
Aggregations