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

1234567891011>>

/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/cdma/sms/
H A DCdmaSmsAddressTest.java31 String address = "3141592653";
32 CdmaSmsAddress cdmaAddress = CdmaSmsAddress.parse(address);
33 assertEquals(address, cdmaAddress.address);
36 assertArrayEquals(CdmaSmsAddress.parseToDtmf(address), cdmaAddress.origBytes);
41 String address = "(314)1592653";
42 CdmaSmsAddress cdmaAddress = CdmaSmsAddress.parse(address);
43 assertEquals(address, cdmaAddress.address);
51 String address
[all...]
/frameworks/base/core/java/android/net/
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 DIpPrefix.java36 * <li>A starting IP address (IPv4 or IPv6). This is the first IP address of the prefix.
38 * in the IP address, starting from the most significant bit in network byte order, that
50 private final byte[] address; // network byte order field in class:IpPrefix
54 if (address.length != 4 && address.length != 16) {
56 "IpPrefix has " + address.length + " bytes which is neither 4 nor 16");
58 NetworkUtils.maskRawAddress(address, prefixLength);
62 * Constructs a new {@code IpPrefix} from a byte array containing an IPv4 or IPv6 address in
63 * network byte order and a prefix length. Silently truncates the address t
71 IpPrefix(byte[] address, int prefixLength) argument
86 IpPrefix(InetAddress address, int prefixLength) argument
181 contains(InetAddress address) 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/support/room/integration-tests/testapp/src/androidTest/java/androidx/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/base/telephony/java/com/android/internal/telephony/euicc/
H A DIGetDefaultSmdpAddressCallback.aidl20 void onComplete(int resultCode, String address);
H A DIGetSmdsAddressCallback.aidl20 void onComplete(int resultCode, String 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/telephony/java/com/android/internal/telephony/cdma/
H A DCdmaSmsAddress.java30 * the address digits are 4-bit DTMF codes or 8-bit codes. (See
40 * address type is a data network address or not. (See 3GPP2
70 * This field shall be set to the number of address digits
89 * NOTE: the parsed string address and the raw byte array values
90 * are stored in the parent class address and origBytes fields,
106 builder.append(", address=\"" + address + "\"");
118 public static byte[] parseToDtmf(String address) { argument
119 int digits = address
159 filterNumericSugar(String address) argument
176 filterWhitespace(String address) argument
197 parse(String address) argument
[all...]
/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/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/av/media/libaudiohal/4.0/
H A DConversionHelperHidl.cpp110 std::string deviceAddressToHal(const DeviceAddress& address) { argument
111 // HAL assumes that the address is NUL-terminated.
114 audio_devices_t halDevice = static_cast<audio_devices_t>(address.device);
120 address.address.mac[0], address.address.mac[1], address.address.mac[2],
121 address
[all...]
H A DDeviceHalHidl.cpp59 audio_devices_t device, const char* halAddress, DeviceAddress* address) {
60 address->device = AudioDevice(device);
71 &address->address.mac[0], &address->address.mac[1], &address->address.mac[2],
72 &address->address
58 deviceAddressFromHal( audio_devices_t device, const char* halAddress, DeviceAddress* address) argument
243 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
273 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/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/base/services/core/java/com/android/server/hdmi/
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 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 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/av/media/libaudiohal/2.0/
H A DDeviceHalHidl.cpp53 audio_devices_t device, const char* halAddress, DeviceAddress* address) {
54 address->device = AudioDevice(device);
65 &address->address.mac[0], &address->address.mac[1], &address->address.mac[2],
66 &address->address
52 deviceAddressFromHal( audio_devices_t device, const char* halAddress, DeviceAddress* address) argument
234 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
263 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);

Completed in 502 milliseconds

1234567891011>>