/packages/modules/Bluetooth/android/pandora/server/src/ |
D | Host.kt | 219 private suspend fun waitPairingRequestIntent(bluetoothDevice: BluetoothDevice) { in waitPairingRequestIntent() 220 Log.i(TAG, "waitPairingRequestIntent: device=$bluetoothDevice") in waitPairingRequestIntent() 224 .filter { it.getBluetoothDeviceExtra() == bluetoothDevice } in waitPairingRequestIntent() 236 bluetoothDevice.setPairingConfirmation(true) in waitPairingRequestIntent() 240 private suspend fun waitConnectionIntent(bluetoothDevice: BluetoothDevice) { in waitConnectionIntent() 241 Log.i(TAG, "waitConnectionIntent: device=$bluetoothDevice") in waitConnectionIntent() 244 .filter { it.getBluetoothDeviceExtra() == bluetoothDevice } in waitConnectionIntent() 250 suspend fun waitBondIntent(bluetoothDevice: BluetoothDevice) { in waitBondIntent() 254 Log.i(TAG, "waitBondIntent: device=$bluetoothDevice") in waitBondIntent() 257 .filter { it.getBluetoothDeviceExtra() == bluetoothDevice } in waitBondIntent() [all …]
|
D | Security.kt | 79 val bluetoothDevice = intent.getBluetoothDeviceExtra() in <lambda>() constant 92 bluetoothDevice.setPairingConfirmation(true) in <lambda>() 118 val bluetoothDevice = request.connection.toBluetoothDevice(bluetoothAdapter) in <lambda>() constant 120 Log.i(TAG, "secure: $bluetoothDevice transport: $transport") in <lambda>() 130 bluetoothDevice.createBond(transport) in <lambda>() 131 waitLESecurityLevel(bluetoothDevice, level) in <lambda>() 141 bluetoothDevice.createBond(transport) in <lambda>() 142 waitBREDRSecurityLevel(bluetoothDevice, level) in <lambda>() 154 suspend fun waitBondIntent(bluetoothDevice: BluetoothDevice): Int { in <lambda>() 155 if (bluetoothDevice.getBondState() == BOND_BONDED) { in <lambda>() [all …]
|
D | Opp.kt | 91 val bluetoothDevice = request.address.toBluetoothDevice(bluetoothAdapter) in openRfcommChannel() constant 92 sendFile(bluetoothDevice) in openRfcommChannel() 102 val bluetoothDevice = request.address.toBluetoothDevice(bluetoothAdapter) in openL2capChannel() constant 103 sendFile(bluetoothDevice) in openL2capChannel() 132 private suspend fun sendFile(bluetoothDevice: BluetoothDevice) { in sendFile() 134 waitBluetoothDevice(bluetoothDevice) in sendFile() 136 intent.putExtra(BluetoothDevice.EXTRA_DEVICE, bluetoothDevice) in sendFile() 140 suspend private fun waitBluetoothDevice(bluetoothDevice: BluetoothDevice) { in waitBluetoothDevice() 145 it.getBluetoothDeviceExtra() == bluetoothDevice in waitBluetoothDevice()
|
D | SecurityStorage.kt | 95 val bluetoothDevice = in deleteBond() constant 97 Log.i(TAG, "deleteBond: device=$bluetoothDevice") in deleteBond() 103 .filter { it.getBluetoothDeviceExtra() == bluetoothDevice } in deleteBond() 113 if (bluetoothDevice.removeBond()) { in deleteBond() 114 Log.i(TAG, "deleteBond: device=$bluetoothDevice - wait BOND_NONE intent") in deleteBond() 117 Log.i(TAG, "deleteBond: device=$bluetoothDevice - Already unpaired") in deleteBond()
|
D | Os.kt | 56 val bluetoothDevice = request.address.toBluetoothDevice(bluetoothAdapter) in setAccessPermission() constant 59 bluetoothDevice.setMessageAccessPermission(BluetoothDevice.ACCESS_ALLOWED) in setAccessPermission() 61 bluetoothDevice.setPhonebookAccessPermission(BluetoothDevice.ACCESS_ALLOWED) in setAccessPermission() 63 bluetoothDevice.setSimAccessPermission(BluetoothDevice.ACCESS_ALLOWED) in setAccessPermission()
|
D | Gatt.kt | 161 val bluetoothDevice = request.address.toBluetoothDevice(mBluetoothAdapter) in discoverServicesSdp() constant 162 check(bluetoothDevice.fetchUuidsWithSdp()) in discoverServicesSdp() 166 .filter { it.getBluetoothDeviceExtra() == bluetoothDevice } in discoverServicesSdp() 168 .filter { bluetoothDevice.getUuids() != null } in discoverServicesSdp() 171 for (parcelUuid in bluetoothDevice.getUuids()) { in discoverServicesSdp()
|
/packages/apps/Car/Settings/src/com/android/car/settings/sound/ |
D | AudioRouteItem.java | 44 public AudioRouteItem(CachedBluetoothDevice bluetoothDevice) { in AudioRouteItem() argument 45 mName = bluetoothDevice.getName(); in AudioRouteItem() 46 mAddress = bluetoothDevice.getAddress(); in AudioRouteItem() 48 mBluetoothDevice = bluetoothDevice; in AudioRouteItem() 80 public void setBluetoothDevice(CachedBluetoothDevice bluetoothDevice) { in setBluetoothDevice() argument 81 mBluetoothDevice = bluetoothDevice; in setBluetoothDevice()
|
D | AudioRoutesManager.java | 149 for (CachedBluetoothDevice bluetoothDevice : bluetoothDevices) { in updateAudioRoutesList() 150 if (bluetoothDevice.isConnectedA2dpDevice()) { in updateAudioRoutesList() 151 if (mAudioRouteItemMap.containsKey(bluetoothDevice.getAddress())) { in updateAudioRoutesList() 152 mAudioRouteItemMap.get(bluetoothDevice.getAddress()) in updateAudioRoutesList() 153 .setBluetoothDevice(bluetoothDevice); in updateAudioRoutesList() 154 mAudioRouteItemMap.get(bluetoothDevice.getAddress()) in updateAudioRoutesList() 157 AudioRouteItem audioRouteItem = new AudioRouteItem(bluetoothDevice); in updateAudioRoutesList() 226 CachedBluetoothDevice bluetoothDevice = audioRouteItem.getBluetoothDevice(); in updateAudioRoute() local 227 if (bluetoothDevice.isActiveDevice(BluetoothProfile.A2DP)) { in updateAudioRoute() 230 bluetoothDevice.setActive(); in updateAudioRoute()
|
/packages/apps/Car/VoiceControl/src/com/android/car/ |
D | TelecomUtils.java | 56 BluetoothDevice bluetoothDevice = getMatchingDevice(phoneAccountHandle); in getHfpDeviceList() local 57 if (bluetoothDevice != null) { in getHfpDeviceList() 58 hfpDeviceList.add(bluetoothDevice); in getHfpDeviceList() 76 for (BluetoothDevice bluetoothDevice : bondedDevices) { in getMatchingDevice() 77 if (TextUtils.equals(bluetoothDevice.getAddress(), phoneAccountHandle.getId())) { in getMatchingDevice() 78 return bluetoothDevice; in getMatchingDevice()
|
/packages/services/Telecomm/src/com/android/server/telecom/ |
D | CallAudioRouteController.java | 214 BluetoothDevice bluetoothDevice; in CallAudioRouteController() 243 bluetoothDevice = (BluetoothDevice) ((SomeArgs) msg.obj).arg2; in CallAudioRouteController() 244 handleBtConnected(type, bluetoothDevice); in CallAudioRouteController() 248 bluetoothDevice = (BluetoothDevice) ((SomeArgs) msg.obj).arg2; in CallAudioRouteController() 249 handleBtDisconnected(type, bluetoothDevice); in CallAudioRouteController() 290 bluetoothDevice = (BluetoothDevice) ((SomeArgs) msg.obj).arg2; in CallAudioRouteController() 291 handleBtAudioActive(bluetoothDevice); in CallAudioRouteController() 294 bluetoothDevice = (BluetoothDevice) ((SomeArgs) msg.obj).arg2; in CallAudioRouteController() 295 handleBtAudioInactive(bluetoothDevice); in CallAudioRouteController() 401 public void sendMessageWithSessionInfo(int message, int arg, BluetoothDevice bluetoothDevice) { in sendMessageWithSessionInfo() argument [all …]
|
D | PendingAudioRoute.java | 91 public void addMessage(int message, String bluetoothDevice) { in addMessage() argument 92 mPendingMessages.add(new Pair<>(message, bluetoothDevice)); in addMessage()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/bluetooth/ |
D | DevicePickerFragmentTest.java | 74 final BluetoothDevice bluetoothDevice = mock(BluetoothDevice.class); in callingPackageIsEqualToLaunchPackage_sendBroadcastToLaunchPackage() local 76 when(cachedDevice.getDevice()).thenReturn(bluetoothDevice); in callingPackageIsEqualToLaunchPackage_sendBroadcastToLaunchPackage() 77 mFragment.mSelectedDevice = bluetoothDevice; in callingPackageIsEqualToLaunchPackage_sendBroadcastToLaunchPackage() 93 final BluetoothDevice bluetoothDevice = mock(BluetoothDevice.class); in callingPackageIsNotEqualToLaunchPackage_broadcastNotSend() local 95 when(cachedDevice.getDevice()).thenReturn(bluetoothDevice); in callingPackageIsNotEqualToLaunchPackage_broadcastNotSend() 96 mFragment.mSelectedDevice = bluetoothDevice; in callingPackageIsNotEqualToLaunchPackage_broadcastNotSend()
|
/packages/apps/Settings/src/com/android/settings/bluetooth/ |
D | BluetoothFeatureProviderImpl.java | 43 public Uri getBluetoothDeviceSettingsUri(BluetoothDevice bluetoothDevice) { in getBluetoothDeviceSettingsUri() argument 44 final byte[] uriByte = bluetoothDevice.getMetadata( in getBluetoothDeviceSettingsUri() 50 public String getBluetoothDeviceControlUri(BluetoothDevice bluetoothDevice) { in getBluetoothDeviceControlUri() argument 51 return BluetoothUtils.getControlUriMetaData(bluetoothDevice); in getBluetoothDeviceControlUri() 73 Context context, BluetoothDevice bluetoothDevice) { in getInvisibleProfilePreferenceKeys() argument
|
D | AdvancedBluetoothDetailsHeaderController.java | 359 BluetoothDevice bluetoothDevice = mCachedDevice.getDevice(); in updateSubLayout() local 362 () -> BluetoothUtils.getStringMetaData(bluetoothDevice, iconMetaKey)); in updateSubLayout() 365 () -> BluetoothUtils.getIntMetaData(bluetoothDevice, batteryMetaKey)); in updateSubLayout() 368 () -> BluetoothUtils.getBooleanMetaData(bluetoothDevice, chargeMetaKey)); in updateSubLayout() 374 bluetoothDevice, lowBatteryMetaKey); in updateSubLayout() 386 Suppliers.memoize(() -> isUntetheredHeadset(bluetoothDevice)); in updateSubLayout() 387 Supplier<Integer> nativeBatteryLevel = Suppliers.memoize(bluetoothDevice::getBatteryLevel); in updateSubLayout() 427 final BluetoothDevice bluetoothDevice = mCachedDevice.getDevice(); in updateSubLayoutUi() local 442 Log.d(TAG, "buletoothDevice: " + bluetoothDevice.getAnonymizedAddress() in updateSubLayoutUi() 497 private boolean isUntetheredHeadset(BluetoothDevice bluetoothDevice) { in isUntetheredHeadset() argument [all …]
|
D | BluetoothFeatureProvider.java | 43 Uri getBluetoothDeviceSettingsUri(BluetoothDevice bluetoothDevice); in getBluetoothDeviceSettingsUri() argument 51 String getBluetoothDeviceControlUri(BluetoothDevice bluetoothDevice); in getBluetoothDeviceControlUri() argument 86 Context context, BluetoothDevice bluetoothDevice); in getInvisibleProfilePreferenceKeys() argument
|
D | BluetoothDetailsProfilesController.java | 237 final BluetoothDevice bluetoothDevice = mCachedDevice.getDevice(); in enableProfile() local 239 bluetoothDevice.setPhonebookAccessPermission(BluetoothDevice.ACCESS_ALLOWED); in enableProfile() 244 bluetoothDevice.setMessageAccessPermission(BluetoothDevice.ACCESS_ALLOWED); in enableProfile() 252 profile.setEnabled(bluetoothDevice, true); in enableProfile() 264 final BluetoothDevice bluetoothDevice = mCachedDevice.getDevice(); in disableProfile() local 265 profile.setEnabled(bluetoothDevice, false); in disableProfile() 268 bluetoothDevice.setMessageAccessPermission(BluetoothDevice.ACCESS_REJECTED); in disableProfile() 270 bluetoothDevice.setPhonebookAccessPermission(BluetoothDevice.ACCESS_REJECTED); in disableProfile()
|
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/btservice/ |
D | SilenceDeviceManager.java | 156 BluetoothDevice bluetoothDevice = (BluetoothDevice) msg.obj; in handleMessage() local 162 addConnectedDevice(bluetoothDevice, BluetoothProfile.HEADSET); in handleMessage() 163 if (!mSilenceDevices.containsKey(bluetoothDevice)) { in handleMessage() 164 mSilenceDevices.put(bluetoothDevice, false); in handleMessage() 168 removeConnectedDevice(bluetoothDevice, BluetoothProfile.HEADSET); in handleMessage() 169 if (!isBluetoothAudioConnected(bluetoothDevice)) { in handleMessage() 170 handleSilenceDeviceStateChanged(bluetoothDevice, false); in handleMessage() 171 mSilenceDevices.remove(bluetoothDevice); in handleMessage()
|
/packages/apps/Settings/src/com/android/settings/development/ |
D | AbstractBluetoothA2dpPreferenceController.java | 193 BluetoothDevice bluetoothDevice = in setCodecConfigPreference() local 195 if (bluetoothDevice == null) { in setCodecConfigPreference() 198 mBluetoothA2dp.setCodecConfigPreference(bluetoothDevice, config); in setCodecConfigPreference() 204 BluetoothDevice bluetoothDevice = in getCodecConfig() local 206 if (bluetoothDevice == null) { in getCodecConfig() 209 BluetoothCodecStatus codecStatus = mBluetoothA2dp.getCodecStatus(bluetoothDevice); in getCodecConfig()
|
/packages/apps/Dialer/java/com/android/incallui/audioroute/ |
D | AudioRouteSelectorDialogFragment.java | 177 private TextView createBluetoothItem(BluetoothDevice bluetoothDevice, boolean selected) { in createBluetoothItem() argument 181 textView.setText(getAliasName(bluetoothDevice)); in createBluetoothItem() 196 TelecomAdapter.getInstance().requestBluetoothAudio(bluetoothDevice); in createBluetoothItem() 204 private String getAliasName(BluetoothDevice bluetoothDevice) { in getAliasName() argument 206 Method getActiveDeviceMethod = bluetoothDevice.getClass().getDeclaredMethod("getAliasName"); in getAliasName() 208 return (String) getActiveDeviceMethod.invoke(bluetoothDevice); in getAliasName() 211 return bluetoothDevice.getName(); in getAliasName()
|
/packages/apps/Settings/src/com/android/settings/homepage/contextualcards/slices/ |
D | BluetoothDevicesSlice.java | 346 SliceAction buildPrimaryBluetoothAction(CachedBluetoothDevice bluetoothDevice) { in buildPrimaryBluetoothAction() argument 349 .putExtra(BLUETOOTH_DEVICE_HASH_CODE, bluetoothDevice.hashCode()); in buildPrimaryBluetoothAction() 352 PendingIntent.getBroadcast(mContext, bluetoothDevice.hashCode(), intent, in buildPrimaryBluetoothAction() 354 getBluetoothDeviceIcon(bluetoothDevice), in buildPrimaryBluetoothAction() 356 bluetoothDevice.getName()); in buildPrimaryBluetoothAction() 360 SliceAction buildBluetoothDetailDeepLinkAction(CachedBluetoothDevice bluetoothDevice) { in buildBluetoothDetailDeepLinkAction() argument 362 getBluetoothDetailIntent(bluetoothDevice), in buildBluetoothDetailDeepLinkAction() 365 bluetoothDevice.getName()); in buildBluetoothDetailDeepLinkAction()
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/accessories/ |
D | AccessoryUtils.java | 165 static String getHtmlEscapedDeviceName(@Nullable BluetoothDevice bluetoothDevice) { in getHtmlEscapedDeviceName() argument 166 if (bluetoothDevice == null || bluetoothDevice.getName() == null) { in getHtmlEscapedDeviceName() 169 return Html.escapeHtml(bluetoothDevice.getName()); in getHtmlEscapedDeviceName()
|
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/pan/ |
D | BluetoothTetheringNetworkFactoryTest.java | 102 BluetoothDevice bluetoothDevice = adapter.getRemoteDevice("11:11:11:11:11:11"); in networkStartReverseTetherStop() local 103 bluetoothDevices.add(bluetoothDevice); in networkStartReverseTetherStop() 110 verify(mPanService, times(1)).disconnect(bluetoothDevice); in networkStartReverseTetherStop()
|
/packages/apps/Settings/src/com/android/settings/notification/ |
D | MediaVolumePreferenceController.java | 152 final CachedBluetoothDevice bluetoothDevice = in getSliceEndItem() local 154 if (bluetoothDevice == null) { in getSliceEndItem() 163 BluetoothBroadcastDialog.KEY_DEVICE_ADDRESS, bluetoothDevice.getAddress()); in getSliceEndItem()
|
/packages/apps/Settings/src/com/android/settings/panel/ |
D | VolumePanel.java | 179 final BluetoothDevice bluetoothDevice = findActiveDevice(); in getExtraControlUri() local 180 if (bluetoothDevice != null) { in getExtraControlUri() 181 final String uri = BluetoothUtils.getControlUriMetaData(bluetoothDevice); in getExtraControlUri()
|
/packages/apps/Settings/src/com/android/settings/development/bluetooth/ |
D | AbstractBluetoothDialogPreferenceController.java | 183 BluetoothDevice bluetoothDevice = in getSelectableConfigs() local 185 if (bluetoothDevice == null) { in getSelectableConfigs() 188 final BluetoothCodecStatus codecStatus = bluetoothA2dp.getCodecStatus(bluetoothDevice); in getSelectableConfigs()
|