/system/chre/util/nanoapp/ |
H A D | sensor.cc | 25 SensorType sensorType = getSensorTypeForSampleEventType(eventType); local 26 return getSensorTypeName(sensorType); 29 const char *getSensorTypeName(uint8_t sensorType) { argument 30 SensorType type = getSensorTypeFromUnsignedInt(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/platform/shared/include/chre/platform/shared/ |
H A D | platform_sensor_util.h | 28 * @param sensorType The SensorType of the sensor. 31 void updateLastEvent(SensorType sensorType, const void *eventData);
|
/system/chre/platform/shared/ |
H A D | platform_sensor_util.cc | 28 void updateLastEvent(SensorType sensorType, const void *eventData) { argument 35 header->readingCount, static_cast<uint8_t>(sensorType)); 38 SensorType sensorType; member in struct:chre::CallbackData 45 callbackData->sensorType = sensorType; 52 ->getSensorRequestManager().getSensor(cbData->sensorType);
|
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/util/include/chre/util/nanoapp/ |
H A D | sensor.h | 35 * @param sensorType the type of a sensor. 38 const char *getSensorTypeName(uint8_t sensorType);
|
/system/chre/core/ |
H A D | sensor_type.cc | 27 const char *getSensorTypeName(SensorType sensorType) { argument 28 switch (sensorType) { 71 uint16_t getSampleEventTypeForSensorType(SensorType sensorType) { argument 74 uint8_t sensorTypeValue = getUnsignedIntFromSensorType(sensorType); 83 SensorType getSensorTypeFromUnsignedInt(uint8_t sensorType) { argument 84 switch (sensorType) { 124 uint8_t getUnsignedIntFromSensorType(SensorType sensorType) { argument 125 switch (sensorType) { 168 SensorType getTempSensorType(SensorType sensorType) { argument 169 switch (sensorType) { 184 getSensorSampleTypeFromSensorType(SensorType sensorType) argument 237 sensorTypeIsOneShot(SensorType sensorType) argument 246 sensorTypeIsOnChange(SensorType sensorType) argument 255 sensorTypeIsContinuous(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); 70 if (sensorType == SensorType::Unknown) { 73 LOGE("Invalid sensor minInterval: %s", getSensorTypeName(sensorType)); 76 LOGD("Found sensor: %s", getSensorTypeName(sensorType)); 92 bool SensorRequestManager::getSensorHandle(SensorType sensorType, argument 97 if (sensorType 115 SensorType sensorType = getSensorTypeFromSensorHandle(sensorHandle); local 195 SensorType sensorType = getSensorTypeFromSensorHandle(sensorHandle); local 228 removeAllRequests(SensorType sensorType) argument 247 getSensor(SensorType sensorType) argument 267 SensorType sensorType = getSensorTypeFromSensorHandle(sensorHandle); local [all...] |
/system/chre/core/include/chre/core/ |
H A D | sensor_type.h | 94 * @param sensorType The sensor type to obtain a string for. 97 const char *getSensorTypeName(SensorType sensorType); 103 * @param sensorType The type of the sensor. 106 uint16_t getSampleEventTypeForSensorType(SensorType sensorType); 122 constexpr size_t getSensorTypeArrayIndex(SensorType sensorType) { argument 123 return static_cast<size_t>(sensorType) - 1; 139 * @param sensorType The integer sensor type. 142 SensorType getSensorTypeFromUnsignedInt(uint8_t sensorType); 148 * @param sensorType The strongly-typed sensor. 149 * @return The integer sensor type if sensorType i 162 getSensorHandleFromSensorType(SensorType sensorType) argument [all...] |
H A D | sensor_request_manager.h | 47 * @param sensorType The type of the sensor. 52 bool getSensorHandle(SensorType sensorType, uint32_t *sensorHandle) const; 81 * Removes all requests of a sensorType and unregisters all nanoapps for its 84 * @param sensorType The sensor type whose requests are to be removed. 88 bool removeAllRequests(SensorType sensorType); 91 * Obtains a pointer to the Sensor of the specified sensorType. 93 * @param sensorType The SensorType of the sensor. 94 * @return A pointer to the Sensor of sensorType, or nullptr if sensorType is 98 Sensor *getSensor(SensorType sensorType); [all...] |
/system/chre/platform/slpi/see/ |
H A D | platform_sensor.cc | 56 SensorType sensorType, UniquePtr<uint8_t>&& eventData) override; 85 SensorType sensorType; local 88 sensorType = SensorType::Accelerometer; 90 sensorType = SensorType::UncalibratedAccelerometer; 94 sensorType = SensorType::Gyroscope; 96 sensorType = SensorType::UncalibratedGyroscope; 100 sensorType = SensorType::GeomagneticField; 102 sensorType = SensorType::UncalibratedGeomagneticField; 105 sensorType = SensorType::Pressure; 107 sensorType 129 SensorType sensorType = getSensorTypeForSampleEventType(eventType); local 215 onSensorDataEvent( SensorType sensorType, UniquePtr<uint8_t>&& eventData) argument 244 allocateLastEvent(SensorType sensorType, size_t *eventSize) argument 288 addSensor(SensorType sensorType, const sns_std_suid& suid, const SeeAttributes& attr, DynamicVector<Sensor> *sensors) argument 328 isStreamTypeCorrect(SensorType sensorType, uint8_t streamType) argument 431 SensorType sensorType = getSensorTypeFromDataType( local 576 initBase( SensorType sensorType,uint64_t minInterval, const char *sensorName, ChreSensorData *lastEvent, size_t lastEventSize, bool passiveSupported) argument [all...] |
H A D | see_helper.cc | 97 SensorType sensorType; member in struct:chre::__anon1490::SeeDataArg 128 size_t getCalIndexFromSensorType(SensorType sensorType) { argument 130 switch (sensorType) { 147 SensorType sensorType = SensorType::Unknown; local 149 sensorType = SensorType::Accelerometer; 151 sensorType = SensorType::Gyroscope; 153 sensorType = SensorType::GeomagneticField; 155 return getCalIndexFromSensorType(sensorType); 747 data->sensorType); 823 " curr %" PRIu64, static_cast<uint8_t>(data->sensorType), 1212 allocateEvent(SensorType sensorType, size_t numSamples) argument 1676 registerSensor( SensorType sensorType, const sns_std_suid& suid, bool *prevRegistered) argument [all...] |
/system/chre/ash/platform/slpi/smgr/ |
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/ash/include/ash_api/ |
H A D | ash.h | 160 * @param sensorType One of the CHRE_SENSOR_TYPE_* constants. 165 bool ashSetCalibration(uint8_t sensorType, const struct ashCalInfo *calInfo); 178 * @param sensorType One of the CHRE_SENSOR_TYPE_* constants. 186 bool ashLoadCalibrationParams(uint8_t sensorType, uint8_t storage, 195 * @param sensorType One of the CHRE_SENSOR_TYPE_* constants. 202 bool ashSaveCalibrationParams(uint8_t sensorType,
|
/system/chre/platform/slpi/smgr/ |
H A D | platform_sensor.cc | 211 * @return Returns the sensorType that corresponds to the reportId. 214 SensorType sensorType; local 216 sensorType = static_cast<SensorType>(reportId); 218 sensorType = SensorType::Unknown; 220 return sensorType; 234 SensorType sensorType = getSensorTypeFromSensorId( local 237 CHRE_ASSERT_LOG(sensorType != SensorType::Unknown, 240 return static_cast<uint8_t>(sensorType); 250 SensorType sensorType = getSensorTypeFromReportId(reportId); local 251 return (sensorType 277 allocateLastEvent(SensorType sensorType, size_t *eventSize) argument 331 SensorType sensorType = getSensorTypeFromSensorId( local 360 populateSensorDataHeader( SensorType sensorType, chreSensorDataHeader *header, const sns_smgr_buffering_sample_index_s_v01& sensorIndex) argument 376 populateThreeAxisEvent( const sns_smgr_buffering_ind_msg_v01& bufferingIndMsg, SensorType sensorType, chreSensorThreeAxisData *data, const sns_smgr_buffering_sample_index_s_v01& sensorIndex) argument 405 populateFloatEvent( const sns_smgr_buffering_ind_msg_v01& bufferingIndMsg, SensorType sensorType, chreSensorFloatData *data, const sns_smgr_buffering_sample_index_s_v01& sensorIndex) argument 422 populateByteEvent( const sns_smgr_buffering_ind_msg_v01& bufferingIndMsg, SensorType sensorType, chreSensorByteData *data, const sns_smgr_buffering_sample_index_s_v01& sensorIndex) argument 442 populateOccurrenceEvent( const sns_smgr_buffering_ind_msg_v01& bufferingIndMsg, SensorType sensorType, chreSensorOccurrenceData *data, const sns_smgr_buffering_sample_index_s_v01& sensorIndex) argument 461 allocateAndPopulateEvent( const sns_smgr_buffering_ind_msg_v01& bufferingIndMsg, SensorType sensorType, const sns_smgr_buffering_sample_index_s_v01& sensorIndex) argument 534 SensorType sensorType = getSensorTypeForSampleEventType(eventType); local 569 SensorType sensorType = getSensorTypeFromReportId( local 665 SensorType sensorType = getSensorTypeFromSensorId(sensorId, local 686 getMergedMode(uint8_t sensorId, SensorType sensorType, const SensorRequest& request) argument 1005 SensorType sensorType = getSensorTypeFromSensorId( local 1145 isRequestAllowed(SensorType sensorType, const SensorRequest& request) argument 1220 makeRequest(SensorType sensorType, const SensorRequest& request) argument [all...] |
/system/chre/platform/slpi/include/chre/platform/slpi/see/ |
H A D | see_helper.h | 46 SensorType sensorType; member in struct:chre::SeeHelperCallbackInterface::SamplingStatusData 61 //! specified by sensorType. 63 SensorType sensorType, UniquePtr<uint8_t>&& eventData) = 0; 95 SensorType sensorType; member in struct:chre::SeeSensorRequest 115 SensorType sensorType; member in struct:chre::SeeHelper::SensorInfo 202 * @param sensorType The SensorType to register. 209 bool registerSensor(SensorType sensorType, const sns_std_suid& suid, 216 * @param sensorType The SensorType to check. 220 bool sensorIsRegistered(SensorType sensorType) const; 231 * specified sensorType [all...] |
/system/chre/platform/slpi/see/include/chre/target_platform/ |
H A D | platform_sensor_base.h | 36 SensorType sensorType, uint64_t mMinInterval, const char *sensorName,
|
/system/chre/chre_api/include/chre_api/chre/ |
H A D | sensor.h | 393 uint8_t sensorType; member in struct:chreSensorInfo 493 * @param sensorType One of the CHRE_SENSOR_TYPE_* constants. 498 bool chreSensorFindDefault(uint8_t sensorType, uint32_t *handle);
|
/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/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/chre_api/legacy/v1_1/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/apps/chqts/src/general_test/ |
H A D | basic_sensor_test_base.cc | 161 if (info.sensorType != getSensorType()) { 162 uint32_t type = info.sensorType; 163 sendFatalFailureToHost("chreSensorInfo::sensorType is not expected "
|
H A D | heap_exhaustion_stability_test.cc | 180 if (info.sensorType != kSensorType) {
|
/system/chre/apps/sensor_world/ |
H A D | sensor_world.cc | 272 info.sensorName, info.sensorType, info.isOnChange,
|