Home
last modified time | relevance | path

Searched refs:sensorHandle (Results 1 – 25 of 41) 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.cc66 sensorData->header.sensorHandle); in updateLastEvent()
94 void postSamplingStatusEvent(uint16_t instanceId, uint32_t sensorHandle, in postSamplingStatusEvent() argument
100 event->sensorHandle = sensorHandle; in postSamplingStatusEvent()
115 void postSamplingStatus(uint32_t sensorHandle, in postSamplingStatus() argument
120 sensorHandle); in postSamplingStatus()
122 postSamplingStatusEvent(req.getInstanceId(), sensorHandle, status); in postSamplingStatus()
146 uint32_t *sensorHandle) const { in getSensorHandle()
147 CHRE_ASSERT(sensorHandle); in getSensorHandle()
155 *sensorHandle = i; in getSensorHandle()
164 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 …]
/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 …]
/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 …]
/system/chre/chre_api/legacy/v1_6/chre/
Dsensor.h681 uint32_t sensorHandle; member
703 uint32_t sensorHandle; member
781 bool chreGetSensorInfo(uint32_t sensorHandle, struct chreSensorInfo *info);
806 bool chreGetSensorSamplingStatus(uint32_t sensorHandle,
911 bool chreSensorConfigure(uint32_t sensorHandle,
922 uint32_t sensorHandle, enum chreSensorConfigureMode mode) { in chreSensorConfigureModeOnly() argument
923 return chreSensorConfigure(sensorHandle, in chreSensorConfigureModeOnly()
964 uint32_t sensorHandle, enum chreSensorConfigureMode mode, in chreSensorConfigureWithBatchInterval() argument
977 result = chreSensorConfigure(sensorHandle, mode, sampleInterval, in chreSensorConfigureWithBatchInterval()
1039 bool chreSensorConfigureBiasEvents(uint32_t sensorHandle, bool enable);
[all …]
/system/chre/chre_api/legacy/v1_7/chre/
Dsensor.h681 uint32_t sensorHandle; member
703 uint32_t sensorHandle; member
781 bool chreGetSensorInfo(uint32_t sensorHandle, struct chreSensorInfo *info);
806 bool chreGetSensorSamplingStatus(uint32_t sensorHandle,
911 bool chreSensorConfigure(uint32_t sensorHandle,
922 uint32_t sensorHandle, enum chreSensorConfigureMode mode) { in chreSensorConfigureModeOnly() argument
923 return chreSensorConfigure(sensorHandle, in chreSensorConfigureModeOnly()
964 uint32_t sensorHandle, enum chreSensorConfigureMode mode, in chreSensorConfigureWithBatchInterval() argument
977 result = chreSensorConfigure(sensorHandle, mode, sampleInterval, in chreSensorConfigureWithBatchInterval()
1039 bool chreSensorConfigureBiasEvents(uint32_t sensorHandle, bool enable);
[all …]
/system/chre/chre_api/include/chre_api/chre/
Dsensor.h684 uint32_t sensorHandle; member
706 uint32_t sensorHandle; member
784 bool chreGetSensorInfo(uint32_t sensorHandle, struct chreSensorInfo *info);
814 bool chreGetSensorSamplingStatus(uint32_t sensorHandle,
919 bool chreSensorConfigure(uint32_t sensorHandle,
930 uint32_t sensorHandle, enum chreSensorConfigureMode mode) { in chreSensorConfigureModeOnly() argument
931 return chreSensorConfigure(sensorHandle, in chreSensorConfigureModeOnly()
972 uint32_t sensorHandle, enum chreSensorConfigureMode mode, in chreSensorConfigureWithBatchInterval() argument
985 result = chreSensorConfigure(sensorHandle, mode, sampleInterval, in chreSensorConfigureWithBatchInterval()
1047 bool chreSensorConfigureBiasEvents(uint32_t sensorHandle, bool enable);
[all …]
/system/chre/chre_api/legacy/v1_5/chre/
Dsensor.h681 uint32_t sensorHandle; member
703 uint32_t sensorHandle; member
781 bool chreGetSensorInfo(uint32_t sensorHandle, struct chreSensorInfo *info);
806 bool chreGetSensorSamplingStatus(uint32_t sensorHandle,
911 bool chreSensorConfigure(uint32_t sensorHandle,
922 uint32_t sensorHandle, enum chreSensorConfigureMode mode) { in chreSensorConfigureModeOnly() argument
923 return chreSensorConfigure(sensorHandle, in chreSensorConfigureModeOnly()
964 uint32_t sensorHandle, enum chreSensorConfigureMode mode, in chreSensorConfigureWithBatchInterval() argument
977 result = chreSensorConfigure(sensorHandle, mode, sampleInterval, in chreSensorConfigureWithBatchInterval()
1039 bool chreSensorConfigureBiasEvents(uint32_t sensorHandle, bool enable);
[all …]
/system/chre/test/simulation/
Dsensor_test.cc42 uint32_t sensorHandle; in TEST_F() member
66 config->sensorHandle, config->mode, config->interval, 0); in TEST_F()
81 Configuration config{.sensorHandle = 0, in TEST_F()
89 EXPECT_EQ(event.sensorHandle, config.sensorHandle); in TEST_F()
94 config = {.sensorHandle = 0, in TEST_F()
107 uint32_t sensorHandle; in TEST_F() member
131 config->sensorHandle, config->mode, config->interval, 0); in TEST_F()
144 Configuration config{.sensorHandle = 0, in TEST_F()
153 EXPECT_EQ(event.sensorHandle, config.sensorHandle); in TEST_F()
/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()
/system/chre/platform/shared/sensor_pal/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.h33 uint32_t sensorHandle) { in initBase() argument
35 mSensorHandle = sensorHandle; in initBase()
53 void setSensorHandle(uint32_t sensorHandle) { in setSensorHandle() argument
54 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/shared/sensor_pal/
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/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/java/test/chqts/src/com/google/android/chre/test/chqts/
DContextHubNanoAppRequirementsTestExecutor.java160 public void getSensorInfoAndVerifyInterval(int sensorHandle, long expectedInterval) in getSensorInfoAndVerifyInterval() argument
164 .setHandle(sensorHandle).build(); in getSensorInfoAndVerifyInterval()
168 Assert.assertTrue("Failed to get sensor info for sensor with handle: " + sensorHandle, in getSensorInfoAndVerifyInterval()
170 Assert.assertTrue("The sensor with handle: " + sensorHandle in getSensorInfoAndVerifyInterval()
/system/chre/apps/test/chqts/src/general_test/
Dbasic_sensor_test_base.cc330 uint32_t sensorHandle; in finishTest() local
333 chreSensorFind(getSensorType(), mCurrentSensorIndex, &sensorHandle)) { in finishTest()
349 if (header->sensorHandle != mSensorHandle) { in verifyEventHeader()
351 &header->sensorHandle); in verifyEventHeader()
448 (mPrevSensorHandle.value() == eventData->sensorHandle)) { in handleSamplingChangeEvent()
454 if (eventData->sensorHandle != mSensorHandle) { in handleSamplingChangeEvent()
456 &eventData->sensorHandle); in handleSamplingChangeEvent()
/system/chre/apps/sensor_world/
Dsensor_world.cc281 const char *getSensorName(uint32_t sensorHandle) { in getSensorName() argument
283 if (sensors[i].handle == sensorHandle) { in getSensorName()
356 getSensorName(header.sensorHandle), header.readingCount, in handleThreeAxisEvent()
381 getSensorName(header.sensorHandle), header.readingCount, in handleFloatEvent()
393 getSensorName(header.sensorHandle), header.readingCount, reading.isNear, in handleProximityEvent()
518 CLOGI("%s, %d samples, accuracy: %u", getSensorName(header.sensorHandle), in nanoappHandleEvent()
529 getSensorName(header.sensorHandle), header.readingCount, reading); in nanoappHandleEvent()
539 ev->sensorHandle, ev->status.interval, ev->status.latency, in nanoappHandleEvent()
558 ev->sensorHandle, ev->errorCode); in nanoappHandleEvent()
/system/chre/platform/slpi/qsh/
Dqsh_proto_shim.cc136 DLL_EXPORT extern "C" bool chreSensorFlushAsync(uint32_t sensorHandle, in chreSensorFlushAsync() argument
139 ? chre::gFlushFuncPtr(sensorHandle, cookie) in chreSensorFlushAsync()
/system/chre/apps/power_test/common/
Drequest_manager.cc245 uint32_t sensorHandle; in requestSensor() local
246 bool success = chreSensorFindDefault(sensorType, &sensorHandle); in requestSensor()
251 chreSensorConfigure(sensorHandle, getModeForSensorType(sensorType), in requestSensor()
254 success = chreSensorConfigureModeOnly(sensorHandle, in requestSensor()
267 uint32_t sensorHandle; in requestAllSensors() local
270 success &= chreSensorFindDefault(kAllSensorTypes[i], &sensorHandle) && in requestAllSensors()
271 chreGetSensorInfo(sensorHandle, &sensorInfo) && in requestAllSensors()
/system/chre/apps/test/common/chre_api_test/rpc/
Dchre_api_test.proto130 uint32 sensorHandle = 1; field
150 uint32 sensorHandle = 2; field
202 // Return value for ChreSensorFindDefault. sensorHandle is only valid if
206 uint32 sensorHandle = 2; field
233 uint32 sensorHandle = 1; field
241 uint32 sensorHandle = 1; field
/system/chre/platform/shared/nanoapp/
Dnanoapp_support_lib_dso.cc411 bool chreSensorConfigureBiasEvents(uint32_t sensorHandle, bool enable) { in chreSensorConfigureBiasEvents() argument
413 return (fptr != nullptr) ? fptr(sensorHandle, enable) : false; in chreSensorConfigureBiasEvents()
417 bool chreSensorGetThreeAxisBias(uint32_t sensorHandle, in chreSensorGetThreeAxisBias() argument
420 return (fptr != nullptr) ? fptr(sensorHandle, bias) : false; in chreSensorGetThreeAxisBias()
424 bool chreSensorFlushAsync(uint32_t sensorHandle, const void *cookie) { in chreSensorFlushAsync() argument
426 return (fptr != nullptr) ? fptr(sensorHandle, cookie) : false; in chreSensorFlushAsync()
/system/chre/apps/test/chqts/src/busy_startup/
Dbusy_startup.cc114 if (header->sensorHandle != gSensorHandle) { in checkSensorEvent()
116 &header->sensorHandle); in checkSensorEvent()

12