/frameworks/hardware/interfaces/sensorservice/1.0/ |
IEventQueue.hal | 29 * @param sensorHandle the sensor to enable. Must be a sensor acquired from 39 enableSensor(int32_t sensorHandle, 47 * @param sensorHandle the sensor to disable. Must be a sensor acquired from 52 disableSensor(int32_t sensorHandle) generates (Result result);
|
IDirectReportChannel.hal | 37 * sensorHandle to -1 and rate to STOP. 39 * @param sensorHandle handle of the sensor to operate on. If it is -1 54 configure(int32_t sensorHandle, RateLevel rate)
|
/system/chre/core/include/chre/core/ |
sensor_request_manager.h | 45 * supplied sensorHandle is only populated if the sensor type is known. 48 * @param sensorHandle A non-null pointer to a uint32_t to use as a sensor 52 bool getSensorHandle(SensorType sensorType, uint32_t *sensorHandle) const; 60 * @param sensorHandle The sensor handle for which this sensor request is 63 * @return true if the request was set successfully. If the sensorHandle is 67 bool setSensorRequest(Nanoapp *nanoapp, uint32_t sensorHandle, 73 * @param sensorHandle The handle of the sensor. 78 bool getSensorInfo(uint32_t sensorHandle, const Nanoapp& nanoapp, 103 * @param sensorHandle The handle of the sensor. 107 bool getSensorSamplingStatus(uint32_t sensorHandle, [all...] |
/hardware/interfaces/sensors/1.0/ |
ISensors.hal | 48 * @param sensorHandle is the handle of the sensor to change. 51 * @return result OK on success, BAD_VALUE if sensorHandle is invalid. 53 activate(int32_t sensorHandle, bool enabled) generates (Result result); 90 * @param sensorHandle handle of sensor to be changed. 96 batch(int32_t sensorHandle, 112 * @param sensorHandle handle of sensor to be flushed. 113 * @return result OK on success and BAD_VALUE if sensorHandle is invalid. 115 flush(int32_t sensorHandle) generates (Result result); 179 * @param sensorHandle handle of sensor to be configured. When combined 180 * with STOP rate, sensorHandle can be -1 to denote all activ [all...] |
types.hal | 817 int32_t sensorHandle; [all...] |
/system/chre/platform/shared/ |
chre_api_sensor.cc | 40 DLL_EXPORT bool chreGetSensorInfo(uint32_t sensorHandle, 49 getSensorInfo(sensorHandle, *nanoapp, info); 55 uint32_t sensorHandle, struct chreSensorSamplingStatus *status) { 61 getSensorSamplingStatus(sensorHandle, status); 66 DLL_EXPORT bool chreSensorConfigure(uint32_t sensorHandle, 74 .setSensorRequest(nanoapp, sensorHandle, sensorRequest);
|
/frameworks/native/services/sensorservice/hidl/ |
DirectReportChannel.cpp | 34 Return<void> DirectReportChannel::configure(int32_t sensorHandle, RateLevel rate, 37 static_cast<int>(sensorHandle), static_cast<int>(rate));
|
EventQueue.cpp | 76 Return<Result> EventQueue::enableSensor(int32_t sensorHandle, int32_t samplingPeriodUs, 78 return convertResult(mInternalQueue->enableSensor(sensorHandle, samplingPeriodUs, 82 Return<Result> EventQueue::disableSensor(int32_t sensorHandle) { 83 return convertResult(mInternalQueue->disableSensor(sensorHandle));
|
EventQueue.h | 48 Return<Result> enableSensor(int32_t sensorHandle, int32_t samplingPeriodUs, int64_t maxBatchReportLatencyUs) override; 49 Return<Result> disableSensor(int32_t sensorHandle) override;
|
/device/google/contexthub/firmware/app/chre/common/ |
chre_app.c | 47 static void initDataHeader(struct chreSensorDataHeader *header, uint64_t timestamp, uint32_t sensorHandle) { 49 header->sensorHandle = sensorHandle; 54 static void processTripleAxisData(const struct TripleAxisDataEvent *src, uint32_t sensorHandle, uint8_t sensorType) 59 initDataHeader(&three.header, src->referenceTime, sensorHandle); 73 static void processSingleAxisData(const struct SingleAxisDataEvent *src, uint32_t sensorHandle, uint8_t sensorType) 82 initDataHeader(&occ.header, src->referenceTime, sensorHandle); 97 initDataHeader(&flt.header, src->referenceTime, sensorHandle); 112 initDataHeader(&byte.header, src->referenceTime, sensorHandle); 129 static void processEmbeddedData(const void *src, uint32_t sensorHandle, uint8_t sensorType [all...] |
chre_app_syscalls.c | 93 bool chreGetSensorInfo(uint32_t sensorHandle, struct chreSensorInfo *info) 95 return syscallDo2P(SYSCALL_CHRE_API(SENSOR_GET_INFO), sensorHandle, info); 98 bool chreGetSensorSamplingStatus(uint32_t sensorHandle, 101 return syscallDo2P(SYSCALL_CHRE_API(SENSOR_GET_STATUS), sensorHandle, status); 104 bool chreSensorConfigure(uint32_t sensorHandle, 112 return syscallDo6P(SYSCALL_CHRE_API(SENSOR_CONFIG), sensorHandle, mode,
|
/device/google/contexthub/inc/chre/ |
sensor.h | 495 uint32_t sensorHandle; 643 uint32_t sensorHandle; 669 * @param sensorHandle The sensor handle, as obtained from 677 bool chreGetSensorInfo(uint32_t sensorHandle, struct chreSensorInfo *info); 694 * @param sensorHandle The sensor handle, as obtained from 702 bool chreGetSensorSamplingStatus(uint32_t sensorHandle, 763 * @param sensorHandle The handle to the sensor, as obtained from 794 bool chreSensorConfigure(uint32_t sensorHandle, 804 uint32_t sensorHandle, enum chreSensorConfigureMode mode) { 805 return chreSensorConfigure(sensorHandle, [all...] |
/system/chre/chre_api/legacy/v1_0/chre/ |
sensor.h | 495 uint32_t sensorHandle; 643 uint32_t sensorHandle; 669 * @param sensorHandle The sensor handle, as obtained from 677 bool chreGetSensorInfo(uint32_t sensorHandle, struct chreSensorInfo *info); 694 * @param sensorHandle The sensor handle, as obtained from 702 bool chreGetSensorSamplingStatus(uint32_t sensorHandle, 763 * @param sensorHandle The handle to the sensor, as obtained from 794 bool chreSensorConfigure(uint32_t sensorHandle, 805 uint32_t sensorHandle, enum chreSensorConfigureMode mode) { 806 return chreSensorConfigure(sensorHandle, [all...] |
/device/google/contexthub/firmware/os/inc/ |
sensors.h | 132 uint32_t sensorHandle; 273 bool sensorRequest(uint32_t clientTid, uint32_t sensorHandle, uint32_t rate, uint64_t latency); 274 bool sensorRequestRateChange(uint32_t clientTid, uint32_t sensorHandle, uint32_t newRate, uint64_t newLatency); 275 bool sensorRelease(uint32_t clientTid, uint32_t sensorHandle); 277 bool sensorTriggerOndemand(uint32_t clientTid, uint32_t sensorHandle); 278 bool sensorFlush(uint32_t sensorHandle); 279 bool sensorCalibrate(uint32_t sensorHandle); 280 bool sensorSelfTest(uint32_t sensorHandle); 281 bool sensorCfgData(uint32_t sensorHandle, void* cfgData); 282 uint32_t sensorGetCurRate(uint32_t sensorHandle); [all...] |
syscallDo.h | 127 static inline bool eOsSensorRequest(uint32_t clientId, uint32_t sensorHandle, uint32_t rate, uint64_t latency) 132 return syscallDo5P(SYSCALL_NO(SYSCALL_DOMAIN_OS, SYSCALL_OS_MAIN, SYSCALL_OS_MAIN_SENSOR, SYSCALL_OS_MAIN_SENSOR_REQUEST), clientId, sensorHandle, rate, latency_lo, latency_hi); 135 static inline bool eOsSensorRequestRateChange(uint32_t clientId, uint32_t sensorHandle, uint32_t newRate, uint64_t newLatency) 140 return syscallDo5P(SYSCALL_NO(SYSCALL_DOMAIN_OS, SYSCALL_OS_MAIN, SYSCALL_OS_MAIN_SENSOR, SYSCALL_OS_MAIN_SENSOR_RATE_CHG), clientId, sensorHandle, newRate, newLatency_lo, newLatency_hi); 143 static inline bool eOsSensorRelease(uint32_t clientId, uint32_t sensorHandle) 145 return syscallDo2P(SYSCALL_NO(SYSCALL_DOMAIN_OS, SYSCALL_OS_MAIN, SYSCALL_OS_MAIN_SENSOR, SYSCALL_OS_MAIN_SENSOR_RELEASE), clientId, sensorHandle); 148 static inline bool eOsSensorTriggerOndemand(uint32_t clientId, uint32_t sensorHandle) 150 return syscallDo2P(SYSCALL_NO(SYSCALL_DOMAIN_OS, SYSCALL_OS_MAIN, SYSCALL_OS_MAIN_SENSOR, SYSCALL_OS_MAIN_SENSOR_TRIGGER), clientId, sensorHandle); 153 static inline uint32_t eOsSensorGetCurRate(uint32_t sensorHandle) 155 return syscallDo1P(SYSCALL_NO(SYSCALL_DOMAIN_OS, SYSCALL_OS_MAIN, SYSCALL_OS_MAIN_SENSOR, SYSCALL_OS_MAIN_SENSOR_GET_CUR_RATE), sensorHandle); [all...] |
/system/chre/chre_api/include/chre_api/chre/ |
sensor.h | 631 uint32_t sensorHandle; 790 uint32_t sensorHandle; 815 * @param sensorHandle The sensor handle, as obtained from 823 bool chreGetSensorInfo(uint32_t sensorHandle, struct chreSensorInfo *info); 840 * @param sensorHandle The sensor handle, as obtained from 848 bool chreGetSensorSamplingStatus(uint32_t sensorHandle, 909 * @param sensorHandle The handle to the sensor, as obtained from 940 bool chreSensorConfigure(uint32_t sensorHandle, 951 uint32_t sensorHandle, enum chreSensorConfigureMode mode) { 952 return chreSensorConfigure(sensorHandle, [all...] |
/frameworks/base/core/java/com/android/internal/os/ |
SensorPowerCalculator.java | 42 final int sensorHandle = sensorStats.keyAt(ise); 45 switch (sensorHandle) { 54 if (s.getHandle() == sensorHandle) {
|
/device/google/contexthub/firmware/os/core/ |
sensors.c | 75 static struct SensorsClientRequest* sensorClientRequestFind(uint32_t sensorHandle, uint32_t clientTid) 82 if (req && req->handle == sensorHandle && req->clientTid == clientTid) 574 static bool sensorAddRequestor(uint32_t sensorHandle, uint32_t clientTid, uint32_t rate, uint64_t latency) 581 req->handle = sensorHandle; 590 static bool sensorGetCurRequestorRate(uint32_t sensorHandle, uint32_t clientTid, uint32_t *rateP, uint64_t *latencyP) 592 struct SensorsClientRequest *req = sensorClientRequestFind(sensorHandle, clientTid); 605 static bool sensorAmendRequestor(uint32_t sensorHandle, uint32_t clientTid, uint32_t newRate, uint64_t newLatency) 607 struct SensorsClientRequest *req = sensorClientRequestFind(sensorHandle, clientTid); 618 static bool sensorDeleteRequestor(uint32_t sensorHandle, uint32_t clientTid) 620 struct SensorsClientRequest *req = sensorClientRequestFind(sensorHandle, clientTid) [all...] |
nanohub_chre.c | 250 static bool osChreSensorGetInfo(uint32_t sensorHandle, struct chreSensorInfo *info) 252 struct Sensor *s = sensorFindByHandle(sensorHandle); 272 uint32_t sensorHandle = va_arg(args, uint32_t); 274 *retValP = osChreSensorGetInfo(sensorHandle, info); 277 static bool osChreSensorGetSamplingStatus(uint32_t sensorHandle, 280 struct Sensor *s = sensorFindByHandle(sensorHandle); 309 uint32_t sensorHandle = va_arg(args, uint32_t); 311 *retValP = osChreSensorGetSamplingStatus(sensorHandle, status); 314 static bool osChreSensorConfigure(uint32_t sensorHandle, 320 struct Sensor *s = sensorFindByHandle(sensorHandle); [all...] |
/device/google/contexthub/firmware/os/drivers/vsync/ |
vsync.c | 78 uint32_t sensorHandle; 167 sensorSignalInternalEvt(mTask.sensorHandle, SENSOR_INTERNAL_EVT_POWER_STATE_CHG, on, 0); 173 return sensorSignalInternalEvt(mTask.sensorHandle, SENSOR_INTERNAL_EVT_FW_STATE_CHG, 1, 0); 179 return sensorSignalInternalEvt(mTask.sensorHandle, SENSOR_INTERNAL_EVT_RATE_CHG, rate, latency); 203 mTask.sensorHandle = sensorRegister(&mSensorInfo, &mSensorOps, NULL, true); 223 sensorUnregister(mTask.sensorHandle);
|
/system/chre/core/ |
sensor_request_manager.cc | 87 uint32_t *sensorHandle) const { 88 CHRE_ASSERT(sensorHandle); 97 *sensorHandle = getSensorHandleFromSensorType(sensorType); 105 uint32_t sensorHandle, const SensorRequest& sensorRequest) { 109 SensorType sensorType = getSensorTypeFromSensorHandle(sensorHandle); 181 bool SensorRequestManager::getSensorInfo(uint32_t sensorHandle, 189 SensorType sensorType = getSensorTypeFromSensorHandle(sensorHandle); 192 sensorHandle); 197 PRIu32, sensorHandle); 257 uint32_t sensorHandle, struct chreSensorSamplingStatus *status) const [all...] |
/device/google/contexthub/firmware/os/drivers/hall/ |
hall.c | 56 uint32_t sensorHandle; 154 return sensorSignalInternalEvt(mTask.sensorHandle, SENSOR_INTERNAL_EVT_POWER_STATE_CHG, on, 0); 159 return sensorSignalInternalEvt(mTask.sensorHandle, SENSOR_INTERNAL_EVT_FW_STATE_CHG, 1, 0); 173 return sensorSignalInternalEvt(mTask.sensorHandle, SENSOR_INTERNAL_EVT_RATE_CHG, rate, latency); 210 mTask.sensorHandle = sensorRegister(&mSensorInfo, &mSensorOps, NULL, true); 224 sensorUnregister(mTask.sensorHandle);
|
/device/google/contexthub/firmware/os/drivers/hall_twopole/ |
hall_twopole.c | 66 uint32_t sensorHandle; 175 return sensorSignalInternalEvt(mTask.sensorHandle, SENSOR_INTERNAL_EVT_POWER_STATE_CHG, on, 0); 180 return sensorSignalInternalEvt(mTask.sensorHandle, SENSOR_INTERNAL_EVT_FW_STATE_CHG, 1, 0); 189 return sensorSignalInternalEvt(mTask.sensorHandle, SENSOR_INTERNAL_EVT_RATE_CHG, rate, latency); 226 mTask.sensorHandle = sensorRegister(&mSensorInfo, &mSensorOps, NULL, true); 246 sensorUnregister(mTask.sensorHandle);
|
/hardware/interfaces/sensors/1.0/vts/functional/ |
VtsHalSensorsV1_0TargetTest.cpp | 145 if (!sensors->activate(i.sensorHandle, false).isOk()) { 287 .sensorHandle = token, 467 int32_t sensorHandle, bool enabled); 470 int32_t sensorHandle, 473 return S()->batch(sensorHandle, samplingPeriodNs, maxReportLatencyNs); 476 Return<Result> flush(int32_t sensorHandle) { 477 return S()->flush(sensorHandle); 492 int32_t sensorHandle, int32_t channelHandle, RateLevel rate, 494 return S()->configDirectReport(sensorHandle, channelHandle, rate, _hidl_cb); 550 Return<Result> SensorsHidlTest::activate(int32_t sensorHandle, bool enabled) [all...] |
/frameworks/hardware/interfaces/sensorservice/libsensorndkbridge/ |
ASensorEventQueue.cpp | 49 reinterpret_cast<const SensorInfo *>(sensor)->sensorHandle, 77 reinterpret_cast<const SensorInfo *>(sensor)->sensorHandle);
|