Home
last modified time | relevance | path

Searched refs:mButtonsPref (Results 1 – 7 of 7) sorted by relevance

/packages/apps/Settings/tests/robotests/src/com/android/settings/bluetooth/
DBluetoothDetailsButtonsControllerTest.java49 private ActionButtonsPreference mButtonsPref; field in BluetoothDetailsButtonsControllerTest
65 mButtonsPref = createMock(); in setUp()
66 when(mButtonsPref.getKey()).thenReturn(mController.getPreferenceKey()); in setUp()
67 when(mButtonsPref.setButton2OnClickListener(any(View.OnClickListener.class))) in setUp()
71 return mButtonsPref; in setUp()
73 when(mButtonsPref.setButton1OnClickListener(any(View.OnClickListener.class))) in setUp()
77 return mButtonsPref; in setUp()
79 mScreen.addPreference(mButtonsPref); in setUp()
88 verify(mButtonsPref).setButton2Text(R.string.bluetooth_device_context_disconnect); in connected()
89 verify(mButtonsPref).setButton1Text(R.string.forget); in connected()
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/applications/
DAppStorageSettingsTest.java54 private ActionButtonsPreference mButtonsPref; field in AppStorageSettingsTest
70 mButtonsPref = createMock(); in setUp()
71 mSettings.mButtonsPref = mButtonsPref; in setUp()
73 when(mButtonsPref.setButton1OnClickListener(any(View.OnClickListener.class))) in setUp()
77 return mButtonsPref; in setUp()
79 when(mButtonsPref.setButton2OnClickListener(any(View.OnClickListener.class))) in setUp()
83 return mButtonsPref; in setUp()
94 verify(mButtonsPref).setButton1Enabled(false); in updateUiWithSize_noAppStats_shouldDisableClearButtons()
95 verify(mButtonsPref).setButton2Enabled(false); in updateUiWithSize_noAppStats_shouldDisableClearButtons()
110 verify(mButtonsPref).setButton1Enabled(true); in updateUiWithSize_hasDataAndCache_shouldEnableClearButtons()
[all …]
/packages/apps/Settings/src/com/android/settings/applications/
DAppStorageSettings.java113 ActionButtonsPreference mButtonsPref; field in AppStorageSettings
174 mButtonsPref = ((ActionButtonsPreference) findPreference(KEY_HEADER_BUTTONS)); in setupViews()
182 mButtonsPref in setupViews()
308 mButtonsPref in initDataButtons()
314 mButtonsPref.setButton1Text(R.string.clear_user_data_text); in initDataButtons()
315 mButtonsPref.setButton1Icon(R.drawable.ic_settings_delete) in initDataButtons()
320 mButtonsPref.setButton1Enabled(false); in initDataButtons()
360 mButtonsPref.setButton1Enabled(false); in initiateClearUserData()
382 mButtonsPref.setButton1Text(R.string.recompute_size); in initiateClearUserData()
393 mButtonsPref in processClearMsg()
[all …]
/packages/apps/Settings/src/com/android/settings/applications/appinfo/
DAppButtonsPreferenceController.java106 ActionButtonsPreference mButtonsPref; field in AppButtonsPreferenceController
373 mButtonsPref.setButton1Visible(mAppLaunchIntent != null); in updateOpenButton()
479 mButtonsPref.setButton2Enabled(enabled); in updateUninstallButton()
530 mButtonsPref.setButton3Enabled(false); in updateForceStopButtonInner()
532 mButtonsPref.setButton3Enabled(enabled); in updateForceStopButtonInner()
584 mButtonsPref.setButton2Text(R.string.disable_text) in handleDisableable()
587 mButtonsPref.setButton2Text(R.string.disable_text) in handleDisableable()
592 mButtonsPref.setButton2Text(R.string.enable_text) in handleDisableable()
669 if (mButtonsPref == null) { in refreshUi()
671 mButtonsPref.setVisible(true); in refreshUi()
[all …]
/packages/apps/Settings/src/com/android/settings/wifi/details2/
DWifiDetailPreferenceController2.java170 private ActionButtonsPreference mButtonsPref; field in WifiDetailPreferenceController2
348 mButtonsPref = ((ActionButtonsPreference) screen.findPreference(KEY_BUTTONS_PREF)) in displayPreference()
387 mButtonsPref.setButton2Text(R.string.wifi_sign_in_button_text) in updateCaptivePortalButton()
393 mButtonsPref.setButton2Text(R.string.wifi_venue_website_button_text) in updateCaptivePortalButton()
777 mButtonsPref.setButton1Visible(canForgetNetwork); in refreshButtons()
778 mButtonsPref.setButton2Visible(showCaptivePortalButton); in refreshButtons()
781 mButtonsPref.setButton3Visible(canConnectDisconnectNetwork in refreshButtons()
783 mButtonsPref.setButton3Enabled(canConnectDisconnectNetwork); in refreshButtons()
784 mButtonsPref.setButton3Text(getConnectDisconnectButtonTextResource()); in refreshButtons()
785 mButtonsPref.setButton3Icon(getConnectDisconnectButtonIconResource()); in refreshButtons()
[all …]
/packages/apps/Settings/src/com/android/settings/development/
DAdbDeviceDetailsActionController.java44 private ActionButtonsPreference mButtonsPref; field in AdbDeviceDetailsActionController
70 mButtonsPref = ((ActionButtonsPreference) screen.findPreference(getPreferenceKey())) in displayPreference()
/packages/apps/Settings/tests/robotests/src/com/android/settings/applications/appinfo/
DAppButtonsPreferenceControllerTest.java157 mController.mButtonsPref = mButtonPrefs; in setUp()
516 mController.mButtonsPref = null; in refreshUi_buttonPreferenceNull_shouldNotCrash()