Home
last modified time | relevance | path

Searched refs:categories (Results 1 – 25 of 35) sorted by relevance

12

/frameworks/base/services/core/java/com/android/server/pm/
DShortcutParser.java141 Set<String> categories = null; in parseShortcutsOneFile() local
197 if (categories != null) { in parseShortcutsOneFile()
198 si.setCategories(categories); in parseShortcutsOneFile()
199 categories = null; in parseShortcutsOneFile()
224 if (categories == null || categories.isEmpty() || dataList.isEmpty()) { in parseShortcutsOneFile()
231 sti.mTargetClass, categories.toArray(new String[categories.size()])); in parseShortcutsOneFile()
236 categories = null; in parseShortcutsOneFile()
267 categories = null; in parseShortcutsOneFile()
277 categories = null; in parseShortcutsOneFile()
309 if (categories == null) { in parseShortcutsOneFile()
[all …]
DShareTargetInfo.java104 ShareTargetInfo(TargetData[] data, String targetClass, String[] categories) { in ShareTargetInfo() argument
107 mCategories = categories; in ShareTargetInfo()
156 final ArrayList<String> categories = new ArrayList<>(); in loadFromXml() local
166 categories.add(ShortcutService.parseStringAttribute(parser, ATTR_NAME)); in loadFromXml()
173 if (targetData.isEmpty() || targetClass == null || categories.isEmpty()) { in loadFromXml()
178 targetClass, categories.toArray(new String[categories.size()])); in loadFromXml()
DShortcutPackage.java685 final Set<String> categories = shortcuts.get(i).getCategories(); in getMatchingShareTargets() local
686 if (categories == null || categories.isEmpty()) { in getMatchingShareTargets()
694 if (!categories.contains(target.mCategories[q])) { in getMatchingShareTargets()
729 final Set<String> categories = shortcuts.get(i).getCategories(); in getSharingShortcutCount() local
730 if (categories == null || categories.isEmpty()) { in getSharingShortcutCount()
738 if (!categories.contains(target.mCategories[q])) { in getSharingShortcutCount()
1676 ArraySet<String> categories = null; in parseShortcut() local
1737 categories = new ArraySet<>(ar.length); in parseShortcut()
1739 categories.add(ar[i]); in parseShortcut()
1773 categories, in parseShortcut()
DInstantAppResolver.java105 Set<String> categories = origIntent.getCategories(); in sanitizeIntent() local
106 if (categories != null) { in sanitizeIntent()
107 for (String category : categories) { in sanitizeIntent()
/frameworks/base/core/java/android/webkit/
DTracingConfig.java240 public Builder addCategories(String... categories) { in addCategories() argument
241 for (String category: categories) { in addCategories()
255 public Builder addCategories(Collection<String> categories) { in addCategories() argument
256 mCustomIncludedCategories.addAll(categories); in addCategories()
/frameworks/base/services/core/java/com/android/server/firewall/
DCategoryFilter.java39 Set<String> categories = intent.getCategories(); in matches() local
40 if (categories == null) { in matches()
43 return categories.contains(mCategoryName); in matches()
/frameworks/base/telephony/java/android/telephony/emergency/
DEmergencyNumber.java371 List<Integer> categories = new ArrayList<>(); in getEmergencyServiceCategories() local
373 categories.add(EMERGENCY_SERVICE_CATEGORY_UNSPECIFIED); in getEmergencyServiceCategories()
374 return categories; in getEmergencyServiceCategories()
378 categories.add(category); in getEmergencyServiceCategories()
381 return categories; in getEmergencyServiceCategories()
420 public boolean isInEmergencyServiceCategories(@EmergencyServiceCategories int categories) { in isInEmergencyServiceCategories() argument
421 if (categories == EMERGENCY_SERVICE_CATEGORY_UNSPECIFIED) { in isInEmergencyServiceCategories()
427 return (mEmergencyServiceCategoryBitmask & categories) == categories; in isInEmergencyServiceCategories()
/frameworks/base/tests/JankBench/scripts/
Drunall.py17 options, categories = parser.parse_args(argv[1:])
18 return (options, categories)
56 options, categories = parse_options(sys.argv)
Ditr_collect.py141 options, categories = parser.parse_args(argv[1:])
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/emergency/
DEmergencyNumberTest.java58 List<Integer> categories = number.getEmergencyServiceCategories(); in testEmergencyNumberUnspecified() local
59 assertEquals(1, categories.size()); in testEmergencyNumberUnspecified()
61 (int) categories.get(0)); in testEmergencyNumberUnspecified()
110 List<Integer> categories = number.getEmergencyServiceCategories(); in testEmergencyNumberSpecificService() local
111 assertEquals(1, categories.size()); in testEmergencyNumberSpecificService()
113 (int) categories.get(0)); in testEmergencyNumberSpecificService()
173 List<Integer> categories = number.getEmergencyServiceCategories(); in testEmergencyNumberMultipleServices() local
174 assertEquals(3, categories.size()); in testEmergencyNumberMultipleServices()
175 Collections.sort(categories); in testEmergencyNumberMultipleServices()
181 assertTrue(categoriesToVerify.equals(categories)); in testEmergencyNumberMultipleServices()
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/am/
DSettingsToPropertiesMapperTest.java236 List<String> categories = Arrays.asList(mTestMapper.getResetNativeCategories()); in testGetResetNativeCategories() local
237 Assert.assertEquals(3, categories.size()); in testGetResetNativeCategories()
238 Assert.assertTrue(categories.contains("category1")); in testGetResetNativeCategories()
239 Assert.assertTrue(categories.contains("category2")); in testGetResetNativeCategories()
240 Assert.assertTrue(categories.contains("category3")); in testGetResetNativeCategories()
/frameworks/native/cmds/service/
Dservice.cpp254 char* categories[16]; in main() local
291 categories[categoryCount] = strtok_r(value, ",", &context2); in main()
293 while (categories[categoryCount] != nullptr) in main()
296categories[categoryCount] = strtok_r(nullptr, ",", &context2); in main()
314 writeString16(data, categories[i]); in main()
/frameworks/base/services/core/java/com/android/server/
DIntentResolver.java386 FastImmutableArraySet<String> categories = getFastIntentCategories(intent); in queryIntentFromList() local
390 buildResolveList(intent, categories, debug, defaultOnly, resolvedType, scheme, in queryIntentFromList()
470 FastImmutableArraySet<String> categories = getFastIntentCategories(intent); in queryIntent() local
472 buildResolveList(intent, categories, debug, defaultOnly, resolvedType, in queryIntent()
476 buildResolveList(intent, categories, debug, defaultOnly, resolvedType, in queryIntent()
480 buildResolveList(intent, categories, debug, defaultOnly, resolvedType, in queryIntent()
484 buildResolveList(intent, categories, debug, defaultOnly, resolvedType, in queryIntent()
715 final Set<String> categories = intent.getCategories(); in getFastIntentCategories() local
716 if (categories == null) { in getFastIntentCategories()
719 return new FastImmutableArraySet<String>(categories.toArray(new String[categories.size()])); in getFastIntentCategories()
[all …]
/frameworks/base/packages/CarSystemUI/src/com/android/systemui/statusbar/car/
DCarFacetButtonController.java64 String[] categories = facetButton.getCategories(); in addFacetButton() local
65 for (int i = 0; i < categories.length; i++) { in addFacetButton()
66 mButtonsByCategory.add(categories[i], facetButton); in addFacetButton()
/frameworks/base/services/core/java/com/android/server/am/
DSettingsToPropertiesMapper.java187 HashSet<String> categories = new HashSet<>(); in getResetNativeCategories() local
194 categories.add(segments[2]); in getResetNativeCategories()
196 return categories.toArray(new String[0]); in getResetNativeCategories()
/frameworks/base/core/res/res/raw/
Dfallback_categories.csv1 # Default app categories used if neither the package nor installer sets anything
/frameworks/base/packages/SettingsLib/Tile/src/com/android/settingslib/drawer/
DTileUtils.java248 ArrayList<DashboardCategory> categories = new ArrayList<>(categoryMap.values()); in getCategories() local
249 for (DashboardCategory category : categories) { in getCategories()
257 return categories; in getCategories()
/frameworks/base/core/proto/android/content/
Dintent.proto53 repeated string categories = 2; field
73 repeated string categories = 2; field
/frameworks/base/
DAndroid.mk50 categories.txt \
/frameworks/base/core/java/com/android/internal/app/
DResolverActivity.java268 final Set<String> categories = intent.getCategories();
270 && categories != null
271 && categories.size() == 1
272 && categories.contains(Intent.CATEGORY_HOME)) {
368 final Set<String> categories = intent.getCategories();
373 + (categories != null ? Arrays.toString(categories.toArray()) : ""));
995 Set<String> categories = filterIntent.getCategories();
996 if (categories != null) {
997 for (String cat : categories) {
1116 boolean hasCategoryBrowsable = (categories != null) &&
[all …]
/frameworks/base/core/java/android/content/
DIntentFilter.java1483 public final String matchCategories(Set<String> categories) { in matchCategories() argument
1484 if (categories == null) { in matchCategories()
1488 Iterator<String> it = categories.iterator(); in matchCategories()
1558 Uri data, Set<String> categories, String logTag) { in match() argument
1580 String categoryMismatch = matchCategories(categories); in match()
1591 if (categories != null) { in match()
1592 dataMatch -= mCategories.size() - categories.size(); in match()
/frameworks/base/core/java/android/content/pm/
DShortcutInfo.java1190 public Builder setCategories(Set<String> categories) { in setCategories() argument
1191 mCategories = categories; in setCategories()
2004 public void setCategories(Set<String> categories) { in setCategories() argument
2005 mCategories = cloneCategories(categories); in setCategories()
2333 Set<String> categories, Intent[] intentsWithExtras, int rank, PersistableBundle extras, in ShortcutInfo() argument
2351 mCategories = cloneCategories(categories); in ShortcutInfo()
/frameworks/native/cmds/atrace/
Datrace.cpp1143 std::vector<hidl_string> categories; in setUpVendorTracing() local
1146 categories.emplace_back(c.name); in setUpVendorTracing()
1150 if (!categories.size()) { in setUpVendorTracing()
1154 auto ret = g_atraceHal->enableCategories(categories); in setUpVendorTracing()
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/
DShortcutManagerTest3.java56 private ShortcutInfo shortcut(String id, Set<String> categories) { in shortcut() argument
57 return makeShortcutWithCategory(id, categories); in shortcut()
/frameworks/base/core/proto/android/server/location/
Denums.proto32 // A type which distinguishes different categories of NI request, such as VOICE, UMTS_SUPL etc.

12