Home
last modified time | relevance | path

Searched refs:mSensorPrivacyManager (Results 1 – 6 of 6) sorted by relevance

/cts/hostsidetests/devicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/
DSensorToggleRestrictionTest.java35 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/
DDirectReportAPI31Test.java51 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/
DDirectReportAPI30Test.java57 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/
DEventConnectionAPI30Test.java59 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/
DEventConnectionAPI31Test.java55 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/
DItsService.java428 private SensorPrivacyManager mSensorPrivacyManager; field in ItsService
523 mSensorPrivacyManager = getSystemService(SensorPrivacyManager.class); in onCreate()
1700 boolean hasPrivacySupport = mSensorPrivacyManager