/frameworks/base/core/java/android/bluetooth/ |
D | BluetoothGatt.java | 192 mService.clientConnect(mClientIf, mDevice.getAddress(), 210 if (!address.equals(mDevice.getAddress())) { 235 if (!address.equals(mDevice.getAddress())) { 261 if (!address.equals(mDevice.getAddress())) { 305 if (!address.equals(mDevice.getAddress())) { 357 if (!address.equals(mDevice.getAddress())) { 413 if (!address.equals(mDevice.getAddress())) { 464 if (!address.equals(mDevice.getAddress())) { 496 if (!address.equals(mDevice.getAddress())) { 547 if (!address.equals(mDevice.getAddress())) { [all …]
|
D | BluetoothGattServer.java | 541 "connect() - device: " + device.getAddress() + ", auto: " + autoConnect); in connect() 547 mService.serverConnect(mServerIf, device.getAddress(), !autoConnect, mTransport); in connect() 565 if (DBG) Log.d(TAG, "cancelConnection() - device: " + device.getAddress()); in cancelConnection() 569 mService.serverDisconnect(mServerIf, device.getAddress()); in cancelConnection() 595 mService.serverSetPreferredPhy(mServerIf, device.getAddress(), txPhy, rxPhy, in setPreferredPhy() 610 mService.serverReadPhy(mServerIf, device.getAddress()); in readPhy() 639 if (VDBG) Log.d(TAG, "sendResponse() - device: " + device.getAddress()); in sendResponse() 643 mService.sendResponse(mServerIf, device.getAddress(), requestId, in sendResponse() 672 if (VDBG) Log.d(TAG, "notifyCharacteristicChanged() - device: " + device.getAddress()); in notifyCharacteristicChanged() 684 mService.sendNotification(mServerIf, device.getAddress(), in notifyCharacteristicChanged()
|
/frameworks/base/core/java/android/net/ |
D | RouteInfo.java | 202 if (destination.getAddress() instanceof Inet4Address) { in RouteInfo() 210 if ((destination.getAddress() instanceof Inet4Address in RouteInfo() 212 || (destination.getAddress() instanceof Inet6Address in RouteInfo() 253 new IpPrefix(destination.getAddress(), destination.getPrefixLength()), in RouteInfo() 347 return (mDestination.getAddress() instanceof Inet4Address && in isHost() 349 (mDestination.getAddress() instanceof Inet6Address && in isHost() 369 return new LinkAddress(mDestination.getAddress(), mDestination.getPrefixLength()); in getDestinationLinkAddress() 442 return isDefaultRoute() && mDestination.getAddress() instanceof Inet4Address; in isIPv4Default() 450 return isUnreachableDefaultRoute() && mDestination.getAddress() instanceof Inet4Address; in isIPv4UnreachableDefault() 458 return isDefaultRoute() && mDestination.getAddress() instanceof Inet6Address; in isIPv6Default() [all …]
|
D | IpPrefix.java | 95 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()
|
D | ConnectionInfo.java | 51 out.writeByteArray(local.getAddress().getAddress()); in writeToParcel() 53 out.writeByteArray(remote.getAddress().getAddress()); in writeToParcel()
|
D | LinkAddress.java | 151 byte[] bytes = address.getAddress(); in isIpv6ULA() 306 this(interfaceAddress.getAddress(), in LinkAddress() 404 public InetAddress getAddress() { in getAddress() method in LinkAddress 526 dest.writeByteArray(address.getAddress()); in writeToParcel()
|
/frameworks/base/core/tests/coretests/src/android/net/ |
D | SntpClientTest.java | 85 assertTrue(mClient.requestTime(mServer.getAddress(), mServer.getPort(), 500, mNetwork)); in testBasicWorkingSntpClientQuery() 98 assertFalse(mClient.requestTime(mServer.getAddress(), mServer.getPort(), 500, mNetwork)); in testTimeoutFailure() 108 assertFalse(mClient.requestTime(mServer.getAddress(), mServer.getPort(), 500, mNetwork)); in testIgnoreLeapNoSync() 121 final boolean rval = mClient.requestTime(mServer.getAddress(), mServer.getPort(), 500, in testAcceptOnlyServerAndBroadcastModes() 147 final boolean rval = mClient.requestTime(mServer.getAddress(), mServer.getPort(), 500, in testAcceptableStrataOnly() 164 assertFalse(mClient.requestTime(mServer.getAddress(), mServer.getPort(), 500, mNetwork)); in testZeroTransmitTime() 244 public InetAddress getAddress() { return mAddress; } in getAddress() method in SntpClientTest.SntpTestServer
|
/frameworks/base/tests/net/common/java/android/net/ |
D | LinkAddressTest.java | 92 assertEquals(V4_ADDRESS, address.getAddress()); in testConstructors() 99 assertEquals(V6_ADDRESS, address.getAddress()); in testConstructors() 107 assertEquals(V6_ADDRESS, address.getAddress()); in testConstructors() 114 assertEquals(V4_ADDRESS, address.getAddress()); in testConstructors() 126 if (addrs.get(0).getAddress() instanceof Inet4Address) { in testConstructors() 134 assertEquals(NetworkUtils.numericToInetAddress("127.0.0.1"), ipv4Loopback.getAddress()); in testConstructors() 137 assertEquals(NetworkUtils.numericToInetAddress("::1"), ipv6Loopback.getAddress()); in testConstructors() 289 byte[] ipv4Bytes = l1.getAddress().getAddress(); in testEqualsAndSameAddressAs() 290 byte[] l2FirstIPv6Bytes = Arrays.copyOf(l2.getAddress().getAddress(), 4); in testEqualsAndSameAddressAs() 291 byte[] l3LastIPv6Bytes = Arrays.copyOfRange(l3.getAddress().getAddress(), 12, 16); in testEqualsAndSameAddressAs()
|
/frameworks/base/core/tests/bluetoothtests/src/android/bluetooth/ |
D | BluetoothInstrumentation.java | 72 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()
|
/frameworks/base/core/java/android/net/util/ |
D | DnsUtils.java | 179 return ((InetSocketAddress) Os.getsockname(socket)).getAddress(); in findSrcAddress() 231 final byte[] byteAddr = addr.getAddress(); in isIpv6Address6To4() 237 final byte[] byteAddr = addr.getAddress(); in isIpv6AddressTeredo() 243 return isIpv6Address(addr) && (addr.getAddress()[0] & 0xfe) == 0xfc; in isIpv6AddressULA() 248 final byte[] byteAddr = addr.getAddress(); in isIpv6Address6Bone() 253 return !isIpv6Address(addr) ? 0 : (addr.getAddress()[1] & 0x0f); in getIpv6MulticastScope() 325 final byte[] srcByte = srcAddr.getAddress(); in compareIpv6PrefixMatchLen() 326 final byte[] dstByte = dstAddr.getAddress(); in compareIpv6PrefixMatchLen()
|
/frameworks/libs/net/common/framework/android/net/util/ |
D | IpRange.java | 58 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()
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/media/ |
D | MediaDeviceUtils.java | 35 return cachedDevice.getAddress(); in getId() 45 return bluetoothDevice.getAddress(); in getId()
|
/frameworks/av/media/libaudiofoundation/ |
D | DeviceDescriptorBase.cpp | 73 (void)audio_utils_strlcpy_zerofill(dstConfig->ext.device.address, mDeviceTypeAddr.getAddress()); in toAudioPortConfig() 83 (void)audio_utils_strlcpy_zerofill(port->ext.device.address, mDeviceTypeAddr.getAddress()); in toAudioPort() 103 "%*s- address: %-32s\n", spaces, "", mDeviceTypeAddr.getAddress())); in dump() 119 mDeviceTypeAddr.getAddress()); in log()
|
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/media/ |
D | BluetoothMediaManagerTest.java | 291 when(device.getAddress()).thenReturn(TEST_ADDRESS); in onDeviceDeleted_cachedDeviceIsConnected_doNothing() 310 when(device.getAddress()).thenReturn(TEST_ADDRESS); in onDeviceDeleted_cachedDeviceIsDisconnected_callOnDeviceRemoved() 328 when(device.getAddress()).thenReturn(TEST_ADDRESS); in onProfileConnectionStateChanged_cachedDeviceIsBonded_callDeviceAttributesChanged() 346 when(device.getAddress()).thenReturn(TEST_ADDRESS); in onProfileConnectionStateChanged_cachedDeviceIsBondNone_callOnDeviceRemoved() 364 when(device.getAddress()).thenReturn(TEST_ADDRESS); in onAclConnectionStateChanged_cachedDeviceIsBonded_callDeviceAttributesChanged() 382 when(device.getAddress()).thenReturn(TEST_ADDRESS); in onAclConnectionStateChanged_cachedDeviceIsBondNone_callOnDeviceRemoved() 397 when(device.getAddress()).thenReturn(TEST_ADDRESS); in onActiveDeviceChanged_isHapProfile_callOnActiveDeviceChanged() 409 when(device.getAddress()).thenReturn(TEST_ADDRESS); in onActiveDeviceChanged_isA2dpProfile_callOnActiveDeviceChanged() 421 when(device.getAddress()).thenReturn(TEST_ADDRESS); in onActiveDeviceChanged_isNotA2dpAndHapProfile_doNothing() 437 when(bluetoothDevice.getAddress()).thenReturn(TEST_ADDRESS); in onActiveDeviceChanged_hearingAidDeviceIsActive_returnHearingAidDeviceId()
|
D | MediaDeviceUtilsTest.java | 56 when(mCachedDevice.getAddress()).thenReturn(TEST_ADDRESS); in getId_returnCachedBluetoothDeviceAddress() 65 when(mBluetoothDevice.getAddress()).thenReturn(TEST_ADDRESS); in getId_returnBluetoothDeviceAddress()
|
/frameworks/base/services/net/java/android/net/util/ |
D | KeepalivePacketDataUtil.java | 36 parcel.srcAddress = srcAddress.getAddress(); in toStableParcelable() 38 parcel.dstAddress = dstAddress.getAddress(); in toStableParcelable()
|
/frameworks/base/packages/Tethering/src/com/android/networkstack/tethering/ |
D | PrivateAddressCoordinator.java | 218 return prefix2.contains(prefix1.getAddress()); in isConflictPrefix() 221 return prefix1.contains(prefix2.getAddress()); in isConflictPrefix() 235 final LinkAddress address = downstream.getAddress(); in getDownstreamPrefix() 251 pw.println(ipServer.interfaceType() + " - " + ipServer.getAddress()); in dump()
|
/frameworks/base/services/core/java/com/android/server/connectivity/ |
D | TcpKeepaliveController.java | 144 tcpDetails.srcAddress = getAddress((InetSocketAddress) srcSockAddr); in switchToRepairMode() 158 tcpDetails.dstAddress = getAddress((InetSocketAddress) dstSockAddr); in switchToRepairMode() 294 private static byte [] getAddress(InetSocketAddress inetAddr) { in getAddress() method in TcpKeepaliveController 295 return inetAddr.getAddress().getAddress(); in getAddress()
|
/frameworks/base/services/core/java/com/android/server/ |
D | TestNetworkService.java | 111 addr.getAddress().getHostAddress(), in createInterface() 276 new LinkAddress(intfAddr.getAddress(), intfAddr.getNetworkPrefixLength())); 278 if (intfAddr.getAddress() instanceof Inet6Address) { 279 allowIPv6 |= !intfAddr.getAddress().isLinkLocalAddress(); 280 } else if (intfAddr.getAddress() instanceof Inet4Address) {
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/bluetooth/ |
D | CachedBluetoothDevice.java | 347 public String getAddress() { in getAddress() method in CachedBluetoothDevice 348 return mDevice.getAddress(); in getAddress() 359 return TextUtils.isEmpty(aliasName) ? getAddress() : aliasName; in getName() 698 return mDevice.getAddress().hashCode(); in hashCode() 735 if (!preferences.contains(mDevice.getAddress())) { in migratePhonebookPermissionChoice() 741 preferences.getInt(mDevice.getAddress(), BluetoothDevice.ACCESS_UNKNOWN); in migratePhonebookPermissionChoice() 750 editor.remove(mDevice.getAddress()); in migratePhonebookPermissionChoice() 759 if (!preferences.contains(mDevice.getAddress())) { in migrateMessagePermissionChoice() 765 preferences.getInt(mDevice.getAddress(), BluetoothDevice.ACCESS_UNKNOWN); in migrateMessagePermissionChoice() 774 editor.remove(mDevice.getAddress()); in migrateMessagePermissionChoice()
|
/frameworks/base/packages/Tethering/src/android/net/util/ |
D | PrefixUtils.java | 63 if (addr.getAddress().isLinkLocalAddress()) continue; in localPrefixesFrom() 74 return new IpPrefix(addr.getAddress(), addr.getPrefixLength()); in asIpPrefix()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/ |
D | BluetoothControllerImpl.java | 313 if (DEBUG) Log.d(TAG, "DeviceAdded=" + cachedDevice.getAddress()); in onDeviceAdded() 321 if (DEBUG) Log.d(TAG, "DeviceDeleted=" + cachedDevice.getAddress()); in onDeviceDeleted() 329 if (DEBUG) Log.d(TAG, "DeviceBondStateChanged=" + cachedDevice.getAddress()); in onDeviceBondStateChanged() 345 Log.d(TAG, "ConnectionStateChanged=" + cachedDevice.getAddress() + " " in onConnectionStateChanged() 356 Log.d(TAG, "ActiveDeviceChanged=" + activeDevice.getAddress() in onActiveDeviceChanged() 366 Log.d(TAG, "ACLConnectionStateChanged=" + cachedDevice.getAddress() + " " in onAclConnectionStateChanged()
|
/frameworks/base/core/java/android/net/shared/ |
D | Inet4AddressUtils.java | 69 byte [] addr = inetAddr.getAddress(); in inet4AddressToIntHTH() 133 int firstByte = address.getAddress()[0] & 0xff; // Convert to an unsigned value. in getImplicitNetmask()
|
/frameworks/base/packages/Tethering/src/android/net/ip/ |
D | RouterAdvertisementDaemon.java | 511 final byte[] addr = ipp.getAddress().getAddress(); 546 final byte[] addr = ipp.getAddress().getAddress(); 598 ra.put(dns.getAddress()); 643 final InetAddress destip = dest.getAddress(); 662 Log.d(TAG, "RA sendto " + dest.getAddress().getHostAddress());
|
/frameworks/libs/net/common/framework/com/android/net/module/util/ |
D | Inet4AddressUtils.java | 69 byte [] addr = inetAddr.getAddress(); in inet4AddressToIntHTH() 133 int firstByte = address.getAddress()[0] & 0xff; // Convert to an unsigned value. in getImplicitNetmask()
|