Home
last modified time | relevance | path

Searched refs:setEnabled (Results 1 – 25 of 862) 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/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/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/Car/Settings/src/com/android/car/settings/storage/
DAppStorageSettingsDetailsFragment.java119 arguments -> mClearStorageButton.setEnabled(false);
215 mClearStorageButton.setEnabled(false); in onActivityCreated()
220 mClearCacheButton.setEnabled(false); in onActivityCreated()
238 mClearStorageButton.setEnabled(false); in onDataLoaded()
239 mClearCacheButton.setEnabled(false); in onDataLoaded()
245 mClearStorageButton.setEnabled(false); in onDataLoaded()
247 mClearStorageButton.setEnabled(true); in onDataLoaded()
251 mClearCacheButton.setEnabled(false); in onDataLoaded()
253 mClearCacheButton.setEnabled(true); in onDataLoaded()
258 mClearStorageButton.setEnabled(false); in onDataLoaded()
[all …]
/packages/apps/Settings/src/com/android/settings/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/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/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/CellBroadcastReceiver/src/com/android/cellbroadcastreceiver/
DCellBroadcastSettings.java258 mSevereCheckBox.setEnabled(isExtremeAlertChecked); in onCreatePreferences()
384 mSevereCheckBox.setEnabled(mExtremeCheckBox.isChecked()); in onCreatePreferences()
462 mSevereCheckBox.setEnabled(alertsEnabled); in setAlertsEnabled()
466 mExtremeCheckBox.setEnabled(alertsEnabled); in setAlertsEnabled()
470 mAmberCheckBox.setEnabled(alertsEnabled); in setAlertsEnabled()
474 mAreaUpdateInfoCheckBox.setEnabled(alertsEnabled); in setAlertsEnabled()
478 mAlertPreferencesCategory.setEnabled(alertsEnabled); in setAlertsEnabled()
481 mDevSettingCategory.setEnabled(alertsEnabled); in setAlertsEnabled()
484 mEmergencyAlertsCheckBox.setEnabled(alertsEnabled); in setAlertsEnabled()
488 mPublicSafetyMessagesChannelCheckBox.setEnabled(alertsEnabled); in setAlertsEnabled()
[all …]
/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/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/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/Car/Settings/src/com/android/car/settings/wifi/
DWifiTetherFragment.java54 mTetherSwitch.setEnabled(true);
139 mTetherSwitch.setEnabled(false); in handleWifiApStateChanged()
142 mTetherSwitch.setEnabled(true); in handleWifiApStateChanged()
148 mTetherSwitch.setEnabled(false); in handleWifiApStateChanged()
155 mTetherSwitch.setEnabled(true); in handleWifiApStateChanged()
159 mTetherSwitch.setEnabled(true); in handleWifiApStateChanged()
/packages/apps/Settings/src/com/android/settings/
DTetherSettings.java193 mUsbTether.setEnabled(!mDataSaverEnabled); in onDataSaverChanged()
194 mBluetoothTether.setEnabled(!mDataSaverEnabled); in onDataSaverChanged()
345 mUsbTether.setEnabled(!mDataSaverEnabled); in updateUsbState()
348 mUsbTether.setEnabled(!mDataSaverEnabled); in updateUsbState()
351 mUsbTether.setEnabled(false); in updateUsbState()
363 mBluetoothTether.setEnabled(false); in updateBluetoothState()
365 mBluetoothTether.setEnabled(false); in updateBluetoothState()
371 mBluetoothTether.setEnabled(!mDataSaverEnabled); in updateBluetoothState()
373 mBluetoothTether.setEnabled(!mDataSaverEnabled); in updateBluetoothState()
405 mBluetoothTether.setEnabled(false); in startTethering()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/
DTetherSettings.java193 mUsbTether.setEnabled(!mDataSaverEnabled); in onDataSaverChanged()
194 mBluetoothTether.setEnabled(!mDataSaverEnabled); in onDataSaverChanged()
345 mUsbTether.setEnabled(!mDataSaverEnabled); in updateUsbState()
348 mUsbTether.setEnabled(!mDataSaverEnabled); in updateUsbState()
351 mUsbTether.setEnabled(false); in updateUsbState()
363 mBluetoothTether.setEnabled(false); in updateBluetoothState()
365 mBluetoothTether.setEnabled(false); in updateBluetoothState()
371 mBluetoothTether.setEnabled(!mDataSaverEnabled); in updateBluetoothState()
373 mBluetoothTether.setEnabled(!mDataSaverEnabled); in updateBluetoothState()
405 mBluetoothTether.setEnabled(false); in startTethering()
/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/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/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/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()
111 mPreference.setEnabled(false); in setChecked()
/packages/apps/Car/Settings/src/com/android/car/settings/tts/
DTtsPlaybackPreferenceController.java130 mDefaultLanguagePreference.setEnabled(isValid); in updateState()
131 mSpeechRatePreference.setEnabled(isValid); in updateState()
132 mVoicePitchPreference.setEnabled(isValid); in updateState()
133 mResetPreference.setEnabled(isValid); in updateState()
135 mDefaultLanguagePreference.setEnabled(true); in updateState()
385 speechRatePreference.setEnabled(false); in initSpeechRatePreference()
407 pitchPreference.setEnabled(false); in initVoicePitchPreference()
426 resetPreference.setEnabled(false); in initResetTtsPlaybackPreference()
/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/providers/ContactsProvider/src/com/android/providers/contacts/debug/
DContactsDumpActivity.java65 mDeleteButton.setEnabled(DataExporter.dumpFileExists(this)); in updateDeleteButton()
72 mConfirmButton.setEnabled(false); in onClick()
73 mCancelButton.setEnabled(false); in onClick()
131 mConfirmButton.setEnabled(true); in onActivityResult()
132 mCancelButton.setEnabled(true); in onActivityResult()
/packages/apps/Car/Settings/src/com/android/car/settings/bluetooth/
DBluetoothSettingsFragment.java58 mBluetoothSwitch.setEnabled(false);
125 mBluetoothSwitch.setEnabled(false); in handleStateChanged()
129 mBluetoothSwitch.setEnabled(!isUserRestricted()); in handleStateChanged()
133 mBluetoothSwitch.setEnabled(false); in handleStateChanged()
138 mBluetoothSwitch.setEnabled(!isUserRestricted()); in handleStateChanged()

12345678910>>...35