Searched refs:FlashNotificationsUtil (Results 1 – 13 of 13) sorted by relevance
26 import static com.android.settings.accessibility.FlashNotificationsUtil.getColorDescriptionText;27 import static com.android.settings.accessibility.FlashNotificationsUtil.getFlashNotificationsState;28 import static com.android.settings.accessibility.FlashNotificationsUtil.getScreenColor;29 import static com.android.settings.accessibility.FlashNotificationsUtil.isTorchAvailable;136 assertThrows(FlashNotificationsUtil.ScreenColorNotFoundException.class, () -> in getScreenColor_undefinedColor_throwException()163 .isEqualTo(FlashNotificationsUtil.State.OFF); in getFlashNotificationsState_torchPresent_cameraOff_screenOff_assertOff()173 .isEqualTo(FlashNotificationsUtil.State.OFF); in getFlashNotificationsState_torchNotPresent_cameraOn_screenOff_assertOff()183 .isEqualTo(FlashNotificationsUtil.State.CAMERA); in getFlashNotificationsState_torchPresent_cameraOn_screenOff_assertCamera()193 .isEqualTo(FlashNotificationsUtil.State.SCREEN); in getFlashNotificationsState_torchPresent_cameraOff_screenOn_assertScreen()203 .isEqualTo(FlashNotificationsUtil.State.CAMERA_SCREEN); in testGetFlashNotificationsState_torchPresent_cameraOn_screenOn_assertCameraScreen()
19 import static com.android.settings.accessibility.FlashNotificationsUtil.ACTION_FLASH_NOTIFICATION_S…20 import static com.android.settings.accessibility.FlashNotificationsUtil.EXTRA_FLASH_NOTIFICATION_PR…21 import static com.android.settings.accessibility.FlashNotificationsUtil.TYPE_LONG_PREVIEW;22 import static com.android.settings.accessibility.FlashNotificationsUtil.TYPE_SHORT_PREVIEW;101 setFlashNotificationsState(FlashNotificationsUtil.State.OFF); in testDisplayPreference_torchPresent_cameraOff_screenOff_verifyDisabled()109 setFlashNotificationsState(FlashNotificationsUtil.State.CAMERA); in testDisplayPreference_torchPresent_cameraOn_screenOff_verifyEnabled()117 setFlashNotificationsState(FlashNotificationsUtil.State.SCREEN); in testDisplayPreference_torchPresent_cameraOff_screenOn_verifyEnabled()125 setFlashNotificationsState(FlashNotificationsUtil.State.CAMERA_SCREEN); in testDisplayPreference_torchPresent_cameraOn_screenOn_verifyEnabled()
23 import static com.android.settings.accessibility.FlashNotificationsUtil.ACTION_FLASH_NOTIFICATION_S…24 import static com.android.settings.accessibility.FlashNotificationsUtil.ACTION_FLASH_NOTIFICATION_S…25 import static com.android.settings.accessibility.FlashNotificationsUtil.EXTRA_FLASH_NOTIFICATION_PR…26 import static com.android.settings.accessibility.FlashNotificationsUtil.EXTRA_FLASH_NOTIFICATION_PR…27 import static com.android.settings.accessibility.FlashNotificationsUtil.TYPE_LONG_PREVIEW;28 import static com.android.settings.accessibility.FlashNotificationsUtil.TYPE_SHORT_PREVIEW;
72 setFlashNotificationsState(FlashNotificationsUtil.State.OFF); in getSummary_stateOff_assertOff()80 setFlashNotificationsState(FlashNotificationsUtil.State.CAMERA); in getSummary_stateCamera_assertCamera()88 setFlashNotificationsState(FlashNotificationsUtil.State.SCREEN); in getSummary_stateScreen_assertScreen()96 setFlashNotificationsState(FlashNotificationsUtil.State.CAMERA_SCREEN); in getSummary_stateCameraScreen_assertCameraScreen()
19 import static com.android.settings.accessibility.FlashNotificationsUtil.State;30 @Implements(FlashNotificationsUtil.class)
21 import static com.android.settings.accessibility.FlashNotificationsUtil.DEFAULT_SCREEN_FLASH_COLOR;
45 switch (FlashNotificationsUtil.getFlashNotificationsState(mContext)) { in getSummary()46 case FlashNotificationsUtil.State.CAMERA: in getSummary()49 case FlashNotificationsUtil.State.SCREEN: in getSummary()52 case FlashNotificationsUtil.State.CAMERA_SCREEN: in getSummary()55 case FlashNotificationsUtil.State.OFF: in getSummary()
33 class FlashNotificationsUtil { class51 FlashNotificationsUtil.State.OFF,52 FlashNotificationsUtil.State.CAMERA,53 FlashNotificationsUtil.State.SCREEN,54 FlashNotificationsUtil.State.CAMERA_SCREEN,118 final boolean isTorchAvailable = FlashNotificationsUtil.isTorchAvailable(context); in getFlashNotificationsState()
19 import static com.android.settings.accessibility.FlashNotificationsUtil.ACTION_FLASH_NOTIFICATION_S…20 import static com.android.settings.accessibility.FlashNotificationsUtil.ACTION_FLASH_NOTIFICATION_S…21 import static com.android.settings.accessibility.FlashNotificationsUtil.DEFAULT_SCREEN_FLASH_COLOR;22 import static com.android.settings.accessibility.FlashNotificationsUtil.EXTRA_FLASH_NOTIFICATION_PR…23 import static com.android.settings.accessibility.FlashNotificationsUtil.EXTRA_FLASH_NOTIFICATION_PR…24 import static com.android.settings.accessibility.FlashNotificationsUtil.TYPE_LONG_PREVIEW;
20 import static com.android.settings.accessibility.FlashNotificationsUtil.ACTION_FLASH_NOTIFICATION_S…21 import static com.android.settings.accessibility.FlashNotificationsUtil.EXTRA_FLASH_NOTIFICATION_PR…22 import static com.android.settings.accessibility.FlashNotificationsUtil.TYPE_SHORT_PREVIEW;113 preference.setEnabled(FlashNotificationsUtil.getFlashNotificationsState(mContext) in updateState()114 != FlashNotificationsUtil.State.OFF); in updateState()
21 import static com.android.settings.accessibility.FlashNotificationsUtil.DEFAULT_SCREEN_FLASH_COLOR;82 return FlashNotificationsUtil.getColorDescriptionText(mContext, in getSummary()
43 final int titleResource = FlashNotificationsUtil.isTorchAvailable(mContext) in displayPreference()
40 return FlashNotificationsUtil.isTorchAvailable(mContext) in getAvailabilityStatus()