Home
last modified time | relevance | path

Searched refs:OneHandedSettingsUtils (Results 1 – 14 of 14) sorted by relevance

/packages/apps/Settings/tests/robotests/src/com/android/settings/gestures/
DOneHandedActionPullDownPrefControllerTest.java40 private OneHandedSettingsUtils mUtils;
47 mUtils = new OneHandedSettingsUtils(mContext); in setUp()
50 OneHandedSettingsUtils.setUserId(UserHandle.myUserId()); in setUp()
55 OneHandedSettingsUtils.setSwipeDownNotificationEnabled(mContext, true); in updateState_showNotificationEnabled_shouldUnchecked()
63 OneHandedSettingsUtils.setSwipeDownNotificationEnabled(mContext, false); in updateState_showNotificationDisabled_shouldChecked()
71 SystemProperties.set(OneHandedSettingsUtils.SUPPORT_ONE_HANDED_MODE, "true"); in getAvailabilityStatus_setOneHandedModeDisabled_shouldDisabled()
72 OneHandedSettingsUtils.setOneHandedModeEnabled(mContext, false); in getAvailabilityStatus_setOneHandedModeDisabled_shouldDisabled()
81 SystemProperties.set(OneHandedSettingsUtils.SUPPORT_ONE_HANDED_MODE, "true"); in getAvailabilityStatus_setNavi3ButtonMode_shouldDisabled()
82 OneHandedSettingsUtils.setOneHandedModeEnabled(mContext, true); in getAvailabilityStatus_setNavi3ButtonMode_shouldDisabled()
91 SystemProperties.set(OneHandedSettingsUtils.SUPPORT_ONE_HANDED_MODE, "true"); in getAvailabilityStatus_setNaviGesturalMode_shouldEnabled()
[all …]
DOneHandedActionShowNotificationPrefControllerTest.java40 private OneHandedSettingsUtils mUtils;
47 mUtils = new OneHandedSettingsUtils(mContext); in setUp()
50 OneHandedSettingsUtils.setUserId(UserHandle.myUserId()); in setUp()
55 OneHandedSettingsUtils.setOneHandedModeEnabled(mContext, true); in updateState_setGesturalMode_shouldEnabled()
64 OneHandedSettingsUtils.setSwipeDownNotificationEnabled(mContext, true); in updateState_ShowNotificationEnabled_shouldChecked()
72 OneHandedSettingsUtils.setSwipeDownNotificationEnabled(mContext, false); in updateState_showNotificationDisabled_shouldUnchecked()
80 SystemProperties.set(OneHandedSettingsUtils.SUPPORT_ONE_HANDED_MODE, "true"); in getAvailabilityStatus_setOneHandedModeDisabled_shouldDisabled()
81 OneHandedSettingsUtils.setOneHandedModeEnabled(mContext, false); in getAvailabilityStatus_setOneHandedModeDisabled_shouldDisabled()
90 SystemProperties.set(OneHandedSettingsUtils.SUPPORT_ONE_HANDED_MODE, "true"); in getAvailabilityStatus_setNavi3ButtonMode_shouldDisabled()
91 OneHandedSettingsUtils.setOneHandedModeEnabled(mContext, true); in getAvailabilityStatus_setNavi3ButtonMode_shouldDisabled()
[all …]
DOneHandedSettingsUtilsTest.java54 OneHandedSettingsUtils.setUserId(mCurrentUserId); in setUp()
59 OneHandedSettingsUtils.setOneHandedModeEnabled(mContext, true); in setOneHandedModeEnabled_setEnable_shouldReturnEnabled()
67 OneHandedSettingsUtils.setOneHandedModeEnabled(mContext, false); in setOneHandedModeEnabled_setDisable_shouldReturnDisabled()
75 OneHandedSettingsUtils.setTapsAppToExitEnabled(mContext, true); in setTapsAppToExitEnabled_setEnable_shouldReturnEnabled()
83 OneHandedSettingsUtils.setTapsAppToExitEnabled(mContext, false); in setTapsAppToExitEnabled_setDisable_shouldReturnDisabled()
91 OneHandedSettingsUtils.setTimeoutValue(mContext, in setTimeout_setNever_shouldReturnNeverValue()
92 OneHandedSettingsUtils.OneHandedTimeout.NEVER.getValue()); in setTimeout_setNever_shouldReturnNeverValue()
96 OneHandedSettingsUtils.OneHandedTimeout.NEVER.getValue(), mCurrentUserId)) in setTimeout_setNever_shouldReturnNeverValue()
102 OneHandedSettingsUtils.setTimeoutValue(mContext, in setTimeout_setShort_shouldReturnShortValue()
103 OneHandedSettingsUtils.OneHandedTimeout.SHORT.getValue()); in setTimeout_setShort_shouldReturnShortValue()
[all …]
DOneHandedMainSwitchPreferenceControllerTest.java39 private OneHandedSettingsUtils mUtils;
45 mUtils = new OneHandedSettingsUtils(mContext); in setUp()
47 OneHandedSettingsUtils.setUserId(UserHandle.myUserId()); in setUp()
53 assertThat(OneHandedSettingsUtils.isOneHandedModeEnabled(mContext)).isFalse(); in setChecked_setBoolean_checkIsTrueOrFalse()
56 assertThat(OneHandedSettingsUtils.isOneHandedModeEnabled(mContext)).isTrue(); in setChecked_setBoolean_checkIsTrueOrFalse()
61 SystemProperties.set(OneHandedSettingsUtils.SUPPORT_ONE_HANDED_MODE, "true"); in isChecked_setOneHandedModeEnabled_shouldReturnTrue()
63 OneHandedSettingsUtils.setOneHandedModeEnabled(mContext, true); in isChecked_setOneHandedModeEnabled_shouldReturnTrue()
70 SystemProperties.set(OneHandedSettingsUtils.SUPPORT_ONE_HANDED_MODE, "true"); in getAvailabilityStatus_setSupportOneHandedModeProperty_shouldAvailable()
79 SystemProperties.set(OneHandedSettingsUtils.SUPPORT_ONE_HANDED_MODE, "false"); in getAvailabilityStatus_unsetSupportOneHandedModeProperty_shouldDisabled()
88 SystemProperties.set(OneHandedSettingsUtils.SUPPORT_ONE_HANDED_MODE, "true"); in getAvailabilityStatus_set3ButtonMode_shouldDisabled()
DOneHandedEnablePreferenceControllerTest.java46 OneHandedSettingsUtils.setUserId(UserHandle.myUserId()); in setUp()
51 SystemProperties.set(OneHandedSettingsUtils.SUPPORT_ONE_HANDED_MODE, "true"); in getAvailabilityStatus_setSupportOneHandedModeProperty_shouldAvailable()
59 SystemProperties.set(OneHandedSettingsUtils.SUPPORT_ONE_HANDED_MODE, "false"); in getAvailabilityStatus_unsetSupportOneHandedModeProperty_shouldUnsupported()
67 OneHandedSettingsUtils.setOneHandedModeEnabled(mContext, true); in getSummary_enabledOneHanded_shouldDisplayOnSummary()
75 OneHandedSettingsUtils.setOneHandedModeEnabled(mContext, false); in getSummary_disabledOneHanded_shouldDisplayOffSummary()
DOneHandedPreferenceCategoryControllerTest.java46 private OneHandedSettingsUtils mUtils;
57 mUtils = new OneHandedSettingsUtils(mContext); in setUp()
59 OneHandedSettingsUtils.setUserId(UserHandle.myUserId()); in setUp()
DOneHandedSettingsTest.java58 SystemProperties.set(OneHandedSettingsUtils.SUPPORT_ONE_HANDED_MODE, "true"); in isPageSearchEnabled_setSupportOneHandedModeProperty_shouldReturnTrue()
69 SystemProperties.set(OneHandedSettingsUtils.SUPPORT_ONE_HANDED_MODE, "false"); in isPageSearchEnabled_unsetSupportOneHandedModeProperty_shouldReturnFalse()
/packages/apps/Settings/src/com/android/settings/gestures/
DOneHandedMainSwitchPreferenceController.java34 SettingsMainSwitchPreferenceController implements OneHandedSettingsUtils.TogglesCallback,
37 private final OneHandedSettingsUtils mUtils;
43 mUtils = new OneHandedSettingsUtils(context); in OneHandedMainSwitchPreferenceController()
48 return (OneHandedSettingsUtils.isSupportOneHandedMode() in getAvailabilityStatus()
49 && OneHandedSettingsUtils.getNavigationBarMode(mContext) != 0 /* 3-button mode */) in getAvailabilityStatus()
55 return OneHandedSettingsUtils.isOneHandedModeEnabled(mContext); in isChecked()
62 OneHandedSettingsUtils.setTapsAppToExitEnabled(mContext, true); in setChecked()
63 OneHandedSettingsUtils.setTimeoutValue(mContext, in setChecked()
64 OneHandedSettingsUtils.OneHandedTimeout.MEDIUM.getValue()); in setChecked()
66 OneHandedSettingsUtils.setOneHandedModeEnabled(mContext, isChecked); in setChecked()
[all …]
DOneHandedActionShowNotificationPrefController.java35 implements OneHandedSettingsUtils.TogglesCallback, LifecycleObserver, OnStart, OnStop {
37 private final OneHandedSettingsUtils mUtils;
43 mUtils = new OneHandedSettingsUtils(context); in OneHandedActionShowNotificationPrefController()
51 OneHandedSettingsUtils.isSwipeDownNotificationEnabled(mContext)); in updateState()
57 return (OneHandedSettingsUtils.isSupportOneHandedMode() in getAvailabilityStatus()
58 && OneHandedSettingsUtils.canEnableController(mContext)) in getAvailabilityStatus()
67 OneHandedSettingsUtils.setSwipeDownNotificationEnabled(mContext, true); in handlePreferenceTreeClick()
95 if (uri.equals(OneHandedSettingsUtils.ONE_HANDED_MODE_ENABLED_URI) in onChange()
96 || uri.equals(OneHandedSettingsUtils.SHORTCUT_ENABLED_URI)) { in onChange()
97 mPreference.setEnabled(OneHandedSettingsUtils.canEnableController(mContext)); in onChange()
[all …]
DOneHandedActionPullDownPrefController.java35 implements OneHandedSettingsUtils.TogglesCallback, LifecycleObserver, OnStart, OnStop {
37 private final OneHandedSettingsUtils mUtils;
43 mUtils = new OneHandedSettingsUtils(context); in OneHandedActionPullDownPrefController()
51 !OneHandedSettingsUtils.isSwipeDownNotificationEnabled(mContext)); in updateState()
57 return (OneHandedSettingsUtils.isSupportOneHandedMode() in getAvailabilityStatus()
58 && OneHandedSettingsUtils.canEnableController(mContext)) in getAvailabilityStatus()
67 OneHandedSettingsUtils.setSwipeDownNotificationEnabled(mContext, false); in handlePreferenceTreeClick()
95 if (uri.equals(OneHandedSettingsUtils.ONE_HANDED_MODE_ENABLED_URI) in onChange()
96 || uri.equals(OneHandedSettingsUtils.SHORTCUT_ENABLED_URI)) { in onChange()
97 mPreference.setEnabled(OneHandedSettingsUtils.canEnableController(mContext)); in onChange()
[all …]
DOneHandedSettings.java43 private OneHandedSettingsUtils mUtils;
47 OneHandedSettingsUtils.setUserId(UserHandle.myUserId()); in updatePreferenceStates()
55 OneHandedSettingsUtils.isSwipeDownNotificationEnabled(getContext()); in updatePreferenceStates()
87 mUtils = new OneHandedSettingsUtils(this.getContext()); in onStart()
132 return OneHandedSettingsUtils.isSupportOneHandedMode();
DOneHandedEnablePreferenceController.java35 return OneHandedSettingsUtils.isSupportOneHandedMode() ? AVAILABLE : UNSUPPORTED_ON_DEVICE; in getAvailabilityStatus()
41 OneHandedSettingsUtils.isOneHandedModeEnabled(mContext) in getSummary()
DOneHandedSettingsUtils.java36 public class OneHandedSettingsUtils { class
70 OneHandedSettingsUtils(Context context) { in OneHandedSettingsUtils() method in OneHandedSettingsUtils
230 return ((OneHandedSettingsUtils.isOneHandedModeEnabled(context) in canEnableController()
DOneHandedPreferenceCategoryController.java48 OneHandedSettingsUtils.getNavigationBarMode(mContext) == 0 /* 3 button */ in displayPreference()