/system/chre/util/nanoapp/ |
H A D | sensor.cc | 25 SensorType sensorType = getSensorTypeForSampleEventType(eventType); local 26 return getSensorTypeName(sensorType);
|
/system/chre/ash/platform/linux/ |
H A D | ash.cc | 19 bool ashSetCalibration(uint8_t sensorType, const struct ashCalInfo *calInfo) { argument 24 bool ashLoadCalibrationParams(uint8_t sensorType, uint8_t storage, argument 30 bool ashSaveCalibrationParams(uint8_t sensorType, argument
|
/system/chre/core/tests/ |
H A D | sensor_request_test.cc | 31 SensorType sensorType = SensorType::Pressure; local 32 uint32_t sensorHandle = getSensorHandleFromSensorType(sensorType); 33 sensorType = chre::getSensorTypeFromSensorHandle(sensorHandle); 34 EXPECT_EQ(sensorType, SensorType::Pressure); 36 sensorType = SensorType::Proximity; 37 sensorHandle = getSensorHandleFromSensorType(sensorType); 38 sensorType = chre::getSensorTypeFromSensorHandle(sensorHandle); 39 EXPECT_EQ(sensorType, SensorType::Proximity);
|
/system/chre/ash/platform/slpi/ |
H A D | ash.cc | 48 * @param sensorType One of the CHRE_SENSOR_TYPE_* constants. 51 bool isCalibrationSupported(uint8_t sensorType) { argument 52 switch (sensorType) { 63 * @param sensorType One of the CHRE_SENSOR_TYPE_* constants. 66 uint8_t getSensorId(uint8_t sensorType) { argument 67 switch (sensorType) { 82 * @param sensorType One of the CHRE_SENSOR_TYPE_* constants. 86 void populateCalRequest(uint8_t sensorType, const ashCalInfo *calInfo, argument 92 calRequest->SensorId = getSensorId(sensorType); 97 if (sensorType 133 ashSetCalibration(uint8_t sensorType, const struct ashCalInfo *calInfo) argument [all...] |
/system/chre/core/include/chre/core/ |
H A D | sensor_request_impl.h | 44 constexpr size_t getSensorTypeArrayIndex(SensorType sensorType) { argument 45 return static_cast<size_t>(sensorType) - 1; 53 constexpr uint32_t getSensorHandleFromSensorType(SensorType sensorType) { argument 54 return static_cast<uint32_t>(sensorType);
|
/system/chre/platform/shared/ |
H A D | chre_api_sensor.cc | 33 DLL_EXPORT bool chreSensorFindDefault(uint8_t sensorType, uint32_t *handle) { argument 34 SensorType validatedSensorType = getSensorTypeFromUnsignedInt(sensorType);
|
/system/chre/core/ |
H A D | sensor_request.cc | 40 const char *getSensorTypeName(SensorType sensorType) { argument 41 switch (sensorType) { 76 uint16_t getSampleEventTypeForSensorType(SensorType sensorType) { argument 77 if (sensorType == SensorType::Unknown) { 84 uint8_t sensorTypeValue = getUnsignedIntFromSensorType(sensorType); 93 SensorType getSensorTypeFromUnsignedInt(uint8_t sensorType) { argument 94 switch (sensorType) { 126 uint8_t getUnsignedIntFromSensorType(SensorType sensorType) { argument 127 switch (sensorType) { 162 SensorSampleType getSensorSampleTypeFromSensorType(SensorType sensorType) { argument 205 sensorTypeIsOneShot(SensorType sensorType) argument 210 sensorTypeIsOnChange(SensorType sensorType) argument [all...] |
H A D | sensor_request_manager.cc | 33 SensorType sensorType = sensor.getSensorType(); local 41 if (sensorTypeIsOneShot(sensorType)) { 46 if (!sensorTypeIsOneShot(sensorType)) { 67 SensorType sensorType = sensors[i].getSensorType(); local 68 size_t sensorIndex = getSensorTypeArrayIndex(sensorType); 69 LOGD("Found sensor: %s", getSensorTypeName(sensorType)); 86 bool SensorRequestManager::getSensorHandle(SensorType sensorType, argument 91 if (sensorType == SensorType::Unknown) { 94 size_t sensorIndex = getSensorTypeArrayIndex(sensorType); 97 *sensorHandle = getSensorHandleFromSensorType(sensorType); 109 SensorType sensorType = getSensorTypeFromSensorHandle(sensorHandle); local 189 SensorType sensorType = getSensorTypeFromSensorHandle(sensorHandle); local 222 removeAllRequests(SensorType sensorType) argument 241 getSensor(SensorType sensorType) argument 261 SensorType sensorType = getSensorTypeFromSensorHandle(sensorHandle); local [all...] |
/system/chre/chre_api/legacy/v1_0/chre/ |
H A D | sensor.h | 413 uint8_t sensorType; member in struct:chreSensorInfo 659 * @param sensorType One of the CHRE_SENSOR_TYPE_* constants. 664 bool chreSensorFindDefault(uint8_t sensorType, uint32_t *handle);
|
/system/chre/chre_api/include/chre_api/chre/ |
H A D | sensor.h | 535 uint8_t sensorType; member in struct:chreSensorInfo 805 * @param sensorType One of the CHRE_SENSOR_TYPE_* constants. 810 bool chreSensorFindDefault(uint8_t sensorType, uint32_t *handle);
|
/system/chre/platform/slpi/ |
H A D | platform_sensor.cc | 201 * @return Returns the sensorType that corresponds to the reportId. 204 SensorType sensorType; local 206 sensorType = static_cast<SensorType>(reportId); 208 sensorType = SensorType::Unknown; 210 return sensorType; 224 SensorType sensorType = getSensorTypeFromSensorId( local 227 CHRE_ASSERT_LOG(sensorType != SensorType::Unknown, 230 return static_cast<uint8_t>(sensorType); 240 SensorType sensorType = getSensorTypeFromReportId(reportId); local 241 return (sensorType 267 allocateLastEvent(SensorType sensorType, size_t *eventSize) argument 321 SensorType sensorType = getSensorTypeFromSensorId( local 350 populateSensorDataHeader( SensorType sensorType, chreSensorDataHeader *header, const sns_smgr_buffering_sample_index_s_v01& sensorIndex) argument 366 populateThreeAxisEvent( const sns_smgr_buffering_ind_msg_v01& bufferingIndMsg, SensorType sensorType, chreSensorThreeAxisData *data, const sns_smgr_buffering_sample_index_s_v01& sensorIndex) argument 395 populateFloatEvent( const sns_smgr_buffering_ind_msg_v01& bufferingIndMsg, SensorType sensorType, chreSensorFloatData *data, const sns_smgr_buffering_sample_index_s_v01& sensorIndex) argument 412 populateByteEvent( const sns_smgr_buffering_ind_msg_v01& bufferingIndMsg, SensorType sensorType, chreSensorByteData *data, const sns_smgr_buffering_sample_index_s_v01& sensorIndex) argument 432 populateOccurrenceEvent( const sns_smgr_buffering_ind_msg_v01& bufferingIndMsg, SensorType sensorType, chreSensorOccurrenceData *data, const sns_smgr_buffering_sample_index_s_v01& sensorIndex) argument 451 allocateAndPopulateEvent( const sns_smgr_buffering_ind_msg_v01& bufferingIndMsg, SensorType sensorType, const sns_smgr_buffering_sample_index_s_v01& sensorIndex) argument 517 SensorType sensorType = getSensorTypeForSampleEventType(eventType); local 531 updateLastEvent(SensorType sensorType, const void *eventData) argument 542 SensorType sensorType; member in struct:chre::__anon1388::CallbackData 606 SensorType sensorType = getSensorTypeFromReportId( local 698 SensorType sensorType = getSensorTypeFromSensorId(sensorId, local 719 getMergedMode(uint8_t sensorId, SensorType sensorType, const SensorRequest& request) argument 1043 SensorType sensorType = getSensorTypeFromSensorId( local 1183 isRequestAllowed(SensorType sensorType, const SensorRequest& request) argument 1258 makeRequest(SensorType sensorType, const SensorRequest& request) argument [all...] |