Home
last modified time | relevance | path

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

12

/aosp14/frameworks/base/core/java/android/hardware/fingerprint/
H A DFingerprintSensorPropertiesInternal.java41 public final @FingerprintSensorProperties.SensorType int sensorType; field in FingerprintSensorPropertiesInternal
49 @FingerprintSensorProperties.SensorType int sensorType, in FingerprintSensorPropertiesInternal() argument
59 this.sensorType = sensorType; in FingerprintSensorPropertiesInternal()
70 @FingerprintSensorProperties.SensorType int sensorType, in FingerprintSensorPropertiesInternal() argument
73 this(sensorId, strength, maxEnrollmentsPerUser, componentInfo, sensorType, in FingerprintSensorPropertiesInternal()
81 sensorType = in.readInt(); in FingerprintSensorPropertiesInternal()
107 dest.writeInt(sensorType); in writeToParcel()
113 switch (sensorType) { in isAnyUdfpsType()
127 switch (sensorType) { in isAnySidefpsType()
175 return "ID: " + sensorId + ", Strength: " + sensorStrength + ", Type: " + sensorType; in toString()
H A DFingerprintSensorProperties.java91 internalProp.sensorType); in from()
98 @NonNull List<ComponentInfo> componentInfo, @SensorType int sensorType) { in FingerprintSensorProperties() argument
100 mSensorType = sensorType; in FingerprintSensorProperties()
/aosp14/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()
H A DFaceSensorProperties.java72 internalProp.sensorType); in from()
79 @FaceSensorProperties.SensorType int sensorType) { in FaceSensorProperties() argument
81 mSensorType = sensorType; in FaceSensorProperties()
/aosp14/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 …]
H A DInputManager.java1083 public boolean enableSensor(int deviceId, int sensorType, int samplingPeriodUs, in enableSensor() argument
1085 return mGlobal.enableSensor(deviceId, sensorType, samplingPeriodUs, in enableSensor()
1094 public void disableSensor(int deviceId, int sensorType) { in disableSensor() argument
1095 mGlobal.disableSensor(deviceId, sensorType); in disableSensor()
1103 public boolean flushSensor(int deviceId, int sensorType) { in flushSensor() argument
1104 return mGlobal.flushSensor(deviceId, sensorType); in flushSensor()
H A DIInputManager.aidl193 boolean enableSensor(int deviceId, int sensorType, int samplingPeriodUs, in enableSensor() argument
196 void disableSensor(int deviceId, int sensorType); in disableSensor() argument
198 boolean flushSensor(int deviceId, int sensorType); in flushSensor() argument
/aosp14/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()
H A DThresholdSensorImpl.java286 Builder setSensorType(String sensorType, boolean requireWakeUp) { in setSensorType() argument
287 Sensor sensor = findSensorByType(sensorType, requireWakeUp); in setSensorType()
338 Sensor findSensorByType(String sensorType, boolean requireWakeUp) { in findSensorByType() argument
339 if (TextUtils.isEmpty(sensorType)) { in findSensorByType()
346 if (sensorType.equals(s.getStringType())) { in findSensorByType()
/aosp14/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/biometrics/data/repository/
H A DFakeFingerprintPropertyRepository.kt36 override val sensorType = _sensorType.asStateFlow()
45 sensorType: FingerprintSensorType,
50 _sensorType.value = sensorType
/aosp14/frameworks/base/services/core/java/com/android/server/display/utils/
H A DSensorUtils.java51 @Nullable String sensorType, @Nullable String sensorName, int fallbackType) { in findSensor() argument
56 final boolean isTypeSpecified = !TextUtils.isEmpty(sensorType); in findSensor()
61 && (!isTypeSpecified || sensorType.equals(sensor.getStringType()))) { in findSensor()
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/biometrics/ui/viewmodel/
H A DPromptFingerprintIconViewModel.kt44 promptSelectorInteractor.sensorType,
49 sensorType: FingerprintSensorType ->
50 when (sensorType) {
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/biometrics/data/repository/
H A DFingerprintRepositoryImplTest.kt80 val sensorType by collectLastValue(repository.sensorType) regex
86 assertThat(sensorType).isEqualTo(FingerprintSensorType.UNKNOWN)
127 assertThat(sensorType).isEqualTo(FingerprintSensorType.REAR)
/aosp14/frameworks/base/services/core/java/com/android/server/biometrics/sensors/
H A DUserAwareBiometricScheduler.java96 @SensorType int sensorType, in UserAwareBiometricScheduler() argument
101 super(tag, handler, sensorType, gestureAvailabilityDispatcher, biometricService, in UserAwareBiometricScheduler()
109 @SensorType int sensorType, in UserAwareBiometricScheduler() argument
113 this(tag, new Handler(Looper.getMainLooper()), sensorType, gestureAvailabilityDispatcher, in UserAwareBiometricScheduler()
H A DBiometricScheduler.java101 public static String sensorTypeToString(@SensorType int sensorType) { in sensorTypeToString() argument
102 switch (sensorType) { in sensorTypeToString()
207 @SensorType int sensorType, in BiometricScheduler() argument
213 mSensorType = sensorType; in BiometricScheduler()
231 @SensorType int sensorType, in BiometricScheduler() argument
233 this(tag, new Handler(Looper.getMainLooper()), sensorType, gestureAvailabilityDispatcher, in BiometricScheduler()
/aosp14/frameworks/base/services/core/java/com/android/server/input/
H A DNativeInputManagerService.java208 boolean flushSensor(int deviceId, int sensorType); in flushSensor() argument
210 boolean enableSensor(int deviceId, int sensorType, int samplingPeriodUs, in enableSensor() argument
213 void disableSensor(int deviceId, int sensorType); in disableSensor() argument
472 public native boolean flushSensor(int deviceId, int sensorType); in flushSensor() argument
475 public native boolean enableSensor(int deviceId, int sensorType, int samplingPeriodUs, in enableSensor() argument
479 public native void disableSensor(int deviceId, int sensorType); in disableSensor() argument
/aosp14/frameworks/base/core/java/android/companion/virtual/sensor/
H A DVirtualSensorDirectChannelWriter.java244 void write(int reportToken, int sensorType, long eventCounter, VirtualSensorEvent event) { in write() argument
249 mEventBuffer.putInt(sensorType); in write()
279 DirectChannelConfiguration(int reportToken, int sensorType, in DirectChannelConfiguration() argument
282 mSensorType = sensorType; in DirectChannelConfiguration()
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/biometrics/data/repository/
H A DFingerprintPropertyRepository.kt59 val sensorType: Flow<FingerprintSensorType>
109 override val sensorType: Flow<FingerprintSensorType> =
110 props.map { it.sensorType.toSensorType() }
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/biometrics/
H A DBiometricDisplayListener.kt36 private val sensorType: SensorType = SensorType.Generic,
47 when (sensorType) {
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/biometrics/domain/interactor/
H A DPromptSelectorInteractor.kt71 val sensorType: Flow<FingerprintSensorType>
149 override val sensorType: Flow<FingerprintSensorType> = fingerprintPropertyRepository.sensorType
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/biometrics/
H A DAuthBiometricFingerprintIconControllerTest.kt83 private fun setupFingerprintSensorProperties(sensorType: Int) {
92 sensorType,
/aosp14/frameworks/base/core/java/android/hardware/display/
H A DDisplayManagerInternal.java689 public String sensorType; field in DisplayManagerInternal.AmbientLightSensorData
693 sensorType = type; in AmbientLightSensorData()
698 return "AmbientLightSensorData(" + sensorName + ", " + sensorType + ")"; in toString()
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/biometrics/ui/viewmodel/
H A DPromptFingerprintIconViewModelTest.kt89 private fun configureFingerprintPropertyRepository(sensorType: FingerprintSensorType) {
90 fingerprintRepository.setProperties(0, SensorStrength.STRONG, sensorType, mapOf())
/aosp14/frameworks/base/services/tests/displayservicetests/src/com/android/server/display/utils/
H A DSensorUtilsTest.java120 public void testFindSensor(@Nullable String sensorName, @Nullable String sensorType, in testFindSensor() argument
128 sensorData.type = sensorType; in testFindSensor()
/aosp14/frameworks/base/services/core/java/com/android/server/biometrics/
H A DAuthService.java811 final @FingerprintSensorProperties.SensorType int sensorType; in getHidlFingerprintSensorProps() local
813 sensorType = FingerprintSensorProperties.TYPE_UDFPS_OPTICAL; in getHidlFingerprintSensorProps()
815 sensorType = FingerprintSensorProperties.TYPE_POWER_BUTTON; in getHidlFingerprintSensorProps()
817 sensorType = FingerprintSensorProperties.TYPE_REAR; in getHidlFingerprintSensorProps()
830 componentInfo, sensorType, true /* halControlsIllumination */, in getHidlFingerprintSensorProps()
837 componentInfo, sensorType, resetLockoutRequiresHardwareAuthToken); in getHidlFingerprintSensorProps()

12