/cts/hostsidetests/devicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/ |
D | SensorToggleRestrictionTest.java | 35 private SensorPrivacyManager mSensorPrivacyManager; field in SensorToggleRestrictionTest 40 mSensorPrivacyManager = mContext.getSystemService(SensorPrivacyManager.class); in setUp() 52 if (!mSensorPrivacyManager.supportsSensorToggle(SensorPrivacyManager.Sensors.CAMERA)) { in testCameraToggle_RestrictionSet_CannotChangeSensorPrivacy() 56 ShellIdentityUtils.invokeMethodWithShellPermissions(mSensorPrivacyManager, in testCameraToggle_RestrictionSet_CannotChangeSensorPrivacy() 60 ShellIdentityUtils.invokeMethodWithShellPermissionsNoReturn(mSensorPrivacyManager, in testCameraToggle_RestrictionSet_CannotChangeSensorPrivacy() 64 ShellIdentityUtils.invokeMethodWithShellPermissions(mSensorPrivacyManager, in testCameraToggle_RestrictionSet_CannotChangeSensorPrivacy() 69 if (!mSensorPrivacyManager.supportsSensorToggle(SensorPrivacyManager.Sensors.MICROPHONE)) { in testMicrophoneToggle_RestrictionSet_CannotChangeSensorPrivacy() 73 ShellIdentityUtils.invokeMethodWithShellPermissions(mSensorPrivacyManager, in testMicrophoneToggle_RestrictionSet_CannotChangeSensorPrivacy() 77 ShellIdentityUtils.invokeMethodWithShellPermissionsNoReturn(mSensorPrivacyManager, in testMicrophoneToggle_RestrictionSet_CannotChangeSensorPrivacy() 81 ShellIdentityUtils.invokeMethodWithShellPermissions(mSensorPrivacyManager, in testMicrophoneToggle_RestrictionSet_CannotChangeSensorPrivacy() [all …]
|
/cts/tests/sensor/sensorratepermission/DirectReportAPI31/src/android/sensorratepermission/cts/directreportapi31/ |
D | DirectReportAPI31Test.java | 51 private static SensorPrivacyManager mSensorPrivacyManager; field in DirectReportAPI31Test 73 mSensorPrivacyManager = context.getSystemService(SensorPrivacyManager.class); in setUp() 74 Assume.assumeTrue(mSensorPrivacyManager in setUp() 82 mDirectReportTestHelper.flipAndAssertMicToggleOff(mUserID, mSensorPrivacyManager); in tearDown() 88 mDirectReportTestHelper.flipAndAssertMicToggleOn(mUserID, mSensorPrivacyManager); in testSamplingRateMicToggleOn() 101 mDirectReportTestHelper.flipAndAssertMicToggleOff(mUserID, mSensorPrivacyManager); in testSamplingRateMicToggleOff()
|
/cts/tests/sensor/sensorratepermission/DirectReportAPI30/src/android/sensorratepermission/cts/directreportapi30/ |
D | DirectReportAPI30Test.java | 57 private static SensorPrivacyManager mSensorPrivacyManager; field in DirectReportAPI30Test 80 mSensorPrivacyManager = context.getSystemService(SensorPrivacyManager.class); in setUp() 81 Assume.assumeTrue(mSensorPrivacyManager in setUp() 89 mDirectReportTestHelper.flipAndAssertMicToggleOff(mUserID, mSensorPrivacyManager); in tearDown() 102 mDirectReportTestHelper.flipAndAssertMicToggleOff(mUserID, mSensorPrivacyManager); in testSamplingRateMicToggleOff() 115 mDirectReportTestHelper.flipAndAssertMicToggleOn(mUserID, mSensorPrivacyManager); in testSamplingRateMicToggleOn() 142 mDirectReportTestHelper.flipAndAssertMicToggleOff(mUserID, mSensorPrivacyManager); in testSamplingRateMicToggleOffOnOff() 156 mDirectReportTestHelper.flipAndAssertMicToggleOn(mUserID, mSensorPrivacyManager); in testSamplingRateMicToggleOffOnOff() 164 mDirectReportTestHelper.flipAndAssertMicToggleOff(mUserID, mSensorPrivacyManager); in testSamplingRateMicToggleOffOnOff()
|
/cts/tests/sensor/sensorratepermission/EventConnectionAPI30/src/android/sensorratepermission/cts/eventconnectionapi30/ |
D | EventConnectionAPI30Test.java | 59 private static SensorPrivacyManager mSensorPrivacyManager; field in EventConnectionAPI30Test 95 mSensorPrivacyManager = context.getSystemService(SensorPrivacyManager.class); in setUp() 96 Assume.assumeTrue(mSensorPrivacyManager in setUp() 109 mEventConnectionTestHelper.flipAndAssertMicToggleOff(mUserID, mSensorPrivacyManager); in tearDown() 120 mEventConnectionTestHelper.flipAndAssertMicToggleOff(mUserID, mSensorPrivacyManager); in testSamplingRateMicToggleOff() 134 mEventConnectionTestHelper.flipAndAssertMicToggleOn(mUserID, mSensorPrivacyManager); in testSamplingRateMicToggleOn() 159 mEventConnectionTestHelper.flipAndAssertMicToggleOff(mUserID, mSensorPrivacyManager); in testSamplingRateMicToggleOffOnOff() 166 mEventConnectionTestHelper.flipAndAssertMicToggleOn(mUserID, mSensorPrivacyManager); in testSamplingRateMicToggleOffOnOff() 181 mEventConnectionTestHelper.flipAndAssertMicToggleOff(mUserID, mSensorPrivacyManager); in testSamplingRateMicToggleOffOnOff()
|
/cts/tests/sensor/sensorratepermission/EventConnectionAPI31/src/android/sensorratepermission/cts/eventconnectionapi31/ |
D | EventConnectionAPI31Test.java | 55 private static SensorPrivacyManager mSensorPrivacyManager; field in EventConnectionAPI31Test 89 mSensorPrivacyManager = context.getSystemService(SensorPrivacyManager.class); in setUp() 90 Assume.assumeTrue(mSensorPrivacyManager in setUp() 98 mEventConnectionTestHelper.flipAndAssertMicToggleOff(mUserID, mSensorPrivacyManager); in tearDown() 104 mEventConnectionTestHelper.flipAndAssertMicToggleOn(mUserID, mSensorPrivacyManager); in testSamplingRateMicToggleOn() 119 mEventConnectionTestHelper.flipAndAssertMicToggleOff(mUserID, mSensorPrivacyManager); in testSamplingRateMicToggleOff()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/camera/its/ |
D | ItsService.java | 428 private SensorPrivacyManager mSensorPrivacyManager; field in ItsService 523 mSensorPrivacyManager = getSystemService(SensorPrivacyManager.class); in onCreate() 1700 boolean hasPrivacySupport = mSensorPrivacyManager
|