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

1234567891011

/frameworks/base/core/java/android/net/
H A DIpPrefix.java35 * <li>A starting IP address (IPv4 or IPv6). This is the first IP address of the prefix.
37 * in the IP address, starting from the most significant bit in network byte order, that
49 private final byte[] address; // network byte order field in class:IpPrefix
53 if (address.length != 4 && address.length != 16) {
55 "IpPrefix has " + address.length + " bytes which is neither 4 nor 16");
57 NetworkUtils.maskRawAddress(address, prefixLength);
61 * Constructs a new {@code IpPrefix} from a byte array containing an IPv4 or IPv6 address in
62 * network byte order and a prefix length. Silently truncates the address t
70 IpPrefix(byte[] address, int prefixLength) argument
85 IpPrefix(InetAddress address, int prefixLength) argument
180 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
105 byte[] bytes = address
130 init(InetAddress address, int prefixLength, int flags, int scope) argument
155 LinkAddress(InetAddress address, int prefixLength, int flags, int scope) argument
166 LinkAddress(InetAddress address, int prefixLength) argument
188 LinkAddress(String address) argument
201 LinkAddress(String address, int flags, int scope) argument
[all...]
H A DVpnService.java63 * conflict with each other. The system takes several actions to address
272 * Adds a network address to the VPN interface.
275 * address is already in use or cannot be assigned to the interface for any other reason.
277 * Adding an address implicitly allows traffic from that address family (i.e., IPv4 or IPv6) to
280 * @throws IllegalArgumentException if the address is invalid.
282 * @param address The IP address (IPv4 or IPv6) to assign to the VPN interface.
283 * @param prefixLength The prefix length of the address.
290 public boolean addAddress(InetAddress address, in argument
320 removeAddress(InetAddress address, int prefixLength) argument
417 check(InetAddress address, int prefixLength) argument
495 addAddress(InetAddress address, int prefixLength) argument
517 addAddress(String address, int prefixLength) argument
530 addRoute(InetAddress address, int prefixLength) argument
558 addRoute(String address, int prefixLength) argument
572 addDnsServer(InetAddress address) argument
594 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/base/telephony/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/base/core/java/android/bluetooth/
H A DIBluetoothGattCallback.aidl28 in boolean connected, in String address);
29 void onPhyUpdate(in String address, in int txPhy, in int rxPhy, in int status);
30 void onPhyRead(in String address, in int txPhy, in int rxPhy, in int status);
31 void onSearchComplete(in String address, in List<BluetoothGattService> services, in int status);
32 void onCharacteristicRead(in String address, in int status, in int handle, in byte[] value);
33 void onCharacteristicWrite(in String address, in int status, in int handle);
34 void onExecuteWrite(in String address, in int status);
35 void onDescriptorRead(in String address, in int status, in int handle, in byte[] value);
36 void onDescriptorWrite(in String address, in int status, in int handle);
37 void onNotify(in String address, i
[all...]
H A DIBluetoothGattServerCallback.aidl27 in boolean connected, in String address);
29 void onCharacteristicReadRequest(in String address, in int transId, in int offset,
31 void onDescriptorReadRequest(in String address, in int transId,
34 void onCharacteristicWriteRequest(in String address, in int transId, in int offset,
37 void onDescriptorWriteRequest(in String address, in int transId, in int offset,
40 void onExecuteWrite(in String address, in int transId, in boolean execWrite);
41 void onNotificationSent(in String address, in int status);
42 void onMtuChanged(in String address, in int mtu);
43 void onPhyUpdate(in String address, in int txPhy, in int rxPhy, in int status);
44 void onPhyRead(in String address, i
[all...]
H A DIBluetoothGatt.aidl77 void clientConnect(in int clientIf, in String address, in boolean isDirect, in int transport, in boolean opportunistic, in int phy);
78 void clientDisconnect(in int clientIf, in String address);
79 void clientSetPreferredPhy(in int clientIf, in String address, in int txPhy, in int rxPhy, in int phyOptions);
80 void clientReadPhy(in int clientIf, in String address);
81 void refreshDevice(in int clientIf, in String address);
82 void discoverServices(in int clientIf, in String address);
83 void discoverServiceByUuid(in int clientIf, in String address, in ParcelUuid uuid);
84 void readCharacteristic(in int clientIf, in String address, in int handle, in int authReq);
85 void readUsingCharacteristicUuid(in int clientIf, in String address, in ParcelUuid uuid,
87 void writeCharacteristic(in int clientIf, in String address, i
[all...]
/frameworks/support/room/integration-tests/testapp/src/androidTest/java/android/arch/persistence/room/integration/testapp/vo/
H A DSchool.java29 public Address address; field in class:School
43 return address;
46 public void setAddress(Address address) { argument
47 this.address = address;
81 if (address != null ? !address.equals(school.address) : school.address != null) {
91 result = 31 * result + (address !
[all...]
H A DAddress.java69 Address address = (Address) o;
71 if (mPostCode != address.mPostCode) return false;
72 if (mStreet != null ? !mStreet.equals(address.mStreet) : address.mStreet != null) {
75 if (mState != null ? !mState.equals(address.mState) : address.mState != null) {
78 return mCoordinates != null ? mCoordinates.equals(address.mCoordinates)
79 : address.mCoordinates == null;
/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/telephony/java/com/android/internal/telephony/cdma/
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/tests/net/java/android/net/
H A DLinkAddressTest.java77 LinkAddress address;
80 address = new LinkAddress(V4_ADDRESS, 25);
81 assertEquals(V4_ADDRESS, address.getAddress());
82 assertEquals(25, address.getPrefixLength());
83 assertEquals(0, address.getFlags());
84 assertEquals(RT_SCOPE_UNIVERSE, address.getScope());
85 assertTrue(address.isIPv4());
87 address = new LinkAddress(V6_ADDRESS, 127);
88 assertEquals(V6_ADDRESS, address.getAddress());
89 assertEquals(127, address
[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/av/media/libaudiohal/
H A DDeviceHalHidl.cpp52 audio_devices_t device, const char* halAddress, DeviceAddress* address) {
53 address->device = AudioDevice(device);
55 if (address == nullptr || strnlen(halAddress, AUDIO_DEVICE_MAX_ADDRESS_LEN) == 0) {
64 &address->address.mac[0], &address->address.mac[1], &address->address.mac[2],
65 &address
51 deviceAddressFromHal( audio_devices_t device, const char* halAddress, DeviceAddress* address) argument
233 openOutputStream( audio_io_handle_t handle, audio_devices_t devices, audio_output_flags_t flags, struct audio_config *config, const char *address, sp<StreamOutHalInterface> *outStream) argument
262 openInputStream( audio_io_handle_t handle, audio_devices_t devices, struct audio_config *config, audio_input_flags_t flags, const char *address, audio_source_t source, sp<StreamInHalInterface> *inStream) argument
[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 const 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/java/android/hardware/display/
H A DIDisplayManager.aidl43 void connectWifiDisplay(String address);
49 void renameWifiDisplay(String address, String alias);
52 void forgetWifiDisplay(String address);

Completed in 633 milliseconds

1234567891011