/system/chre/util/nanoapp/ |
sensor.cc | 25 SensorType sensorType = getSensorTypeForSampleEventType(eventType); 26 return getSensorTypeName(sensorType); 29 const char *getSensorTypeName(uint8_t sensorType) { 30 SensorType type = getSensorTypeFromUnsignedInt(sensorType);
|
/system/chre/ash/platform/linux/ |
ash.cc | 19 bool ashSetCalibration(uint8_t sensorType, const struct ashCalInfo *calInfo) { 24 bool ashLoadCalibrationParams(uint8_t sensorType, uint8_t storage, 30 bool ashSaveCalibrationParams(uint8_t sensorType,
|
/cts/tests/sensor/src/android/hardware/cts/helpers/ |
SensorNotSupportedException.java | 25 public SensorNotSupportedException(int sensorType) { 26 super("Sensor '%s' of type %d is not supported.", getSensorName(sensorType), sensorType); 29 public SensorNotSupportedException(int sensorType, boolean wakeup) { 30 super("Sensor '%s' of type %d and %s is not supported.", getSensorName(sensorType), 31 sensorType, wakeup ? "wake-up" : "non wake-up"); 34 private static String getSensorName(int sensorType) { 35 return String.format("%s (%d)", getSimpleSensorName(sensorType), sensorType); 39 private static String getSimpleSensorName(int sensorType) { [all...] |
TestSensorEnvironment.java | 52 * @param sensorType The type of the sensor under test 58 public TestSensorEnvironment(Context context, int sensorType, int samplingPeriodUs) { 59 this(context, sensorType, false /* sensorMightHaveMoreListeners */, samplingPeriodUs); 66 * @param sensorType The type of the sensor under test 75 int sensorType, 79 sensorType, 89 * @param sensorType The type of the sensor under test 98 int sensorType, 102 sensorType, 112 * @param sensorType The type of the sensor under tes [all...] |
/system/chre/platform/shared/include/chre/platform/shared/ |
platform_sensor_util.h | 28 * @param sensorType The SensorType of the sensor. 31 void updateLastEvent(SensorType sensorType, const void *eventData);
|
/packages/services/Car/car-lib/src/android/car/hardware/ |
ICarSensor.aidl | 30 * @param sensorType sensor to listen with this callback. 34 boolean registerOrUpdateSensorListener(int sensorType, int rate, 41 CarSensorEvent getLatestSensorEvent(int sensorType) = 2; 47 void unregisterSensorListener(int sensorType, in ICarSensorEventListener callback) = 3; 52 CarSensorConfig getSensorConfig(int sensorType) = 4;
|
/system/chre/util/include/chre/util/nanoapp/ |
sensor.h | 35 * @param sensorType the type of a sensor. 38 const char *getSensorTypeName(uint8_t sensorType);
|
/system/chre/platform/shared/ |
platform_sensor_util.cc | 28 void updateLastEvent(SensorType sensorType, const void *eventData) { 35 header->readingCount, static_cast<uint8_t>(sensorType)); 38 SensorType sensorType; 45 callbackData->sensorType = sensorType; 52 ->getSensorRequestManager().getSensor(cbData->sensorType);
|
/system/chre/core/ |
sensor_type.cc | 27 const char *getSensorTypeName(SensorType sensorType) { 28 switch (sensorType) { 29 case SensorType::Unknown: 31 case SensorType::Accelerometer: 33 case SensorType::InstantMotion: 35 case SensorType::StationaryDetect: 37 case SensorType::Gyroscope: 39 case SensorType::GeomagneticField: 41 case SensorType::Pressure [all...] |
sensor_request_manager.cc | 33 SensorType sensorType = sensor.getSensorType(); 41 if (sensorTypeIsOneShot(sensorType)) { 46 if (!sensorTypeIsOneShot(sensorType)) { 67 SensorType sensorType = sensors[i].getSensorType(); 68 size_t sensorIndex = getSensorTypeArrayIndex(sensorType); 70 if (sensorType == SensorType::Unknown) { 73 LOGE("Invalid sensor minInterval: %s", getSensorTypeName(sensorType)); [all...] |
/cts/tests/sensor/src/android/hardware/cts/ |
SensorSupportTest.java | 104 private boolean sensorRequiredForVrHighPerformanceMode(int sensorType) { 105 if (sensorType == Sensor.TYPE_ACCELEROMETER || 106 sensorType == Sensor.TYPE_ACCELEROMETER_UNCALIBRATED || 107 sensorType == Sensor.TYPE_GYROSCOPE || 108 sensorType == Sensor.TYPE_GYROSCOPE_UNCALIBRATED || 109 sensorType == Sensor.TYPE_MAGNETIC_FIELD || 110 sensorType == Sensor.TYPE_MAGNETIC_FIELD_UNCALIBRATED) { 117 private void checkSupportsSensor(int sensorType) { 119 sensorRequiredForVrHighPerformanceMode(sensorType); 121 Sensor sensor = mSensorManager.getDefaultSensor(sensorType); [all...] |
/packages/services/Car/service/src/com/android/car/ |
CarSensorEventFactory.java | 27 public static CarSensorEvent createBooleanEvent(int sensorType, long timestamp, 29 CarSensorEvent event = new CarSensorEvent(sensorType, timestamp, 0, 1, 0); 34 public static CarSensorEvent createIntEvent(int sensorType, long timestamp, int value) { 35 CarSensorEvent event = new CarSensorEvent(sensorType, timestamp, 0, 1, 0); 42 * @param sensorType 48 public static CarSensorEvent createInt64VecEvent(int sensorType, long timestamp, 50 CarSensorEvent event = new CarSensorEvent(sensorType, timestamp, 0, 0, value.size()); 57 public static CarSensorEvent createFloatEvent(int sensorType, long timestamp, float value) { 58 CarSensorEvent event = new CarSensorEvent(sensorType, timestamp, 1, 0, 0); 63 public static CarSensorEvent createMixedEvent(int sensorType, long timestamp [all...] |
/system/chre/core/include/chre/core/ |
sensor_type.h | 35 * This SensorType is designed to wrap constants provided by the CHRE API 41 enum class SensorType { 77 * This SensorSampleType is designed to help classify SensorType's data type in 94 * @param sensorType The sensor type to obtain a string for. 97 const char *getSensorTypeName(SensorType sensorType); 101 * must not be SensorType::Unknown. This is a fatal error. 103 * @param sensorType The type of the sensor. 106 uint16_t getSampleEventTypeForSensorType(SensorType sensorType); [all...] |
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 [all...] |
/system/chre/platform/slpi/see/ |
platform_sensor.cc | 56 SensorType sensorType, UniquePtr<uint8_t>&& eventData) override; 84 SensorType getSensorTypeFromDataType(const char *dataType, bool calibrated) { 85 SensorType sensorType; 88 sensorType = SensorType::Accelerometer; 90 sensorType = SensorType::UncalibratedAccelerometer; 94 sensorType = SensorType::Gyroscope [all...] |
/system/chre/ash/platform/slpi/smgr/ |
ash.cc | 48 * @param sensorType One of the CHRE_SENSOR_TYPE_* constants. 51 bool isCalibrationSupported(uint8_t sensorType) { 52 switch (sensorType) { 63 * @param sensorType One of the CHRE_SENSOR_TYPE_* constants. 66 uint8_t getSensorId(uint8_t sensorType) { 67 switch (sensorType) { 82 * @param sensorType One of the CHRE_SENSOR_TYPE_* constants. 86 void populateCalRequest(uint8_t sensorType, const ashCalInfo *calInfo, 92 calRequest->SensorId = getSensorId(sensorType); 97 if (sensorType == CHRE_SENSOR_TYPE_GEOMAGNETIC_FIELD) [all...] |
/frameworks/native/services/sensorservice/ |
RecentEventLogger.cpp | 32 RecentEventLogger::RecentEventLogger(int sensorType) : 33 mSensorType(sensorType), mEventSize(eventSizeBySensorType(mSensorType)), 34 mRecentEvents(logSizeBySensorType(sensorType)), mMaskData(false) { 100 size_t RecentEventLogger::logSizeBySensorType(int sensorType) { 101 return (sensorType == SENSOR_TYPE_STEP_COUNTER || 102 sensorType == SENSOR_TYPE_SIGNIFICANT_MOTION || 103 sensorType == SENSOR_TYPE_ACCELEROMETER || 104 sensorType == SENSOR_TYPE_LIGHT) ? LOG_SIZE_LARGE : LOG_SIZE;
|
RecentEventLogger.h | 38 explicit RecentEventLogger(int sensorType); 64 static size_t logSizeBySensorType(int sensorType);
|
/system/chre/ash/include/ash_api/ |
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,
|
/packages/services/Car/car-support-lib/src/android/support/car/hardware/ |
CarSensorManagerEmbedded.java | 75 public boolean isSensorSupported(int sensorType) throws CarNotConnectedException { 77 return mManager.isSensorSupported(sensorType) 78 || mCarSensorsProxy.isSensorSupported(sensorType); 84 private boolean isSensorProxied(int sensorType) throws CarNotConnectedException { 86 return !mManager.isSensorSupported(sensorType) 87 && mCarSensorsProxy.isSensorSupported(sensorType); 94 public boolean addListener(OnSensorChangedListener listener, int sensorType, 96 if (isSensorProxied(sensorType)) { 97 return mCarSensorsProxy.registerSensorListener(listener, sensorType, rate); 103 proxy = new OnSensorChangedListenerProxy(listener, sensorType, this) [all...] |
CarSensorsProxy.java | 162 int sensorType = msg.arg1; 165 listenersCollection = mListenersMultiMap.get(sensorType); 225 public boolean isSensorSupported(int sensorType) { 227 if (sensor == sensorType) { 239 int sensorType, int rate) { 243 if (mListenersMultiMap.get(sensorType) == null) { 244 mListenersMultiMap.put(sensorType, 248 mListenersMultiMap.get(sensorType).add(listener); 251 pushSensorChanges(sensorType); 260 int sensorType) { [all...] |
/packages/services/Car/service/src/com/android/car/hal/ |
SensorHalServiceBase.java | 109 public synchronized boolean requestSensorStart(int sensorType, int rate) { 110 if (DBG) Log.d(TAG, "requestSensorStart, sensorType: " + sensorType + ", rate: " + rate); 111 VehiclePropConfig config = mSensorToPropConfig.get(sensorType); 113 Log.e(TAG, "requesting to start sensor " + sensorType + ", but VHAL config not found"); 122 public synchronized void requestSensorStop(int sensorType) { 123 if (DBG) Log.d(TAG, "requestSensorStop, sensorType: " + sensorType); 124 VehiclePropConfig config = mSensorToPropConfig.get(sensorType); 132 public VehiclePropValue getCurrentSensorVehiclePropValue(int sensorType) { [all...] |
/device/google/contexthub/util/nanoapp_cmd/ |
nanoapp_cmd.c | 71 uint8_t sensorType; 100 cmd->sensorType = SENS_TYPE_ACCEL; 102 cmd->sensorType = SENS_TYPE_GYRO; 104 cmd->sensorType = SENS_TYPE_MAG; 106 cmd->sensorType = SENS_TYPE_ACCEL; 108 cmd->sensorType = SENS_TYPE_GYRO; 110 cmd->sensorType = SENS_TYPE_MAG; 112 cmd->sensorType = SENS_TYPE_ALS; 114 cmd->sensorType = SENS_TYPE_PROX; 116 cmd->sensorType = SENS_TYPE_BARO [all...] |
/system/chre/platform/slpi/include/chre/platform/slpi/see/ |
see_helper.h | 46 SensorType sensorType; 61 //! specified by sensorType. 63 SensorType sensorType, UniquePtr<uint8_t>&& eventData) = 0; 95 SensorType sensorType; 112 //! SensorType. 115 SensorType sensorType; [all...] |
/system/chre/platform/slpi/see/include/chre/target_platform/ |
platform_sensor_base.h | 36 SensorType sensorType, uint64_t mMinInterval, const char *sensorName, 56 SensorType mSensorType;
|