Home
last modified time | relevance | path

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

12345678910>>...33

/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/src/com/android/settings/bluetooth/
DBluetoothEnabler.java86 mSwitchController.setEnabled(false); in BluetoothEnabler()
108 mSwitchController.setEnabled(false); in resume()
136 mSwitchController.setEnabled(false); in handleStateChanged()
140 mSwitchController.setEnabled(true); in handleStateChanged()
143 mSwitchController.setEnabled(false); in handleStateChanged()
147 mSwitchController.setEnabled(true); in handleStateChanged()
151 mSwitchController.setEnabled(true); in handleStateChanged()
195 mSwitchController.setEnabled(true); in onSwitchToggled()
200 mSwitchController.setEnabled(false); in onSwitchToggled()
225 mSwitchController.setEnabled(false); in maybeEnforceRestrictions()
/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/Car/Settings/src/com/android/car/settings/bluetooth/
DBluetoothBondedDevicesPreferenceController.java195 finalPhoneProfile.setEnabled(cachedDevice.getDevice(), true); in setButtonsCheckedAndListeners()
196 finalMediaProfile.setEnabled(cachedDevice.getDevice(), true); in setButtonsCheckedAndListeners()
211 finalPhoneProfile.setEnabled(cachedDevice.getDevice(), isChecked)); in setButtonsCheckedAndListeners()
224 finalMediaProfile.setEnabled(cachedDevice.getDevice(), isChecked)); in setButtonsCheckedAndListeners()
232 bluetoothItem.setEnabled(true); in updateBluetoothActionItemAvailability()
242 phoneItem.setEnabled(!isRestricted); in updatePhoneActionItemAvailability()
253 mediaItem.setEnabled(!isRestricted); in updateMediaActionItemAvailability()
262 preference.getActionItem(BLUETOOTH_BUTTON).setEnabled(false); in disableAllActionItems()
263 preference.getActionItem(PHONE_BUTTON).setEnabled(false); in disableAllActionItems()
264 preference.getActionItem(MEDIA_BUTTON).setEnabled(false); in disableAllActionItems()
/packages/apps/Settings/tests/robotests/src/com/android/settings/wifi/p2p/
DWifiP2PPreferenceControllerTest.java107 verify(mWifiDirectPreference).setEnabled(true); in testWifiStateChange_shouldToggleEnabledState()
111 verify(mWifiDirectPreference, times(2)).setEnabled(true); in testWifiStateChange_shouldToggleEnabledState()
115 verify(mWifiDirectPreference).setEnabled(false); in testWifiStateChange_shouldToggleEnabledState()
123 verify(mWifiDirectPreference).setEnabled(true); in testDisplayPreference_shouldToggleEnabledState()
127 verify(mWifiDirectPreference).setEnabled(false); in testDisplayPreference_shouldToggleEnabledState()
132 verify(mWifiDirectPreference, times(2)).setEnabled(false); in testDisplayPreference_shouldToggleEnabledState()
141 verify(mWifiDirectPreference).setEnabled(true); in updateState_withLocationDisabled_preferenceShouldBeDisable()
145 verify(mWifiDirectPreference).setEnabled(false); in updateState_withLocationDisabled_preferenceShouldBeDisable()
/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()
DSecureNfcEnabler.java46 mPreference.setEnabled(false); in handleNfcStateChanged()
51 mPreference.setEnabled(true); in handleNfcStateChanged()
54 mPreference.setEnabled(false); in handleNfcStateChanged()
57 mPreference.setEnabled(false); in handleNfcStateChanged()
DNfcEnabler.java44 mPreference.setEnabled(isToggleable()); in handleNfcStateChanged()
48 mPreference.setEnabled(true); in handleNfcStateChanged()
52 mPreference.setEnabled(false); in handleNfcStateChanged()
56 mPreference.setEnabled(false); in handleNfcStateChanged()
/packages/apps/Settings/src/com/android/settings/
DTetherSettings.java232 mUsbTether.setEnabled(!mDataSaverEnabled); in onDataSaverChanged()
233 mBluetoothTether.setEnabled(!mDataSaverEnabled); in onDataSaverChanged()
234 mEthernetTether.setEnabled(!mDataSaverEnabled); in onDataSaverChanged()
417 mUsbTether.setEnabled(!mDataSaverEnabled); in updateUsbState()
435 mUsbTether.setEnabled(!mDataSaverEnabled); in updateUsbPreference()
437 mUsbTether.setEnabled(false); in updateUsbPreference()
467 mBluetoothTether.setEnabled(false); in updateBluetoothState()
469 mBluetoothTether.setEnabled(false); in updateBluetoothState()
473 mBluetoothTether.setEnabled(!mDataSaverEnabled); in updateBluetoothState()
475 mBluetoothTether.setEnabled(!mDataSaverEnabled); in updateBluetoothState()
[all …]
/packages/apps/Car/Settings/src/com/android/car/settings/storage/
DStorageApplicationActionButtonsPreferenceController.java104 arguments -> mClearStorageButton.setEnabled(false);
187 .setEnabled(false); in onCreateInternal()
192 .setEnabled(false); in onCreateInternal()
221 mClearStorageButton.setEnabled(false); in onDataLoaded()
222 mClearCacheButton.setEnabled(false); in onDataLoaded()
227 mClearStorageButton.setEnabled(dataSize > 0 && !mDataCleared); in onDataLoaded()
228 mClearCacheButton.setEnabled(cacheSize > 0 && !mCacheCleared); in onDataLoaded()
288 mClearStorageButton.setEnabled(false); in initiateClearUserData()
316 mClearStorageButton.setEnabled(true); in processClearMsg()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/system/
DTtsEngineSettingsFragment.java104 mLocalePreference.setEnabled(true);
153 mEngineSettingsPreference.setEnabled(false); in onCreatePreferences()
155 mInstallVoicesPreference.setEnabled(false); in onCreatePreferences()
158 mLocalePreference.setEnabled(false); in onCreatePreferences()
174 mLocalePreference.setEnabled(entries.length > 0); in onCreatePreferences()
255 mInstallVoicesPreference.setEnabled(true); in updateVoiceDetails()
257 mInstallVoicesPreference.setEnabled(false); in updateVoiceDetails()
262 mLocalePreference.setEnabled(false); in updateVoiceDetails()
270 mLocalePreference.setEnabled(false); in updateDefaultLocalePref()
309 mLocalePreference.setEnabled(true); in updateDefaultLocalePref()
/packages/apps/Settings/src/com/android/settings/network/apn/
DApnEditor.java489 preference.setEnabled(false); in disableFields()
498 mName.setEnabled(false); in disableAllFields()
499 mApn.setEnabled(false); in disableAllFields()
500 mProxy.setEnabled(false); in disableAllFields()
501 mPort.setEnabled(false); in disableAllFields()
502 mUser.setEnabled(false); in disableAllFields()
503 mServer.setEnabled(false); in disableAllFields()
504 mPassword.setEnabled(false); in disableAllFields()
505 mMmsProxy.setEnabled(false); in disableAllFields()
506 mMmsPort.setEnabled(false); in disableAllFields()
[all …]
/packages/apps/Settings/src/com/android/settings/widget/
DSettingsMainSwitchBar.java95 super.setEnabled(true); in setDisabledByAdmin()
97 mTextView.setEnabled(false); in setDisabledByAdmin()
98 mSwitch.setEnabled(false); in setDisabledByAdmin()
105 setEnabled(isEnabled()); in setDisabledByAdmin()
110 public void setEnabled(boolean enabled) { in setEnabled() method in SettingsMainSwitchBar
115 super.setEnabled(enabled); in setEnabled()
DSwitchBar.java227 public void setEnabled(boolean enabled) { in setEnabled() method in SwitchBar
232 super.setEnabled(enabled); in setEnabled()
233 mTextView.setEnabled(enabled); in setEnabled()
234 mSwitch.setEnabled(enabled); in setEnabled()
250 super.setEnabled(true); in setDisabledByAdmin()
252 mTextView.setEnabled(false); in setDisabledByAdmin()
253 mSwitch.setEnabled(false); in setDisabledByAdmin()
260 setEnabled(true); in setDisabledByAdmin()
/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/DebuggingRestrictionController/app/src/main/java/com/android/car/debuggingrestrictioncontroller/ui/login/
DLoginActivity.java80 loginButton.setEnabled(loginFormState.isDataValid()); in onCreate()
101 nextButton.setEnabled(false); in onCreate()
107 nextButton.setEnabled(true); in onCreate()
200 loginButton.setEnabled(true); in updateButtonState()
201 nextButton.setEnabled(true); in updateButtonState()
204 loginButton.setEnabled(false); in updateButtonState()
205 nextButton.setEnabled(false); in updateButtonState()
/packages/apps/Settings/tests/robotests/src/com/android/settings/
DTetherSettingsTest.java103 FeatureFlagUtils.setEnabled(mContext, FeatureFlags.TETHER_ALL_IN_ONE, false); in testTetherNonIndexableKeys_tetherAvailable_keysNotReturned()
138 FeatureFlagUtils.setEnabled(mContext, FeatureFlags.TETHER_ALL_IN_ONE, false); in testTetherNonIndexableKeys_usbAvailable_usbKeyNotReturned()
161 FeatureFlagUtils.setEnabled(mContext, FeatureFlags.TETHER_ALL_IN_ONE, false); in testTetherNonIndexableKeys_bluetoothAvailable_bluetoothKeyNotReturned()
217 verify(mockSwitchPreference).setEnabled(true); in testBluetoothState_updateBluetoothState_bluetoothTetheringStateOn()
250 verify(mockSwitchPreference).setEnabled(true); in testBluetoothState_updateBluetoothState_bluetoothTetheringStateOff()
268 verify(tetheringPreference).setEnabled(true); in updateState_usbTetheringIsEnabled_checksUsbTethering()
286 verify(tetheringPreference).setEnabled(false); in updateState_usbTetheringIsDisabled_unchecksUsbTethering()
302 verify(tetheringPreference).setEnabled(true); in onReceive_usbIsConnected_tetheringPreferenceIsEnabled()
317 verify(tetheringPreference).setEnabled(false); in onReceive_usbIsDisconnected_tetheringPreferenceIsDisabled()
331 verify(tetheringPreference).setEnabled(false); in onReceive_mediaIsShared_tetheringPreferenceIsDisabled()
[all …]
/packages/apps/Settings/src/com/android/settings/development/bluetooth/
DBluetoothHDAudioPreferenceController.java52 mPreference.setEnabled(false); in updateState()
58 mPreference.setEnabled(false); in updateState()
63 mPreference.setEnabled(supported); in updateState()
80 mPreference.setEnabled(false); in onPreferenceChange()
89 mPreference.setEnabled(false); in onPreferenceChange()
/packages/apps/CellBroadcastReceiver/src/com/android/cellbroadcastreceiver/
DCellBroadcastSettings.java454 mSevereCheckBox.setEnabled(isExtremeAlertChecked); in onCreatePreferences()
505 mSevereCheckBox.setEnabled(mExtremeCheckBox.isChecked()); in onCreatePreferences()
572 mEnableVibrateCheckBox.setEnabled(!overrideDnd); in updateVibrationPreference()
746 mSevereCheckBox.setEnabled(alertsEnabled); in setAlertsEnabled()
750 mExtremeCheckBox.setEnabled(alertsEnabled); in setAlertsEnabled()
754 mAmberCheckBox.setEnabled(alertsEnabled); in setAlertsEnabled()
758 mAreaUpdateInfoCheckBox.setEnabled(alertsEnabled); in setAlertsEnabled()
763 mEmergencyAlertsCheckBox.setEnabled(alertsEnabled); in setAlertsEnabled()
767 mPublicSafetyMessagesChannelCheckBox.setEnabled(alertsEnabled); in setAlertsEnabled()
771 mStateLocalTestCheckBox.setEnabled(alertsEnabled); in setAlertsEnabled()
[all …]
/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/services/Car/tests/BugReportApp/src/com/android/car/bugreport/
DBugInfoAdapter.java137 holder.mMoveButton.setEnabled(true); in onBindViewHolder()
143 holder.mMoveButton.setEnabled(false); in onBindViewHolder()
149 holder.mUploadButton.setEnabled(true); in onBindViewHolder()
156 holder.mUploadButton.setEnabled(false); in onBindViewHolder()
164 holder.mAddAudioButton.setEnabled(true); in onBindViewHolder()
169 holder.mAddAudioButton.setEnabled(false); in onBindViewHolder()
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/wifi/
DWifiTetheringHandlerTest.java127 mSwitchPreference.setEnabled(true); in onTetherEnabling_shouldReturnSwitchStateDisabled()
137 mSwitchPreference.setEnabled(false); in onTetherEnabled_shouldReturnSwitchStateEnabledAndOn()
149 mSwitchPreference.setEnabled(false); in onTetherDisabled_shouldReturnSwitchStateEnabledAndOff()
161 mSwitchPreference.setEnabled(false); in onEnableTetherFailed_shouldReturnSwitchStateEnabledAndOff()
199 getPreference().setEnabled(true); in enablePreference()
204 getPreference().setEnabled(false); in disablePreference()
/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()
/packages/providers/ContactsProvider/src/com/android/providers/contacts/debug/
DContactsDumpActivity.java65 mDeleteButton.setEnabled(DataExporter.dumpFileExists(this)); in updateDeleteButton()
79 mConfirmButton.setEnabled(false); in onClick()
80 mCancelButton.setEnabled(false); in onClick()
138 mConfirmButton.setEnabled(true); in onActivityResult()
139 mCancelButton.setEnabled(true); in onActivityResult()

12345678910>>...33