Searched refs:isSensorEnabled (Results 1 – 6 of 6) sorted by relevance
105 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()
105 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()
73 mPrivacyChip.setSensorEnabled(isSensorEnabled());141 public boolean isSensorEnabled() { in isSensorEnabled() method in PrivacyChipViewController151 /* enable= */ isSensorEnabled()); in toggleSensor()201 mPrivacyChip.setSensorEnabled(isSensorEnabled()); in addPrivacyChipView()
90 listBuilder.addRow(createSensorToggleRow(mSensorInfoProvider.isSensorEnabled())); in getQCItem()265 boolean isSensorEnabled(); in isSensorEnabled() method
296 assertThat(mMicPrivacyChipViewController.isSensorEnabled()).isFalse(); in isSensorEnabled_sensorPrivacyEnabled_returnFalse()304 assertThat(mMicPrivacyChipViewController.isSensorEnabled()).isTrue(); in isSensorEnabled_sensorPrivacyDisabled_returnTrue()
296 assertThat(mCameraPrivacyChipViewController.isSensorEnabled()).isFalse(); in isSensorEnabled_sensorPrivacyEnabled_returnFalse()304 assertThat(mCameraPrivacyChipViewController.isSensorEnabled()).isTrue(); in isSensorEnabled_sensorPrivacyDisabled_returnTrue()