Home
last modified time | relevance | path

Searched refs:sensorType (Results 1 – 25 of 126) sorted by relevance

123456

/aosp12/system/chre/platform/slpi/
H A Dplatform_sensor_type_helpers.cc29 uint8_t sensorType) { in getVendorSensorReportingMode() argument
42 uint8_t sensorType) { in getVendorSensorIsCalibrated() argument
46 UNUSED_VAR(sensorType); in getVendorSensorIsCalibrated()
61 uint8_t sensorType) { in getVendorSensorLastEventSize() argument
70 uint8_t sensorType) { in getVendorSensorTypeName() argument
74 switch (sensorType) { in getVendorSensorTypeName()
111 switch (sensorType) { in getTempSensorType()
129 switch (sensorType) { in getSensorSampleTypeFromSensorType()
162 switch (sensorType) { in toCalibratedSensorType()
174 return sensorType; in toCalibratedSensorType()
[all …]
/aosp12/system/chre/core/
H A Dsensor_type_helpers.cc26 if (isVendorSensorType(sensorType)) { in getReportingMode()
30 switch (sensorType) { in getReportingMode()
49 switch (sensorType) { in isCalibrated()
68 switch (sensorType) { in getBiasEventType()
95 if (isOnChange(sensorType)) { in getLastEventSize()
100 switch (sensorType) { in getLastEventSize()
137 switch (sensorType) { in getSensorTypeName()
181 switch (sensorType) { in toUncalibratedSensorType()
193 return sensorType; in toUncalibratedSensorType()
199 if (!isOnChange(sensorType)) { in getLastSample()
[all …]
/aosp12/system/chre/platform/slpi/see/
H A Dplatform_sensor_manager.cc108 switch (sensorType) { in getBigImageSensorType()
120 return sensorType; in getBigImageSensorType()
132 switch (sensorType) { in getUimgSensorType()
144 return sensorType; in getUimgSensorType()
362 sensorType = getBigImageSensorType(sensorType); in addSensor()
715 sensorType = getBigImageSensorType(sensorType); in configureSensor()
720 .sensorType = sensorType, in configureSensor()
834 sensorType = getBigImageSensorType(sensorType); in flush()
859 status->sensorType = getUimgSensorType(status->sensorType); in onSamplingStatusUpdate()
880 sensorType = getUimgSensorType(sensorType); in onSensorDataEvent()
[all …]
H A Dsee_cal_helper.cc31 size_t index = getCalIndexFromSensorType(sensorType); in applyCalibration()
51 bool SeeCalHelper::getBias(uint8_t sensorType, in getBias() argument
57 size_t index = getCalIndexFromSensorType(sensorType); in getBias()
104 uint8_t sensorType) const { in getCalSuidFromSensorType()
106 size_t calIndex = getCalIndexFromSensorType(sensorType); in getCalSuidFromSensorType()
161 uint8_t *sensorType) const { in getSensorTypeFromSuid()
167 *sensorType = CHRE_SENSOR_TYPE_ACCELEROMETER; in getSensorTypeFromSuid()
171 *sensorType = CHRE_SENSOR_TYPE_GYROSCOPE; in getSensorTypeFromSuid()
174 *sensorType = CHRE_SENSOR_TYPE_GEOMAGNETIC_FIELD; in getSensorTypeFromSuid()
185 size_t SeeCalHelper::getCalIndexFromSensorType(uint8_t sensorType) { in getCalIndexFromSensorType() argument
[all …]
H A Dsee_helper.cc110 uint8_t sensorType; member
756 data->sensorType); in populateEventSample()
976 statusData->sensorType = info->data->sensorType; in decodeSnsStdSensorPhysicalConfigEvent()
1080 uint8_t sensorType; in decodeSnsCalEvent() local
1087 info->data->sensorType = sensorType; in decodeSnsCalEvent()
1363 return sensorInfo.sensorType; in getSensorTypeFromSensorInfo()
1365 otherType = sensorInfo.sensorType; in getSensorTypeFromSensorInfo()
1969 if (sensorInfo.sensorType == sensorType) { in registerSensor()
1991 .sensorType = sensorType, in registerSensor()
2065 uint8_t sensorType) const { in getSensorInfo()
[all …]
/aosp12/system/chre/core/include/chre/core/
H A Dsensor_type_helpers.h37 static bool isOneShot(uint8_t sensorType) { in isOneShot() argument
38 return getReportingMode(sensorType) == ReportingMode::OneShot; in isOneShot()
45 static bool isOnChange(uint8_t sensorType) { in isOnChange() argument
53 static bool isContinuous(uint8_t sensorType) { in isContinuous() argument
61 static bool isVendorSensorType(uint8_t sensorType) { in isVendorSensorType() argument
62 return sensorType >= CHRE_SENSOR_TYPE_VENDOR_START; in isVendorSensorType()
69 static ReportingMode getReportingMode(uint8_t sensorType);
75 static bool isCalibrated(uint8_t sensorType);
93 static size_t getLastEventSize(uint8_t sensorType);
99 static const char *getSensorTypeName(uint8_t sensorType);
[all …]
H A Dsensor_request_manager.h66 bool getSensorHandle(uint8_t sensorType, uint8_t sensorIndex,
73 bool getSensorHandleForNanoapp(uint8_t sensorType, uint8_t sensorIndex, in getSensorHandleForNanoapp() argument
76 return getSensorHandle(sensorType, sensorIndex, in getSensorHandleForNanoapp()
87 bool getDefaultSensorHandle(uint8_t sensorType, in getDefaultSensorHandle() argument
89 return getSensorHandle(sensorType, 0 /* sensorIndex */, in getDefaultSensorHandle()
501 uint8_t sensorType);
/aosp12/frameworks/native/services/inputflinger/reader/mapper/
H A DSensorInputMapper.cpp41 switch (sensorType) { in convertFromLinuxToAndroid()
71 auto it = mSensors.find(sensorType); in parseSensorConfiguration()
73 Sensor sensor = createSensor(sensorType, axis); in parseSensorConfiguration()
75 mSensors.emplace(sensorType, sensor); in parseSensorConfiguration()
84 for (const auto& [sensorType, sensor] : mSensors) { in populateDeviceInfo()
95 for (const auto& [sensorType, sensor] : mSensors) { in dump()
292 auto it = mSensors.find(sensorType); in setSensorEnabled()
306 for (const auto& [sensorType, sensor] : mSensors) { in setSensorEnabled()
317 auto it = mSensors.find(sensorType); in flushSensor()
352 auto it = mSensors.find(sensorType); in enableSensor()
[all …]
H A DSensorInputMapper.h37 bool enableSensor(InputDeviceSensorType sensorType, std::chrono::microseconds samplingPeriod,
39 void disableSensor(InputDeviceSensorType sensorType) override;
40 void flushSensor(InputDeviceSensorType sensorType) override;
125 void parseSensorConfiguration(InputDeviceSensorType sensorType, int32_t absCode,
130 Sensor createSensor(InputDeviceSensorType sensorType, const Axis& axis);
132 bool setSensorEnabled(InputDeviceSensorType sensorType, bool enabled);
/aosp12/frameworks/base/core/java/android/hardware/fingerprint/
H A DFingerprintSensorPropertiesInternal.java41 public final @FingerprintSensorProperties.SensorType int sensorType; field in FingerprintSensorPropertiesInternal
48 @FingerprintSensorProperties.SensorType int sensorType, in FingerprintSensorPropertiesInternal() argument
57 this.sensorType = sensorType; in FingerprintSensorPropertiesInternal()
67 @FingerprintSensorProperties.SensorType int sensorType, in FingerprintSensorPropertiesInternal() argument
70 this(sensorId, strength, maxEnrollmentsPerUser, componentInfo, sensorType, in FingerprintSensorPropertiesInternal()
78 sensorType = in.readInt(); in FingerprintSensorPropertiesInternal()
103 dest.writeInt(sensorType); in writeToParcel()
108 switch (sensorType) { in isAnyUdfpsType()
122 switch (sensorType) { in isAnySidefpsType()
170 return "ID: " + sensorId + ", Strength: " + sensorStrength + ", Type: " + sensorType; in toString()
/aosp12/packages/services/Car/service/src/com/android/car/
H A DCarSensorEventFactory.java27 public static CarSensorEvent createBooleanEvent(int sensorType, long timestamp, in createBooleanEvent() argument
29 CarSensorEvent event = new CarSensorEvent(sensorType, timestamp, 0, 1, 0); in createBooleanEvent()
34 public static CarSensorEvent createIntEvent(int sensorType, long timestamp, int value) { in createIntEvent() argument
35 CarSensorEvent event = new CarSensorEvent(sensorType, timestamp, 0, 1, 0); in createIntEvent()
48 public static CarSensorEvent createInt64VecEvent(int sensorType, long timestamp, in createInt64VecEvent() argument
50 CarSensorEvent event = new CarSensorEvent(sensorType, timestamp, 0, 0, value.size()); in createInt64VecEvent()
57 public static CarSensorEvent createFloatEvent(int sensorType, long timestamp, float value) { in createFloatEvent() argument
58 CarSensorEvent event = new CarSensorEvent(sensorType, timestamp, 1, 0, 0); in createFloatEvent()
63 public static CarSensorEvent createMixedEvent(int sensorType, long timestamp, in createMixedEvent() argument
68 CarSensorEvent event = new CarSensorEvent(sensorType, timestamp, numFloats, numInts, in createMixedEvent()
/aosp12/system/chre/apps/test/common/chre_cross_validator_sensor/src/
H A Dchre_cross_validator_sensor_manager.cc338 if (!getSensor(sensorType, sensorIndex, &handle)) { in handleStartSensorMessage()
341 sensorType, sensorIndex); in handleStartSensorMessage()
345 sensorType, sensorIndex); in handleStartSensorMessage()
363 sensorType, intervalInNs, latencyInNs); in handleStartSensorMessage()
493 .chreSensorType = sensorType, in makeSensorThreeAxisData()
513 .chreSensorType = sensorType, in makeSensorFloatData()
647 uint8_t sensorType) { in processSensorData() argument
652 } else if (!sensorTypeIsValid(sensorType)) { in processSensorData()
654 mCrossValidatorState->sensorType); in processSensorData()
661 bool Manager::sensorTypeIsValid(uint8_t sensorType) { in sensorTypeIsValid() argument
[all …]
/aosp12/frameworks/base/core/java/android/hardware/input/
H A DInputDeviceSensorManager.java172 private Sensor getInputDeviceSensorLocked(int deviceId, int sensorType) { in getInputDeviceSensorLocked() argument
175 if (sensor.getType() == sensorType) { in getInputDeviceSensorLocked()
199 Sensor sensor = getInputDeviceSensorLocked(deviceId, sensorType); in onInputSensorChanged()
203 if (listener.hasSensorRegistered(deviceId, sensorType)) { in onInputSensorChanged()
223 + "accuracy=" + accuracy + ", sensorType=" + sensorType); in onInputSensorAccuracyChanged()
229 if (listener.hasSensorRegistered(deviceId, sensorType)) { in onInputSensorAccuracyChanged()
241 deviceId, sensorType, accuracy, timestamp, values); in onInputSensorChanged()
321 public boolean hasSensorRegistered(int deviceId, int sensorType) { in hasSensorRegistered() argument
366 final int sensorType = msg.arg2; in handleMessage() local
525 final int sensorType = s.getType(); in unregisterListenerInternal() local
[all …]
/aosp12/system/chre/platform/linux/
H A Dplatform_sensor_type_helpers.cc26 uint8_t sensorType) { in getVendorSensorReportingMode() argument
31 uint8_t sensorType) { in getVendorSensorIsCalibrated() argument
36 uint8_t sensorType, uint16_t *eventType) { in getVendorSensorBiasEventType() argument
41 uint8_t sensorType) { in getVendorSensorTypeName() argument
46 uint8_t sensorType) { in getVendorSensorLastEventSize() argument
50 void PlatformSensorTypeHelpers::getVendorLastSample(uint8_t sensorType, in getVendorLastSample() argument
/aosp12/system/chre/platform/include/chre/platform/
H A Dplatform_sensor_type_helpers.h40 static ReportingMode getVendorSensorReportingMode(uint8_t sensorType);
45 static bool getVendorSensorIsCalibrated(uint8_t sensorType);
51 static bool getVendorSensorBiasEventType(uint8_t sensorType,
57 static size_t getVendorSensorLastEventSize(uint8_t sensorType);
63 static const char *getVendorSensorTypeName(uint8_t sensorType);
75 static void getVendorLastSample(uint8_t sensorType,
/aosp12/system/chre/apps/test/common/chre_cross_validator_sensor/inc/
H A Dchre_cross_validator_sensor_manager.h74 uint8_t sensorType; member
93 sensorType(sensorTypeIn), in CrossValidatorState()
273 const chreSensorThreeAxisData *threeAxisDataFromChre, uint8_t sensorType);
283 const chreSensorFloatData *floatDataFromChre, uint8_t sensorType);
312 const chreSensorThreeAxisData *threeAxisDataFromChre, uint8_t sensorType);
321 uint8_t sensorType);
377 uint8_t sensorType);
385 bool sensorTypeIsValid(uint8_t sensorType);
401 bool getSensor(uint32_t sensorType, uint32_t sensorIndex, uint32_t *handle);
/aosp12/frameworks/base/core/java/android/hardware/face/
H A DFaceSensorPropertiesInternal.java35 public final @FaceSensorProperties.SensorType int sensorType; field in FaceSensorPropertiesInternal
53 @FaceSensorProperties.SensorType int sensorType, boolean supportsFaceDetection, in FaceSensorPropertiesInternal() argument
59 this.sensorType = sensorType; in FaceSensorPropertiesInternal()
66 sensorType = in.readInt(); in FaceSensorPropertiesInternal()
92 dest.writeInt(sensorType); in writeToParcel()
99 return "ID: " + sensorId + ", Strength: " + sensorStrength + ", Type: " + sensorType in toString()
/aosp12/frameworks/native/services/sensorservice/
H A DRecentEventLogger.cpp35 RecentEventLogger::RecentEventLogger(int sensorType) : in RecentEventLogger() argument
36 mSensorType(sensorType), mEventSize(eventSizeBySensorType(mSensorType)), in RecentEventLogger()
37 mRecentEvents(logSizeBySensorType(sensorType)), mMaskData(false), in RecentEventLogger()
144 size_t RecentEventLogger::logSizeBySensorType(int sensorType) { in logSizeBySensorType() argument
145 if (sensorType == SENSOR_TYPE_STEP_COUNTER || in logSizeBySensorType()
146 sensorType == SENSOR_TYPE_SIGNIFICANT_MOTION || in logSizeBySensorType()
147 sensorType == SENSOR_TYPE_ACCELEROMETER || in logSizeBySensorType()
148 sensorType == SENSOR_TYPE_LIGHT) { in logSizeBySensorType()
151 if (sensorType == SENSOR_TYPE_PROXIMITY) { in logSizeBySensorType()
/aosp12/system/chre/platform/slpi/include/chre/platform/slpi/see/
H A Dsee_helper.h49 uint8_t sensorType; member
64 virtual void onSensorDataEvent(uint8_t sensorType,
75 uint8_t sensorType,
79 virtual void onFlushCompleteEvent(uint8_t sensorType) = 0;
110 uint8_t sensorType; member
130 uint8_t sensorType; member
254 bool flush(uint8_t sensorType);
274 bool registerSensor(uint8_t sensorType, const sns_std_suid &suid,
285 bool sensorIsRegistered(uint8_t sensorType) const;
489 const SensorInfo *getSensorInfo(uint8_t sensorType) const;
H A Dsee_cal_helper.h51 void applyCalibration(uint8_t sensorType, const float input[3],
66 bool getBias(uint8_t sensorType,
96 const sns_std_suid *getCalSuidFromSensorType(uint8_t sensorType) const;
139 uint8_t *sensorType) const;
182 static size_t getCalIndexFromSensorType(uint8_t sensorType);
/aosp12/system/chre/platform/slpi/include/chre/target_platform/
H A Dplatform_sensor_type_helpers_base.h74 static uint8_t getTempSensorType(uint8_t sensorType);
83 static SensorSampleType getSensorSampleTypeFromSensorType(uint8_t sensorType);
91 static uint8_t toCalibratedSensorType(uint8_t sensorType);
96 static bool reportsBias(uint8_t sensorType);
102 static void rewriteToChreSensorType(uint8_t *sensorType);
/aosp12/packages/services/Car/car-lib/src/android/car/hardware/
H A DCarSensorEvent.java119 public int sensorType; field in CarSensorEvent
137 sensorType = in.readInt(); in CarSensorEvent()
158 dest.writeInt(sensorType); in writeToParcel()
180 public CarSensorEvent(int sensorType, long timestamp, int floatValueSize, int intValueSize, in CarSensorEvent() argument
182 this.sensorType = sensorType; in CarSensorEvent()
190 CarSensorEvent(int sensorType, long timestamp, float[] floatValues, int[] intValues, in CarSensorEvent() argument
192 this.sensorType = sensorType; in CarSensorEvent()
200 if (sensorType == type) { in checkType()
204 "Invalid sensor type: expected %d, got %d", type, sensorType)); in checkType()
756 sb.append("type:" + Integer.toHexString(sensorType)); in toString()
H A DICarSensor.aidl34 boolean registerOrUpdateSensorListener(int sensorType, int rate, in registerOrUpdateSensorListener() argument
41 CarSensorEvent getLatestSensorEvent(int sensorType) = 2; in getLatestSensorEvent() argument
47 void unregisterSensorListener(int sensorType, in ICarSensorEventListener callback) = 3; in unregisterSensorListener() argument
52 CarSensorConfig getSensorConfig(int sensorType) = 4; in getSensorConfig() argument
/aosp12/frameworks/base/services/core/java/com/android/server/biometrics/sensors/
H A DCoexCoordinator.java129 @SensorType int sensorType, in SuccessfulAuth() argument
133 mSensorType = sensorType; in SuccessfulAuth()
189 public void addAuthenticationClient(@BiometricScheduler.SensorType int sensorType, in addAuthenticationClient() argument
192 Slog.d(TAG, "addAuthenticationClient(" + sensorTypeToString(sensorType) + ")" in addAuthenticationClient()
196 if (mClientMap.containsKey(sensorType)) { in addAuthenticationClient()
197 Slog.w(TAG, "Overwriting existing client: " + mClientMap.get(sensorType) in addAuthenticationClient()
201 mClientMap.put(sensorType, client); in addAuthenticationClient()
204 public void removeAuthenticationClient(@BiometricScheduler.SensorType int sensorType, in removeAuthenticationClient() argument
207 Slog.d(TAG, "removeAuthenticationClient(" + sensorTypeToString(sensorType) + ")" in removeAuthenticationClient()
211 if (!mClientMap.containsKey(sensorType)) { in removeAuthenticationClient()
[all …]
/aosp12/frameworks/base/packages/SystemUI/src/com/android/systemui/util/sensors/
H A DSensorModule.java194 final String sensorType = sensorTypes[i]; in createPostureToSensorMapping() local
195 if (typeToSensorMap.containsKey(sensorType)) { in createPostureToSensorMapping()
196 sensorMap[i] = typeToSensorMap.get(sensorType); in createPostureToSensorMapping()
204 typeToSensorMap.put(sensorType, sensorMap[i]); in createPostureToSensorMapping()
222 for (String sensorType : postureToSensorTypeMapping) { in hasPostureSupport()
223 if (!TextUtils.isEmpty(sensorType)) { in hasPostureSupport()

123456