/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/apex/statsd/framework/test/src/android/app/ |
D | PullAtomMetadataTest.java | 35 PullAtomMetadata metadata = new PullAtomMetadata.Builder().build(); in testEmpty() local 36 assertThat(metadata.getTimeoutMillis()).isEqualTo(StatsManager.DEFAULT_TIMEOUT_MILLIS); in testEmpty() 37 assertThat(metadata.getCoolDownMillis()).isEqualTo(StatsManager.DEFAULT_COOL_DOWN_MILLIS); in testEmpty() 38 assertThat(metadata.getAdditiveFields()).isNull(); in testEmpty() 44 PullAtomMetadata metadata = in testSetTimeoutMillis() local 46 assertThat(metadata.getTimeoutMillis()).isEqualTo(timeoutMillis); in testSetTimeoutMillis() 47 assertThat(metadata.getCoolDownMillis()).isEqualTo(StatsManager.DEFAULT_COOL_DOWN_MILLIS); in testSetTimeoutMillis() 48 assertThat(metadata.getAdditiveFields()).isNull(); in testSetTimeoutMillis() 54 PullAtomMetadata metadata = in testSetCoolDownMillis() local 56 assertThat(metadata.getTimeoutMillis()).isEqualTo(StatsManager.DEFAULT_TIMEOUT_MILLIS); in testSetCoolDownMillis() [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->get()); in CameraMetadata_getNativeMetadata() 115 static status_t updateAny(CameraMetadata *metadata, in updateAny() 141 return metadata->update(tag, dataPtr, dataCount); \ in updateAny() 181 auto metadata = CameraMetadata_getSharedPtr(ptr); in CameraMetadata_getPointerNoThrow() local 182 if (metadata == nullptr) { in CameraMetadata_getPointerNoThrow() 185 return metadata->get(); in CameraMetadata_getPointerNoThrow() 191 CameraMetadata* metadata = CameraMetadata_getPointerNoThrow(ptr); in CameraMetadata_getPointerThrow() local 192 if (metadata == nullptr) { in CameraMetadata_getPointerThrow() [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/cmds/statsd/src/ |
D | metadata_util.cpp | 26 void writeValueToProto(metadata::FieldValue* metadataFieldValue, const Value& value) { in writeValueToProto() 55 metadata::MetricDimensionKey* metadataMetricKey) { in writeMetricDimensionKeyToMetadataDimensionKey() 57 metadata::FieldValue* metadataFieldValue = metadataMetricKey->add_dimension_key_in_what(); in writeMetricDimensionKeyToMetadataDimensionKey() 58 metadata::Field* metadataField = metadataFieldValue->mutable_field(); in writeMetricDimensionKeyToMetadataDimensionKey() 65 metadata::FieldValue* metadataFieldValue = metadataMetricKey->add_state_values_key(); in writeMetricDimensionKeyToMetadataDimensionKey() 66 metadata::Field* metadataField = metadataFieldValue->mutable_field(); in writeMetricDimensionKeyToMetadataDimensionKey() 74 const RepeatedPtrField<metadata::FieldValue>& repeatedFieldValueList, in writeFieldValuesFromMetadata() 76 for (const metadata::FieldValue& metadataFieldValue : repeatedFieldValueList) { in writeFieldValuesFromMetadata() 80 case metadata::FieldValue::ValueCase::kValueInt: in writeFieldValuesFromMetadata() 83 case metadata::FieldValue::ValueCase::kValueLong: in writeFieldValuesFromMetadata() [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/av/services/camera/libcameraservice/tests/ |
D | ZoomRatioTest.cpp | 274 CameraMetadata metadata; in subCropOverMaxDigitalZoomTest() local 278 metadata.update(ANDROID_SCALER_CROP_REGION, testDefaultCropSize[index], 4); in subCropOverMaxDigitalZoomTest() 279 res = mapper.updateCaptureRequest(&metadata); in subCropOverMaxDigitalZoomTest() 281 entry = metadata.find(ANDROID_SCALER_CROP_REGION); in subCropOverMaxDigitalZoomTest() 287 metadata.update(ANDROID_SCALER_CROP_REGION, test2xCropRegion[index], 4); in subCropOverMaxDigitalZoomTest() 288 res = mapper.updateCaptureResult(&metadata, true/*requestedZoomRatioIs1*/); in subCropOverMaxDigitalZoomTest() 290 entry = metadata.find(ANDROID_SCALER_CROP_REGION); in subCropOverMaxDigitalZoomTest() 295 entry = metadata.find(ANDROID_CONTROL_ZOOM_RATIO); in subCropOverMaxDigitalZoomTest() 314 CameraMetadata metadata; in subCropOverZoomRangeTest() local 320 metadata.update(ANDROID_SCALER_CROP_REGION, test2xCropRegion[index], 4); in subCropOverZoomRangeTest() [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 | 118 camera_frame_metadata metadata; in processFaceDetect() local 120 metadata.number_of_faces = 0; in processFaceDetect() 130 callbackFaceDetection(client, metadata); in processFaceDetect() 133 metadata.number_of_faces = entry.count / 4; in processFaceDetect() 134 if (metadata.number_of_faces > in processFaceDetect() 138 metadata.number_of_faces, l.mParameters.fastInfo.maxFaces); in processFaceDetect() 186 faces.setCapacity(metadata.number_of_faces); in processFaceDetect() 188 size_t maxFaces = metadata.number_of_faces; in processFaceDetect() 191 metadata.number_of_faces--; in processFaceDetect() 233 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; in onTransact() local 144 metadata.number_of_faces = data.readInt32(); in onTransact() 146 if (metadata.number_of_faces < 0 || in onTransact() 147 metadata.number_of_faces > (int32_t)(INT32_MAX / sizeof(camera_face_t))) { in onTransact() 148 ALOGE("%s: Too large face count: %d", __FUNCTION__, metadata.number_of_faces); in onTransact() 151 metadata.faces = (camera_face_t *) data.readInplace( 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/base/apex/statsd/tests/libstatspull/jni/ |
D | stats_pull_helper.cpp | 56 AStatsManager_PullAtomMetadata* metadata = AStatsManager_PullAtomMetadata_obtain(); in Java_com_android_internal_os_statsd_libstats_LibStatsPullTests_setStatsPuller() local 57 AStatsManager_PullAtomMetadata_setCoolDownMillis(metadata, coolDownMillis); in Java_com_android_internal_os_statsd_libstats_LibStatsPullTests_setStatsPuller() 58 AStatsManager_PullAtomMetadata_setTimeoutMillis(metadata, timeoutMillis); in Java_com_android_internal_os_statsd_libstats_LibStatsPullTests_setStatsPuller() 60 AStatsManager_setPullAtomCallback(sAtomTag, metadata, &pullAtomCallback, nullptr); in Java_com_android_internal_os_statsd_libstats_LibStatsPullTests_setStatsPuller() 61 AStatsManager_PullAtomMetadata_release(metadata); in Java_com_android_internal_os_statsd_libstats_LibStatsPullTests_setStatsPuller()
|
/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/av/services/camera/libcameraservice/device3/ |
D | ZoomRatioMapper.cpp | 206 float ZoomRatioMapper::deriveZoomRatio(const CameraMetadata* metadata) { in deriveZoomRatio() argument 210 entry = metadata->find(ANDROID_SCALER_CROP_REGION); in deriveZoomRatio() 238 status_t ZoomRatioMapper::separateZoomFromCropLocked(CameraMetadata* metadata, bool isResult) { in separateZoomFromCropLocked() argument 240 float zoomRatio = deriveZoomRatio(metadata); in separateZoomFromCropLocked() 243 res = metadata->update(ANDROID_CONTROL_ZOOM_RATIO, &zoomRatio, 1); in separateZoomFromCropLocked() 253 entry = metadata->find(region); in separateZoomFromCropLocked() 272 entry = metadata->find(rect); in separateZoomFromCropLocked() 278 entry = metadata->find(pts); in separateZoomFromCropLocked() 286 status_t ZoomRatioMapper::combineZoomAndCropLocked(CameraMetadata* metadata, bool isResult) { in combineZoomAndCropLocked() argument 289 entry = metadata->find(ANDROID_CONTROL_ZOOM_RATIO); in combineZoomAndCropLocked() [all …]
|
/frameworks/base/core/java/android/content/pm/ |
D | InstallationFile.java | 44 long lengthBytes, @Nullable byte[] metadata, @Nullable byte[] signature) { in InstallationFile() argument 49 mParcel.metadata = metadata; in InstallationFile() 85 return mParcel.metadata; in getMetadata()
|
/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/hardware/interfaces/vr/composer/2.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 | 388 CameraMetadataNative metadata = new CameraMetadataNative(); 389 metadata.readFromParcel(in); 390 return metadata; 596 public <T> T getValue(CameraMetadataNative metadata, Key<T> key) { in GetCommand() argument 597 return (T) metadata.getAvailableFormats(); in GetCommand() 604 public <T> T getValue(CameraMetadataNative metadata, Key<T> key) { in GetCommand() argument 605 return (T) metadata.getFaces(); in GetCommand() 612 public <T> T getValue(CameraMetadataNative metadata, Key<T> key) { in GetCommand() argument 613 return (T) metadata.getFaceRectangles(); in GetCommand() 621 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/packages/BackupEncryption/test/robolectric/src/com/android/server/backup/encryption/tasks/ |
D | BackupFileDecryptorTaskTest.java | 177 ChunksMetadata metadata = CryptoTestUtils.clone(chunksMetadata); in decryptFile_withNoChunkOrderingType_decryptsUsingExplicitStarts() 178 metadata.chunkOrderingType = in decryptFile_withNoChunkOrderingType_decryptsUsingExplicitStarts() 180 return metadata; in decryptFile_withNoChunkOrderingType_decryptsUsingExplicitStarts() 376 ChunksMetadata metadata = CryptoTestUtils.clone(chunksMetadata); in decryptFile_throwsForUnsupportedCipherType() local 377 metadata.cipherType = ChunksMetadataProto.UNKNOWN_CIPHER_TYPE; in decryptFile_throwsForUnsupportedCipherType() 378 return metadata; in decryptFile_throwsForUnsupportedCipherType() 392 ChunksMetadata metadata = CryptoTestUtils.clone(chunksMetadata); in decryptFile_throwsForUnsupportedMessageDigestType() local 393 metadata.checksumType = ChunksMetadataProto.UNKNOWN_CHECKSUM_TYPE; in decryptFile_throwsForUnsupportedMessageDigestType() 394 return metadata; in decryptFile_throwsForUnsupportedMessageDigestType() 463 ChunksMetadata metadata = in createEncryptedFileUsingExplicitStarts() local [all …]
|
/frameworks/base/native/android/ |
D | surface_control.cpp | 475 struct AHdrMetadata_smpte2086* metadata) { in ASurfaceTransaction_setHdrMetadata_smpte2086() argument 484 if (metadata) { in ASurfaceTransaction_setHdrMetadata_smpte2086() 485 hdrMetadata.smpte2086.displayPrimaryRed.x = metadata->displayPrimaryRed.x; in ASurfaceTransaction_setHdrMetadata_smpte2086() 486 hdrMetadata.smpte2086.displayPrimaryRed.y = metadata->displayPrimaryRed.y; in ASurfaceTransaction_setHdrMetadata_smpte2086() 487 hdrMetadata.smpte2086.displayPrimaryGreen.x = metadata->displayPrimaryGreen.x; in ASurfaceTransaction_setHdrMetadata_smpte2086() 488 hdrMetadata.smpte2086.displayPrimaryGreen.y = metadata->displayPrimaryGreen.y; in ASurfaceTransaction_setHdrMetadata_smpte2086() 489 hdrMetadata.smpte2086.displayPrimaryBlue.x = metadata->displayPrimaryBlue.x; in ASurfaceTransaction_setHdrMetadata_smpte2086() 490 hdrMetadata.smpte2086.displayPrimaryBlue.y = metadata->displayPrimaryBlue.y; in ASurfaceTransaction_setHdrMetadata_smpte2086() 491 hdrMetadata.smpte2086.whitePoint.x = metadata->whitePoint.x; in ASurfaceTransaction_setHdrMetadata_smpte2086() 492 hdrMetadata.smpte2086.whitePoint.y = metadata->whitePoint.y; in ASurfaceTransaction_setHdrMetadata_smpte2086() [all …]
|
/frameworks/base/packages/BackupEncryption/src/com/android/server/backup/encryption/keys/ |
D | KeyWrapUtils.java | 59 if (wrappedKey.metadata == null) { in unwrap() 63 if (wrappedKey.metadata.type != WrappedKeyProto.KeyMetadata.AES_256_GCM) { in unwrap() 69 wrappedKey.metadata.type)); in unwrap() 101 wrappedKey.metadata = new WrappedKeyProto.KeyMetadata(); in wrap() 102 wrappedKey.metadata.type = WrappedKeyProto.KeyMetadata.AES_256_GCM; in wrap()
|
/frameworks/base/services/incremental/ |
D | BinderIncrementalService.cpp | 183 if (params.metadata.empty()) { in toMakeFileParams() 186 id = IncrementalService::idFromMetadata(params.metadata); in toMakeFileParams() 194 nfp.metadata = {(const char*)params.metadata.data(), (IncFsSize)params.metadata.size()}; in toMakeFileParams() 252 auto metadata = mImpl.getMetadata(storageId, path); in getMetadataByPath() local 253 _aidl_return->assign(metadata.begin(), metadata.end()); in getMetadataByPath() 270 auto metadata = mImpl.getMetadata(storageId, fid); in getMetadataById() local 271 _aidl_return->assign(metadata.begin(), metadata.end()); in getMetadataById()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/keyguard/ |
D | KeyguardSliceProviderTest.java | 131 MediaMetadata metadata = mock(MediaMetadata.class); in onBindSlice_readsMedia_withoutBypass() local 132 when(metadata.getText(any())).thenReturn("metadata"); in onBindSlice_readsMedia_withoutBypass() 134 mProvider.onPrimaryMetadataOrStateChanged(metadata, PlaybackState.STATE_PLAYING); in onBindSlice_readsMedia_withoutBypass() 136 verify(metadata).getText(eq(MediaMetadata.METADATA_KEY_TITLE)); in onBindSlice_readsMedia_withoutBypass() 137 verify(metadata).getText(eq(MediaMetadata.METADATA_KEY_ARTIST)); in onBindSlice_readsMedia_withoutBypass() 143 MediaMetadata metadata = mock(MediaMetadata.class); in onBindSlice_readsMedia_withBypass_notDozing() local 144 when(metadata.getText(any())).thenReturn("metadata"); in onBindSlice_readsMedia_withBypass_notDozing() 147 mProvider.onPrimaryMetadataOrStateChanged(metadata, PlaybackState.STATE_PLAYING); in onBindSlice_readsMedia_withBypass_notDozing() 149 verify(metadata).getText(eq(MediaMetadata.METADATA_KEY_TITLE)); in onBindSlice_readsMedia_withBypass_notDozing() 150 verify(metadata).getText(eq(MediaMetadata.METADATA_KEY_ARTIST)); in onBindSlice_readsMedia_withBypass_notDozing()
|