/frameworks/av/media/module/foundation/tests/ |
D | MetaDataBaseUnitTest.cpp | 52 std::unique_ptr<MetaDataBase> metaData(new MetaDataBase()); in TEST_F() local 53 ASSERT_NE(metaData, nullptr) << "Failed to create meta data"; in TEST_F() 56 MetaDataBase *metaDataCopy = metaData.get(); in TEST_F() 61 std::unique_ptr<MetaDataBase> metaData(new MetaDataBase()); in TEST_F() local 62 ASSERT_NE(metaData, nullptr) << "Failed to create meta data"; in TEST_F() 66 bool status = metaData->setCString(kKeyMIMEType, MEDIA_MIMETYPE_VIDEO_AVC); in TEST_F() 69 status = metaData->setInt32(kKeyWidth, kWidth1); in TEST_F() 71 status = metaData->setInt32(kKeyHeight, kHeight1); in TEST_F() 73 status = metaData->setInt32(kKeyVideoProfile, kProfile); in TEST_F() 75 status = metaData->setInt32(kKeyVideoLevel, kLevel); in TEST_F() [all …]
|
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/drawer/ |
D | ActivityTileTest.java | 62 mActivityInfo.metaData = new Bundle(); in setUp() 68 mActivityInfo.metaData.putString(META_DATA_KEY_PROFILE, PROFILE_PRIMARY); in isPrimaryProfileOnly_profilePrimary_shouldReturnTrue() 74 mActivityInfo.metaData.putString(META_DATA_KEY_PROFILE, PROFILE_ALL); in isPrimaryProfileOnly_profileAll_shouldReturnFalse() 85 mActivityInfo.metaData = null; in isPrimaryProfileOnly_nullMetadata_shouldReturnFalse() 91 mActivityInfo.metaData = null; in getIcon_noContextOrMetadata_returnNull() 99 mActivityInfo.metaData.putString(META_DATA_PREFERENCE_ICON_URI, "content://foobar/icon"); in getIcon_providedByUri_returnNull() 106 mActivityInfo.metaData.putInt(META_DATA_PREFERENCE_ICON, android.R.drawable.ic_info); in getIcon_hasIconMetadata_returnIcon() 114 mActivityInfo.metaData.putInt(META_DATA_PREFERENCE_ICON, android.R.color.transparent); in getIcon_transparentColorInMetadata_returnNull() 123 mActivityInfo.metaData.putBoolean(TileUtils.META_DATA_PREFERENCE_ICON_TINTABLE, false); in isIconTintable_hasMetadata_shouldReturnIconTintableMetadata() 126 mActivityInfo.metaData.putBoolean(TileUtils.META_DATA_PREFERENCE_ICON_TINTABLE, true); in isIconTintable_hasMetadata_shouldReturnIconTintableMetadata() [all …]
|
D | TileUtilsTest.java | 290 resolveInfo.activityInfo.metaData = new Bundle(oldMetadata); in getTilesForIntent_tileAlreadyInCache_shouldUpdateMetaData() 291 resolveInfo.activityInfo.metaData.putInt(META_DATA_PREFERENCE_ICON, in getTilesForIntent_tileAlreadyInCache_shouldUpdateMetaData() 309 resolveInfo.activityInfo.metaData in getTilesForIntent_shouldMarkIconTintableIfMetadataSet() 419 resolveInfo.activityInfo.metaData in loadTilesForAction_withPendingIntent_updatesPendingIntentMap() 452 final Bundle metaData = newMetaData(category, keyHint, iconUri, summaryUri, title, in newInfo() local 460 info.activityInfo.metaData = metaData; in newInfo() 467 info.providerInfo.metaData = metaData; in newInfo() 468 ShadowTileUtils.setMetaData(metaData); in newInfo() 480 final Bundle metaData = new Bundle(); in newMetaData() local 481 metaData.putString("com.android.settings.category", category); in newMetaData() [all …]
|
/frameworks/av/media/module/metadatautils/test/ |
D | MetaDataUtilsTest.cpp | 232 std::unique_ptr<MetaDataBase> metaData(new MetaDataBase()); in TEST_P() local 233 ASSERT_NE(metaData, nullptr) << "Failed to create MetaData Base"; in TEST_P() 235 status = MakeAVCCodecSpecificData(*metaData, mInputBuffer, mInputBufferSize); in TEST_P() 239 status = metaData->findInt32(kKeyWidth, &avcWidth); in TEST_P() 244 status = metaData->findInt32(kKeyHeight, &avcHeight); in TEST_P() 258 status = metaData->findData(kKeyAVCC, &mediaType, &csdMetaDataBaseBuffer, &csdMetaDataBaseSize); in TEST_P() 278 std::unique_ptr<MetaDataBase> metaData(new MetaDataBase()); in TEST_P() local 279 ASSERT_NE(metaData, nullptr) << "Failed to create MetaData Base"; in TEST_P() 281 status = MakeAVCCodecSpecificData(*metaData, mInputBuffer, mInputBufferSize); in TEST_P() 310 std::unique_ptr<MetaDataBase> metaData(new MetaDataBase()); in TEST_P() local [all …]
|
/frameworks/base/services/core/java/com/android/server/signedconfig/ |
D | SignedConfigService.java | 79 Bundle metaData = pi.applicationInfo.metaData; in handlePackageBroadcast() local 80 if (metaData == null) { in handlePackageBroadcast() 84 if (metaData.containsKey(KEY_GLOBAL_SETTINGS) in handlePackageBroadcast() 85 && metaData.containsKey(KEY_GLOBAL_SETTINGS_SIGNATURE)) { in handlePackageBroadcast() 90 String config = metaData.getString(KEY_GLOBAL_SETTINGS); in handlePackageBroadcast() 91 String signature = metaData.getString(KEY_GLOBAL_SETTINGS_SIGNATURE); in handlePackageBroadcast()
|
/frameworks/av/media/libstagefright/rtsp/fuzzer/ |
D | rtp_writer_fuzzer.cpp | 141 sp<MetaData> metaData = sp<MetaData>::make(); in process() local 143 metaData->setInt32(kKeySelfID, mFdp.ConsumeIntegral<int32_t>()); in process() 146 metaData->setInt32(kKeyPayloadType, mFdp.ConsumeIntegral<int32_t>()); in process() 149 metaData->setInt32(kKeyRtpExtMap, mFdp.ConsumeIntegral<int32_t>()); in process() 152 metaData->setInt32(kKeyRtpCvoDegrees, mFdp.ConsumeIntegral<int32_t>()); in process() 155 metaData->setInt32(kKeyRtpDscp, mFdp.ConsumeIntegral<int32_t>()); in process() 158 metaData->setInt64(kKeySocketNetwork, mFdp.ConsumeIntegral<int64_t>()); in process() 160 mArtpWriter->start(metaData.get() /*param*/); in process()
|
/frameworks/base/packages/SettingsLib/Tile/src/com/android/settingslib/drawer/ |
D | TileUtils.java | 321 final Bundle metaData = activityInfo.metaData; in loadActivityTiles() local 322 loadTile(user, addedCache, defaultCategory, outTiles, intent, metaData, activityInfo); in loadActivityTiles() 345 for (Bundle metaData : entryData) { in loadProviderTiles() 346 loadTile(user, addedCache, defaultCategory, outTiles, intent, metaData, in loadProviderTiles() 353 String defaultCategory, List<Tile> outTiles, Intent intent, Bundle metaData, in loadTile() argument 358 && Tile.isPrimaryProfileOnly(componentInfo.metaData)) { in loadTile() 367 if ((metaData == null || !metaData.containsKey(EXTRA_CATEGORY_KEY)) in loadTile() 371 + (metaData == null ? "" : EXTRA_CATEGORY_KEY)); in loadTile() 374 categoryKey = metaData.getString(EXTRA_CATEGORY_KEY); in loadTile() 380 metaData.getString(META_DATA_PREFERENCE_KEYHINT)) in loadTile() [all …]
|
D | Tile.java | 77 public Tile(ComponentInfo info, String category, Bundle metaData) { in Tile() argument 82 mMetaData = metaData; in Tile() 84 mGroupKey = metaData.getString(META_DATA_PREFERENCE_GROUP_KEY); in Tile() 256 public void setMetaData(Bundle metaData) { in setMetaData() argument 257 mMetaData = metaData; in setMetaData() 377 static boolean isPrimaryProfileOnly(Bundle metaData) { in isPrimaryProfileOnly() argument 378 String profile = metaData != null ? metaData.getString(META_DATA_KEY_PROFILE) : PROFILE_ALL; in isPrimaryProfileOnly()
|
D | ProviderTile.java | 45 public ProviderTile(ProviderInfo info, String category, Bundle metaData) { in ProviderTile() argument 46 super(info, category, metaData); in ProviderTile() 48 mKey = metaData.getString(META_DATA_PREFERENCE_KEYHINT); in ProviderTile()
|
D | ActivityTile.java | 38 super(info, category, info.metaData); in ActivityTile() 64 setMetaData(mComponentInfo.metaData); in getComponentInfo()
|
/frameworks/base/core/java/com/android/internal/pm/parsing/ |
D | PackageInfoCommonUtils.java | 299 ai.metaData = null; in updateApplicationInfo() 332 info.metaData = pkg.getMetaData(); in generateApplicationInfo() 380 var metaData = a.getMetaData(); in generateActivityInfo() local 382 ai.metaData = metaData.isEmpty() ? null : metaData; in generateActivityInfo() 384 ai.metaData = null; in generateActivityInfo() 408 var metaData = s.getMetaData(); in generateServiceInfo() local 410 si.metaData = metaData.isEmpty() ? null : metaData; in generateServiceInfo() 447 var metaData = p.getMetaData(); in generateProviderInfo() local 449 pi.metaData = metaData.isEmpty() ? null : metaData; in generateProviderInfo() 486 info.metaData = null; in generateInstrumentationInfo() [all …]
|
/frameworks/base/media/java/android/media/ |
D | TimedMetaData.java | 58 public TimedMetaData(long timestampUs, @NonNull byte[] metaData) { in TimedMetaData() argument 59 if (metaData == null) { in TimedMetaData() 63 mMetaData = metaData; in TimedMetaData()
|
/frameworks/base/core/tests/coretests/src/android/app/activity/ |
D | MetaDataTest.java | 49 Bundle md = ci.metaData; in checkMetaData() 110 assertNull("Meta data returned when not requested", ai.metaData); in testActivityWithData() 123 assertNull("Meta data returned when not requested", ai.metaData); in testReceiverWithData() 136 assertNull("Meta data returned when not requested", si.metaData); in testServiceWithData() 150 assertNull("Meta data returned when not requested", pi.metaData); in testProviderWithData() 164 assertNull("Meta data returned when not requested", pi.metaData); in testPermissionWithData()
|
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/ |
D | SplashScreenExceptionListTest.java | 118 Bundle metaData = new Bundle(); in metaDataOptOut() local 120 activityInfo.metaData = metaData; in metaDataOptOut() 123 metaData.putBoolean("android.splashscreen.exception_opt_out", true); in metaDataOptOut() 131 metaData.putBoolean("android.splashscreen.exception_opt_out", false); in metaDataOptOut() 143 activityInfo.metaData = null; in metaDataOptOut()
|
/frameworks/base/core/java/com/android/internal/pm/pkg/component/ |
D | ParsedComponentImpl.java | 80 private Bundle metaData; field in ParsedComponentImpl 90 this.metaData = other.getMetaData(); in ParsedComponentImpl() 144 return metaData == null ? Bundle.EMPTY : metaData; in getMetaData() 170 dest.writeBundle(this.metaData); in writeToParcel() 189 this.metaData = in.readBundle(boot); in ParsedComponentImpl() 302 metaData = value; in setMetaData()
|
/frameworks/base/packages/SettingsLib/AdaptiveIcon/src/com/android/settingslib/widget/ |
D | AdaptiveIcon.java | 66 final Bundle metaData = tile.getMetaData(); in setBackgroundColor() local 68 if (metaData != null) { in setBackgroundColor() 70 int bgColor = metaData.getInt(META_DATA_PREFERENCE_ICON_BACKGROUND_ARGB, in setBackgroundColor() 74 final int colorRes = metaData.getInt(META_DATA_PREFERENCE_ICON_BACKGROUND_HINT, in setBackgroundColor()
|
/frameworks/base/core/java/android/app/backup/ |
D | BackupRestoreEventLogger.java | 154 @NonNull String metaData) { in logBackupMetadata() argument 155 logMetaData(OperationType.BACKUP, dataType, metaData); in logBackupMetadata() 274 @NonNull @BackupRestoreDataType String dataType, @NonNull String metaData) { in logMetaData() argument 283 dataTypeResult.mMetadataHash = getMetaDataHash(metaData); in logMetaData() 316 private byte[] getMetaDataHash(String metaData) { in getMetaDataHash() argument 317 return mHashDigest.digest(metaData.getBytes(StandardCharsets.UTF_8)); in getMetaDataHash()
|
/frameworks/base/core/java/android/widget/ |
D | RemoteViewsAdapter.java | 648 final RemoteViewsIndexMetaData metaData = mIndexMetaData.get(position); in insert() local 649 if (metaData != null) { in insert() 650 metaData.set(v, itemId); in insert() 1016 RemoteViewsMetaData metaData = mCache.getMetaData(); in updateRemoteViews() local 1019 synchronized (metaData) { in updateRemoteViews() 1020 viewTypeInRange = metaData.isViewTypeInRange(layoutId); in updateRemoteViews() 1052 final RemoteViewsMetaData metaData = mCache.getMetaData(); in getCount() local 1053 synchronized (metaData) { in getCount() 1054 return metaData.count; in getCount() 1082 final RemoteViewsMetaData metaData = mCache.getMetaData(); in getItemViewType() local [all …]
|
/frameworks/base/services/core/java/com/android/server/pm/parsing/ |
D | PackageInfoUtils.java | 382 ai.metaData = null; in updateApplicationInfo() 589 var metaData = a.getMetaData(); in generateActivityInfo() local 591 ai.metaData = metaData.isEmpty() ? null : metaData; in generateActivityInfo() 593 ai.metaData = null; in generateActivityInfo() 658 var metaData = s.getMetaData(); in generateServiceInfo() local 660 si.metaData = metaData.isEmpty() ? null : metaData; in generateServiceInfo() 708 var metaData = p.getMetaData(); in generateProviderInfo() local 710 pi.metaData = metaData.isEmpty() ? null : metaData; in generateProviderInfo() 754 info.metaData = null; in generateInstrumentationInfo() 756 var metaData = i.getMetaData(); in generateInstrumentationInfo() local [all …]
|
/frameworks/base/core/java/android/content/pm/ |
D | PackageItemInfo.java | 170 public Bundle metaData; field in PackageItemInfo 202 metaData = orig.metaData; in PackageItemInfo() 419 if (metaData != null) { in loadXmlMetaData() 420 int resid = metaData.getInt(name); in loadXmlMetaData() 467 dest.writeBundle(metaData); in writeToParcel() 500 metaData = source.readBundle(); in PackageItemInfo()
|
/frameworks/base/packages/CompanionDeviceManager/src/com/android/companiondevicemanager/ |
D | Utils.java | 90 final Bundle bundle = appInfo.metaData; in getVendorHeaderIcon() 103 final Bundle bundle = appInfo.metaData; in getVendorHeaderName() 109 return appInfo.metaData.getCharSequence(COMPANION_DEVICE_ACTIVITY_VENDOR_NAME, ""); in getVendorHeaderName() 115 final Bundle bundle = appInfo.metaData; in hasVendorIcon()
|
/frameworks/av/media/module/mpeg2ts/ |
D | ESQueue.cpp | 117 const uint8_t *ptr, size_t size, sp<MetaData> *metaData) { in parseAC3SyncFrame() argument 211 if (metaData != NULL) { in parseAC3SyncFrame() 212 (*metaData)->setCString(kKeyMIMEType, MEDIA_MIMETYPE_AUDIO_AC3); in parseAC3SyncFrame() 213 (*metaData)->setInt32(kKeyChannelCount, channelCount); in parseAC3SyncFrame() 214 (*metaData)->setInt32(kKeySampleRate, samplingRate); in parseAC3SyncFrame() 224 const uint8_t *ptr, size_t size, sp<MetaData> *metaData) { in parseEAC3SyncFrame() argument 281 if (metaData != NULL && (strmtyp == 0 || strmtyp == 2)) { in parseEAC3SyncFrame() 285 (*metaData)->setCString(kKeyMIMEType, MEDIA_MIMETYPE_AUDIO_EAC3); in parseEAC3SyncFrame() 286 (*metaData)->setInt32(kKeyChannelCount, channelCount); in parseEAC3SyncFrame() 287 (*metaData)->setInt32(kKeySampleRate, samplingRate); in parseEAC3SyncFrame() [all …]
|
/frameworks/base/services/core/java/com/android/server/ |
D | NetworkScorerAppManager.java | 110 if (serviceInfo.metaData != null) { in getRecommendationServiceLabel() 111 final String label = serviceInfo.metaData in getRecommendationServiceLabel() 123 if (serviceInfo.metaData == null) { in findUseOpenWifiNetworksActivity() 129 final String useOpenWifiPackage = serviceInfo.metaData in findUseOpenWifiNetworksActivity() 155 if (serviceInfo.metaData == null) { in getNetworkAvailableNotificationChannelId() 162 return serviceInfo.metaData.getString( in getNetworkAvailableNotificationChannelId()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/rollback/ |
D | WatchdogRollbackLoggerTest.java | 95 mApplicationInfo.metaData = bundle; in testLogPackageParentKeyIsNull() 111 mApplicationInfo.metaData = bundle; in testLogPackageHasParentKey() 131 mApplicationInfo.metaData = bundle; in testLogPackageNameNotFound() 154 applicationInfo.metaData = bundle; in testApexdLoggingCallsWithParents()
|
/frameworks/base/services/tests/PermissionServiceMockingTests/src/com/android/server/permission/test/ |
D | BasePermissionPolicyTest.kt | 103 metaData = if (generateFlags.toInt().hasBits(PackageManager.GET_META_DATA)) { in <lambda>() 104 parsedPermission.metaData in <lambda>() 129 metaData = if (generateFlags.toInt().hasBits(PackageManager.GET_META_DATA)) { in <lambda>() 130 parsedPermissionGroup.metaData in <lambda>() 243 whenever(metaData).thenReturn(Bundle()) in <lambda>() 258 whenever(metaData).thenReturn(Bundle()) in <lambda>()
|