/packages/apps/Settings/tests/robotests/src/com/android/settings/gestures/ |
D | OneHandedActionPullDownPrefControllerTest.java | 40 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 …]
|
D | OneHandedSettingsUtilsTest.java | 45 OneHandedSettingsUtils.setUserId(mCurrentUserId); in setUp() 50 OneHandedSettingsUtils.setOneHandedModeEnabled(mContext, true); in setOneHandedModeEnabled_setEnable_shouldReturnEnabled() 58 OneHandedSettingsUtils.setOneHandedModeEnabled(mContext, false); in setOneHandedModeEnabled_setDisable_shouldReturnDisabled() 66 OneHandedSettingsUtils.setTapsAppToExitEnabled(mContext, true); in setTapsAppToExitEnabled_setEnable_shouldReturnEnabled() 74 OneHandedSettingsUtils.setTapsAppToExitEnabled(mContext, false); in setTapsAppToExitEnabled_setDisable_shouldReturnDisabled() 82 OneHandedSettingsUtils.setTimeoutValue(mContext, in setTimeout_setNever_shouldReturnNeverValue() 83 OneHandedSettingsUtils.OneHandedTimeout.NEVER.getValue()); in setTimeout_setNever_shouldReturnNeverValue() 87 OneHandedSettingsUtils.OneHandedTimeout.NEVER.getValue(), mCurrentUserId)) in setTimeout_setNever_shouldReturnNeverValue() 93 OneHandedSettingsUtils.setTimeoutValue(mContext, in setTimeout_setShort_shouldReturnShortValue() 94 OneHandedSettingsUtils.OneHandedTimeout.SHORT.getValue()); in setTimeout_setShort_shouldReturnShortValue() [all …]
|
D | OneHandedActionShowNotificationPrefControllerTest.java | 40 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 …]
|
D | OneHandedMainSwitchPreferenceControllerTest.java | 39 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()
|
D | OneHandedEnablePreferenceControllerTest.java | 46 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()
|
D | OneHandedPreferenceCategoryControllerTest.java | 46 private OneHandedSettingsUtils mUtils; 57 mUtils = new OneHandedSettingsUtils(mContext); in setUp() 59 OneHandedSettingsUtils.setUserId(UserHandle.myUserId()); in setUp()
|
D | OneHandedSettingsTest.java | 86 SystemProperties.set(OneHandedSettingsUtils.SUPPORT_ONE_HANDED_MODE, "true"); in isPageSearchEnabled_setSupportOneHandedModeProperty_shouldReturnTrue() 97 SystemProperties.set(OneHandedSettingsUtils.SUPPORT_ONE_HANDED_MODE, "false"); in isPageSearchEnabled_unsetSupportOneHandedModeProperty_shouldReturnFalse()
|
/packages/apps/Settings/src/com/android/settings/gestures/ |
D | OneHandedActionShowNotificationPrefController.java | 35 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.SOFTWARE_SHORTCUT_ENABLED_URI) in onChange() 97 || uri.equals(OneHandedSettingsUtils.HARDWARE_SHORTCUT_ENABLED_URI)) { in onChange() [all …]
|
D | OneHandedActionPullDownPrefController.java | 35 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.SOFTWARE_SHORTCUT_ENABLED_URI) in onChange() 97 || uri.equals(OneHandedSettingsUtils.HARDWARE_SHORTCUT_ENABLED_URI)) { in onChange() [all …]
|
D | OneHandedMainSwitchPreferenceController.java | 35 SettingsMainSwitchPreferenceController implements OneHandedSettingsUtils.TogglesCallback, 38 private final OneHandedSettingsUtils mUtils; 44 mUtils = new OneHandedSettingsUtils(context); in OneHandedMainSwitchPreferenceController() 49 return (OneHandedSettingsUtils.isSupportOneHandedMode() in getAvailabilityStatus() 50 && OneHandedSettingsUtils.getNavigationBarMode(mContext) != 0 /* 3-button mode */) in getAvailabilityStatus() 56 return OneHandedSettingsUtils.isOneHandedModeEnabled(mContext); in isChecked() 63 OneHandedSettingsUtils.setTapsAppToExitEnabled(mContext, true); in setChecked() 64 OneHandedSettingsUtils.setTimeoutValue(mContext, in setChecked() 65 OneHandedSettingsUtils.OneHandedTimeout.MEDIUM.getValue()); in setChecked() 67 OneHandedSettingsUtils.setOneHandedModeEnabled(mContext, isChecked); in setChecked() [all …]
|
D | OneHandedEnablePreferenceController.java | 35 implements OneHandedSettingsUtils.TogglesCallback, LifecycleObserver, OnStart, OnStop { 37 private final OneHandedSettingsUtils mUtils; 42 mUtils = new OneHandedSettingsUtils(context); in OneHandedEnablePreferenceController() 47 return OneHandedSettingsUtils.isSupportOneHandedMode() ? AVAILABLE : UNSUPPORTED_ON_DEVICE; in getAvailabilityStatus() 53 OneHandedSettingsUtils.isOneHandedModeEnabled(mContext) in getSummary() 78 if (uri.equals(OneHandedSettingsUtils.ONE_HANDED_MODE_ENABLED_URI)) { in onChange()
|
D | OneHandedSettings.java | 49 private OneHandedSettingsUtils mUtils; 60 OneHandedSettingsUtils.setUserId(UserHandle.myUserId()); in updatePreferenceStates() 66 OneHandedSettingsUtils.isSwipeDownNotificationEnabled(getContext()); in updatePreferenceStates() 111 mUtils = new OneHandedSettingsUtils(this.getContext()); in onStart() 174 return OneHandedSettingsUtils.isSupportOneHandedMode();
|
D | OneHandedSettingsUtils.java | 37 public class OneHandedSettingsUtils { class 73 OneHandedSettingsUtils(Context context) { in OneHandedSettingsUtils() method in OneHandedSettingsUtils 233 return ((OneHandedSettingsUtils.isOneHandedModeEnabled(context) in canEnableController()
|
D | OneHandedPreferenceCategoryController.java | 48 OneHandedSettingsUtils.getNavigationBarMode(mContext) == 0 /* 3 button */ in displayPreference()
|
/packages/apps/Settings/src/com/android/settings/shortcut/ |
D | CreateShortcutPreferenceController.java | 53 import com.android.settings.gestures.OneHandedSettingsUtils; 191 if (!OneHandedSettingsUtils.isSupportOneHandedMode()) { in queryShortcuts()
|