/frameworks/base/services/core/java/com/android/server/pm/ |
D | ShortcutParser.java | 141 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 …]
|
D | ShareTargetInfo.java | 104 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()
|
D | ShortcutPackage.java | 685 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()
|
D | InstantAppResolver.java | 105 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/ |
D | TracingConfig.java | 240 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/ |
D | CategoryFilter.java | 39 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/ |
D | EmergencyNumber.java | 371 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/ |
D | runall.py | 17 options, categories = parser.parse_args(argv[1:]) 18 return (options, categories) 56 options, categories = parse_options(sys.argv)
|
D | itr_collect.py | 141 options, categories = parser.parse_args(argv[1:])
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/emergency/ |
D | EmergencyNumberTest.java | 58 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/ |
D | SettingsToPropertiesMapperTest.java | 236 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/ |
D | service.cpp | 254 char* categories[16]; in main() local 291 categories[categoryCount] = strtok_r(value, ",", &context2); in main() 293 while (categories[categoryCount] != nullptr) in main() 296 … categories[categoryCount] = strtok_r(nullptr, ",", &context2); in main() 314 writeString16(data, categories[i]); in main()
|
/frameworks/base/services/core/java/com/android/server/ |
D | IntentResolver.java | 386 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/ |
D | CarFacetButtonController.java | 64 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/ |
D | SettingsToPropertiesMapper.java | 187 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/ |
D | fallback_categories.csv | 1 # Default app categories used if neither the package nor installer sets anything
|
/frameworks/base/packages/SettingsLib/Tile/src/com/android/settingslib/drawer/ |
D | TileUtils.java | 248 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/ |
D | intent.proto | 53 repeated string categories = 2; field 73 repeated string categories = 2; field
|
/frameworks/base/ |
D | Android.mk | 50 categories.txt \
|
/frameworks/base/core/java/com/android/internal/app/ |
D | ResolverActivity.java | 268 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/ |
D | IntentFilter.java | 1483 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/ |
D | ShortcutInfo.java | 1190 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/ |
D | atrace.cpp | 1143 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/ |
D | ShortcutManagerTest3.java | 56 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/ |
D | enums.proto | 32 // A type which distinguishes different categories of NI request, such as VOICE, UMTS_SUPL etc.
|