Home
last modified time | relevance | path

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

12345678910>>...15

/frameworks/base/core/java/android/bluetooth/
DBluetoothHeadsetClient.java483 if (mService != null && isEnabled() && in connect()
507 if (mService != null && isEnabled() && in disconnect()
528 if (mService != null && isEnabled()) { in getConnectedDevices()
551 if (mService != null && isEnabled()) { in getDevicesMatchingConnectionStates()
572 if (mService != null && isEnabled() && in getConnectionState()
592 if (mService != null && isEnabled() && in setPriority()
614 if (mService != null && isEnabled() && in getPriority()
642 if (mService != null && isEnabled() && in startVoiceRecognition()
669 if (mService != null && isEnabled() && in stopVoiceRecognition()
689 if (mService != null && isEnabled() && in getCurrentCalls()
[all …]
DBluetoothHeadset.java384 if (mService != null && isEnabled() && in connect()
425 if (mService != null && isEnabled() && in disconnect()
443 if (mService != null && isEnabled()) { in getConnectedDevices()
460 if (mService != null && isEnabled()) { in getDevicesMatchingConnectionStates()
477 if (mService != null && isEnabled() && in getConnectionState()
507 if (mService != null && isEnabled() && in setPriority()
539 if (mService != null && isEnabled() && in getPriority()
575 if (mService != null && isEnabled() && in startVoiceRecognition()
599 if (mService != null && isEnabled() && in stopVoiceRecognition()
622 if (mService != null && isEnabled() && in isAudioConnected()
[all …]
DBluetoothA2dp.java294 if (mService != null && isEnabled() && in connect()
338 if (mService != null && isEnabled() && in disconnect()
359 if (mService != null && isEnabled()) { in getConnectedDevices()
379 if (mService != null && isEnabled()) { in getDevicesMatchingConnectionStates()
399 if (mService != null && isEnabled() in getConnectionState()
432 if (mService != null && isEnabled() in setPriority()
466 if (mService != null && isEnabled() in getPriority()
490 if (mService != null && isEnabled()) { in isAvrcpAbsoluteVolumeSupported()
520 if (mService != null && isEnabled()) { in adjustAvrcpAbsoluteVolume()
541 if (mService != null && isEnabled()) { in setAvrcpAbsoluteVolume()
[all …]
DBluetoothInputDevice.java317 if (mService != null && isEnabled() && isValidDevice(device)) { in connect()
357 if (mService != null && isEnabled() && isValidDevice(device)) { in disconnect()
374 if (mService != null && isEnabled()) { in getConnectedDevices()
391 if (mService != null && isEnabled()) { in getDevicesMatchingConnectionStates()
408 if (mService != null && isEnabled() && isValidDevice(device)) { in getConnectionState()
437 if (mService != null && isEnabled() && isValidDevice(device)) { in setPriority()
468 if (mService != null && isEnabled() && isValidDevice(device)) { in getPriority()
498 private boolean isEnabled() { in isEnabled() method in BluetoothInputDevice
523 if (mService != null && isEnabled() && isValidDevice(device)) { in virtualUnplug()
549 if (mService != null && isEnabled() && isValidDevice(device)) { in getProtocolMode()
[all …]
DBluetoothA2dpSink.java242 if (mService != null && isEnabled() && in connect()
283 if (mService != null && isEnabled() && in disconnect()
301 if (mService != null && isEnabled()) { in getConnectedDevices()
318 if (mService != null && isEnabled()) { in getDevicesMatchingConnectionStates()
335 if (mService != null && isEnabled() in getConnectionState()
361 if (mService != null && isEnabled() in getAudioConfig()
391 if (mService != null && isEnabled() in setPriority()
423 if (mService != null && isEnabled() in getPriority()
444 if (mService != null && isEnabled() in isA2dpPlaying()
501 private boolean isEnabled() { in isEnabled() method in BluetoothA2dpSink
DBluetoothHealth.java148 if (!isEnabled() || name == null) return false; in registerSinkAppConfiguration()
174 if (!isEnabled() || !checkAppParam(name, role, channelType, callback)) return result; in registerAppConfiguration()
205 if (mService != null && isEnabled() && config != null) { in unregisterAppConfiguration()
233 if (mService != null && isEnabled() && isValidDevice(device) && in connectChannelToSource()
262 if (mService != null && isEnabled() && isValidDevice(device) && in connectChannelToSink()
291 if (mService != null && isEnabled() && isValidDevice(device) && in disconnectChannel()
320 if (mService != null && isEnabled() && isValidDevice(device) && in getMainChannelFd()
351 if (mService != null && isEnabled() && isValidDevice(device)) { in getConnectionState()
379 if (mService != null && isEnabled()) { in getConnectedDevices()
411 if (mService != null && isEnabled()) { in getDevicesMatchingConnectionStates()
[all …]
DBluetoothPbapClient.java174 if (mService != null && isEnabled() && isValidDevice(device)) { in connect()
199 if (mService != null && isEnabled() && isValidDevice(device)) { in disconnect()
225 if (mService != null && isEnabled()) { in getConnectedDevices()
249 if (mService != null && isEnabled()) { in getDevicesMatchingConnectionStates()
273 if (mService != null && isEnabled() && isValidDevice(device)) { in getConnectionState()
312 private boolean isEnabled() { in isEnabled() method in BluetoothPbapClient
346 if (mService != null && isEnabled() && in setPriority()
379 if (mService != null && isEnabled() && isValidDevice(device)) { in getPriority()
DBluetoothPan.java238 if (mPanService != null && isEnabled() && in connect()
279 if (mPanService != null && isEnabled() && in disconnect()
297 if (mPanService != null && isEnabled()) { in getConnectedDevices()
314 if (mPanService != null && isEnabled()) { in getDevicesMatchingConnectionStates()
331 if (mPanService != null && isEnabled() in getConnectionState()
347 if (mPanService != null && isEnabled()) { in setBluetoothTethering()
359 if (mPanService != null && isEnabled()) { in isTetheringOn()
388 private boolean isEnabled() { in isEnabled() method in BluetoothPan
DBluetoothMapClient.java219 if (mService != null && isEnabled() && in disconnect()
239 if (mService != null && isEnabled()) { in getConnectedDevices()
259 if (mService != null && isEnabled()) { in getDevicesMatchingConnectionStates()
279 if (mService != null && isEnabled() && in getConnectionState()
303 if (mService != null && isEnabled() && in setPriority()
332 if (mService != null && isEnabled() && in getPriority()
360 if (mService != null && isEnabled() && isValidDevice(device)) { in sendMessage()
379 if (mService != null && isEnabled() && isValidDevice(device)) { in getUnreadMessages()
409 private boolean isEnabled() { in isEnabled() method in BluetoothMapClient
DBluetoothAvrcpController.java183 if (mService != null && isEnabled()) { in getConnectedDevices()
200 if (mService != null && isEnabled()) { in getDevicesMatchingConnectionStates()
217 if (mService != null && isEnabled() in getConnectionState()
238 if (mService != null && isEnabled()) { in getPlayerSettings()
255 if (mService != null && isEnabled()) { in setPlayerApplicationSetting()
273 if (mService != null && isEnabled()) { in sendGroupNavigationCmd()
304 private boolean isEnabled() { in isEnabled() method in BluetoothAvrcpController
DBluetoothSap.java269 if (mService != null && isEnabled() && in disconnect()
290 if (mService != null && isEnabled()) { in getConnectedDevices()
310 if (mService != null && isEnabled()) { in getDevicesMatchingConnectionStates()
330 if (mService != null && isEnabled() && in getConnectionState()
355 if (mService != null && isEnabled() && in setPriority()
381 if (mService != null && isEnabled() && in getPriority()
415 private boolean isEnabled() { in isEnabled() method in BluetoothSap
DBluetoothMap.java225 if (mService != null && isEnabled() && in disconnect()
265 if (mService != null && isEnabled()) { in getConnectedDevices()
284 if (mService != null && isEnabled()) { in getDevicesMatchingConnectionStates()
303 if (mService != null && isEnabled() && in getConnectionState()
329 if (mService != null && isEnabled() && in setPriority()
358 if (mService != null && isEnabled() && in getPriority()
392 private boolean isEnabled() { in isEnabled() method in BluetoothMap
/frameworks/opt/setupwizard/library/full-support/src/com/android/setupwizardlib/items/
DItemViewHolder.java44 public void setEnabled(boolean isEnabled) { in setEnabled() argument
45 mIsEnabled = isEnabled; in setEnabled()
46 itemView.setClickable(isEnabled); in setEnabled()
47 itemView.setEnabled(isEnabled); in setEnabled()
48 itemView.setFocusable(isEnabled); in setEnabled()
/frameworks/av/media/libcpustats/
DThreadCpuUsage.cpp31 bool ThreadCpuUsage::setEnabled(bool isEnabled) in setEnabled() argument
35 if (isEnabled != wasEnabled) { in setEnabled()
36 ALOGV("setEnabled(%d)", isEnabled); in setEnabled()
39 if (isEnabled) { in setEnabled()
43 isEnabled = false; in setEnabled()
71 mIsEnabled = isEnabled; in setEnabled()
/frameworks/base/packages/SystemUI/src/com/android/systemui/classifier/
DFalsingManager.java120 .append("enabled=").append(isEnabled() ? 1 : 0) in shouldSessionBeActive()
125 return isEnabled() && mScreenOn && (mState == StatusBarState.KEYGUARD); in shouldSessionBeActive()
155 if (mHumanInteractionClassifier.isEnabled()) { in onSessionStart()
177 return mHumanInteractionClassifier.isEnabled(); in isClassiferEnabled()
180 private boolean isEnabled() { in isEnabled() method in FalsingManager
181 return mHumanInteractionClassifier.isEnabled() || mDataCollector.isEnabled(); in isEnabled()
193 int enabled = isEnabled() ? 1 : 0; in isFalseTouch()
212 .append('/').append(isEnabled() ? 1 : 0) in isFalseTouch()
456 if (mDataCollector.isEnabled()) { in reportRejectedTouch()
/frameworks/base/core/java/android/widget/
DZoomControls.java97 public void setIsZoomInEnabled(boolean isEnabled) { in setIsZoomInEnabled() argument
98 mZoomIn.setEnabled(isEnabled); in setIsZoomInEnabled()
101 public void setIsZoomOutEnabled(boolean isEnabled) { in setIsZoomOutEnabled() argument
102 mZoomOut.setEnabled(isEnabled); in setIsZoomOutEnabled()
/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()
/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/opt/setupwizard/library/test/robotest/src/com/android/setupwizardlib/items/
DButtonItemTest.java71 assertTrue("ButtonItem should be enabled by default", item.isEnabled()); in testDefaultItem()
96 assertTrue("Default button should be enabled", button.isEnabled()); in testCreateButton()
128 assertTrue("ButtonItem should be enabled", item.isEnabled()); in testSetEnabledTrue()
129 assertTrue("Button should be enabled", button.isEnabled()); in testSetEnabledTrue()
138 assertFalse("ButtonItem should be disabled", item.isEnabled()); in testSetEnabledFalse()
139 assertFalse("Button should be disabled", button.isEnabled()); in testSetEnabledFalse()
/frameworks/base/services/autofill/java/com/android/server/autofill/
DAutofillManagerServiceImpl.java192 final boolean wasEnabled = isEnabled(); in updateLocked()
220 final boolean isEnabled = isEnabled(); in updateLocked()
221 if (wasEnabled != isEnabled) { in updateLocked()
222 if (!isEnabled) { in updateLocked()
240 if (!isEnabled()) { in requestSaveForUserLocked()
261 return isEnabled(); in addClientLocked()
265 if (!isEnabled()) { in setAuthenticationResultLocked()
275 if (!isEnabled()) { in setHasCallback()
290 if (!isEnabled()) { in startSessionLocked()
329 if (!isEnabled()) { in finishSessionLocked()
[all …]
/frameworks/data-binding/integration-tests/TestApp/app/src/androidTestApi7/java/android/databinding/testapp/
DNameMappingTest.java62 assertEquals(f2.get(), mBinder.textView.isEnabled()); in testChanges()
63 assertEquals(f2.get(), mBinder.textView2.isEnabled()); in testChanges()
64 assertEquals(false, mBinder.textView3.isEnabled()); in testChanges()
/frameworks/base/telecomm/java/android/telecom/
DPhoneAccount.java306 mIsEnabled = phoneAccount.isEnabled(); in Builder()
440 public Builder setIsEnabled(boolean isEnabled) { in setIsEnabled() argument
441 mIsEnabled = isEnabled; in setIsEnabled()
518 boolean isEnabled, in PhoneAccount() argument
531 mIsEnabled = isEnabled; in PhoneAccount()
677 public boolean isEnabled() { in isEnabled() method in PhoneAccount
730 public void setIsEnabled(boolean isEnabled) { in setIsEnabled() argument
731 mIsEnabled = isEnabled; in setIsEnabled()
/frameworks/base/core/tests/coretests/src/android/widget/espresso/
DContextMenuUtils.java26 import static android.support.test.espresso.matcher.ViewMatchers.isEnabled;
87 enabled ? isEnabled() : not(isEnabled()), in asssertContextMenuContainsItemWithEnabledState()
/frameworks/base/core/tests/coretests/src/android/widget/listview/arrowscroll/
DListWithOffScreenNextSelectableTest.java49 assertFalse(mListView.getAdapter().isEnabled(1)); in testPreconditions()
50 assertFalse(mListView.getAdapter().isEnabled(2)); in testPreconditions()
51 assertFalse(mListView.getAdapter().isEnabled(3)); in testPreconditions()
/frameworks/base/core/java/com/android/internal/app/
DMediaRouteChooserDialog.java117 return !route.isDefault() && route.isEnabled() && route.matchesTypes(mRouteTypes); in onFilterRoute()
207 public boolean isEnabled(int position) { in isEnabled() method in MediaRouteChooserDialog.RouteAdapter
208 return getItem(position).isEnabled(); in isEnabled()
229 view.setEnabled(route.isEnabled()); in getView()
236 if (route.isEnabled()) { in onItemClick()

12345678910>>...15