Searched refs:isTorchAvailable (Results 1 – 5 of 5) sorted by relevance
29 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()
37 public static void setIsTorchAvailable(boolean isTorchAvailable) { in setIsTorchAvailable() argument38 sIsTorchAvailable = isTorchAvailable; in setIsTorchAvailable()42 protected static boolean isTorchAvailable(Context context) { in isTorchAvailable() method in ShadowFlashNotificationsUtils
63 static boolean isTorchAvailable(@NonNull Context context) { in isTorchAvailable() method in FlashNotificationsUtil118 final boolean isTorchAvailable = FlashNotificationsUtil.isTorchAvailable(context); in getFlashNotificationsState()124 return ((isTorchAvailable && isCameraFlashEnabled) ? State.CAMERA : State.OFF) in getFlashNotificationsState()
43 final int titleResource = FlashNotificationsUtil.isTorchAvailable(mContext) in displayPreference()
40 return FlashNotificationsUtil.isTorchAvailable(mContext) in getAvailabilityStatus()