Home
last modified time | relevance | path

Searched refs:isEnabled (Results 1 – 25 of 458) sorted by relevance

12345678910>>...19

/frameworks/opt/setupwizard/library/recyclerview/src/com/android/setupwizardlib/items/
DItemViewHolder.java26 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/
DBluetoothHeadsetClient.java453 if (service != null && isEnabled() && isValidDevice(device)) { in connect()
479 if (service != null && isEnabled() && isValidDevice(device)) { in disconnect()
501 if (service != null && isEnabled()) { in getConnectedDevices()
525 if (service != null && isEnabled()) { in getDevicesMatchingConnectionStates()
548 if (service != null && isEnabled() && isValidDevice(device)) { in getConnectionState()
595 if (service != null && isEnabled() && isValidDevice(device)) { in setConnectionPolicy()
643 if (service != null && isEnabled() && isValidDevice(device)) { in getConnectionPolicy()
670 if (service != null && isEnabled() && isValidDevice(device)) { in startVoiceRecognition()
695 if (service != null && isEnabled() && isValidDevice(device)) { in sendVendorAtCommand()
721 if (service != null && isEnabled() && isValidDevice(device)) { in stopVoiceRecognition()
[all …]
DBluetoothHeadset.java446 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 …]
DBluetoothA2dp.java283 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 …]
DBluetoothHearingAid.java174 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 …]
DBluetoothHidHost.java274 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 …]
DBluetoothA2dpSink.java127 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
DBluetoothAvrcpController.java120 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
DBluetoothPan.java206 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
DBluetoothPbapClient.java113 if (service != null && isEnabled() && isValidDevice(device)) { in connect()
141 if (service != null && isEnabled() && isValidDevice(device)) { in disconnect()
168 if (service != null && isEnabled()) { in getConnectedDevices()
193 if (service != null && isEnabled()) { in getDevicesMatchingConnectionStates()
218 if (service != null && isEnabled() && isValidDevice(device)) { in getConnectionState()
236 private boolean isEnabled() { in isEnabled() method in BluetoothPbapClient
285 if (service != null && isEnabled() && isValidDevice(device)) { in setConnectionPolicy()
336 if (service != null && isEnabled() && isValidDevice(device)) { in getConnectionPolicy()
DBluetoothMapClient.java212 if (service != null && isEnabled() && isValidDevice(device)) { in disconnect()
232 if (service != null && isEnabled()) { in getConnectedDevices()
253 if (service != null && isEnabled()) { in getDevicesMatchingConnectionStates()
274 if (service != null && isEnabled() && isValidDevice(device)) { in getConnectionState()
320 if (service != null && isEnabled() && isValidDevice(device)) { in setConnectionPolicy()
367 if (service != null && isEnabled() && isValidDevice(device)) { in getConnectionPolicy()
396 if (service != null && isEnabled() && isValidDevice(device)) { in sendMessage()
416 if (service != null && isEnabled() && isValidDevice(device)) { in getUnreadMessages()
437 return (service != null && isEnabled() && isValidDevice(device)) in isUploadingSupported()
465 if (service != null && isEnabled() && isValidDevice(device) && handle != null && in setMessageStatus()
[all …]
DBluetoothSap.java226 if (service != null && isEnabled() && isValidDevice(device)) { in disconnect()
247 if (service != null && isEnabled()) { in getConnectedDevices()
268 if (service != null && isEnabled()) { in getDevicesMatchingConnectionStates()
289 if (service != null && isEnabled() && isValidDevice(device)) { in getConnectionState()
335 if (service != null && isEnabled() && isValidDevice(device)) { in setConnectionPolicy()
382 if (service != null && isEnabled() && isValidDevice(device)) { in getConnectionPolicy()
398 private boolean isEnabled() { in isEnabled() method in BluetoothSap
/frameworks/base/telephony/java/android/telephony/euicc/
DEuiccManager.java843 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/
DActionButtonsPreference.java145 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/SettingsLib/tests/robotests/src/com/android/settingslib/applications/
DServiceListingTest.java75 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/
DFeatureFlagUtilsTest.java66 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/av/media/libcpustats/
DThreadCpuUsage.cpp37 bool ThreadCpuUsage::setEnabled(bool isEnabled) in setEnabled() argument
41 if (isEnabled != wasEnabled) { in setEnabled()
42 ALOGV("setEnabled(%d)", isEnabled); in setEnabled()
45 if (isEnabled) { in setEnabled()
49 isEnabled = false; in setEnabled()
77 mIsEnabled = isEnabled; in setEnabled()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/
DSmartReplyConstantsTest.java75 assertTrue(mConstants.isEnabled()); in testIsEnabledWithNoConfig()
82 assertTrue(mConstants.isEnabled()); in testIsEnabledWithInvalidConfig()
89 assertFalse(mConstants.isEnabled()); in testIsEnabledWithValidConfig()
105 assertTrue(mConstants.isEnabled()); in testGetMaxSqueezeRemeasureAttemptsWithNoConfig()
170 assertTrue(mConstants.isEnabled()); in testShowInHeadsUpWithNoConfig()
190 assertTrue(mConstants.isEnabled()); in testGetMinNumSystemGeneratedRepliesWithNoConfig()
203 assertTrue(mConstants.isEnabled()); in testMaxNumActionsWithNoConfig()
/frameworks/base/core/java/android/widget/
DZoomControls.java104 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/
DPanProfile.java97 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()
DPbapServerProfile.java100 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/packages/SystemUI/src/com/android/systemui/classifier/
DFalsingManagerImpl.java168 .append("enabled=").append(isEnabled() ? 1 : 0) in shouldSessionBeActive()
175 return isEnabled() && mScreenOn && (mState == StatusBarState.KEYGUARD) && !mShowingAod; in shouldSessionBeActive()
223 if (mHumanInteractionClassifier.isEnabled()) { in onSessionStart()
229 if (mDataCollector.isEnabled()) { in onSessionStart()
249 return mHumanInteractionClassifier.isEnabled(); in isClassiferEnabled()
252 private boolean isEnabled() { in isEnabled() method in FalsingManagerImpl
253 return mHumanInteractionClassifier.isEnabled() || mDataCollector.isEnabled(); in isEnabled()
268 int enabled = isEnabled() ? 1 : 0; in isFalseTouch()
287 .append('/').append(isEnabled() ? 1 : 0) in isFalseTouch()
563 if (mDataCollector.isEnabled()) { in reportRejectedTouch()
/frameworks/opt/setupwizard/library/test/robotest/src/com/android/setupwizardlib/items/
DButtonItemTest.java61 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()
/frameworks/base/packages/SystemUI/src/com/android/systemui/tuner/
DPowerNotificationControlsFragment.java53 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/base/core/tests/bluetoothtests/src/android/bluetooth/
DBluetoothRebootStressTest.java66 assertTrue(adapter.isEnabled()); in testMiddleNoToggle()
77 assertTrue(adapter.isEnabled()); in testMiddleToggle()
90 assertTrue(adapter.isEnabled()); in testStop()

12345678910>>...19