Home
last modified time | relevance | path

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

123

/packages/apps/Settings/tests/robotests/src/com/android/settings/dashboard/
DCategoryManagerTest.java135 activityInfo1.metaData = new Bundle(); in sortCategories_singlePackage_shouldReorderBasedOnPriority()
136 activityInfo1.metaData.putInt(META_DATA_KEY_ORDER, 100); in sortCategories_singlePackage_shouldReorderBasedOnPriority()
140 activityInfo2.metaData = new Bundle(); in sortCategories_singlePackage_shouldReorderBasedOnPriority()
141 activityInfo2.metaData.putInt(META_DATA_KEY_ORDER, 50); in sortCategories_singlePackage_shouldReorderBasedOnPriority()
145 activityInfo3.metaData = new Bundle(); in sortCategories_singlePackage_shouldReorderBasedOnPriority()
146 activityInfo3.metaData.putInt(META_DATA_KEY_ORDER, 200); in sortCategories_singlePackage_shouldReorderBasedOnPriority()
174 activityInfo1.metaData = new Bundle(); in sortCategories_multiPackage_shouldReorderBasedOnPackageAndPriority()
175 activityInfo1.metaData.putInt(META_DATA_KEY_ORDER, 100); in sortCategories_multiPackage_shouldReorderBasedOnPackageAndPriority()
179 activityInfo2.metaData = new Bundle(); in sortCategories_multiPackage_shouldReorderBasedOnPackageAndPriority()
180 activityInfo2.metaData.putInt(META_DATA_KEY_ORDER, 100); in sortCategories_multiPackage_shouldReorderBasedOnPackageAndPriority()
[all …]
DDashboardFeatureProviderImplTest.java111 mActivityInfo.metaData = new Bundle(); in setUp()
112 mActivityInfo.metaData.putInt(META_DATA_PREFERENCE_TITLE, R.string.settings_label); in setUp()
113 mActivityInfo.metaData.putInt(META_DATA_PREFERENCE_SUMMARY, in setUp()
131 mActivityInfo.metaData.putInt(META_DATA_KEY_ORDER, 10); in bindPreference_shouldBindAllData()
134 mActivityInfo.metaData.putString(SettingsActivity.META_DATA_KEY_FRAGMENT_CLASS, "HI"); in bindPreference_shouldBindAllData()
143 mActivityInfo.metaData.getString(SettingsActivity.META_DATA_KEY_FRAGMENT_CLASS)); in bindPreference_shouldBindAllData()
150 mActivityInfo.metaData.putInt(META_DATA_KEY_ORDER, 10); in bindPreference_noFragmentMetadata_shouldBindIntent()
240 mActivityInfo.metaData.remove(META_DATA_PREFERENCE_SUMMARY); in bindPreference_noSummary_shouldSetSummaryToPlaceholder()
256 mActivityInfo.metaData.putString(TileUtils.META_DATA_PREFERENCE_SUMMARY_URI, in bindPreference_hasSummaryUri_shouldLoadSummaryFromContentProvider()
268 mActivityInfo.metaData.putString(META_DATA_PREFERENCE_KEYHINT, "key"); in bindPreference_withNullKeyTileKey_shouldUseTileKey()
[all …]
/packages/apps/Car/Settings/src/com/android/car/settings/common/
DExtraSettingsLoader.java83 Bundle metaData = activityInfo.metaData; in loadPreferences() local
86 if (metaData.containsKey(META_DATA_PREFERENCE_TITLE)) { in loadPreferences()
87 if (metaData.get(META_DATA_PREFERENCE_TITLE) instanceof Integer) { in loadPreferences()
88 title = res.getString(metaData.getInt(META_DATA_PREFERENCE_TITLE)); in loadPreferences()
90 title = metaData.getString(META_DATA_PREFERENCE_TITLE); in loadPreferences()
97 if (metaData.containsKey(META_DATA_PREFERENCE_SUMMARY)) { in loadPreferences()
98 if (metaData.get(META_DATA_PREFERENCE_SUMMARY) instanceof Integer) { in loadPreferences()
99 summary = res.getString(metaData.getInt(META_DATA_PREFERENCE_SUMMARY)); in loadPreferences()
101 summary = metaData.getString(META_DATA_PREFERENCE_SUMMARY); in loadPreferences()
106 if (metaData.containsKey(META_DATA_PREFERENCE_CATEGORY)) { in loadPreferences()
[all …]
DExtraSettingsPreferenceController.java116 Bundle metaData = preferenceBundleMap.get(setting); in addExtraSettings() local
118 if (metaData.containsKey(META_DATA_DISTRACTION_OPTIMIZED)) { in addExtraSettings()
120 metaData.getBoolean(META_DATA_DISTRACTION_OPTIMIZED); in addExtraSettings()
/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.java83 mActivityInfo.metaData = new Bundle(); in setUp()
109 mActivityInfo.metaData.putString(METADATA_CATEGORY, CategoryKey.CATEGORY_ACCOUNT_DETAIL); in refreshDashboardTiles_HasAccountType_shouldDisplay()
110 mActivityInfo.metaData.putString(METADATA_ACCOUNT_TYPE, "com.abc"); in refreshDashboardTiles_HasAccountType_shouldDisplay()
118 mActivityInfo.metaData.putString(METADATA_CATEGORY, CategoryKey.CATEGORY_ACCOUNT_DETAIL); in refreshDashboardTiles_NoAccountType_shouldNotDisplay()
126 mActivityInfo.metaData.putString(METADATA_CATEGORY, CategoryKey.CATEGORY_ACCOUNT_DETAIL); in refreshDashboardTiles_OtherAccountType_shouldNotDisplay()
127 mActivityInfo.metaData.putString(METADATA_ACCOUNT_TYPE, "com.other"); in refreshDashboardTiles_OtherAccountType_shouldNotDisplay()
142 mActivityInfo.metaData.putString(META_DATA_PREFERENCE_KEYHINT, "key"); in refreshDashboardTiles_HasAccountType_shouldAddAccountNameToIntent()
143 mActivityInfo.metaData.putString(METADATA_CATEGORY, CategoryKey.CATEGORY_ACCOUNT); in refreshDashboardTiles_HasAccountType_shouldAddAccountNameToIntent()
144 mActivityInfo.metaData.putString(METADATA_ACCOUNT_TYPE, "com.abc"); in refreshDashboardTiles_HasAccountType_shouldAddAccountNameToIntent()
145 mActivityInfo.metaData.putString(META_DATA_PREFERENCE_TITLE, "summary"); in refreshDashboardTiles_HasAccountType_shouldAddAccountNameToIntent()
[all …]
/packages/apps/Settings/src/com/android/settings/notification/
DAbstractZenModeAutomaticRulePreferenceController.java88 if (ci == null || ci.metaData == null) { in getRuleInfo()
92 ? ci.metaData.getString(ConditionProviderService.META_DATA_RULE_TYPE) in getRuleInfo()
93 : ci.metaData.getString(NotificationManager.META_DATA_AUTOMATIC_RULE_TYPE); in getRuleInfo()
106 ? ci.metaData.getInt(ConditionProviderService.META_DATA_RULE_INSTANCE_LIMIT, -1) in getRuleInfo()
107 : ci.metaData.getInt(NotificationManager.META_DATA_RULE_INSTANCE_LIMIT, -1); in getRuleInfo()
126 if (ci.metaData != null) { in getSettingsActivity()
127 final String configurationActivity = ci.metaData.getString( in getSettingsActivity()
/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/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/notification/
DAbstractZenModeAutomaticRulePreferenceController.java88 if (ci == null || ci.metaData == null) { in getRuleInfo()
92 ? ci.metaData.getString(ConditionProviderService.META_DATA_RULE_TYPE) in getRuleInfo()
93 : ci.metaData.getString(NotificationManager.META_DATA_AUTOMATIC_RULE_TYPE); in getRuleInfo()
106 ? ci.metaData.getInt(ConditionProviderService.META_DATA_RULE_INSTANCE_LIMIT, -1) in getRuleInfo()
107 : ci.metaData.getInt(NotificationManager.META_DATA_RULE_INSTANCE_LIMIT, -1); in getRuleInfo()
127 ci.metaData.getString(ConditionProviderService.META_DATA_CONFIGURATION_ACTIVITY); in getSettingsActivity()
/packages/apps/Settings/tests/unit/src/com/android/settings/core/
DSettingsGatewayTest.java102 final Bundle metaData = activity.metaData; in publicFragmentMustAppearInSettingsGateway() local
103 if (metaData == null || !metaData.containsKey(META_DATA_KEY_FRAGMENT_CLASS)) { in publicFragmentMustAppearInSettingsGateway()
106 final String fragmentName = metaData.getString(META_DATA_KEY_FRAGMENT_CLASS); in publicFragmentMustAppearInSettingsGateway()
/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/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/applications/
DUsageAccessDetails.java146 Bundle metaData = resolveInfo.activityInfo.metaData; in refreshUi() local
149 if (metaData != null in refreshUi()
150 && metaData.containsKey(Settings.METADATA_USAGE_ACCESS_REASON)) { in refreshUi()
152 metaData.getString(Settings.METADATA_USAGE_ACCESS_REASON)); in refreshUi()
/packages/apps/Settings/src/com/android/settings/applications/
DUsageAccessDetails.java146 Bundle metaData = resolveInfo.activityInfo.metaData; in refreshUi() local
149 if (metaData != null in refreshUi()
150 && metaData.containsKey(Settings.METADATA_USAGE_ACCESS_REASON)) { in refreshUi()
152 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/PermissionController/src/com/android/packageinstaller/role/model/
DRequiredComponent.java69 @NonNull List<RequiredMetaData> metaData) { in RequiredComponent() argument
72 mMetaData = metaData; in RequiredComponent()
160 RequiredMetaData metaData = mMetaData.get(metaDataIndex); in getQualifyingComponentsInternal() local
162 if (!metaData.isQualified(componentMetaData)) { in getQualifyingComponentsInternal()
DRequiredMetaData.java77 public boolean isQualified(@NonNull Bundle metaData) { in isQualified() argument
78 if (metaData.containsKey(mName)) { in isQualified()
79 Object metaDataValue = metaData.get(mName); in isQualified()
DRequiredBroadcastReceiver.java40 @Nullable String permission, @NonNull List<RequiredMetaData> metaData) { in RequiredBroadcastReceiver() argument
41 super(intentFilterData, permission, metaData); in RequiredBroadcastReceiver()
69 return resolveInfo.activityInfo.metaData; in getComponentMetaData()
DRequiredActivity.java40 @Nullable String permission, @NonNull List<RequiredMetaData> metaData) { in RequiredActivity() argument
41 super(intentFilterData, permission, metaData); in RequiredActivity()
70 return resolveInfo.activityInfo.metaData; in getComponentMetaData()
DRequiredContentProvider.java40 @Nullable String permission, @NonNull List<RequiredMetaData> metaData) { in RequiredContentProvider() argument
41 super(intentFilterData, permission, metaData); in RequiredContentProvider()
71 return resolveInfo.providerInfo.metaData; in getComponentMetaData()
DRequiredService.java40 @Nullable String permission, @NonNull List<RequiredMetaData> metaData) { in RequiredService() argument
41 super(intentFilterData, permission, metaData); in RequiredService()
68 return resolveInfo.serviceInfo.metaData; in getComponentMetaData()
/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/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/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/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/services/Telecomm/src/com/android/server/telecom/
DInCallController.java1464 boolean isExternalCallsSupported = serviceInfo.metaData != null && in getInCallServiceComponents()
1465 serviceInfo.metaData.getBoolean( in getInCallServiceComponents()
1467 boolean isSelfManageCallsSupported = serviceInfo.metaData != null && in getInCallServiceComponents()
1468 serviceInfo.metaData.getBoolean( in getInCallServiceComponents()
1515 boolean isUIService = serviceInfo.metaData != null && in getInCallServiceType()
1516 serviceInfo.metaData.getBoolean(TelecomManager.METADATA_IN_CALL_SERVICE_UI); in getInCallServiceType()
1530 boolean isCarModeUIService = serviceInfo.metaData != null && in getInCallServiceType()
1531 serviceInfo.metaData.getBoolean( in getInCallServiceType()
1803 if (info.serviceInfo == null || info.serviceInfo.metaData == null) { in doesConnectedDialerSupportRinging()
1809 return info.serviceInfo.metaData in doesConnectedDialerSupportRinging()

123