/frameworks/support/v4/ics/android/support/v4/media/session/ |
D | MediaSessionCompatApi14.java | 86 public static void setMetadata(Object rccObj, Bundle metadata) { in setMetadata() argument 89 buildOldMetadata(metadata, editor); in setMetadata() 161 static void buildOldMetadata(Bundle metadata, RemoteControlClient.MetadataEditor editor) { in buildOldMetadata() argument 162 if (metadata == null) { in buildOldMetadata() 165 if (metadata.containsKey(METADATA_KEY_ART)) { in buildOldMetadata() 166 Bitmap art = metadata.getParcelable(METADATA_KEY_ART); in buildOldMetadata() 168 } else if (metadata.containsKey(METADATA_KEY_ALBUM_ART)) { in buildOldMetadata() 170 Bitmap art = metadata.getParcelable(METADATA_KEY_ALBUM_ART); in buildOldMetadata() 173 if (metadata.containsKey(METADATA_KEY_ALBUM)) { in buildOldMetadata() 175 metadata.getString(METADATA_KEY_ALBUM)); in buildOldMetadata() [all …]
|
/frameworks/base/media/java/android/media/session/ |
D | MediaSessionLegacyHelper.java | 77 public static Bundle getOldMetadata(MediaMetadata metadata, int artworkWidth, in getOldMetadata() argument 81 if (metadata.containsKey(MediaMetadata.METADATA_KEY_ALBUM)) { in getOldMetadata() 83 metadata.getString(MediaMetadata.METADATA_KEY_ALBUM)); in getOldMetadata() 85 if (includeArtwork && metadata.containsKey(MediaMetadata.METADATA_KEY_ART)) { in getOldMetadata() 86 Bitmap art = metadata.getBitmap(MediaMetadata.METADATA_KEY_ART); in getOldMetadata() 89 } else if (includeArtwork && metadata.containsKey(MediaMetadata.METADATA_KEY_ALBUM_ART)) { in getOldMetadata() 91 Bitmap art = metadata.getBitmap(MediaMetadata.METADATA_KEY_ALBUM_ART); in getOldMetadata() 95 if (metadata.containsKey(MediaMetadata.METADATA_KEY_ALBUM_ARTIST)) { in getOldMetadata() 97 metadata.getString(MediaMetadata.METADATA_KEY_ALBUM_ARTIST)); in getOldMetadata() 99 if (metadata.containsKey(MediaMetadata.METADATA_KEY_ARTIST)) { in getOldMetadata() [all …]
|
/frameworks/support/v4/kitkat/android/support/v4/media/session/ |
D | MediaSessionCompatApi19.java | 42 public static void setMetadata(Object rccObj, Bundle metadata, long actions) { in setMetadata() argument 45 MediaSessionCompatApi14.buildOldMetadata(metadata, editor); in setMetadata() 46 addNewMetadata(metadata, editor); in setMetadata() 67 static void addNewMetadata(Bundle metadata, RemoteControlClient.MetadataEditor editor) { in addNewMetadata() argument 68 if (metadata == null) { in addNewMetadata() 71 if (metadata.containsKey(METADATA_KEY_YEAR)) { in addNewMetadata() 73 metadata.getLong(METADATA_KEY_YEAR)); in addNewMetadata() 75 if (metadata.containsKey(METADATA_KEY_RATING)) { in addNewMetadata() 77 metadata.getParcelable(METADATA_KEY_RATING)); in addNewMetadata() 79 if (metadata.containsKey(METADATA_KEY_USER_RATING)) { in addNewMetadata() [all …]
|
/frameworks/ex/common/java/com/android/common/widget/ |
D | GroupingListAdapter.java | 210 long metadata = ((long)size << 32) | cursorPosition; in addGroup() local 212 metadata |= EXPANDED_GROUP_MASK; in addGroup() 214 mGroupMetadata[mGroupCount++] = metadata; in addGroup() 243 long metadata = mGroupMetadata[i]; in getCount() local 244 int offset = (int)(metadata & GROUP_OFFSET_MASK); in getCount() 245 boolean expanded = (metadata & EXPANDED_GROUP_MASK) != 0; in getCount() 246 int size = (int)((metadata & GROUP_SIZE_MASK) >> 32); in getCount() 268 public void obtainPositionMetadata(PositionMetadata metadata, int position) { in obtainPositionMetadata() argument 271 if (metadata.listPosition == position) { in obtainPositionMetadata() 341 metadata.itemType = ITEM_TYPE_STANDALONE; in obtainPositionMetadata() [all …]
|
/frameworks/base/core/jni/ |
D | android_hardware_camera2_CameraMetadata.cpp | 83 /*out*/CameraMetadata* metadata) { in CameraMetadata_getNativeMetadata() argument 89 if (!metadata) { in CameraMetadata_getNativeMetadata() 99 *metadata = *nativePtr; in CameraMetadata_getNativeMetadata() 116 static status_t updateAny(CameraMetadata *metadata, in updateAny() 142 return metadata->update(tag, dataPtr, dataCount); \ in updateAny() 193 CameraMetadata* metadata = CameraMetadata_getPointerNoThrow(env, thiz); in CameraMetadata_getPointerThrow() local 194 if (metadata == NULL) { in CameraMetadata_getPointerThrow() 202 return metadata; in CameraMetadata_getPointerThrow() 229 CameraMetadata* metadata = CameraMetadata_getPointerThrow(env, thiz); in CameraMetadata_isEmpty() local 231 if (metadata == NULL) { in CameraMetadata_isEmpty() [all …]
|
D | android_hardware_Camera.cpp | 78 camera_frame_metadata_t *metadata); 81 void postMetadata(JNIEnv *env, int32_t msgType, camera_frame_metadata_t *metadata); 301 camera_frame_metadata_t *metadata) in postData() argument 342 if (metadata && (msgType & CAMERA_MSG_PREVIEW_METADATA)) { in postData() 343 postMetadata(env, CAMERA_MSG_PREVIEW_METADATA, metadata); in postData() 358 void JNICameraContext::postMetadata(JNIEnv *env, int32_t msgType, camera_frame_metadata_t *metadata) in postMetadata() argument 361 obj = (jobjectArray) env->NewObjectArray(metadata->number_of_faces, in postMetadata() 368 for (int i = 0; i < metadata->number_of_faces; i++) { in postMetadata() 373 env->SetIntField(rect, fields.rect_left, metadata->faces[i].rect[0]); in postMetadata() 374 env->SetIntField(rect, fields.rect_top, metadata->faces[i].rect[1]); in postMetadata() [all …]
|
/frameworks/av/services/camera/libcameraservice/api1/client2/ |
D | FrameProcessor.cpp | 122 camera_frame_metadata metadata; in processFaceDetect() local 124 metadata.number_of_faces = 0; in processFaceDetect() 134 callbackFaceDetection(client, metadata); in processFaceDetect() 137 metadata.number_of_faces = entry.count / 4; in processFaceDetect() 138 if (metadata.number_of_faces > in processFaceDetect() 142 metadata.number_of_faces, l.mParameters.fastInfo.maxFaces); in processFaceDetect() 190 faces.setCapacity(metadata.number_of_faces); in processFaceDetect() 192 size_t maxFaces = metadata.number_of_faces; in processFaceDetect() 195 metadata.number_of_faces--; in processFaceDetect() 238 metadata.faces = faces.editArray(); in processFaceDetect() [all …]
|
/frameworks/av/camera/ |
D | ICameraClient.cpp | 59 camera_frame_metadata_t *metadata) in dataCallback() argument 66 if (metadata) { in dataCallback() 67 data.writeInt32(metadata->number_of_faces); in dataCallback() 68 data.write(metadata->faces, sizeof(camera_face_t) * metadata->number_of_faces); in dataCallback() 118 camera_frame_metadata_t *metadata = NULL; in onTransact() local 120 metadata = new camera_frame_metadata_t; in onTransact() 121 metadata->number_of_faces = data.readInt32(); in onTransact() 122 metadata->faces = (camera_face_t *) data.readInplace( in onTransact() 123 sizeof(camera_face_t) * metadata->number_of_faces); in onTransact() 125 dataCallback(msgType, imageData, metadata); in onTransact() [all …]
|
D | CameraMetadata.cpp | 443 camera_metadata_t* metadata = NULL; in readFromParcel() local 508 metadata = allocate_copy_camera_metadata_checked(tmp, metadataSize); in readFromParcel() 509 if (metadata == NULL) { in readFromParcel() 519 ALOGV("%s: Set out metadata to %p", __FUNCTION__, metadata); in readFromParcel() 520 *out = metadata; in readFromParcel() 521 } else if (metadata != NULL) { in readFromParcel() 522 ALOGV("%s: Freed camera metadata at %p", __FUNCTION__, metadata); in readFromParcel() 523 free_camera_metadata(metadata); in readFromParcel() 530 const camera_metadata_t* metadata) { in writeToParcel() argument 553 if (metadata == NULL) { in writeToParcel() [all …]
|
/frameworks/av/radio/ |
D | IRadio.cpp | 178 radio_metadata_t *metadata = info->metadata; in getProgramInformation() local 185 info->metadata = metadata; in getProgramInformation() 186 if (metadata == NULL) { in getProgramInformation() 193 metadata = in getProgramInformation() 195 if (metadata == NULL) { in getProgramInformation() 198 reply.read(metadata, size); in getProgramInformation() 199 status = radio_metadata_add_metadata(&info->metadata, metadata); in getProgramInformation() 200 free(metadata); in getProgramInformation() 307 status_t status = radio_metadata_allocate(&info.metadata, 0, 0); in onTransact() 315 int count = radio_metadata_get_count(info.metadata); in onTransact() [all …]
|
D | Radio.cpp | 248 if (event->info.metadata != NULL) { in onEvent() 249 event->info.metadata = in onEvent() 250 (radio_metadata_t *)((char *)event + (size_t)event->info.metadata); in onEvent() 254 if (event->metadata != NULL) { in onEvent() 255 event->metadata = in onEvent() 256 (radio_metadata_t *)((char *)event + (size_t)event->metadata); in onEvent()
|
/frameworks/base/core/java/android/hardware/camera2/impl/ |
D | CameraMetadataNative.java | 300 CameraMetadataNative metadata = new CameraMetadataNative(); 301 metadata.readFromParcel(in); 302 return metadata; 486 public <T> T getValue(CameraMetadataNative metadata, Key<T> key) { in GetCommand() argument 487 return (T) metadata.getAvailableFormats(); in GetCommand() 494 public <T> T getValue(CameraMetadataNative metadata, Key<T> key) { in GetCommand() argument 495 return (T) metadata.getFaces(); in GetCommand() 502 public <T> T getValue(CameraMetadataNative metadata, Key<T> key) { in GetCommand() argument 503 return (T) metadata.getFaceRectangles(); in GetCommand() 511 public <T> T getValue(CameraMetadataNative metadata, Key<T> key) { in CameraCharacteristics.SCALER_STREAM_CONFIGURATION_MAP.getNativeKey() argument [all …]
|
/frameworks/base/media/java/android/media/ |
D | RemoteController.java | 403 protected MetadataEditor(Bundle metadata, long editableKeys) { in MetadataEditor() argument 404 mEditorMetadata = metadata; in MetadataEditor() 407 mEditorArtwork = (Bitmap) metadata.getParcelable( in MetadataEditor() 468 public void onMetadataChanged(MediaMetadata metadata) { in onMetadataChanged() argument 469 onNewMediaMetadata(metadata); in onMetadataChanged() 620 MediaMetadata metadata = controller.getMetadata(); in updateController() local 622 0 /* arg1 ignored */, 0 /* arg2 ignored*/, metadata /* obj */, 0 /*delay*/); in updateController() 649 private void onNewMediaMetadata(MediaMetadata metadata) { in onNewMediaMetadata() argument 650 if (metadata == null) { in onNewMediaMetadata() 662 Bundle legacyMetadata = MediaSessionLegacyHelper.getOldMetadata(metadata, in onNewMediaMetadata()
|
/frameworks/av/camera/ndk/ |
D | NdkCameraMetadata.cpp | 64 void ACameraMetadata_free(ACameraMetadata* metadata) { in ACameraMetadata_free() argument 66 if (metadata != nullptr) { in ACameraMetadata_free() 67 delete metadata; in ACameraMetadata_free()
|
/frameworks/av/services/camera/libcameraservice/api1/ |
D | CameraClient.cpp | 518 VideoNativeHandleMetadata *metadata = (VideoNativeHandleMetadata*)(dataPtr->pointer()); in releaseRecordingFrameHandle() local 519 metadata->eType = kMetadataBufferTypeNativeHandleSource; in releaseRecordingFrameHandle() 520 metadata->pHandle = handle; in releaseRecordingFrameHandle() 787 const sp<IMemory>& dataPtr, camera_frame_metadata_t *metadata, void* user) { in dataCallback() argument 794 if (dataPtr == 0 && metadata == NULL) { in dataCallback() 802 client->handlePreviewData(msgType, dataPtr, metadata); in dataCallback() 814 client->handleGenericData(msgType, dataPtr, metadata); in dataCallback() 863 camera_frame_metadata_t *metadata) { in handlePreviewData() argument 895 copyFrameAndPostCopiedFrame(msgType, c, heap, offset, size, metadata); in handlePreviewData() 899 c->dataCallback(msgType, mem, metadata); in handlePreviewData() [all …]
|
D | CameraClient.h | 104 camera_frame_metadata_t *metadata, void* user); 109 camera_frame_metadata_t *metadata); 115 camera_frame_metadata_t *metadata); 123 camera_frame_metadata_t *metadata);
|
/frameworks/compile/libbcc/lib/Renderscript/ |
D | RSScriptGroupFusion.cpp | 42 bcinfo::MetadataExtractor &metadata = *source.getMetadata(); in getInvokeFunction() local 43 const char* functionName = metadata.getExportFuncNameList()[slot]; in getInvokeFunction() 55 bcinfo::MetadataExtractor &metadata = *source->getMetadata(); in getFunction() local 56 const char* functionName = metadata.getExportForEachNameList()[slot]; in getFunction() 63 if (metadata.getExportForEachInputCountList()[slot] > 1) { in getFunction() 70 *signature = metadata.getExportForEachSignatureList()[slot]; in getFunction() 100 bcinfo::MetadataExtractor &metadata = *source->getMetadata(); in getFusedFuncSig() local 102 if (metadata.getExportForEachInputCountList()[slot] > 1) { in getFusedFuncSig() 108 signature = metadata.getExportForEachSignatureList()[slot]; in getFusedFuncSig()
|
/frameworks/av/include/camera/ndk/ |
D | NdkCameraMetadata.h | 191 const ACameraMetadata* metadata, uint32_t tag, /*out*/ACameraMetadata_const_entry* entry); 208 const ACameraMetadata* metadata, /*out*/int32_t* numEntries, /*out*/const uint32_t** tags); 227 void ACameraMetadata_free(ACameraMetadata* metadata);
|
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/integration/ |
D | CameraDeviceBinderTest.java | 178 CameraMetadataNative metadata = null; in createDefaultBuilder() local 179 assertTrue(metadata.isEmpty()); in createDefaultBuilder() 181 metadata = mCameraUser.createDefaultRequest(TEMPLATE_PREVIEW); in createDefaultBuilder() 182 assertFalse(metadata.isEmpty()); in createDefaultBuilder() 184 CaptureRequest.Builder request = new CaptureRequest.Builder(metadata, /*reprocess*/false, in createDefaultBuilder() 187 assertFalse(metadata.isEmpty()); in createDefaultBuilder() 250 CameraMetadataNative metadata = null; in testCreateDefaultRequest() local 251 assertTrue(metadata.isEmpty()); in testCreateDefaultRequest() 253 metadata = mCameraUser.createDefaultRequest(TEMPLATE_PREVIEW); in testCreateDefaultRequest() 254 assertFalse(metadata.isEmpty()); in testCreateDefaultRequest()
|
/frameworks/base/libs/androidfw/ |
D | BackupHelpers.cpp | 222 file_metadata_v1 metadata; in write_update_file() local 229 if (sizeof(metadata) != 16) { in write_update_file() 233 bytesLeft = fileSize + sizeof(metadata); in write_update_file() 241 metadata.version = tolel(CURRENT_METADATA_VERSION); in write_update_file() 242 metadata.mode = tolel(mode); in write_update_file() 243 metadata.undefined_1 = metadata.undefined_2 = 0; in write_update_file() 244 err = dataStream->WriteEntityData(&metadata, sizeof(metadata)); in write_update_file() 249 bytesLeft -= sizeof(metadata); // bytesLeft should == fileSize now in write_update_file() 757 file_metadata_v1 metadata; in WriteFile() local 758 amt = in->ReadEntityData(&metadata, sizeof(metadata)); in WriteFile() [all …]
|
/frameworks/ex/common/tests/src/com/android/common/widget/ |
D | GroupingListAdapterTests.java | 303 GroupingListAdapter.PositionMetadata metadata = new GroupingListAdapter.PositionMetadata(); in assertPositionMetadata() local 304 mAdapter.obtainPositionMetadata(metadata, position); in assertPositionMetadata() 305 assertEquals(itemType, metadata.itemType); in assertPositionMetadata() 306 if (metadata.itemType == ITEM_TYPE_GROUP_HEADER) { in assertPositionMetadata() 307 assertEquals(isExpanded, metadata.isExpanded); in assertPositionMetadata() 309 assertEquals(cursorPosition, metadata.cursorPosition); in assertPositionMetadata()
|
/frameworks/base/tests/OneMedia/src/com/android/onemedia/ |
D | PlayerController.java | 217 public void onMetadataChanged(MediaMetadata metadata) { in onMetadataChanged() argument 218 if (metadata == null) { in onMetadataChanged() 221 Log.d(TAG, "Received metadata change, " + metadata.getDescription()); in onMetadataChanged() 223 mListener.onMetadataChange(metadata); in onMetadataChanged() 230 public void onMetadataChange(MediaMetadata metadata); in onMetadataChange() argument
|
/frameworks/support/v4/java/android/support/v4/media/session/ |
D | MediaSessionCompat.java | 418 public void setMetadata(MediaMetadataCompat metadata) { in setMetadata() argument 419 mImpl.setMetadata(metadata); in setMetadata() 1125 void setMetadata(MediaMetadataCompat metadata); in setMetadata() argument 1425 private MediaMetadataCompat cloneMetadataIfNeeded(MediaMetadataCompat metadata) { in cloneMetadataIfNeeded() argument 1426 if (metadata == null) { in cloneMetadataIfNeeded() 1428 } else if (!metadata.containsKey(MediaMetadataCompat.METADATA_KEY_ART) in cloneMetadataIfNeeded() 1429 && !metadata.containsKey(MediaMetadataCompat.METADATA_KEY_ALBUM_ART)) { in cloneMetadataIfNeeded() 1430 return metadata; in cloneMetadataIfNeeded() 1432 MediaMetadataCompat.Builder builder = new MediaMetadataCompat.Builder(metadata); in cloneMetadataIfNeeded() 1433 Bitmap artBitmap = metadata.getBitmap(MediaMetadataCompat.METADATA_KEY_ART); in cloneMetadataIfNeeded() [all …]
|
/frameworks/av/media/libstagefright/ |
D | FLACExtractor.cpp | 166 void metadataCallback(const FLAC__StreamMetadata *metadata); 195 const FLAC__StreamMetadata *metadata, 253 const FLAC__StreamMetadata *metadata, void *client_data) in metadata_callback() argument 255 ((FLACParser *) client_data)->metadataCallback(metadata); in metadata_callback() 335 void FLACParser::metadataCallback(const FLAC__StreamMetadata *metadata) in metadataCallback() argument 337 switch (metadata->type) { in metadataCallback() 340 mStreamInfo = metadata->data.stream_info; in metadataCallback() 349 vc = &metadata->data.vorbis_comment; in metadataCallback() 362 const FLAC__StreamMetadata_Picture *p = &metadata->data.picture; in metadataCallback() 369 ALOGW("FLACParser::metadataCallback unexpected type %u", metadata->type); in metadataCallback()
|
/frameworks/av/services/camera/libcameraservice/ |
D | CameraFlashlight.cpp | 325 CameraMetadata metadata; in hasFlashUnit() local 326 metadata = info.static_camera_characteristics; in hasFlashUnit() 328 metadata.find(ANDROID_FLASH_INFO_AVAILABLE); in hasFlashUnit() 428 CameraMetadata metadata; in getSmallestSurfaceSize() local 429 metadata = info.static_camera_characteristics; in getSmallestSurfaceSize() 431 metadata.find(ANDROID_SCALER_AVAILABLE_STREAM_CONFIGURATIONS); in getSmallestSurfaceSize() 448 metadata.find(ANDROID_SCALER_AVAILABLE_PROCESSED_SIZES); in getSmallestSurfaceSize() 543 CameraMetadata metadata; in hasFlashUnitLocked() local 544 metadata = info.static_camera_characteristics; in hasFlashUnitLocked() 546 metadata.find(ANDROID_FLASH_INFO_AVAILABLE); in hasFlashUnitLocked()
|