/frameworks/opt/setupwizard/library/recyclerview/src/com/android/setupwizardlib/items/ |
D | ItemViewHolder.java | 26 private boolean isEnabled; field in ItemViewHolder 35 return isEnabled; in isDividerAllowedAbove() 40 return isEnabled; in isDividerAllowedBelow() 43 public void setEnabled(boolean isEnabled) { in setEnabled() argument 44 this.isEnabled = isEnabled; in setEnabled() 45 itemView.setClickable(isEnabled); in setEnabled() 46 itemView.setEnabled(isEnabled); in setEnabled() 47 itemView.setFocusable(isEnabled); in setEnabled()
|
/frameworks/base/core/java/android/bluetooth/ |
D | BluetoothHeadsetClient.java | 454 if (service != null && isEnabled() && isValidDevice(device)) { in connect() 480 if (service != null && isEnabled() && isValidDevice(device)) { in disconnect() 502 if (service != null && isEnabled()) { in getConnectedDevices() 526 if (service != null && isEnabled()) { in getDevicesMatchingConnectionStates() 549 if (service != null && isEnabled() && isValidDevice(device)) { in getConnectionState() 597 if (service != null && isEnabled() && isValidDevice(device)) { in setConnectionPolicy() 646 if (service != null && isEnabled() && isValidDevice(device)) { in getConnectionPolicy() 673 if (service != null && isEnabled() && isValidDevice(device)) { in startVoiceRecognition() 698 if (service != null && isEnabled() && isValidDevice(device)) { in sendVendorAtCommand() 724 if (service != null && isEnabled() && isValidDevice(device)) { in stopVoiceRecognition() [all …]
|
D | BluetoothHeadset.java | 446 if (service != null && isEnabled() && isValidDevice(device)) { in connect() 488 if (service != null && isEnabled() && isValidDevice(device)) { in disconnect() 507 if (service != null && isEnabled()) { in getConnectedDevices() 526 if (service != null && isEnabled()) { in getDevicesMatchingConnectionStates() 545 if (service != null && isEnabled() && isValidDevice(device)) { in getConnectionState() 576 if (service != null && isEnabled() && isValidDevice(device)) { in setPriority() 611 if (service != null && isEnabled() && isValidDevice(device)) { in setConnectionPolicy() 643 if (service != null && isEnabled() && isValidDevice(device)) { in getPriority() 671 if (service != null && isEnabled() && isValidDevice(device)) { in getConnectionPolicy() 707 if (service != null && isEnabled() && isValidDevice(device)) { in startVoiceRecognition() [all …]
|
D | BluetoothA2dp.java | 283 if (service != null && isEnabled() && isValidDevice(device)) { in connect() 323 if (service != null && isEnabled() && isValidDevice(device)) { in disconnect() 342 if (service != null && isEnabled()) { in getConnectedDevices() 361 if (service != null && isEnabled()) { in getDevicesMatchingConnectionStates() 380 if (service != null && isEnabled() in getConnectionState() 417 if (service != null && isEnabled() in setActiveDevice() 443 if (service != null && isEnabled()) { in getActiveDevice() 490 if (service != null && isEnabled() in setConnectionPolicy() 522 if (service != null && isEnabled() in getPriority() 551 if (service != null && isEnabled() in getConnectionPolicy() [all …]
|
D | BluetoothHearingAid.java | 174 if (service != null && isEnabled() && isValidDevice(device)) { in connect() 212 if (service != null && isEnabled() && isValidDevice(device)) { in disconnect() 231 if (service != null && isEnabled()) { in getConnectedDevices() 251 if (service != null && isEnabled()) { in getDevicesMatchingConnectionStates() 271 if (service != null && isEnabled() in getConnectionState() 310 if (service != null && isEnabled() in setActiveDevice() 337 if (service != null && isEnabled()) { in getActiveDevices() 385 if (service != null && isEnabled() in setConnectionPolicy() 435 if (service != null && isEnabled() in getConnectionPolicy() 485 if (!isEnabled()) return; in setVolume() [all …]
|
D | BluetoothHidHost.java | 274 if (service != null && isEnabled() && isValidDevice(device)) { in connect() 312 if (service != null && isEnabled() && isValidDevice(device)) { in disconnect() 335 if (service != null && isEnabled()) { in getConnectedDevices() 356 if (service != null && isEnabled()) { in getDevicesMatchingConnectionStates() 382 if (service != null && isEnabled() && isValidDevice(device)) { in getConnectionState() 432 if (service != null && isEnabled() && isValidDevice(device)) { in setConnectionPolicy() 483 if (service != null && isEnabled() && isValidDevice(device)) { in getConnectionPolicy() 495 private boolean isEnabled() { in isEnabled() method in BluetoothHidHost 515 if (service != null && isEnabled() && isValidDevice(device)) { in virtualUnplug() 541 if (service != null && isEnabled() && isValidDevice(device)) { in getProtocolMode() [all …]
|
D | BluetoothA2dpSink.java | 127 if (service != null && isEnabled() && isValidDevice(device)) { in connect() 166 if (service != null && isEnabled() && isValidDevice(device)) { in disconnect() 187 if (service != null && isEnabled()) { in getConnectedDevices() 208 if (service != null && isEnabled()) { in getDevicesMatchingConnectionStates() 229 if (service != null && isEnabled() && isValidDevice(device)) { in getConnectionState() 257 if (service != null && isEnabled() && isValidDevice(device)) { in getAudioConfig() 304 if (service != null && isEnabled() && isValidDevice(device)) { in setConnectionPolicy() 352 if (service != null && isEnabled() && isValidDevice(device)) { in getConnectionPolicy() 376 if (service != null && isEnabled() && isValidDevice(device)) { in isAudioPlaying() 414 private boolean isEnabled() { in isEnabled() method in BluetoothA2dpSink
|
D | BluetoothAvrcpController.java | 120 if (service != null && isEnabled()) { in getConnectedDevices() 140 if (service != null && isEnabled()) { in getDevicesMatchingConnectionStates() 160 if (service != null && isEnabled() && isValidDevice(device)) { in getConnectionState() 182 if (service != null && isEnabled()) { in getPlayerSettings() 201 if (service != null && isEnabled()) { in setPlayerApplicationSetting() 222 if (service != null && isEnabled()) { in sendGroupNavigationCmd() 234 private boolean isEnabled() { in isEnabled() method in BluetoothAvrcpController
|
D | BluetoothPan.java | 206 if (service != null && isEnabled() && isValidDevice(device)) { in connect() 244 if (service != null && isEnabled() && isValidDevice(device)) { in disconnect() 275 if (service != null && isEnabled() in setConnectionPolicy() 301 if (service != null && isEnabled()) { in getConnectedDevices() 322 if (service != null && isEnabled()) { in getDevicesMatchingConnectionStates() 344 if (service != null && isEnabled() && isValidDevice(device)) { in getConnectionState() 368 if (service != null && isEnabled()) { in setBluetoothTethering() 388 if (service != null && isEnabled()) { in isTetheringOn() 399 private boolean isEnabled() { in isEnabled() method in BluetoothPan
|
D | BluetoothMapClient.java | 176 if (service != null && isEnabled() && isValidDevice(device)) { in disconnect() 196 if (service != null && isEnabled()) { in getConnectedDevices() 217 if (service != null && isEnabled()) { in getDevicesMatchingConnectionStates() 238 if (service != null && isEnabled() && isValidDevice(device)) { in getConnectionState() 285 if (service != null && isEnabled() && isValidDevice(device)) { in setConnectionPolicy() 333 if (service != null && isEnabled() && isValidDevice(device)) { in getConnectionPolicy() 362 if (service != null && isEnabled() && isValidDevice(device)) { in sendMessage() 382 if (service != null && isEnabled() && isValidDevice(device)) { in getUnreadMessages() 403 return (service != null && isEnabled() && isValidDevice(device)) in isUploadingSupported() 411 private boolean isEnabled() { in isEnabled() method in BluetoothMapClient
|
D | BluetoothPbapClient.java | 114 if (service != null && isEnabled() && isValidDevice(device)) { in connect() 142 if (service != null && isEnabled() && isValidDevice(device)) { in disconnect() 169 if (service != null && isEnabled()) { in getConnectedDevices() 194 if (service != null && isEnabled()) { in getDevicesMatchingConnectionStates() 219 if (service != null && isEnabled() && isValidDevice(device)) { in getConnectionState() 237 private boolean isEnabled() { in isEnabled() method in BluetoothPbapClient 287 if (service != null && isEnabled() && isValidDevice(device)) { in setConnectionPolicy() 339 if (service != null && isEnabled() && isValidDevice(device)) { in getConnectionPolicy()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/om/ |
D | OverlayManagerServiceImplRebootTests.java | 90 assertFalse(o1.isEnabled()); in testImmutableEnabledChange() 97 assertTrue(o2.isEnabled()); in testImmutableEnabledChange() 104 assertFalse(o3.isEnabled()); in testImmutableEnabledChange() 118 assertFalse(o1.isEnabled()); in testMutableEnabledChangeHasNoEffect() 125 assertFalse(o2.isEnabled()); in testMutableEnabledChangeHasNoEffect() 132 assertFalse(o3.isEnabled()); in testMutableEnabledChangeHasNoEffect() 147 assertEquals(enabled, o.isEnabled()); in testMutableEnabledToImmutableEnabled() 193 assertFalse(o1.isEnabled()); in testMutablePriorityChange() 198 assertFalse(o2.isEnabled()); in testMutablePriorityChange() 212 assertTrue(o3.isEnabled()); in testMutablePriorityChange() [all …]
|
/frameworks/base/telephony/java/android/telephony/euicc/ |
D | EuiccManager.java | 843 public boolean isEnabled() { in isEnabled() method in EuiccManager 860 if (!isEnabled()) { in getEid() 883 if (!isEnabled()) { in getOtaStatus() 918 if (!isEnabled()) { in downloadSubscription() 980 if (!isEnabled()) { in continueOperation() 1017 if (!isEnabled()) { in getDownloadableSubscriptionMetadata() 1047 if (!isEnabled()) { in getDefaultDownloadableSubscriptionList() 1066 if (!isEnabled()) { in getEuiccInfo() 1091 if (!isEnabled()) { in deleteSubscription() 1131 if (!isEnabled()) { in switchToSubscription() [all …]
|
/frameworks/base/packages/SettingsLib/ActionButtonsPreference/src/com/android/settingslib/widget/ |
D | ActionButtonsPreference.java | 145 public ActionButtonsPreference setButton1Enabled(boolean isEnabled) { in setButton1Enabled() argument 146 if (isEnabled != mButton1Info.mIsEnabled) { in setButton1Enabled() 147 mButton1Info.mIsEnabled = isEnabled; in setButton1Enabled() 210 public ActionButtonsPreference setButton2Enabled(boolean isEnabled) { in setButton2Enabled() argument 211 if (isEnabled != mButton2Info.mIsEnabled) { in setButton2Enabled() 212 mButton2Info.mIsEnabled = isEnabled; in setButton2Enabled() 275 public ActionButtonsPreference setButton3Enabled(boolean isEnabled) { in setButton3Enabled() argument 276 if (isEnabled != mButton3Info.mIsEnabled) { in setButton3Enabled() 277 mButton3Info.mIsEnabled = isEnabled; in setButton3Enabled() 340 public ActionButtonsPreference setButton4Enabled(boolean isEnabled) { in setButton4Enabled() argument [all …]
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/media/ |
D | SeekBarObserverTest.kt | 71 val isEnabled = false in seekBarGone() constant 72 val data = SeekBarViewModel.Progress(isEnabled, false, null, null) in seekBarGone() 75 assertThat(seekBarView.isEnabled()).isFalse() in seekBarGone() 85 val isEnabled = true in seekBarVisible() constant 86 val data = SeekBarViewModel.Progress(isEnabled, true, 3000, 12000) in seekBarVisible() 114 assertThat(seekBarView.isEnabled()).isFalse() in seekBarDisabledWhenSeekNotAvailable() 124 assertThat(seekBarView.isEnabled()).isTrue() in seekBarEnabledWhenSeekNotAvailable()
|
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/applications/ |
D | ServiceListingTest.java | 75 assertThat(mServiceListing.isEnabled(testComponent1)).isTrue(); in testSaveLoad() 76 assertThat(mServiceListing.isEnabled(testComponent2)).isTrue(); in testSaveLoad() 84 assertThat(mServiceListing.isEnabled(testComponent1)).isFalse(); in testSaveLoad() 85 assertThat(mServiceListing.isEnabled(testComponent2)).isTrue(); in testSaveLoad() 93 assertThat(mServiceListing.isEnabled(testComponent1)).isTrue(); in testSaveLoad() 94 assertThat(mServiceListing.isEnabled(testComponent2)).isTrue(); in testSaveLoad()
|
/frameworks/base/core/tests/featureflagtests/src/android/util/ |
D | FeatureFlagUtilsTest.java | 66 assertTrue(FeatureFlagUtils.isEnabled(mContext, TEST_FEATURE_NAME)); in testGetFlag_enabled_shouldReturnTrue() 74 assertTrue(FeatureFlagUtils.isEnabled(mContext, TEST_FEATURE_NAME)); in testGetFlag_adb_override_shouldReturnTrue() 84 assertTrue(FeatureFlagUtils.isEnabled(mContext, TEST_FEATURE_NAME)); in testGetFlag_settings_override_shouldReturnTrue() 89 assertFalse(FeatureFlagUtils.isEnabled(mContext, TEST_FEATURE_NAME)); in testSetEnabled_shouldSetOverrideFlag() 101 assertFalse(FeatureFlagUtils.isEnabled(mContext, TEST_FEATURE_NAME + "does_not_exist")); in testGetFlag_notSet_shouldReturnFalse()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/ |
D | SmartReplyConstantsTest.java | 73 assertTrue(mConstants.isEnabled()); in testIsEnabledWithNoConfig() 79 assertTrue(mConstants.isEnabled()); in testIsEnabledWithInvalidConfig() 85 assertFalse(mConstants.isEnabled()); in testIsEnabledWithValidConfig() 99 assertTrue(mConstants.isEnabled()); in testGetMaxSqueezeRemeasureAttemptsWithNoConfig() 159 assertTrue(mConstants.isEnabled()); in testShowInHeadsUpWithNoConfig() 177 assertTrue(mConstants.isEnabled()); in testGetMinNumSystemGeneratedRepliesWithNoConfig() 189 assertTrue(mConstants.isEnabled()); in testMaxNumActionsWithNoConfig()
|
/frameworks/av/media/libcpustats/ |
D | ThreadCpuUsage.cpp | 36 bool ThreadCpuUsage::setEnabled(bool isEnabled) in setEnabled() argument 40 if (isEnabled != wasEnabled) { in setEnabled() 41 ALOGV("setEnabled(%d)", isEnabled); in setEnabled() 44 if (isEnabled) { in setEnabled() 48 isEnabled = false; in setEnabled() 76 mIsEnabled = isEnabled; in setEnabled()
|
/frameworks/base/core/java/android/widget/ |
D | ZoomControls.java | 104 public void setIsZoomInEnabled(boolean isEnabled) { in setIsZoomInEnabled() argument 105 mZoomIn.setEnabled(isEnabled); in setIsZoomInEnabled() 108 public void setIsZoomOutEnabled(boolean isEnabled) { in setIsZoomOutEnabled() argument 109 mZoomOut.setEnabled(isEnabled); in setIsZoomOutEnabled()
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/bluetooth/ |
D | PanProfile.java | 97 public boolean isEnabled(BluetoothDevice device) { in isEnabled() method in PanProfile 108 boolean isEnabled = false; in setEnabled() 120 isEnabled = mService.setConnectionPolicy(device, CONNECTION_POLICY_ALLOWED); in setEnabled() 122 isEnabled = mService.setConnectionPolicy(device, CONNECTION_POLICY_FORBIDDEN); in setEnabled() 125 return isEnabled; in setEnabled()
|
D | PbapServerProfile.java | 100 public boolean isEnabled(BluetoothDevice device) { in isEnabled() method in PbapServerProfile 111 boolean isEnabled = false; in setEnabled() 117 isEnabled = mService.setConnectionPolicy(device, CONNECTION_POLICY_FORBIDDEN); in setEnabled() 120 return isEnabled; in setEnabled()
|
/frameworks/base/core/tests/bluetoothtests/src/android/bluetooth/ |
D | BluetoothRebootStressTest.java | 66 assertTrue(adapter.isEnabled()); in testMiddleNoToggle() 77 assertTrue(adapter.isEnabled()); in testMiddleToggle() 90 assertTrue(adapter.isEnabled()); in testStop()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/tuner/ |
D | PowerNotificationControlsFragment.java | 53 switchWidget.setChecked(isEnabled()); in onViewCreated() 54 switchText.setText(isEnabled() in onViewCreated() 61 boolean newState = !isEnabled(); in onViewCreated() 88 private boolean isEnabled() { in isEnabled() method in PowerNotificationControlsFragment
|
/frameworks/opt/setupwizard/library/test/robotest/src/com/android/setupwizardlib/items/ |
D | ButtonItemTest.java | 61 assertThat(item.isEnabled()).named("enabled").isTrue(); in testDefaultItem() 85 assertThat(button.isEnabled()).named("enabled").isTrue(); in testCreateButton() 121 assertWithMessage("ButtonItem should be enabled").that(item.isEnabled()).isTrue(); in testSetEnabledTrue() 122 assertWithMessage("Button should be enabled").that(button.isEnabled()).isTrue(); in testSetEnabledTrue() 131 assertWithMessage("ButtonItem should be disabled").that(item.isEnabled()).isFalse(); in testSetEnabledFalse() 132 assertWithMessage("Button should be disabled").that(button.isEnabled()).isFalse(); in testSetEnabledFalse()
|