/frameworks/base/voip/jni/rtp/ |
H A D | util.cpp | 28 jniThrowNullPointerException(env, "address"); 35 const char *address = env->GetStringUTFChars(jAddress, NULL); local 36 if (!address) { 43 if (inet_pton(AF_INET, address, &(sin->sin_addr)) > 0) { 46 env->ReleaseStringUTFChars(jAddress, address); 51 if (inet_pton(AF_INET6, address, &(sin6->sin6_addr)) > 0) { 54 env->ReleaseStringUTFChars(jAddress, address); 58 env->ReleaseStringUTFChars(jAddress, address); 59 jniThrowException(env, "java/lang/IllegalArgumentException", "address");
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/ |
H A D | SmsUsageMonitorShortCodeTest.java | 35 final String address; field in class:SmsUsageMonitorShortCodeTest.ShortCodeTest 40 this.address = destAddress; 462 assertEquals("country: " + test.countryIso + " number: " + test.address, 463 test.category, monitor.checkDestination(test.address, test.countryIso));
|
/frameworks/base/cmds/ip-up-vpn/ |
H A D | ip-up-vpn.c | 41 static int set_address(struct sockaddr *sa, const char *address) { argument 44 return inet_pton(AF_INET, address, &((struct sockaddr_in *)sa)->sin_addr); 61 * is to have an interface configured with the given address and netmask 84 const char *address = env("INTERNAL_ADDR4"); local 120 /* Set the address. */ 121 if (!set_address(&ifr.ifr_addr, address) || 123 ALOGE("Cannot set address: %s", strerror(errno)); 138 fprintf(state, "%s/%s\n", address, env("INTERNAL_CIDR4"));
|
/frameworks/base/core/java/android/net/ |
H A D | LinkAddress.java | 28 * Identifies an address of a network link 33 * IPv4 or IPv6 address. 35 private final InetAddress address; field in class:LinkAddress 42 public LinkAddress(InetAddress address, int prefixLength) { argument 43 if (address == null || prefixLength < 0 || 44 ((address instanceof Inet4Address) && prefixLength > 32) || 46 throw new IllegalArgumentException("Bad LinkAddress params " + address + 49 this.address = address; 54 this.address [all...] |
H A D | NetworkUtils.java | 66 * the IP address information. 76 * the IP address information. 106 * Convert a IPv4 address from an integer to an InetAddress. 107 * @param hostAddress an int corresponding to the IPv4 address in network byte order 123 * Convert a IPv4 address from an InetAddress to an integer 124 * @param inetAddr is an InetAddress corresponding to the IPv4 address 125 * @return the IP address as an integer in network byte order 131 throw new IllegalArgumentException("Not an IPv4 address"); 162 * representation of a V4 or V6 address. Avoids doing a DNS lookup on failure 175 * @param IP address whic 178 getNetworkPart(InetAddress address, int prefixLength) argument [all...] |
H A D | VpnService.java | 54 * conflict with each other. The system takes several actions to address 299 * Private method to validate address and prefixLength. 301 private void check(InetAddress address, int prefixLength) { argument 302 if (address.isLoopbackAddress()) { 303 throw new IllegalArgumentException("Bad address"); 305 if (address instanceof Inet4Address) { 309 } else if (address instanceof Inet6Address) { 319 * Add a network address to the VPN interface. Both IPv4 and IPv6 320 * addresses are supported. At least one address must be set before 323 * @throws IllegalArgumentException if the address i 325 addAddress(InetAddress address, int prefixLength) argument 344 addAddress(String address, int prefixLength) argument 354 addRoute(InetAddress address, int prefixLength) argument 379 addRoute(String address, int prefixLength) argument 390 addDnsServer(InetAddress address) argument 409 addDnsServer(String address) argument [all...] |
H A D | WebAddress.java | 31 * browser address widget. 63 public WebAddress(String address) throws ParseException { argument 64 if (address == null) { 68 // android.util.Log.d(LOGTAG, "WebAddress: " + address); 76 Matcher m = sAddressPattern.matcher(address); 107 throw new ParseException("Bad address");
|
H A D | LinkProperties.java | 43 * each address has it's own prefix length to describe 46 * address family of the server itself (rfc4213) and we 48 * selected based on the destination address and the 49 * source address has no relavence. 107 public void addLinkAddress(LinkAddress address) { argument 108 if (address != null) mLinkAddresses.add(address); 272 * address which are common between mLinkAddresses and target 273 * leaving the addresses that are different. And address which 302 * dns address whic [all...] |
/frameworks/base/voip/java/android/net/rtp/ |
H A D | AudioStream.java | 51 * Creates an AudioStream on the given local address. Note that the local 54 * @param address The network address of the local host to bind to. 55 * @throws SocketException if the address cannot be bound or a problem 58 public AudioStream(InetAddress address) throws SocketException { argument 59 super(address);
|
H A D | RtpStream.java | 63 * Creates a RtpStream on the given local address. Note that the local 66 * @param address The network address of the local host to bind to. 67 * @throws SocketException if the address cannot be bound or a problem 70 RtpStream(InetAddress address) throws SocketException { argument 71 mLocalPort = create(address.getHostAddress()); 72 mLocalAddress = address; 75 private native int create(String address) throws SocketException; argument 78 * Returns the network address of the local host. 92 * Returns the network address o 153 associate(InetAddress address, int port) argument [all...] |
/frameworks/compile/linkloader/include/ |
H A D | ELFTypes.h | 121 typedef detail::ELF32Address address; typedef in struct:ELFPrimitiveTypes 142 typedef detail::ELF64Address address; typedef in struct:ELFPrimitiveTypes 184 typedef typename ELFPrimitiveTypes<BITWIDTH>::address addr_t; \ 202 typedef ELFPrimitiveTypes<BITWIDTH>::address addr_t; \
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ |
H A D | SmsAddress.java | 31 public String address; field in class:SmsAddress 35 * Returns the address of the SMS message in String form or null if unavailable 38 return address; 42 * Returns true if this is an alphanumeric address 49 * Returns true if this is a network address 59 // So we just attempt to treat any message from an address length <= 4 62 return address.length() <= 4;
|
/frameworks/base/core/java/android/hardware/usb/ |
H A D | UsbEndpoint.java | 44 public UsbEndpoint(int address, int attributes, int maxPacketSize, int interval) { argument 45 mAddress = address; 52 * Returns the endpoint's address field. 53 * The address is a bitfield containing both the endpoint number 58 * @return the endpoint's address 65 * Extracts the endpoint's endpoint number from its address 140 int address = in.readInt(); 144 return new UsbEndpoint(address, attributes, maxPacketSize, interval);
|
/frameworks/base/core/java/android/text/util/ |
H A D | Rfc822Token.java | 20 * This class stores an RFC 822-like name, address, and comment, 27 * Creates a new Rfc822Token with the specified name, address, 30 public Rfc822Token(String name, String address, String comment) { argument 32 mAddress = address; 44 * Returns the address part. 65 * Changes the address to the specified address. 67 public void setAddress(String address) { argument 68 mAddress = address; 80 * the comment (in parentheses), and the address (i [all...] |
/frameworks/base/core/jni/ |
H A D | android_os_MemoryFile.cpp | 73 jobject fileDescriptor, jint address, jbyteArray buffer, jint srcOffset, jint destOffset, 83 env->SetByteArrayRegion(buffer, destOffset, count, (const jbyte *)address + srcOffset); 92 jobject fileDescriptor, jint address, jbyteArray buffer, jint srcOffset, jint destOffset, 102 env->GetByteArrayRegion(buffer, srcOffset, count, (jbyte *)address + destOffset); 72 android_os_MemoryFile_read(JNIEnv* env, jobject clazz, jobject fileDescriptor, jint address, jbyteArray buffer, jint srcOffset, jint destOffset, jint count, jboolean unpinned) argument 91 android_os_MemoryFile_write(JNIEnv* env, jobject clazz, jobject fileDescriptor, jint address, jbyteArray buffer, jint srcOffset, jint destOffset, jint count, jboolean unpinned) argument
|
/frameworks/base/services/java/com/android/server/display/ |
H A D | DisplayDeviceInfo.java | 148 * Display address, or null if none. 151 public String address; field in class:DisplayDeviceInfo 179 && Objects.equal(address, other.address); 199 address = other.address; 211 + ", address " + address
|
/frameworks/compile/mclinker/lib/Target/ |
H A D | ELFDynamic.cpp | 302 uint8_t* address = (uint8_t*)pRegion.start(); local 305 address += (*entry)->emit(address); 309 address += (*entry)->emit(address);
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/cdma/sms/ |
H A D | CdmaSmsAddress.java | 29 * the address digits are 4-bit DTMF codes or 8-bit codes. (See 39 * address type is a data network address or not. (See 3GPP2 69 * This field shall be set to the number of address digits 88 * NOTE: the parsed string address and the raw byte array values 89 * are stored in the parent class address and origBytes fields, 105 builder.append(", address=\"" + address + "\""); 117 private static byte[] parseToDtmf(String address) { argument 118 int digits = address 158 filterNumericSugar(String address) argument 175 filterWhitespace(String address) argument 196 parse(String address) argument [all...] |
/frameworks/opt/telephony/src/java/com/android/internal/telephony/gsm/ |
H A D | GsmDataConnection.java | 134 // if Proxy is an IP-address. 153 private boolean isIpAddress(String address) { argument 154 if (address == null) return false; 156 return Patterns.IP_ADDRESS.matcher(address).matches();
|
/frameworks/base/core/java/android/os/ |
H A D | MemoryFile.java | 45 // returns memory address for ashmem region 50 private static native int native_read(FileDescriptor fd, int address, byte[] buffer, argument 52 private static native void native_write(FileDescriptor fd, int address, byte[] buffer, argument 58 private int mAddress; // address of ashmem memory
|
/frameworks/base/core/java/android/view/ |
H A D | DisplayInfo.java | 47 * Display address, or null if none. 50 public String address; field in class:DisplayInfo 189 && Objects.equal(address, other.address) 215 address = other.address; 236 address = source.readString(); 258 dest.writeString(address); 331 + ", address " + address [all...] |
/frameworks/base/services/jni/ |
H A D | com_android_server_connectivity_Vpn.cpp | 130 char address[65]; local 135 while (sscanf(addresses, " %64[^/]/%d %n", address, &prefix, &chars) == 2) { 138 if (strchr(address, ':')) { 139 // Add an IPv6 address. 140 if (inet_pton(AF_INET6, address, &ifr6.ifr6_addr) != 1 || 152 // Add an IPv4 address. 153 if (inet_pton(AF_INET, address, as_in_addr(&ifr4.ifr_addr)) != 1 || 174 ALOGD("Address added on %s: %s/%d", name, address, prefix); 179 ALOGE("Invalid address: %s/%d", address, prefi 209 char address[65]; local [all...] |
/frameworks/base/wifi/java/android/net/wifi/ |
H A D | WifiInfo.java | 147 * @return the BSSID, in the form of a six-byte MAC address: {@code XX:XX:XX:XX:XX:XX} 181 * Record the MAC address of the WLAN interface 182 * @param macAddress the MAC address in {@code XX:XX:XX:XX:XX:XX} form 229 void setInetAddress(InetAddress address) { argument 230 mIpAddress = address;
|
/frameworks/base/wifi/java/android/net/wifi/p2p/ |
H A D | WifiP2pGroup.java | 134 // set source address into the client list. 191 public void addClient(String address) { argument 192 addClient(new WifiP2pDevice(address)); 204 public boolean removeClient(String address) { argument 205 return mClients.remove(new WifiP2pDevice(address));
|
/frameworks/compile/mclinker/include/mcld/Support/ |
H A D | Allocators.h | 108 pointer address(reference X) const function in class:mcld::LinearAllocatorBase 111 const_pointer address(const_reference X) const function in class:mcld::LinearAllocatorBase 117 // @param pPtr the address where the object to be constructed 126 // @param pPtr the address where the object to be constructed 130 /// standard destroy - destroy data on arbitrary address 131 // @para pPtr the address where the data to be destruected. 139 // @return the start address of the allocated memory 342 pointer address(reference X) const function in class:mcld::MallocAllocator 345 const_pointer address(const_reference X) const function in class:mcld::MallocAllocator 399 pointer address(referenc function in class:mcld::MallocAllocator 402 const_pointer address(const_reference X) const function in class:mcld::MallocAllocator [all...] |