Home
last modified time | relevance | path

Searched refs:metaData (Results 1 – 25 of 68) sorted by relevance

123

/frameworks/layoutlib/bridge/src/android/util/imagepool/
DImagePoolHelper.java72 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 …]
DImagePoolImpl.java62 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/
DTileTest.java43 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 …]
DTileUtilsTest.java250 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/
DImagePoolHelperTest.java39 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/
DSignedConfigService.java79 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/
DPreviewInflater.java98 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/media/java/android/media/
DTimedMetaData.java58 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/
DMetaDataTest.java49 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/
DAdaptiveIcon.java62 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/content/pm/
DPackageItemInfo.java159 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/core/java/android/widget/
DRemoteViewsAdapter.java651 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/
DTileUtils.java277 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()
DTile.java79 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/
DNetworkScorerAppManager.java109 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/
DAndroidPackageInfoFetcher.java78 if (appInfo.metaData == null) { in getStatements()
81 int tokenResourceId = appInfo.metaData.getInt(ASSOCIATED_ASSETS_KEY); in getStatements()
/frameworks/av/media/libstagefright/mpeg2ts/
DESQueue.cpp107 const uint8_t *ptr, size_t size, sp<MetaData> *metaData) { in parseAC3SyncFrame() argument
204 if (metaData != NULL) { in parseAC3SyncFrame()
205 (*metaData)->setCString(kKeyMIMEType, MEDIA_MIMETYPE_AUDIO_AC3); in parseAC3SyncFrame()
206 (*metaData)->setInt32(kKeyChannelCount, channelCount); in parseAC3SyncFrame()
207 (*metaData)->setInt32(kKeySampleRate, samplingRate); in parseAC3SyncFrame()
217 const uint8_t *ptr, size_t size, sp<MetaData> *metaData) { in parseEAC3SyncFrame() argument
274 if (metaData != NULL && (strmtyp == 0 || strmtyp == 2)) { in parseEAC3SyncFrame()
278 (*metaData)->setCString(kKeyMIMEType, MEDIA_MIMETYPE_AUDIO_EAC3); in parseEAC3SyncFrame()
279 (*metaData)->setInt32(kKeyChannelCount, channelCount); in parseEAC3SyncFrame()
280 (*metaData)->setInt32(kKeySampleRate, samplingRate); in parseEAC3SyncFrame()
[all …]
/frameworks/base/core/tests/coretests/src/android/content/pm/
DPackageParserTest.java436 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()
516 assertNotNull(pi.applicationInfo.metaData); in testApexPackageInfoGeneration()
519 pi.applicationInfo.metaData.toString()); in testApexPackageInfoGeneration()
/frameworks/base/packages/SystemUI/src/com/android/systemui/tuner/
DShortcutParser.java61 if (i.metaData != null && i.metaData.containsKey(SHORTCUTS)) { in getResId()
62 resId = i.metaData.getInt(SHORTCUTS); in getResId()
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/widget/
DAdaptiveIconTest.java61 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/core/java/android/speech/
DRecognizerIntent.java338 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/
DPackageInstalledNotificationUtils.java142 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/packages/SystemUI/src/com/android/systemui/assist/
DAssistManager.java398 Bundle metaData = isService in replaceDrawable() local
400 component, PackageManager.GET_META_DATA).metaData in replaceDrawable()
402 component, PackageManager.GET_META_DATA).metaData; in replaceDrawable()
403 if (metaData != null) { in replaceDrawable()
404 int iconResId = metaData.getInt(name); in replaceDrawable()
/frameworks/base/core/java/android/preference/
DPreferenceManager.java287 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/
DInputMethodInfoTest.java92 serviceInfo.metaData = new Bundle(); in buildInputMethodForTest()
93 serviceInfo.metaData.putInt(InputMethod.SERVICE_META_DATA, metaDataRes); in buildInputMethodForTest()

123