Home
last modified time | relevance | path

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

12345

/packages/apps/Bluetooth/src/com/android/bluetooth/gatt/
DGattService.java277 public void clientConnect(int clientIf, String address, boolean isDirect) { in clientConnect() argument
280 service.clientConnect(clientIf, address, isDirect); in clientConnect()
283 public void clientDisconnect(int clientIf, String address) { in clientDisconnect() argument
286 service.clientDisconnect(clientIf, address); in clientDisconnect()
289 public void refreshDevice(int clientIf, String address) { in refreshDevice() argument
292 service.refreshDevice(clientIf, address); in refreshDevice()
295 public void discoverServices(int clientIf, String address) { in discoverServices() argument
298 service.discoverServices(clientIf, address); in discoverServices()
301 public void readCharacteristic(int clientIf, String address, int srvcType, in readCharacteristic() argument
307 service.readCharacteristic(clientIf, address, srvcType, srvcInstanceId, in readCharacteristic()
[all …]
DContextMap.java44 String address; field in ContextMap.Connection
47 Connection(int connId, String address,int appId) { in Connection() argument
49 this.address = address; in Connection()
141 void addConnection(int id, int connId, String address) { in addConnection() argument
145 mConnections.add(new Connection(connId, address, id)); in addConnection()
200 addresses.add(connection.address); in getConnectedDevices()
222 Integer connIdByAddress(int id, String address) { in connIdByAddress() argument
229 if (connection.address.equals(address) && connection.appId == id) in connIdByAddress()
242 if (connection.connId == connId) return connection.address; in addressByConnId()
296 b.append("\n " + connection.connId + ": " + connection.address); in dump()
/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()
213 bda->address[0], bda->address[1], bda->address[2], in btgattc_scan_result_cb()
214 bda->address[3], bda->address[4], bda->address[5]); in btgattc_scan_result_cb()
216 jstring address = sCallbackEnv->NewStringUTF(c_address); in btgattc_scan_result_cb() local
221 , address, rssi, jb); in btgattc_scan_result_cb()
223 sCallbackEnv->DeleteLocalRef(address); in btgattc_scan_result_cb()
234 bda->address[0], bda->address[1], bda->address[2], in btgattc_open_cb()
[all …]
Dcom_android_bluetooth_hid.cpp241 static jboolean connectHidNative(JNIEnv *env, jobject object, jbyteArray address) { in connectHidNative() argument
247 addr = env->GetByteArrayElements(address, NULL); in connectHidNative()
258 env->ReleaseByteArrayElements(address, addr, 0); in connectHidNative()
263 static jboolean disconnectHidNative(JNIEnv *env, jobject object, jbyteArray address) { in disconnectHidNative() argument
269 addr = env->GetByteArrayElements(address, NULL); in disconnectHidNative()
280 env->ReleaseByteArrayElements(address, addr, 0); in disconnectHidNative()
285 static jboolean getProtocolModeNative(JNIEnv *env, jobject object, jbyteArray address) { in getProtocolModeNative() argument
292 addr = env->GetByteArrayElements(address, NULL); in getProtocolModeNative()
303 env->ReleaseByteArrayElements(address, addr, 0); in getProtocolModeNative()
308 static jboolean virtualUnPlugNative(JNIEnv *env, jobject object, jbyteArray address) { in virtualUnPlugNative() argument
[all …]
Dcom_android_bluetooth_btservice_AdapterService.cpp592 static jboolean createBondNative(JNIEnv* env, jobject obj, jbyteArray address) { in createBondNative() argument
600 addr = env->GetByteArrayElements(address, NULL); in createBondNative()
607 env->ReleaseByteArrayElements(address, addr, 0); in createBondNative()
613 static jboolean removeBondNative(JNIEnv* env, jobject obj, jbyteArray address) { in removeBondNative() argument
620 addr = env->GetByteArrayElements(address, NULL); in removeBondNative()
627 env->ReleaseByteArrayElements(address, addr, 0); in removeBondNative()
633 static jboolean cancelBondNative(JNIEnv* env, jobject obj, jbyteArray address) { in cancelBondNative() argument
640 addr = env->GetByteArrayElements(address, NULL); in cancelBondNative()
647 env->ReleaseByteArrayElements(address, addr, 0); in cancelBondNative()
653 static jboolean pinReplyNative(JNIEnv *env, jobject obj, jbyteArray address, jboolean accept, in pinReplyNative() argument
[all …]
Dcom_android_bluetooth_hfp.cpp326 static jboolean connectHfpNative(JNIEnv *env, jobject object, jbyteArray address) { in connectHfpNative() argument
333 addr = env->GetByteArrayElements(address, NULL); in connectHfpNative()
342 env->ReleaseByteArrayElements(address, addr, 0); in connectHfpNative()
346 static jboolean disconnectHfpNative(JNIEnv *env, jobject object, jbyteArray address) { in disconnectHfpNative() argument
352 addr = env->GetByteArrayElements(address, NULL); in disconnectHfpNative()
361 env->ReleaseByteArrayElements(address, addr, 0); in disconnectHfpNative()
365 static jboolean connectAudioNative(JNIEnv *env, jobject object, jbyteArray address) { in connectAudioNative() argument
371 addr = env->GetByteArrayElements(address, NULL); in connectAudioNative()
381 env->ReleaseByteArrayElements(address, addr, 0); in connectAudioNative()
385 static jboolean disconnectAudioNative(JNIEnv *env, jobject object, jbyteArray address) { in disconnectAudioNative() argument
[all …]
Dcom_android_bluetooth_a2dp.cpp193 static jboolean connectA2dpNative(JNIEnv *env, jobject object, jbyteArray address) { in connectA2dpNative() argument
201 addr = env->GetByteArrayElements(address, NULL); in connectA2dpNative()
211 env->ReleaseByteArrayElements(address, addr, 0); in connectA2dpNative()
215 static jboolean disconnectA2dpNative(JNIEnv *env, jobject object, jbyteArray address) { in disconnectA2dpNative() argument
221 addr = env->GetByteArrayElements(address, NULL); in disconnectA2dpNative()
230 env->ReleaseByteArrayElements(address, addr, 0); in disconnectA2dpNative()
Dcom_android_bluetooth_pan.cpp186 static jboolean connectPanNative(JNIEnv *env, jobject object, jbyteArray address, in connectPanNative() argument
194 addr = env->GetByteArrayElements(address, NULL); in connectPanNative()
205 env->ReleaseByteArrayElements(address, addr, 0); in connectPanNative()
210 static jboolean disconnectPanNative(JNIEnv *env, jobject object, jbyteArray address) { in disconnectPanNative() argument
216 addr = env->GetByteArrayElements(address, NULL); in disconnectPanNative()
227 env->ReleaseByteArrayElements(address, addr, 0); in disconnectPanNative()
/packages/apps/Email/tests/src/com/android/emailcommon/mail/
DAddressUnitTests.java102 Address address = new Address(bareAddress); in testSetAddress() local
103 assertEquals("bare address", "user1@dom1.com", address.getAddress()); in testSetAddress()
105 address.setAddress(bracketAddress); in testSetAddress()
106 assertEquals("bracket address", "user2@dom2.com", address.getAddress()); in testSetAddress()
113 Address address = new Address("user1@dom1.org"); in testNullPersonal() local
114 assertNull("no name", address.getPersonal()); in testNullPersonal()
116 address.setPersonal(null); in testNullPersonal()
117 assertNull("null name", address.getPersonal()); in testNullPersonal()
119 address.setPersonal(""); in testNullPersonal()
120 assertNull("empty name", address.getPersonal()); in testNullPersonal()
[all …]
/packages/apps/Bluetooth/src/com/android/bluetooth/btservice/
DRemoteDevices.java79 BluetoothDevice getDevice(byte[] address) { in getDevice() argument
81 if (dev.getAddress().equals(Utils.getAddressStringFromByte(address))) { in getDevice()
88 DeviceProperties addDeviceProperties(byte[] address) { in addDeviceProperties() argument
92 mAdapter.getRemoteDevice(Utils.getAddressStringFromByte(address)); in addDeviceProperties()
93 prop.mAddress = address; in addDeviceProperties()
225 private void sendDisplayPinIntent(byte[] address, int pin) { in sendDisplayPinIntent() argument
227 intent.putExtra(BluetoothDevice.EXTRA_DEVICE, getDevice(address)); in sendDisplayPinIntent()
234 void devicePropertyChangedCallback(byte[] address, int[] types, byte[][] values) { in devicePropertyChangedCallback() argument
238 BluetoothDevice bdDevice = getDevice(address); in devicePropertyChangedCallback()
241 device = addDeviceProperties(address); in devicePropertyChangedCallback()
[all …]
DJniCallbacks.java47 void sspRequestCallback(byte[] address, byte[] name, int cod, int pairingVariant, in sspRequestCallback() argument
49 mRemoteDevices.sspRequestCallback(address, name, cod, pairingVariant, in sspRequestCallback()
52 void devicePropertyChangedCallback(byte[] address, int[] types, byte[][] val) { in devicePropertyChangedCallback() argument
53 mRemoteDevices.devicePropertyChangedCallback(address, types, val); in devicePropertyChangedCallback()
56 void deviceFoundCallback(byte[] address) { in deviceFoundCallback() argument
57 mRemoteDevices.deviceFoundCallback(address); in deviceFoundCallback()
60 void pinRequestCallback(byte[] address, byte[] name, int cod) { in pinRequestCallback() argument
61 mRemoteDevices.pinRequestCallback(address, name, cod); in pinRequestCallback()
64 void bondStateChangeCallback(int status, byte[] address, int newState) { in bondStateChangeCallback() argument
65 mBondStateMachine.bondStateChangeCallback(status, address, newState); in bondStateChangeCallback()
[all …]
/packages/apps/Email/emailcommon/src/com/android/emailcommon/mail/
DAddress.java68 public Address(String address, String personal) { in Address() argument
69 setAddress(address); in Address()
73 public Address(String address) { in Address() argument
74 setAddress(address); in Address()
81 public void setAddress(String address) { in setAddress() argument
82 mAddress = REMOVE_OPTIONAL_BRACKET.matcher(address).replaceAll("$1"); in setAddress()
123 String address = token.getAddress(); in isAllValid() local
124 if (!TextUtils.isEmpty(address) && !isValidAddress(address)) { in isAllValid()
147 String address = token.getAddress(); in parse() local
148 if (!TextUtils.isEmpty(address)) { in parse()
[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/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/makedict/
DBinaryDictInputOutput.java408 public static boolean hasChildrenAddress(final int address) { in hasChildrenAddress() argument
409 return FormatSpec.NO_CHILDREN_ADDRESS != address; in hasChildrenAddress()
465 static int getByteSize(final int address) { in getByteSize() argument
466 assert(address <= UINT24_MAX); in getByteSize()
467 if (!hasChildrenAddress(address)) { in getByteSize()
469 } else if (Math.abs(address) <= UINT8_MAX) { in getByteSize()
471 } else if (Math.abs(address) <= UINT16_MAX) { in getByteSize()
702 private static int writeVariableAddress(final byte[] buffer, int index, final int address) { in writeVariableAddress() argument
703 switch (getByteSize(address)) { in writeVariableAddress()
705 buffer[index++] = (byte)address; in writeVariableAddress()
[all …]
DBinaryDictIOUtils.java58 public Position(int address, int length) { in Position() argument
59 mAddress = address; in Position()
745 int wordPos = 0, address = buffer.position(), nodeOriginAddress = buffer.position(); in insertWord() local
757 address = buffer.position(); in insertWord()
764 ? FormatSpec.NO_PARENT_ADDRESS : currentInfo.mParentAddress + address; in insertWord()
784 buffer, nodeOriginAddress, address, header.mFormatOptions); in insertWord()
825 destination, buffer, nodeOriginAddress, address, in insertWord()
880 moveCharGroup(destination, buffer, newInfo, nodeOriginAddress, address, in insertWord()
899 updateChildrenAddress(buffer, address, newNodeAddress, in insertWord()
908 characters, frequency, address, FormatSpec.NO_CHILDREN_ADDRESS, in insertWord()
/packages/apps/Email/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/Bluetooth/src/com/android/bluetooth/
DUtils.java43 public static String getAddressStringFromByte(byte[] address) { in getAddressStringFromByte() argument
44 if (address == null || address.length !=6) { in getAddressStringFromByte()
49 address[0], address[1], address[2], address[3], address[4], in getAddressStringFromByte()
50 address[5]); in getAddressStringFromByte()
57 public static byte[] getBytesFromAddress(String address) { in getBytesFromAddress() argument
61 for (i = 0; i < address.length();i++) { in getBytesFromAddress()
62 if (address.charAt(i) != ':') { in getBytesFromAddress()
63 output[j] = (byte) Integer.parseInt(address.substring(i, i+2), 16); in getBytesFromAddress()
/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/Bluetooth/src/com/android/bluetooth/pan/
DPanService.java362 public ConnectState(byte[] address, int state, int error, int local_role, int remote_role) { in ConnectState() argument
363 this.addr = address; in ConnectState()
375 private void onConnectStateChanged(byte[] address, int state, int error, int local_role, in onConnectStateChanged() argument
382 msg.obj = new ConnectState(address, state, error, local_role, remote_role); in onConnectStateChanged()
514 String address = createNewTetheringAddressLocked(); in enableTethering()
515 if (address == null) return null; in enableTethering()
526 addr = NetworkUtils.numericToInetAddress(address); in enableTethering()
541 return address; in enableTethering()
549 String address = BLUETOOTH_IFACE_ADDR_START; in createNewTetheringAddressLocked() local
551 if (mBluetoothIfaceAddresses.contains(address)) { in createNewTetheringAddressLocked()
[all …]
/packages/apps/Nfc/src/com/android/nfc/handover/
DHandoverManager.java506 byte[] address = new byte[6]; in parseNokia()
507 payload.get(address); in parseNokia()
508 result.device = mBluetoothAdapter.getRemoteDevice(address); in parseNokia()
530 byte[] address = new byte[6]; in parseBtOob()
531 payload.get(address); in parseBtOob()
535 byte temp = address[i]; in parseBtOob()
536 address[i] = address[5 - i]; in parseBtOob()
537 address[5 - i] = temp; in parseBtOob()
539 result.device = mBluetoothAdapter.getRemoteDevice(address); in parseBtOob()
572 static byte[] addressToReverseBytes(String address) { in addressToReverseBytes() argument
[all …]
/packages/apps/Mms/src/com/android/mms/transaction/
DMessagingNotification.java580 String address = AddressUtils.getFrom(context, msgUri); in addMmsNotificationInfos() local
582 Contact contact = Contact.get(address, false); in addMmsNotificationInfos()
597 ", addr = " + address + ", thread_id=" + threadId); in addMmsNotificationInfos()
628 address, in addMmsNotificationInfos()
685 String address = cursor.getString(COLUMN_SMS_ADDRESS); in getSmsNewDeliveryInfo() local
688 Contact contact = Contact.get(address, false); in getSmsNewDeliveryInfo()
712 String address = cursor.getString(COLUMN_SMS_ADDRESS); in addSmsNotificationInfos() local
714 Contact contact = Contact.get(address, false); in addSmsNotificationInfos()
727 ", addr=" + address + ", thread_id=" + threadId); in addSmsNotificationInfos()
732 address, message, null /* subject */, in addSmsNotificationInfos()
[all …]
DSmsReceiverService.java257 String address = c.getString(SEND_COLUMN_ADDRESS); in sendFirstQueuedMessage() local
265 address, msgText, threadId, status == Sms.STATUS_PENDING, in sendFirstQueuedMessage()
272 ", address: " + address + in sendFirstQueuedMessage()
571 String address = values.getAsString(Sms.ADDRESS); in storeMessage() local
586 if (!TextUtils.isEmpty(address)) { in storeMessage()
587 Contact cacheContact = Contact.get(address,true); in storeMessage()
589 address = cacheContact.getNumber(); in storeMessage()
592 address = getString(R.string.unknown_sender); in storeMessage()
593 values.put(Sms.ADDRESS, address); in storeMessage()
596 if (((threadId == null) || (threadId == 0)) && (address != null)) { in storeMessage()
[all …]
/packages/apps/Mms/src/com/android/mms/data/
DConversation.java647 public static long getOrCreateThreadId(Context context, String address) { in getOrCreateThreadId() argument
651 address + " sDeletingThreads: " + sDeletingThreads); in getOrCreateThreadId()
668 long retVal = Threads.getOrCreateThreadId(context, address); in getOrCreateThreadId()
671 address, retVal); in getOrCreateThreadId()
1408 String address = recipientStr; in verifySingleRecipient() local
1431 address = RecipientIdCache.getSingleAddressFromCanonicalAddressInDb(context, ids[0]); in verifySingleRecipient()
1433 if (TextUtils.isEmpty(address)) { in verifySingleRecipient()
1440 if (PhoneNumberUtils.compareLoosely(recipientStr, address)) { in verifySingleRecipient()
1453 " recipient from DB: " + address, (Activity)context); in verifySingleRecipient()
1459 " recipient from DB: " + address); in verifySingleRecipient()
[all …]
/packages/apps/Mms/src/com/android/mms/ui/
DMessageUtils.java961 private static String parsePhoneNumberForMms(String address) { in parsePhoneNumberForMms() argument
963 int len = address.length(); in parsePhoneNumberForMms()
966 char c = address.charAt(i); in parsePhoneNumberForMms()
989 public static boolean isValidMmsAddress(String address) { in isValidMmsAddress() argument
990 String retVal = parseMmsAddress(address); in isValidMmsAddress()
1000 public static String parseMmsAddress(String address) { in parseMmsAddress() argument
1002 if (Mms.isEmailAddress(address)) { in parseMmsAddress()
1003 return address; in parseMmsAddress()
1007 String retVal = parsePhoneNumberForMms(address); in parseMmsAddress()
1013 if (isAlias(address)) { in parseMmsAddress()
[all …]
/packages/apps/Bluetooth/src/com/android/bluetooth/a2dp/
DA2dpStateMachine.java705 private void onConnectionStateChanged(int state, byte[] address) { in onConnectionStateChanged() argument
708 event.device = getDevice(address); in onConnectionStateChanged()
712 private void onAudioStateChanged(int state, byte[] address) { in onAudioStateChanged() argument
715 event.device = getDevice(address); in onAudioStateChanged()
718 private BluetoothDevice getDevice(byte[] address) { in getDevice() argument
719 return mAdapter.getRemoteDevice(Utils.getAddressStringFromByte(address)); in getDevice()
778 private native boolean connectA2dpNative(byte[] address); in connectA2dpNative() argument
779 private native boolean disconnectA2dpNative(byte[] address); in disconnectA2dpNative() argument

12345