/frameworks/av/media/libstagefright/foundation/tests/ |
D | MetaDataBaseUnitTest.cpp | 51 MetaDataBase *metaData = new MetaDataBase(); in TEST_F() local 52 ASSERT_NE(metaData, nullptr) << "Failed to create meta data"; in TEST_F() 55 MetaDataBase *metaDataCopy = metaData; in TEST_F() 58 delete metaData; in TEST_F() 62 MetaDataBase *metaData = new MetaDataBase(); in TEST_F() local 63 ASSERT_NE(metaData, nullptr) << "Failed to create meta data"; in TEST_F() 67 bool status = metaData->setCString(kKeyMIMEType, MEDIA_MIMETYPE_VIDEO_AVC); in TEST_F() 70 status = metaData->setInt32(kKeyWidth, kWidth1); in TEST_F() 72 status = metaData->setInt32(kKeyHeight, kHeight1); in TEST_F() 74 status = metaData->setInt32(kKeyVideoProfile, kProfile); in TEST_F() [all …]
|
/frameworks/av/media/libstagefright/tests/metadatautils/ |
D | MetaDataUtilsTest.cpp | 231 MetaDataBase *metaData = new MetaDataBase(); in TEST_P() local 232 ASSERT_NE(metaData, nullptr) << "Failed to create MetaData Base"; in TEST_P() 234 status = MakeAVCCodecSpecificData(*metaData, mInputBuffer, mInputBufferSize); in TEST_P() 238 status = metaData->findInt32(kKeyWidth, &avcWidth); in TEST_P() 243 status = metaData->findInt32(kKeyHeight, &avcHeight); in TEST_P() 257 status = metaData->findData(kKeyAVCC, &mediaType, &csdMetaDataBaseBuffer, &csdMetaDataBaseSize); in TEST_P() 267 delete metaData; in TEST_P() 278 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() [all …]
|
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/drawer/ |
D | ActivityTileTest.java | 57 mActivityInfo.metaData = new Bundle(); in setUp() 63 mActivityInfo.metaData.putString(META_DATA_KEY_PROFILE, PROFILE_PRIMARY); in isPrimaryProfileOnly_profilePrimary_shouldReturnTrue() 69 mActivityInfo.metaData.putString(META_DATA_KEY_PROFILE, PROFILE_ALL); in isPrimaryProfileOnly_profileAll_shouldReturnFalse() 80 mActivityInfo.metaData = null; in isPrimaryProfileOnly_nullMetadata_shouldReturnFalse() 86 mActivityInfo.metaData = null; in getIcon_noContextOrMetadata_returnNull() 94 mActivityInfo.metaData.putString(META_DATA_PREFERENCE_ICON_URI, "content://foobar/icon"); in getIcon_providedByUri_returnNull() 101 mActivityInfo.metaData.putInt(META_DATA_PREFERENCE_ICON, android.R.drawable.ic_info); in getIcon_hasIconMetadata_returnIcon() 109 mActivityInfo.metaData.putInt(META_DATA_PREFERENCE_ICON, android.R.color.transparent); in getIcon_transparentColorInMetadata_returnNull() 118 mActivityInfo.metaData.putBoolean(TileUtils.META_DATA_PREFERENCE_ICON_TINTABLE, false); in isIconTintable_hasMetadata_shouldReturnIconTintableMetadata() 121 mActivityInfo.metaData.putBoolean(TileUtils.META_DATA_PREFERENCE_ICON_TINTABLE, true); in isIconTintable_hasMetadata_shouldReturnIconTintableMetadata() [all …]
|
D | TileUtilsTest.java | 278 resolveInfo.activityInfo.metaData = new Bundle(oldMetadata); in getTilesForIntent_tileAlreadyInCache_shouldUpdateMetaData() 279 resolveInfo.activityInfo.metaData.putInt(META_DATA_PREFERENCE_ICON, in getTilesForIntent_tileAlreadyInCache_shouldUpdateMetaData() 297 resolveInfo.activityInfo.metaData in getTilesForIntent_shouldMarkIconTintableIfMetadataSet() 369 final Bundle metaData = newMetaData(category, keyHint, iconUri, summaryUri, title, in newInfo() local 377 info.activityInfo.metaData = metaData; in newInfo() 384 info.providerInfo.metaData = metaData; in newInfo() 385 ShadowTileUtils.setMetaData(metaData); in newInfo() 397 final Bundle metaData = new Bundle(); in newMetaData() local 398 metaData.putString("com.android.settings.category", category); in newMetaData() 399 metaData.putInt(META_DATA_PREFERENCE_ICON, 314159); in newMetaData() [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/base/services/tests/wmtests/src/com/android/server/wm/ |
D | SplashScreenExceptionListTest.java | 113 Bundle metaData = new Bundle(); in metaDataOptOut() local 115 activityInfo.metaData = metaData; in metaDataOptOut() 118 metaData.putBoolean("android.splashscreen.exception_opt_out", true); in metaDataOptOut() 124 metaData.putBoolean("android.splashscreen.exception_opt_out", false); in metaDataOptOut() 134 activityInfo.metaData = null; in metaDataOptOut()
|
/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/packages/SettingsLib/Tile/src/com/android/settingslib/drawer/ |
D | TileUtils.java | 317 final Bundle metaData = activityInfo.metaData; in loadActivityTiles() local 318 loadTile(user, addedCache, defaultCategory, outTiles, intent, metaData, activityInfo); in loadActivityTiles() 339 for (Bundle metaData : switchData) { in loadProviderTiles() 340 loadTile(user, addedCache, defaultCategory, outTiles, intent, metaData, in loadProviderTiles() 347 String defaultCategory, List<Tile> outTiles, Intent intent, Bundle metaData, in loadTile() argument 352 && Tile.isPrimaryProfileOnly(componentInfo.metaData)) { in loadTile() 361 if ((metaData == null || !metaData.containsKey(EXTRA_CATEGORY_KEY)) in loadTile() 365 + (metaData == null ? "" : EXTRA_CATEGORY_KEY)); in loadTile() 368 categoryKey = metaData.getString(EXTRA_CATEGORY_KEY); in loadTile() 374 metaData.getString(META_DATA_PREFERENCE_KEYHINT)) in loadTile() [all …]
|
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 | Tile.java | 74 public Tile(ComponentInfo info, String category, Bundle metaData) { in Tile() argument 79 mMetaData = metaData; in Tile() 260 public void setMetaData(Bundle metaData) { in setMetaData() argument 261 mMetaData = metaData; in setMetaData() 391 static boolean isPrimaryProfileOnly(Bundle metaData) { in isPrimaryProfileOnly() argument 392 String profile = metaData != null in isPrimaryProfileOnly() 393 ? metaData.getString(META_DATA_KEY_PROFILE) : PROFILE_ALL; in isPrimaryProfileOnly()
|
D | ActivityTile.java | 38 super(info, category, info.metaData); in ActivityTile() 64 setMetaData(mComponentInfo.metaData); in getComponentInfo()
|
/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/packages/SettingsLib/AdaptiveIcon/src/com/android/settingslib/widget/ |
D | AdaptiveIcon.java | 65 final Bundle metaData = tile.getMetaData(); in setBackgroundColor() local 67 if (metaData != null) { in setBackgroundColor() 69 int bgColor = metaData.getInt(META_DATA_PREFERENCE_ICON_BACKGROUND_ARGB, in setBackgroundColor() 73 final int colorRes = metaData.getInt(META_DATA_PREFERENCE_ICON_BACKGROUND_HINT, in setBackgroundColor()
|
/frameworks/base/services/core/java/com/android/server/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/core/java/android/content/pm/ |
D | PackageItemInfo.java | 168 public Bundle metaData; field in PackageItemInfo 190 metaData = orig.metaData; in PackageItemInfo() 394 if (metaData != null) { in loadXmlMetaData() 395 int resid = metaData.getInt(name); in loadXmlMetaData() 442 dest.writeBundle(metaData); in writeToParcel() 473 metaData = source.readBundle(); in PackageItemInfo()
|
/frameworks/base/services/core/java/com/android/server/pm/pkg/parsing/ |
D | PackageInfoWithoutStateUtils.java | 416 ai.metaData = null; in updateApplicationInfo() 549 var metaData = a.getMetaData(); in generateActivityInfoUnchecked() local 551 ai.metaData = metaData.isEmpty() ? null : metaData; in generateActivityInfoUnchecked() 604 var metaData = s.getMetaData(); in generateServiceInfoUnchecked() local 606 si.metaData = metaData.isEmpty() ? null : metaData; in generateServiceInfoUnchecked() 667 var metaData = p.getMetaData(); in generateProviderInfoUnchecked() local 669 pi.metaData = metaData.isEmpty() ? null : metaData; in generateProviderInfoUnchecked() 715 var metaData = i.getMetaData(); in generateInstrumentationInfo() local 717 ii.metaData = metaData.isEmpty() ? null : metaData; in generateInstrumentationInfo() 740 var metaData = p.getMetaData(); in generatePermissionInfo() local [all …]
|
/frameworks/base/core/java/android/widget/ |
D | RemoteViewsAdapter.java | 653 final RemoteViewsIndexMetaData metaData = mIndexMetaData.get(position); in insert() local 654 if (metaData != null) { in insert() 655 metaData.set(v, itemId); in insert() 1025 RemoteViewsMetaData metaData = mCache.getMetaData(); in updateRemoteViews() local 1028 synchronized (metaData) { in updateRemoteViews() 1029 viewTypeInRange = metaData.isViewTypeInRange(layoutId); in updateRemoteViews() 1061 final RemoteViewsMetaData metaData = mCache.getMetaData(); in getCount() local 1062 synchronized (metaData) { in getCount() 1063 return metaData.count; in getCount() 1091 final RemoteViewsMetaData metaData = mCache.getMetaData(); in getItemViewType() local [all …]
|
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/ |
D | NotificationListenersTest.java | 275 si.metaData = new Bundle(); in testEnsureFilters_newServiceWithMetadata() 276 si.metaData.putString(NotificationListenerService.META_DATA_DEFAULT_FILTER_TYPES, "1|2"); in testEnsureFilters_newServiceWithMetadata() 290 si.metaData = new Bundle(); in testEnsureFilters_newServiceWithMetadata_namesNotNumbers() 291 si.metaData.putString(NotificationListenerService.META_DATA_DEFAULT_FILTER_TYPES, in testEnsureFilters_newServiceWithMetadata_namesNotNumbers() 306 si.metaData = new Bundle(); in testEnsureFilters_newServiceWithMetadata_onlyOneListed() 307 si.metaData.putInt(NotificationListenerService.META_DATA_DEFAULT_FILTER_TYPES, 2); in testEnsureFilters_newServiceWithMetadata_onlyOneListed() 321 si.metaData = new Bundle(); in testEnsureFilters_newServiceWithMetadata_disabledTypes() 322 si.metaData.putString(NotificationListenerService.META_DATA_DISABLED_FILTER_TYPES, "1|2"); in testEnsureFilters_newServiceWithMetadata_disabledTypes() 336 si.metaData = new Bundle(); in testEnsureFilters_newServiceWithMetadata_disabledTypes_mixedText() 337 si.metaData.putString(NotificationListenerService.META_DATA_DISABLED_FILTER_TYPES, in testEnsureFilters_newServiceWithMetadata_disabledTypes_mixedText() [all …]
|
/frameworks/base/packages/CompanionDeviceManager/src/com/android/companiondevicemanager/ |
D | Utils.java | 89 final Bundle bundle = appInfo.metaData; in getVendorHeaderIcon() 102 final Bundle bundle = appInfo.metaData; in getVendorHeaderName() 108 return appInfo.metaData.getCharSequence(COMPANION_DEVICE_ACTIVITY_VENDOR_NAME, ""); in getVendorHeaderName() 114 final Bundle bundle = appInfo.metaData; in hasVendorIcon()
|
/frameworks/base/packages/BackupEncryption/src/com/android/server/backup/encryption/tasks/ |
D | EncryptedBackupTask.java | 200 ChunksMetadataProto.ChunksMetadata metaData = new ChunksMetadataProto.ChunksMetadata(); in buildMetadata() local 201 metaData.cipherType = ChunksMetadataProto.AES_256_GCM; in buildMetadata() 202 metaData.checksumType = ChunksMetadataProto.SHA_256; in buildMetadata() 203 metaData.chunkOrdering = encryptChunkOrdering(tertiaryKey, chunkOrdering); in buildMetadata() 204 return metaData; in buildMetadata()
|
/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/packages/SettingsLib/tests/robotests/src/com/android/settingslib/widget/ |
D | AdaptiveIconTest.java | 62 mActivityInfo.metaData = new Bundle(); in setUp() 89 mActivityInfo.metaData.putInt(META_DATA_PREFERENCE_ICON_BACKGROUND_ARGB, 0xff0000); in setBackgroundColor_externalTileWithBackgroundColorRawValue_shouldUpdateIcon() 115 mActivityInfo.metaData.putInt(META_DATA_PREFERENCE_ICON_BACKGROUND_HINT, in onBindTile_externalTileWithBackgroundColorHint_shouldUpdateIcon()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/tuner/ |
D | ShortcutParser.java | 61 if (i.metaData != null && i.metaData.containsKey(SHORTCUTS)) { in getResId() 62 resId = i.metaData.getInt(SHORTCUTS); in getResId()
|
/frameworks/av/media/libstagefright/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 …]
|