Searched refs:address (Results 1 - 25 of 232) sorted by relevance

12345678910

/frameworks/base/core/java/android/net/
H A DIpPrefix.java33 * <li>A starting IP address (IPv4 or IPv6). This is the first IP address of the prefix.
35 * in the IP address, starting from the most significant bit in network byte order, that
47 private final byte[] address; // network byte order field in class:IpPrefix
51 if (address.length != 4 && address.length != 16) {
53 "IpPrefix has " + address.length + " bytes which is neither 4 nor 16");
55 NetworkUtils.maskRawAddress(address, prefixLength);
59 * Constructs a new {@code IpPrefix} from a byte array containing an IPv4 or IPv6 address in
60 * network byte order and a prefix length. Silently truncates the address t
68 IpPrefix(byte[] address, int prefixLength) argument
83 IpPrefix(InetAddress address, int prefixLength) argument
178 contains(InetAddress address) argument
[all...]
H A DLinkAddress.java39 * Identifies an IP address on a network link.
43 * <li>An IP address and prefix length (e.g., {@code 2001:db8::1/64} or {@code 192.0.2.1/24}).
44 * The address must be unicast, as multicast addresses cannot be assigned to interfaces.
46 * of the address (e.g., {@code android.system.OsConstants.IFA_F_OPTIMISTIC}).
48 * the address is unique (e.g.,
55 * IPv4 or IPv6 address.
57 private InetAddress address; field in class:LinkAddress
75 * Utility function to determines the scope of a unicast address. Per RFC 4291 section 2.5 and
98 * Utility function to check if |address| is a Unique Local IPv6 Unicast Address
104 if (address !
114 init(InetAddress address, int prefixLength, int flags, int scope) argument
139 LinkAddress(InetAddress address, int prefixLength, int flags, int scope) argument
150 LinkAddress(InetAddress address, int prefixLength) argument
172 LinkAddress(String address) argument
185 LinkAddress(String address, int flags, int scope) argument
[all...]
H A DVpnService.java64 * conflict with each other. The system takes several actions to address
235 * Adds a network address to the VPN interface.
238 * address is already in use or cannot be assigned to the interface for any other reason.
240 * Adding an address implicitly allows traffic from that address family (i.e., IPv4 or IPv6) to
243 * @throws IllegalArgumentException if the address is invalid.
245 * @param address The IP address (IPv4 or IPv6) to assign to the VPN interface.
246 * @param prefixLength The prefix length of the address.
253 public boolean addAddress(InetAddress address, in argument
283 removeAddress(InetAddress address, int prefixLength) argument
380 check(InetAddress address, int prefixLength) argument
458 addAddress(InetAddress address, int prefixLength) argument
480 addAddress(String address, int prefixLength) argument
493 addRoute(InetAddress address, int prefixLength) argument
521 addRoute(String address, int prefixLength) argument
535 addDnsServer(InetAddress address) argument
557 addDnsServer(String address) argument
[all...]
H A DINetworkManagementEventObserver.aidl61 * An interface address has been added or updated.
64 * @param address The address.
66 void addressUpdated(String iface, in LinkAddress address);
69 * An interface address has been removed.
72 * @param address The address.
74 void addressRemoved(String iface, in LinkAddress address);
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
H A DSmsAddress.java31 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/opt/net/voip/src/jni/rtp/
H A Dutil.cpp28 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/net/voip/src/java/android/net/rtp/
H A DRtpStream.java63 * 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/base/core/java/android/bluetooth/
H A DIBluetoothGattCallback.aidl30 in boolean connected, in String address);
33 void onSearchComplete(in String address, in List<BluetoothGattService> services, in int status);
34 void onCharacteristicRead(in String address, in int status, in int handle, in byte[] value);
35 void onCharacteristicWrite(in String address, in int status, in int handle);
36 void onExecuteWrite(in String address, in int status);
37 void onDescriptorRead(in String address, in int status, in int handle, in byte[] value);
38 void onDescriptorWrite(in String address, in int status, in int handle);
39 void onNotify(in String address, in int handle, in byte[] value);
40 void onReadRemoteRssi(in String address, in int rssi, in int status);
44 void onConfigureMTU(in String address, i
[all...]
H A DBluetoothGattCallbackWrapper.java39 public void onClientConnectionState(int status, int clientIf, boolean connected, String address) argument
52 public void onSearchComplete(String address, List<BluetoothGattService> services, argument
57 public void onCharacteristicRead(String address, int status, int handle, byte[] value) argument
62 public void onCharacteristicWrite(String address, int status, int handle) throws RemoteException { argument
66 public void onExecuteWrite(String address, int status) throws RemoteException { argument
70 public void onDescriptorRead(String address, int status, int handle, byte[] value) throws RemoteException { argument
74 public void onDescriptorWrite(String address, int status, int handle) throws RemoteException { argument
78 public void onNotify(String address, int handle, byte[] value) throws RemoteException { argument
82 public void onReadRemoteRssi(String address, int rssi, int status) throws RemoteException { argument
91 public void onConfigureMTU(String address, in argument
[all...]
H A DIBluetoothGatt.aidl50 void clientConnect(in int clientIf, in String address, in boolean isDirect, in int transport);
51 void clientDisconnect(in int clientIf, in String address);
52 void refreshDevice(in int clientIf, in String address);
53 void discoverServices(in int clientIf, in String address);
54 void readCharacteristic(in int clientIf, in String address, in int handle, in int authReq);
55 void writeCharacteristic(in int clientIf, in String address, in int handle,
57 void readDescriptor(in int clientIf, in String address, in int handle, in int authReq);
58 void writeDescriptor(in int clientIf, in String address, in int handle,
60 void registerForNotification(in int clientIf, in String address, in int handle, in boolean enable);
61 void beginReliableWrite(in int clientIf, in String address);
[all...]
H A DIBluetoothGattServerCallback.aidl27 void onScanResult(in String address, in int rssi, in byte[] advData);
29 in boolean connected, in String address);
32 void onCharacteristicReadRequest(in String address, in int transId,
37 void onDescriptorReadRequest(in String address, in int transId,
43 void onCharacteristicWriteRequest(in String address, in int transId,
51 void onDescriptorWriteRequest(in String address, in int transId,
60 void onExecuteWrite(in String address, in int transId, in boolean execWrite);
61 void onNotificationSent(in String address, in int status);
62 void onMtuChanged(in String address, in int mtu);
H A 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
[all...]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/cdma/sms/
H A DCdmaSmsAddress.java29 * 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/base/core/java/com/android/server/net/
H A DNetlinkTracker.java91 private void maybeLog(String operation, String iface, LinkAddress address) { argument
93 Log.d(TAG, operation + ": " + address + " on " + iface +
94 " flags " + address.getFlags() + " scope " + address.getScope());
118 public void addressUpdated(String iface, LinkAddress address) { argument
120 maybeLog("addressUpdated", iface, address);
123 changed = mLinkProperties.addLinkAddress(address);
132 public void addressRemoved(String iface, LinkAddress address) { argument
134 maybeLog("addressRemoved", iface, address);
137 changed = mLinkProperties.removeLinkAddress(address);
216 public final InetAddress address; field in class:DnsServerEntry
221 DnsServerEntry(InetAddress address, long expiry) argument
340 updateExistingEntry(InetAddress address, long expiry) argument
[all...]
/frameworks/base/services/core/java/com/android/server/hdmi/
H A DDeviceDiscoveryAction.java37 * <li>Gather "Physical address" and "device type" of all acknowledged devices
48 // State in which the action is waiting for gathering physical address of non-local devices.
141 private boolean verifyValidLogicalAddress(int address) { argument
142 return address >= Constants.ADDR_TV && address < Constants.ADDR_UNREGISTERED;
145 private void queryPhysicalAddress(int address) { argument
146 if (!verifyValidLogicalAddress(address)) {
154 if (mayProcessMessageIfCached(address, Constants.MESSAGE_REPORT_PHYSICAL_ADDRESS)) {
157 sendCommand(HdmiCecMessageBuilder.buildGivePhysicalAddress(getSourceAddress(), address));
169 private void queryOsdName(int address) { argument
193 queryVendorId(int address) argument
209 mayProcessMessageIfCached(int address, int opcode) argument
[all...]
H A DDelayedMessageBuffer.java103 * @param address logical address of CEC device which the messages to process
106 void processMessagesForDevice(int address) { argument
109 HdmiLogger.debug("Checking message for address:" + address);
111 if (message.getSource() != address) {
116 && !mDevice.isInputReady(HdmiDeviceInfo.idForCecDevice(address))) {
134 * @param address logical address of the device to be the active source
136 void processActiveSource(int address) { argument
[all...]
H A DHdmiCecMessageCache.java23 * Cache for incoming message. It caches {@link HdmiCecMessage} with source address and opcode
45 * Return a {@link HdmiCecMessage} corresponding to the given {@code address} and
48 * @param address a logical address of source device
50 * @return null if has no {@link HdmiCecMessage} matched to the given {@code address} and {code
53 public HdmiCecMessage getMessage(int address, int opcode) { argument
54 SparseArray<HdmiCecMessage> messages = mCache.get(address);
63 * Flush all {@link HdmiCecMessage}s sent from the given {@code address}.
65 * @param address a logical address o
67 flushMessagesFrom(int address) argument
[all...]
H A DHdmiUtils.java71 * Check if the given logical address is valid. A logical address is valid
75 * @param address logical address
76 * @return true if the given address is valid
78 static boolean isValidAddress(int address) { argument
79 return (Constants.ADDR_TV <= address && address <= Constants.ADDR_SPECIFIC_USE);
83 * Return the device type for the given logical address.
85 * @param address logica
89 getTypeFromAddress(int address) argument
104 getDefaultDeviceName(int address) argument
[all...]
/frameworks/base/media/java/android/media/
H A DAudioDevicePort.java29 * - the device address (e.g MAC adddress for AD2P sink).
41 int[] formats, AudioGain[] gains, int type, String address) {
47 mAddress = address;
58 * Get the device address. Address format varies with the device type.
60 * {@link AudioManager#DEVICE_IN_USB_DEVICE}) use an address composed of the ALSA card number
64 * use the MAC address of the bluetooth device in the form "00:11:22:AA:BB:CC" as reported by
66 * - Deivces that do not have an address will indicate an empty string "".
68 public String address() { method in class:AudioDevicePort
90 if (mAddress == null && other.address() != null) {
93 if (!mAddress.equals(other.address())) {
39 AudioDevicePort(AudioHandle handle, String deviceName, int[] samplingRates, int[] channelMasks, int[] channelIndexMasks, int[] formats, AudioGain[] gains, int type, String address) argument
[all...]
/frameworks/base/core/tests/coretests/src/android/net/
H A DLinkAddressTest.java69 LinkAddress address;
72 address = new LinkAddress(V4_ADDRESS, 25);
73 assertEquals(V4_ADDRESS, address.getAddress());
74 assertEquals(25, address.getPrefixLength());
75 assertEquals(0, address.getFlags());
76 assertEquals(RT_SCOPE_UNIVERSE, address.getScope());
78 address = new LinkAddress(V6_ADDRESS, 127);
79 assertEquals(V6_ADDRESS, address.getAddress());
80 assertEquals(127, address.getPrefixLength());
81 assertEquals(0, address
[all...]
/frameworks/av/media/libstagefright/codecs/amrwbenc/src/asm/ARMV7/
H A 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/base/core/java/android/hardware/usb/
H A DUsbEndpoint.java43 public UsbEndpoint(int address, int attributes, int maxPacketSize, int interval) { argument
44 mAddress = address;
51 * Returns the endpoint's address field.
52 * The address is a bitfield containing both the endpoint number
57 * @return the endpoint's address
64 * Extracts the endpoint's endpoint number from its address
139 int address = in.readInt();
143 return new UsbEndpoint(address, attributes, maxPacketSize, interval);
/frameworks/av/services/audiopolicy/common/managerdefinitions/include/
H A DIOProfile.h47 String8 address,
69 bool supportDeviceAddress(const String8 &address) const
71 return mSupportedDevices[0]->mAddress == address;
99 sp<DeviceDescriptor> getSupportedDeviceByAddress(audio_devices_t type, String8 address) const
101 return mSupportedDevices.getDevice(type, address);
/frameworks/base/core/jni/android/graphics/
H A DBitmap.h50 Bitmap(JNIEnv* env, jbyteArray storageObj, void* address,
52 Bitmap(void* address, void* context, FreeFunc freeFunc,
54 Bitmap(void* address, int fd, const SkImageInfo& info, size_t rowBytes,
107 void* address; member in struct:android::Bitmap::__anon841::__anon842
112 void* address; member in struct:android::Bitmap::__anon841::__anon843
/frameworks/av/services/audiopolicy/common/managerdefinitions/src/
H A DAudioPolicyMix.cpp54 status_t AudioPolicyMixCollection::registerMix(String8 address, AudioMix mix, argument
57 ssize_t index = indexOfKey(address);
59 ALOGE("registerPolicyMixes(): mix for address %s already registered", address.string());
64 add(address, policyMix);
73 status_t AudioPolicyMixCollection::unregisterMix(String8 address) argument
75 ssize_t index = indexOfKey(address);
77 ALOGE("unregisterPolicyMixes(): mix for address %s not registered", address.string());
85 status_t AudioPolicyMixCollection::getAudioPolicyMix(String8 address, argument
[all...]

Completed in 472 milliseconds

12345678910