Home
last modified time | relevance | path

Searched refs:setEnabled (Results 1 – 25 of 860) sorted by relevance

12345678910>>...35

/packages/apps/DocumentsUI/src/com/android/documentsui/files/
DMenuManager.java137 settings.setEnabled(root.hasSettings()); in updateSettings()
143 eject.setEnabled(!root.ejecting); in updateEject()
150 settings.setEnabled(enabled); in updateSettings()
161 openWith.setEnabled(selectionDetails.canOpenWith()); in updateOpenWith()
168 openInNewWindow.setEnabled(selectionDetails.size() == 1 in updateOpenInNewWindow()
180 moveTo.setEnabled(!selectionDetails.containsPartialFiles() && selectionDetails.canDelete()); in updateMoveTo()
186 copyTo.setEnabled(!selectionDetails.containsPartialFiles() && in updateCopyTo()
194 compress.setEnabled(!readOnly && !selectionDetails.containsPartialFiles() && in updateCompress()
202 extractTo.setEnabled(enabled); in updateExtractTo()
208 pasteInto.setEnabled(selectionDetails.canPasteInto() && mDirDetails.hasItemsToPaste()); in updatePasteInto()
[all …]
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/hvac/
DHvacTestFragment.java296 mTbDual.setEnabled(true); in configureDualOn()
307 mTbAc.setEnabled(true); in configureAcOn()
318 mTbAuto.setEnabled(true); in configureAutoModeOn()
394 btnFanSpeedUp.setEnabled(true); in configureFanSpeed()
398 btnFanSpeedDn.setEnabled(true); in configureFanSpeed()
456 btnDTempUp.setEnabled(true); in configureTempSetpoint()
460 btnDTempDn.setEnabled(true); in configureTempSetpoint()
463 btnDTempUp.setEnabled(false); in configureTempSetpoint()
482 btnPTempUp.setEnabled(true); in configureTempSetpoint()
486 btnPTempDn.setEnabled(true); in configureTempSetpoint()
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/bluetooth/
DBluetoothSummaryUpdaterTest.java92 mShadowBluetoothAdapter.setEnabled(mAdapterEnabled[0]); in setUp()
113 mShadowBluetoothAdapter.setEnabled(true); in register_true_shouldSendSummaryChange()
140 mShadowBluetoothAdapter.setEnabled(true); in onBluetoothStateChanged_btEnabled_connected_shouldSendConnectedSummary()
154 mShadowBluetoothAdapter.setEnabled(true); in onBluetoothStateChanged_btEnabled_connectedMisMatch_shouldSendNotConnected()
168 mShadowBluetoothAdapter.setEnabled(true); in onBluetoothStateChanged_btEnabled_notConnected_shouldSendDisconnectedMessage()
182 mShadowBluetoothAdapter.setEnabled(true); in onBluetoothStateChanged_ConnectedDisabledEnabled_shouldSendDisconnectedSummary()
198 mShadowBluetoothAdapter.setEnabled(false); in onBluetoothStateChanged_ConnectedDisabledEnabled_shouldSendDisconnectedSummary()
207 mShadowBluetoothAdapter.setEnabled(true); in onBluetoothStateChanged_ConnectedDisabledEnabled_shouldSendDisconnectedSummary()
216 mShadowBluetoothAdapter.setEnabled(true); in onConnectionStateChanged_connected_shouldSendConnectedMessage()
231 mShadowBluetoothAdapter.setEnabled(true); in onConnectionStateChanged_inconsistentState_shouldSendDisconnectedMessage()
[all …]
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/bluetooth/
DBluetoothEnabler.java84 mSwitchController.setEnabled(false); in BluetoothEnabler()
106 mSwitchController.setEnabled(false); in resume()
134 mSwitchController.setEnabled(false); in handleStateChanged()
138 mSwitchController.setEnabled(true); in handleStateChanged()
141 mSwitchController.setEnabled(false); in handleStateChanged()
145 mSwitchController.setEnabled(true); in handleStateChanged()
149 mSwitchController.setEnabled(true); in handleStateChanged()
193 mSwitchController.setEnabled(true); in onSwitchToggled()
199 mSwitchController.setEnabled(false); in onSwitchToggled()
224 mSwitchController.setEnabled(false); in maybeEnforceRestrictions()
/packages/apps/Settings/src/com/android/settings/bluetooth/
DBluetoothEnabler.java84 mSwitchController.setEnabled(false); in BluetoothEnabler()
106 mSwitchController.setEnabled(false); in resume()
134 mSwitchController.setEnabled(false); in handleStateChanged()
138 mSwitchController.setEnabled(true); in handleStateChanged()
141 mSwitchController.setEnabled(false); in handleStateChanged()
145 mSwitchController.setEnabled(true); in handleStateChanged()
149 mSwitchController.setEnabled(true); in handleStateChanged()
193 mSwitchController.setEnabled(true); in onSwitchToggled()
199 mSwitchController.setEnabled(false); in onSwitchToggled()
224 mSwitchController.setEnabled(false); in maybeEnforceRestrictions()
/packages/apps/Settings/src/com/android/settings/
DTetherSettings.java212 mUsbTether.setEnabled(!mDataSaverEnabled); in onDataSaverChanged()
213 mBluetoothTether.setEnabled(!mDataSaverEnabled); in onDataSaverChanged()
214 mEthernetTether.setEnabled(!mDataSaverEnabled); in onDataSaverChanged()
376 mUsbTether.setEnabled(!mDataSaverEnabled); in updateUsbState()
379 mUsbTether.setEnabled(!mDataSaverEnabled); in updateUsbState()
382 mUsbTether.setEnabled(false); in updateUsbState()
394 mBluetoothTether.setEnabled(false); in updateBluetoothState()
396 mBluetoothTether.setEnabled(false); in updateBluetoothState()
402 mBluetoothTether.setEnabled(!mDataSaverEnabled); in updateBluetoothState()
404 mBluetoothTether.setEnabled(!mDataSaverEnabled); in updateBluetoothState()
[all …]
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/network/
DApnEditor.java453 preference.setEnabled(false); in disableFields()
462 mName.setEnabled(false); in disableAllFields()
463 mApn.setEnabled(false); in disableAllFields()
464 mProxy.setEnabled(false); in disableAllFields()
465 mPort.setEnabled(false); in disableAllFields()
466 mUser.setEnabled(false); in disableAllFields()
467 mServer.setEnabled(false); in disableAllFields()
468 mPassword.setEnabled(false); in disableAllFields()
469 mMmsProxy.setEnabled(false); in disableAllFields()
470 mMmsPort.setEnabled(false); in disableAllFields()
[all …]
/packages/apps/Settings/src/com/android/settings/network/
DApnEditor.java517 preference.setEnabled(false); in disableFields()
526 mName.setEnabled(false); in disableAllFields()
527 mApn.setEnabled(false); in disableAllFields()
528 mProxy.setEnabled(false); in disableAllFields()
529 mPort.setEnabled(false); in disableAllFields()
530 mUser.setEnabled(false); in disableAllFields()
531 mServer.setEnabled(false); in disableAllFields()
532 mPassword.setEnabled(false); in disableAllFields()
533 mMmsProxy.setEnabled(false); in disableAllFields()
534 mMmsPort.setEnabled(false); in disableAllFields()
[all …]
/packages/apps/Settings/src/com/android/settings/nfc/
DAndroidBeamEnabler.java43 mPreference.setEnabled(false); in AndroidBeamEnabler()
47 mPreference.setEnabled(false); in AndroidBeamEnabler()
55 mPreference.setEnabled(false); in handleNfcStateChanged()
61 mPreference.setEnabled(false); in handleNfcStateChanged()
72 mPreference.setEnabled(false); in handleNfcStateChanged()
75 mPreference.setEnabled(false); in handleNfcStateChanged()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/nfc/
DAndroidBeamEnabler.java43 mPreference.setEnabled(false); in AndroidBeamEnabler()
47 mPreference.setEnabled(false); in AndroidBeamEnabler()
55 mPreference.setEnabled(false); in handleNfcStateChanged()
61 mPreference.setEnabled(false); in handleNfcStateChanged()
72 mPreference.setEnabled(false); in handleNfcStateChanged()
75 mPreference.setEnabled(false); in handleNfcStateChanged()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/system/
DTtsEngineSettingsFragment.java102 mLocalePreference.setEnabled(true);
151 mEngineSettingsPreference.setEnabled(false); in onCreatePreferences()
153 mInstallVoicesPreference.setEnabled(false); in onCreatePreferences()
156 mLocalePreference.setEnabled(false); in onCreatePreferences()
172 mLocalePreference.setEnabled(entries.length > 0); in onCreatePreferences()
253 mInstallVoicesPreference.setEnabled(true); in updateVoiceDetails()
255 mInstallVoicesPreference.setEnabled(false); in updateVoiceDetails()
260 mLocalePreference.setEnabled(false); in updateVoiceDetails()
268 mLocalePreference.setEnabled(false); in updateDefaultLocalePref()
307 mLocalePreference.setEnabled(true); in updateDefaultLocalePref()
/packages/apps/CellBroadcastReceiver/src/com/android/cellbroadcastreceiver/
DCellBroadcastSettings.java314 mSevereCheckBox.setEnabled(isExtremeAlertChecked); in onCreatePreferences()
359 mSevereCheckBox.setEnabled(mExtremeCheckBox.isChecked()); in onCreatePreferences()
418 mEnableVibrateCheckBox.setEnabled(!overrideDnd); in updateVibrationPreference()
546 mSevereCheckBox.setEnabled(alertsEnabled); in setAlertsEnabled()
550 mExtremeCheckBox.setEnabled(alertsEnabled); in setAlertsEnabled()
554 mAmberCheckBox.setEnabled(alertsEnabled); in setAlertsEnabled()
558 mAreaUpdateInfoCheckBox.setEnabled(alertsEnabled); in setAlertsEnabled()
562 mAlertPreferencesCategory.setEnabled(alertsEnabled); in setAlertsEnabled()
565 mEmergencyAlertsCheckBox.setEnabled(alertsEnabled); in setAlertsEnabled()
569 mPublicSafetyMessagesChannelCheckBox.setEnabled(alertsEnabled); in setAlertsEnabled()
[all …]
/packages/apps/Test/connectivity/PMC/src/com/android/pmc/
DPMCMainActivity.java177 mBtnStart.setEnabled(true); in addListenerOnButton()
207 mBtnStart.setEnabled(false); in startDownloadFile()
218 mBtnStart.setEnabled(true); in stopDownloadFile()
231 mBtnStart.setEnabled(false); in startConnectivityScan()
241 mBtnStart.setEnabled(true); in stopConnectivityScan()
268 mBtnStart.setEnabled(false); in startGscan()
278 mBtnStart.setEnabled(true); in stopGScan()
290 mBtnStart.setEnabled(false); in startIperfClient()
299 mBtnStart.setEnabled(true); in stopIperfClient()
315 mBtnStart.setEnabled(false); in startUSBTethering()
[all …]
/packages/apps/Dialer/java/com/android/incallui/incall/impl/
DButtonController.java40 void setEnabled(boolean isEnabled); in setEnabled() method
92 public void setEnabled(boolean isEnabled) { in setEnabled() method in ButtonController.CheckableButtonController
95 button.setEnabled(isEnabled); in setEnabled()
133 button.setEnabled(isEnabled); in setButton()
210 public void setEnabled(boolean isEnabled) { in setEnabled() method in ButtonController.NonCheckableButtonController
213 button.setEnabled(isEnabled); in setEnabled()
248 button.setEnabled(isEnabled); in setButton()
330 public void setEnabled(boolean isEnabled) { in setEnabled() method in ButtonController.SpeakerButtonController
333 button.setEnabled(isEnabled && isAllowed); in setEnabled()
346 button.setEnabled(isEnabled && isAllowed); in setAllowed()
[all …]
/packages/apps/Car/Settings/src/com/android/car/settings/storage/
DAppStorageSettingsDetailsFragment.java117 arguments -> mClearStorageButton.setEnabled(false);
208 .setEnabled(false) in onCreate()
213 .setEnabled(false) in onCreate()
231 mClearStorageButton.setEnabled(false); in onDataLoaded()
232 mClearCacheButton.setEnabled(false); in onDataLoaded()
237 mClearStorageButton.setEnabled(dataSize > 0 && mCanClearData && !mDataCleared); in onDataLoaded()
238 mClearCacheButton.setEnabled(cacheSize > 0 && !mCacheCleared); in onDataLoaded()
274 mClearStorageButton.setEnabled(false); in initiateClearUserData()
302 mClearStorageButton.setEnabled(true); in processClearMsg()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/
DTetherSettings.java192 mUsbTether.setEnabled(!mDataSaverEnabled); in onDataSaverChanged()
193 mBluetoothTether.setEnabled(!mDataSaverEnabled); in onDataSaverChanged()
344 mUsbTether.setEnabled(!mDataSaverEnabled); in updateUsbState()
347 mUsbTether.setEnabled(!mDataSaverEnabled); in updateUsbState()
350 mUsbTether.setEnabled(false); in updateUsbState()
362 mBluetoothTether.setEnabled(false); in updateBluetoothState()
364 mBluetoothTether.setEnabled(false); in updateBluetoothState()
370 mBluetoothTether.setEnabled(!mDataSaverEnabled); in updateBluetoothState()
372 mBluetoothTether.setEnabled(!mDataSaverEnabled); in updateBluetoothState()
385 mBluetoothTether.setEnabled(false); in startTethering()
/packages/apps/Car/Settings/src/com/android/car/settings/wifi/
DWifiTetherFragment.java55 mTetherSwitch.setEnabled(true);
140 mTetherSwitch.setEnabled(false); in handleWifiApStateChanged()
143 mTetherSwitch.setEnabled(true); in handleWifiApStateChanged()
149 mTetherSwitch.setEnabled(false); in handleWifiApStateChanged()
156 mTetherSwitch.setEnabled(true); in handleWifiApStateChanged()
160 mTetherSwitch.setEnabled(true); in handleWifiApStateChanged()
/packages/apps/Settings/tests/robotests/src/com/android/settings/wifi/p2p/
DWifiP2PPreferenceControllerTest.java108 verify(mWifiDirectPreference).setEnabled(true); in testWifiStateChange_shouldToggleEnabledState()
112 verify(mWifiDirectPreference, times(2)).setEnabled(true); in testWifiStateChange_shouldToggleEnabledState()
116 verify(mWifiDirectPreference).setEnabled(false); in testWifiStateChange_shouldToggleEnabledState()
124 verify(mWifiDirectPreference).setEnabled(true); in testDisplayPreference_shouldToggleEnabledState()
128 verify(mWifiDirectPreference).setEnabled(false); in testDisplayPreference_shouldToggleEnabledState()
133 verify(mWifiDirectPreference, times(2)).setEnabled(false); in testDisplayPreference_shouldToggleEnabledState()
/packages/apps/Settings/src/com/android/settings/widget/
DSwitchBar.java223 public void setEnabled(boolean enabled) { in setEnabled() method in SwitchBar
228 super.setEnabled(enabled); in setEnabled()
229 mTextView.setEnabled(enabled); in setEnabled()
230 mSwitch.setEnabled(enabled); in setEnabled()
246 super.setEnabled(true); in setDisabledByAdmin()
248 mTextView.setEnabled(false); in setDisabledByAdmin()
249 mSwitch.setEnabled(false); in setDisabledByAdmin()
258 setEnabled(true); in setDisabledByAdmin()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/widget/
DSwitchBar.java213 public void setEnabled(boolean enabled) { in setEnabled() method in SwitchBar
218 super.setEnabled(enabled); in setEnabled()
219 mTextView.setEnabled(enabled); in setEnabled()
220 mSwitch.setEnabled(enabled); in setEnabled()
236 super.setEnabled(true); in setDisabledByAdmin()
238 mTextView.setEnabled(false); in setDisabledByAdmin()
239 mSwitch.setEnabled(false); in setDisabledByAdmin()
246 setEnabled(true); in setDisabledByAdmin()
/packages/services/Car/tests/BugReportApp/src/com/google/android/car/bugreport/
DBugInfoAdapter.java124 holder.mMoveButton.setEnabled(true); in onBindViewHolder()
130 holder.mMoveButton.setEnabled(false); in onBindViewHolder()
136 holder.mUploadButton.setEnabled(true); in onBindViewHolder()
143 holder.mUploadButton.setEnabled(false); in onBindViewHolder()
151 holder.mAddAudioButton.setEnabled(true); in onBindViewHolder()
156 holder.mAddAudioButton.setEnabled(false); in onBindViewHolder()
/packages/apps/Settings/src/com/android/settings/biometrics/face/
DFaceSettingsAttentionPreferenceController.java47 mPreference.setEnabled(true);
64 mPreference.setEnabled(false);
66 mPreference.setEnabled(true);
101 mPreference.setEnabled(false); in isChecked()
112 mPreference.setEnabled(false); in setChecked()
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/history/
DHistoryManager.java86 setEnabled(mUndoMenuItem, canUndo()); in updateMenuItems()
89 setEnabled(mRedoMenuItem, canRedo()); in updateMenuItems()
92 setEnabled(mResetMenuItem, canReset()); in updateMenuItems()
96 private void setEnabled(MenuItem item, boolean enabled) { in setEnabled() method in HistoryManager
97 item.setEnabled(enabled); in setEnabled()
/packages/apps/Car/Settings/src/com/android/car/settings/bluetooth/
DBluetoothSettingsFragment.java56 item.setEnabled(false);
124 mBluetoothSwitch.setEnabled(false); in handleStateChanged()
128 mBluetoothSwitch.setEnabled(!isUserRestricted()); in handleStateChanged()
132 mBluetoothSwitch.setEnabled(false); in handleStateChanged()
137 mBluetoothSwitch.setEnabled(!isUserRestricted()); in handleStateChanged()
/packages/apps/Camera2/src/com/android/camera/
DAccessibilityUtil.java39 mZoomMinusButton.setEnabled(true);
43 mZoomPlusButton.setEnabled(false);
55 mZoomPlusButton.setEnabled(true);
59 mZoomMinusButton.setEnabled(false);
81 mZoomMinusButton.setEnabled(false); in showZoomUI()

12345678910>>...35