/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/layoutlib/bridge/src/android/util/imagepool/ |
D | ImagePoolHelper.java | 72 Bucket bucket, BucketCreationMetaData metaData, ImagePoolStats stats) { in getBufferedImage() argument 75 BufferedImage strongRef = populateBucket(bucket, metaData, stats); in getBufferedImage() 92 return getBufferedImage(bucket, metaData, stats); in getBufferedImage() 105 Bucket bucket, BucketCreationMetaData metaData, ImagePoolStats stats) { in populateBucket() argument 112 for (int i = 0; i < metaData.mNumberOfCopies; i++) { in populateBucket() 114 metaData.mWidth, metaData.mHeight, metaData.mMaxCacheSize)) { in populateBucket() 117 strongRef =new BufferedImage(metaData.mWidth, metaData.mHeight, in populateBucket() 118 metaData.mType); in populateBucket() 120 stats.recordBucketCreation(metaData.mWidth, metaData.mHeight); in populateBucket() 135 …public static Bucket getBucket(Map<String, Bucket> map, BucketCreationMetaData metaData, ImagePool… in getBucket() argument [all …]
|
D | ImagePoolImpl.java | 62 BucketCreationMetaData metaData = in acquire() local 64 if (metaData == null) { in acquire() 68 final Bucket existingBucket = ImagePoolHelper.getBucket(mPool, metaData, mPolicy); in acquire() 70 ImagePoolHelper.getBufferedImage(existingBucket, metaData, mImagePoolStats); in acquire() 81 new ImageImpl(w, h, img, metaData.mOrientation), in acquire()
|
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/drawer/ |
D | TileTest.java | 43 mActivityInfo.metaData = new Bundle(); in setUp() 49 mActivityInfo.metaData.putString(META_DATA_KEY_PROFILE, PROFILE_PRIMARY); in isPrimaryProfileOnly_profilePrimary_shouldReturnTrue() 55 mActivityInfo.metaData.putString(META_DATA_KEY_PROFILE, PROFILE_ALL); in isPrimaryProfileOnly_profileAll_shouldReturnFalse() 66 mActivityInfo.metaData = null; in isPrimaryProfileOnly_nullMetadata_shouldReturnFalse() 72 mActivityInfo.metaData = null; in getIcon_noContextOrMetadata_returnNull() 80 mActivityInfo.metaData.putString(META_DATA_PREFERENCE_ICON_URI, "content://foobar/icon"); in getIcon_providedByUri_returnNull() 87 mActivityInfo.metaData.putInt(META_DATA_PREFERENCE_ICON, android.R.drawable.ic_info); in getIcon_hasIconMetadata_returnIcon() 95 mActivityInfo.metaData.putInt(META_DATA_PREFERENCE_ICON, 0); in getIcon_noIconMetadata_returnActivityIcon() 105 mActivityInfo.metaData.putBoolean(TileUtils.META_DATA_PREFERENCE_ICON_TINTABLE, false); in isIconTintable_hasMetadata_shouldReturnIconTintableMetadata() 108 mActivityInfo.metaData.putBoolean(TileUtils.META_DATA_PREFERENCE_ICON_TINTABLE, true); in isIconTintable_hasMetadata_shouldReturnIconTintableMetadata() [all …]
|
D | TileUtilsTest.java | 250 resolveInfo.activityInfo.metaData = new Bundle(oldMetadata); in getTilesForIntent_tileAlreadyInCache_shouldUpdateMetaData() 251 resolveInfo.activityInfo.metaData.putInt(META_DATA_PREFERENCE_ICON, in getTilesForIntent_tileAlreadyInCache_shouldUpdateMetaData() 270 resolveInfo.activityInfo.metaData in getTilesForIntent_shouldMarkIconTintableIfMetadataSet() 322 info.activityInfo.metaData = new Bundle(); in newInfo() 323 info.activityInfo.metaData.putString("com.android.settings.category", category); in newInfo() 324 info.activityInfo.metaData.putInt(META_DATA_PREFERENCE_ICON, 314159); in newInfo() 325 info.activityInfo.metaData.putString(META_DATA_PREFERENCE_SUMMARY, "static-summary"); in newInfo() 327 info.activityInfo.metaData.putString(META_DATA_PREFERENCE_KEYHINT, keyHint); in newInfo() 330 info.activityInfo.metaData.putString(META_DATA_PREFERENCE_ICON_URI, iconUri); in newInfo() 333 info.activityInfo.metaData.putString(META_DATA_PREFERENCE_SUMMARY_URI, summaryUri); in newInfo() [all …]
|
/frameworks/layoutlib/bridge/tests/src/android/util/imagepool/ |
D | ImagePoolHelperTest.java | 39 BucketCreationMetaData metaData = new BucketCreationMetaData( in testGetBufferedImage() local 44 assertNotNull(ImagePoolHelper.getBufferedImage(bucket, metaData, stats)); in testGetBufferedImage() 59 BucketCreationMetaData metaData = new BucketCreationMetaData( in testGetBufferedImageRecurse() local 64 assertNotNull(ImagePoolHelper.getBufferedImage(bucket, metaData, stats)); in testGetBufferedImageRecurse() 79 BucketCreationMetaData metaData = new BucketCreationMetaData( in testRecurseThenHitCacheLimit() local 84 assertNull(ImagePoolHelper.getBufferedImage(bucket, metaData, stats)); in testRecurseThenHitCacheLimit() 101 BucketCreationMetaData metaData = new BucketCreationMetaData( in testBucketHasImageToReturn() local 106 assertNotNull(ImagePoolHelper.getBufferedImage(bucket, metaData, stats)); in testBucketHasImageToReturn()
|
/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/packages/SystemUI/src/com/android/systemui/statusbar/policy/ |
D | PreviewInflater.java | 98 Bundle metaData = packageManager.getServiceInfo( in getWidgetInfoFromService() local 99 componentName, PackageManager.GET_META_DATA).metaData; in getWidgetInfoFromService() 100 return getWidgetInfoFromMetaData(componentName.getPackageName(), metaData); in getWidgetInfoFromService() 109 Bundle metaData) { in getWidgetInfoFromMetaData() argument 110 if (metaData == null) { in getWidgetInfoFromMetaData() 113 int layoutId = metaData.getInt(META_DATA_KEYGUARD_LAYOUT); in getWidgetInfoFromMetaData() 143 resolved.activityInfo.metaData); in getWidgetInfo()
|
/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/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/java/android/content/pm/ |
D | PackageItemInfo.java | 159 public Bundle metaData; field in PackageItemInfo 181 metaData = orig.metaData; in PackageItemInfo() 383 if (metaData != null) { in loadXmlMetaData() 384 int resid = metaData.getInt(name); in loadXmlMetaData() 431 dest.writeBundle(metaData); in writeToParcel() 462 metaData = source.readBundle(); in PackageItemInfo()
|
/frameworks/base/packages/SettingsLib/AdaptiveIcon/src/com/android/settingslib/widget/ |
D | AdaptiveIcon.java | 62 final Bundle metaData = tile.getMetaData(); in setBackgroundColor() local 64 if (metaData != null) { in setBackgroundColor() 66 int bgColor = metaData.getInt(META_DATA_PREFERENCE_ICON_BACKGROUND_ARGB, in setBackgroundColor() 70 final int colorRes = metaData.getInt(META_DATA_PREFERENCE_ICON_BACKGROUND_HINT, in setBackgroundColor()
|
/frameworks/base/core/java/android/widget/ |
D | RemoteViewsAdapter.java | 651 final RemoteViewsIndexMetaData metaData = mIndexMetaData.get(position); in insert() local 652 if (metaData != null) { in insert() 653 metaData.set(v, itemId); in insert() 1023 RemoteViewsMetaData metaData = mCache.getMetaData(); in updateRemoteViews() local 1026 synchronized (metaData) { in updateRemoteViews() 1027 viewTypeInRange = metaData.isViewTypeInRange(layoutId); in updateRemoteViews() 1059 final RemoteViewsMetaData metaData = mCache.getMetaData(); in getCount() local 1060 synchronized (metaData) { in getCount() 1061 return metaData.count; in getCount() 1089 final RemoteViewsMetaData metaData = mCache.getMetaData(); in getItemViewType() local [all …]
|
/frameworks/base/packages/SettingsLib/Tile/src/com/android/settingslib/drawer/ |
D | TileUtils.java | 277 Bundle metaData = activityInfo.metaData; in getTilesForAction() local 281 if ((metaData == null || !metaData.containsKey(EXTRA_CATEGORY_KEY)) in getTilesForAction() 285 + (metaData == null ? "" : EXTRA_CATEGORY_KEY)); in getTilesForAction() 288 categoryKey = metaData.getString(EXTRA_CATEGORY_KEY); in getTilesForAction() 297 tile.setMetaData(metaData); in getTilesForAction()
|
D | Tile.java | 79 mMetaData = activityInfo.metaData; in Tile() 233 public void setMetaData(Bundle metaData) { in setMetaData() argument 234 mMetaData = metaData; in setMetaData() 349 mMetaData = mActivityInfo.metaData; in getActivityInfo()
|
/frameworks/base/services/core/java/com/android/server/ |
D | NetworkScorerAppManager.java | 109 if (serviceInfo.metaData != null) { in getRecommendationServiceLabel() 110 final String label = serviceInfo.metaData in getRecommendationServiceLabel() 122 if (serviceInfo.metaData == null) { in findUseOpenWifiNetworksActivity() 128 final String useOpenWifiPackage = serviceInfo.metaData in findUseOpenWifiNetworksActivity() 154 if (serviceInfo.metaData == null) { in getNetworkAvailableNotificationChannelId() 161 return serviceInfo.metaData.getString( in getNetworkAvailableNotificationChannelId()
|
/frameworks/base/packages/StatementService/src/com/android/statementservice/retriever/ |
D | AndroidPackageInfoFetcher.java | 78 if (appInfo.metaData == null) { in getStatements() 81 int tokenResourceId = appInfo.metaData.getInt(ASSOCIATED_ASSETS_KEY); in getStatements()
|
/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 …]
|
/frameworks/base/core/tests/coretests/src/android/content/pm/ |
D | PackageParserTest.java | 436 assertMetadata(p.activities.get(0).metaData, in checkPackageWithComponents() 439 assertMetadata(p.services.get(0).metaData, in checkPackageWithComponents() 442 assertMetadata(p.receivers.get(0).metaData, in checkPackageWithComponents() 445 assertMetadata(p.providers.get(0).metaData, in checkPackageWithComponents() 521 assertNotNull(pi.applicationInfo.metaData); in testApexPackageInfoGeneration() 524 pi.applicationInfo.metaData.toString()); in testApexPackageInfoGeneration()
|
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/widget/ |
D | AdaptiveIconTest.java | 61 mActivityInfo.metaData = new Bundle(); in setUp() 88 mActivityInfo.metaData.putInt(META_DATA_PREFERENCE_ICON_BACKGROUND_ARGB, 0xff0000); in setBackgroundColor_externalTileWithBackgroundColorRawValue_shouldUpdateIcon() 114 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/base/core/java/android/speech/ |
D | RecognizerIntent.java | 338 if (ri == null || ri.activityInfo == null || ri.activityInfo.metaData == null) return null; in getVoiceDetailsIntent() 340 String className = ri.activityInfo.metaData.getString(DETAILS_META_DATA); in getVoiceDetailsIntent()
|
/frameworks/base/packages/PackageInstaller/src/com/android/packageinstaller/ |
D | PackageInstalledNotificationUtils.java | 142 if (appInfo.metaData == null) { in getAppNotificationIcon() 146 int iconResId = appInfo.metaData.getInt( in getAppNotificationIcon() 164 if (appInfo.metaData == null) { in getAppNotificationColor() 168 int colorResId = appInfo.metaData.getInt( in getAppNotificationColor()
|
/frameworks/base/core/java/android/preference/ |
D | PreferenceManager.java | 287 final Bundle metaData = activityInfo.metaData; in inflateFromIntent() local 289 if ((metaData == null) || !metaData.containsKey(METADATA_KEY_PREFERENCES)) { in inflateFromIntent() 296 + activityInfo.metaData.getInt(METADATA_KEY_PREFERENCES); in inflateFromIntent()
|
/frameworks/base/core/tests/coretests/src/android/view/inputmethod/ |
D | InputMethodInfoTest.java | 92 serviceInfo.metaData = new Bundle(); in buildInputMethodForTest() 93 serviceInfo.metaData.putInt(InputMethod.SERVICE_META_DATA, metaDataRes); in buildInputMethodForTest()
|