Home
last modified time | relevance | path

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

12345678910>>...23

/aosp12/packages/modules/NetworkStack/common/netlinkclient/src/android/net/netlink/
H A DStructInetDiagSockId.java62 byteBuffer.put(mLocSocketAddress.getAddress().getAddress()); in pack()
63 if (mLocSocketAddress.getAddress() instanceof Inet4Address) { in pack()
66 byteBuffer.put(mRemSocketAddress.getAddress().getAddress()); in pack()
67 if (mRemSocketAddress.getAddress() instanceof Inet4Address) { in pack()
80 + "idiag_src{" + mLocSocketAddress.getAddress().getHostAddress() + "}, " in toString()
81 + "idiag_dst{" + mRemSocketAddress.getAddress().getHostAddress() + "}, " in toString()
/aosp12/frameworks/base/core/java/android/bluetooth/
H A DBluetoothGatt.java219 if (!address.equals(mDevice.getAddress())) {
244 if (!address.equals(mDevice.getAddress())) {
270 if (!address.equals(mDevice.getAddress())) {
314 if (!address.equals(mDevice.getAddress())) {
367 if (!address.equals(mDevice.getAddress())) {
425 if (!address.equals(mDevice.getAddress())) {
476 if (!address.equals(mDevice.getAddress())) {
509 if (!address.equals(mDevice.getAddress())) {
562 if (!address.equals(mDevice.getAddress())) {
611 if (!address.equals(mDevice.getAddress())) {
[all …]
/aosp12/packages/apps/Bluetooth/src/com/android/bluetooth/btservice/storage/
H A DDatabaseManager.java200 String address = device.getAddress(); in bondStateChanged()
239 String address = device.getAddress(); in setCustomMeta()
274 String address = device.getAddress(); in getCustomMeta()
319 String address = device.getAddress(); in setProfileConnectionPolicy()
366 String address = device.getAddress(); in getProfileConnectionPolicy()
405 String address = device.getAddress(); in setA2dpSupportsOptionalCodecs()
441 String address = device.getAddress(); in getA2dpSupportsOptionalCodecs()
800 String address = data.getAddress(); in isMigrated()
994 if (data.getAddress() == null) { in updateDatabase()
1006 String address = data.getAddress(); in deleteDatabase()
[all …]
/aosp12/packages/apps/Settings/tests/robotests/src/com/android/settings/bluetooth/
H A DBluetoothDevicePreferenceTest.java94 when(mCachedBluetoothDevice.getAddress()).thenReturn(MAC_ADDRESS); in setUp()
97 when(mCachedDevice1.getAddress()).thenReturn(MAC_ADDRESS_2); in setUp()
100 when(mCachedDevice2.getAddress()).thenReturn(MAC_ADDRESS_3); in setUp()
103 when(mCachedDevice3.getAddress()).thenReturn(MAC_ADDRESS_4); in setUp()
246 assertThat(mPreferenceList.get(0).getCachedDevice().getAddress()) in compareTo_sortTypeFIFO()
247 .isEqualTo(preference3.getCachedDevice().getAddress()); in compareTo_sortTypeFIFO()
249 .isEqualTo(preference2.getCachedDevice().getAddress()); in compareTo_sortTypeFIFO()
251 .isEqualTo(preference1.getCachedDevice().getAddress()); in compareTo_sortTypeFIFO()
272 .isEqualTo(preference1.getCachedDevice().getAddress()); in compareTo_sortTypeDefault()
274 .isEqualTo(preference2.getCachedDevice().getAddress()); in compareTo_sortTypeDefault()
[all …]
/aosp12/packages/modules/Connectivity/core/java/android/net/
H A DRouteInfo.java91 new LinkAddress(destination.getAddress(), destination.getPrefixLength()), in RouteInfo()
113 if (destination.getAddress() instanceof Inet4Address) { in RouteInfo()
123 if ((destination.getAddress() instanceof Inet4Address && in RouteInfo()
125 (destination.getAddress() instanceof Inet6Address && in RouteInfo()
212 return (mDestination.getAddress() instanceof Inet4Address && in isHost()
214 (mDestination.getAddress() instanceof Inet6Address && in isHost()
236 return new IpPrefix(mDestination.getAddress(), mDestination.getPrefixLength()); in getDestination()
311 return mDestination.getAddress().equals(dstNet); in matches()
329 if (NetworkUtils.addressTypeMatches(route.mDestination.getAddress(), dest)) { in selectBestRoute()
396 dest.writeByteArray(mDestination.getAddress().getAddress()); in writeToParcel()
[all …]
/aosp12/packages/apps/Car/Dialer/framework/fake/src/com/android/car/dialer/framework/
H A DSimulatedBluetoothDevice.java51 when(mMockBluetoothDevice.getAddress()).thenReturn( in SimulatedBluetoothDevice()
70 mMockBluetoothDevice.getAddress(), TestData.ACCOUNT_TYPE); in connect()
72 mMockBluetoothDevice.getAddress()); in connect()
80 mContactDataHandler.removeAddedContactsAsync(mMockBluetoothDevice.getAddress(), in disconnect()
82 mCallLogDataHandler.removeAddedCalllogsAsync(mMockBluetoothDevice.getAddress()); in disconnect()
88 mContactDataHandler.addOneContact(contactRawData, mMockBluetoothDevice.getAddress(), in insertContactInBackground()
95 mCallLogDataHandler.addOneCallLog(callLogRawData, mMockBluetoothDevice.getAddress()); in insertCallLogInBackground()
/aosp12/packages/modules/Connectivity/core/tests/coretests/src/android/net/
H A DLinkAddressTest.java58 assertEquals(V4_ADDRESS, address.getAddress()); in testConstructors()
64 assertEquals(V6_ADDRESS, address.getAddress()); in testConstructors()
71 assertEquals(V6_ADDRESS, address.getAddress()); in testConstructors()
77 assertEquals(V4_ADDRESS, address.getAddress()); in testConstructors()
88 if (addrs.get(0).getAddress() instanceof Inet4Address) { in testConstructors()
96 assertEquals(NetworkUtils.numericToInetAddress("127.0.0.1"), ipv4Loopback.getAddress()); in testConstructors()
99 assertEquals(NetworkUtils.numericToInetAddress("::1"), ipv6Loopback.getAddress()); in testConstructors()
260 byte[] ipv4Bytes = l1.getAddress().getAddress(); in testEqualsAndSameAddressAs()
261 byte[] l2FirstIPv6Bytes = Arrays.copyOf(l2.getAddress().getAddress(), 4); in testEqualsAndSameAddressAs()
262 byte[] l3LastIPv6Bytes = Arrays.copyOfRange(l3.getAddress().getAddress(), 12, 16); in testEqualsAndSameAddressAs()
/aosp12/packages/apps/Bluetooth/src/com/android/bluetooth/avrcpcontroller/
H A DAvrcpCoverArtManager.java159 debug("Connect " + device.getAddress() + ", psm: " + psm); in connect()
174 debug("Refresh OBEX session for " + device.getAddress()); in refreshSession()
177 warn("No client for " + device.getAddress()); in refreshSession()
191 debug("Disconnect " + device.getAddress()); in disconnect()
194 warn("No client for " + device.getAddress()); in disconnect()
301 debug("Download Image - device: " + device.getAddress() + ", Handle: " + imageUuid); in downloadImage()
410 debug(mDevice.getAddress() + ": " + oldState + " -> " + newState); in onConnectionStateChanged()
442 warn(mDevice.getAddress() + ": Could not getImage() for " + imageHandle in onGetImagePropertiesComplete()
452 warn(mDevice.getAddress() + ": GetImage() failed - Handle: " + imageHandle in onGetImageComplete()
457 debug(mDevice.getAddress() + ": Received image data for handle: " + imageHandle in onGetImageComplete()
[all …]
/aosp12/packages/modules/Connectivity/framework/src/android/net/
H A DRouteInfo.java199 if (destination.getAddress() instanceof Inet4Address) { in RouteInfo()
207 if ((destination.getAddress() instanceof Inet4Address in RouteInfo()
209 || (destination.getAddress() instanceof Inet6Address in RouteInfo()
250 new IpPrefix(destination.getAddress(), destination.getPrefixLength()), in RouteInfo()
344 return (mDestination.getAddress() instanceof Inet4Address && in isHost()
346 (mDestination.getAddress() instanceof Inet6Address && in isHost()
366 return new LinkAddress(mDestination.getAddress(), mDestination.getPrefixLength()); in getDestinationLinkAddress()
438 return isDefaultRoute() && mDestination.getAddress() instanceof Inet4Address; in isIPv4Default()
446 return isUnreachableDefaultRoute() && mDestination.getAddress() instanceof Inet4Address; in isIPv4UnreachableDefault()
454 return isDefaultRoute() && mDestination.getAddress() instanceof Inet6Address; in isIPv6Default()
[all …]
H A DIpPrefix.java96 this.address = address.getAddress(); in IpPrefix()
117 this.address = ipAndMask.first.getAddress(); in IpPrefix()
154 public @NonNull InetAddress getAddress() { in getAddress() method in IpPrefix
191 byte[] addrBytes = address.getAddress(); in contains()
217 return getAddress() instanceof Inet6Address; in isIPv6()
224 return getAddress() instanceof Inet4Address; in isIPv4()
H A DConnectionInfo.java51 out.writeByteArray(local.getAddress().getAddress()); in writeToParcel()
53 out.writeByteArray(remote.getAddress().getAddress()); in writeToParcel()
/aosp12/packages/services/Telecomm/src/com/android/server/telecom/bluetooth/
H A DBluetoothDeviceManager.java99 mBluetoothRouteManager.onDeviceLost(device.getAddress());
202 mLocalLog.log("Device connected -- address: " + device.getAddress() + " isHeadingAid: " in onDeviceConnected()
221 if (!targetDeviceMap.containsKey(device.getAddress())) { in onDeviceConnected()
222 targetDeviceMap.put(device.getAddress(), device); in onDeviceConnected()
223 mBluetoothRouteManager.onDeviceAdded(device.getAddress()); in onDeviceConnected()
229 mLocalLog.log("Device disconnected -- address: " + device.getAddress() + " isHeadingAid: " in onDeviceDisconnected()
239 if (targetDeviceMap.containsKey(device.getAddress())) { in onDeviceDisconnected()
240 targetDeviceMap.remove(device.getAddress()); in onDeviceDisconnected()
241 mBluetoothRouteManager.onDeviceLost(device.getAddress()); in onDeviceDisconnected()
/aosp12/packages/modules/Connectivity/tests/common/java/android/net/
H A DLinkAddressTest.java91 assertEquals(V4_ADDRESS, address.getAddress()); in testConstructors()
98 assertEquals(V6_ADDRESS, address.getAddress()); in testConstructors()
106 assertEquals(V6_ADDRESS, address.getAddress()); in testConstructors()
113 assertEquals(V4_ADDRESS, address.getAddress()); in testConstructors()
120 assertEquals(Inet6Address.LOOPBACK, address.getAddress()); in testConstructors()
127 assertEquals(InetAddresses.parseNumericAddress("2001:db8::123"), address.getAddress()); in testConstructors()
139 if (addrs.get(0).getAddress() instanceof Inet4Address) { in testConstructors()
150 assertEquals(InetAddresses.parseNumericAddress("::1"), ipv6Loopback.getAddress()); in testConstructors()
302 byte[] ipv4Bytes = l1.getAddress().getAddress(); in testEqualsAndSameAddressAs()
303 byte[] l2FirstIPv6Bytes = Arrays.copyOf(l2.getAddress().getAddress(), 4); in testEqualsAndSameAddressAs()
[all …]
/aosp12/packages/apps/Bluetooth/src/com/android/bluetooth/avrcp/
H A DAvrcpVolumeManager.java79 mAudioManager.avrcpSupportsAbsoluteVolume(device.getAddress(), mDeviceMap.get(device)); in switchVolumeDevice()
91 mNativeInterface.sendVolumeChanged(device.getAddress(), avrcpVolume); in switchVolumeDevice()
133 pref.putInt(device.getAddress(), storeVolume); in storeVolumeForDevice()
152 pref.remove(device.getAddress()); in removeStoredVolumeForDevice()
199 mNativeInterface.sendVolumeChanged(device.getAddress(), avrcpVolume); in sendVolumeChanged()
224 d("onAudioDevicesAdded: address=" + addedDevices[i].getAddress()); in onAudioDevicesAdded()
226 && Objects.equals(addedDevices[i].getAddress(), mCurrentDevice.getAddress())) { in onAudioDevicesAdded()
303 d.getAddress(), deviceName, (Integer) value, absoluteVolume)); in dump()
/aosp12/frameworks/base/core/tests/coretests/src/android/net/
H A DSntpClientTest.java89 assertTrue(mClient.requestTime(mServer.getAddress(), mServer.getPort(), 500, mNetwork)); in testBasicWorkingSntpClientQuery()
102 assertFalse(mClient.requestTime(mServer.getAddress(), mServer.getPort(), 500, mNetwork)); in testTimeoutFailure()
112 assertFalse(mClient.requestTime(mServer.getAddress(), mServer.getPort(), 500, mNetwork)); in testIgnoreLeapNoSync()
125 final boolean rval = mClient.requestTime(mServer.getAddress(), mServer.getPort(), 500, in testAcceptOnlyServerAndBroadcastModes()
151 final boolean rval = mClient.requestTime(mServer.getAddress(), mServer.getPort(), 500, in testAcceptableStrataOnly()
168 assertFalse(mClient.requestTime(mServer.getAddress(), mServer.getPort(), 500, mNetwork)); in testZeroTransmitTime()
248 public InetAddress getAddress() { return mAddress; } in getAddress() method in SntpClientTest.SntpTestServer
/aosp12/packages/modules/IPsec/src/java/com/android/internal/net/ipsec/ike/message/
H A DIkeConfigPayload.java447 buffer.put(address.getAddress()); in encodeValueToByteBuffer()
521 buffer.put(address.getAddress()); in encodeValueToByteBuffer()
575 public Inet4Address getAddress() { in getAddress() method in IkeConfigPayload.ConfigAttributeIpv4Address
639 public Inet4Address getAddress() { in getAddress() method in IkeConfigPayload.ConfigAttributeIpv4Dhcp
672 public Inet4Address getAddress() { in getAddress() method in IkeConfigPayload.ConfigAttributeIpv4Dns
754 buffer.put(linkAddress.getAddress().getAddress()).put(netmaskBytes); in encodeValueToByteBuffer()
808 public Inet4Address getAddress() { in getAddress() method in IkeConfigPayload.ConfigAttributeIpv4Pcscf
1023 buffer.put(linkAddress.getAddress().getAddress()) in encodeValueToByteBuffer()
1079 public Inet6Address getAddress() { in getAddress() method in IkeConfigPayload.ConfigAttributeIpv6Address
1144 public Inet6Address getAddress() { in getAddress() method in IkeConfigPayload.ConfigAttributeIpv6Dns
[all …]
/aosp12/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/btservice/storage/
H A DDatabaseManagerTest.java264 Assert.assertEquals(TEST_BT_ADDR, checkData.getAddress()); in testRemoveUnusedMetadata_WithSingleBondedDevice()
316 Assert.assertEquals(OTHER_BT_ADDR2, checkData1.getAddress()); in testRemoveUnusedMetadata_WithMultiBondedDevices()
318 Assert.assertEquals(OTHER_BT_ADDR1, checkData2.getAddress()); in testRemoveUnusedMetadata_WithMultiBondedDevices()
453 .mMetadataCache.get(mTestDevice.getAddress()).is_active_a2dp_device); in testSetConnection()
465 .mMetadataCache.get(mTestDevice.getAddress()).is_active_a2dp_device); in testSetConnection()
480 .mMetadataCache.get(mTestDevice.getAddress()).is_active_a2dp_device); in testSetConnection()
495 .mMetadataCache.get(mTestDevice.getAddress()).is_active_a2dp_device); in testSetConnection()
510 .mMetadataCache.get(mTestDevice.getAddress()).is_active_a2dp_device); in testSetConnection()
528 .mMetadataCache.get(mTestDevice.getAddress()).is_active_a2dp_device); in testSetConnection()
546 .mMetadataCache.get(mTestDevice.getAddress()).is_active_a2dp_device); in testSetConnection()
[all …]
/aosp12/packages/modules/Connectivity/framework/src/android/net/util/
H A DDnsUtils.java177 return ((InetSocketAddress) Os.getsockname(socket)).getAddress(); in findSrcAddress()
229 final byte[] byteAddr = addr.getAddress(); in isIpv6Address6To4()
235 final byte[] byteAddr = addr.getAddress(); in isIpv6AddressTeredo()
241 return isIpv6Address(addr) && (addr.getAddress()[0] & 0xfe) == 0xfc; in isIpv6AddressULA()
246 final byte[] byteAddr = addr.getAddress(); in isIpv6Address6Bone()
251 return !isIpv6Address(addr) ? 0 : (addr.getAddress()[1] & 0x0f); in getIpv6MulticastScope()
323 final byte[] srcByte = srcAddr.getAddress(); in compareIpv6PrefixMatchLen()
324 final byte[] dstByte = dstAddr.getAddress(); in compareIpv6PrefixMatchLen()
/aosp12/frameworks/base/services/core/java/com/android/server/media/
H A DBluetoothRouteProvider.java173 mBluetoothRoutes.put(device.getAddress(), newBtRoute); in buildBluetoothRoutes()
274 String routeId = device.getAddress(); in createBluetoothRoute()
302 .setAddress(device.getAddress()) in createBluetoothRoute()
367 BluetoothRouteInfo activeBtRoute = mBluetoothRoutes.get(device.getAddress()); in addActiveHearingAidDevices()
373 && !TextUtils.equals(btRoute.btDevice.getAddress(), in addActiveHearingAidDevices()
374 activeBtRoute.btDevice.getAddress())) { in addActiveHearingAidDevices()
417 BluetoothRouteInfo btRoute = mBluetoothRoutes.get(device.getAddress()); in onServiceConnected()
420 mBluetoothRoutes.put(device.getAddress(), btRoute); in onServiceConnected()
482 addActiveRoute(mBluetoothRoutes.get(device.getAddress())); in onReceive()
505 BluetoothRouteInfo btRoute = mBluetoothRoutes.get(device.getAddress()); in handleConnectionStateChanged()
[all …]
/aosp12/frameworks/base/core/tests/bluetoothtests/src/android/bluetooth/
H A DBluetoothInstrumentation.java72 getAddress(); in onStart()
101 public void getAddress() { in getAddress() method in BluetoothInstrumentation
102 String name = getBluetoothAdapter().getAddress(); in getAddress()
111 mSuccessResult.putString(String.format("device-%02d", i), device.getAddress()); in getBondedDevices()
/aosp12/packages/apps/Bluetooth/src/com/android/bluetooth/opp/
H A DBluetoothOppPreference.java101 return remoteDevice.getAddress() + "_" + Integer.toHexString(uuid); in getChannelKey()
105 if (remoteDevice.getAddress().equals("FF:FF:FF:00:00:00")) { in getName()
109 String name = mNames.get(remoteDevice.getAddress()); in getName()
140 ed.putString(remoteDevice.getAddress(), name); in setName()
142 mNames.put(remoteDevice.getAddress(), name); in setName()
/aosp12/packages/modules/NetworkStack/common/networkstackclient/src/android/net/util/
H A DKeepalivePacketDataUtil.java63 parcel.srcAddress = srcAddress.getAddress(); in toStableParcelable()
65 parcel.dstAddress = dstAddress.getAddress(); in toStableParcelable()
79 parcel.srcAddress = srcAddress.getAddress(); in toStableParcelable()
81 parcel.dstAddress = dstAddress.getAddress(); in toStableParcelable()
209 p.srcAddress = data.getSrcAddress().getAddress(); in parseTcpKeepalivePacketData()
211 p.dstAddress = data.getDstAddress().getAddress(); in parseTcpKeepalivePacketData()
/aosp12/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/
H A DBluetoothDeviceManagerTest.java173 verify(mRouteManager).onDeviceLost(device1.getAddress()); in testHeadsetServiceDisconnect()
174 verify(mRouteManager).onDeviceLost(device3.getAddress()); in testHeadsetServiceDisconnect()
175 verify(mRouteManager, never()).onDeviceLost(device2.getAddress()); in testHeadsetServiceDisconnect()
192 verify(mRouteManager).onDeviceLost(device2.getAddress()); in testHearingAidServiceDisconnect()
193 verify(mRouteManager, never()).onDeviceLost(device1.getAddress()); in testHearingAidServiceDisconnect()
194 verify(mRouteManager, never()).onDeviceLost(device3.getAddress()); in testHearingAidServiceDisconnect()
220 mBluetoothDeviceManager.connectAudio(device1.getAddress()); in testConnectDisconnectAudioHeadset()
232 mBluetoothDeviceManager.connectAudio(device2.getAddress()); in testConnectDisconnectAudioHearingAid()
/aosp12/frameworks/libs/net/common/framework/com/android/net/module/util/
H A 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()
/aosp12/packages/services/Telephony/src/com/android/services/telephony/
H A DPstnIncomingCallNotifier.java153 if (connection.getAddress() != null) { in handleNewRingingConnection()
155 .checkIncomingCall(connection.getAddress())) { in handleNewRingingConnection()
184 String number = connection.getAddress(); in handleCdmaCallWaiting()
242 !TextUtils.isEmpty(connection.getAddress())) { in addNewUnknownCall()
243 Uri uri = Uri.fromParts(PhoneAccount.SCHEME_TEL, connection.getAddress(), null); in addNewUnknownCall()
281 !TextUtils.isEmpty(connection.getAddress())) { in sendIncomingCallIntent()
282 Uri uri = Uri.fromParts(PhoneAccount.SCHEME_TEL, connection.getAddress(), null); in sendIncomingCallIntent()
443 && Objects.equals(original.getAddress(), unknown.getAddress())) { in maybeSwapWithUnknownConnection()

12345678910>>...23