Home
last modified time | relevance | path

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

12345678

/frameworks/base/core/java/android/server/
DBluetoothEventLoop.java76 String address = null;
79 address = (String)msg.obj;
80 if (address != null) {
81 mBluetoothService.setPairingConfirmation(address, true);
94 address = devices[0];
95 mBluetoothService.setBondState(address,
178 private void addDevice(String address, String[] properties) { in addDevice() argument
181 deviceProperties.addProperties(address, properties); in addDevice()
182 String rssi = deviceProperties.getProperty(address, "RSSI"); in addDevice()
183 String classValue = deviceProperties.getProperty(address, "Class"); in addDevice()
[all …]
DBluetoothService.java180 public String address; field in BluetoothService.RemoteService
182 public RemoteService(String address, ParcelUuid uuid) { in RemoteService() argument
183 this.address = address; in RemoteService()
190 return address.equals(service.address) && uuid.equals(service.uuid); in equals()
198 hash = hash * 31 + (address == null ? 0 : address.hashCode()); in hashCode()
259 byte[] address = new byte[17]; in readDockBluetoothAddress()
260 file.read(address); in readDockBluetoothAddress()
261 dockAddress = new String(address); in readDockBluetoothAddress()
409 for (String address : mBondState.listInState(BluetoothDevice.BOND_BONDING)) { in finishDisable()
410 mBondState.setBondState(address, BluetoothDevice.BOND_NONE, in finishDisable()
[all …]
DBluetoothBondState.java96 synchronized void setPendingOutgoingBonding(String address) { in setPendingOutgoingBonding() argument
97 mPendingOutgoingBonding = address; in setPendingOutgoingBonding()
130 public synchronized void setBondState(String address, int state) { in setBondState() argument
131 setBondState(address, state, 0); in setBondState()
135 public synchronized void setBondState(String address, int state, int reason) { in setBondState() argument
138 int oldState = getBondState(address); in setBondState()
146 if (address.equals(mPendingOutgoingBonding)) { in setBondState()
153 if (mPairingRequestRcvd.contains(address)) setTrust = true; in setBondState()
155 mService.addProfileState(address, setTrust); in setBondState()
156 mPairingRequestRcvd.remove(address); in setBondState()
[all …]
DBluetoothDeviceProperties.java38 Map<String, String> addProperties(String address, String[] properties) { in addProperties() argument
45 propertyValues = mPropertiesMap.get(address); in addProperties()
75 mPropertiesMap.put(address, propertyValues); in addProperties()
80 mService.updateDeviceServiceChannelCache(address); in addProperties()
84 void setProperty(String address, String name, String value) { in setProperty() argument
86 Map <String, String> propVal = mPropertiesMap.get(address); in setProperty()
89 mPropertiesMap.put(address, propVal); in setProperty()
91 Log.e(TAG, "setRemoteDeviceProperty for a device not in cache:" + address); in setProperty()
96 boolean isInCache(String address) { in isInCache() argument
98 return (mPropertiesMap.get(address) != null); in isInCache()
[all …]
DBluetoothPanProfileHandler.java330 String address = BLUETOOTH_IFACE_ADDR_START; in createNewTetheringAddressLocked() local
332 if (mBluetoothIfaceAddresses.contains(address)) { in createNewTetheringAddressLocked()
333 String[] addr = address.split("\\."); in createNewTetheringAddressLocked()
335 address = address.replace(addr[2], newIp.toString()); in createNewTetheringAddressLocked()
340 mBluetoothIfaceAddresses.add(address); in createNewTetheringAddressLocked()
341 return address; in createNewTetheringAddressLocked()
373 String address = createNewTetheringAddressLocked(); in enableTethering()
374 if (address == null) return null; in enableTethering()
385 addr = NetworkUtils.numericToInetAddress(address); in enableTethering()
399 return address; in enableTethering()
DBluetoothA2dpService.java107 String address = sinks.get(0).getAddress();
112 String path = mBluetoothService.getObjectPathFromAddress(address);
214 String address = mBluetoothService.getAddressFromObjectPath(path); in onBluetoothEnable() local
215 BluetoothDevice device = mAdapter.getRemoteDevice(address); in onBluetoothEnable()
216 ParcelUuid[] remoteUuids = mBluetoothService.getRemoteUuids(address); in onBluetoothEnable()
452 String address = device.getAddress(); in allowIncomingConnect() local
453 if (!BluetoothAdapter.checkBluetoothAddress(address)) { in allowIncomingConnect()
456 Integer data = mBluetoothService.getAuthorizationAgentRequestData(address); in allowIncomingConnect()
462 return mBluetoothService.setAuthorizationNative(address, value, data.intValue()); in allowIncomingConnect()
479 String address = mBluetoothService.getAddressFromObjectPath(path); in onSinkPropertyChanged() local
[all …]
/frameworks/base/core/java/android/net/
DLinkAddress.java35 private final InetAddress address; field in LinkAddress
42 public LinkAddress(InetAddress address, int prefixLength) { in LinkAddress() argument
43 if (address == null || prefixLength < 0 || in LinkAddress()
44 ((address instanceof Inet4Address) && prefixLength > 32) || in LinkAddress()
46 throw new IllegalArgumentException("Bad LinkAddress params " + address + in LinkAddress()
49 this.address = address; in LinkAddress()
54 this.address = interfaceAddress.getAddress(); in LinkAddress()
60 return (address == null ? "" : (address.getHostAddress() + "/" + prefixLength)); in toString()
77 return this.address.equals(linkAddress.address) && in equals()
86 return ((null == address) ? 0 : address.hashCode()) + prefixLength; in hashCode()
[all …]
DVpnService.java301 private void check(InetAddress address, int prefixLength) { in check() argument
302 if (address.isLoopbackAddress()) { in check()
305 if (address instanceof Inet4Address) { in check()
309 } else if (address instanceof Inet6Address) { in check()
325 public Builder addAddress(InetAddress address, int prefixLength) { in addAddress() argument
326 check(address, prefixLength); in addAddress()
328 if (address.isAnyLocalAddress()) { in addAddress()
332 mAddresses.append(String.format(" %s/%d", address.getHostAddress(), prefixLength)); in addAddress()
344 public Builder addAddress(String address, int prefixLength) { in addAddress() argument
345 return addAddress(InetAddress.parseNumericAddress(address), prefixLength); in addAddress()
[all …]
DMailTo.java94 String address = email.getPath(); in parse() local
95 if (address != null) { in parse()
98 address += ", " + addr; in parse()
100 m.mHeaders.put(TO, address); in parse()
/frameworks/base/core/java/android/bluetooth/
DIBluetooth.aidl62 boolean createBond(in String address); in createBond() argument
63 boolean createBondOutOfBand(in String address, in byte[] hash, in byte[] randomizer); in createBondOutOfBand() argument
64 boolean cancelBondProcess(in String address); in cancelBondProcess() argument
65 boolean removeBond(in String address); in removeBond() argument
67 int getBondState(in String address); in getBondState() argument
68 boolean setDeviceOutOfBandData(in String address, in byte[] hash, in byte[] randomizer); in setDeviceOutOfBandData() argument
70 String getRemoteName(in String address); in getRemoteName() argument
71 String getRemoteAlias(in String address); in getRemoteAlias() argument
72 boolean setRemoteAlias(in String address, in String name); in setRemoteAlias() argument
73 int getRemoteClass(in String address); in getRemoteClass() argument
[all …]
DBluetoothAdapter.java403 public BluetoothDevice getRemoteDevice(String address) { in getRemoteDevice() argument
404 return new BluetoothDevice(address); in getRemoteDevice()
418 public BluetoothDevice getRemoteDevice(byte[] address) { in getRemoteDevice() argument
419 if (address == null || address.length != 6) { in getRemoteDevice()
423 address[0], address[1], address[2], address[3], address[4], address[5])); in getRemoteDevice()
1327 public static boolean checkBluetoothAddress(String address) { in checkBluetoothAddress() argument
1328 if (address == null || address.length() != ADDRESS_LENGTH) { in checkBluetoothAddress()
1332 char c = address.charAt(i); in checkBluetoothAddress()
/frameworks/base/telephony/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/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/base/voip/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/base/voip/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/base/voip/java/android/net/sip/
DSimpleSessionDescription.java66 public SimpleSessionDescription(long sessionId, String address) { in SimpleSessionDescription() argument
67 address = (address.indexOf(':') < 0 ? "IN IP4 " : "IN IP6 ") + address; in SimpleSessionDescription()
70 System.currentTimeMillis(), address)); in SimpleSessionDescription()
73 mFields.parse("c=" + address); in SimpleSessionDescription()
156 public void setAddress(String address) { in setAddress() argument
157 mFields.setAddress(address); in setAddress()
401 String address = get("c", '='); in getAddress() local
402 if (address == null) { in getAddress()
405 String[] parts = address.split(" "); in getAddress()
417 public void setAddress(String address) { in setAddress() argument
[all …]
/frameworks/base/services/jni/
Dcom_android_server_connectivity_Vpn.cpp130 char address[65]; in set_addresses() local
135 while (sscanf(addresses, " %64[^/]/%d %n", address, &prefix, &chars) == 2) { in set_addresses()
138 if (strchr(address, ':')) { in set_addresses()
140 if (inet_pton(AF_INET6, address, &ifr6.ifr6_addr) != 1 || in set_addresses()
153 if (inet_pton(AF_INET, address, as_in_addr(&ifr4.ifr_addr)) != 1 || in set_addresses()
174 ALOGD("Address added on %s: %s/%d", name, address, prefix); in set_addresses()
179 ALOGE("Invalid address: %s/%d", address, prefix); in set_addresses()
181 ALOGE("Cannot add address: %s/%d: %s", address, prefix, strerror(errno)); in set_addresses()
209 char address[65]; in set_routes() local
214 while (sscanf(routes, " %64[^/]/%d %n", address, &prefix, &chars) == 2) { in set_routes()
[all …]
/frameworks/base/core/java/android/text/util/
DRfc822Tokenizer.java47 StringBuilder address = new StringBuilder(); in tokenize() local
65 if (address.length() > 0) { in tokenize()
67 address.toString(), in tokenize()
76 address.setLength(0); in tokenize()
135 address.append(c); in tokenize()
150 if (address.length() > 0) { in tokenize()
152 address.toString(), in tokenize()
/frameworks/base/cmds/ip-up-vpn/
Dip-up-vpn.c41 static int set_address(struct sockaddr *sa, const char *address) { in set_address() argument
44 return inet_pton(AF_INET, address, &((struct sockaddr_in *)sa)->sin_addr); in set_address()
84 const char *address = env("INTERNAL_ADDR4"); in main() local
121 if (!set_address(&ifr.ifr_addr, address) || in main()
138 fprintf(state, "%s/%s\n", address, env("INTERNAL_CIDR4")); in main()
/frameworks/base/telephony/java/com/android/internal/telephony/
DSmsAddress.java31 public String address; field in SmsAddress
38 return address; in getAddressString()
62 return address.length() <= 4; in couldBeEmailGateway()
/frameworks/base/core/java/android/hardware/usb/
DUsbEndpoint.java44 public UsbEndpoint(int address, int attributes, int maxPacketSize, int interval) { in UsbEndpoint() argument
45 mAddress = address; in UsbEndpoint()
140 int address = in.readInt();
144 return new UsbEndpoint(address, attributes, maxPacketSize, interval);
/frameworks/base/core/java/android/provider/
DTelephony.java220 Uri uri, String address, String body, String subject, in addMessageToUri() argument
222 return addMessageToUri(resolver, uri, address, body, subject, in addMessageToUri()
241 Uri uri, String address, String body, String subject, in addMessageToUri() argument
245 values.put(ADDRESS, address); in addMessageToUri()
345 String address, String body, String subject, Long date, in addMessage() argument
347 return addMessageToUri(resolver, CONTENT_URI, address, body, in addMessage()
378 String address, String body, String subject, Long date) { in addMessage() argument
379 return addMessageToUri(resolver, CONTENT_URI, address, body, in addMessage()
410 String address, String body, String subject, Long date) { in addMessage() argument
411 return addMessageToUri(resolver, CONTENT_URI, address, body, in addMessage()
[all …]
/frameworks/ex/chips/src/com/android/ex/chips/
DRecipientEntry.java117 public static RecipientEntry constructFakeEntry(String address) { in constructFakeEntry() argument
118 return new RecipientEntry(ENTRY_TYPE_PERSON, address, address, in constructFakeEntry()
139 public static RecipientEntry constructGeneratedEntry(String display, String address) { in constructGeneratedEntry() argument
141 address, INVALID_DESTINATION_TYPE, null, in constructGeneratedEntry()
/frameworks/base/docs/html/training/basics/location/
Dgeocoding.jd38 … need to display a location to user, it is much more preferable to display the address instead.</p>
42 …rocess of translating latitude longitude coordinates to a human-readable address. The {@link andr…
86 Address address = addresses.get(0);
87 // Format the first line of address (if available), city, and country name.
89 address.getMaxAddressLineIndex() &gt; 0 ? address.getAddressLine(0) : "",
90 address.getLocality(),
91 address.getCountryName());
/frameworks/base/telephony/java/com/android/internal/telephony/gsm/
DGsmSmsAddress.java59 address = GsmAlphabet.gsm7BitPackedToString(origBytes, in GsmSmsAddress()
72 address = PhoneNumberUtils.calledPartyBCDToString(origBytes, in GsmSmsAddress()
81 return address; in getAddressString()

12345678