Home
last modified time | relevance | path

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

123

/packages/apps/Car/Settings/src/com/android/car/settings/common/
DExtraSettingsLoader.java114 .filter(r -> r.system && r.activityInfo != null && r.activityInfo.metaData != null) in loadPreferences()
117 int orderCompare = r2.activityInfo.metaData.getInt(META_DATA_KEY_ORDER) in loadPreferences()
118 - r1.activityInfo.metaData.getInt(META_DATA_KEY_ORDER); in loadPreferences()
136 Bundle metaData = activityInfo.metaData; in loadPreferences() local
139 if (metaData.containsKey(META_DATA_PREFERENCE_KEYHINT)) { in loadPreferences()
140 key = extractMetaDataString(metaData, META_DATA_PREFERENCE_KEYHINT, res); in loadPreferences()
142 if (!metaData.containsKey(META_DATA_PREFERENCE_TITLE_URI)) { in loadPreferences()
143 title = extractMetaDataString(metaData, META_DATA_PREFERENCE_TITLE, res); in loadPreferences()
149 if (!metaData.containsKey(META_DATA_PREFERENCE_SUMMARY_URI)) { in loadPreferences()
150 summary = extractMetaDataString(metaData, META_DATA_PREFERENCE_SUMMARY, res); in loadPreferences()
[all …]
DExtraSettingsUtil.java54 public static Drawable createIcon(Context context, Bundle metaData, String packageName) { in createIcon() argument
55 if (metaData.containsKey(META_DATA_PREFERENCE_ICON)) { in createIcon()
56 int iconRes = metaData.getInt(META_DATA_PREFERENCE_ICON); in createIcon()
57 return createIcon(context, metaData, packageName, iconRes); in createIcon()
58 } else if (metaData.containsKey(META_DATA_PREFERENCE_ICON_URI)) { in createIcon()
61 return createIcon(context, metaData, packageName, /* resId= */ 0); in createIcon()
69 public static Drawable createIcon(Context context, Bundle metaData, String packageName, in createIcon() argument
81 if (metaData.getBoolean(META_DATA_PREFERENCE_IS_TOP_LEVEL, /* defaultValue= */ false)) { in createIcon()
85 ((TopLevelIcon) icon).setBackgroundColor(context, metaData, packageName); in createIcon()
86 } else if (isIconTintable(metaData)) { in createIcon()
[all …]
DExtraSettingsPreferenceController.java166 Bundle metaData = preferenceBundleMap.get(setting); in addExtraSettings() local
168 if (metaData.containsKey(META_DATA_DISTRACTION_OPTIMIZED)) { in addExtraSettings()
170 metaData.getBoolean(META_DATA_DISTRACTION_OPTIMIZED); in addExtraSettings()
173 getDynamicData(setting, metaData); in addExtraSettings()
181 protected void getDynamicData(Preference preference, Bundle metaData) { in getDynamicData() argument
182 if (metaData.containsKey(META_DATA_PREFERENCE_TITLE_URI)) { in getDynamicData()
186 Uri uri = ExtraSettingsUtil.getCompleteUri(metaData, META_DATA_PREFERENCE_TITLE_URI, in getDynamicData()
190 new DynamicDataObserver(METHOD_GET_DYNAMIC_TITLE, uri, metaData, preference)); in getDynamicData()
192 if (metaData.containsKey(META_DATA_PREFERENCE_SUMMARY_URI)) { in getDynamicData()
196 Uri uri = ExtraSettingsUtil.getCompleteUri(metaData, META_DATA_PREFERENCE_SUMMARY_URI, in getDynamicData()
[all …]
DTopLevelIcon.java73 public void setBackgroundColor(Context context, Bundle metaData, String packageName) { in setBackgroundColor() argument
75 if (metaData != null && packageName != null && !mAlwaysDefaultColor) { in setBackgroundColor()
77 int bgColor = metaData.getInt(META_DATA_PREFERENCE_ICON_BACKGROUND_ARGB, in setBackgroundColor()
81 int colorRes = metaData.getInt(META_DATA_PREFERENCE_ICON_BACKGROUND_HINT, in setBackgroundColor()
/packages/apps/SettingsIntelligence/src/com/android/settings/intelligence/suggestions/model/
DCandidateSuggestion.java179 final Bundle metaData = mResolveInfo.activityInfo.metaData; in updateBuilder() local
181 if (res != null && metaData != null) { in updateBuilder()
183 final Bundle overrideData = getOverrideData(metaData); in updateBuilder()
187 if (metaData.containsKey(META_DATA_PREFERENCE_ICON)) { in updateBuilder()
188 iconRes = metaData.getInt(META_DATA_PREFERENCE_ICON); in updateBuilder()
199 if (TextUtils.isEmpty(title) && metaData.containsKey(META_DATA_PREFERENCE_TITLE)) { in updateBuilder()
200 if (metaData.get(META_DATA_PREFERENCE_TITLE) instanceof Integer) { in updateBuilder()
201 title = res.getString(metaData.getInt(META_DATA_PREFERENCE_TITLE)); in updateBuilder()
203 title = metaData.getString(META_DATA_PREFERENCE_TITLE); in updateBuilder()
209 && metaData.containsKey(META_DATA_PREFERENCE_SUMMARY)) { in updateBuilder()
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/accounts/
DAccountDetailDashboardFragmentTest.java84 mActivityInfo.metaData = new Bundle(); in setUp()
110 mActivityInfo.metaData.putString(METADATA_CATEGORY, CategoryKey.CATEGORY_ACCOUNT_DETAIL); in refreshDashboardTiles_HasAccountType_shouldDisplay()
111 mActivityInfo.metaData.putString(METADATA_ACCOUNT_TYPE, "com.abc"); in refreshDashboardTiles_HasAccountType_shouldDisplay()
119 mActivityInfo.metaData.putString(METADATA_CATEGORY, CategoryKey.CATEGORY_ACCOUNT_DETAIL); in refreshDashboardTiles_NoAccountType_shouldNotDisplay()
127 mActivityInfo.metaData.putString(METADATA_CATEGORY, CategoryKey.CATEGORY_ACCOUNT_DETAIL); in refreshDashboardTiles_OtherAccountType_shouldNotDisplay()
128 mActivityInfo.metaData.putString(METADATA_ACCOUNT_TYPE, "com.other"); in refreshDashboardTiles_OtherAccountType_shouldNotDisplay()
143 mActivityInfo.metaData.putString(META_DATA_PREFERENCE_KEYHINT, "key"); in refreshDashboardTiles_HasAccountType_shouldAddAccountNameToIntent()
144 mActivityInfo.metaData.putString(METADATA_CATEGORY, CategoryKey.CATEGORY_ACCOUNT); in refreshDashboardTiles_HasAccountType_shouldAddAccountNameToIntent()
145 mActivityInfo.metaData.putString(METADATA_ACCOUNT_TYPE, "com.abc"); in refreshDashboardTiles_HasAccountType_shouldAddAccountNameToIntent()
146 mActivityInfo.metaData.putString(META_DATA_PREFERENCE_TITLE, "summary"); in refreshDashboardTiles_HasAccountType_shouldAddAccountNameToIntent()
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/dashboard/
DDashboardFeatureProviderImplTest.java127 mActivityInfo.metaData = new Bundle(); in setUp()
128 mActivityInfo.metaData.putInt(META_DATA_PREFERENCE_TITLE, R.string.settings_label); in setUp()
129 mActivityInfo.metaData.putInt(META_DATA_PREFERENCE_SUMMARY, in setUp()
158 mActivityInfo.metaData.putInt(META_DATA_KEY_ORDER, 10); in bindPreference_shouldBindAllData()
161 mActivityInfo.metaData.putString(SettingsActivity.META_DATA_KEY_FRAGMENT_CLASS, "HI"); in bindPreference_shouldBindAllData()
170 mActivityInfo.metaData.getString(SettingsActivity.META_DATA_KEY_FRAGMENT_CLASS)); in bindPreference_shouldBindAllData()
198 mActivityInfo.metaData.putInt(META_DATA_KEY_ORDER, 10); in bindPreference_noFragmentMetadata_shouldBindIntent()
287 mActivityInfo.metaData.remove(META_DATA_PREFERENCE_SUMMARY); in bindPreference_noSummary_shouldSetNullSummary()
304 mActivityInfo.metaData.putString(TileUtils.META_DATA_PREFERENCE_SUMMARY_URI, uriString); in bindPreference_hasSummaryUri_shouldLoadSummaryFromContentProviderAndHaveObserver()
320 mActivityInfo.metaData.putString(TileUtils.META_DATA_PREFERENCE_TITLE_URI, uriString); in bindPreference_hasTitleUri_shouldLoadFromContentProviderAndHaveObserver()
[all …]
DDashboardFragmentTest.java96 activityInfo.metaData = new Bundle(); in setUp()
97 activityInfo.metaData.putString(META_DATA_PREFERENCE_KEYHINT, "injected_tile_key"); in setUp()
107 final Bundle metaData = new Bundle(); in setUp() local
108 metaData.putString(META_DATA_PREFERENCE_KEYHINT, "injected_tile_key2"); in setUp()
109 metaData.putString(META_DATA_PREFERENCE_SWITCH_URI, "uri"); in setUp()
110 mProviderTile = new ProviderTile(providerInfo, mDashboardCategory.key, metaData); in setUp()
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/common/
DTopLevelIconTest.java69 Bundle metaData = new Bundle(); in injectedPreferenceWithBackgroundColorRawValue_shouldSetColor() local
70 metaData.putInt(META_DATA_PREFERENCE_ICON_BACKGROUND_ARGB, 0xff0000); in injectedPreferenceWithBackgroundColorRawValue_shouldSetColor()
72 icon.setBackgroundColor(mContext, metaData, mContext.getPackageName()); in injectedPreferenceWithBackgroundColorRawValue_shouldSetColor()
79 Bundle metaData = new Bundle(); in injectedPreferenceWithoutBackgroundColor_shouldSetDefaultBackgroundColor() local
81 icon.setBackgroundColor(mContext, metaData, mContext.getPackageName()); in injectedPreferenceWithoutBackgroundColor_shouldSetDefaultBackgroundColor()
89 Bundle metaData = new Bundle(); in injectedPreferenceWithBackgroundColorHintValue_shouldSetColor() local
90 metaData.putInt(META_DATA_PREFERENCE_ICON_BACKGROUND_HINT, android.R.color.darker_gray); in injectedPreferenceWithBackgroundColorHintValue_shouldSetColor()
92 icon.setBackgroundColor(mContext, metaData, mContext.getPackageName()); in injectedPreferenceWithBackgroundColorHintValue_shouldSetColor()
/packages/apps/Settings/src/com/android/settings/notification/zen/
DAbstractZenModeAutomaticRulePreferenceController.java92 if (ci == null || ci.metaData == null) { in getRuleInfo()
96 ? ci.metaData.getString(ConditionProviderService.META_DATA_RULE_TYPE) in getRuleInfo()
97 : ci.metaData.getString(NotificationManager.META_DATA_AUTOMATIC_RULE_TYPE); in getRuleInfo()
110 ? ci.metaData.getInt(ConditionProviderService.META_DATA_RULE_INSTANCE_LIMIT, -1) in getRuleInfo()
111 : ci.metaData.getInt(NotificationManager.META_DATA_RULE_INSTANCE_LIMIT, -1); in getRuleInfo()
130 } else if (ci.metaData != null) { in getSettingsActivity()
132 final String configurationActivity = ci.metaData.getString( in getSettingsActivity()
/packages/apps/Settings/tests/unit/src/com/android/settings/applications/specialaccess/notificationaccess/
DTypeFilterPreferenceControllerTest.java141 mSi.metaData = new Bundle(); in updateState_enabled_metaData_notTheDisableFilter()
142 mSi.metaData.putCharSequence("test", "value"); in updateState_enabled_metaData_notTheDisableFilter()
153 mSi.metaData = new Bundle(); in updateState_enabled_metaData_disableFilter_notThisField()
154 mSi.metaData.putCharSequence(NotificationListenerService.META_DATA_DISABLED_FILTER_TYPES, in updateState_enabled_metaData_disableFilter_notThisField()
166 mSi.metaData = new Bundle(); in updateState_enabled_metaData_disableFilter_thisField_stateIsChecked()
167 mSi.metaData.putCharSequence(NotificationListenerService.META_DATA_DISABLED_FILTER_TYPES, in updateState_enabled_metaData_disableFilter_thisField_stateIsChecked()
190 mSi.metaData = new Bundle(); in updateState_disabled_metaData_disableFilter_thisField_stateIsNotChecked()
191 mSi.metaData.putCharSequence(NotificationListenerService.META_DATA_DISABLED_FILTER_TYPES, in updateState_disabled_metaData_disableFilter_thisField_stateIsNotChecked()
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/common/
DExtraSettingsLoaderTest.java83 activityInfo.metaData = bundle; in testLoadPreference_stringResources_shouldLoadResources()
113 activityInfo.metaData = bundle; in testLoadPreference_metadataBundleIsValue()
153 activityInfo.metaData = bundle; in testLoadPreference_integerResources_shouldLoadResources()
188 activityInfo.metaData = bundle; in testLoadPreference_noDefaultSummary()
216 activityInfo.metaData = bundle; in testLoadPreference_noCategory_shouldSetToDeviceCategory()
245 activityInfo.metaData = bundle; in testLoadPreference_noCategoryMatched_shouldNotReturnPreferences()
270 activityInfo.metaData = bundle; in testLoadPreference_shouldLoadDefaultIcon()
297 activityInfo.metaData = bundle; in testLoadPreference_noSystemApp_returnsNoPreferences()
325 activityInfo.metaData = bundle; in testLoadPreference_systemApp_returnsPreferences()
/packages/apps/Settings/tests/robotests/src/com/android/settings/notification/zen/
DAbstractZenModeAutomaticRulePreferenceControllerTest.java111 ci.metaData = new Bundle(); in testGetSettingsActivity_cps()
112 ci.metaData.putString(ConditionProviderService.META_DATA_CONFIGURATION_ACTIVITY, in testGetSettingsActivity_cps()
134 ci.metaData = new Bundle(); in testGetSettingsActivity_cps_wrongPackage()
135 ci.metaData.putString(ConditionProviderService.META_DATA_CONFIGURATION_ACTIVITY, in testGetSettingsActivity_cps_wrongPackage()
156 ci.metaData = new Bundle(); in testGetSettingsActivity_cps_unspecifiedPackage()
157 ci.metaData.putString(ConditionProviderService.META_DATA_CONFIGURATION_ACTIVITY, in testGetSettingsActivity_cps_unspecifiedPackage()
/packages/apps/TimeZoneData/src/main/com/android/timezone/data/
DTimeZoneRulesDataProvider.java133 Bundle metaData = infoWithMetadata.metaData; in attachInfo() local
134 if (metaData == null) { in attachInfo()
141 type = getMandatoryMetaDataString(metaData, METADATA_KEY_OPERATION); in attachInfo()
319 private static String getMandatoryMetaDataString(Bundle metaData, String key) {
320 if (!metaData.containsKey(key)) {
323 return metaData.getString(key);
/packages/apps/Settings/src/com/android/settings/applications/
DUsageAccessDetails.java168 Bundle metaData = resolveInfo.activityInfo.metaData; in refreshUi() local
171 if (metaData != null in refreshUi()
172 && metaData.containsKey(Settings.METADATA_USAGE_ACCESS_REASON)) { in refreshUi()
174 metaData.getString(Settings.METADATA_USAGE_ACCESS_REASON)); in refreshUi()
/packages/wallpapers/LivePicker/src/com/android/wallpaper/livepicker/
DLiveWallpaperChange.java101 final Bundle metaData = serviceInfo.metaData; in getDeleteAction() local
102 if (metaData != null) { in getDeleteAction()
103 return metaData.getString(KEY_ACTION_DELETE_LIVE_WALLPAPER); in getDeleteAction()
/packages/apps/DocumentsUI/tests/common/com/android/documentsui/
DInspectorProvider.java147 Bundle metaData = new Bundle(); in getDocumentMetadata() local
148 metaData.putInt(ExifInterface.TAG_IMAGE_WIDTH, TEST_JPEG_WIDTH); in getDocumentMetadata()
149 metaData.putInt(ExifInterface.TAG_IMAGE_LENGTH, TEST_JPEG_HEIGHT); in getDocumentMetadata()
150 return metaData; in getDocumentMetadata()
/packages/apps/Settings/src/com/android/settings/wifi/dpp/
DWifiDppQrCodeGeneratorFragment.java199 final Bundle metaData = resolveInfo.activityInfo.metaData; in getNearbySharingTarget() local
200 if (metaData != null) { in getNearbySharingTarget()
203 final int nameResId = metaData.getInt(CHIP_LABEL_METADATA_KEY); in getNearbySharingTarget()
205 final int resId = metaData.getInt(CHIP_ICON_METADATA_KEY); in getNearbySharingTarget()
/packages/apps/Settings/src/com/android/settings/applications/appinfo/
DInstantAppButtonsPreferenceController.java153 final Bundle metaData = info.activityInfo.metaData; in getDefaultLaunchUri() local
154 if (metaData != null) { in getDefaultLaunchUri()
155 final String launchUri = metaData.getString(META_DATA_DEFAULT_URI); in getDefaultLaunchUri()
/packages/apps/Settings/tests/unit/src/com/android/settings/dashboard/
DCategoryManagerTest.java323 activityInfo.metaData = new Bundle(); in createActivityTile()
324 activityInfo.metaData.putInt(META_DATA_KEY_ORDER, order); in createActivityTile()
331 final Bundle metaData = new Bundle(); in createProviderTile() local
335 metaData.putString(META_DATA_PREFERENCE_KEYHINT, key); in createProviderTile()
336 metaData.putInt(META_DATA_KEY_ORDER, order); in createProviderTile()
337 return new ProviderTile(providerInfo, categoryKey, metaData); in createProviderTile()
/packages/apps/Settings/src/com/android/settings/applications/specialaccess/notificationaccess/
DTypeFilterPreferenceController.java129 if (mSi.metaData != null && mSi.metaData.containsKey( in updateState()
131 String typeList = mSi.metaData.get( in updateState()
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
DContactDirectoryManagerTest.java142 provider.metaData = new Bundle(); in testIsDirectoryProvider()
146 provider.metaData.putString("android.content.ContactDirectory", ""); in testIsDirectoryProvider()
150 provider.metaData.putBoolean("android.content.ContactDirectory", false); in testIsDirectoryProvider()
154 provider.metaData.putBoolean("android.content.ContactDirectory", true); in testIsDirectoryProvider()
653 providerInfo.metaData = new Bundle(); in createPackage()
654 providerInfo.metaData.putBoolean("android.content.ContactDirectory", true); in createPackage()
/packages/apps/ThemePicker/src/com/android/customization/model/themedicon/
DThemedIconUtils.java43 if (resolveInfo != null && resolveInfo.activityInfo.metaData != null) { in ThemedIconUtils()
44 mProviderAuthority = resolveInfo.activityInfo.metaData.getString(authorityMetaKey); in ThemedIconUtils()
/packages/apps/SettingsIntelligence/src/com/android/settings/intelligence/suggestions/eligibility/
DDismissedChecker.java96 if (!info.activityInfo.metaData.containsKey(META_DATA_DISMISS_CONTROL)) { in parseAppearDay()
100 final Object firstAppearRule = info.activityInfo.metaData in parseAppearDay()
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/util/
DPreviewUtils.java50 if (info != null && info.activityInfo != null && info.activityInfo.metaData != null) { in PreviewUtils()
51 mProviderAuthority = info.activityInfo.metaData.getString(authorityMetadataKey); in PreviewUtils()

123