/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/avrcp/ |
D | AvrcpCoverArtStorage.java | 65 String imageHandle = null; in storeImage() local 75 imageHandle = mImageHandles.get(hash); in storeImage() 76 debug("Sending back existing handle '" + imageHandle + "'"); in storeImage() 77 return imageHandle; in storeImage() 80 imageHandle = getNextImageHandle(); in storeImage() 81 if (imageHandle != null) { in storeImage() 82 mImageHandles.put(hash, imageHandle); in storeImage() 86 if (imageHandle != null) { in storeImage() 87 debug("Image " + coverArt + " stored at handle '" + imageHandle + "'"); in storeImage() 88 coverArt.setImageHandle(imageHandle); in storeImage() [all …]
|
D | AvrcpBipObexServer.java | 192 String imageHandle = (String) request.getHeader(HEADER_ID_IMG_HANDLE); in handleGetImageThumbnail() local 194 debug("Received GetImageThumbnail(handle='" + imageHandle + "')"); in handleGetImageThumbnail() 196 if (imageHandle == null) { in handleGetImageThumbnail() 201 if (!isImageHandleValid(imageHandle)) { in handleGetImageThumbnail() 206 CoverArt image = mAvrcpCoverArtService.getImage(imageHandle); in handleGetImageThumbnail() 208 warn("No image stored at handle '" + imageHandle + "'"); in handleGetImageThumbnail() 224 String imageHandle = (String) request.getHeader(HEADER_ID_IMG_HANDLE); in handleGetImageProperties() local 226 debug("Received GetImageProperties(handle='" + imageHandle + "')"); in handleGetImageProperties() 228 if (imageHandle == null) { in handleGetImageProperties() 233 if (!isImageHandleValid(imageHandle)) { in handleGetImageProperties() [all …]
|
D | AvrcpTargetService.java | 403 String imageHandle = mAvrcpCoverArtService.storeImage(metadata.image); in getCurrentSongInfo() local 404 if (imageHandle != null) metadata.image.setImageHandle(imageHandle); in getCurrentSongInfo() 437 String imageHandle = null; in getNowPlayingList() local 444 imageHandle = mAvrcpCoverArtService.storeImage(metadata.image); in getNowPlayingList() 445 if (imageHandle != null) { in getNowPlayingList() 446 metadata.image.setImageHandle(imageHandle); in getNowPlayingList() 453 imageHandle = mAvrcpCoverArtService.storeImage(currentTrack.image); in getNowPlayingList() 454 if (imageHandle != null) { in getNowPlayingList() 455 currentTrack.image.setImageHandle(imageHandle); in getNowPlayingList()
|
D | AvrcpCoverArtService.java | 153 public CoverArt getImage(String imageHandle) { in getImage() argument 154 debug("getImage(" + imageHandle + ")"); in getImage() 155 return mStorage.getImage(imageHandle); in getImage()
|
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/avrcpcontroller/ |
D | AvrcpBipClient.java | 107 int status, String imageHandle, BipImageProperties properties); in onGetImagePropertiesComplete() argument 115 void onGetImageComplete(int status, String imageHandle, BipImage image); in onGetImageComplete() argument 200 public boolean getImageProperties(String imageHandle) { in getImageProperties() argument 201 RequestGetImageProperties request = new RequestGetImageProperties(imageHandle); in getImageProperties() 211 public boolean getImage(String imageHandle, BipImageDescriptor descriptor) { in getImage() argument 212 RequestGetImage request = new RequestGetImage(imageHandle, descriptor); in getImage() 366 String imageHandle = null; in notifyCaller() local 371 imageHandle = ((RequestGetImageProperties) request).getImageHandle(); in notifyCaller() 374 mCallback.onGetImagePropertiesComplete(responseCode, imageHandle, properties); in notifyCaller() 377 imageHandle = ((RequestGetImage) request).getImageHandle(); in notifyCaller() [all …]
|
D | AvrcpCoverArtManager.java | 313 String imageHandle = getHandleForUuid(device, imageUuid); in downloadImage() local 314 if (imageHandle == null) { in downloadImage() 318 boolean status = client.getImageProperties(imageHandle); in downloadImage() 425 int status, String imageHandle, BipImageProperties properties) { in onGetImagePropertiesComplete() argument 430 + imageHandle in onGetImagePropertiesComplete() 436 debug(mDevice + ": Download image - handle='" + imageHandle + "'"); in onGetImagePropertiesComplete() 443 + imageHandle in onGetImagePropertiesComplete() 447 client.getImage(imageHandle, descriptor); in onGetImagePropertiesComplete() 451 public void onGetImageComplete(int status, String imageHandle, BipImage image) { in onGetImageComplete() argument 456 + imageHandle in onGetImageComplete() [all …]
|
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/avrcpcontroller/bip/ |
D | BipImage.java | 34 public BipImage(String imageHandle, InputStream inputStream) { in BipImage() argument 35 mImageHandle = imageHandle; in BipImage() 39 public BipImage(String imageHandle, Bitmap image) { in BipImage() argument 40 mImageHandle = imageHandle; in BipImage()
|
D | RequestGetImageProperties.java | 37 public RequestGetImageProperties(String imageHandle) { in RequestGetImageProperties() argument 40 mImageHandle = imageHandle; in RequestGetImageProperties()
|
D | RequestGetImage.java | 39 public RequestGetImage(String imageHandle, BipImageDescriptor descriptor) { in RequestGetImage() argument 43 mImageHandle = imageHandle; in RequestGetImage()
|
/packages/modules/Bluetooth/android/app/jni/ |
D | com_android_bluetooth_avrcp_target.cpp | 368 jstring imageHandle = (jstring) env->CallObjectMethod( in getImageHandleFromJavaObj() local 370 if (imageHandle == nullptr) { in getImageHandleFromJavaObj() 374 const char* value = env->GetStringUTFChars(imageHandle, nullptr); in getImageHandleFromJavaObj() 376 env->ReleaseStringUTFChars(imageHandle, value); in getImageHandleFromJavaObj() 377 env->DeleteLocalRef(imageHandle); in getImageHandleFromJavaObj() 479 std::string imageHandle = getImageHandleFromJavaObj(env, object_image); in getSongInfoFromJavaObj() local 480 if (!imageHandle.empty()) { in getSongInfoFromJavaObj() 482 AttributeEntry(Attribute::DEFAULT_COVER_ART, imageHandle)); in getSongInfoFromJavaObj()
|
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/avrcpcontroller/ |
D | AvrcpControllerStateMachineTest.java | 231 String imageHandle) { in makeTrack() argument 247 if (imageHandle != null) { in makeTrack() 248 builder.setCoverArtHandle(imageHandle); in makeTrack()
|