/frameworks/base/core/java/android/net/ |
D | IpPrefix.java | 47 private final byte[] address; // network byte order field in IpPrefix 51 if (address.length != 4 && address.length != 16) { in checkAndMaskAddressAndPrefixLength() 53 "IpPrefix has " + address.length + " bytes which is neither 4 nor 16"); in checkAndMaskAddressAndPrefixLength() 55 NetworkUtils.maskRawAddress(address, prefixLength); in checkAndMaskAddressAndPrefixLength() 68 public IpPrefix(byte[] address, int prefixLength) { in IpPrefix() argument 69 this.address = address.clone(); in IpPrefix() 83 public IpPrefix(InetAddress address, int prefixLength) { in IpPrefix() argument 86 this.address = address.getAddress(); in IpPrefix() 106 this.address = ipAndMask.first.getAddress(); in IpPrefix() 124 return Arrays.equals(this.address, that.address) && this.prefixLength == that.prefixLength; in equals() [all …]
|
D | LinkAddress.java | 57 private InetAddress address; field in LinkAddress 104 if (address != null && address instanceof Inet6Address) { in isIPv6ULA() 105 byte[] bytes = address.getAddress(); in isIPv6ULA() 114 private void init(InetAddress address, int prefixLength, int flags, int scope) { in init() argument 115 if (address == null || in init() 116 address.isMulticastAddress() || in init() 118 ((address instanceof Inet4Address) && prefixLength > 32) || in init() 120 throw new IllegalArgumentException("Bad LinkAddress params " + address + in init() 123 this.address = address; in init() 139 public LinkAddress(InetAddress address, int prefixLength, int flags, int scope) { in LinkAddress() argument [all …]
|
D | VpnService.java | 253 public boolean addAddress(InetAddress address, int prefixLength) { in addAddress() argument 254 check(address, prefixLength); in addAddress() 256 return getService().addVpnAddress(address.getHostAddress(), prefixLength); in addAddress() 283 public boolean removeAddress(InetAddress address, int prefixLength) { in removeAddress() argument 284 check(address, prefixLength); in removeAddress() 286 return getService().removeVpnAddress(address.getHostAddress(), prefixLength); in removeAddress() 380 private static void check(InetAddress address, int prefixLength) { in check() argument 381 if (address.isLoopbackAddress()) { in check() 384 if (address instanceof Inet4Address) { in check() 388 } else if (address instanceof Inet6Address) { in check() [all …]
|
D | NetworkUtils.java | 290 protected static void parcelInetAddress(Parcel parcel, InetAddress address, int flags) { in parcelInetAddress() argument 291 byte[] addressArray = (address != null) ? address.getAddress() : null; in parcelInetAddress() 339 public static InetAddress getNetworkPart(InetAddress address, int prefixLength) { in getNetworkPart() argument 340 byte[] array = address.getAddress(); in getNetworkPart() 355 public static int getImplicitNetmask(Inet4Address address) { in getImplicitNetmask() argument 356 int firstByte = address.getAddress()[0] & 0xff; // Convert to an unsigned value. in getImplicitNetmask() 373 InetAddress address = null; in parseIpAndMask() local 378 address = InetAddress.parseNumericAddress(pieces[0]); in parseIpAndMask() 385 if (address == null || prefixLength == -1) { in parseIpAndMask() 389 return new Pair<InetAddress, Integer>(address, prefixLength); in parseIpAndMask()
|
/frameworks/base/core/java/com/android/server/net/ |
D | NetlinkTracker.java | 91 private void maybeLog(String operation, String iface, LinkAddress address) { in maybeLog() argument 93 Log.d(TAG, operation + ": " + address + " on " + iface + in maybeLog() 94 " flags " + address.getFlags() + " scope " + address.getScope()); in maybeLog() 105 public void addressUpdated(String iface, LinkAddress address) { in addressUpdated() argument 107 maybeLog("addressUpdated", iface, address); in addressUpdated() 110 changed = mLinkProperties.addLinkAddress(address); in addressUpdated() 119 public void addressRemoved(String iface, LinkAddress address) { in addressRemoved() argument 121 maybeLog("addressRemoved", iface, address); in addressRemoved() 124 changed = mLinkProperties.removeLinkAddress(address); in addressRemoved() 203 public final InetAddress address; field in DnsServerEntry [all …]
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/cdma/sms/ |
D | CdmaSmsAddress.java | 105 builder.append(", address=\"" + address + "\""); in toString() 117 private static byte[] parseToDtmf(String address) { in parseToDtmf() argument 118 int digits = address.length(); in parseToDtmf() 121 char c = address.charAt(i); in parseToDtmf() 158 private static String filterNumericSugar(String address) { in filterNumericSugar() argument 160 int len = address.length(); in filterNumericSugar() 162 char c = address.charAt(i); in filterNumericSugar() 175 private static String filterWhitespace(String address) { in filterWhitespace() argument 177 int len = address.length(); in filterWhitespace() 179 char c = address.charAt(i); in filterWhitespace() [all …]
|
/frameworks/base/core/java/android/bluetooth/ |
D | BluetoothGattCallbackWrapper.java | 38 public void onClientConnectionState(int status, int clientIf, boolean connected, String address) in onClientConnectionState() argument 51 public void onGetService(String address, int srvcType, int srvcInstId, ParcelUuid srvcUuid) in onGetService() argument 56 public void onGetIncludedService(String address, int srvcType, int srvcInstId, in onGetIncludedService() argument 62 public void onGetCharacteristic(String address, int srvcType, int srvcInstId, in onGetCharacteristic() argument 68 public void onGetDescriptor(String address, int srvcType, int srvcInstId, ParcelUuid srvcUuid, in onGetDescriptor() argument 74 public void onSearchComplete(String address, int status) throws RemoteException { in onSearchComplete() argument 78 public void onCharacteristicRead(String address, int status, int srvcType, int srvcInstId, in onCharacteristicRead() argument 84 public void onCharacteristicWrite(String address, int status, int srvcType, int srvcInstId, in onCharacteristicWrite() argument 89 public void onExecuteWrite(String address, int status) throws RemoteException { in onExecuteWrite() argument 93 public void onDescriptorRead(String address, int status, int srvcType, int srvcInstId, in onDescriptorRead() argument [all …]
|
D | IBluetoothGattCallback.aidl | 29 in boolean connected, in String address); in onClientConnectionState() argument 32 void onGetService(in String address, in int srvcType, in int srvcInstId, in onGetService() argument 34 void onGetIncludedService(in String address, in int srvcType, in int srvcInstId, in onGetIncludedService() argument 37 void onGetCharacteristic(in String address, in int srvcType, in onGetCharacteristic() argument 41 void onGetDescriptor(in String address, in int srvcType, in onGetDescriptor() argument 45 void onSearchComplete(in String address, in int status); in onSearchComplete() argument 46 void onCharacteristicRead(in String address, in int status, in int srvcType, in onCharacteristicRead() argument 50 void onCharacteristicWrite(in String address, in int status, in int srvcType, in onCharacteristicWrite() argument 53 void onExecuteWrite(in String address, in int status); in onExecuteWrite() argument 54 void onDescriptorRead(in String address, in int status, in int srvcType, in onDescriptorRead() argument [all …]
|
D | IBluetoothGatt.aidl | 49 void clientConnect(in int clientIf, in String address, in boolean isDirect, in int transport); in clientConnect() argument 50 void clientDisconnect(in int clientIf, in String address); in clientDisconnect() argument 51 void refreshDevice(in int clientIf, in String address); in refreshDevice() argument 52 void discoverServices(in int clientIf, in String address); in discoverServices() argument 53 void readCharacteristic(in int clientIf, in String address, in int srvcType, in readCharacteristic() argument 57 void writeCharacteristic(in int clientIf, in String address, in int srvcType, in writeCharacteristic() argument 61 void readDescriptor(in int clientIf, in String address, in int srvcType, in readDescriptor() argument 66 void writeDescriptor(in int clientIf, in String address, in int srvcType, in writeDescriptor() argument 71 void registerForNotification(in int clientIf, in String address, in int srvcType, in registerForNotification() argument 75 void beginReliableWrite(in int clientIf, in String address); in beginReliableWrite() argument [all …]
|
D | BluetoothGatt.java | 172 boolean connected, String address) { 174 + " clientIf=" + clientIf + " device=" + address); 175 if (!address.equals(mDevice.getAddress())) { 205 public void onGetService(String address, int srvcType, 207 if (VDBG) Log.d(TAG, "onGetService() - Device=" + address + " UUID=" + srvcUuid); 208 if (!address.equals(mDevice.getAddress())) { 220 public void onGetIncludedService(String address, int srvcType, 224 if (VDBG) Log.d(TAG, "onGetIncludedService() - Device=" + address 227 if (!address.equals(mDevice.getAddress())) { 246 public void onGetCharacteristic(String address, int srvcType, [all …]
|
D | IBluetoothGattServerCallback.aidl | 27 void onScanResult(in String address, in int rssi, in byte[] advData); in onScanResult() argument 29 in boolean connected, in String address); in onServerConnectionState() argument 32 void onCharacteristicReadRequest(in String address, in int transId, in onCharacteristicReadRequest() argument 37 void onDescriptorReadRequest(in String address, in int transId, in onDescriptorReadRequest() argument 43 void onCharacteristicWriteRequest(in String address, in int transId, in onCharacteristicWriteRequest() argument 51 void onDescriptorWriteRequest(in String address, in int transId, in onDescriptorWriteRequest() argument 60 void onExecuteWrite(in String address, in int transId, in boolean execWrite); in onExecuteWrite() argument 61 void onNotificationSent(in String address, in int status); in onNotificationSent() argument 62 void onMtuChanged(in String address, in int mtu); in onMtuChanged() argument
|
D | BluetoothGattServer.java | 86 public void onScanResult(String address, int rssi, byte[] advData) { 87 if (VDBG) Log.d(TAG, "onScanResult() - Device=" + address + " RSSI=" +rssi); 96 boolean connected, String address) { 98 + " serverIf=" + serverIf + " device=" + address); 100 mCallback.onConnectionStateChange(mAdapter.getRemoteDevice(address), status, 132 public void onCharacteristicReadRequest(String address, int transId, 140 BluetoothDevice device = mAdapter.getRemoteDevice(address); 158 public void onDescriptorReadRequest(String address, int transId, 169 BluetoothDevice device = mAdapter.getRemoteDevice(address); 190 public void onCharacteristicWriteRequest(String address, int transId, [all …]
|
/frameworks/base/core/tests/coretests/src/android/net/ |
D | LinkAddressTest.java | 69 LinkAddress address; in testConstructors() local 72 address = new LinkAddress(V4_ADDRESS, 25); in testConstructors() 73 assertEquals(V4_ADDRESS, address.getAddress()); in testConstructors() 74 assertEquals(25, address.getPrefixLength()); in testConstructors() 75 assertEquals(0, address.getFlags()); in testConstructors() 76 assertEquals(RT_SCOPE_UNIVERSE, address.getScope()); in testConstructors() 78 address = new LinkAddress(V6_ADDRESS, 127); in testConstructors() 79 assertEquals(V6_ADDRESS, address.getAddress()); in testConstructors() 80 assertEquals(127, address.getPrefixLength()); in testConstructors() 81 assertEquals(0, address.getFlags()); in testConstructors() [all …]
|
/frameworks/base/services/core/java/com/android/server/hdmi/ |
D | DeviceDiscoveryAction.java | 141 private boolean verifyValidLogicalAddress(int address) { in verifyValidLogicalAddress() argument 142 return address >= Constants.ADDR_TV && address < Constants.ADDR_UNREGISTERED; in verifyValidLogicalAddress() 145 private void queryPhysicalAddress(int address) { in queryPhysicalAddress() argument 146 if (!verifyValidLogicalAddress(address)) { in queryPhysicalAddress() 154 if (mayProcessMessageIfCached(address, Constants.MESSAGE_REPORT_PHYSICAL_ADDRESS)) { in queryPhysicalAddress() 157 sendCommand(HdmiCecMessageBuilder.buildGivePhysicalAddress(getSourceAddress(), address)); in queryPhysicalAddress() local 169 private void queryOsdName(int address) { in queryOsdName() argument 170 if (!verifyValidLogicalAddress(address)) { in queryOsdName() 177 if (mayProcessMessageIfCached(address, Constants.MESSAGE_SET_OSD_NAME)) { in queryOsdName() 180 sendCommand(HdmiCecMessageBuilder.buildGiveOsdNameCommand(getSourceAddress(), address)); in queryOsdName() local [all …]
|
D | HdmiUtils.java | 78 static boolean isValidAddress(int address) { in isValidAddress() argument 79 return (Constants.ADDR_TV <= address && address <= Constants.ADDR_SPECIFIC_USE); in isValidAddress() 89 static int getTypeFromAddress(int address) { in getTypeFromAddress() argument 90 if (isValidAddress(address)) { in getTypeFromAddress() 91 return ADDRESS_TO_TYPE[address]; in getTypeFromAddress() 104 static String getDefaultDeviceName(int address) { in getDefaultDeviceName() argument 105 if (isValidAddress(address)) { in getDefaultDeviceName() 106 return DEFAULT_NAMES[address]; in getDefaultDeviceName()
|
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() 269 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/av/services/audiopolicy/common/managerdefinitions/src/ |
D | AudioPolicyMix.cpp | 54 status_t AudioPolicyMixCollection::registerMix(String8 address, AudioMix mix) in registerMix() argument 56 ssize_t index = indexOfKey(address); in registerMix() 58 ALOGE("registerPolicyMixes(): mix for address %s already registered", address.string()); in registerMix() 63 add(address, policyMix); in registerMix() 67 status_t AudioPolicyMixCollection::unregisterMix(String8 address) in unregisterMix() argument 69 ssize_t index = indexOfKey(address); in unregisterMix() 71 ALOGE("unregisterPolicyMixes(): mix for address %s not registered", address.string()); in unregisterMix() 79 status_t AudioPolicyMixCollection::getAudioPolicyMix(String8 address, in getAudioPolicyMix() argument 82 ssize_t index = indexOfKey(address); in getAudioPolicyMix() 84 ALOGE("unregisterPolicyMixes(): mix for address %s not registered", address.string()); in getAudioPolicyMix() [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/services/core/jni/ |
D | com_android_server_connectivity_Vpn.cpp | 131 char address[65]; in set_addresses() local 136 while (sscanf(addresses, " %64[^/]/%d %n", address, &prefix, &chars) == 2) { in set_addresses() 139 if (strchr(address, ':')) { in set_addresses() 141 if (inet_pton(AF_INET6, address, &ifr6.ifr6_addr) != 1 || in set_addresses() 154 if (inet_pton(AF_INET, address, as_in_addr(&ifr4.ifr_addr)) != 1 || in set_addresses() 175 ALOGD("Address added on %s: %s/%d", name, address, prefix); in set_addresses() 180 ALOGE("Invalid address: %s/%d", address, prefix); in set_addresses() 182 ALOGE("Cannot add address: %s/%d: %s", address, prefix, strerror(errno)); in set_addresses() 221 const char *address = jAddress ? env->GetStringUTFChars(jAddress, NULL) : NULL; in modifyAddress() local 225 } else if (!address) { in modifyAddress() [all …]
|
/frameworks/base/docs/html/training/location/ |
D | display-address.jd | 11 <li><a href="#fetch-address">Define an Intent Service to Fetch the 45 distance or displaying a map position, in many cases the address of the 47 they are or what is close by, a street address is more meaningful than the 51 location APIs, you can convert an address to the corresponding geographic 53 convert a geographic location to an address. The address lookup feature is 58 convert a geographic location to an address. The method returns an estimated 59 street address corresponding to a given latitude and longitude.</p> 64 address lookup feature. The lesson on 78 address, set the location permission in your app manifest to 89 <h2 id="fetch-address">Define an Intent Service to Fetch the Address</h2> [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/opt/telephony/src/java/android/provider/ |
D | Telephony.java | 339 Uri uri, String address, String body, String subject, in addMessageToUri() argument 342 resolver, uri, address, body, subject, date, read, deliveryReport, -1L); in addMessageToUri() 361 Uri uri, String address, String body, String subject, in addMessageToUri() argument 363 return addMessageToUri(subId, resolver, uri, address, body, subject, in addMessageToUri() 383 Uri uri, String address, String body, String subject, in addMessageToUri() argument 386 resolver, uri, address, body, subject, in addMessageToUri() 407 Uri uri, String address, String body, String subject, in addMessageToUri() argument 413 values.put(ADDRESS, address); in addMessageToUri() 523 String address, String body, String subject, Long date, in addMessage() argument 526 resolver, CONTENT_URI, address, body, subject, date, read, false); in addMessage() [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 …]
|