Searched defs:metadata (Results 1 - 25 of 43) sorted by relevance

12

/frameworks/base/core/java/android/hardware/camera2/impl/
H A DGetCommand.java20 * Getter interface for use with Command pattern metadata value getters.
27 * @param metadata the {@link CameraMetadataNative} object to get the value from.
32 public <T> T getValue(CameraMetadataNative metadata, CameraMetadataNative.Key<T> key); argument
H A DSetCommand.java20 * Setter interface for use with Command pattern metadata value setters.
25 * Set the value in the given metadata.
27 * @param metadata {@link CameraMetadataNative} to set value in.
31 public <T> void setValue(/*inout*/CameraMetadataNative metadata, argument
/frameworks/av/camera/
H A DICameraClient.cpp55 camera_frame_metadata_t *metadata)
62 if (metadata) {
63 data.writeInt32(metadata->number_of_faces);
64 data.write(metadata->faces, sizeof(camera_face_t) * metadata->number_of_faces);
104 camera_frame_metadata_t *metadata = NULL; local
106 metadata = new camera_frame_metadata_t;
107 metadata->number_of_faces = data.readInt32();
108 metadata->faces = (camera_face_t *) data.readInplace(
109 sizeof(camera_face_t) * metadata
54 dataCallback(int32_t msgType, const sp<IMemory>& imageData, camera_frame_metadata_t *metadata) argument
[all...]
H A DCamera.cpp303 camera_frame_metadata_t *metadata)
311 listener->postData(msgType, dataPtr, metadata);
302 dataCallback(int32_t msgType, const sp<IMemory>& dataPtr, camera_frame_metadata_t *metadata) argument
H A DIProCameraUser.cpp106 virtual int submitRequest(camera_metadata_t* metadata, bool streaming) argument
113 CameraMetadata::writeToParcel(data, metadata);
241 camera_metadata_t* metadata; local
242 CameraMetadata::readFromParcel(data, /*out*/&metadata);
248 reply->writeInt32(submitRequest(metadata, streaming));
H A DProCamera.cpp151 // Note that the callee gets a copy of the metadata.
152 int ProCamera::submitRequest(const struct camera_metadata* metadata, argument
158 return c->submitRequest(const_cast<struct camera_metadata*>(metadata),
406 ALOGE("%s: Error while waiting for metadata: %d",
415 // else it was some other stream or metadata
H A DCameraMetadata.cpp126 "%s: Failed to validate metadata structure %p",
174 ALOGE("Update metadata entry: Unknown tag %d", tag);
310 ALOGE("%s: Unable to update metadata entry %s.%s (%x): %s (%d)",
319 "%s: Failed to validate metadata structure after update %p",
393 ALOGE("%s: Can't allocate larger metadata buffer", __FUNCTION__);
417 ALOGE("%s: Can't allocate larger metadata buffer", __FUNCTION__);
432 camera_metadata_t* metadata = NULL; local
442 ALOGE("%s: Failed to read metadata size (error %d %s)",
449 // Special case: zero blob size means zero sized (NULL) metadata.
451 ALOGV("%s: Read 0-sized metadata", __FUNCTION_
518 writeToParcel(Parcel& data, const camera_metadata_t* metadata) argument
595 copy_camera_metadata(reinterpret_cast<void*>(metadataStart), metadataSize, metadata); local
[all...]
/frameworks/av/camera/camera2/
H A DICameraDeviceCallbacks.cpp84 void onResultReceived(const CameraMetadata& metadata, argument
89 data.writeInt32(1); // to mark presence of metadata object
90 metadata.writeToParcel(&data);
147 CameraMetadata metadata; local
149 metadata.readFromParcel(const_cast<Parcel*>(&data));
151 ALOGW("No metadata object is present in result");
159 onResultReceived(metadata, resultExtras);
/frameworks/base/tests/OneMedia/src/com/android/onemedia/playback/
H A DRequestUtils.java37 public static final String EXTRA_KEY_METADATA = "metadata";
57 * @param metadata The metadata for this item
59 public ContentBuilder setMetadata(Bundle metadata) { argument
60 mBundle.putBundle(EXTRA_KEY_METADATA, metadata);
/frameworks/support/v4/kitkat/android/support/v4/media/session/
H A DMediaSessionCompatApi19.java26 private static final String METADATA_KEY_ART = "android.media.metadata.ART";
27 private static final String METADATA_KEY_ALBUM_ART = "android.media.metadata.ALBUM_ART";
28 private static final String METADATA_KEY_USER_RATING = "android.media.metadata.USER_RATING";
29 private static final String METADATA_KEY_RATING = "android.media.metadata.RATING";
35 public static void setMetadata(Object rccObj, Bundle metadata, boolean supportRating) { argument
38 MediaSessionCompatApi14.buildOldMetadata(metadata, editor);
39 addNewMetadata(metadata, editor);
51 static void addNewMetadata(Bundle metadata, RemoteControlClient.MetadataEditor editor) { argument
52 if (metadata.containsKey(METADATA_KEY_RATING)) {
54 metadata
[all...]
/frameworks/av/services/camera/libcameraservice/api1/client2/
H A DFrameProcessor.cpp116 camera_frame_metadata metadata; local
118 metadata.number_of_faces = 0;
128 callbackFaceDetection(client, metadata);
131 metadata.number_of_faces = entry.count / 4;
132 if (metadata.number_of_faces >
136 metadata.number_of_faces, l.mParameters.fastInfo.maxFaces);
184 faces.setCapacity(metadata.number_of_faces);
186 size_t maxFaces = metadata.number_of_faces;
189 metadata.number_of_faces--;
232 metadata
245 const CameraMetadata &metadata = frame.mMetadata; local
362 callbackFaceDetection(sp<Camera2Client> client, const camera_frame_metadata &metadata) argument
[all...]
/frameworks/base/cmds/media/src/com/android/commands/media/
H A DMedia.java199 public void onMetadataChanged(MediaMetadata metadata) { argument
200 String mmString = metadata == null ? null : "title=" + metadata
/frameworks/base/core/java/android/print/
H A DPrintFileDocumentAdapter.java82 Bundle metadata) {
80 onLayout(PrintAttributes oldAttributes, PrintAttributes newAttributes, CancellationSignal cancellationSignal, LayoutResultCallback callback, Bundle metadata) argument
H A DPrintManager.java560 ILayoutResultCallback callback, Bundle metadata, int sequence) {
586 args.arg6 = metadata;
757 Bundle metadata = (Bundle) args.arg6;
765 builder.append("\n preview:").append(metadata.getBoolean(
772 callback, metadata);
559 layout(PrintAttributes oldAttributes, PrintAttributes newAttributes, ILayoutResultCallback callback, Bundle metadata, int sequence) argument
/frameworks/av/services/camera/libcameraservice/api_pro/
H A DProCamera2Client.cpp203 CameraMetadata metadata(request);
205 if (!enforceRequestPermissions(metadata)) {
210 return mDevice->setStreamingRequest(metadata);
212 return mDevice->capture(metadata);
288 // -- Caller owns the newly allocated metadata
307 CameraMetadata metadata;
308 if ( (res = mDevice->createDefaultRequest(templateId, &metadata) ) == OK) {
309 *request = metadata.release();
392 bool ProCamera2Client::enforceRequestPermissions(CameraMetadata& metadata) { argument
410 if (!metadata
[all...]
/frameworks/base/tests/OneMedia/src/com/android/onemedia/
H A DPlayerController.java217 public void onMetadataChanged(MediaMetadata metadata) { argument
218 if (metadata == null) {
221 Log.d(TAG, "Received metadata change, " + metadata.getDescription());
223 mListener.onMetadataChange(metadata);
230 public void onMetadataChange(MediaMetadata metadata); argument
/frameworks/support/v4/ics/android/support/v4/media/session/
H A DMediaSessionCompatApi14.java46 private static final String METADATA_KEY_TITLE = "android.media.metadata.TITLE";
47 private static final String METADATA_KEY_ARTIST = "android.media.metadata.ARTIST";
48 private static final String METADATA_KEY_DURATION = "android.media.metadata.DURATION";
49 private static final String METADATA_KEY_ALBUM = "android.media.metadata.ALBUM";
50 private static final String METADATA_KEY_AUTHOR = "android.media.metadata.AUTHOR";
51 private static final String METADATA_KEY_WRITER = "android.media.metadata.WRITER";
52 private static final String METADATA_KEY_COMPOSER = "android.media.metadata.COMPOSER";
53 private static final String METADATA_KEY_COMPILATION = "android.media.metadata.COMPILATION";
54 private static final String METADATA_KEY_DATE = "android.media.metadata.DATE";
55 private static final String METADATA_KEY_YEAR = "android.media.metadata
70 setMetadata(Object rccObj, Bundle metadata) argument
115 buildOldMetadata(Bundle metadata, RemoteControlClient.MetadataEditor editor) argument
[all...]
/frameworks/support/v7/mediarouter/src/android/support/v7/app/
H A DMediaRouteControllerDialog.java131 * Set the session to use for metadata and transport controls. The dialog
156 MediaMetadataCompat metadata = mMediaController == null ? null
158 mDescription = metadata == null ? null : metadata.getDescription();
390 public void onMetadataChanged(MediaMetadataCompat metadata) { argument
391 mDescription = metadata == null ? null : metadata.getDescription();
/frameworks/support/v7/mediarouter/src/android/support/v7/media/
H A DMediaRouteProvider.java82 MediaRouteProvider(Context context, ProviderMetadata metadata) { argument
88 if (metadata == null) {
91 mMetadata = metadata;
110 * Gets some metadata about the provider's implementation.
/frameworks/base/core/java/android/hardware/camera2/
H A DDngCreator.java44 * pixel data that is otherwise generated by an application. The DNG metadata tags will be
51 * defined in a user-defined colorspace, and have associated metadata that allow for this
56 * For more information on the DNG file format and associated metadata, please refer to the
72 * DNG metadata tags will be generated from the corresponding parameters in the
81 * @param metadata a metadata object to generate tags from.
83 public DngCreator(CameraCharacteristics characteristics, CaptureResult metadata) { argument
84 if (characteristics == null || metadata == null) {
95 Long timestamp = metadata.get(CaptureResult.SENSOR_TIMESTAMP);
101 // Format for metadata
[all...]
/frameworks/base/media/java/android/media/session/
H A DMediaSessionLegacyHelper.java80 public static Bundle getOldMetadata(MediaMetadata metadata, int artworkWidth, argument
84 if (metadata.containsKey(MediaMetadata.METADATA_KEY_ALBUM)) {
86 metadata.getString(MediaMetadata.METADATA_KEY_ALBUM));
88 if (includeArtwork && metadata.containsKey(MediaMetadata.METADATA_KEY_ART)) {
89 Bitmap art = metadata.getBitmap(MediaMetadata.METADATA_KEY_ART);
92 } else if (includeArtwork && metadata.containsKey(MediaMetadata.METADATA_KEY_ALBUM_ART)) {
94 Bitmap art = metadata.getBitmap(MediaMetadata.METADATA_KEY_ALBUM_ART);
98 if (metadata.containsKey(MediaMetadata.METADATA_KEY_ALBUM_ARTIST)) {
100 metadata.getString(MediaMetadata.METADATA_KEY_ALBUM_ARTIST));
102 if (metadata
[all...]
/frameworks/ex/common/java/com/android/common/widget/
H A DGroupingListAdapter.java210 long metadata = ((long)size << 32) | cursorPosition;
212 metadata |= EXPANDED_GROUP_MASK;
214 mGroupMetadata[mGroupCount++] = metadata;
243 long metadata = mGroupMetadata[i];
244 int offset = (int)(metadata & GROUP_OFFSET_MASK);
245 boolean expanded = (metadata & EXPANDED_GROUP_MASK) != 0;
246 int size = (int)((metadata & GROUP_SIZE_MASK) >> 32);
268 public void obtainPositionMetadata(PositionMetadata metadata, int position) { argument
271 if (metadata.listPosition == position) {
341 metadata
[all...]
/frameworks/av/media/libmedia/
H A Dmediaplayer.cpp221 status_t MediaPlayer::getMetadata(bool update_only, bool apply_filter, Parcel *metadata) argument
228 return mPlayer->getMetadata(update_only, apply_filter, metadata);
/frameworks/av/services/camera/libcameraservice/api1/
H A DCameraClient.cpp91 // Enable zoom, error, focus, and metadata messages by default
739 const sp<IMemory>& dataPtr, camera_frame_metadata_t *metadata, void* user) {
751 if (dataPtr == 0 && metadata == NULL) {
759 client->handlePreviewData(msgType, dataPtr, metadata);
771 client->handleGenericData(msgType, dataPtr, metadata);
819 camera_frame_metadata_t *metadata) {
851 copyFrameAndPostCopiedFrame(msgType, c, heap, offset, size, metadata);
855 c->dataCallback(msgType, mem, metadata);
910 const sp<IMemory>& dataPtr, camera_frame_metadata_t *metadata) {
914 c->dataCallback(msgType, dataPtr, metadata);
738 dataCallback(int32_t msgType, const sp<IMemory>& dataPtr, camera_frame_metadata_t *metadata, void* user) argument
817 handlePreviewData(int32_t msgType, const sp<IMemory>& mem, camera_frame_metadata_t *metadata) argument
909 handleGenericData(int32_t msgType, const sp<IMemory>& dataPtr, camera_frame_metadata_t *metadata) argument
927 copyFrameAndPostCopiedFrame( int32_t msgType, const sp<ICameraClient>& client, const sp<IMemoryHeap>& heap, size_t offset, size_t size, camera_frame_metadata_t *metadata) argument
[all...]
/frameworks/av/services/camera/libcameraservice/api2/
H A DCameraDeviceClient.cpp133 CameraMetadata metadata(request->mMetadata);
134 if (metadata.isEmpty()) {
135 ALOGE("%s: Camera %d: Sent empty metadata packet. Rejecting request.",
144 if (!enforceRequestPermissions(metadata)) {
176 metadata.update(ANDROID_REQUEST_OUTPUT_STREAMS, &outputStreamIds[0],
179 metadata.update(ANDROID_REQUEST_ID, &requestId, /*size*/1);
184 metadataRequestList.push_back(metadata);
511 CameraMetadata metadata;
512 if ( (res = mDevice->createDefaultRequest(templateId, &metadata) ) == OK &&
515 request->swap(metadata);
678 enforceRequestPermissions(CameraMetadata& metadata) argument
[all...]

Completed in 499 milliseconds

12