/frameworks/native/services/surfaceflinger/tests/unittests/ |
D | LayerMetadataTest.cpp | 48 LayerMetadata metadata; in TEST_F() local 50 ASSERT_EQ(0, metadata.mMap.size()); in TEST_F() 53 ASSERT_EQ(3, metadata.getInt32(4, 3)); in TEST_F() 56 ASSERT_EQ(5, metadata.getInt32(4, 5)); in TEST_F() 58 metadata.setInt32(4, 2); in TEST_F() 59 ASSERT_EQ(2, metadata.getInt32(4, 0)); in TEST_F() 62 metadata.mMap[2] = std::vector<uint8_t>{'a', 'b'}; in TEST_F() 63 ASSERT_EQ(0, metadata.getInt32(2, 0)); in TEST_F() 66 metadata.writeToParcel(&p); in TEST_F() 71 ASSERT_EQ(metadata.mMap, reconstructed.mMap); in TEST_F() [all …]
|
/frameworks/base/core/jni/ |
D | android_hardware_camera2_CameraMetadata.cpp | 82 /*out*/CameraMetadata* metadata) { in CameraMetadata_getNativeMetadata() argument 88 if (!metadata) { in CameraMetadata_getNativeMetadata() 98 *metadata = *nativePtr; in CameraMetadata_getNativeMetadata() 115 static status_t updateAny(CameraMetadata *metadata, in updateAny() 141 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); 84 void postMetadata(JNIEnv *env, int32_t msgType, camera_frame_metadata_t *metadata); 308 camera_frame_metadata_t *metadata) in postData() argument 349 if (metadata && (msgType & CAMERA_MSG_PREVIEW_METADATA)) { in postData() 350 postMetadata(env, CAMERA_MSG_PREVIEW_METADATA, metadata); in postData() 388 void JNICameraContext::postMetadata(JNIEnv *env, int32_t msgType, camera_frame_metadata_t *metadata) in postMetadata() argument 391 obj = (jobjectArray) env->NewObjectArray(metadata->number_of_faces, in postMetadata() 398 for (int i = 0; i < metadata->number_of_faces; i++) { in postMetadata() 403 env->SetIntField(rect, fields.rect_left, metadata->faces[i].rect[0]); in postMetadata() 404 env->SetIntField(rect, fields.rect_top, metadata->faces[i].rect[1]); in postMetadata() [all …]
|
/frameworks/base/media/java/android/media/session/ |
D | MediaSessionLegacyHelper.java | 78 public static Bundle getOldMetadata(MediaMetadata metadata, int artworkWidth, in getOldMetadata() argument 82 if (metadata.containsKey(MediaMetadata.METADATA_KEY_ALBUM)) { in getOldMetadata() 84 metadata.getString(MediaMetadata.METADATA_KEY_ALBUM)); in getOldMetadata() 86 if (includeArtwork && metadata.containsKey(MediaMetadata.METADATA_KEY_ART)) { in getOldMetadata() 87 Bitmap art = metadata.getBitmap(MediaMetadata.METADATA_KEY_ART); in getOldMetadata() 90 } else if (includeArtwork && metadata.containsKey(MediaMetadata.METADATA_KEY_ALBUM_ART)) { in getOldMetadata() 92 Bitmap art = metadata.getBitmap(MediaMetadata.METADATA_KEY_ALBUM_ART); in getOldMetadata() 96 if (metadata.containsKey(MediaMetadata.METADATA_KEY_ALBUM_ARTIST)) { in getOldMetadata() 98 metadata.getString(MediaMetadata.METADATA_KEY_ALBUM_ARTIST)); in getOldMetadata() 100 if (metadata.containsKey(MediaMetadata.METADATA_KEY_ARTIST)) { in getOldMetadata() [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/av/services/camera/libcameraservice/api1/client2/ |
D | FrameProcessor.cpp | 112 camera_frame_metadata metadata; in processFaceDetect() local 114 metadata.number_of_faces = 0; in processFaceDetect() 124 callbackFaceDetection(client, metadata); in processFaceDetect() 127 metadata.number_of_faces = entry.count / 4; in processFaceDetect() 128 if (metadata.number_of_faces > in processFaceDetect() 132 metadata.number_of_faces, l.mParameters.fastInfo.maxFaces); in processFaceDetect() 180 faces.setCapacity(metadata.number_of_faces); in processFaceDetect() 182 size_t maxFaces = metadata.number_of_faces; in processFaceDetect() 185 metadata.number_of_faces--; in processFaceDetect() 227 metadata.faces = faces.editArray(); in processFaceDetect() [all …]
|
/frameworks/av/camera/ |
D | ICameraClient.cpp | 60 camera_frame_metadata_t *metadata) in dataCallback() argument 67 if (metadata) { in dataCallback() 68 data.writeInt32(metadata->number_of_faces); in dataCallback() 69 data.write(metadata->faces, sizeof(camera_face_t) * metadata->number_of_faces); in dataCallback() 142 camera_frame_metadata_t *metadata = NULL; in onTransact() local 144 metadata = new camera_frame_metadata_t; in onTransact() 145 metadata->number_of_faces = data.readInt32(); in onTransact() 146 metadata->faces = (camera_face_t *) data.readInplace( in onTransact() 147 sizeof(camera_face_t) * metadata->number_of_faces); in onTransact() 149 dataCallback(msgType, imageData, metadata); in onTransact() [all …]
|
/frameworks/native/opengl/libs/EGL/ |
D | egl_object.cpp | 160 EGLBoolean egl_surface_t::getSmpte2086Metadata(android_smpte2086_metadata& metadata) const { in getSmpte2086Metadata() 176 …metadata.displayPrimaryRed.x = static_cast<float>(egl_smpte2086_metadata.displayPrimaryRed.x) / EG… in getSmpte2086Metadata() 177 …metadata.displayPrimaryRed.y = static_cast<float>(egl_smpte2086_metadata.displayPrimaryRed.y) / EG… in getSmpte2086Metadata() 178 …metadata.displayPrimaryGreen.x = static_cast<float>(egl_smpte2086_metadata.displayPrimaryGreen.x) … in getSmpte2086Metadata() 179 …metadata.displayPrimaryGreen.y = static_cast<float>(egl_smpte2086_metadata.displayPrimaryGreen.y) … in getSmpte2086Metadata() 180 …metadata.displayPrimaryBlue.x = static_cast<float>(egl_smpte2086_metadata.displayPrimaryBlue.x) / … in getSmpte2086Metadata() 181 …metadata.displayPrimaryBlue.y = static_cast<float>(egl_smpte2086_metadata.displayPrimaryBlue.y) / … in getSmpte2086Metadata() 182 …metadata.whitePoint.x = static_cast<float>(egl_smpte2086_metadata.whitePoint.x) / EGL_METADATA_SCA… in getSmpte2086Metadata() 183 …metadata.whitePoint.y = static_cast<float>(egl_smpte2086_metadata.whitePoint.y) / EGL_METADATA_SCA… in getSmpte2086Metadata() 184 …metadata.maxLuminance = static_cast<float>(egl_smpte2086_metadata.maxLuminance) / EGL_METADATA_SCA… in getSmpte2086Metadata() [all …]
|
/frameworks/av/camera/tests/ |
D | CameraCharacteristicsPermission.cpp | 74 CameraMetadata metadata; in TEST_F() local 76 rc = mCameraService->getCameraCharacteristics(cameraIdStr, &metadata); in TEST_F() 78 EXPECT_FALSE(metadata.isEmpty()); in TEST_F() 79 EXPECT_EQ(metadata.removePermissionEntries(CAMERA_METADATA_INVALID_VENDOR_ID, in TEST_F() 82 metadata.find(ANDROID_REQUEST_AVAILABLE_CHARACTERISTICS_KEYS); in TEST_F() 91 ASSERT_FALSE(metadata.exists(key)); in TEST_F()
|
/frameworks/av/services/camera/libcameraservice/utils/ |
D | ExifUtils.cpp | 61 virtual bool setFromMetadata(const CameraMetadata& metadata, 878 bool ExifUtilsImpl::setFromMetadata(const CameraMetadata& metadata, in setFromMetadata() argument 897 camera_metadata_ro_entry entry = metadata.find(ANDROID_LENS_FOCAL_LENGTH); in setFromMetadata() 919 if (metadata.exists(ANDROID_SCALER_CROP_REGION) && in setFromMetadata() 921 entry = metadata.find(ANDROID_SCALER_CROP_REGION); in setFromMetadata() 932 if (metadata.exists(ANDROID_JPEG_GPS_COORDINATES)) { in setFromMetadata() 933 entry = metadata.find(ANDROID_JPEG_GPS_COORDINATES); in setFromMetadata() 952 if (metadata.exists(ANDROID_JPEG_GPS_PROCESSING_METHOD)) { in setFromMetadata() 953 entry = metadata.find(ANDROID_JPEG_GPS_PROCESSING_METHOD); in setFromMetadata() 961 if (time_available && metadata.exists(ANDROID_JPEG_GPS_TIMESTAMP)) { in setFromMetadata() [all …]
|
/frameworks/hardware/interfaces/vr/composer/1.0/ |
D | IVrComposerClient.hal | 25 * Describes the metadata that describes the buffer. 86 * Used to set the native buffer handle metadata required to import and use 90 * @param metadata is the buffer metadata required to import the buffer. 94 * BufferMetadata metadata) 99 * Used to set the native buffer handle metadata required to import and use 103 * @param layer is the layer the buffer metadata is associated with. 104 * @param metadata is the buffer metadata required to import the buffer. 111 * BufferMetadata metadata)
|
/frameworks/base/core/java/android/hardware/camera2/impl/ |
D | CameraMetadataNative.java | 355 CameraMetadataNative metadata = new CameraMetadataNative(); 356 metadata.readFromParcel(in); 357 return metadata; 551 public <T> T getValue(CameraMetadataNative metadata, Key<T> key) { in GetCommand() argument 552 return (T) metadata.getAvailableFormats(); in GetCommand() 559 public <T> T getValue(CameraMetadataNative metadata, Key<T> key) { in GetCommand() argument 560 return (T) metadata.getFaces(); in GetCommand() 567 public <T> T getValue(CameraMetadataNative metadata, Key<T> key) { in GetCommand() argument 568 return (T) metadata.getFaceRectangles(); in GetCommand() 576 public <T> T getValue(CameraMetadataNative metadata, Key<T> key) { in CameraCharacteristics.SCALER_STREAM_CONFIGURATION_MAP.getNativeKey() argument [all …]
|
/frameworks/native/libs/vr/libbufferhub/ |
D | buffer_hub-test.cpp | 259 DvrNativeBufferMetadata metadata; in TEST_F() local 264 EXPECT_EQ(-EBUSY, c->AcquireAsync(&metadata, &invalid_fence)); in TEST_F() 269 EXPECT_EQ(0, p->PostAsync(&metadata, invalid_fence)); in TEST_F() 274 EXPECT_EQ(-EBUSY, p->PostAsync(&metadata, invalid_fence)); in TEST_F() 275 EXPECT_EQ(-EBUSY, p->GainAsync(&metadata, &invalid_fence)); in TEST_F() 280 EXPECT_EQ(0, c->AcquireAsync(&metadata, &invalid_fence)); in TEST_F() 286 EXPECT_EQ(-EBUSY, c->AcquireAsync(&metadata, &invalid_fence)); in TEST_F() 288 EXPECT_EQ(-EBUSY, p->PostAsync(&metadata, invalid_fence)); in TEST_F() 289 EXPECT_EQ(-EBUSY, p->GainAsync(&metadata, &invalid_fence)); in TEST_F() 293 EXPECT_EQ(0, c->ReleaseAsync(&metadata, invalid_fence)); in TEST_F() [all …]
|
/frameworks/base/native/android/ |
D | surface_control.cpp | 470 struct AHdrMetadata_smpte2086* metadata) { in ASurfaceTransaction_setHdrMetadata_smpte2086() argument 479 if (metadata) { in ASurfaceTransaction_setHdrMetadata_smpte2086() 480 hdrMetadata.smpte2086.displayPrimaryRed.x = metadata->displayPrimaryRed.x; in ASurfaceTransaction_setHdrMetadata_smpte2086() 481 hdrMetadata.smpte2086.displayPrimaryRed.y = metadata->displayPrimaryRed.y; in ASurfaceTransaction_setHdrMetadata_smpte2086() 482 hdrMetadata.smpte2086.displayPrimaryGreen.x = metadata->displayPrimaryGreen.x; in ASurfaceTransaction_setHdrMetadata_smpte2086() 483 hdrMetadata.smpte2086.displayPrimaryGreen.y = metadata->displayPrimaryGreen.y; in ASurfaceTransaction_setHdrMetadata_smpte2086() 484 hdrMetadata.smpte2086.displayPrimaryBlue.x = metadata->displayPrimaryBlue.x; in ASurfaceTransaction_setHdrMetadata_smpte2086() 485 hdrMetadata.smpte2086.displayPrimaryBlue.y = metadata->displayPrimaryBlue.y; in ASurfaceTransaction_setHdrMetadata_smpte2086() 486 hdrMetadata.smpte2086.whitePoint.x = metadata->whitePoint.x; in ASurfaceTransaction_setHdrMetadata_smpte2086() 487 hdrMetadata.smpte2086.whitePoint.y = metadata->whitePoint.y; in ASurfaceTransaction_setHdrMetadata_smpte2086() [all …]
|
/frameworks/base/cmds/statsd/tools/loadtest/src/com/android/statsd/loadtest/ |
D | StatsdStatsRecorder.java | 48 StatsdStatsReport metadata = mLoadtestActivity.getMetadata(); in stopRecording() local 49 if (metadata != null) { in stopRecording() 50 int numConfigs = metadata.getConfigStatsCount(); in stopRecording() 52 StatsdStatsReport.ConfigStats configStats = metadata.getConfigStats(numConfigs - 1); in stopRecording()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/keyguard/ |
D | KeyguardSliceProviderTest.java | 122 MediaMetadata metadata = mock(MediaMetadata.class); in onBindSlice_readsMedia_withoutBypass() local 123 when(metadata.getText(any())).thenReturn("metadata"); in onBindSlice_readsMedia_withoutBypass() 125 mProvider.onMetadataOrStateChanged(metadata, PlaybackState.STATE_PLAYING); in onBindSlice_readsMedia_withoutBypass() 127 verify(metadata).getText(eq(MediaMetadata.METADATA_KEY_TITLE)); in onBindSlice_readsMedia_withoutBypass() 128 verify(metadata).getText(eq(MediaMetadata.METADATA_KEY_ARTIST)); in onBindSlice_readsMedia_withoutBypass() 134 MediaMetadata metadata = mock(MediaMetadata.class); in onBindSlice_readsMedia_withBypass_notDozing() local 135 when(metadata.getText(any())).thenReturn("metadata"); in onBindSlice_readsMedia_withBypass_notDozing() 138 mProvider.onMetadataOrStateChanged(metadata, PlaybackState.STATE_PLAYING); in onBindSlice_readsMedia_withBypass_notDozing() 140 verify(metadata).getText(eq(MediaMetadata.METADATA_KEY_TITLE)); in onBindSlice_readsMedia_withBypass_notDozing() 141 verify(metadata).getText(eq(MediaMetadata.METADATA_KEY_ARTIST)); in onBindSlice_readsMedia_withBypass_notDozing()
|
/frameworks/av/services/camera/libcameraservice/api1/ |
D | CameraClient.cpp | 537 VideoNativeHandleMetadata *metadata = (VideoNativeHandleMetadata*)(dataPtr->pointer()); in releaseRecordingFrameHandle() local 538 metadata->eType = kMetadataBufferTypeNativeHandleSource; in releaseRecordingFrameHandle() 539 metadata->pHandle = handle; in releaseRecordingFrameHandle() 576 VideoNativeHandleMetadata *metadata = (VideoNativeHandleMetadata*)(dataPtr->pointer()); in releaseRecordingFrameHandleBatch() local 577 metadata->eType = kMetadataBufferTypeNativeHandleSource; in releaseRecordingFrameHandleBatch() 578 metadata->pHandle = handle; in releaseRecordingFrameHandleBatch() 848 const sp<IMemory>& dataPtr, camera_frame_metadata_t *metadata, void* user) { in dataCallback() argument 855 if (dataPtr == 0 && metadata == NULL) { in dataCallback() 863 client->handlePreviewData(msgType, dataPtr, metadata); in dataCallback() 875 client->handleGenericData(msgType, dataPtr, metadata); in dataCallback() [all …]
|
/frameworks/base/media/java/android/media/ |
D | RemoteController.java | 404 protected MetadataEditor(Bundle metadata, long editableKeys) { in MetadataEditor() argument 405 mEditorMetadata = metadata; in MetadataEditor() 408 mEditorArtwork = (Bitmap) metadata.getParcelable( in MetadataEditor() 469 public void onMetadataChanged(MediaMetadata metadata) { in onMetadataChanged() argument 470 onNewMediaMetadata(metadata); in onMetadataChanged() 621 MediaMetadata metadata = controller.getMetadata(); in updateController() local 623 0 /* arg1 ignored */, 0 /* arg2 ignored*/, metadata /* obj */, 0 /*delay*/); in updateController() 650 private void onNewMediaMetadata(MediaMetadata metadata) { in onNewMediaMetadata() argument 651 if (metadata == null) { in onNewMediaMetadata() 663 Bundle legacyMetadata = MediaSessionLegacyHelper.getOldMetadata(metadata, in onNewMediaMetadata()
|
/frameworks/compile/libbcc/tests/libbcc/ |
D | test_slang_version_info.ll | 58 call void @llvm.dbg.declare(metadata <4 x i8>* %1, metadata !27, metadata !28), !dbg !29 59 call void @llvm.dbg.declare(metadata <4 x i8>* %result, metadata !30, metadata !28), !dbg !31 68 declare void @llvm.dbg.declare(metadata, metadata, metadata) #1
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/pip/tv/ |
D | PipNotification.java | 208 MediaMetadata metadata = mPipManager.getMediaController().getMetadata(); in updateMediaControllerMetadata() local 209 if (metadata != null) { in updateMediaControllerMetadata() 210 title = metadata.getString(MediaMetadata.METADATA_KEY_DISPLAY_TITLE); in updateMediaControllerMetadata() 212 title = metadata.getString(MediaMetadata.METADATA_KEY_TITLE); in updateMediaControllerMetadata() 214 art = metadata.getBitmap(MediaMetadata.METADATA_KEY_ALBUM_ART); in updateMediaControllerMetadata() 216 art = metadata.getBitmap(MediaMetadata.METADATA_KEY_ART); in updateMediaControllerMetadata()
|
/frameworks/base/services/core/java/com/android/server/locksettings/recoverablekeystore/ |
D | RecoverableKeyGenerator.java | 99 @Nullable byte[] metadata) in generateAndStoreKey() argument 104 WrappedKey wrappedKey = WrappedKey.fromSecretKey(platformKey, key, metadata); in generateAndStoreKey() 144 @NonNull byte[] keyBytes, @Nullable byte[] metadata) in importKey() argument 148 WrappedKey wrappedKey = WrappedKey.fromSecretKey(platformKey, key, metadata); in importKey()
|
/frameworks/compile/libbcc/lib/ |
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/native/libs/gui/ |
D | ISurfaceComposerClient.cpp | 50 uint32_t flags, const sp<IBinder>& parent, LayerMetadata metadata, in createSurface() argument 55 std::move(metadata), in createSurface() 62 LayerMetadata metadata, sp<IBinder>* handle, in createWithSurfaceParent() argument 68 std::move(metadata), handle, in createWithSurfaceParent()
|
/frameworks/av/camera/ndk/include/camera/ |
D | NdkCameraMetadata.h | 195 const ACameraMetadata* metadata, 213 const ACameraMetadata* metadata, 233 void ACameraMetadata_free(ACameraMetadata* metadata) __INTRODUCED_IN(24);
|
/frameworks/native/services/surfaceflinger/ |
D | Client.cpp | 77 LayerMetadata metadata, sp<IBinder>* handle, in createSurface() argument 80 return mFlinger->createLayer(name, this, w, h, format, flags, std::move(metadata), handle, gbp, in createSurface() 87 LayerMetadata metadata, sp<IBinder>* handle, in createWithSurfaceParent() argument 100 return mFlinger->createLayer(name, this, w, h, format, flags, std::move(metadata), handle, gbp, in createWithSurfaceParent()
|