Home
last modified time | relevance | path

Searched refs:sensorHandle (Results 1 – 19 of 19) sorted by relevance

/system/chre/chre_api/include/chre_api/chre/
Dsensor.h611 uint32_t sensorHandle; member
633 uint32_t sensorHandle; member
673 bool chreGetSensorInfo(uint32_t sensorHandle, struct chreSensorInfo *info);
698 bool chreGetSensorSamplingStatus(uint32_t sensorHandle,
798 bool chreSensorConfigure(uint32_t sensorHandle,
809 uint32_t sensorHandle, enum chreSensorConfigureMode mode) { in chreSensorConfigureModeOnly() argument
810 return chreSensorConfigure(sensorHandle, in chreSensorConfigureModeOnly()
851 uint32_t sensorHandle, enum chreSensorConfigureMode mode, in chreSensorConfigureWithBatchInterval() argument
864 result = chreSensorConfigure(sensorHandle, mode, sampleInterval, in chreSensorConfigureWithBatchInterval()
926 bool chreSensorConfigureBiasEvents(uint32_t sensorHandle, bool enable);
[all …]
Dsensor_types.h290 uint32_t sensorHandle; member
/system/chre/platform/shared/
Dchre_api_sensor.cc114 DLL_EXPORT bool chreGetSensorInfo(uint32_t sensorHandle, in chreGetSensorInfo() argument
123 getSensorInfo(sensorHandle, *nanoapp, info); in chreGetSensorInfo()
139 uint32_t sensorHandle, struct chreSensorSamplingStatus *status) { in chreGetSensorSamplingStatus() argument
145 getSensorSamplingStatus(sensorHandle, status); in chreGetSensorSamplingStatus()
150 DLL_EXPORT bool chreSensorConfigure(uint32_t sensorHandle, in chreSensorConfigure() argument
158 .setSensorRequest(nanoapp, sensorHandle, sensorRequest); in chreSensorConfigure()
161 DLL_EXPORT bool chreSensorConfigureBiasEvents(uint32_t sensorHandle, in chreSensorConfigureBiasEvents() argument
165 .configureBiasEvents(nanoapp, sensorHandle, enable); in chreSensorConfigureBiasEvents()
169 uint32_t sensorHandle, struct chreSensorThreeAxisData *bias) { in chreSensorGetThreeAxisBias() argument
171 .getThreeAxisBias(sensorHandle, bias); in chreSensorGetThreeAxisBias()
[all …]
/system/chre/chre_api/legacy/v1_2/chre/
Dsensor.h478 uint32_t sensorHandle; member
511 bool chreGetSensorInfo(uint32_t sensorHandle, struct chreSensorInfo *info);
536 bool chreGetSensorSamplingStatus(uint32_t sensorHandle,
628 bool chreSensorConfigure(uint32_t sensorHandle,
639 uint32_t sensorHandle, enum chreSensorConfigureMode mode) { in chreSensorConfigureModeOnly() argument
640 return chreSensorConfigure(sensorHandle, in chreSensorConfigureModeOnly()
681 uint32_t sensorHandle, enum chreSensorConfigureMode mode, in chreSensorConfigureWithBatchInterval() argument
694 result = chreSensorConfigure(sensorHandle, mode, sampleInterval, in chreSensorConfigureWithBatchInterval()
Dsensor_types.h247 uint32_t sensorHandle; member
/system/chre/chre_api/legacy/v1_1/chre/
Dsensor.h631 uint32_t sensorHandle; member
790 uint32_t sensorHandle; member
823 bool chreGetSensorInfo(uint32_t sensorHandle, struct chreSensorInfo *info);
848 bool chreGetSensorSamplingStatus(uint32_t sensorHandle,
940 bool chreSensorConfigure(uint32_t sensorHandle,
951 uint32_t sensorHandle, enum chreSensorConfigureMode mode) { in chreSensorConfigureModeOnly() argument
952 return chreSensorConfigure(sensorHandle, in chreSensorConfigureModeOnly()
993 uint32_t sensorHandle, enum chreSensorConfigureMode mode, in chreSensorConfigureWithBatchInterval() argument
1006 result = chreSensorConfigure(sensorHandle, mode, sampleInterval, in chreSensorConfigureWithBatchInterval()
/system/chre/chre_api/legacy/v1_0/chre/
Dsensor.h495 uint32_t sensorHandle; member
643 uint32_t sensorHandle; member
677 bool chreGetSensorInfo(uint32_t sensorHandle, struct chreSensorInfo *info);
702 bool chreGetSensorSamplingStatus(uint32_t sensorHandle,
794 bool chreSensorConfigure(uint32_t sensorHandle,
805 uint32_t sensorHandle, enum chreSensorConfigureMode mode) { in chreSensorConfigureModeOnly() argument
806 return chreSensorConfigure(sensorHandle, in chreSensorConfigureModeOnly()
/system/chre/core/include/chre/core/
Dsensor_request_manager.h62 bool getSensorHandle(SensorType sensorType, uint32_t *sensorHandle) const;
77 bool setSensorRequest(Nanoapp *nanoapp, uint32_t sensorHandle,
88 bool getSensorInfo(uint32_t sensorHandle, const Nanoapp& nanoapp,
121 bool getSensorSamplingStatus(uint32_t sensorHandle,
142 Nanoapp *nanoapp, uint32_t sensorHandle, bool enable);
155 uint32_t sensorHandle, struct chreSensorThreeAxisData *bias) const;
168 bool flushAsync(Nanoapp *nanoapp, uint32_t sensorHandle, const void *cookie);
444 uint32_t sensorHandle, uint8_t errorCode, const FlushRequest& request);
/system/chre/core/
Dsensor_request_manager.cc106 uint32_t *sensorHandle) const { in getSensorHandle()
107 CHRE_ASSERT(sensorHandle); in getSensorHandle()
116 *sensorHandle = getSensorHandleFromSensorType(sensorType); in getSensorHandle()
124 uint32_t sensorHandle, const SensorRequest& sensorRequest) { in setSensorRequest() argument
128 SensorType sensorType = getSensorTypeFromSensorHandle(sensorHandle); in setSensorRequest()
217 bool SensorRequestManager::getSensorInfo(uint32_t sensorHandle, in getSensorInfo() argument
225 SensorType sensorType = getSensorTypeFromSensorHandle(sensorHandle); in getSensorInfo()
232 PRIu32, sensorHandle); in getSensorInfo()
295 uint32_t sensorHandle, struct chreSensorSamplingStatus *status) const { in getSensorSamplingStatus() argument
299 SensorType sensorType = getSensorTypeFromSensorHandle(sensorHandle); in getSensorSamplingStatus()
[all …]
/system/chre/platform/shared/nanoapp/
Dnanoapp_support_lib_dso.cc181 bool chreSensorConfigureBiasEvents(uint32_t sensorHandle, bool enable) { in chreSensorConfigureBiasEvents() argument
183 return (fptr != nullptr) ? fptr(sensorHandle, enable) : false; in chreSensorConfigureBiasEvents()
187 bool chreSensorGetThreeAxisBias(uint32_t sensorHandle, in chreSensorGetThreeAxisBias() argument
190 return (fptr != nullptr) ? fptr(sensorHandle, bias) : false; in chreSensorGetThreeAxisBias()
194 bool chreSensorFlushAsync(uint32_t sensorHandle, const void *cookie) { in chreSensorFlushAsync() argument
196 return (fptr != nullptr) ? fptr(sensorHandle, cookie) : false; in chreSensorFlushAsync()
/system/chre/apps/chqts/src/general_test/
Dbasic_sensor_test_base.cc272 if (header->sensorHandle != mSensorHandle) { in sanityCheckHeader()
274 &header->sensorHandle); in sanityCheckHeader()
363 if (eventData->sensorHandle != mSensorHandle) { in handleSamplingChangeEvent()
365 &eventData->sensorHandle); in handleSamplingChangeEvent()
/system/chre/platform/slpi/
Dplatform_nanoapp.cc100 uint32_t getBigImageSensorHandle(uint32_t sensorHandle) { in getBigImageSensorHandle() argument
101 SensorType sensorType = getSensorTypeFromSensorHandle(sensorHandle); in getBigImageSensorHandle()
155 bias.header.sensorHandle = in handleEvent()
156 getBigImageSensorHandle(bias.header.sensorHandle); in handleEvent()
/system/chre/apps/chqts/src/busy_startup/
Dbusy_startup.cc111 if (header->sensorHandle != gSensorHandle) { in checkSensorEvent()
113 &header->sensorHandle); in checkSensorEvent()
/system/chre/platform/slpi/see/
Dplatform_sensor.cc228 void postSamplingStatusEvent(uint32_t instanceId, uint32_t sensorHandle, in postSamplingStatusEvent() argument
234 event->sensorHandle = sensorHandle; in postSamplingStatusEvent()
258 event->header.sensorHandle = getSensorHandleFromSensorType(sensorType); in postSensorBiasEvent()
293 uint32_t sensorHandle = getSensorHandleFromSensorType(update.sensorType); in updateSamplingStatus() local
298 postSamplingStatusEvent(req.getInstanceId(), sensorHandle, newStatus); in updateSamplingStatus()
384 biasData->header.sensorHandle); in onSensorBiasEvent()
959 bias->header.sensorHandle = getSensorHandleFromSensorType(sensorType); in getThreeAxisBias()
Dsee_cal_helper.cc62 biasData->header.sensorHandle = in getBias()
Dsee_helper.cc1458 header->sensorHandle = getSensorHandleFromSensorType( in prepareSensorEvent()
/system/chre/core/tests/
Dsensor_request_test.cc32 uint32_t sensorHandle = getSensorHandleFromSensorType(sensorType); in TEST() local
33 sensorType = chre::getSensorTypeFromSensorHandle(sensorHandle); in TEST()
37 sensorHandle = getSensorHandleFromSensorType(sensorType); in TEST()
38 sensorType = chre::getSensorTypeFromSensorHandle(sensorHandle); in TEST()
/system/chre/platform/slpi/smgr/
Dplatform_sensor.cc380 header->sensorHandle = getSensorHandleFromSensorType(sensorType); in populateSensorDataHeader()
848 void postSamplingStatusEvent(uint32_t instanceId, uint32_t sensorHandle, in postSamplingStatusEvent() argument
856 event->sensorHandle = sensorHandle; in postSamplingStatusEvent()
894 uint32_t sensorHandle = getSensorHandleFromSensorType( in updateSamplingStatus() local
901 postSamplingStatusEvent(req.getInstanceId(), sensorHandle, status); in updateSamplingStatus()
/system/chre/apps/sensor_world/
Dsensor_world.cc418 ev->sensorHandle, ev->status.interval, ev->status.latency, in nanoappHandleEvent()