Home
last modified time | relevance | path

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

12345678

/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/bluetooth/
DHearingAidAudioRoutingHelperTest.java79 when(mAudioDeviceInfo.getAddress()).thenReturn(TEST_DEVICE_ADDRESS); in setUp()
128 when(mCachedBluetoothDevice.getAddress()).thenReturn(TEST_DEVICE_ADDRESS); in getMatchedHearingDeviceAttributes_mainHearingDevice_equalAddress()
131 mCachedBluetoothDevice).getAddress(); in getMatchedHearingDeviceAttributes_mainHearingDevice_equalAddress()
133 assertThat(targetAddress).isEqualTo(mHearingDeviceAttribute.getAddress()); in getMatchedHearingDeviceAttributes_mainHearingDevice_equalAddress()
139 when(mCachedBluetoothDevice.getAddress()).thenReturn(NOT_EXPECT_DEVICE_ADDRESS); in getMatchedHearingDeviceAttributes_subHearingDevice_equalAddress()
142 when(mSubCachedBluetoothDevice.getAddress()).thenReturn(TEST_DEVICE_ADDRESS); in getMatchedHearingDeviceAttributes_subHearingDevice_equalAddress()
145 mCachedBluetoothDevice).getAddress(); in getMatchedHearingDeviceAttributes_subHearingDevice_equalAddress()
147 assertThat(targetAddress).isEqualTo(mHearingDeviceAttribute.getAddress()); in getMatchedHearingDeviceAttributes_subHearingDevice_equalAddress()
153 when(mSubCachedBluetoothDevice.getAddress()).thenReturn(TEST_DEVICE_ADDRESS); in getMatchedHearingDeviceAttributes_memberHearingDevice_equalAddress()
157 when(mCachedBluetoothDevice.getAddress()).thenReturn(NOT_EXPECT_DEVICE_ADDRESS); in getMatchedHearingDeviceAttributes_memberHearingDevice_equalAddress()
[all …]
DHearingAidStatsLogUtilsTest.java48 when(mCachedBluetoothDevice.getAddress()).thenReturn(TEST_DEVICE_ADDRESS); in setBondEntryForDevice_addsEntryToDeviceAddressToBondEntryMap()
63 when(mCachedBluetoothDevice.getAddress()).thenReturn(TEST_DEVICE_ADDRESS); in logHearingAidInfo_removesEntryFromDeviceAddressToBondEntryMap()
/frameworks/libs/net/common/device/com/android/net/module/util/netlink/
DStructInetDiagSockId.java149 byteBuffer.put(locSocketAddress.getAddress().getAddress()); in pack()
150 if (locSocketAddress.getAddress() instanceof Inet4Address) { in pack()
153 byteBuffer.put(remSocketAddress.getAddress().getAddress()); in pack()
154 if (remSocketAddress.getAddress() instanceof Inet4Address) { in pack()
167 + "idiag_src{" + locSocketAddress.getAddress().getHostAddress() + "}, " in toString()
168 + "idiag_dst{" + remSocketAddress.getAddress().getHostAddress() + "}, " in toString()
DRtNetlinkRouteMessage.java172 final StructNlAttr destination = new StructNlAttr(RTA_DST, mDestination.getAddress()); in pack()
176 final StructNlAttr gateway = new StructNlAttr(RTA_GATEWAY, mGateway.getAddress()); in pack()
190 + "destination{" + mDestination.getAddress().getHostAddress() + "}, " in toString()
/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/libs/net/common/framework/com/android/net/module/util/
DIpRange.java58 if (addrToBigInteger(startAddr.getAddress()).compareTo( in IpRange()
59 addrToBigInteger(endAddr.getAddress())) >= 0) { in IpRange()
64 mStartAddr = startAddr.getAddress(); in IpRange()
65 mEndAddr = endAddr.getAddress(); in IpRange()
166 result.add(new IpPrefix(prefix.getAddress(), currentPrefixLen + 1)); in getSubsetPrefixes()
DInetAddressUtils.java43 byte[] addressArray = (address != null) ? address.getAddress() : null; in parcelInetAddress()
87 return Inet6Address.getByAddress(null /* host */, addr.getAddress(), in withScopeId()
DNetUtils.java63 if (addressTypeMatches(route.getDestination().getAddress(), dest)) { in selectBestRoute()
86 byte[] array = address.getAddress(); in getNetworkPart()
DInet4AddressUtils.java69 byte [] addr = inetAddr.getAddress(); in inet4AddressToIntHTH()
133 int firstByte = address.getAddress()[0] & 0xff; // Convert to an unsigned value. in getImplicitNetmask()
/frameworks/base/services/core/java/com/android/server/media/
DLegacyBluetoothRouteController.java196 mBluetoothRoutes.put(device.getAddress(), newBtRoute); in buildBluetoothRoutes()
291 String routeId = device.getAddress(); in createBluetoothRoute()
325 .setAddress(device.getAddress()) in createBluetoothRoute()
391 BluetoothRouteInfo activeBtRoute = mBluetoothRoutes.get(device.getAddress()); in addActiveDevices()
396 mBluetoothRoutes.put(device.getAddress(), activeBtRoute); in addActiveDevices()
403 && !TextUtils.equals(btRoute.mBtDevice.getAddress(), in addActiveDevices()
404 activeBtRoute.mBtDevice.getAddress())) { in addActiveDevices()
454 BluetoothRouteInfo btRoute = mBluetoothRoutes.get(device.getAddress()); in onServiceConnected()
457 mBluetoothRoutes.put(device.getAddress(), btRoute); in onServiceConnected()
556 BluetoothRouteInfo btRoute = mBluetoothRoutes.get(device.getAddress()); in handleConnectionStateChanged()
[all …]
/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.java40 sDeviceAddressToBondEntryMap.put(device.getAddress(), bondEntry); in setBondEntryForDevice()
53 final String deviceAddress = device.getAddress(); in logHearingAidInfo()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/media/
DMediaDeviceUtils.java40 return cachedDevice.getAddress(); in getId()
50 return bluetoothDevice.getAddress(); in getId()
/frameworks/libs/net/common/tests/unit/src/com/android/net/module/util/netlink/
DStructInetDiagSockIdTest.java186 assertEquals(IPV4_SRC_ADDR, sockId.locSocketAddress.getAddress()); in testParseStructInetDiagSockIdWithIpv4()
188 assertEquals(IPV4_DST_ADDR, sockId.remSocketAddress.getAddress()); in testParseStructInetDiagSockIdWithIpv4()
199 assertEquals(IPV6_SRC_ADDR, sockId.locSocketAddress.getAddress()); in testParseStructInetDiagSockIdWithIpv6()
201 assertEquals(IPV6_DST_ADDR, sockId.remSocketAddress.getAddress()); in testParseStructInetDiagSockIdWithIpv6()
/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/libs/net/common/device/com/android/net/module/util/ip/
DInterfaceController.java59 if (!(ipv4Addr.getAddress() instanceof Inet4Address)) { in setInterfaceConfiguration()
67 ifConfig.ipv4Addr = ipv4Addr.getAddress().getHostAddress(); in setInterfaceConfiguration()
166 return addAddress(addr.getAddress(), addr.getPrefixLength()); in addAddress()
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/media/
DMediaDeviceUtilsTest.java55 when(mCachedDevice.getAddress()).thenReturn(TEST_ADDRESS); in getId_returnCachedBluetoothDeviceAddress()
64 when(mBluetoothDevice.getAddress()).thenReturn(TEST_ADDRESS); in getId_returnBluetoothDeviceAddress()
/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/base/services/companion/java/com/android/server/companion/presence/
DBluetoothCompanionDeviceConnectionListener.java95 final MacAddress macAddress = MacAddress.fromString(device.getAddress()); in onDeviceConnected()
131 final MacAddress macAddress = MacAddress.fromString(device.getAddress()); in onDeviceDisconnected()
159 mAssociationStore.getAssociationsByAddress(device.getAddress()); in onDeviceConnectivityChanged()
/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/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DBluetoothControllerImpl.java357 mLogger.logDeviceAdded(cachedDevice.getAddress()); in onDeviceAdded()
365 mLogger.logDeviceDeleted(cachedDevice.getAddress()); in onDeviceDeleted()
373 mLogger.logBondStateChange(cachedDevice.getAddress(), bondState); in onDeviceBondStateChanged()
401 cachedDevice.getAddress(), connectionStateToString(state), bluetoothProfile); in onProfileConnectionStateChanged()
418 cachedDevice.getAddress(), connectionStateToString(state)); in onAclConnectionStateChanged()
449 return device == null ? null : device.getAddress(); in getAddressOrNull()
/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/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()

12345678