History log of /frameworks/base/core/java/android/hardware/SensorDirectChannel.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
3c8c6a4cc91ad2aed52e0d331ecb8abc287a4a11 07-Apr-2017 Peng Xu <pengxu@google.com> Address review suggestions for sensor direct report related APIs

Changes inline with bug number

Some improvements about SensorDirectChannel class.
* Complete the doc about creation of SensorDirectChannel object.
* Make SensorDirectChannel implements java.nio.channels.Channel.
* Change isValid() to isOpen().
* Make close() thread safe.
Bug: 36550285

* Throw exception on failure of SensorManager.createDirectChannel.
* Change to use NullPointerException when unexpected null pointer
is passed in.
Bug: 36555061

* Move SensorManager.configureDirectChannel() to
SensorDirectChannel.configure().
* Format SensorDirectChannel.configure() function doc with
<pre></pre> to maintain the table structure.
* Reworded Sensor.isDirectChannelTypeSupported java doc.
Bug: 36555604

Test: pass updated cts SensorDirectReportTest
Change-Id: I447121eaf414cbc94292a109a9d93d2e3c89f8f4
/frameworks/base/core/java/android/hardware/SensorDirectChannel.java
7d96fa0b2acb54a0951dbaf6f9ca5ecc1e2b1f0f 05-Mar-2017 Peng Xu <pengxu@google.com> Sensor direct report HardwareBuffer implementation

Implemented API for sensor direct channel creating with HardwareBuffer
shared memory. Also, simplified jni code for ashmem shared memory direct
channel.

Bug: 30985702
Test: cts-tradefed run cts --module CtsSensorTestCases
--test android.hardware.cts.SensorDirectReportTest
Test: cts-tradefed run cts --module CtsSensorTestCases
--test android.hardware.cts.SensorNativeTest

Change-Id: I067fe21808cf370e4a659fc762131ed3007334a8
/frameworks/base/core/java/android/hardware/SensorDirectChannel.java
fa2672b71d9501463d8b9de5162f069b9e48384b 07-Dec-2016 Peng Xu <pengxu@google.com> Sensor event direct report mode implementation

Implementation of sensor direct report API. In this verison, only
ashmem(MemoryFile) backed direct channel is implemented. Support
of HardwareBuffer class will come in a following CL.

Test: tested with demo app
Bug: 30985702
Change-Id: I29cae5cb2615c7a128fe203ed1545c03010ca4aa
/frameworks/base/core/java/android/hardware/SensorDirectChannel.java
ccf0c8edeab411b403ad6fe967e17205745a477f 18-Jan-2017 Peng Xu <pengxu@google.com> Sensor event direct report mode support API

Add direct report mode support API with stub implementation.

* new SensorDirectChannel class to represent direct channel and
hold related constants.
* new methods in SensorManager to create/destroy direct channel
* new method in SensorManager to config sensor report in direct
channel
* new methods in Sensor to expose direct report related capability
of sensor.

Test: tested with demo app
Bug: 30985702
Change-Id: Ic03c67bea4ed0a728d3d783e95de6c59cf663cca
/frameworks/base/core/java/android/hardware/SensorDirectChannel.java