Home
last modified time | relevance | path

Searched refs:Sensors (Results 1 – 25 of 69) sorted by relevance

123

/aosp12/hardware/interfaces/sensors/1.0/default/
H A DSensors.cpp56 Sensors::Sensors() in Sensors() function in android::hardware::sensors::V1_0::implementation::Sensors
112 status_t Sensors::initCheck() const { in initCheck()
135 int Sensors::getHalDeviceVersion() const { in getHalDeviceVersion()
143 Return<Result> Sensors::setOperationMode(OperationMode mode) { in setOperationMode()
151 Return<Result> Sensors::activate( in activate()
234 Return<Result> Sensors::batch( in batch()
247 Return<Result> Sensors::flush(int32_t sensor_handle) { in flush()
264 Return<void> Sensors::registerDirectChannel( in registerDirectChannel()
302 Return<void> Sensors::configDirectReport( in configDirectReport()
332 void Sensors::convertFromSensorEvents( in convertFromSensorEvents()
[all …]
H A DSensors.h33 struct Sensors : public ::android::hardware::sensors::V1_0::ISensors { struct
34 Sensors();
77 DISALLOW_COPY_AND_ASSIGN(Sensors); argument
/aosp12/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/privacy/
H A DMicTogglePreferenceControllerTest.java109 eq(SensorPrivacyManager.Sensors.MICROPHONE), in onPreferenceClicked_clickMicEnabled_shouldSetPrivacySensor()
113 mListener.getValue().onSensorPrivacyChanged(SensorPrivacyManager.Sensors.MICROPHONE, true); in onPreferenceClicked_clickMicEnabled_shouldSetPrivacySensor()
127 eq(SensorPrivacyManager.Sensors.MICROPHONE), in onPreferenceClicked_clickMicDisabled_shouldClearPrivacySensor()
130 mListener.getValue().onSensorPrivacyChanged(SensorPrivacyManager.Sensors.MICROPHONE, false); in onPreferenceClicked_clickMicDisabled_shouldClearPrivacySensor()
140 mListener.getValue().onSensorPrivacyChanged(SensorPrivacyManager.Sensors.MICROPHONE, false); in onListenerUpdate_micDisabled_shouldUpdateChecked()
150 mListener.getValue().onSensorPrivacyChanged(SensorPrivacyManager.Sensors.MICROPHONE, true); in onListenerUpdate_micEnabled_shouldUpdateChecked()
161 SensorPrivacyManager.Sensors.MICROPHONE, mListener.getValue()); in onStop_removesSensorPrivacyListener()
169 eq(SensorPrivacyManager.Sensors.MICROPHONE), mListener.capture()); in initializePreference()
174 eq(SensorPrivacyManager.Sensors.MICROPHONE))).thenReturn(isMuted); in setIsSensorPrivacyEnabled()
179 .supportsSensorToggle(eq(SensorPrivacyManager.Sensors.MICROPHONE))) in setMicMuteFeatureAvailable()
H A DMicrophoneRecentAccessesPreferenceControllerTest.java123 mListener.getValue().onSensorPrivacyChanged(SensorPrivacyManager.Sensors.MICROPHONE, false); in onListenerUpdate_micEnabled_shouldShow()
133 mListener.getValue().onSensorPrivacyChanged(SensorPrivacyManager.Sensors.MICROPHONE, true); in onListenerUpdate_micDisabled_shouldHide()
257 eq(SensorPrivacyManager.Sensors.MICROPHONE), mListener.capture()); in initializePreference()
262 eq(SensorPrivacyManager.Sensors.MICROPHONE))).thenReturn(isMuted); in setIsSensorPrivacyEnabled()
/aosp12/frameworks/base/core/java/android/hardware/
H A DSensorPrivacyManager.java79 public static class Sensors { class in SensorPrivacyManager
81 private Sensors() {} in Sensors() method in SensorPrivacyManager.Sensors
227 public boolean supportsSensorToggle(@Sensors.Sensor int sensor) { in supportsSensorToggle()
252 public void addSensorPrivacyListener(@Sensors.Sensor int sensor, in addSensorPrivacyListener()
269 public void addSensorPrivacyListener(@Sensors.Sensor int sensor, @UserIdInt int userId, in addSensorPrivacyListener()
357 public void removeSensorPrivacyListener(@Sensors.Sensor int sensor, in removeSensorPrivacyListener()
384 public boolean isSensorPrivacyEnabled(@Sensors.Sensor int sensor) { in isSensorPrivacyEnabled()
414 public void setSensorPrivacy(@Sources.Source int source, @Sensors.Sensor int sensor, in setSensorPrivacy()
429 public void setSensorPrivacy(@Sources.Source int source, @Sensors.Sensor int sensor, in setSensorPrivacy()
451 @Sensors.Sensor int sensor, boolean enable) { in setSensorPrivacyForProfileGroup()
[all …]
/aosp12/packages/apps/Car/Settings/src/com/android/car/settings/privacy/
H A DMicTogglePreferenceController.java58 SensorPrivacyManager.Sensors.MICROPHONE, mListener); in onStartInternal()
63 mSensorPrivacyManager.removeSensorPrivacyListener(SensorPrivacyManager.Sensors.MICROPHONE, in onStopInternal()
75 SensorPrivacyManager.Sensors.MICROPHONE); in handlePreferenceChanged()
80 SensorPrivacyManager.Sensors.MICROPHONE, in handlePreferenceChanged()
89 SensorPrivacyManager.Sensors.MICROPHONE); in getAvailabilityStatus()
96 SensorPrivacyManager.Sensors.MICROPHONE)); in updateState()
H A DManageMicPermissionsPreferenceController.java84 SensorPrivacyManager.Sensors.MICROPHONE, mListener); in onStartInternal()
89 mSensorPrivacyManager.removeSensorPrivacyListener(SensorPrivacyManager.Sensors.MICROPHONE, in onStopInternal()
97 SensorPrivacyManager.Sensors.MICROPHONE)) { in updateState()
H A DMicrophoneRecentAccessesPreferenceController.java79 SensorPrivacyManager.Sensors.MICROPHONE, mListener); in onStartInternal()
84 mSensorPrivacyManager.removeSensorPrivacyListener(SensorPrivacyManager.Sensors.MICROPHONE, in onStopInternal()
92 SensorPrivacyManager.Sensors.MICROPHONE)) { in updateState()
/aosp12/packages/apps/Car/Cluster/DirectRenderingCluster/src/android/car/cluster/
H A DClusterViewModel.java25 import android.car.cluster.sensors.Sensors;
110 Sensors sensors = Sensors.getInstance(); in registerCarPropertiesListener()
132 for (Sensor<?> sensorId : Sensors.getInstance()
134 if (sensorId.mAreaId == Sensors.GLOBAL_AREA_ID
143 for (Sensor<?> sensorId : Sensors.getInstance().getSensorsForPropertyId(
239 return Transformations.map(getSensor(Sensors.SENSOR_FUEL), (fuelValue) -> { in getFuelLevel()
240 Float fuelCapacityValue = getSensorValue(Sensors.SENSOR_FUEL_CAPACITY); in getFuelLevel()
258 return Transformations.map(getSensor(Sensors.SENSOR_RPM), (rpmValue) -> { in getRPM()
267 return Transformations.map(getSensor(Sensors.SENSOR_SPEED), (speedValue) -> {
276 return Transformations.map(getSensor(Sensors.SENSOR_FUEL_RANGE), (rangeValue) -> {
H A DMainClusterActivity.java30 import android.car.cluster.sensors.Sensors;
110 private Map<Sensors.Gear, View> mGearsToIcon = new HashMap<>();
223 registerGear(findViewById(R.id.gear_parked), Sensors.Gear.PARK); in onCreate()
224 registerGear(findViewById(R.id.gear_reverse), Sensors.Gear.REVERSE); in onCreate()
225 registerGear(findViewById(R.id.gear_neutral), Sensors.Gear.NEUTRAL); in onCreate()
226 registerGear(findViewById(R.id.gear_drive), Sensors.Gear.DRIVE); in onCreate()
267 mClusterViewModel.getSensor(Sensors.SENSOR_GEAR).observe(this, this::updateSelectedGear); in onCreate()
501 private void registerGear(View view, Sensors.Gear gear) { in registerGear()
505 private void updateSelectedGear(Sensors.Gear gear) { in updateSelectedGear()
506 for (Map.Entry<Sensors.Gear, View> entry : mGearsToIcon.entrySet()) { in updateSelectedGear()
/aosp12/packages/apps/Car/Cluster/ClusterOsDouble/src/com/android/car/cluster/view/
H A DClusterViewModel.java43 import com.android.car.cluster.sensors.Sensors;
107 Sensors sensors = Sensors.getInstance(); in registerCarPropertiesListener()
128 Sensor<?> sensorId = Sensors.getInstance()
138 Sensor<?> sensorId = Sensors.getInstance().getSensorForPropertyId(propId);
232 return Transformations.map(getSensor(Sensors.SENSOR_FUEL), (fuelValue) -> { in getFuelLevel()
233 Float fuelCapacityValue = getSensorValue(Sensors.SENSOR_FUEL_CAPACITY); in getFuelLevel()
251 return Transformations.map(getSensor(Sensors.SENSOR_RPM), (rpmValue) -> { in getRPM()
260 return Transformations.map(getSensor(Sensors.SENSOR_SPEED), (speedValue) -> {
269 return Transformations.map(getSensor(Sensors.SENSOR_FUEL_RANGE), (rangeValue) -> {
/aosp12/packages/apps/Car/Cluster/ClusterOsDouble/src/com/android/car/cluster/sensors/
H A DSensors.java33 public class Sensors { class
101 private static Sensors sInstance = new Sensors();
106 public static Sensors getInstance() { in getInstance()
110 private Sensors() { in Sensors() method in Sensors
/aosp12/packages/apps/Car/Cluster/DirectRenderingCluster/src/android/car/cluster/sensors/
H A DSensors.java33 public class Sensors { class
37 private static Sensors sInstance;
105 public static Sensors getInstance() { in getInstance()
107 sInstance = new Sensors(); in getInstance()
112 private Sensors() { in Sensors() method in Sensors
/aosp12/packages/apps/Car/Cluster/ClusterOsDouble/src/com/android/car/cluster/osdouble/
H A DClusterOsDoubleActivity.java52 import com.android.car.cluster.sensors.Sensors;
95 private final ArrayMap<Sensors.Gear, View> mGearsToIcon = new ArrayMap<>();
121 registerGear(findViewById(R.id.gear_parked), Sensors.Gear.PARK); in onCreate()
122 registerGear(findViewById(R.id.gear_reverse), Sensors.Gear.REVERSE); in onCreate()
123 registerGear(findViewById(R.id.gear_neutral), Sensors.Gear.NEUTRAL); in onCreate()
124 registerGear(findViewById(R.id.gear_drive), Sensors.Gear.DRIVE); in onCreate()
127 mClusterViewModel.getSensor(Sensors.SENSOR_GEAR).observe(this, this::updateSelectedGear); in onCreate()
288 private void registerGear(View view, Sensors.Gear gear) { in registerGear()
292 private void updateSelectedGear(Sensors.Gear gear) { in updateSelectedGear()
293 for (Map.Entry<Sensors.Gear, View> entry : mGearsToIcon.entrySet()) { in updateSelectedGear()
/aosp12/hardware/interfaces/sensors/2.1/default/
H A DSensorsV2_1.h33 using Sensors = ::android::hardware::sensors::V2_X::implementation::Sensors<ISensors>; variable
51 struct SensorsV2_1 : public Sensors {
/aosp12/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
H A DIndividualSensorPrivacyControllerImpl.java19 import static android.hardware.SensorPrivacyManager.Sensors.CAMERA;
20 import static android.hardware.SensorPrivacyManager.Sensors.MICROPHONE;
23 import android.hardware.SensorPrivacyManager.Sensors.Sensor;
/aosp12/packages/apps/TvSettings/Settings/src/com/android/tv/settings/privacy/
H A DPrivacyToggle.java23 import android.hardware.SensorPrivacyManager.Sensors.Sensor;
38 SensorPrivacyManager.Sensors.CAMERA,
50 SensorPrivacyManager.Sensors.MICROPHONE,
/aosp12/packages/apps/Settings/src/com/android/settings/display/
H A DSmartAutoRotateCameraStateController.java19 import static android.hardware.SensorPrivacyManager.Sensors.CAMERA;
57 return mPrivacyManager.isSensorPrivacyEnabled(SensorPrivacyManager.Sensors.CAMERA); in isCameraLocked()
H A DSmartAutoRotatePreferenceController.java19 import static android.hardware.SensorPrivacyManager.Sensors.CAMERA;
143 return mPrivacyManager.isSensorPrivacyEnabled(SensorPrivacyManager.Sensors.CAMERA); in isCameraLocked()
/aosp12/hardware/interfaces/sensors/common/default/2.X/
H A DSensors.h42 struct Sensors : public ISensorsInterface, public ISensorsEventCallback { struct
57 Sensors() in Sensors() argument
74 virtual ~Sensors() { in ~Sensors() argument
234 static void startReadWakeLockThread(Sensors* sensors) { sensors->readWakeLockFMQ(); } in startReadWakeLockThread() argument
/aosp12/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/
H A DCameraToggleTile.java19 import static android.hardware.SensorPrivacyManager.Sensors.CAMERA;
24 import android.hardware.SensorPrivacyManager.Sensors.Sensor;
H A DMicrophoneToggleTile.java19 import static android.hardware.SensorPrivacyManager.Sensors.MICROPHONE;
24 import android.hardware.SensorPrivacyManager.Sensors.Sensor;
/aosp12/frameworks/base/packages/SystemUI/src/com/android/systemui/sensorprivacy/
H A DSensorUseStartedActivity.kt61 internal const val CAMERA = SensorPrivacyManager.Sensors.CAMERA
62 internal const val MICROPHONE = SensorPrivacyManager.Sensors.MICROPHONE
/aosp12/frameworks/base/packages/SystemUI/src/com/android/systemui/sensorprivacy/television/
H A DTvUnblockSensorActivity.java19 import static android.hardware.SensorPrivacyManager.Sensors.CAMERA;
20 import static android.hardware.SensorPrivacyManager.Sensors.MICROPHONE;
/aosp12/hardware/interfaces/sensors/1.0/vts/functional/
H A DOWNERS1 # Sensors team

123