/packages/apps/Settings/tests/robotests/src/com/android/settings/bluetooth/ |
D | BluetoothDetailsButtonsControllerTest.java | 47 private ActionButtonsPreference mButtonsPref; field in BluetoothDetailsButtonsControllerTest 62 mButtonsPref = createMock(); in setUp() 63 when(mButtonsPref.getKey()).thenReturn(mController.getPreferenceKey()); in setUp() 64 when(mButtonsPref.setButton2OnClickListener(any(View.OnClickListener.class))) in setUp() 68 return mButtonsPref; in setUp() 70 when(mButtonsPref.setButton1OnClickListener(any(View.OnClickListener.class))) in setUp() 74 return mButtonsPref; in setUp() 76 mScreen.addPreference(mButtonsPref); in setUp() 85 verify(mButtonsPref).setButton2Text(R.string.bluetooth_device_context_disconnect); in connected() 86 verify(mButtonsPref).setButton1Text(R.string.forget); in connected() [all …]
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/applications/ |
D | AppStorageSettingsTest.java | 50 private ActionButtonsPreference mButtonsPref; field in AppStorageSettingsTest 62 mButtonsPref = createMock(); in setUp() 63 mSettings.mButtonsPref = mButtonsPref; in setUp() 65 when(mButtonsPref.setButton1OnClickListener(any(View.OnClickListener.class))) in setUp() 69 return mButtonsPref; in setUp() 71 when(mButtonsPref.setButton2OnClickListener(any(View.OnClickListener.class))) in setUp() 75 return mButtonsPref; in setUp() 84 verify(mButtonsPref).setButton1Enabled(false); in updateUiWithSize_noAppStats_shouldDisableClearButtons() 85 verify(mButtonsPref).setButton2Enabled(false); in updateUiWithSize_noAppStats_shouldDisableClearButtons() 97 verify(mButtonsPref).setButton1Enabled(true); in updateUiWithSize_hasDataAndCache_shouldEnableClearButtons() [all …]
|
/packages/apps/Settings/src/com/android/settings/applications/ |
D | AppStorageSettings.java | 110 ActionButtonsPreference mButtonsPref; field in AppStorageSettings 171 mButtonsPref = ((ActionButtonsPreference) findPreference(KEY_HEADER_BUTTONS)); in setupViews() 179 mButtonsPref in setupViews() 305 mButtonsPref in initDataButtons() 312 mButtonsPref.setButton1Text(R.string.manage_space_text); in initDataButtons() 314 mButtonsPref.setButton1Text(R.string.clear_user_data_text); in initDataButtons() 316 mButtonsPref.setButton1Icon(R.drawable.ic_settings_delete) in initDataButtons() 321 mButtonsPref.setButton1Enabled(false); in initDataButtons() 361 mButtonsPref.setButton1Enabled(false); in initiateClearUserData() 376 mButtonsPref.setButton1Text(R.string.recompute_size); in initiateClearUserData() [all …]
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/applications/ |
D | AppStorageSettings.java | 110 ActionButtonsPreference mButtonsPref; field in AppStorageSettings 171 mButtonsPref = ((ActionButtonsPreference) findPreference(KEY_HEADER_BUTTONS)); in setupViews() 179 mButtonsPref in setupViews() 305 mButtonsPref in initDataButtons() 312 mButtonsPref.setButton1Text(R.string.manage_space_text); in initDataButtons() 314 mButtonsPref in initDataButtons() 318 mButtonsPref in initDataButtons() 325 mButtonsPref.setButton1Enabled(false); in initDataButtons() 365 mButtonsPref.setButton1Enabled(false); in initiateClearUserData() 380 mButtonsPref.setButton1Text(R.string.recompute_size); in initiateClearUserData() [all …]
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/applications/appinfo/ |
D | AppButtonsPreferenceController.java | 101 ActionButtonsPreference mButtonsPref; field in AppButtonsPreferenceController 171 mButtonsPref = ((ActionButtonsPreference) screen.findPreference( in displayPreference() 373 mButtonsPref.setButton1Visible(mAppLaunchIntent != null); in updateOpenButton() 464 mButtonsPref.setButton2Enabled(enabled); in updateUninstallButton() 515 mButtonsPref.setButton3Enabled(false); in updateForceStopButtonInner() 517 mButtonsPref.setButton3Enabled(enabled); in updateForceStopButtonInner() 565 mButtonsPref.setButton2Text(R.string.disable_text) in handleDisableable() 568 mButtonsPref.setButton2Text(R.string.disable_text) in handleDisableable() 573 mButtonsPref.setButton2Text(R.string.enable_text) in handleDisableable()
|
/packages/apps/Settings/src/com/android/settings/applications/appinfo/ |
D | AppButtonsPreferenceController.java | 101 ActionButtonsPreference mButtonsPref; field in AppButtonsPreferenceController 170 mButtonsPref = ((ActionButtonsPreference) screen.findPreference( in displayPreference() 372 mButtonsPref.setButton1Visible(mAppLaunchIntent != null); in updateOpenButton() 463 mButtonsPref.setButton2Enabled(enabled); in updateUninstallButton() 514 mButtonsPref.setButton3Enabled(false); in updateForceStopButtonInner() 516 mButtonsPref.setButton3Enabled(enabled); in updateForceStopButtonInner() 564 mButtonsPref.setButton2Text(R.string.disable_text) in handleDisableable() 567 mButtonsPref.setButton2Text(R.string.disable_text) in handleDisableable() 572 mButtonsPref.setButton2Text(R.string.enable_text) in handleDisableable()
|
/packages/apps/Settings/src/com/android/settings/wifi/details/ |
D | WifiDetailPreferenceController.java | 173 private ActionButtonsPreference mButtonsPref; field in WifiDetailPreferenceController 394 mButtonsPref = ((ActionButtonsPreference) screen.findPreference(KEY_BUTTONS_PREF)) in displayPreference() 739 mButtonsPref.setButton1Text( in refreshButtons() 747 mButtonsPref.setButton1Visible(canForgetNetwork); in refreshButtons() 748 mButtonsPref.setButton2Visible(canSignIntoNetwork); in refreshButtons() 749 mButtonsPref.setButton3Visible(canConnectNetwork); in refreshButtons() 750 mButtonsPref.setButton4Visible(canShareNetwork); in refreshButtons() 751 mButtonsPref.setVisible(canForgetNetwork in refreshButtons() 1095 mButtonsPref.setButton3Text(R.string.wifi_connecting) in updateConnectedButton() 1100 mButtonsPref.setButton3Text(R.string.wifi_connect) in updateConnectedButton() [all …]
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/wifi/details/ |
D | WifiDetailPreferenceController.java | 174 private ActionButtonsPreference mButtonsPref; field in WifiDetailPreferenceController 399 mButtonsPref = ((ActionButtonsPreference) screen.findPreference(KEY_BUTTONS_PREF)) in displayPreference() 749 mButtonsPref.setButton1Text( in refreshButtons() 752 mButtonsPref.setButton1Visible(canForgetNetwork()); in refreshButtons() 753 mButtonsPref.setButton2Visible(canSignIntoNetwork()); in refreshButtons() 754 mButtonsPref.setButton3Visible(canConnectNetwork()); in refreshButtons() 755 mButtonsPref.setButton4Visible(canShareNetwork()); in refreshButtons() 756 mButtonsPref.setVisible(canSignIntoNetwork() in refreshButtons() 1080 mButtonsPref.setButton3Text(R.string.wifi_connecting) in updateConnectedButton() 1084 mButtonsPref.setButton3Visible(false); in updateConnectedButton() [all …]
|
/packages/apps/Settings/src/com/android/settings/development/ |
D | AdbDeviceDetailsActionController.java | 44 private ActionButtonsPreference mButtonsPref; field in AdbDeviceDetailsActionController 70 mButtonsPref = ((ActionButtonsPreference) screen.findPreference(getPreferenceKey())) in displayPreference()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/notification/ |
D | ZenRuleButtonsPreferenceController.java | 45 private ActionButtonsPreference mButtonsPref; field in ZenRuleButtonsPreferenceController 63 mButtonsPref = ((ActionButtonsPreference) screen.findPreference(KEY)) in displayPreference()
|
/packages/apps/Settings/src/com/android/settings/notification/ |
D | ZenRuleButtonsPreferenceController.java | 45 private ActionButtonsPreference mButtonsPref; field in ZenRuleButtonsPreferenceController 63 mButtonsPref = ((ActionButtonsPreference) screen.findPreference(KEY)) in displayPreference()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/applications/appinfo/ |
D | AppButtonsPreferenceControllerTest.java | 152 mController.mButtonsPref = mButtonPrefs; in setUp()
|