Home
last modified time | relevance | path

Searched refs:getAddress (Results 1 – 25 of 167) sorted by relevance

1234567

/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/bluetooth/
DHearingAidAudioRoutingHelperTest.java82 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/
DAudioDeviceBrokerTest.java262 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/
DSntpClientTest.java165 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/
DHearingDevicesPresetsController.java80 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/
DLegacyBluetoothRouteController.java191 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 …]
DBluetoothDeviceRoutesManager.java185 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/
DHearingAidAudioRoutingHelper.java130 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()
DHearingAidStatsLogUtils.java95 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()
DLocalBluetoothAdapter.java99 public String getAddress() { in getAddress() method in LocalBluetoothAdapter
100 return mAdapter.getAddress(); in getAddress()
DCachedBluetoothDevice.java612 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/
DBluetoothMediaDevice.java102 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/
DTvAudioManager.java57 device.getAddress()); in setDeviceVolumeBehavior()
73 device.getAddress()); in getDeviceVolumeBehavior()
DAudioDeviceAttributes.java87 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/
DBluetoothDeviceProcessor.java86 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/
DEpsBearerQosSessionAttributes.java162 if (socketAddress != null && socketAddress.getAddress() != null) { in copySocketAddresses()
209 dest.writeByteArray(address.getAddress().getAddress()); in writeToParcel()
DNrQosSessionAttributes.java188 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/
DRadioDataProxy.java391 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/
DBluetoothControllerImpl.java363 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/
DBluetoothDeviceFilterUtils.java60 || (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/
DDvrClient.cpp70 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/
DRfc822Validator.java100 matcher(tokens[0].getAddress()).matches(); in isValid()
158 String text = tokens[i].getAddress(); in fixText()
/frameworks/base/core/java/android/net/
DInterfaceConfiguration.java129 for (byte b : mAddr.getAddress().getAddress()) { in isActive()
/frameworks/base/media/java/android/media/
DAudioDeviceAttributes.java105 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/
DAudioDeviceTypeAddr.cpp61 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/
DUsbACAudioControlEndpoint.java45 public byte getAddress() { in getAddress() method in UsbACAudioControlEndpoint

1234567