/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/bluetooth/ |
D | HearingAidAudioRoutingHelperTest.java | 82 when(mAudioDeviceInfo.getAddress()).thenReturn(TEST_DEVICE_ADDRESS); in setUp() 147 when(mCachedBluetoothDevice.getAddress()).thenReturn(TEST_DEVICE_ADDRESS); in getMatchedHearingDeviceAttributes_mainHearingDevice_equalAddress() 150 mCachedBluetoothDevice).getAddress(); in getMatchedHearingDeviceAttributes_mainHearingDevice_equalAddress() 152 assertThat(targetAddress).isEqualTo(mHearingDeviceAttribute.getAddress()); in getMatchedHearingDeviceAttributes_mainHearingDevice_equalAddress() 158 when(mCachedBluetoothDevice.getAddress()).thenReturn(NOT_EXPECT_DEVICE_ADDRESS); in getMatchedHearingDeviceAttributes_subHearingDevice_equalAddress() 161 when(mSubCachedBluetoothDevice.getAddress()).thenReturn(TEST_DEVICE_ADDRESS); in getMatchedHearingDeviceAttributes_subHearingDevice_equalAddress() 164 mCachedBluetoothDevice).getAddress(); in getMatchedHearingDeviceAttributes_subHearingDevice_equalAddress() 166 assertThat(targetAddress).isEqualTo(mHearingDeviceAttribute.getAddress()); in getMatchedHearingDeviceAttributes_subHearingDevice_equalAddress() 172 when(mSubCachedBluetoothDevice.getAddress()).thenReturn(TEST_DEVICE_ADDRESS); in getMatchedHearingDeviceAttributes_memberHearingDevice_equalAddress() 176 when(mCachedBluetoothDevice.getAddress()).thenReturn(NOT_EXPECT_DEVICE_ADDRESS); in getMatchedHearingDeviceAttributes_memberHearingDevice_equalAddress() [all …]
|
/frameworks/base/services/tests/servicestests/src/com/android/server/audio/ |
D | AudioDeviceBrokerTest.java | 262 AudioManager.DEVICE_OUT_BLUETOOTH_A2DP, mFakeBtDevice.getAddress()); in testIsBluetoothAudioDeviceCategoryFixed() 264 mFakeBtDevice.getAddress(), AudioManager.DEVICE_OUT_BLUETOOTH_A2DP); in testIsBluetoothAudioDeviceCategoryFixed() 273 mFakeBtDevice.getAddress())); in testIsBluetoothAudioDeviceCategoryFixed() 280 mFakeBtDevice.getAddress())); in testIsBluetoothAudioDeviceCategoryFixed() 303 AudioManager.DEVICE_OUT_BLUETOOTH_A2DP, mFakeBtDevice.getAddress()); in testGetAndUpdateBtAdiDeviceStateCategoryForAddress() 306 eq(mFakeBtDevice.getAddress()), anyInt()); in testGetAndUpdateBtAdiDeviceStateCategoryForAddress() 316 mFakeBtDevice.getAddress())); in testGetAndUpdateBtAdiDeviceStateCategoryForAddress() 327 mFakeBtDevice.getAddress())); in testGetAndUpdateBtAdiDeviceStateCategoryForAddress() 353 mFakeBtDevice.getAddress(), AudioManager.AUDIO_DEVICE_CATEGORY_OTHER); in testAddAudioDeviceWithCategoryInInventoryIfNeeded() 416 AudioSystem.DEVICE_OUT_BLUETOOTH_A2DP, btDevice.getAddress(), expectedName); in checkSingleSystemConnection()
|
/frameworks/base/core/tests/coretests/src/android/net/ |
D | SntpClientTest.java | 165 assertTrue(mClient.requestTime(mServer.getAddress(), mServer.getPort(), 500, mNetwork)); in testRequestTime_era0ClientEra0RServer() 178 assertTrue(mClient.requestTime(mServer.getAddress(), mServer.getPort(), 500, mNetwork)); in testRequestTime_era0ClientEra1Server() 192 assertTrue(mClient.requestTime(mServer.getAddress(), mServer.getPort(), 500, mNetwork)); in testRequestTime_era1ClientEra0Server() 205 assertTrue(mClient.requestTime(mServer.getAddress(), mServer.getPort(), 500, mNetwork)); in testRequestTime_era1ClientEra1Server() 307 assertFalse(mClient.requestTime(mServer.getAddress(), mServer.getPort(), 500, mNetwork)); in testTimeoutFailure() 319 assertFalse(mClient.requestTime(mServer.getAddress(), mServer.getPort(), 500, mNetwork)); in testIgnoreLeapNoSync() 334 final boolean rval = mClient.requestTime(mServer.getAddress(), mServer.getPort(), 500, in testAcceptOnlyServerAndBroadcastModes() 362 final boolean rval = mClient.requestTime(mServer.getAddress(), mServer.getPort(), 500, in testAcceptableStrataOnly() 381 assertFalse(mClient.requestTime(mServer.getAddress(), mServer.getPort(), 500, mNetwork)); in testZeroTransmitTime() 394 assertFalse(mClient.requestTime(mServer.getAddress(), mServer.getPort(), 500, mNetwork)); in testNonMatchingOriginateTime() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/accessibility/hearingaid/ |
D | HearingDevicesPresetsController.java | 80 Log.d(TAG, "onPresetSelected, device: " + device.getAddress() in onPresetSelected() 95 Log.d(TAG, "onPresetInfoChanged, device: " + device.getAddress() in onPresetInfoChanged() 108 Log.w(TAG, "onPresetSelectionFailed, device: " + device.getAddress() in onPresetSelectionFailed() 132 Log.w(TAG, "onSetPresetNameFailed, device: " + device.getAddress() in onSetPresetNameFailed() 246 + ", device: " + mActiveHearingDevice.getAddress()); in selectPresetSynchronously() 258 + ", device: " + mActiveHearingDevice.getAddress()); in selectPresetIndependently()
|
/frameworks/base/services/core/java/com/android/server/media/ |
D | LegacyBluetoothRouteController.java | 191 mBluetoothRoutes.put(device.getAddress(), newBtRoute); in buildBluetoothRoutes() 286 String routeId = device.getAddress(); in createBluetoothRoute() 323 .setAddress(device.getAddress()) in createBluetoothRoute() 389 BluetoothRouteInfo activeBtRoute = mBluetoothRoutes.get(device.getAddress()); in addActiveDevices() 394 mBluetoothRoutes.put(device.getAddress(), activeBtRoute); in addActiveDevices() 401 && !TextUtils.equals(btRoute.mBtDevice.getAddress(), in addActiveDevices() 402 activeBtRoute.mBtDevice.getAddress())) { in addActiveDevices() 452 BluetoothRouteInfo btRoute = mBluetoothRoutes.get(device.getAddress()); in onServiceConnected() 455 mBluetoothRoutes.put(device.getAddress(), btRoute); in onServiceConnected() 554 BluetoothRouteInfo btRoute = mBluetoothRoutes.get(device.getAddress()); in handleConnectionStateChanged() [all …]
|
D | BluetoothDeviceRoutesManager.java | 185 BluetoothDevice::getAddress, Function.identity())); in updateBluetoothRoutes() 190 mBluetoothRoutes.put(device.getAddress(), newBtRoute); in updateBluetoothRoutes() 254 .setAddress(device.getAddress()) in createBluetoothRoute() 307 default -> device.getAddress(); in getRouteIdForType()
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/bluetooth/ |
D | HearingAidAudioRoutingHelper.java | 130 final String audioDeviceAddress = audioDevice.getAddress(); in matchAddress() 134 return device.getAddress().equals(audioDeviceAddress) in matchAddress() 135 || (subDevice != null && subDevice.getAddress().equals(audioDeviceAddress)) in matchAddress() 137 m -> m.getAddress().equals(audioDeviceAddress))); in matchAddress()
|
D | HearingAidStatsLogUtils.java | 95 sDeviceAddressToBondEntryMap.put(device.getAddress(), bondEntry); in setBondEntryForDevice() 108 final String deviceAddress = device.getAddress(); in logHearingAidInfo() 139 if (isJustBonded(cachedDevice.getAddress())) { in updateHistoryIfNeeded() 151 removeFromJustBonded(cachedDevice.getAddress()); in updateHistoryIfNeeded()
|
D | LocalBluetoothAdapter.java | 99 public String getAddress() { in getAddress() method in LocalBluetoothAdapter 100 return mAdapter.getAddress(); in getAddress()
|
D | CachedBluetoothDevice.java | 612 public String getAddress() { in getAddress() method in CachedBluetoothDevice 613 return mDevice.getAddress(); in getAddress() 624 return TextUtils.isEmpty(identityAddress) ? getAddress() : identityAddress; in getIdentityAddress() 635 return TextUtils.isEmpty(aliasName) ? getAddress() : aliasName; in getName() 1017 HearingAidStatsLogUtils.addToJustBonded(getAddress()); in onBondingStateChanged() 1110 return mDevice.getAddress().hashCode(); in hashCode() 1147 if (!preferences.contains(mDevice.getAddress())) { in migratePhonebookPermissionChoice() 1153 preferences.getInt(mDevice.getAddress(), BluetoothDevice.ACCESS_UNKNOWN); in migratePhonebookPermissionChoice() 1162 editor.remove(mDevice.getAddress()); in migratePhonebookPermissionChoice() 1171 if (!preferences.contains(mDevice.getAddress())) { in migrateMessagePermissionChoice() [all …]
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/media/ |
D | BluetoothMediaDevice.java | 102 return mCachedDevice.getAddress(); in getId() 135 return mAudioManager.getMutingExpectedDevice() != null && mCachedDevice.getAddress().equals( in isMutingExpectedDevice() 136 mAudioManager.getMutingExpectedDevice().getAddress()); in isMutingExpectedDevice()
|
/frameworks/opt/tv/tvsystem/java/com/android/libraries/tv/tvsystem/media/ |
D | TvAudioManager.java | 57 device.getAddress()); in setDeviceVolumeBehavior() 73 device.getAddress()); in getDeviceVolumeBehavior()
|
D | AudioDeviceAttributes.java | 87 mAddress = deviceInfo.getAddress(); in AudioDeviceAttributes() 144 public @NonNull String getAddress() { in getAddress() method in AudioDeviceAttributes
|
/frameworks/base/services/companion/java/com/android/server/companion/devicepresence/ |
D | BluetoothDeviceProcessor.java | 86 final MacAddress macAddress = MacAddress.fromString(device.getAddress()); in onDeviceConnected() 103 final MacAddress macAddress = MacAddress.fromString(device.getAddress()); in onDeviceDisconnected() 115 mAssociationStore.getActiveAssociationsByAddress(device.getAddress()); in onDeviceConnectivityChanged()
|
/frameworks/base/telephony/java/android/telephony/data/ |
D | EpsBearerQosSessionAttributes.java | 162 if (socketAddress != null && socketAddress.getAddress() != null) { in copySocketAddresses() 209 dest.writeByteArray(address.getAddress().getAddress()); in writeToParcel()
|
D | NrQosSessionAttributes.java | 188 if (socketAddress != null && socketAddress.getAddress() != null) { in copySocketAddresses() 239 dest.writeByteArray(address.getAddress().getAddress()); in writeToParcel()
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ |
D | RadioDataProxy.java | 391 byte[] sourceAddress = new byte[srcAddress.getAddress().length]; in startKeepalive() 393 sourceAddress[i] = srcAddress.getAddress()[i]; in startKeepalive() 397 byte[] destinationAddress = new byte[dstAddress.getAddress().length]; in startKeepalive() 399 destinationAddress[i] = dstAddress.getAddress()[i]; in startKeepalive() 426 srcAddress.getAddress(), req.sourceAddress); in startKeepalive() 429 dstAddress.getAddress(), req.destinationAddress); in startKeepalive()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/ |
D | BluetoothControllerImpl.java | 363 mLogger.logDeviceAdded(cachedDevice.getAddress()); in onDeviceAdded() 371 mLogger.logDeviceDeleted(cachedDevice.getAddress()); in onDeviceDeleted() 379 mLogger.logBondStateChange(cachedDevice.getAddress(), bondState); in onDeviceBondStateChanged() 407 cachedDevice.getAddress(), connectionStateToString(state), bluetoothProfile); in onProfileConnectionStateChanged() 424 cachedDevice.getAddress(), connectionStateToString(state)); in onAclConnectionStateChanged() 455 return device == null ? null : device.getAddress(); in getAddressOrNull()
|
/frameworks/base/core/java/android/companion/ |
D | BluetoothDeviceFilterUtils.java | 60 || (device != null && deviceAddress.equals(device.getAddress())); in matchesAddress() 136 return firstNotEmpty(device.getAlias(), device.getAddress()); in getDeviceDisplayNameInternal() 147 return ((BluetoothDevice) device).getAddress(); in getDeviceMacAddress()
|
/frameworks/base/media/jni/tuner/ |
D | DvrClient.cpp | 70 auto data = first.getAddress(); in readFromFile() 87 data = second.getAddress(); in readFromFile() 147 auto data = first.getAddress(); in writeToFile() 163 data = second.getAddress(); in writeToFile()
|
/frameworks/ex/common/java/com/android/common/ |
D | Rfc822Validator.java | 100 matcher(tokens[0].getAddress()).matches(); in isValid() 158 String text = tokens[i].getAddress(); in fixText()
|
/frameworks/base/core/java/android/net/ |
D | InterfaceConfiguration.java | 129 for (byte b : mAddr.getAddress().getAddress()) { in isActive()
|
/frameworks/base/media/java/android/media/ |
D | AudioDeviceAttributes.java | 105 mAddress = deviceInfo.getAddress(); in AudioDeviceAttributes() 197 mAddress = ada.getAddress(); in AudioDeviceAttributes() 230 public @NonNull String getAddress() { in getAddress() method in AudioDeviceAttributes
|
/frameworks/av/media/libaudiofoundation/ |
D | AudioDeviceTypeAddr.cpp | 61 const char* AudioDeviceTypeAddr::getAddress() const { in getAddress() function in android::AudioDeviceTypeAddr 189 return legacy2aidl_audio_device_AudioDevice(legacy.mType, legacy.getAddress()); in legacy2aidl_AudioDeviceTypeAddress()
|
/frameworks/base/services/usb/java/com/android/server/usb/descriptors/ |
D | UsbACAudioControlEndpoint.java | 45 public byte getAddress() { in getAddress() method in UsbACAudioControlEndpoint
|