Home
last modified time | relevance | path

Searched refs:SensorPrivacyManager (Results 1 – 25 of 39) sorted by relevance

12

/frameworks/native/libs/sensorprivacy/
DSensorPrivacyManager.cpp28 SensorPrivacyManager::SensorPrivacyManager() in SensorPrivacyManager() function in android::SensorPrivacyManager
32 sp<hardware::ISensorPrivacyManager> SensorPrivacyManager::getService() in getService()
58 bool SensorPrivacyManager::supportsSensorToggle(int sensor) { in supportsSensorToggle()
74 void SensorPrivacyManager::addSensorPrivacyListener( in addSensorPrivacyListener()
83 status_t SensorPrivacyManager::addIndividualSensorPrivacyListener(int userId, int sensor, in addIndividualSensorPrivacyListener()
94 void SensorPrivacyManager::removeSensorPrivacyListener( in removeSensorPrivacyListener()
103 void SensorPrivacyManager::removeIndividualSensorPrivacyListener(int sensor, in removeIndividualSensorPrivacyListener()
112 bool SensorPrivacyManager::isSensorPrivacyEnabled() in isSensorPrivacyEnabled()
124 bool SensorPrivacyManager::isIndividualSensorPrivacyEnabled(int userId, int sensor) in isIndividualSensorPrivacyEnabled()
136 status_t SensorPrivacyManager::isIndividualSensorPrivacyEnabled(int userId, int sensor, in isIndividualSensorPrivacyEnabled()
[all …]
DAndroid.bp41 "SensorPrivacyManager.cpp",
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DIndividualSensorPrivacyControllerImpl.java19 import static android.hardware.SensorPrivacyManager.Sensors.CAMERA;
20 import static android.hardware.SensorPrivacyManager.Sensors.MICROPHONE;
22 import android.hardware.SensorPrivacyManager;
23 import android.hardware.SensorPrivacyManager.Sensors.Sensor;
24 import android.hardware.SensorPrivacyManager.Sources.Source;
36 private final @NonNull SensorPrivacyManager mSensorPrivacyManager;
41 @NonNull SensorPrivacyManager sensorPrivacyManager) { in IndividualSensorPrivacyControllerImpl()
DSensorPrivacyControllerImpl.java19 import android.hardware.SensorPrivacyManager;
33 SensorPrivacyManager.OnAllSensorPrivacyChangedListener {
34 private SensorPrivacyManager mSensorPrivacyManager;
42 public SensorPrivacyControllerImpl(@NonNull SensorPrivacyManager sensorPrivacyManager) { in SensorPrivacyControllerImpl()
DIndividualSensorPrivacyController.java19 import android.hardware.SensorPrivacyManager.Sensors.Sensor;
20 import android.hardware.SensorPrivacyManager.Sources.Source;
/frameworks/base/packages/SystemUI/src/com/android/systemui/sensorprivacy/television/
DTvUnblockSensorActivity.java19 import static android.hardware.SensorPrivacyManager.Sensors.CAMERA;
20 import static android.hardware.SensorPrivacyManager.Sensors.MICROPHONE;
21 import static android.hardware.SensorPrivacyManager.Sources.OTHER;
23 import android.hardware.SensorPrivacyManager;
61 boolean allSensors = getIntent().getBooleanExtra(SensorPrivacyManager.EXTRA_ALL_SENSORS, in onCreate()
66 mSensor = getIntent().getIntExtra(SensorPrivacyManager.EXTRA_SENSOR, -1); in onCreate()
/frameworks/base/packages/SystemUI/src/com/android/systemui/sensorprivacy/
DSensorUseStartedActivity.kt24 import android.hardware.SensorPrivacyManager in <lambda>()
25 import android.hardware.SensorPrivacyManager.EXTRA_ALL_SENSORS in <lambda>()
26 import android.hardware.SensorPrivacyManager.EXTRA_SENSOR in <lambda>()
27 import android.hardware.SensorPrivacyManager.Sources.DIALOG in <lambda>()
66 private const val CAMERA = SensorPrivacyManager.Sensors.CAMERA in <lambda>()
67 private const val MICROPHONE = SensorPrivacyManager.Sensors.MICROPHONE in <lambda>()
/frameworks/base/core/java/android/hardware/
DSensorPrivacyManager.java50 public final class SensorPrivacyManager { class
52 private static final String LOG_TAG = SensorPrivacyManager.class.getSimpleName();
64 public static final String EXTRA_SENSOR = SensorPrivacyManager.class.getName()
71 public static final String EXTRA_ALL_SENSORS = SensorPrivacyManager.class.getName()
177 private static SensorPrivacyManager sInstance;
195 private SensorPrivacyManager(Context context, ISensorPrivacyManager service) { in SensorPrivacyManager() method in SensorPrivacyManager
207 public static SensorPrivacyManager getInstance(Context context) { in getInstance()
213 sInstance = new SensorPrivacyManager(context, service); in getInstance()
/frameworks/native/libs/sensorprivacy/include/sensorprivacy/
DSensorPrivacyManager.h30 class SensorPrivacyManager
38 SensorPrivacyManager();
/frameworks/base/services/core/java/com/android/server/rotationresolver/
DRotationResolverManagerService.java34 import android.hardware.SensorPrivacyManager;
87 private final SensorPrivacyManager mPrivacyManager;
98 mPrivacyManager = SensorPrivacyManager.getInstance(context); in RotationResolverManagerService()
167 SensorPrivacyManager.Sensors.CAMERA); in resolveRotation()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/
DCameraToggleTile.java19 import static android.hardware.SensorPrivacyManager.Sensors.CAMERA;
24 import android.hardware.SensorPrivacyManager.Sensors.Sensor;
DMicrophoneToggleTile.java19 import static android.hardware.SensorPrivacyManager.Sensors.MICROPHONE;
24 import android.hardware.SensorPrivacyManager.Sensors.Sensor;
DSensorPrivacyToggleTile.java19 import static android.hardware.SensorPrivacyManager.Sources.QS_TILE;
22 import android.hardware.SensorPrivacyManager.Sensors.Sensor;
/frameworks/base/packages/SystemUI/src/com/android/systemui/tv/
DTvSystemUIModule.java23 import android.hardware.SensorPrivacyManager;
122 SensorPrivacyManager sensorPrivacyManager) { in provideSensorPrivacyController()
131 SensorPrivacyManager sensorPrivacyManager) { in provideIndividualSensorPrivacyController()
/frameworks/base/packages/SystemUI/src/com/android/systemui/dagger/
DSystemUIDefaultModule.java23 import android.hardware.SensorPrivacyManager;
129 SensorPrivacyManager sensorPrivacyManager) { in provideSensorPrivacyController()
138 SensorPrivacyManager sensorPrivacyManager) { in provideIndividualSensorPrivacyController()
DFrameworkServicesModule.java43 import android.hardware.SensorPrivacyManager;
332 static SensorPrivacyManager provideSensorPrivacyManager(Context context) { in provideSensorPrivacyManager()
333 return context.getSystemService(SensorPrivacyManager.class); in provideSensorPrivacyManager()
/frameworks/base/services/core/java/com/android/server/
DSensorPrivacyService.java33 import static android.hardware.SensorPrivacyManager.EXTRA_ALL_SENSORS;
34 import static android.hardware.SensorPrivacyManager.EXTRA_SENSOR;
35 import static android.hardware.SensorPrivacyManager.Sensors.CAMERA;
36 import static android.hardware.SensorPrivacyManager.Sensors.MICROPHONE;
37 import static android.hardware.SensorPrivacyManager.Sources.DIALOG;
38 import static android.hardware.SensorPrivacyManager.Sources.OTHER;
39 import static android.hardware.SensorPrivacyManager.Sources.QS_TILE;
40 import static android.hardware.SensorPrivacyManager.Sources.SETTINGS;
41 import static android.hardware.SensorPrivacyManager.Sources.SHELL;
81 import android.hardware.SensorPrivacyManager;
[all …]
/frameworks/base/services/core/java/com/android/server/attention/
DAttentionManagerService.java41 import android.hardware.SensorPrivacyManager;
119 private final SensorPrivacyManager mPrivacyManager;
151 mPrivacyManager = SensorPrivacyManager.getInstance(context); in AttentionManagerService()
255 if (mPrivacyManager.isSensorPrivacyEnabled(SensorPrivacyManager.Sensors.CAMERA)) { in checkAttention()
/frameworks/base/services/core/java/com/android/server/location/contexthub/
DContextHubService.java28 import android.hardware.SensorPrivacyManager;
302 SensorPrivacyManager.Sensors.MICROPHONE, (userId, enabled) -> { in ContextHubService()
1101 getCurrentUserId(), SensorPrivacyManager.Sensors.MICROPHONE);
/frameworks/base/packages/SystemUI/src/com/android/systemui/appops/
DAppOpsControllerImpl.java19 import static android.hardware.SensorPrivacyManager.Sensors.CAMERA;
20 import static android.hardware.SensorPrivacyManager.Sensors.MICROPHONE;
/frameworks/native/services/sensorservice/
DSensorService.cpp2235 SensorPrivacyManager spm; in registerSelf()
2242 SensorPrivacyManager spm; in unregisterSelf()
2245 SensorPrivacyManager::INDIVIDUAL_SENSOR_MICROPHONE, this); in unregisterSelf()
2280 SensorPrivacyManager spm; in registerSelfForIndividual()
2282 SensorPrivacyManager::INDIVIDUAL_SENSOR_MICROPHONE, this); in registerSelfForIndividual()
2289 SensorPrivacyManager::INDIVIDUAL_SENSOR_MICROPHONE); in registerSelfForIndividual()
/frameworks/base/packages/SystemUI/src/com/android/systemui/
DDependency.java21 import android.hardware.SensorPrivacyManager;
327 @Inject Lazy<SensorPrivacyManager> mSensorPrivacyManager;
390 mProviders.put(SensorPrivacyManager.class, mSensorPrivacyManager::get); in start()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/appops/
DAppOpsControllerTest.java19 import static android.hardware.SensorPrivacyManager.Sensors.CAMERA;
20 import static android.hardware.SensorPrivacyManager.Sensors.MICROPHONE;
/frameworks/av/services/audiopolicy/service/
DAudioPolicyService.cpp1406 SensorPrivacyManager spm; in registerSelf()
1412 SensorPrivacyManager spm; in registerSelfForMicrophoneOnly()
1414 SensorPrivacyManager::INDIVIDUAL_SENSOR_MICROPHONE); in registerSelfForMicrophoneOnly()
1416 SensorPrivacyManager::INDIVIDUAL_SENSOR_MICROPHONE, this); in registerSelfForMicrophoneOnly()
1420 SensorPrivacyManager spm; in unregisterSelf()
/frameworks/base/core/java/android/app/
DSystemServiceRegistry.java83 import android.hardware.SensorPrivacyManager;
630 registerService(Context.SENSOR_PRIVACY_SERVICE, SensorPrivacyManager.class, in registerService()
631 new CachedServiceFetcher<SensorPrivacyManager>() { in registerService()
633 public SensorPrivacyManager createService(ContextImpl ctx) { in registerService()
634 return SensorPrivacyManager.getInstance(ctx); in registerService()

12