Home
last modified time | relevance | path

Searched refs:isTorchAvailable (Results 1 – 5 of 5) sorted by relevance

/packages/apps/Settings/tests/robotests/src/com/android/settings/accessibility/
DFlashNotificationsUtilTest.java29 import static com.android.settings.accessibility.FlashNotificationsUtil.isTorchAvailable;
83 assertThat(isTorchAvailable(mContext)).isFalse(); in isTorchAvailable_nullCameraManager_assertFalse()
88 assertThat(isTorchAvailable(mContext)).isFalse(); in isTorchAvailable_noCamera_assertFalse()
95 assertThat(isTorchAvailable(mContext)).isFalse(); in isTorchAvailable_getCameraIdListThrowException_assertFalse()
106 assertThat(isTorchAvailable(mContext)).isFalse(); in isTorchAvailable_getCameraCharacteristicsThrowException_assertFalse()
113 assertThat(isTorchAvailable(mContext)).isFalse(); in isTorchAvailable_torchNotPresent_assertFalse()
120 assertThat(isTorchAvailable(mContext)).isTrue(); in isTorchAvailable_torchPresent_assertTrue()
131 assertThat(isTorchAvailable(mContext)).isFalse(); in isTorchAvailable_lensFacingFront_assertFalse()
DShadowFlashNotificationsUtils.java37 public static void setIsTorchAvailable(boolean isTorchAvailable) { in setIsTorchAvailable() argument
38 sIsTorchAvailable = isTorchAvailable; in setIsTorchAvailable()
42 protected static boolean isTorchAvailable(Context context) { in isTorchAvailable() method in ShadowFlashNotificationsUtils
/packages/apps/Settings/src/com/android/settings/accessibility/
DFlashNotificationsUtil.java63 static boolean isTorchAvailable(@NonNull Context context) { in isTorchAvailable() method in FlashNotificationsUtil
118 final boolean isTorchAvailable = FlashNotificationsUtil.isTorchAvailable(context); in getFlashNotificationsState()
124 return ((isTorchAvailable && isCameraFlashEnabled) ? State.CAMERA : State.OFF) in getFlashNotificationsState()
DFlashNotificationsIntroPreferenceController.java43 final int titleResource = FlashNotificationsUtil.isTorchAvailable(mContext) in displayPreference()
DCameraFlashNotificationPreferenceController.java40 return FlashNotificationsUtil.isTorchAvailable(mContext) in getAvailabilityStatus()