Home
last modified time | relevance | path

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

/aosp12/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/common/
H A DActionButtonsPreferenceTest.java186 mPref.getButton(ActionButtons.BUTTON1).setVisible(true); in onBindViewHolder_setVisibility_shouldUpdateButtonVisibility()
187 mPref.getButton(ActionButtons.BUTTON2).setVisible(true); in onBindViewHolder_setVisibility_shouldUpdateButtonVisibility()
188 mPref.getButton(ActionButtons.BUTTON3).setVisible(true); in onBindViewHolder_setVisibility_shouldUpdateButtonVisibility()
189 mPref.getButton(ActionButtons.BUTTON4).setVisible(true); in onBindViewHolder_setVisibility_shouldUpdateButtonVisibility()
205 mPref.getButton(ActionButtons.BUTTON1).setEnabled(true); in onBindViewHolder_setEnabled_shouldEnableButton()
206 mPref.getButton(ActionButtons.BUTTON2).setEnabled(false); in onBindViewHolder_setEnabled_shouldEnableButton()
207 mPref.getButton(ActionButtons.BUTTON3).setEnabled(true); in onBindViewHolder_setEnabled_shouldEnableButton()
208 mPref.getButton(ActionButtons.BUTTON4).setEnabled(false); in onBindViewHolder_setEnabled_shouldEnableButton()
266 mPref.getButton(ActionButtons.BUTTON1).setEnabled(true); in onButtonClicked_shouldOnlyTriggerListenerIfEnabled()
267 mPref.getButton(ActionButtons.BUTTON2).setEnabled(false); in onButtonClicked_shouldOnlyTriggerListenerIfEnabled()
[all …]
/aosp12/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/wifi/details/
H A 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()
/aosp12/packages/apps/Car/Settings/src/com/android/car/settings/bluetooth/
H A 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()
/aosp12/packages/apps/Car/Settings/src/com/android/car/settings/profiles/
H A 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()
/aosp12/packages/apps/Car/Settings/src/com/android/car/settings/wifi/details/
H A DWifiDetailsActionButtonsPreferenceController.java19 import static com.android.car.settings.common.ActionButtonsPreference.ActionButtons;
54 .getButton(ActionButtons.BUTTON1) in updateState()
66 .getButton(ActionButtons.BUTTON2) in updateState()
/aosp12/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/bluetooth/
H A 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()
/aosp12/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/profiles/
H A DProfileDetailsActionButtonsPreferenceControllerTest.java22 import static com.android.car.settings.common.ActionButtonsPreference.ActionButtons;
396 return mPreference.getButton(ActionButtons.BUTTON1); in getRenameButton()
400 return mPreference.getButton(ActionButtons.BUTTON2); in getMakeAdminButton()
404 return mPreference.getButton(ActionButtons.BUTTON3); in getProfilesButton()
408 return mPreference.getButton(ActionButtons.BUTTON4); in getDeleteButton()
/aosp12/packages/apps/Car/Settings/src/com/android/car/settings/storage/
H A 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()
/aosp12/packages/apps/Car/Settings/src/com/android/car/settings/common/
H A DActionButtonsPreference.java49 public enum ActionButtons { enum in ActionButtonsPreference
147 public ActionButtonInfo getButton(ActionButtons button) { in getButton()
/aosp12/packages/apps/Car/Settings/src/com/android/car/settings/applications/
H A DApplicationActionButtonsPreferenceController.java23 import static com.android.car.settings.common.ActionButtonsPreference.ActionButtons;
298 getPreference().getButton(ActionButtons.BUTTON2) in onCreateInternal()
381 getPreference().getButton(ActionButtons.BUTTON2).setEnabled(enabled); in updateForceStopButtonInner()
385 ActionButtonInfo uninstallButton = getPreference().getButton(ActionButtons.BUTTON1); in updateUninstallButtonInner()
/aosp12/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/storage/
H A 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()
/aosp12/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/applications/
H A DApplicationActionButtonsPreferenceControllerTest.java23 import static com.android.car.settings.common.ActionButtonsPreference.ActionButtons;
808 return mActionButtonsPreference.getButton(ActionButtons.BUTTON2); in getForceStopButton()
817 return mActionButtonsPreference.getButton(ActionButtons.BUTTON1); in getUninstallButton()