Home
last modified time | relevance | path

Searched refs:SensorPrivacyManagerHelper (Results 1 – 7 of 7) sorted by relevance

/packages/apps/Settings/tests/robotests/src/com/android/settings/privacy/
DSensorPrivacyManagerHelperTest.java21 import static com.android.settings.utils.SensorPrivacyManagerHelper.SENSOR_CAMERA;
22 import static com.android.settings.utils.SensorPrivacyManagerHelper.SENSOR_MICROPHONE;
23 import static com.android.settings.utils.SensorPrivacyManagerHelper.TOGGLE_TYPE_HARDWARE;
24 import static com.android.settings.utils.SensorPrivacyManagerHelper.TOGGLE_TYPE_SOFTWARE;
41 import com.android.settings.utils.SensorPrivacyManagerHelper;
69 private SensorPrivacyManagerHelper mSensorPrivacyManagerHelper;
83 mSensorPrivacyManagerHelper = new SensorPrivacyManagerHelper(mContext); in setUp()
130 SensorPrivacyManagerHelper.Callback callback = in addCallbackNoFilter_invokeCallback()
131 mock(SensorPrivacyManagerHelper.Callback.class); in addCallbackNoFilter_invokeCallback()
148 SensorPrivacyManagerHelper.Callback callback = in addCallbackMicrophoneOnlyFilter_invokeCallbackMicrophoneOnly()
[all …]
DSensorToggleControllerTest.java21 import static com.android.settings.utils.SensorPrivacyManagerHelper.SENSOR_CAMERA;
22 import static com.android.settings.utils.SensorPrivacyManagerHelper.SENSOR_MICROPHONE;
23 import static com.android.settings.utils.SensorPrivacyManagerHelper.TOGGLE_TYPE_SOFTWARE;
42 import com.android.settings.utils.SensorPrivacyManagerHelper;
66 private SensorPrivacyManagerHelper mSensorPrivacyManagerHelper;
150 ArgumentCaptor<SensorPrivacyManagerHelper.Callback> callbackCaptor = in stopMicrophoneToggleController_invokeRemoveSensorBlockedListener()
151 ArgumentCaptor.forClass(SensorPrivacyManagerHelper.Callback.class); in stopMicrophoneToggleController_invokeRemoveSensorBlockedListener()
175 ArgumentCaptor<SensorPrivacyManagerHelper.Callback> callbackCaptor = in isChecked_disableMicrophoneSensorPrivacyThenChanged_returnFalse()
176 ArgumentCaptor.forClass(SensorPrivacyManagerHelper.Callback.class); in isChecked_disableMicrophoneSensorPrivacyThenChanged_returnFalse()
203 ArgumentCaptor<SensorPrivacyManagerHelper.Callback> callbackCaptor = in isChecked_enableMicrophoneSensorPrivacyThenChanged_returnTrue()
[all …]
/packages/apps/Settings/src/com/android/settings/privacy/
DSensorToggleController.java29 import com.android.settings.utils.SensorPrivacyManagerHelper;
40 SensorPrivacyManagerHelper.Callback, LifecycleObserver {
42 protected final SensorPrivacyManagerHelper mSensorPrivacyManagerHelper;
51 this(context, preferenceKey, SensorPrivacyManagerHelper.getInstance(context), false); in SensorToggleController()
56 SensorPrivacyManagerHelper sensorPrivacyManagerHelper, boolean ignoreDeviceConfig) { in SensorToggleController()
DMicToggleController.java21 import static com.android.settings.utils.SensorPrivacyManagerHelper.SENSOR_MICROPHONE;
25 import com.android.settings.utils.SensorPrivacyManagerHelper;
36 SensorPrivacyManagerHelper sensorPrivacyManagerHelper) { in MicToggleController()
DCameraToggleController.java21 import static com.android.settings.utils.SensorPrivacyManagerHelper.SENSOR_CAMERA;
27 import com.android.settings.utils.SensorPrivacyManagerHelper;
40 SensorPrivacyManagerHelper sensorPrivacyManagerHelper) { in CameraToggleController()
/packages/apps/Settings/src/com/android/settings/utils/
DSensorPrivacyManagerHelper.kt32 open class SensorPrivacyManagerHelper(context: Context) : in <lambda>() class
142 private var sInstance: SensorPrivacyManagerHelper? = null in <lambda>()
150 fun getInstance(context: Context): SensorPrivacyManagerHelper? { in <lambda>()
152 sInstance = SensorPrivacyManagerHelper(context) in <lambda>()
/packages/apps/Settings/src/com/android/settings/biometrics/face/
DFaceEnrollIntroduction.java58 import com.android.settings.utils.SensorPrivacyManagerHelper;
228 final SensorPrivacyManagerHelper helper = SensorPrivacyManagerHelper in onCreate()
231 .isSensorBlocked(SensorPrivacyManagerHelper.SENSOR_CAMERA); in onCreate()
534 final boolean cameraPrivacyEnabled = SensorPrivacyManagerHelper in onNextButtonClick()
536 .isSensorBlocked(SensorPrivacyManagerHelper.SENSOR_CAMERA); in onNextButtonClick()