/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 | 364 List<Integer> categories = new ArrayList<>(); in getEmergencyServiceCategories() local 366 categories.add(EMERGENCY_SERVICE_CATEGORY_UNSPECIFIED); in getEmergencyServiceCategories() 367 return categories; in getEmergencyServiceCategories() 371 categories.add(category); in getEmergencyServiceCategories() 374 return categories; in getEmergencyServiceCategories() 413 public boolean isInEmergencyServiceCategories(@EmergencyServiceCategories int categories) { in isInEmergencyServiceCategories() argument 414 if (categories == EMERGENCY_SERVICE_CATEGORY_UNSPECIFIED) { in isInEmergencyServiceCategories() 420 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:])
|
D | collect.py | 205 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/native/cmds/service/ |
D | service.cpp | 198 char* categories[16]; in main() local 235 categories[categoryCount] = strtok_r(value, ",", &context2); in main() 237 while (categories[categoryCount] != nullptr) in main() 240 categories[categoryCount] = strtok_r(nullptr, ",", &context2); in main() 258 writeString16(data, categories[i]); in main()
|
/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/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/core/java/com/android/internal/app/ |
D | ResolverActivity.java | 264 final Set<String> categories = intent.getCategories(); 266 && categories != null 267 && categories.size() == 1 268 && categories.contains(Intent.CATEGORY_HOME)) { 367 final Set<String> categories = intent.getCategories(); 372 + (categories != null ? Arrays.toString(categories.toArray()) : "")); 980 Set<String> categories = filterIntent.getCategories(); 981 if (categories != null) { 982 for (String cat : categories) { 1101 boolean hasCategoryBrowsable = (categories != null) && [all …]
|
/frameworks/base/core/java/android/content/ |
D | IntentFilter.java | 1485 public final String matchCategories(Set<String> categories) { in matchCategories() argument 1486 if (categories == null) { in matchCategories() 1490 Iterator<String> it = categories.iterator(); in matchCategories() 1560 Uri data, Set<String> categories, String logTag) { in match() argument 1582 String categoryMismatch = matchCategories(categories); in match() 1593 if (categories != null) { in match() 1594 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 | 1214 std::vector<hidl_string> categories; in setUpVendorTracing() local 1217 categories.emplace_back(c.name); in setUpVendorTracing() 1221 if (!categories.size()) { in setUpVendorTracing() 1225 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.
|