Home
last modified time | relevance | path

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

123456789

/packages/apps/UnifiedEmail/tests/src/com/android/mail/
DEmailAddressTest.java58 EmailAddress address = EmailAddress.getEmailAddress("test name <test@localhost.com>"); in testEmailAddressParsing() local
59 assertEquals("test name", address.getName()); in testEmailAddressParsing()
60 assertEquals("test@localhost.com", address.getAddress()); in testEmailAddressParsing()
62 address = EmailAddress.getEmailAddress("\"test name\" <test@localhost.com>"); in testEmailAddressParsing()
63 assertEquals("test name", address.getName()); in testEmailAddressParsing()
64 assertEquals("test@localhost.com", address.getAddress()); in testEmailAddressParsing()
66 address = EmailAddress.getEmailAddress("<test@localhost.com>"); in testEmailAddressParsing()
67 assertEquals("", address.getName()); in testEmailAddressParsing()
68 assertEquals("test@localhost.com", address.getAddress()); in testEmailAddressParsing()
70 address = EmailAddress.getEmailAddress("test@localhost.com"); in testEmailAddressParsing()
[all …]
/packages/apps/Bluetooth/src/com/android/bluetooth/gatt/
DGattService.java378 public void clientConnect(int clientIf, String address, boolean isDirect, int transport) { in clientConnect() argument
381 service.clientConnect(clientIf, address, isDirect, transport); in clientConnect()
384 public void clientDisconnect(int clientIf, String address) { in clientDisconnect() argument
387 service.clientDisconnect(clientIf, address); in clientDisconnect()
390 public void refreshDevice(int clientIf, String address) { in refreshDevice() argument
393 service.refreshDevice(clientIf, address); in refreshDevice()
396 public void discoverServices(int clientIf, String address) { in discoverServices() argument
399 service.discoverServices(clientIf, address); in discoverServices()
402 public void readCharacteristic(int clientIf, String address, int handle, int authReq) { in readCharacteristic() argument
405 service.readCharacteristic(clientIf, address, handle, authReq); in readCharacteristic()
[all …]
DCallbackInfo.java28 String address; field in CallbackInfo
32 CallbackInfo(String address, int status, int handle) { in CallbackInfo() argument
33 this.address = address; in CallbackInfo()
38 CallbackInfo(String address, int status) { in CallbackInfo() argument
39 this.address = address; in CallbackInfo()
DContextMap.java49 String address; field in ContextMap.Connection
53 Connection(int connId, String address,int appId) { in Connection() argument
55 this.address = address; in Connection()
205 void addConnection(int id, int connId, String address) { in addConnection() argument
209 mConnections.add(new Connection(connId, address, id)); in addConnection()
295 addresses.add(connection.address); in getConnectedDevices()
317 Integer connIdByAddress(int id, String address) { in connIdByAddress() argument
324 if (connection.address.equals(address) && connection.appId == id) in connIdByAddress()
337 if (connection.connId == connId) return connection.address; in addressByConnId()
378 connectedmap.put(conn.appId, conn.address); in getConnectedMap()
/packages/apps/UnifiedEmail/tests/src/com/android/emailcommon/mail/
DAddressUnitTests.java116 Address address = new Address(bareAddress); in testSetAddress() local
117 assertEquals("bare address", "user1@dom1.com", address.getAddress()); in testSetAddress()
119 address.setAddress(bracketAddress); in testSetAddress()
120 assertEquals("bracket address", "user2@dom2.com", address.getAddress()); in testSetAddress()
127 Address address = new Address("user1@dom1.org"); in brokentestNullPersonal() local
128 assertNull("no name", address.getPersonal()); in brokentestNullPersonal()
130 address.setPersonal(null); in brokentestNullPersonal()
131 assertNull("null name", address.getPersonal()); in brokentestNullPersonal()
133 address.setPersonal(""); in brokentestNullPersonal()
134 assertNull("empty name", address.getPersonal()); in brokentestNullPersonal()
[all …]
/packages/apps/Bluetooth/jni/
Dcom_android_bluetooth_gatt.cpp127 static void jstr2bdaddr(JNIEnv* env, bt_bdaddr_t *bda, jstring address) in jstr2bdaddr() argument
129 const char* c_bda = env->GetStringUTFChars(address, NULL); in jstr2bdaddr()
132 bd_addr_str_to_addr(c_bda, bda->address); in jstr2bdaddr()
133 env->ReleaseStringUTFChars(address, c_bda); in jstr2bdaddr()
231 bda->address[0], bda->address[1], bda->address[2], in btgattc_scan_result_cb()
232 bda->address[3], bda->address[4], bda->address[5]); in btgattc_scan_result_cb()
234 jstring address = sCallbackEnv->NewStringUTF(c_address); in btgattc_scan_result_cb() local
239 , address, rssi, jb); in btgattc_scan_result_cb()
241 sCallbackEnv->DeleteLocalRef(address); in btgattc_scan_result_cb()
252 bda->address[0], bda->address[1], bda->address[2], in btgattc_open_cb()
[all …]
Dcom_android_bluetooth_hid.cpp270 static jboolean connectHidNative(JNIEnv *env, jobject object, jbyteArray address) { in connectHidNative() argument
276 addr = env->GetByteArrayElements(address, NULL); in connectHidNative()
287 env->ReleaseByteArrayElements(address, addr, 0); in connectHidNative()
292 static jboolean disconnectHidNative(JNIEnv *env, jobject object, jbyteArray address) { in disconnectHidNative() argument
298 addr = env->GetByteArrayElements(address, NULL); in disconnectHidNative()
309 env->ReleaseByteArrayElements(address, addr, 0); in disconnectHidNative()
314 static jboolean getProtocolModeNative(JNIEnv *env, jobject object, jbyteArray address) { in getProtocolModeNative() argument
321 addr = env->GetByteArrayElements(address, NULL); in getProtocolModeNative()
332 env->ReleaseByteArrayElements(address, addr, 0); in getProtocolModeNative()
337 static jboolean virtualUnPlugNative(JNIEnv *env, jobject object, jbyteArray address) { in virtualUnPlugNative() argument
[all …]
Dcom_android_bluetooth_hfp.cpp482 static jboolean connectHfpNative(JNIEnv *env, jobject object, jbyteArray address) { in connectHfpNative() argument
489 addr = env->GetByteArrayElements(address, NULL); in connectHfpNative()
498 env->ReleaseByteArrayElements(address, addr, 0); in connectHfpNative()
502 static jboolean disconnectHfpNative(JNIEnv *env, jobject object, jbyteArray address) { in disconnectHfpNative() argument
508 addr = env->GetByteArrayElements(address, NULL); in disconnectHfpNative()
517 env->ReleaseByteArrayElements(address, addr, 0); in disconnectHfpNative()
521 static jboolean connectAudioNative(JNIEnv *env, jobject object, jbyteArray address) { in connectAudioNative() argument
527 addr = env->GetByteArrayElements(address, NULL); in connectAudioNative()
537 env->ReleaseByteArrayElements(address, addr, 0); in connectAudioNative()
541 static jboolean disconnectAudioNative(JNIEnv *env, jobject object, jbyteArray address) { in disconnectAudioNative() argument
[all …]
Dcom_android_bluetooth_btservice_AdapterService.cpp794 static jboolean createBondNative(JNIEnv* env, jobject obj, jbyteArray address, jint transport) { in createBondNative() argument
802 addr = env->GetByteArrayElements(address, NULL); in createBondNative()
809 env->ReleaseByteArrayElements(address, addr, 0); in createBondNative()
823 static jboolean createBondOutOfBandNative(JNIEnv* env, jobject obj, jbyteArray address, in createBondOutOfBandNative() argument
833 addr = env->GetByteArrayElements(address, NULL); in createBondOutOfBandNative()
857 env->ReleaseByteArrayElements(address, addr, 0); in createBondOutOfBandNative()
865 static jboolean removeBondNative(JNIEnv* env, jobject obj, jbyteArray address) { in removeBondNative() argument
872 addr = env->GetByteArrayElements(address, NULL); in removeBondNative()
879 env->ReleaseByteArrayElements(address, addr, 0); in removeBondNative()
885 static jboolean cancelBondNative(JNIEnv* env, jobject obj, jbyteArray address) { in cancelBondNative() argument
[all …]
/packages/apps/Gallery2/src/com/android/gallery3d/util/
DReverseGeocoder.java314 Address address = null; in lookupAddress() local
322 address = addresses.get(0); in lookupAddress()
325 Locale locale = address.getLocale(); in lookupAddress()
330 writeUTF(dos, address.getThoroughfare()); in lookupAddress()
331 int numAddressLines = address.getMaxAddressLineIndex(); in lookupAddress()
334 writeUTF(dos, address.getAddressLine(i)); in lookupAddress()
336 writeUTF(dos, address.getFeatureName()); in lookupAddress()
337 writeUTF(dos, address.getLocality()); in lookupAddress()
338 writeUTF(dos, address.getAdminArea()); in lookupAddress()
339 writeUTF(dos, address.getSubAdminArea()); in lookupAddress()
[all …]
/packages/apps/Bluetooth/src/com/android/bluetooth/btservice/
DJniCallbacks.java48 void sspRequestCallback(byte[] address, byte[] name, int cod, int pairingVariant, in sspRequestCallback() argument
50 mBondStateMachine.sspRequestCallback(address, name, cod, pairingVariant, in sspRequestCallback()
53 void devicePropertyChangedCallback(byte[] address, int[] types, byte[][] val) { in devicePropertyChangedCallback() argument
54 mRemoteDevices.devicePropertyChangedCallback(address, types, val); in devicePropertyChangedCallback()
57 void deviceFoundCallback(byte[] address) { in deviceFoundCallback() argument
58 mRemoteDevices.deviceFoundCallback(address); in deviceFoundCallback()
61 void pinRequestCallback(byte[] address, byte[] name, int cod, boolean min16Digits) { in pinRequestCallback() argument
62 mBondStateMachine.pinRequestCallback(address, name, cod, min16Digits); in pinRequestCallback()
65 void bondStateChangeCallback(int status, byte[] address, int newState) { in bondStateChangeCallback() argument
66 mBondStateMachine.bondStateChangeCallback(status, address, newState); in bondStateChangeCallback()
[all …]
DBondStateMachine.java319 private void sendDisplayPinIntent(byte[] address, int pin, int variant) { in sendDisplayPinIntent() argument
321 intent.putExtra(BluetoothDevice.EXTRA_DEVICE, mRemoteDevices.getDevice(address)); in sendDisplayPinIntent()
351 void bondStateChangeCallback(int status, byte[] address, int newState) { in bondStateChangeCallback() argument
352 BluetoothDevice device = mRemoteDevices.getDevice(address); in bondStateChangeCallback()
358 device = mAdapter.getRemoteDevice(Utils.getAddressStringFromByte(address)); in bondStateChangeCallback()
378 void sspRequestCallback(byte[] address, byte[] name, int cod, int pairingVariant, in sspRequestCallback() argument
381 BluetoothDevice bdDevice = mRemoteDevices.getDevice(address); in sspRequestCallback()
383 mRemoteDevices.addDeviceProperties(address); in sspRequestCallback()
385 infoLog("sspRequestCallback: " + address + " name: " + name + " cod: " + in sspRequestCallback()
413 BluetoothDevice device = mRemoteDevices.getDevice(address); in sspRequestCallback()
[all …]
DRemoteDevices.java77 BluetoothDevice getDevice(byte[] address) { in getDevice() argument
79 if (dev.getAddress().equals(Utils.getAddressStringFromByte(address))) { in getDevice()
86 DeviceProperties addDeviceProperties(byte[] address) { in addDeviceProperties() argument
90 mAdapter.getRemoteDevice(Utils.getAddressStringFromByte(address)); in addDeviceProperties()
91 prop.mAddress = address; in addDeviceProperties()
229 void devicePropertyChangedCallback(byte[] address, int[] types, byte[][] values) { in devicePropertyChangedCallback() argument
233 BluetoothDevice bdDevice = getDevice(address); in devicePropertyChangedCallback()
236 device = addDeviceProperties(address); in devicePropertyChangedCallback()
237 bdDevice = getDevice(address); in devicePropertyChangedCallback()
303 void deviceFoundCallback(byte[] address) { in deviceFoundCallback() argument
[all …]
/packages/services/Telephony/src/com/android/services/telephony/
DConferenceParticipantConnection.java68 Uri address; in ConferenceParticipantConnection() local
70 address = null; in ConferenceParticipantConnection()
73 address = getParticipantAddress(participant, countryIso); in ConferenceParticipantConnection()
75 setAddress(address, presentation); in ConferenceParticipantConnection()
171 Uri address = participant.getHandle(); in getParticipantPresentation() local
172 if (address == null) { in getParticipantPresentation()
176 String number = address.getSchemeSpecificPart(); in getParticipantPresentation()
210 Uri address = participant.getHandle(); in getParticipantAddress() local
211 if (address == null) { in getParticipantAddress()
212 return address; in getParticipantAddress()
[all …]
/packages/apps/UnifiedEmail/src/com/android/emailcommon/mail/
DAddress.java95 public Address(String address) { in Address() argument
96 setAddress(address); in Address()
99 public Address(String address, String personal) { in Address() argument
101 setAddress(address); in Address()
136 String name, address; in getEmailAddress() local
142 address = Html.fromHtml(tokens[0].getAddress()).toString(); in getEmailAddress()
145 address = rawAddress == null ? in getEmailAddress()
148 return new Address(address, name); in getEmailAddress()
155 public void setAddress(String address) { in setAddress() argument
156 mAddress = REMOVE_OPTIONAL_BRACKET.matcher(address).replaceAll("$1"); in setAddress()
[all …]
/packages/services/Telephony/src/com/android/phone/common/mail/
DAddress.java94 public Address(String address) { in Address() argument
95 setAddress(address); in Address()
98 public Address(String address, String personal) { in Address() argument
100 setAddress(address); in Address()
135 String name, address; in getEmailAddress() local
141 address = Html.fromHtml(tokens[0].getAddress()).toString(); in getEmailAddress()
144 address = rawAddress == null ? in getEmailAddress()
147 return new Address(address, name); in getEmailAddress()
154 public void setAddress(String address) { in setAddress() argument
155 mAddress = REMOVE_OPTIONAL_BRACKET.matcher(address).replaceAll("$1"); in setAddress()
[all …]
/packages/apps/UnifiedEmail/src/com/android/mail/
DEmailAddress.java42 private EmailAddress(String name, String address) { in EmailAddress() argument
44 mAddress = address; in EmailAddress()
61 String name, address; in getEmailAddress() local
69 address = m.group(2); in getEmailAddress()
75 if (address == null) { in getEmailAddress()
76 address = ""; in getEmailAddress()
78 address = Html.fromHtml(address).toString(); in getEmailAddress()
86 address = Html.fromHtml(tokens[0].getAddress()).toString(); in getEmailAddress()
89 address = Html.fromHtml(rawAddress).toString(); in getEmailAddress()
92 return new EmailAddress(name, address); in getEmailAddress()
/packages/apps/Gallery2/src/com/android/gallery3d/ui/
DDetailsAddressResolver.java54 public void onAddressAvailable(String address); in onAddressAvailable() argument
83 private void updateLocation(Address address) { in updateLocation() argument
84 if (address != null) { in updateLocation()
87 address.getAdminArea(), in updateLocation()
88 address.getSubAdminArea(), in updateLocation()
89 address.getLocality(), in updateLocation()
90 address.getSubLocality(), in updateLocation()
91 address.getThoroughfare(), in updateLocation()
92 address.getSubThoroughfare(), in updateLocation()
93 address.getPremises(), in updateLocation()
[all …]
/packages/apps/UnifiedEmail/src/org/apache/james/mime4j/field/address/
DBuilder.java20 package org.apache.james.mime4j.field.address;
26 import org.apache.james.mime4j.field.address.parser.ASTaddr_spec;
27 import org.apache.james.mime4j.field.address.parser.ASTaddress;
28 import org.apache.james.mime4j.field.address.parser.ASTaddress_list;
29 import org.apache.james.mime4j.field.address.parser.ASTangle_addr;
30 import org.apache.james.mime4j.field.address.parser.ASTdomain;
31 import org.apache.james.mime4j.field.address.parser.ASTgroup_body;
32 import org.apache.james.mime4j.field.address.parser.ASTlocal_part;
33 import org.apache.james.mime4j.field.address.parser.ASTmailbox;
34 import org.apache.james.mime4j.field.address.parser.ASTname_addr;
[all …]
/packages/services/Telephony/src/org/apache/james/mime4j/field/address/
DBuilder.java20 package org.apache.james.mime4j.field.address;
26 import org.apache.james.mime4j.field.address.parser.ASTaddr_spec;
27 import org.apache.james.mime4j.field.address.parser.ASTaddress;
28 import org.apache.james.mime4j.field.address.parser.ASTaddress_list;
29 import org.apache.james.mime4j.field.address.parser.ASTangle_addr;
30 import org.apache.james.mime4j.field.address.parser.ASTdomain;
31 import org.apache.james.mime4j.field.address.parser.ASTgroup_body;
32 import org.apache.james.mime4j.field.address.parser.ASTlocal_part;
33 import org.apache.james.mime4j.field.address.parser.ASTmailbox;
34 import org.apache.james.mime4j.field.address.parser.ASTname_addr;
[all …]
/packages/apps/Nfc/src/com/android/nfc/handover/
DHandoverDataParser.java351 byte[] address = new byte[6]; in parseNokia()
352 payload.get(address); in parseNokia()
353 result.device = mBluetoothAdapter.getRemoteDevice(address); in parseNokia()
375 byte[] address = parseMacFromBluetoothRecord(payload); in parseBtOob()
376 result.device = mBluetoothAdapter.getRemoteDevice(address); in parseBtOob()
421 byte[] address = parseMacFromBluetoothRecord(payload); in parseBleOob()
423 result.device = mBluetoothAdapter.getRemoteDevice(address); in parseBleOob()
474 byte[] address = new byte[6]; in parseMacFromBluetoothRecord()
475 payload.get(address); in parseMacFromBluetoothRecord()
479 byte temp = address[i]; in parseMacFromBluetoothRecord()
[all …]
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/util/bluetooth/
DBluetoothScanner.java48 public String address; field in BluetoothScanner.Device
61 str.append(address); in toString()
154 removeDevice(device.address); in removeDevice()
320 if (btAddress.equals(d.address)) { in removeDevice()
330 if (btAddress.equals(d.address)) { in removeDevice()
371 final String address = btDevice.getAddress(); in onReceive() local
375 Log.d(TAG, "Device found, address: " + address + " name: \"" + name + "\""); in onReceive()
378 if (address == null || name == null) { in onReceive()
392 if (address.equals(d.address)) { in onReceive()
405 device.address = address; in onReceive()
[all …]
/packages/apps/Bluetooth/src/com/android/bluetooth/
DUtils.java56 public static String getAddressStringFromByte(byte[] address) { in getAddressStringFromByte() argument
57 if (address == null || address.length != BD_ADDR_LEN) { in getAddressStringFromByte()
62 address[0], address[1], address[2], address[3], address[4], in getAddressStringFromByte()
63 address[5]); in getAddressStringFromByte()
70 public static byte[] getBytesFromAddress(String address) { in getBytesFromAddress() argument
74 for (i = 0; i < address.length(); i++) { in getBytesFromAddress()
75 if (address.charAt(i) != ':') { in getBytesFromAddress()
76 output[j] = (byte) Integer.parseInt(address.substring(i, i + 2), BD_UUID_LEN); in getBytesFromAddress()
/packages/apps/Bluetooth/src/com/android/bluetooth/sdp/
DSdpManager.java97 private native boolean sdpSearchNative(byte[] address, byte[] uuid); in sdpSearchNative() argument
190 SdpSearchInstance getSearchInstance(byte[] address, byte[] uuidBytes) { in getSearchInstance() argument
191 String addressString = Utils.getAddressStringFromByte(address); in getSearchInstance()
249 void sdpMasRecordFoundCallback(int status, byte[] address, byte[] uuid, in sdpMasRecordFoundCallback() argument
260 SdpSearchInstance inst = sSdpSearchTracker.getSearchInstance(address, uuid); in sdpMasRecordFoundCallback()
282 void sdpMnsRecordFoundCallback(int status, byte[] address, byte[] uuid, in sdpMnsRecordFoundCallback() argument
291 SdpSearchInstance inst = sSdpSearchTracker.getSearchInstance(address, uuid); in sdpMnsRecordFoundCallback()
311 void sdpPseRecordFoundCallback(int status, byte[] address, byte[] uuid, in sdpPseRecordFoundCallback() argument
320 SdpSearchInstance inst = sSdpSearchTracker.getSearchInstance(address, uuid); in sdpPseRecordFoundCallback()
341 void sdpOppOpsRecordFoundCallback(int status, byte[] address, byte[] uuid, in sdpOppOpsRecordFoundCallback() argument
[all …]
/packages/apps/Bluetooth/src/com/android/bluetooth/pan/
DPanService.java338 public ConnectState(byte[] address, int state, int error, int local_role, int remote_role) { in ConnectState() argument
339 this.addr = address; in ConnectState()
351 private void onConnectStateChanged(byte[] address, int state, int error, int local_role, in onConnectStateChanged() argument
358 msg.obj = new ConnectState(address, state, error, local_role, remote_role); in onConnectStateChanged()
497 String address = createNewTetheringAddressLocked(); in enableTethering()
498 if (address == null) return null; in enableTethering()
509 addr = NetworkUtils.numericToInetAddress(address); in enableTethering()
524 return address; in enableTethering()
532 String address = BLUETOOTH_IFACE_ADDR_START; in createNewTetheringAddressLocked() local
534 if (mBluetoothIfaceAddresses.contains(address)) { in createNewTetheringAddressLocked()
[all …]

123456789