Home
last modified time | relevance | path

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

12

/system/chre/core/include/chre/core/
Dsensor_request_manager.h67 uint16_t targetGroupId, uint32_t *sensorHandle) const;
75 uint32_t *sensorHandle) const { in getSensorHandleForNanoapp() argument
78 sensorHandle); in getSensorHandleForNanoapp()
88 uint32_t *sensorHandle) const { in getDefaultSensorHandle() argument
90 0 /* targetGroupId */, sensorHandle); in getDefaultSensorHandle()
106 bool setSensorRequest(Nanoapp *nanoapp, uint32_t sensorHandle,
117 bool getSensorInfo(uint32_t sensorHandle, const Nanoapp &nanoapp,
127 bool removeAllRequests(uint32_t sensorHandle);
139 Sensor *getSensor(uint32_t sensorHandle);
148 bool getSensorSamplingStatus(uint32_t sensorHandle,
[all …]
/system/chre/core/
Dsensor_request_manager.cc64 sensorData->header.sensorHandle); in updateLastEvent()
92 void postSamplingStatusEvent(uint32_t instanceId, uint32_t sensorHandle, in postSamplingStatusEvent() argument
98 event->sensorHandle = sensorHandle; in postSamplingStatusEvent()
113 void postSamplingStatus(uint32_t sensorHandle, in postSamplingStatus() argument
118 sensorHandle); in postSamplingStatus()
120 postSamplingStatusEvent(req.getInstanceId(), sensorHandle, status); in postSamplingStatus()
144 uint32_t *sensorHandle) const { in getSensorHandle()
145 CHRE_ASSERT(sensorHandle); in getSensorHandle()
153 *sensorHandle = i; in getSensorHandle()
162 Nanoapp *nanoapp, uint32_t sensorHandle, in setSensorRequest() argument
[all …]
/system/chre/platform/shared/
Dchre_api_sensor.cc51 DLL_EXPORT bool chreGetSensorInfo(uint32_t sensorHandle, in chreGetSensorInfo() argument
62 .getSensorInfo(sensorHandle, *nanoapp, info); in chreGetSensorInfo()
66 UNUSED_VAR(sensorHandle); in chreGetSensorInfo()
73 uint32_t sensorHandle, struct chreSensorSamplingStatus *status) { in chreGetSensorSamplingStatus() argument
81 .getSensorSamplingStatus(sensorHandle, status); in chreGetSensorSamplingStatus()
85 UNUSED_VAR(sensorHandle); in chreGetSensorSamplingStatus()
91 DLL_EXPORT bool chreSensorConfigure(uint32_t sensorHandle, in chreSensorConfigure() argument
101 .setSensorRequest(nanoapp, sensorHandle, sensorRequest); in chreSensorConfigure()
103 UNUSED_VAR(sensorHandle); in chreSensorConfigure()
111 DLL_EXPORT bool chreSensorConfigureBiasEvents(uint32_t sensorHandle, in chreSensorConfigureBiasEvents() argument
[all …]
Dplatform_sensor_manager.cc126 uint32_t sensorHandle, struct chreSensorSamplingStatus *status) { in samplingStatusUpdateCallback() argument
129 .handleSamplingStatusUpdate(sensorHandle, status); in samplingStatusUpdateCallback()
132 void PlatformSensorManagerBase::dataEventCallback(uint32_t sensorHandle, in dataEventCallback() argument
136 .handleSensorDataEvent(sensorHandle, data); in dataEventCallback()
139 void PlatformSensorManagerBase::biasEventCallback(uint32_t sensorHandle, in biasEventCallback() argument
142 sensorHandle, biasData); in biasEventCallback()
145 void PlatformSensorManagerBase::flushCompleteCallback(uint32_t sensorHandle, in flushCompleteCallback() argument
150 .handleFlushCompleteEvent(sensorHandle, flushRequestId, errorCode); in flushCompleteCallback()
/system/chre/chre_api/legacy/v1_4/chre/
Dsensor.h626 uint32_t sensorHandle; member
648 uint32_t sensorHandle; member
688 bool chreGetSensorInfo(uint32_t sensorHandle, struct chreSensorInfo *info);
713 bool chreGetSensorSamplingStatus(uint32_t sensorHandle,
818 bool chreSensorConfigure(uint32_t sensorHandle,
829 uint32_t sensorHandle, enum chreSensorConfigureMode mode) { in chreSensorConfigureModeOnly() argument
830 return chreSensorConfigure(sensorHandle, in chreSensorConfigureModeOnly()
871 uint32_t sensorHandle, enum chreSensorConfigureMode mode, in chreSensorConfigureWithBatchInterval() argument
884 result = chreSensorConfigure(sensorHandle, mode, sampleInterval, in chreSensorConfigureWithBatchInterval()
946 bool chreSensorConfigureBiasEvents(uint32_t sensorHandle, bool enable);
[all …]
Dsensor_types.h290 uint32_t sensorHandle; member
/system/chre/chre_api/legacy/v1_3/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/chre_api/include/chre_api/chre/
Dsensor.h681 uint32_t sensorHandle; member
703 uint32_t sensorHandle; member
775 bool chreGetSensorInfo(uint32_t sensorHandle, struct chreSensorInfo *info);
800 bool chreGetSensorSamplingStatus(uint32_t sensorHandle,
905 bool chreSensorConfigure(uint32_t sensorHandle,
916 uint32_t sensorHandle, enum chreSensorConfigureMode mode) { in chreSensorConfigureModeOnly() argument
917 return chreSensorConfigure(sensorHandle, in chreSensorConfigureModeOnly()
958 uint32_t sensorHandle, enum chreSensorConfigureMode mode, in chreSensorConfigureWithBatchInterval() argument
971 result = chreSensorConfigure(sensorHandle, mode, sampleInterval, in chreSensorConfigureWithBatchInterval()
1033 bool chreSensorConfigureBiasEvents(uint32_t sensorHandle, bool enable);
[all …]
Dsensor_types.h321 uint32_t sensorHandle; member
/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/platform/linux/include/chre/target_platform/
Dplatform_sensor_manager_base.h42 uint32_t sensorHandle, struct chreSensorSamplingStatus *status);
43 static void dataEventCallback(uint32_t sensorHandle, void *data);
44 static void biasEventCallback(uint32_t sensorHandle, void *biasData);
45 static void flushCompleteCallback(uint32_t sensorHandle,
Dplatform_sensor_base.h32 void initBase(struct chreSensorInfo *sensorInfo, uint32_t sensorHandle) { in initBase() argument
34 mSensorHandle = sensorHandle; in initBase()
52 void setSensorHandle(uint32_t sensorHandle) { in setSensorHandle() argument
53 mSensorHandle = sensorHandle; in setSensorHandle()
/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/platform/slpi/see/
Dplatform_sensor_manager.cc243 uint32_t sensorHandle, in mergeUpdatedStatus() argument
246 Sensor *sensor = getSensorRequestManager().getSensor(sensorHandle); in mergeUpdatedStatus()
268 uint32_t sensorHandle; in postSensorBiasEvent() local
270 sensorType, 0 /* sensorIndex */, targetGroupMask, &sensorHandle)) { in postSensorBiasEvent()
276 event->header.sensorHandle = sensorHandle; in postSensorBiasEvent()
277 getSensorRequestManager().handleBiasEvent(sensorHandle, event); in postSensorBiasEvent()
546 Sensor *sensor, uint32_t sensorHandle, in findAndAddSensorsForType() argument
559 uint32_t sensorHandle = NestedDataPtr<uint32_t>(extraData); in findAndAddSensorsForType() local
566 mergeUpdatedStatus(sensorHandle, *samplingStatus, status); in findAndAddSensorsForType()
568 getSensorRequestManager().handleSamplingStatusUpdate(sensorHandle, in findAndAddSensorsForType()
[all …]
/system/chre/platform/shared/nanoapp/
Dnanoapp_support_lib_dso.cc272 bool chreSensorConfigureBiasEvents(uint32_t sensorHandle, bool enable) { in chreSensorConfigureBiasEvents() argument
274 return (fptr != nullptr) ? fptr(sensorHandle, enable) : false; in chreSensorConfigureBiasEvents()
278 bool chreSensorGetThreeAxisBias(uint32_t sensorHandle, in chreSensorGetThreeAxisBias() argument
281 return (fptr != nullptr) ? fptr(sensorHandle, bias) : false; in chreSensorGetThreeAxisBias()
285 bool chreSensorFlushAsync(uint32_t sensorHandle, const void *cookie) { in chreSensorFlushAsync() argument
287 return (fptr != nullptr) ? fptr(sensorHandle, cookie) : false; in chreSensorFlushAsync()
/system/chre/apps/test/chqts/src/general_test/
Dbasic_sensor_test_base.cc326 uint32_t sensorHandle; in finishTest() local
327 if (chreSensorFind(getSensorType(), mCurrentSensorIndex, &sensorHandle)) { in finishTest()
343 if (header->sensorHandle != mSensorHandle) { in verifyEventHeader()
345 &header->sensorHandle); in verifyEventHeader()
443 (mPrevSensorHandle.value() == eventData->sensorHandle)) { in handleSamplingChangeEvent()
449 if (eventData->sensorHandle != mSensorHandle) { in handleSamplingChangeEvent()
451 &eventData->sensorHandle); in handleSamplingChangeEvent()
/system/chre/apps/power_test/common/
Drequest_manager.cc217 uint32_t sensorHandle; in requestSensor() local
218 bool success = chreSensorFindDefault(sensorType, &sensorHandle); in requestSensor()
223 chreSensorConfigure(sensorHandle, getModeForSensorType(sensorType), in requestSensor()
226 success = chreSensorConfigureModeOnly(sensorHandle, in requestSensor()
239 uint32_t sensorHandle; in requestAllSensors() local
242 success &= chreSensorFindDefault(kAllSensorTypes[i], &sensorHandle) && in requestAllSensors()
243 chreGetSensorInfo(sensorHandle, &sensorInfo) && in requestAllSensors()
/system/chre/apps/sensor_world/
Dsensor_world.cc267 const char *getSensorName(uint32_t sensorHandle) { in getSensorName() argument
269 if (sensors[i].handle == sensorHandle) { in getSensorName()
388 getSensorName(header.sensorHandle), header.readingCount, x, y, z, in nanoappHandleEvent()
418 getSensorName(header.sensorHandle), header.readingCount, v, in nanoappHandleEvent()
431 getSensorName(header.sensorHandle), header.readingCount, in nanoappHandleEvent()
469 CLOGI("%s, %d samples, accuracy: %u", getSensorName(header.sensorHandle), in nanoappHandleEvent()
480 getSensorName(header.sensorHandle), header.readingCount, reading); in nanoappHandleEvent()
490 ev->sensorHandle, ev->status.interval, ev->status.latency, in nanoappHandleEvent()
/system/chre/platform/slpi/qsh/
Dqsh_shim.cc134 DLL_EXPORT extern "C" bool chreSensorFlushAsync(uint32_t sensorHandle, in chreSensorFlushAsync() argument
137 ? chre::gFlushFuncPtr(sensorHandle, cookie) in chreSensorFlushAsync()
/system/chre/apps/test/common/chre_cross_validator_sensor/inc/
Dchre_cross_validator_sensor_manager.h75 uint32_t sensorHandle; member
91 sensorHandle(sensorHandleIn), in CrossValidatorState()
/system/chre/apps/test/chqts/src/busy_startup/
Dbusy_startup.cc111 if (header->sensorHandle != gSensorHandle) { in checkSensorEvent()
113 &header->sensorHandle); in checkSensorEvent()
/system/chre/platform/slpi/see/include/chre/target_platform/
Dplatform_sensor_manager_base.h71 uint8_t sensorHandle,

12