Home
last modified time | relevance | path

Searched refs:bluetoothAddress (Results 1 – 17 of 17) sorted by relevance

/packages/modules/Bluetooth/framework/tests/unit/src/android/bluetooth/
DBluetoothDeviceTest.java35 BluetoothAddress bluetoothAddress = in testBluetoothAddress_empty() local
38 assertThat(bluetoothAddress.getAddress()).isNull(); in testBluetoothAddress_empty()
39 assertThat(bluetoothAddress.getAddressType()) in testBluetoothAddress_empty()
58 BluetoothAddress bluetoothAddress = new BluetoothAddress(address, addressType); in testBluetoothAddress_Parcelable() local
60 doAssertBluetoothAddress(bluetoothAddress, address, addressType); in testBluetoothAddress_Parcelable()
63 bluetoothAddress.writeToParcel(parcel, 0 /* flags */); in testBluetoothAddress_Parcelable()
72 BluetoothAddress bluetoothAddress = new BluetoothAddress(address, addressType); in doTestAddressWithType() local
74 doAssertBluetoothAddress(bluetoothAddress, address, addressType); in doTestAddressWithType()
78 BluetoothAddress bluetoothAddress, String address, @AddressType int addressType) { in doAssertBluetoothAddress() argument
79 assertThat(bluetoothAddress.getAddress()).isEqualTo(address); in doAssertBluetoothAddress()
[all …]
/packages/services/Telecomm/src/com/android/server/telecom/
DAudioRoute.java57 public AudioRoute create(@AudioRouteType int type, String bluetoothAddress, in create() argument
60 createRetry(type, bluetoothAddress, audioManager, MAX_CONNECTION_RETRIES); in create()
67 private void createRetry(@AudioRouteType int type, String bluetoothAddress, in createRetry() argument
76 DEVICE_TYPE_STRINGS.get(type), bluetoothAddress, retryCount); in createRetry()
84 if (bluetoothAddress.equals(info.getAddress())) { in createRetry()
97 if (routeInfo == null && bluetoothAddress == null) { in createRetry()
100 () -> createRetry(type, bluetoothAddress, audioManager, retryCount - 1), in createRetry()
106 mAudioRouteFuture.complete(new AudioRoute(type, bluetoothAddress, routeInfo)); in createRetry()
364 public AudioRoute(@AudioRouteType int type, String bluetoothAddress, AudioDeviceInfo info) { in AudioRoute() argument
366 mBluetoothAddress = bluetoothAddress; in AudioRoute()
DCallEndpointController.java96 String bluetoothAddress = getBluetoothAddress(endpoint); in requestCallEndpointChange() local
99 (route == CallAudioState.ROUTE_BLUETOOTH && bluetoothAddress == null)) { in requestCallEndpointChange()
105 if (isCurrentEndpointRequestedEndpoint(route, bluetoothAddress)) { in requestCallEndpointChange()
127 mCallsManager.getCallAudioManager().setAudioRoute(route, bluetoothAddress); in requestCallEndpointChange()
DInCallAdapter.java385 public void setAudioRoute(int route, String bluetoothAddress) { in setAudioRoute() argument
391 mCallsManager.setAudioRoute(route, bluetoothAddress); in setAudioRoute()
DCallAudioManager.java477 public void setAudioRoute(int route, String bluetoothAddress) { in setAudioRoute() argument
482 CallAudioRouteStateMachine.USER_SWITCH_BLUETOOTH, 0, bluetoothAddress); in setAudioRoute()
DConnectionServiceWrapper.java796 String bluetoothAddress, Session.Info sessionInfo) { in setAudioRoute() argument
803 mCallsManager.setAudioRoute(audioRoute, bluetoothAddress); in setAudioRoute()
DCallsManager.java3989 void setAudioRoute(int route, String bluetoothAddress) {
3990 mCallAudioManager.setAudioRoute(route, bluetoothAddress);
/packages/modules/Connectivity/nearby/framework/java/android/nearby/
DFastPairDevice.java101 @NonNull String bluetoothAddress, in FastPairDevice() argument
106 this.mBluetoothAddress = bluetoothAddress; in FastPairDevice()
306 public Builder setBluetoothAddress(@NonNull String bluetoothAddress) { in setBluetoothAddress() argument
307 Objects.requireNonNull(bluetoothAddress); in setBluetoothAddress()
308 mBluetoothAddress = bluetoothAddress; in setBluetoothAddress()
DNearbyDeviceParcelable.java125 @Nullable String bluetoothAddress, in NearbyDeviceParcelable() argument
139 mBluetoothAddress = bluetoothAddress; in NearbyDeviceParcelable()
544 public Builder setBluetoothAddress(@Nullable String bluetoothAddress) { in setBluetoothAddress() argument
545 mBluetoothAddress = bluetoothAddress; in setBluetoothAddress()
/packages/modules/Uwb/ranging/service/java/com/android/server/ranging/cs/
DCsOobCapabilities.java95 String bluetoothAddress = in parseBytes() local
104 .setBluetoothAddress(bluetoothAddress) in parseBytes()
155 public abstract Builder setBluetoothAddress(String bluetoothAddress); in setBluetoothAddress() argument
/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/
DCallEndpointControllerTest.java132 String bluetoothAddress = mCallEndpointController.getBluetoothAddress(endpoint); in testCurrentEndpointChangedToBluetooth() local
138 assertEquals(bluetoothDevice1.getAddress(), bluetoothAddress); in testCurrentEndpointChangedToBluetooth() local
174 String bluetoothAddress = mCallEndpointController.getBluetoothAddress(endpoint); in testCurrentEndpointChangedBetweenBluetooth() local
180 assertEquals(bluetoothDevice2.getAddress(), bluetoothAddress); in testCurrentEndpointChangedBetweenBluetooth() local
284 String bluetoothAddress = mCallEndpointController.getBluetoothAddress(endpoint); in testAvailableBluetoothEndpointChanged() local
290 assertEquals(bluetoothDevice1.getAddress(), bluetoothAddress); in testAvailableBluetoothEndpointChanged() local
DCallAudioRouteControllerTest.java159 public AudioRoute create(@AudioRoute.AudioRouteType int type, String bluetoothAddress,
164 return new AudioRoute(type, bluetoothAddress, mAudioDeviceInfo);
/packages/services/Car/libs/obd2-lib/src/com/android/car/obd2/connections/
DBluetoothConnection.java45 public BluetoothConnection(String bluetoothAddress) { in BluetoothConnection() argument
46 this(BluetoothAdapter.getDefaultAdapter().getRemoteDevice(bluetoothAddress)); in BluetoothConnection()
/packages/modules/Uwb/ranging/service/java/com/android/server/ranging/blerssi/
DBleRssiOobCapabilities.java70 String bluetoothAddress = Conversions.macAddressToString( in parseBytes() local
74 return BleRssiOobCapabilities.builder().setBluetoothAddress(bluetoothAddress).build(); in parseBytes()
/packages/apps/Settings/src/com/android/settings/bluetooth/ui/view/
DDeviceDetailsMoreSettingsFragment.kt116 val bluetoothAddress = arguments?.getString(KEY_DEVICE_ADDRESS) ?: return null in <lambda>() constant
119 localBluetoothManager.bluetoothAdapter.getRemoteDevice(bluetoothAddress) ?: return null in <lambda>()
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/btservice/
DAdapterServiceTest.java936 BluetoothDevice.BluetoothAddress bluetoothAddress = in testIdentityAddressType() local
938 assertThat(bluetoothAddress.getAddress()).isEqualTo(TEST_BT_ADDR_2); in testIdentityAddressType()
939 assertThat(bluetoothAddress.getAddressType()) in testIdentityAddressType()
947 bluetoothAddress = mAdapterService.getIdentityAddressWithType(TEST_BT_ADDR_1); in testIdentityAddressType()
948 assertThat(bluetoothAddress.getAddress()).isEqualTo(TEST_BT_ADDR_2); in testIdentityAddressType()
949 assertThat(bluetoothAddress.getAddressType()) in testIdentityAddressType()
/packages/apps/Settings/src/com/android/settings/inputmethod/
DPhysicalKeyboardFragment.java519 @Nullable String bluetoothAddress, in HardKeyboardDeviceInfo() argument
524 mBluetoothAddress = bluetoothAddress; in HardKeyboardDeviceInfo()