Home
last modified time | relevance | path

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

/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/common/
DActionButtonsPreferenceTest.java19 import static com.android.car.settings.common.ActionButtonsPreference.ActionButtons;
80 mPref.getButton(ActionButtons.BUTTON1).setText(R.string.settings_label); in onBindViewHolder_setTitle_shouldShowButtonByDefault()
81 mPref.getButton(ActionButtons.BUTTON2).setText(R.string.settings_label); in onBindViewHolder_setTitle_shouldShowButtonByDefault()
82 mPref.getButton(ActionButtons.BUTTON3).setText(R.string.settings_label); in onBindViewHolder_setTitle_shouldShowButtonByDefault()
83 mPref.getButton(ActionButtons.BUTTON4).setText(R.string.settings_label); in onBindViewHolder_setTitle_shouldShowButtonByDefault()
99 mPref.getButton(ActionButtons.BUTTON1).setIcon(R.drawable.ic_lock); in onBindViewHolder_setIcon_shouldShowButtonByDefault()
100 mPref.getButton(ActionButtons.BUTTON2).setIcon(R.drawable.ic_lock); in onBindViewHolder_setIcon_shouldShowButtonByDefault()
101 mPref.getButton(ActionButtons.BUTTON3).setIcon(R.drawable.ic_lock); in onBindViewHolder_setIcon_shouldShowButtonByDefault()
102 mPref.getButton(ActionButtons.BUTTON4).setIcon(R.drawable.ic_lock); in onBindViewHolder_setIcon_shouldShowButtonByDefault()
132 mPref.getButton(ActionButtons.BUTTON1).setText(R.string.settings_label).setVisible(false); in onBindViewHolder_setVisibleIsGoneAndSetTitle_shouldNotShowButton()
[all …]
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/wifi/details/
DWifiDetailsActionButtonsPreferenceControllerTest.java19 import static com.android.car.settings.common.ActionButtonsPreference.ActionButtons;
100 assertThat(mActionButtonsPreference.getButton(ActionButtons.BUTTON2).isVisible()).isTrue(); in updateState_connectNotNeeded_disconnectButtonShown()
101 assertThat(mActionButtonsPreference.getButton(ActionButtons.BUTTON2).getText().toString()) in updateState_connectNotNeeded_disconnectButtonShown()
112 assertThat(mActionButtonsPreference.getButton(ActionButtons.BUTTON2).isVisible()).isTrue(); in updateState_needConnect_connectButtonShown()
113 assertThat(mActionButtonsPreference.getButton(ActionButtons.BUTTON2).getText().toString()) in updateState_needConnect_connectButtonShown()
123 assertThat(mActionButtonsPreference.getButton(ActionButtons.BUTTON1).isVisible()).isTrue(); in updateState_canForget_forgetButtonShown()
132 assertThat(mActionButtonsPreference.getButton(ActionButtons.BUTTON1).isVisible()).isFalse(); in updateState_canNotForget_forgetButtonHidden()
/packages/apps/Car/Settings/src/com/android/car/settings/bluetooth/
DBluetoothDeviceActionButtonsPreferenceController.java19 import static com.android.car.settings.common.ActionButtonsPreference.ActionButtons;
49 updateConnectionButton(getPreference().getButton(ActionButtons.BUTTON1)); in onCreateInternal()
50 updateForgetButton(getPreference().getButton(ActionButtons.BUTTON2)); in onCreateInternal()
55 updateConnectionButton(preference.getButton(ActionButtons.BUTTON1)); in updateState()
/packages/apps/Car/Settings/src/com/android/car/settings/profiles/
DProfileDetailsActionButtonsPreferenceController.java21 import static com.android.car.settings.common.ActionButtonsPreference.ActionButtons;
127 ActionButtonInfo renameButton = getPreference().getButton(ActionButtons.BUTTON1); in onStartInternal()
128 ActionButtonInfo makeAdminButton = getPreference().getButton(ActionButtons.BUTTON2); in onStartInternal()
129 ActionButtonInfo profilesButton = getPreference().getButton(ActionButtons.BUTTON3); in onStartInternal()
130 ActionButtonInfo deleteButton = getPreference().getButton(ActionButtons.BUTTON4); in onStartInternal()
/packages/apps/Car/Settings/src/com/android/car/settings/wifi/details/
DWifiDetailsActionButtonsPreferenceController.java19 import static com.android.car.settings.common.ActionButtonsPreference.ActionButtons;
54 .getButton(ActionButtons.BUTTON1) in updateState()
66 .getButton(ActionButtons.BUTTON2) in updateState()
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/bluetooth/
DBluetoothDeviceActionButtonsPreferenceControllerTest.java19 import static com.android.car.settings.common.ActionButtonsPreference.ActionButtons;
176 return mActionButtonsPreference.getButton(ActionButtons.BUTTON2); in findForgetButton()
180 return mActionButtonsPreference.getButton(ActionButtons.BUTTON1); in findConnectionButton()
/packages/apps/Settings/src/com/android/settings/spa/app/appinfo/
DClonePageAppButtons.kt28 import com.android.settingslib.spa.widget.button.ActionButtons
33 ActionButtons(actionButtons = presenter.getActionButtons()) in ClonePageAppButtons()
DAppButtons.kt27 import com.android.settingslib.spa.widget.button.ActionButtons
47 ActionButtons(actionButtons = presenter.getActionButtons()) in AppButtons()
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/profiles/
DProfileDetailsActionButtonsPreferenceControllerTest.java22 import static com.android.car.settings.common.ActionButtonsPreference.ActionButtons;
404 return mPreference.getButton(ActionButtons.BUTTON1); in getRenameButton()
408 return mPreference.getButton(ActionButtons.BUTTON2); in getMakeAdminButton()
412 return mPreference.getButton(ActionButtons.BUTTON3); in getProfilesButton()
416 return mPreference.getButton(ActionButtons.BUTTON4); in getDeleteButton()
/packages/apps/Car/Settings/src/com/android/car/settings/storage/
DStorageApplicationActionButtonsPreferenceController.java19 import static com.android.car.settings.common.ActionButtonsPreference.ActionButtons;
167 mClearStorageButton = getPreference().getButton(ActionButtons.BUTTON1); in onCreateInternal()
168 mClearCacheButton = getPreference().getButton(ActionButtons.BUTTON2); in onCreateInternal()
/packages/apps/Car/Settings/src/com/android/car/settings/common/
DActionButtonsPreference.java49 public enum ActionButtons { enum in ActionButtonsPreference
147 public ActionButtonInfo getButton(ActionButtons button) { in getButton()
/packages/apps/Car/Settings/src/com/android/car/settings/applications/
DApplicationActionButtonsPreferenceController.java24 import static com.android.car.settings.common.ActionButtonsPreference.ActionButtons;
305 getPreference().getButton(ActionButtons.BUTTON2) in onCreateInternal()
388 getPreference().getButton(ActionButtons.BUTTON2).setEnabled(enabled); in updateForceStopButtonInner()
392 ActionButtonInfo uninstallButton = getPreference().getButton(ActionButtons.BUTTON1); in updateUninstallButtonInner()
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/storage/
DStorageApplicationActionButtonsPreferenceControllerTest.java19 import static com.android.car.settings.common.ActionButtonsPreference.ActionButtons;
425 return mActionButtonsPreference.getButton(ActionButtons.BUTTON2); in getClearCacheButton()
429 return mActionButtonsPreference.getButton(ActionButtons.BUTTON1); in getClearStorageButton()
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/applications/
DApplicationActionButtonsPreferenceControllerTest.java25 import static com.android.car.settings.common.ActionButtonsPreference.ActionButtons;
827 return mActionButtonsPreference.getButton(ActionButtons.BUTTON2); in getForceStopButton()
836 return mActionButtonsPreference.getButton(ActionButtons.BUTTON1); in getUninstallButton()