Home
last modified time | relevance | path

Searched refs:sensorRequest (Results 1 – 4 of 4) sorted by relevance

/system/chre/core/
Dsensor_request_manager.cc28 const SensorRequest& sensorRequest) { in isSensorRequestValid() argument
30 sensorRequest.getMode()); in isSensorRequestValid()
31 bool isRequestOneShot = sensorModeIsOneShot(sensorRequest.getMode()); in isSensorRequestValid()
32 uint64_t requestedInterval = sensorRequest.getInterval().toRawNanoseconds(); in isSensorRequestValid()
111 uint32_t sensorHandle, const SensorRequest& sensorRequest) { in setSensorRequest() argument
130 if (!isSensorRequestValid(sensor, sensorRequest)) { in setSensorRequest()
140 if (sensorRequest.getMode() == SensorMode::Off) { in setSensorRequest()
161 success = requests.add(sensorRequest, &requestChanged); in setSensorRequest()
177 success = requests.update(requestIndex, sensorRequest, &requestChanged); in setSensorRequest()
322 const SensorRequest& sensorRequest = requests[i]; in find() local
[all …]
/system/chre/platform/slpi/smgr/
Dplatform_sensor.cc1075 sns_smgr_buffering_req_msg_v01 *sensorRequest) { in populateSensorRequest() argument
1078 memset(sensorRequest, 0, sizeof(*sensorRequest)); in populateSensorRequest()
1097 sensorRequest->ReportId = getReportId(sensorId, dataType, calType); in populateSensorRequest()
1098 sensorRequest->Action = getSmgrRequestActionForMode(request.getMode()); in populateSensorRequest()
1106 sensorRequest->ReportRate = intervalToSmgrQ16ReportRate(batchInterval); in populateSensorRequest()
1107 sensorRequest->Item_len = 1; // One sensor per request if possible. in populateSensorRequest()
1108 sensorRequest->Item[0].SensorId = sensorId; in populateSensorRequest()
1109 sensorRequest->Item[0].DataType = dataType; in populateSensorRequest()
1110 sensorRequest->Item[0].Decimation = getDecimationType(sensorId, dataType); in populateSensorRequest()
1111 sensorRequest->Item[0].Calibration = calType; in populateSensorRequest()
[all …]
/system/chre/platform/shared/
Dchre_api_sensor.cc71 SensorRequest sensorRequest(nanoapp, sensorMode, Nanoseconds(interval), in chreSensorConfigure() local
74 .setSensorRequest(nanoapp, sensorHandle, sensorRequest); in chreSensorConfigure()
/system/chre/core/include/chre/core/
Dsensor_request_manager.h68 const SensorRequest& sensorRequest);