Home
last modified time | relevance | path

Searched refs:getDefaultAdapter (Results 1 – 25 of 323) sorted by relevance

12345678910>>...13

/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/avrcpcontroller/
DAvrcpControllerNativeInterface.java123 BluetoothDevice device = BluetoothAdapter.getDefaultAdapter().getRemoteDevice(address); in onConnectionStateChanged()
138 BluetoothDevice device = BluetoothAdapter.getDefaultAdapter().getRemoteDevice(address); in getRcPsm()
146 BluetoothDevice device = BluetoothAdapter.getDefaultAdapter().getRemoteDevice(address); in handlePlayerAppSetting()
154 BluetoothDevice device = BluetoothAdapter.getDefaultAdapter().getRemoteDevice(address); in onPlayerAppSettingChanged()
162 BluetoothDevice device = BluetoothAdapter.getDefaultAdapter().getRemoteDevice(address); in handleSetAbsVolume()
170 BluetoothDevice device = BluetoothAdapter.getDefaultAdapter().getRemoteDevice(address); in handleRegisterNotificationAbsVol()
178 BluetoothDevice device = BluetoothAdapter.getDefaultAdapter().getRemoteDevice(address); in onTrackChanged()
186 BluetoothDevice device = BluetoothAdapter.getDefaultAdapter().getRemoteDevice(address); in onPlayPositionChanged()
194 BluetoothDevice device = BluetoothAdapter.getDefaultAdapter().getRemoteDevice(address); in onPlayStatusChanged()
202 BluetoothDevice device = BluetoothAdapter.getDefaultAdapter().getRemoteDevice(address); in handleGetFolderItemsRsp()
[all …]
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/bluetooth/
DLocalRenameDialogFragmentTest.java59 BluetoothAdapter.getDefaultAdapter().enable(); in setUp()
69 BluetoothAdapter.getDefaultAdapter().setName(NAME); in getDeviceName_adapterEnabled_returnsLocalAdapterName()
76 BluetoothAdapter.getDefaultAdapter().setName(NAME); in getDeviceName_adapterDisabled_returnsNull()
77 BluetoothAdapter.getDefaultAdapter().disable(); in getDeviceName_adapterDisabled_returnsNull()
84 BluetoothAdapter.getDefaultAdapter().setName(NAME); in localNameChangedBroadcast_updatesDeviceName()
89 BluetoothAdapter.getDefaultAdapter().setName(NAME_UPDATED); in localNameChangedBroadcast_updatesDeviceName()
100 BluetoothAdapter.getDefaultAdapter().setName(NAME); in setDeviceName_updatesLocalAdapterName()
107 assertThat(BluetoothAdapter.getDefaultAdapter().getName()).isEqualTo(NAME_UPDATED); in setDeviceName_updatesLocalAdapterName()
117 return (ShadowBluetoothAdapter) Shadow.extract(BluetoothAdapter.getDefaultAdapter()); in getShadowBluetoothAdapter()
DBluetoothPreferenceControllerTest.java175 BluetoothAdapter.getDefaultAdapter().disable(); in getAvailabilityStatus_adapterDisabled_conditionallyUnavailable()
186 BluetoothAdapter.getDefaultAdapter().disable(); in getAvailabilityStatus_adapterDisabled_conditionallyUnavailable_zoneWrite()
197 BluetoothAdapter.getDefaultAdapter().disable(); in getAvailabilityStatus_adapterDisabled_conditionallyUnavailable_zoneRead()
208 BluetoothAdapter.getDefaultAdapter().disable(); in getAvailabilityStatus_adapterDisabled_conditionallyUnavailable_zoneHidden()
218 BluetoothAdapter.getDefaultAdapter().enable(); in getAvailabilityStatus_available()
230 BluetoothAdapter.getDefaultAdapter().enable(); in getAvailabilityStatus_available_zoneWrite()
242 BluetoothAdapter.getDefaultAdapter().enable(); in getAvailabilityStatus_available_zoneRead()
254 BluetoothAdapter.getDefaultAdapter().enable(); in getAvailabilityStatus_available_zoneHidden()
265 BluetoothAdapter.getDefaultAdapter().enable(); in onStart_registersEventListener()
276 BluetoothAdapter.getDefaultAdapter().enable(); in onStop_unregistersEventListener()
[all …]
DBluetoothNamePreferenceControllerTest.java73 BluetoothAdapter.getDefaultAdapter().enable(); in setUp()
90 BluetoothAdapter.getDefaultAdapter().setName(NAME); in refreshUi_setsNameAsSummary()
116 BluetoothAdapter.getDefaultAdapter().setName(NAME); in started_localNameChangedBroadcast_updatesSummary()
120 BluetoothAdapter.getDefaultAdapter().setName(NAME_UPDATED); in started_localNameChangedBroadcast_updatesSummary()
129 BluetoothAdapter.getDefaultAdapter().setName(NAME); in stopped_noUpdateOnLocalNameChangedBroadcast()
134 BluetoothAdapter.getDefaultAdapter().setName(NAME_UPDATED); in stopped_noUpdateOnLocalNameChangedBroadcast()
160 return (ShadowBluetoothAdapter) Shadow.extract(BluetoothAdapter.getDefaultAdapter()); in getShadowBluetoothAdapter()
DPairNewDevicePreferenceControllerTest.java273 BluetoothAdapter.getDefaultAdapter().enable(); in refreshUi_bluetoothAdapterEnabled_setsEmptySummary()
282 BluetoothAdapter.getDefaultAdapter().disable(); in refreshUi_bluetoothAdapterDisabled_setsTurnOnToPairSummary()
292 BluetoothAdapter.getDefaultAdapter().enable(); in bluetoothAdapterStateChangedBroadcast_refreshesUi()
296 BluetoothAdapter.getDefaultAdapter().disable(); in bluetoothAdapterStateChangedBroadcast_refreshesUi()
304 BluetoothAdapter.getDefaultAdapter().disable(); in preferenceClicked_enablesAdapter()
308 assertThat(BluetoothAdapter.getDefaultAdapter().isEnabled()).isTrue(); in preferenceClicked_enablesAdapter()
DBluetoothDevicesGroupPreferenceControllerTest.java90 mDevice1 = BluetoothAdapter.getDefaultAdapter().getRemoteDevice("00:11:22:33:AA:BB"); in setUp()
92 BluetoothDevice device2 = BluetoothAdapter.getDefaultAdapter().getRemoteDevice( in setUp()
99 BluetoothAdapter.getDefaultAdapter().enable(); in setUp()
286 return (ShadowBluetoothAdapter) Shadow.extract(BluetoothAdapter.getDefaultAdapter()); in getShadowBluetoothAdapter()
DBluetoothDevicePreferenceControllerTest.java79 BluetoothAdapter.getDefaultAdapter().enable(); in setUp()
175 return (ShadowBluetoothAdapter) Shadow.extract(BluetoothAdapter.getDefaultAdapter()); in getShadowBluetoothAdapter()
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/hfpclient/
DHeadsetClientServiceTest.java113 BluetoothAdapter.getDefaultAdapter().getRemoteDevice("00:01:02:03:04:05"); in testSendBIEVtoStateMachineWhenBatteryChanged()
134 BluetoothAdapter.getDefaultAdapter().getRemoteDevice("00:01:02:03:04:05"); in testUpdateBatteryLevel()
150 BluetoothAdapter.getDefaultAdapter().getRemoteDevice("00:01:02:03:04:05"); in testSetCallAudioPolicy()
165 BluetoothAdapter.getDefaultAdapter().getRemoteDevice("00:01:02:03:04:05"); in testDumpDoesNotCrash()
209 mAdapter = BluetoothAdapter.getDefaultAdapter(); in startService()
/packages/apps/Car/Settings/src/com/android/car/settings/qc/
DBluetoothSwitch.java92 BluetoothAdapter.getDefaultAdapter().enable(); in onNotifyChange()
94 BluetoothAdapter.getDefaultAdapter().disable(); in onNotifyChange()
104 BluetoothAdapter adapter = BluetoothAdapter.getDefaultAdapter(); in isBluetoothOn()
/packages/apps/Settings/tests/robotests/src/com/android/settings/connecteddevice/
DPreviouslyConnectedDeviceDashboardFragmentTest.java43 mShadowBluetoothAdapter = Shadow.extract(BluetoothAdapter.getDefaultAdapter()); in setUp()
45 mFragment.mBluetoothAdapter = BluetoothAdapter.getDefaultAdapter(); in setUp()
DDiscoverableFooterPreferenceControllerTest.java147 BluetoothAdapter.getDefaultAdapter().setName(DEVICE_NAME); in onBluetoothStateChanged_bluetoothOn_updateTitle()
155 BluetoothAdapter.getDefaultAdapter().setName(DEVICE_NAME); in onBluetoothStateChanged_bluetoothOff_updateTitle()
/packages/modules/Bluetooth/framework/java/android/bluetooth/
DBluetoothSocket.java253 mAddress = BluetoothAdapter.getDefaultAdapter().getAddress(); in BluetoothSocket()
327 as.mDevice = BluetoothAdapter.getDefaultAdapter().getRemoteDevice(remoteAddr); in acceptSocket()
439 IBluetooth bluetoothProxy = BluetoothAdapter.getDefaultAdapter().getBluetoothService(); in connect()
533 IBluetooth bluetoothProxy = BluetoothAdapter.getDefaultAdapter().getBluetoothService(); in bindListen()
827 IBluetooth bluetoothProxy = BluetoothAdapter.getDefaultAdapter().getBluetoothService(); in requestMaximumTxDataLength()
864 IBluetooth bluetoothProxy = BluetoothAdapter.getDefaultAdapter().getBluetoothService(); in getL2capLocalChannelId()
908 IBluetooth bluetoothProxy = BluetoothAdapter.getDefaultAdapter().getBluetoothService(); in getL2capRemoteChannelId()
DSocketMetrics.java58 IBluetooth bluetoothProxy = BluetoothAdapter.getDefaultAdapter().getBluetoothService(); in logSocketConnect()
106 IBluetooth bluetoothProxy = BluetoothAdapter.getDefaultAdapter().getBluetoothService(); in logSocketAccept()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/accessories/
DBluetoothDevicePairer.java326 BluetoothAdapter.getDefaultAdapter().getSupportedProfiles(); in addBluetoothDeviceCriteria()
344 final BluetoothAdapter bluetoothAdapter = BluetoothAdapter.getDefaultAdapter(); in start()
418 final BluetoothAdapter bluetoothAdapter = BluetoothAdapter.getDefaultAdapter(); in dispose()
641 BluetoothAdapter adapter = BluetoothAdapter.getDefaultAdapter(); in openConnection()
/packages/apps/Settings/src/com/android/settings/spa/app/specialaccess/
DNfcTagAppsSettings.kt72 NfcAdapter.getDefaultAdapter(context)?.let { nfcAdapter -> in getNfcTagAppsSettingsPackages()
108 NfcAdapter.getDefaultAdapter(context)?.let { in isAllowed()
/packages/apps/Settings/src/com/android/settings/network/tether/
DTetherSettings.java165 BluetoothAdapter adapter = BluetoothAdapter.getDefaultAdapter(); in onCreate()
232 BluetoothAdapter adapter = BluetoothAdapter.getDefaultAdapter(); in onDestroy()
294 BluetoothAdapter adapter = BluetoothAdapter.getDefaultAdapter(); in onReceive()
493 BluetoothAdapter adapter = BluetoothAdapter.getDefaultAdapter(); in getBluetoothState()
564 BluetoothAdapter adapter = BluetoothAdapter.getDefaultAdapter(); in startTethering()
/packages/modules/Bluetooth/framework/tests/bumble/src/android/bluetooth/
DLeLegacyAdvertisingTest.java57 BluetoothAdapter.getDefaultAdapter().getBluetoothLeAdvertiser(); in setAdvertisingDataOver31Bytes()
109 BluetoothAdapter.getDefaultAdapter().getBluetoothLeAdvertiser(); in setScanResponseDataOver31Bytes()
/packages/apps/Settings/src/com/android/settings/bluetooth/
DBluetoothSliceBuilder.java113 final BluetoothAdapter adapter = BluetoothAdapter.getDefaultAdapter(); in handleUriChange()
126 final BluetoothAdapter adapter = BluetoothAdapter.getDefaultAdapter(); in isBluetoothEnabled()
/packages/apps/Car/Settings/src/com/android/car/settings/bluetooth/
DPairNewDevicePreferenceController.java135 BluetoothAdapter.getDefaultAdapter().isEnabled() ? "" : getContext().getString( in updateState()
149 BluetoothAdapter.getDefaultAdapter().enable(); in handlePreferenceClicked()
DBluetoothStateSwitchPreferenceController.java61 private final BluetoothAdapter mBluetoothAdapter = BluetoothAdapter.getDefaultAdapter();
199 String bluetoothName = BluetoothAdapter.getDefaultAdapter().getName(); in updateSwitchPreference()
/packages/apps/Nfc/src/com/android/nfc/handover/
DPeripheralHandoverService.java102 mBluetoothAdapter = BluetoothAdapter.getDefaultAdapter(); in PeripheralHandoverService()
142 mNfcAdapter = NfcAdapter.getDefaultAdapter(getApplicationContext()); in onCreate()
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/
DObexServerSockets.java120 BluetoothAdapter bt = BluetoothAdapter.getDefaultAdapter(); in create()
234 BluetoothAdapter mAdapter = BluetoothAdapter.getDefaultAdapter(); in onAcceptFailed()
/packages/apps/Settings/src/com/android/settings/homepage/contextualcards/slices/
DBluetoothDevicesSlice.java99 final BluetoothAdapter btAdapter = BluetoothAdapter.getDefaultAdapter(); in getSlice()
148 final BluetoothAdapter btAdapter = BluetoothAdapter.getDefaultAdapter(); in onNotifyChange()
180 if (!BluetoothAdapter.getDefaultAdapter().isEnabled()) { in getPairedBluetoothDevices()
/packages/apps/Settings/src/com/android/settings/nfc/
DNfcTagAppsPreferenceController.java31 mNfcAdapter = NfcAdapter.getDefaultAdapter(context.getApplicationContext()); in NfcTagAppsPreferenceController()
/packages/apps/Nfc/testutils/src/com/android/nfc/reader/
DBaseReaderActivity.java41 mAdapter = NfcAdapter.getDefaultAdapter(this); in onCreate()

12345678910>>...13