Home
last modified time | relevance | path

Searched refs:address (Results 1 – 25 of 347) sorted by relevance

12345678910>>...14

/frameworks/base/core/java/android/net/
DIpPrefix.java47 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 …]
DLinkAddress.java57 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 …]
DVpnService.java253 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 …]
DNetworkUtils.java196 protected static void parcelInetAddress(Parcel parcel, InetAddress address, int flags) { in parcelInetAddress() argument
197 byte[] addressArray = (address != null) ? address.getAddress() : null; in parcelInetAddress()
245 public static InetAddress getNetworkPart(InetAddress address, int prefixLength) { in getNetworkPart() argument
246 byte[] array = address.getAddress(); in getNetworkPart()
261 public static int getImplicitNetmask(Inet4Address address) { in getImplicitNetmask() argument
262 int firstByte = address.getAddress()[0] & 0xff; // Convert to an unsigned value. in getImplicitNetmask()
279 InetAddress address = null; in parseIpAndMask() local
284 address = InetAddress.parseNumericAddress(pieces[0]); in parseIpAndMask()
291 if (address == null || prefixLength == -1) { in parseIpAndMask()
295 return new Pair<InetAddress, Integer>(address, prefixLength); in parseIpAndMask()
/frameworks/base/core/java/com/android/server/net/
DNetlinkTracker.java91 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()
118 public void addressUpdated(String iface, LinkAddress address) { in addressUpdated() argument
120 maybeLog("addressUpdated", iface, address); in addressUpdated()
123 changed = mLinkProperties.addLinkAddress(address); in addressUpdated()
132 public void addressRemoved(String iface, LinkAddress address) { in addressRemoved() argument
134 maybeLog("addressRemoved", iface, address); in addressRemoved()
137 changed = mLinkProperties.removeLinkAddress(address); in addressRemoved()
216 public final InetAddress address; field in DnsServerEntry
[all …]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/cdma/sms/
DCdmaSmsAddress.java105 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/
DIBluetoothGatt.aidl50 void clientConnect(in int clientIf, in String address, in boolean isDirect, in int transport); in clientConnect() argument
51 void clientDisconnect(in int clientIf, in String address); in clientDisconnect() argument
52 void refreshDevice(in int clientIf, in String address); in refreshDevice() argument
53 void discoverServices(in int clientIf, in String address); in discoverServices() argument
54 void readCharacteristic(in int clientIf, in String address, in int handle, in int authReq); in readCharacteristic() argument
55 void writeCharacteristic(in int clientIf, in String address, in int handle, in writeCharacteristic() argument
57 void readDescriptor(in int clientIf, in String address, in int handle, in int authReq); in readDescriptor() argument
58 void writeDescriptor(in int clientIf, in String address, in int handle, in writeDescriptor() argument
60 …void registerForNotification(in int clientIf, in String address, in int handle, in boolean enable); in registerForNotification() argument
61 void beginReliableWrite(in int clientIf, in String address); in beginReliableWrite() argument
[all …]
DBluetoothGattCallbackWrapper.java39 public void onClientConnectionState(int status, int clientIf, boolean connected, String address) in onClientConnectionState() argument
52 public void onSearchComplete(String address, List<BluetoothGattService> services, in onSearchComplete() argument
57 public void onCharacteristicRead(String address, int status, int handle, byte[] value) in onCharacteristicRead() argument
62 … public void onCharacteristicWrite(String address, int status, int handle) throws RemoteException { in onCharacteristicWrite() argument
66 public void onExecuteWrite(String address, int status) throws RemoteException { in onExecuteWrite() argument
70 …public void onDescriptorRead(String address, int status, int handle, byte[] value) throws RemoteEx… in onDescriptorRead() argument
74 public void onDescriptorWrite(String address, int status, int handle) throws RemoteException { in onDescriptorWrite() argument
78 public void onNotify(String address, int handle, byte[] value) throws RemoteException { in onNotify() argument
82 public void onReadRemoteRssi(String address, int rssi, int status) throws RemoteException { in onReadRemoteRssi() argument
91 public void onConfigureMTU(String address, int mtu, int status) throws RemoteException { in onConfigureMTU() argument
DIBluetoothGattCallback.aidl30 in boolean connected, in String address); in onClientConnectionState() argument
33 void onSearchComplete(in String address, in List<BluetoothGattService> services, in int status); in onSearchComplete() argument
34 void onCharacteristicRead(in String address, in int status, in int handle, in byte[] value); in onCharacteristicRead() argument
35 void onCharacteristicWrite(in String address, in int status, in int handle); in onCharacteristicWrite() argument
36 void onExecuteWrite(in String address, in int status); in onExecuteWrite() argument
37 void onDescriptorRead(in String address, in int status, in int handle, in byte[] value); in onDescriptorRead() argument
38 void onDescriptorWrite(in String address, in int status, in int handle); in onDescriptorWrite() argument
39 void onNotify(in String address, in int handle, in byte[] value); in onNotify() argument
40 void onReadRemoteRssi(in String address, in int rssi, in int status); in onReadRemoteRssi() argument
44 void onConfigureMTU(in String address, in int mtu, in int status); in onConfigureMTU() argument
DBluetoothGatt.java172 boolean connected, String address) {
174 + " clientIf=" + clientIf + " device=" + address);
175 if (!address.equals(mDevice.getAddress())) {
206 public void onSearchComplete(String address, List<BluetoothGattService> services,
208 if (DBG) Log.d(TAG, "onSearchComplete() = Device=" + address + " Status=" + status);
209 if (!address.equals(mDevice.getAddress())) {
249 public void onCharacteristicRead(String address, int status, int handle, byte[] value) {
250 if (VDBG) Log.d(TAG, "onCharacteristicRead() - Device=" + address
253 Log.w(TAG, "onCharacteristicRead() - Device=" + address
256 if (!address.equals(mDevice.getAddress())) {
[all …]
DIBluetoothGattServerCallback.aidl27 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
DBluetoothGattServer.java86 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/
DLinkAddressTest.java69 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/
DDeviceDiscoveryAction.java141 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 …]
DHdmiUtils.java78 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()
DHotplugDetectionAction.java231 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/
Dresidu_asm_neon.s41 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/
DRtpStream.java70 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/
Dutil.cpp35 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/av/services/audiopolicy/common/managerdefinitions/src/
DAudioPolicyMix.cpp54 status_t AudioPolicyMixCollection::registerMix(String8 address, AudioMix mix, in registerMix() argument
57 ssize_t index = indexOfKey(address); in registerMix()
59 ALOGE("registerPolicyMixes(): mix for address %s already registered", address.string()); in registerMix()
64 add(address, policyMix); in registerMix()
73 status_t AudioPolicyMixCollection::unregisterMix(String8 address) in unregisterMix() argument
75 ssize_t index = indexOfKey(address); in unregisterMix()
77 ALOGE("unregisterPolicyMixes(): mix for address %s not registered", address.string()); in unregisterMix()
85 status_t AudioPolicyMixCollection::getAudioPolicyMix(String8 address, in getAudioPolicyMix() argument
88 ssize_t index = indexOfKey(address); in getAudioPolicyMix()
90 ALOGE("unregisterPolicyMixes(): mix for address %s not registered", address.string()); in getAudioPolicyMix()
[all …]
/frameworks/base/services/core/jni/
Dcom_android_server_connectivity_Vpn.cpp131 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/
Ddisplay-address.jd11 <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/
DSimpleSessionDescription.java67 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/
DTelephony.java340 Uri uri, String address, String body, String subject, in addMessageToUri() argument
343 resolver, uri, address, body, subject, date, read, deliveryReport, -1L); in addMessageToUri()
362 Uri uri, String address, String body, String subject, in addMessageToUri() argument
364 return addMessageToUri(subId, resolver, uri, address, body, subject, in addMessageToUri()
384 Uri uri, String address, String body, String subject, in addMessageToUri() argument
387 resolver, uri, address, body, subject, in addMessageToUri()
408 Uri uri, String address, String body, String subject, in addMessageToUri() argument
414 values.put(ADDRESS, address); in addMessageToUri()
524 String address, String body, String subject, Long date, in addMessage() argument
527 resolver, CONTENT_URI, address, body, subject, date, read, false); in addMessage()
[all …]
/frameworks/base/services/core/java/com/android/server/display/
DWifiDisplayAdapter.java178 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 …]

12345678910>>...14