Home
last modified time | relevance | path

Searched refs:uuid (Results 1 – 25 of 63) sorted by relevance

123

/packages/apps/Bluetooth/src/com/android/bluetooth/gatt/
DHandleMap.java40 public UUID uuid = null; field in HandleMap.Entry
48 Entry(int serverIf, int handle, UUID uuid, int serviceType, int instance) { in Entry() argument
52 this.uuid = uuid; in Entry()
57 Entry(int serverIf, int handle, UUID uuid, int serviceType, int instance, in Entry() argument
62 this.uuid = uuid; in Entry()
68 Entry(int serverIf, int type, int handle, UUID uuid, int serviceHandle) { in Entry() argument
72 this.uuid = uuid; in Entry()
76 Entry(int serverIf, int type, int handle, UUID uuid, int serviceHandle, int charHandle) { in Entry() argument
80 this.uuid = uuid; in Entry()
100 void addService(int serverIf, int handle, UUID uuid, int serviceType, int instance, in addService() argument
[all …]
DGattDbElement.java37 public UUID uuid; field in GattDbElement
55 public static GattDbElement createPrimaryService(UUID uuid) { in createPrimaryService() argument
58 el.uuid = uuid; in createPrimaryService()
62 public static GattDbElement createSecondaryService(UUID uuid) { in createSecondaryService() argument
65 el.uuid = uuid; in createSecondaryService()
69 public static GattDbElement createCharacteristic(UUID uuid, int properties, int permissions) { in createCharacteristic() argument
72 el.uuid = uuid; in createCharacteristic()
78 public static GattDbElement createDescriptor(UUID uuid, int permissions) { in createDescriptor() argument
81 el.uuid = uuid; in createDescriptor()
DScanFilterQueue.java53 public UUID uuid; field in ScanFilterQueue.Entry
78 void addUuid(UUID uuid) { in addUuid() argument
81 entry.uuid = uuid; in addUuid()
86 void addUuid(UUID uuid, UUID uuidMask) { in addUuid() argument
89 entry.uuid = uuid; in addUuid()
94 void addSolicitUuid(UUID uuid) { in addSolicitUuid() argument
97 entry.uuid = uuid; in addSolicitUuid()
102 void addSolicitUuid(UUID uuid, UUID uuidMask) { in addSolicitUuid() argument
105 entry.uuid = uuid; in addSolicitUuid()
224 byte[] uuid = BluetoothUuid.uuidToBytes(serviceDataUuid); in concate()
[all …]
DAdvertiseHelper.java107 byte[] uuid = BluetoothUuid.uuidToBytes(parcelUuid); in advertiseDataToBytes()
109 if (uuid.length == BluetoothUuid.UUID_BYTES_16_BIT) { in advertiseDataToBytes()
110 serviceUuids16.write(uuid, 0, uuid.length); in advertiseDataToBytes()
111 } else if (uuid.length == BluetoothUuid.UUID_BYTES_32_BIT) { in advertiseDataToBytes()
112 serviceUuids32.write(uuid, 0, uuid.length); in advertiseDataToBytes()
114 serviceUuids128.write(uuid, 0, uuid.length); in advertiseDataToBytes()
141 byte[] uuid = BluetoothUuid.uuidToBytes(parcelUuid); in advertiseDataToBytes()
142 int uuidLen = uuid.length; in advertiseDataToBytes()
147 System.arraycopy(uuid, 0, concated, 0, uuidLen); in advertiseDataToBytes()
153 if (uuid.length == BluetoothUuid.UUID_BYTES_16_BIT) { in advertiseDataToBytes()
[all …]
DGattService.java432 public void registerClient(ParcelUuid uuid, IBluetoothGattCallback callback) { in registerClient() argument
437 service.registerClient(uuid.getUuid(), callback); in registerClient()
576 public void discoverServiceByUuid(int clientIf, String address, ParcelUuid uuid) { in discoverServiceByUuid() argument
581 service.discoverServiceByUuid(clientIf, address, uuid.getUuid()); in discoverServiceByUuid()
594 public void readUsingCharacteristicUuid(int clientIf, String address, ParcelUuid uuid, in readUsingCharacteristicUuid() argument
600 service.readUsingCharacteristicUuid(clientIf, address, uuid.getUuid(), startHandle, in readUsingCharacteristicUuid()
705 public void registerServer(ParcelUuid uuid, IBluetoothGattServerCallback callback) { in registerServer() argument
710 service.registerServer(uuid.getUuid(), callback); in registerServer()
1073 UUID uuid = new UUID(uuidMsb, uuidLsb); in onScannerRegistered() local
1075 Log.d(TAG, "onScannerRegistered() - UUID=" + uuid + ", scannerId=" + scannerId in onScannerRegistered()
[all …]
DContextMap.java67 public UUID uuid; field in ContextMap.App
113 App(UUID uuid, C callback, T info, String name, AppScanStats appScanStats) { in App() argument
114 this.uuid = uuid; in App()
176 App add(UUID uuid, WorkSource workSource, C callback, T info, GattService service) { in add() argument
189 App app = new App(uuid, callback, info, appName, appScanStats); in add()
199 void remove(UUID uuid) { in remove() argument
204 if (entry.uuid.equals(uuid)) { in remove()
306 App getByUuid(UUID uuid) { in getByUuid() argument
311 if (entry.uuid.equals(uuid)) { in getByUuid()
316 Log.e(TAG, "Context not found for UUID " + uuid); in getByUuid()
DGattDebugUtils.java100 UUID uuid = getUuidExtra(intent); in handleDebugAction() local
104 svc.gattTestCommand(0x04, uuid, null, type, shdl, ehdl, 0, 0); in handleDebugAction()
128 Object uuid = extras != null ? extras.get(extra) : null; in getHandleExtra() local
129 if (uuid != null && uuid.getClass().getName().equals("java.lang.String")) { in getHandleExtra()
/packages/apps/Bluetooth/src/com/android/bluetooth/sdp/
DSdpManager.java80 private native boolean sdpSearchNative(byte[] address, byte[] uuid); in sdpSearchNative() argument
113 SdpSearchInstance(int status, BluetoothDevice device, ParcelUuid uuid) { in SdpSearchInstance() argument
115 this.mUuid = uuid; in SdpSearchInstance()
183 ParcelUuid uuid = Utils.byteArrayToUuid(uuidBytes)[0]; in getSearchInstance() local
186 .equals(uuid)) { in getSearchInstance()
193 boolean isSearching(BluetoothDevice device, ParcelUuid uuid) { in isSearching() argument
197 .equals(uuid)) { in isSearching()
240 void sdpMasRecordFoundCallback(int status, byte[] address, byte[] uuid, int masInstanceId, in sdpMasRecordFoundCallback() argument
245 SdpSearchInstance inst = sSdpSearchTracker.getSearchInstance(address, uuid); in sdpMasRecordFoundCallback()
257 Log.d(TAG, "UUID: " + Arrays.toString(uuid)); in sdpMasRecordFoundCallback()
[all …]
/packages/services/BuiltInPrintService/src/com/android/bips/discovery/
DDiscoveredPrinter.java36 public final Uri uuid; field in DiscoveredPrinter
61 public DiscoveredPrinter(Uri uuid, String name, List<Uri> paths, String location) { in DiscoveredPrinter() argument
62 this.uuid = uuid; in DiscoveredPrinter()
77 public DiscoveredPrinter(Uri uuid, String name, Uri path, String location) { in DiscoveredPrinter() argument
78 this(uuid, name, Collections.singletonList(path), location); in DiscoveredPrinter()
84 Uri uuid = null, path = null; in DiscoveredPrinter() local
91 uuid = Uri.parse(reader.nextString()); in DiscoveredPrinter()
109 this.uuid = uuid; in DiscoveredPrinter()
121 return uuid != null ? uuid : path; in getUri()
156 if (uuid != null) { in write()
[all …]
DManualDiscovery.java208 Uri uuid = TextUtils.isEmpty(capabilities.uuid) ? null : Uri.parse(capabilities.uuid); in handleCapabilities() local
212 DiscoveredPrinter resolvedPrinter = new DiscoveredPrinter(uuid, name, printerPath, in handleCapabilities()
/packages/apps/Bluetooth/src/com/android/bluetooth/opp/
DBluetoothOppPreference.java100 private String getChannelKey(BluetoothDevice remoteDevice, int uuid) { in getChannelKey() argument
101 return remoteDevice.getAddress() + "_" + Integer.toHexString(uuid); in getChannelKey()
117 public int getChannel(BluetoothDevice remoteDevice, int uuid) { in getChannel() argument
118 String key = getChannelKey(remoteDevice, uuid); in getChannel()
127 "getChannel for " + remoteDevice + "_" + Integer.toHexString(uuid) + " as " in getChannel()
146 public void setChannel(BluetoothDevice remoteDevice, int uuid, int channel) { in setChannel() argument
148 Log.v(TAG, "Setchannel for " + remoteDevice + "_" + Integer.toHexString(uuid) + " to " in setChannel()
151 if (channel != getChannel(remoteDevice, uuid)) { in setChannel()
152 String key = getChannelKey(remoteDevice, uuid); in setChannel()
160 public void removeChannel(BluetoothDevice remoteDevice, int uuid) { in removeChannel() argument
[all …]
/packages/services/BuiltInPrintService/src/com/android/bips/ipp/
DCertificateStore.java55 public void put(String uuid, byte[] certificate) { in put() argument
56 byte[] oldCertificate = mCertificates.put(uuid, certificate); in put()
59 if (DEBUG) Log.d(TAG, "New certificate uuid=" + uuid + " len=" + certificate.length); in put()
65 public void remove(String uuid) { in remove() argument
66 if (mCertificates.remove(uuid) != null) { in remove()
72 public byte[] get(String uuid) { in get() argument
73 return mCertificates.get(uuid); in get()
129 String uuid = null; in loadItem() local
136 uuid = reader.nextString(); in loadItem()
149 if (uuid != null && pubkey != null) { in loadItem()
[all …]
DCapabilitiesCache.java178 capabilities.certificate = mService.getCertificateStore().get(capabilities.uuid); in get()
278 if (!TextUtils.isEmpty(capabilities.uuid)) { in accept()
279 capUuid = Uri.parse(capabilities.uuid); in accept()
281 if (printer.uuid != null && !printer.uuid.equals(capUuid)) { in accept()
299 capabilities.certificate = mService.getCertificateStore().get(capabilities.uuid); in accept()
/packages/apps/Bluetooth/jni/
Dcom_android_bluetooth_sdp.cpp113 jbyte* uuid = env->GetByteArrayElements(uuidObj, NULL); in sdpSearchNative() local
114 if (!uuid) { in sdpSearchNative()
119 ALOGD("%s UUID %.*s", __func__, 16, (uint8_t*)uuid); in sdpSearchNative()
122 (RawAddress*)addr, Uuid::From128BitBE((uint8_t*)uuid)); in sdpSearchNative()
128 if (uuid) env->ReleaseByteArrayElements(uuidObj, uuid, 0); in sdpSearchNative()
142 ScopedLocalRef<jbyteArray> uuid(sCallbackEnv.get(), in sdp_search_callback() local
144 if (!uuid.get()) return; in sdp_search_callback()
148 sCallbackEnv->SetByteArrayRegion(uuid.get(), 0, sizeof(Uuid), in sdp_search_callback()
168 addr.get(), uuid.get(), (jint)record->mas.mas_instance_id, in sdp_search_callback()
179 addr.get(), uuid.get(), (jint)record->mns.hdr.l2cap_psm, in sdp_search_callback()
[all …]
Dcom_android_bluetooth_gatt.cpp44 #define UUID_PARAMS(uuid) uuid_lsb(uuid), uuid_msb(uuid) argument
55 static uint64_t uuid_lsb(const Uuid& uuid) { in uuid_lsb() argument
58 auto uu = uuid.To128BitBE(); in uuid_lsb()
67 static uint64_t uuid_msb(const Uuid& uuid) { in uuid_msb() argument
70 auto uu = uuid.To128BitBE(); in uuid_msb()
469 ScopedLocalRef<jobject> uuid( in fillGattDbElementArray() local
471 uuid_msb(curr.uuid), uuid_lsb(curr.uuid))); in fillGattDbElementArray()
473 env->SetObjectField(element.get(), fid, uuid.get()); in fillGattDbElementArray()
563 void btgatts_register_app_cb(int status, int server_if, const Uuid& uuid) { in btgatts_register_app_cb() argument
567 server_if, UUID_PARAMS(uuid)); in btgatts_register_app_cb()
[all …]
/packages/modules/ExtServices/src/android/ext/services/storage/
DCacheQuotaServiceImpl.java45 String uuid = request.getVolumeUuid(); in onComputeCacheQuotaHints() local
46 List<CacheQuotaHint> listForUuid = byUuid.get(uuid); in onComputeCacheQuotaHints()
49 byUuid.put(uuid, listForUuid); in onComputeCacheQuotaHints()
89 String uuid = requestListEntry.getKey(); in onComputeCacheQuotaHints()
90 long reservedSize = getReservedCacheSize(uuid); in onComputeCacheQuotaHints()
118 private long getReservedCacheSize(String uuid) { in getReservedCacheSize() argument
124 if (uuid == StorageManager.UUID_PRIVATE_INTERNAL) { // regular equals because of null in getReservedCacheSize()
127 final VolumeInfo vol = storageManager.findVolumeByUuid(uuid); in getReservedCacheSize()
/packages/providers/MediaProvider/src/com/android/providers/media/util/
DIsoInterface.java100 public UUID uuid; field in IsoInterface.Box
161 box.uuid = readUuid(fd); in parseNextBox()
163 Log.v(TAG, prefix + " UUID " + box.uuid); in parseNextBox()
251 public @NonNull long[] getBoxRanges(@NonNull UUID uuid) { in getBoxRanges() argument
254 if (box.type == BOX_UUID && Objects.equals(box.uuid, uuid)) { in getBoxRanges()
277 public @Nullable byte[] getBoxBytes(@NonNull UUID uuid) { in getBoxBytes() argument
279 if (box.type == BOX_UUID && Objects.equals(box.uuid, uuid)) { in getBoxBytes()
/packages/services/Car/service/src/com/android/car/trust/
DCarTrustAgentBleManager.java201 UUID uuid = characteristic.getUuid(); in onCharacteristicWrite() local
203 Log.d(TAG, "onCharacteristicWrite received uuid: " + uuid); in onCharacteristicWrite()
207 resolveBLEVersion(device, value, uuid); in onCharacteristicWrite()
220 handleClientAckMessage(device, uuid); in onCharacteristicWrite()
235 sendAcknowledgmentMessage(device, uuid); in onCharacteristicWrite()
239 if (uuid.equals(mEnrollmentClientWriteUuid)) { in onCharacteristicWrite()
244 } else if (uuid.equals(mUnlockClientWriteUuid)) { in onCharacteristicWrite()
642 private BluetoothGattCharacteristic getCharacteristicForWrite(UUID uuid) { in getCharacteristicForWrite() argument
643 if (uuid.equals(mEnrollmentClientWriteUuid)) { in getCharacteristicForWrite()
647 if (uuid.equals(mUnlockClientWriteUuid)) { in getCharacteristicForWrite()
/packages/apps/Bluetooth/src/com/android/bluetooth/avrcpcontroller/
DAvrcpCoverArtManager.java63 public DownloadEvent(String uuid, Uri uri) { in DownloadEvent() argument
64 mImageUuid = uuid; in DownloadEvent()
110 public String getUuidHandle(String uuid) { in getUuidHandle() argument
111 return mHandles.get(uuid); in getUuidHandle()
242 public String getHandleForUuid(BluetoothDevice device, String uuid) { in getHandleForUuid() argument
244 if (session == null || uuid == null) return null; in getHandleForUuid()
245 return session.getUuidHandle(uuid); in getHandleForUuid()
DAvrcpControllerStateMachine.java367 for (String uuid : unusedArtwork) { in removeUnusedArtworkFromBrowseTree()
368 if (!uuid.equals(currentTrackUuid)) { in removeUnusedArtworkFromBrowseTree()
369 mCoverArtManager.removeImage(mDevice, uuid); in removeUnusedArtworkFromBrowseTree()
608 String uuid = event.getUuid(); in processMessage() local
610 logD("Received image for " + uuid + " at " + uri.toString()); in processMessage()
614 boolean addedArtwork = mAddressedPlayer.notifyImageDownload(uuid, uri); in processMessage()
622 Set<BrowseTree.BrowseNode> nodes = mBrowseTree.notifyImageDownload(uuid, uri); in processMessage()
629 removeUnusedArtwork(uuid); in processMessage()
1042 String uuid = track.getCoverArtUuid(); in downloadImageIfNeeded()
1044 if (uuid != null) { in downloadImageIfNeeded()
[all …]
DBrowseTree.java455 for (String uuid : mCoverArtMap.keySet()) { in getAndClearUnusedCoverArt()
456 if (mCoverArtMap.get(uuid).isEmpty()) { in getAndClearUnusedCoverArt()
457 unused.add(uuid); in getAndClearUnusedCoverArt()
460 for (String uuid : unused) { in getAndClearUnusedCoverArt()
461 mCoverArtMap.remove(uuid); in getAndClearUnusedCoverArt()
471 synchronized Set<BrowseNode> notifyImageDownload(String uuid, Uri uri) { in notifyImageDownload() argument
473 ArrayList<String> nodes = getNodesUsingCoverArt(uuid); in notifyImageDownload()
479 indicateCoverArtUnused(nodeId, uuid); in notifyImageDownload()
DAvrcpPlayer.java189 public synchronized boolean notifyImageDownload(String uuid, Uri imageUri) { in notifyImageDownload() argument
190 if (DBG) Log.d(TAG, "Got an image download -- uuid=" + uuid + ", uri=" + imageUri); in notifyImageDownload()
191 if (uuid == null || imageUri == null || mCurrentTrack == null) return false; in notifyImageDownload()
192 if (uuid.equals(mCurrentTrack.getCoverArtUuid())) { in notifyImageDownload()
194 if (DBG) Log.d(TAG, "Image UUID '" + uuid + "' was added to current track."); in notifyImageDownload()
/packages/apps/Bluetooth/src/com/android/bluetooth/btservice/
DBluetoothSocketManagerBinder.java44 BluetoothDevice device, int type, ParcelUuid uuid, int port, int flag) { in connectSocket() argument
51 Utils.uuidToByteArray(uuid), in connectSocket()
59 int type, String serviceName, ParcelUuid uuid, int port, int flag) { in createSocketChannel() argument
66 Utils.uuidToByteArray(uuid), in createSocketChannel()
/packages/apps/Bluetooth/src/com/android/bluetooth/
DUtils.java177 UUID uuid = pUuid.getUuid(); in uuidToByteArray() local
178 msb = uuid.getMostSignificantBits(); in uuidToByteArray()
179 lsb = uuid.getLeastSignificantBits(); in uuidToByteArray()
189 UUID uuid; in uuidsToByteArray() local
192 uuid = uuids[i].getUuid(); in uuidsToByteArray()
193 msb = uuid.getMostSignificantBits(); in uuidsToByteArray()
194 lsb = uuid.getLeastSignificantBits(); in uuidsToByteArray()
204 UUID uuid; in byteArrayToUuid() local
/packages/apps/Settings/tests/unit/src/com/android/settings/print/
DPrintJobSettingsActivityTest.java95 UUID uuid = UUID.randomUUID(); in viewPrintJobSettings() local
104 callback.onLayoutFinished(new PrintDocumentInfo.Builder(uuid.toString()).build(), in viewPrintJobSettings()
123 PrintJob printJob = pm.print(uuid.toString(), adapter, null); in viewPrintJobSettings()
138 + uuid.toString())), 5000); in viewPrintJobSettings()

123