/frameworks/base/core/java/android/net/ |
D | IpPrefix.java | 54 private final byte[] address; // network byte order field in IpPrefix 58 if (address.length != 4 && address.length != 16) { in checkAndMaskAddressAndPrefixLength() 60 "IpPrefix has " + address.length + " bytes which is neither 4 nor 16"); in checkAndMaskAddressAndPrefixLength() 62 NetworkUtils.maskRawAddress(address, prefixLength); in checkAndMaskAddressAndPrefixLength() 75 public IpPrefix(@NonNull byte[] address, @IntRange(from = 0, to = 128) int prefixLength) { in IpPrefix() argument 76 this.address = address.clone(); in IpPrefix() 92 public IpPrefix(@NonNull InetAddress address, @IntRange(from = 0, to = 128) int prefixLength) { in IpPrefix() argument 95 this.address = address.getAddress(); in IpPrefix() 117 this.address = ipAndMask.first.getAddress(); in IpPrefix() 135 return Arrays.equals(this.address, that.address) && this.prefixLength == that.prefixLength; in equals() [all …]
|
D | LinkAddress.java | 83 private InetAddress address; field in LinkAddress 151 byte[] bytes = address.getAddress(); in isIpv6ULA() 164 return address instanceof Inet6Address; in isIpv6() 186 return address instanceof Inet4Address; in isIpv4() 192 private void init(InetAddress address, int prefixLength, int flags, int scope, in init() argument 194 if (address == null || in init() 195 address.isMulticastAddress() || in init() 197 (address instanceof Inet4Address && prefixLength > 32) || in init() 199 throw new IllegalArgumentException("Bad LinkAddress params " + address + in init() 226 this.address = address; in init() [all …]
|
D | VpnService.java | 301 public boolean addAddress(InetAddress address, int prefixLength) { in addAddress() argument 302 check(address, prefixLength); in addAddress() 304 return getService().addVpnAddress(address.getHostAddress(), prefixLength); in addAddress() 331 public boolean removeAddress(InetAddress address, int prefixLength) { in removeAddress() argument 332 check(address, prefixLength); in removeAddress() 334 return getService().removeVpnAddress(address.getHostAddress(), prefixLength); in removeAddress() 457 private static void check(InetAddress address, int prefixLength) { in check() argument 458 if (address.isLoopbackAddress()) { in check() 461 if (address instanceof Inet4Address) { in check() 465 } else if (address instanceof Inet6Address) { in check() [all …]
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/cdma/sms/ |
D | CdmaSmsAddressTest.java | 31 String address = "3141592653"; in testNumberAddress() local 32 CdmaSmsAddress cdmaAddress = CdmaSmsAddress.parse(address); in testNumberAddress() 33 assertEquals(address, cdmaAddress.address); in testNumberAddress() 36 assertArrayEquals(CdmaSmsAddress.parseToDtmf(address), cdmaAddress.origBytes); in testNumberAddress() 41 String address = "(314)1592653"; in testNumberWithSugar() local 42 CdmaSmsAddress cdmaAddress = CdmaSmsAddress.parse(address); in testNumberWithSugar() 43 assertEquals(address, cdmaAddress.address); in testNumberWithSugar() 51 String address = "+10068"; in testInternationalAddress() local 52 CdmaSmsAddress cdmaAddress = CdmaSmsAddress.parse(address); in testInternationalAddress() 53 assertEquals(address, cdmaAddress.address); in testInternationalAddress() [all …]
|
/frameworks/av/media/libaudiohal/impl/ |
D | ConversionHelperHidl.cpp | 108 static std::string deviceAddressToHal(const DeviceAddress& address) { in deviceAddressToHal() argument 112 audio_devices_t halDevice = static_cast<audio_devices_t>(address.device); in deviceAddressToHal() 116 address.address.mac[0], address.address.mac[1], address.address.mac[2], in deviceAddressToHal() 117 address.address.mac[3], address.address.mac[4], address.address.mac[5]); in deviceAddressToHal() 119 snprintf(halAddress, sizeof(halAddress), "%d.%d.%d.%d", address.address.ipv4[0], in deviceAddressToHal() 120 address.address.ipv4[1], address.address.ipv4[2], address.address.ipv4[3]); in deviceAddressToHal() 123 snprintf(halAddress, sizeof(halAddress), "card=%d;device=%d", address.address.alsa.card, in deviceAddressToHal() 124 address.address.alsa.device); in deviceAddressToHal() 126 snprintf(halAddress, sizeof(halAddress), "%s", address.busAddress.c_str()); in deviceAddressToHal() 129 snprintf(halAddress, sizeof(halAddress), "%s", address.rSubmixAddress.c_str()); in deviceAddressToHal() [all …]
|
D | DeviceHalHidl.cpp | 52 audio_devices_t device, const char* halAddress, DeviceAddress* address) { in deviceAddressFromHal() argument 53 address->device = AudioDevice(device); in deviceAddressFromHal() 62 &address->address.mac[0], &address->address.mac[1], &address->address.mac[2], in deviceAddressFromHal() 63 &address->address.mac[3], &address->address.mac[4], &address->address.mac[5]); in deviceAddressFromHal() 68 &address->address.ipv4[0], &address->address.ipv4[1], in deviceAddressFromHal() 69 &address->address.ipv4[2], &address->address.ipv4[3]); in deviceAddressFromHal() 75 &address->address.alsa.card, &address->address.alsa.device); in deviceAddressFromHal() 78 address->busAddress = halAddress; in deviceAddressFromHal() 82 address->rSubmixAddress = halAddress; in deviceAddressFromHal() 233 const char *address, in openOutputStream() argument [all …]
|
/frameworks/base/core/java/com/android/server/net/ |
D | NetlinkTracker.java | 93 private void maybeLog(String operation, String iface, LinkAddress address) { in maybeLog() argument 95 Log.d(TAG, operation + ": " + address + " on " + iface + in maybeLog() 96 " flags " + address.getFlags() + " scope " + address.getScope()); in maybeLog() 120 public void addressUpdated(String iface, LinkAddress address) { in addressUpdated() argument 122 maybeLog("addressUpdated", iface, address); in addressUpdated() 125 changed = mLinkProperties.addLinkAddress(address); in addressUpdated() 134 public void addressRemoved(String iface, LinkAddress address) { in addressRemoved() argument 136 maybeLog("addressRemoved", iface, address); in addressRemoved() 139 changed = mLinkProperties.removeLinkAddress(address); in addressRemoved() 220 public final InetAddress address; field in DnsServerEntry [all …]
|
/frameworks/base/telephony/java/com/android/internal/telephony/cdma/sms/ |
D | CdmaSmsAddress.java | 110 builder.append(", address=\"" + address + "\""); in toString() 122 public static byte[] parseToDtmf(String address) { in parseToDtmf() argument 123 int digits = address.length(); in parseToDtmf() 126 char c = address.charAt(i); in parseToDtmf() 163 private static String filterNumericSugar(String address) { in filterNumericSugar() argument 165 int len = address.length(); in filterNumericSugar() 167 char c = address.charAt(i); in filterNumericSugar() 180 private static String filterWhitespace(String address) { in filterWhitespace() argument 182 int len = address.length(); in filterWhitespace() 184 char c = address.charAt(i); in filterWhitespace() [all …]
|
/frameworks/libs/net/common/tests/unit/src/android/net/util/ |
D | IpRangeTest.java | 44 private static InetAddress address(String addr) { in address() method in IpRangeTest 48 private static final Inet4Address IPV4_ADDR = (Inet4Address) address("192.0.2.4"); 49 private static final Inet4Address IPV4_RANGE_END = (Inet4Address) address("192.0.3.1"); 50 private static final Inet6Address IPV6_ADDR = (Inet6Address) address("2001:db8::"); 51 private static final Inet6Address IPV6_RANGE_END = (Inet6Address) address("2001:db9:010f::"); 83 new IpRange(address("10.10.10.10"), address("1.2.3.4")); in testConstructorBadArguments() 89 new IpRange(address("ffff::"), address("abcd::")); in testConstructorBadArguments() 102 assertEquals(address("192.0.0.0"), r.getStartAddr()); in testConstructor() 103 assertEquals(address("192.0.255.255"), r.getEndAddr()); in testConstructor() 114 assertEquals(address("2001::"), r.getStartAddr()); in testConstructor() [all …]
|
/frameworks/base/services/core/java/com/android/server/audio/ |
D | AudioDeviceInventory.java | 130 String address, String name, String caller) { in WiredDeviceConnectionState() argument 133 mAddress = address; in WiredDeviceConnectionState() 170 String address = btDevice.getAddress(); in onSetA2dpSinkConnectionState() local 171 if (!BluetoothAdapter.checkBluetoothAddress(address)) { in onSetA2dpSinkConnectionState() 172 address = ""; in onSetA2dpSinkConnectionState() 178 "A2DP sink connected: device addr=" + address + " state=" + state in onSetA2dpSinkConnectionState() 196 makeA2dpDeviceUnavailableNow(address, di.mDeviceCodecFormat); in onSetA2dpSinkConnectionState() 206 makeA2dpDeviceAvailable(address, BtHelper.getName(btDevice), in onSetA2dpSinkConnectionState() 219 String address = btDevice.getAddress(); in onSetA2dpSourceConnectionState() local 220 if (!BluetoothAdapter.checkBluetoothAddress(address)) { in onSetA2dpSourceConnectionState() [all …]
|
/frameworks/base/tests/net/common/java/android/net/ |
D | LinkAddressTest.java | 88 LinkAddress address; in testConstructors() local 91 address = new LinkAddress(V4_ADDRESS, 25); in testConstructors() 92 assertEquals(V4_ADDRESS, address.getAddress()); in testConstructors() 93 assertEquals(25, address.getPrefixLength()); in testConstructors() 94 assertEquals(0, address.getFlags()); in testConstructors() 95 assertEquals(RT_SCOPE_UNIVERSE, address.getScope()); in testConstructors() 96 assertTrue(address.isIpv4()); in testConstructors() 98 address = new LinkAddress(V6_ADDRESS, 127); in testConstructors() 99 assertEquals(V6_ADDRESS, address.getAddress()); in testConstructors() 100 assertEquals(127, address.getPrefixLength()); in testConstructors() [all …]
|
D | IpPrefixTest.java | 44 private static InetAddress address(String addr) { in address() method in IpPrefixTest 221 assertTrue(p.contains(address("2001:db8:f00::ace:d00c"))); in testContainsInetAddress() 222 assertTrue(p.contains(address("2001:db8:f00::ace:d00d"))); in testContainsInetAddress() 223 assertFalse(p.contains(address("2001:db8:f00::ace:d00e"))); in testContainsInetAddress() 224 assertFalse(p.contains(address("2001:db8:f00::bad:d00d"))); in testContainsInetAddress() 225 assertFalse(p.contains(address("2001:4868:4860::8888"))); in testContainsInetAddress() 226 assertFalse(p.contains(address("8.8.8.8"))); in testContainsInetAddress() 229 assertTrue(p.contains(address("192.0.2.43"))); in testContainsInetAddress() 230 assertTrue(p.contains(address("192.0.3.21"))); in testContainsInetAddress() 231 assertFalse(p.contains(address("192.0.0.21"))); in testContainsInetAddress() [all …]
|
/frameworks/base/services/core/java/com/android/server/hdmi/ |
D | DeviceDiscoveryAction.java | 171 private boolean verifyValidLogicalAddress(int address) { in verifyValidLogicalAddress() argument 172 return address >= Constants.ADDR_TV && address < Constants.ADDR_UNREGISTERED; in verifyValidLogicalAddress() 175 private void queryPhysicalAddress(int address) { in queryPhysicalAddress() argument 176 if (!verifyValidLogicalAddress(address)) { in queryPhysicalAddress() 184 if (mayProcessMessageIfCached(address, Constants.MESSAGE_REPORT_PHYSICAL_ADDRESS)) { in queryPhysicalAddress() 187 sendCommand(HdmiCecMessageBuilder.buildGivePhysicalAddress(getSourceAddress(), address)); in queryPhysicalAddress() local 204 private void queryOsdName(int address) { in queryOsdName() argument 205 if (!verifyValidLogicalAddress(address)) { in queryOsdName() 212 if (mayProcessMessageIfCached(address, Constants.MESSAGE_SET_OSD_NAME)) { in queryOsdName() 215 sendCommand(HdmiCecMessageBuilder.buildGiveOsdNameCommand(getSourceAddress(), address)); in queryOsdName() local [all …]
|
D | HotplugDetectionAction.java | 231 private void mayChangeRoutingPath(int address) { in mayChangeRoutingPath() argument 232 HdmiDeviceInfo info = tv().getCecDeviceInfo(address); in mayChangeRoutingPath() 238 private void mayCancelDeviceSelect(int address) { in mayCancelDeviceSelect() argument 246 if (action.getTargetAddress() == address) { in mayCancelDeviceSelect() 251 private void mayCancelOneTouchRecord(int address) { in mayCancelOneTouchRecord() argument 254 if (action.getRecorderAddress() == address) { in mayCancelOneTouchRecord() 260 private void mayDisableSystemAudioAndARC(int address) { in mayDisableSystemAudioAndARC() argument 261 if (HdmiUtils.getTypeFromAddress(address) != HdmiDeviceInfo.DEVICE_AUDIO_SYSTEM) { in mayDisableSystemAudioAndARC() 268 addAndStartAction(new RequestArcTerminationAction(localDevice(), address)); in mayDisableSystemAudioAndARC()
|
/frameworks/av/media/libstagefright/codecs/amrwbenc/src/asm/ARMV7/ |
D | residu_asm_neon.s | 41 ADD r9, r1, r7, LSL #1 @copy the address 47 SUB r8, r9, #2 @get the x[i-1] address 51 SUB r8, r9, #4 @load the x[i-2] address 55 SUB r8, r9, #6 @load the x[i-3] address 59 SUB r8, r9, #8 @load the x[i-4] address 63 SUB r8, r9, #10 @load the x[i-5] address 67 SUB r8, r9, #12 @load the x[i-6] address 71 SUB r8, r9, #14 @load the x[i-7] address 75 SUB r8, r9, #16 @load the x[i-8] address 79 SUB r8, r9, #18 @load the x[i-9] address [all …]
|
/frameworks/opt/net/voip/src/java/android/net/rtp/ |
D | RtpStream.java | 70 RtpStream(InetAddress address) throws SocketException { in RtpStream() argument 71 mLocalPort = create(address.getHostAddress()); in RtpStream() 72 mLocalAddress = address; in RtpStream() 75 private native int create(String address) throws SocketException; in create() argument 153 public void associate(InetAddress address, int port) { in associate() argument 157 if (!(address instanceof Inet4Address && mLocalAddress instanceof Inet4Address) && in associate() 158 !(address instanceof Inet6Address && mLocalAddress instanceof Inet6Address)) { in associate() 164 mRemoteAddress = address; in associate()
|
/frameworks/opt/net/voip/src/jni/rtp/ |
D | util.cpp | 35 const char *address = env->GetStringUTFChars(jAddress, NULL); in parse() local 36 if (!address) { in parse() 43 if (inet_pton(AF_INET, address, &(sin->sin_addr)) > 0) { in parse() 46 env->ReleaseStringUTFChars(jAddress, address); in parse() 51 if (inet_pton(AF_INET6, address, &(sin6->sin6_addr)) > 0) { in parse() 54 env->ReleaseStringUTFChars(jAddress, address); in parse() 58 env->ReleaseStringUTFChars(jAddress, address); in parse()
|
/frameworks/base/core/java/android/bluetooth/ |
D | BluetoothGattServer.java | 87 boolean connected, String address) { 90 + " serverIf=" + serverIf + " device=" + address); 93 mCallback.onConnectionStateChange(mAdapter.getRemoteDevice(address), status, 150 public void onCharacteristicReadRequest(String address, int transId, 154 BluetoothDevice device = mAdapter.getRemoteDevice(address); 174 public void onDescriptorReadRequest(String address, int transId, 178 BluetoothDevice device = mAdapter.getRemoteDevice(address); 197 public void onCharacteristicWriteRequest(String address, int transId, 202 BluetoothDevice device = mAdapter.getRemoteDevice(address); 223 public void onDescriptorWriteRequest(String address, int transId, int offset, [all …]
|
D | BluetoothGatt.java | 205 public void onPhyUpdate(String address, int txPhy, int rxPhy, int status) { 208 + " address=" + address + " txPhy=" + txPhy + " rxPhy=" + rxPhy); 210 if (!address.equals(mDevice.getAddress())) { 230 public void onPhyRead(String address, int txPhy, int rxPhy, int status) { 233 + " address=" + address + " txPhy=" + txPhy + " rxPhy=" + rxPhy); 235 if (!address.equals(mDevice.getAddress())) { 256 boolean connected, String address) { 259 + " clientIf=" + clientIf + " device=" + address); 261 if (!address.equals(mDevice.getAddress())) { 299 public void onSearchComplete(String address, List<BluetoothGattService> services, [all …]
|
/frameworks/base/wifi/java/android/net/wifi/rtt/ |
D | CivicLocation.java | 187 Address address = new Address(Locale.US); in toAddress() local 217 address.setAddressLine(ADDRESS_LINE_0_ROOM_DESK_FLOOR, addressLine0); in toAddress() 218 address.setAddressLine(ADDRESS_LINE_1_NUMBER_ROAD_SUFFIX_APT, addressLine1); in toAddress() 219 address.setAddressLine(ADDRESS_LINE_2_CITY, addressLine2); in toAddress() 220 address.setAddressLine(ADDRESS_LINE_3_STATE_POSTAL_CODE, addressLine3); in toAddress() 221 address.setAddressLine(ADDRESS_LINE_4_COUNTRY, addressLine4); in toAddress() 224 address.setFeatureName(getCivicElementValue(CivicLocationKeys.NAM)); // Structure name in toAddress() 225 address.setSubThoroughfare(getCivicElementValue(CivicLocationKeys.HNO)); in toAddress() 226 address.setThoroughfare(getCivicElementValue(CivicLocationKeys.PRIMARY_ROAD_NAME)); in toAddress() 227 address.setSubLocality(getCivicElementValue(CivicLocationKeys.NEIGHBORHOOD)); in toAddress() [all …]
|
/frameworks/base/services/core/jni/ |
D | com_android_server_connectivity_Vpn.cpp | 132 char address[65]; in set_addresses() local 137 while (sscanf(addresses, " %64[^/]/%d %n", address, &prefix, &chars) == 2) { in set_addresses() 140 if (strchr(address, ':')) { in set_addresses() 142 if (inet_pton(AF_INET6, address, &ifr6.ifr6_addr) != 1 || in set_addresses() 155 if (inet_pton(AF_INET, address, as_in_addr(&ifr4.ifr_addr)) != 1 || in set_addresses() 176 ALOGD("Address added on %s: %s/%d", name, address, prefix); in set_addresses() 181 ALOGE("Invalid address: %s/%d", address, prefix); in set_addresses() 183 ALOGE("Cannot add address: %s/%d: %s", address, prefix, strerror(errno)); in set_addresses() 222 const char *address = jAddress ? env->GetStringUTFChars(jAddress, NULL) : NULL; in modifyAddress() local 226 } else if (!address) { in modifyAddress() [all …]
|
/frameworks/base/packages/Tethering/tests/unit/src/com/android/networkstack/tethering/ |
D | PrivateAddressCoordinatorTest.java | 77 LinkAddress address = mPrivateAddressCoordinator.requestDownstreamAddress( in testDownstreamPrefixRequest() local 79 final IpPrefix hotspotPrefix = PrefixUtils.asIpPrefix(address); in testDownstreamPrefixRequest() 82 address = mPrivateAddressCoordinator.requestDownstreamAddress( in testDownstreamPrefixRequest() 84 final IpPrefix testDupRequest = PrefixUtils.asIpPrefix(address); in testDownstreamPrefixRequest() 89 address = mPrivateAddressCoordinator.requestDownstreamAddress( in testDownstreamPrefixRequest() 91 final IpPrefix usbPrefix = PrefixUtils.asIpPrefix(address); in testDownstreamPrefixRequest() 139 LinkAddress address = mPrivateAddressCoordinator.requestDownstreamAddress( in testReserveBluetoothPrefix() local 141 final IpPrefix hotspotPrefix = PrefixUtils.asIpPrefix(address); in testReserveBluetoothPrefix() 151 LinkAddress address = mPrivateAddressCoordinator.requestDownstreamAddress( in testNoConflictDownstreamPrefix() local 153 final IpPrefix hotspotPrefix = PrefixUtils.asIpPrefix(address); in testNoConflictDownstreamPrefix() [all …]
|
/frameworks/opt/net/voip/src/java/android/net/sip/ |
D | SimpleSessionDescription.java | 67 public SimpleSessionDescription(long sessionId, String address) { in SimpleSessionDescription() argument 68 address = (address.indexOf(':') < 0 ? "IN IP4 " : "IN IP6 ") + address; in SimpleSessionDescription() 71 System.currentTimeMillis(), address)); in SimpleSessionDescription() 74 mFields.parse("c=" + address); in SimpleSessionDescription() 157 public void setAddress(String address) { in setAddress() argument 158 mFields.setAddress(address); in setAddress() 402 String address = get("c", '='); in getAddress() local 403 if (address == null) { in getAddress() 406 String[] parts = address.split(" "); in getAddress() 418 public void setAddress(String address) { in setAddress() argument [all …]
|
/frameworks/base/libs/hwui/hwui/ |
D | Bitmap.cpp | 190 Bitmap::Bitmap(void* address, size_t size, const SkImageInfo& info, size_t rowBytes) in Bitmap() argument 191 : SkPixelRef(info.width(), info.height(), address, rowBytes) in Bitmap() 194 mPixelStorage.heap.address = address; in Bitmap() 198 Bitmap::Bitmap(void* address, void* context, FreeFunc freeFunc, const SkImageInfo& info, in Bitmap() argument 200 : SkPixelRef(info.width(), info.height(), address, rowBytes) in Bitmap() 203 mPixelStorage.external.address = address; in Bitmap() 208 Bitmap::Bitmap(void* address, int fd, size_t mappedSize, const SkImageInfo& info, size_t rowBytes) in Bitmap() argument 209 : SkPixelRef(info.width(), info.height(), address, rowBytes) in Bitmap() 212 mPixelStorage.ashmem.address = address; in Bitmap() 234 mPixelStorage.external.freeFunc(mPixelStorage.external.address, in ~Bitmap() [all …]
|
/frameworks/base/services/core/java/com/android/server/display/ |
D | WifiDisplayAdapter.java | 178 public void requestConnectLocked(final String address) { in requestConnectLocked() argument 180 Slog.d(TAG, "requestConnectLocked: address=" + address); in requestConnectLocked() 187 mDisplayController.requestConnect(address); in requestConnectLocked() 238 public void requestRenameLocked(String address, String alias) { in requestRenameLocked() argument 240 Slog.d(TAG, "requestRenameLocked: address=" + address + ", alias=" + alias); in requestRenameLocked() 245 if (alias.isEmpty() || alias.equals(address)) { in requestRenameLocked() 250 WifiDisplay display = mPersistentDataStore.getRememberedWifiDisplay(address); in requestRenameLocked() 252 display = new WifiDisplay(address, display.getDeviceName(), alias, in requestRenameLocked() 261 if (mActiveDisplay != null && mActiveDisplay.getDeviceAddress().equals(address)) { in requestRenameLocked() 266 public void requestForgetLocked(String address) { in requestForgetLocked() argument [all …]
|