Home
last modified time | relevance | path

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

/packages/apps/Car/SystemUI/tests/src/com/android/systemui/car/privacy/
DCameraQcPanelTest.java105 when(mCameraSensorInfoProvider.isSensorEnabled()).thenReturn(false); in testGetQCItem_cameraDisabled_noPrivacyItems_returnsOnlyCameraOffRow()
117 when(mCameraSensorInfoProvider.isSensorEnabled()).thenReturn(true); in testGetQCItem_cameraEnabled_noPrivacyItems_returnsOnlyCameraOffRow()
129 when(mCameraSensorInfoProvider.isSensorEnabled()).thenReturn(true); in testGetQCItem_cameraEnabled_onlyOneActivePrivacyItem_firstRowCameraEnabled()
144 when(mCameraSensorInfoProvider.isSensorEnabled()).thenReturn(true); in testGetQCItem_cameraEnabled_onlyOneActivePrivacyItem_secondRowActiveApp()
158 when(mCameraSensorInfoProvider.isSensorEnabled()).thenReturn(false); in testGetQCItem_cameraDisabled_onlyOneInactivePhonePrivacyItem_firstRowCameraDisabled()
175 when(mCameraSensorInfoProvider.isSensorEnabled()).thenReturn(false); in testGetQCItem_cameraDisabled_onlyOneInactivePhonePrivacyItem_secondRowInactiveApp()
188 when(mCameraSensorInfoProvider.isSensorEnabled()).thenReturn(true); in testGetQCItem_cameraEnabled_multiplePrivacyItems_firstRowCameraEnabled()
208 when(mCameraSensorInfoProvider.isSensorEnabled()).thenReturn(true); in testGetQCItem_cameraEnabled_multiplePrivacyItems_secondRowActiveApp()
228 when(mCameraSensorInfoProvider.isSensorEnabled()).thenReturn(true); in testGetQCItem_cameraEnabled_multiplePrivacyItems_thirdRowActivePhone()
249 when(mCameraSensorInfoProvider.isSensorEnabled()).thenReturn(true); in testGetQCItem_cameraEnabled_multiplePrivacyItems_fourthRowInactiveApps()
DMicQcPanelTest.java105 when(mMicSensorInfoProvider.isSensorEnabled()).thenReturn(false); in testGetQCItem_micDisabled_noPrivacyItems_returnsOnlyMicMutedRow()
117 when(mMicSensorInfoProvider.isSensorEnabled()).thenReturn(true); in testGetQCItem_micEnabled_noPrivacyItems_returnsOnlyMicMutedRow()
129 when(mMicSensorInfoProvider.isSensorEnabled()).thenReturn(true); in testGetQCItem_micEnabled_onlyOneActivePrivacyItem_firstRowMicEnabled()
144 when(mMicSensorInfoProvider.isSensorEnabled()).thenReturn(true); in testGetQCItem_micEnabled_onlyOneActivePrivacyItem_secondRowActiveApp()
157 when(mMicSensorInfoProvider.isSensorEnabled()).thenReturn(false); in testGetQCItem_micDisabled_onlyOneInactivePhonePrivacyItem_firstRowMicDisabled()
173 when(mMicSensorInfoProvider.isSensorEnabled()).thenReturn(false); in testGetQCItem_micDisabled_onlyOneInactivePhonePrivacyItem_secondRowInactiveApp()
186 when(mMicSensorInfoProvider.isSensorEnabled()).thenReturn(true); in testGetQCItem_micEnabled_multiplePrivacyItems_firstRowMicEnabled()
206 when(mMicSensorInfoProvider.isSensorEnabled()).thenReturn(true); in testGetQCItem_micEnabled_multiplePrivacyItems_secondRowActiveApp()
226 when(mMicSensorInfoProvider.isSensorEnabled()).thenReturn(true); in testGetQCItem_micEnabled_multiplePrivacyItems_thirdRowActivePhone()
247 when(mMicSensorInfoProvider.isSensorEnabled()).thenReturn(true); in testGetQCItem_micEnabled_multiplePrivacyItems_fourthRowInactiveApps()
/packages/apps/Car/SystemUI/src/com/android/systemui/car/systembar/
DPrivacyChipViewController.java73 mPrivacyChip.setSensorEnabled(isSensorEnabled());
141 public boolean isSensorEnabled() { in isSensorEnabled() method in PrivacyChipViewController
151 /* enable= */ isSensorEnabled()); in toggleSensor()
201 mPrivacyChip.setSensorEnabled(isSensorEnabled()); in addPrivacyChipView()
/packages/apps/Car/SystemUI/src/com/android/systemui/car/privacy/
DSensorQcPanel.java90 listBuilder.addRow(createSensorToggleRow(mSensorInfoProvider.isSensorEnabled())); in getQCItem()
265 boolean isSensorEnabled(); in isSensorEnabled() method
/packages/apps/Car/SystemUI/tests/src/com/android/systemui/car/systembar/
DMicPrivacyChipViewControllerTest.java296 assertThat(mMicPrivacyChipViewController.isSensorEnabled()).isFalse(); in isSensorEnabled_sensorPrivacyEnabled_returnFalse()
304 assertThat(mMicPrivacyChipViewController.isSensorEnabled()).isTrue(); in isSensorEnabled_sensorPrivacyDisabled_returnTrue()
DCameraPrivacyChipViewControllerTest.java296 assertThat(mCameraPrivacyChipViewController.isSensorEnabled()).isFalse(); in isSensorEnabled_sensorPrivacyEnabled_returnFalse()
304 assertThat(mCameraPrivacyChipViewController.isSensorEnabled()).isTrue(); in isSensorEnabled_sensorPrivacyDisabled_returnTrue()