/packages/apps/Settings/src/com/android/settings/bluetooth/ |
D | BluetoothEnabler.java | 86 mSwitchController.setEnabled(false); in BluetoothEnabler() 108 mSwitchController.setEnabled(false); in resume() 137 mSwitchController.setEnabled(false); in handleStateChanged() 141 mSwitchController.setEnabled(true); in handleStateChanged() 144 mSwitchController.setEnabled(false); in handleStateChanged() 148 mSwitchController.setEnabled(true); in handleStateChanged() 152 mSwitchController.setEnabled(true); in handleStateChanged() 196 mSwitchController.setEnabled(true); in onSwitchToggled() 201 mSwitchController.setEnabled(false); in onSwitchToggled() 226 mSwitchController.setEnabled(false); in maybeEnforceRestrictions()
|
D | BluetoothDetailsProfilesController.java | 134 profilePref.setEnabled(false); in refreshProfilePreference() 140 profilePref.setEnabled(!isBusy); in refreshProfilePreference() 155 profilePref.setEnabled(!isBusy); in refreshProfilePreference() 159 profilePref.setEnabled(false); in refreshProfilePreference() 161 profilePref.setEnabled(!mCachedDevice.isBusy()); in refreshProfilePreference() 186 highQualityPref.setEnabled(!mCachedDevice.isBusy() && !isLeAudioEnabled); in refreshProfilePreference() 213 pref.setEnabled(false); in grayOutPreferenceWhenLeAudioIsEnabled() 237 profile.setEnabled(bluetoothDevice, true); in enableProfile() 250 profile.setEnabled(bluetoothDevice, false); in disableProfile() 363 profile.setEnabled(leAudioDevice.getDevice(), false); in disableLeAudioProfile() [all …]
|
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/hvac/ |
D | HvacTestFragment.java | 296 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/ |
D | BluetoothSummaryUpdaterTest.java | 92 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/modules/Uwb/service/tests/src/com/android/server/uwb/ |
D | UwbServiceImplTest.java | 269 mUwbServiceImpl.setEnabled(true); in testThrowSecurityExceptionWhenSetUwbEnabledCalledWithoutUwbPrivilegedPermission() 294 mUwbServiceImpl.setEnabled(true); in testToggleStatePersistenceToSharedPrefs() 296 verify(mUwbServiceCore).setEnabled(true); in testToggleStatePersistenceToSharedPrefs() 299 mUwbServiceImpl.setEnabled(false); in testToggleStatePersistenceToSharedPrefs() 301 verify(mUwbServiceCore).setEnabled(false); in testToggleStatePersistenceToSharedPrefs() 308 mUwbServiceImpl.setEnabled(true); in testToggleStatePersistenceToSharedPrefsWhenApmModeOn() 310 verify(mUwbServiceCore).setEnabled(false); in testToggleStatePersistenceToSharedPrefsWhenApmModeOn() 313 mUwbServiceImpl.setEnabled(false); in testToggleStatePersistenceToSharedPrefsWhenApmModeOn() 315 verify(mUwbServiceCore, times(2)).setEnabled(false); in testToggleStatePersistenceToSharedPrefsWhenApmModeOn() 331 mUwbServiceImpl.setEnabled(true); in testApmModeToggle() [all …]
|
/packages/apps/Settings/src/com/android/settings/nfc/ |
D | AndroidBeamEnabler.java | 43 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()
|
D | SecureNfcEnabler.java | 47 mPreference.setEnabled(false); in handleNfcStateChanged() 52 mPreference.setEnabled(isToggleable()); in handleNfcStateChanged() 55 mPreference.setEnabled(false); in handleNfcStateChanged() 58 mPreference.setEnabled(false); in handleNfcStateChanged()
|
D | NfcEnabler.java | 44 mPreference.setEnabled(isToggleable()); in handleNfcStateChanged() 48 mPreference.setEnabled(true); in handleNfcStateChanged() 52 mPreference.setEnabled(false); in handleNfcStateChanged() 56 mPreference.setEnabled(false); in handleNfcStateChanged()
|
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/bluetooth/ |
D | CustomUuidEirFragment.java | 125 mAdvertisingToggle.setEnabled(true); in onCreateView() 126 mBtAdapterToggle.setEnabled(true); in onCreateView() 129 mAdvertisingToggle.setEnabled(false); in onCreateView() 130 mBtAdapterToggle.setEnabled(false); in onCreateView() 191 toggle.setEnabled(false); in onCreateView() 242 mBtAdapterToggle.setEnabled(true); in onResume() 244 mBtAdapterToggle.setEnabled(false); in onResume() 248 mAdvertisingToggle.setEnabled(true); in onResume() 250 mAdvertisingToggle.setEnabled(false); in onResume() 269 uuidText.setEnabled(false); in setUuidInEir() [all …]
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/wifi/p2p/ |
D | WifiP2PPreferenceControllerTest.java | 111 verify(mWifiDirectPreference).setEnabled(true); in testWifiStateChange_shouldToggleEnabledState() 115 verify(mWifiDirectPreference, times(2)).setEnabled(true); in testWifiStateChange_shouldToggleEnabledState() 119 verify(mWifiDirectPreference).setEnabled(false); in testWifiStateChange_shouldToggleEnabledState() 126 verify(mWifiDirectPreference).setEnabled(true); in testDisplayPreference_shouldToggleEnabledState() 130 verify(mWifiDirectPreference).setEnabled(false); in testDisplayPreference_shouldToggleEnabledState() 134 verify(mWifiDirectPreference).setEnabled(false); in testDisplayPreference_shouldToggleEnabledState() 143 verify(mWifiDirectPreference).setEnabled(false); in displayPreference_wifiDirectNotAllowed_shouldDisable() 153 verify(mWifiDirectPreference).setEnabled(true); in displayPreference_wifiDirectNotAllowed_shouldEnable()
|
/packages/apps/Car/Settings/src/com/android/car/settings/bluetooth/ |
D | BluetoothBondedDevicesPreferenceController.java | 207 finalPhoneProfile.setEnabled(cachedDevice.getDevice(), true); in setButtonsCheckedAndListeners() 208 finalMediaProfile.setEnabled(cachedDevice.getDevice(), true); in setButtonsCheckedAndListeners() 227 finalPhoneProfile.setEnabled(cachedDevice.getDevice(), isChecked)); in setButtonsCheckedAndListeners() 245 finalMediaProfile.setEnabled(cachedDevice.getDevice(), isChecked)); in setButtonsCheckedAndListeners() 254 bluetoothItem.setEnabled(true); in updateBluetoothActionItemAvailability() 264 phoneItem.setEnabled(isAvailable && !hasDisallowConfigRestriction()); in updatePhoneActionItemAvailability() 276 mediaItem.setEnabled(isAvailable && !hasDisallowConfigRestriction()); in updateMediaActionItemAvailability() 286 preference.getActionItem(BLUETOOTH_BUTTON).setEnabled(false); in disableAllActionItems() 287 preference.getActionItem(PHONE_BUTTON).setEnabled(false); in disableAllActionItems() 288 preference.getActionItem(MEDIA_BUTTON).setEnabled(false); in disableAllActionItems()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/dream/ |
D | DreamMainSwitchPreferenceControllerTest.java | 81 mBackend.setEnabled(false); in testIsChecked_returnsFalse() 87 mBackend.setEnabled(true); in testIsChecked_returnsTrue() 93 mBackend.setEnabled(true); in testSetChecked_setFalse_disablesSetting() 100 mBackend.setEnabled(false); in testSetChecked_setTrue_enablesSetting() 125 mBackend.setEnabled(true); in testUpdateState() 129 mBackend.setEnabled(false); in testUpdateState() 133 mBackend.setEnabled(true); in testUpdateState()
|
/packages/apps/Settings/src/com/android/settings/network/apn/ |
D | ApnEditor.java | 511 preference.setEnabled(false); in disableFields() 520 mName.setEnabled(false); in disableAllFields() 521 mApn.setEnabled(false); in disableAllFields() 522 mProxy.setEnabled(false); in disableAllFields() 523 mPort.setEnabled(false); in disableAllFields() 524 mUser.setEnabled(false); in disableAllFields() 525 mServer.setEnabled(false); in disableAllFields() 526 mPassword.setEnabled(false); in disableAllFields() 527 mMmsProxy.setEnabled(false); in disableAllFields() 528 mMmsPort.setEnabled(false); in disableAllFields() [all …]
|
/packages/apps/Settings/src/com/android/settings/ |
D | TetherSettings.java | 234 mUsbTether.setEnabled(!mDataSaverEnabled); in onDataSaverChanged() 235 mBluetoothTether.setEnabled(!mDataSaverEnabled); in onDataSaverChanged() 236 mEthernetTether.setEnabled(!mDataSaverEnabled); in onDataSaverChanged() 418 mUsbTether.setEnabled(!mDataSaverEnabled); in updateUsbState() 439 mUsbTether.setEnabled(!mDataSaverEnabled); in updateUsbPreference() 441 mUsbTether.setEnabled(false); in updateUsbPreference() 471 mBluetoothTether.setEnabled(false); in updateBluetoothState() 473 mBluetoothTether.setEnabled(false); in updateBluetoothState() 477 mBluetoothTether.setEnabled(!mDataSaverEnabled); in updateBluetoothState() 479 mBluetoothTether.setEnabled(!mDataSaverEnabled); in updateBluetoothState() [all …]
|
/packages/apps/Car/Settings/src/com/android/car/settings/storage/ |
D | StorageApplicationActionButtonsPreferenceController.java | 104 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/Settings/src/com/android/settings/widget/ |
D | SettingsMainSwitchBar.java | 95 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()
|
D | SwitchBar.java | 227 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/TvSettings/Settings/src/com/android/tv/settings/system/ |
D | TtsEngineSettingsFragment.java | 104 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() 256 mInstallVoicesPreference.setEnabled(true); in updateVoiceDetails() 258 mInstallVoicesPreference.setEnabled(false); in updateVoiceDetails() 263 mLocalePreference.setEnabled(false); in updateVoiceDetails() 271 mLocalePreference.setEnabled(false); in updateDefaultLocalePref() 310 mLocalePreference.setEnabled(true); in updateDefaultLocalePref()
|
/packages/apps/Car/DebuggingRestrictionController/app/src/main/java/com/android/car/debuggingrestrictioncontroller/ui/login/ |
D | LoginActivity.java | 80 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/src/com/android/settings/development/bluetooth/ |
D | BluetoothHDAudioPreferenceController.java | 52 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/Test/connectivity/PMC/src/com/android/pmc/ |
D | PMCMainActivity.java | 182 mBtnStart.setEnabled(true); in addListenerOnButton() 213 mBtnStart.setEnabled(false); in startDownloadFile() 224 mBtnStart.setEnabled(true); in stopDownloadFile() 238 mBtnStart.setEnabled(false); in startConnectivityScan() 248 mBtnStart.setEnabled(true); in stopConnectivityScan() 276 mBtnStart.setEnabled(false); in startGscan() 286 mBtnStart.setEnabled(true); in stopGScan() 298 mBtnStart.setEnabled(false); in startIperfClient() 307 mBtnStart.setEnabled(true); in stopIperfClient() 323 mBtnStart.setEnabled(false); in startUSBTethering() [all …]
|
/packages/apps/Dialer/java/com/android/incallui/incall/impl/ |
D | ButtonController.java | 40 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/Settings/tests/robotests/src/com/android/settings/ |
D | TetherSettingsTest.java | 106 FeatureFlagUtils.setEnabled(mContext, FeatureFlags.TETHER_ALL_IN_ONE, false); in testTetherNonIndexableKeys_tetherAvailable_keysNotReturned() 151 FeatureFlagUtils.setEnabled(mContext, FeatureFlags.TETHER_ALL_IN_ONE, false); in testTetherNonIndexableKeys_usbAvailable_usbKeyNotReturned() 174 FeatureFlagUtils.setEnabled(mContext, FeatureFlags.TETHER_ALL_IN_ONE, false); in testTetherNonIndexableKeys_bluetoothAvailable_bluetoothKeyNotReturned() 230 verify(mockSwitchPreference).setEnabled(true); in testBluetoothState_updateBluetoothState_bluetoothTetheringStateOn() 263 verify(mockSwitchPreference).setEnabled(true); in testBluetoothState_updateBluetoothState_bluetoothTetheringStateOff() 281 verify(tetheringPreference).setEnabled(true); in updateState_usbTetheringIsEnabled_checksUsbTethering() 299 verify(tetheringPreference).setEnabled(false); in updateState_usbTetheringIsDisabled_unchecksUsbTethering() 315 verify(tetheringPreference).setEnabled(true); in onReceive_usbIsConnected_tetheringPreferenceIsEnabled() 330 verify(tetheringPreference).setEnabled(false); in onReceive_usbIsDisconnected_tetheringPreferenceIsDisabled() 344 verify(tetheringPreference).setEnabled(false); in onReceive_mediaIsShared_tetheringPreferenceIsDisabled() [all …]
|
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/history/ |
D | HistoryManager.java | 86 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/Camera2/src/com/android/camera/ |
D | AccessibilityUtil.java | 39 mZoomMinusButton.setEnabled(true); 43 mZoomPlusButton.setEnabled(false); 55 mZoomPlusButton.setEnabled(true); 59 mZoomMinusButton.setEnabled(false); 81 mZoomMinusButton.setEnabled(false); in showZoomUI()
|