Home
last modified time | relevance | path

Searched refs:getCategory (Results 1 – 25 of 33) sorted by relevance

12

/packages/modules/ExtServices/tests/src/android/ext/services/notification/
DNotificationCategorizerTest.java74 assertEquals(NotificationCategorizer.CATEGORY_PEOPLE, nc.getCategory(mEntry)); in testPeopleCategory()
85 assertEquals(NotificationCategorizer.CATEGORY_MIN, nc.getCategory(mEntry)); in testMin()
95 assertEquals(NotificationCategorizer.CATEGORY_HIGH, nc.getCategory(mEntry)); in testHigh()
106 assertEquals(NotificationCategorizer.CATEGORY_ONGOING, nc.getCategory(mEntry)); in testOngoingCategory()
110 assertEquals(NotificationCategorizer.CATEGORY_EVERYTHING_ELSE, nc.getCategory(mEntry)); in testOngoingCategory()
121 assertEquals(NotificationCategorizer.CATEGORY_ALARM, nc.getCategory(mEntry)); in testAlarmCategory()
125 assertEquals(NotificationCategorizer.CATEGORY_EVERYTHING_ELSE, nc.getCategory(mEntry)); in testAlarmCategory()
136 assertEquals(NotificationCategorizer.CATEGORY_CALL, nc.getCategory(mEntry)); in testCallCategory()
140 assertEquals(NotificationCategorizer.CATEGORY_EVERYTHING_ELSE, nc.getCategory(mEntry)); in testCallCategory()
151 assertEquals(NotificationCategorizer.CATEGORY_REMINDER, nc.getCategory(mEntry)); in testReminderCategory()
[all …]
DAgingHelperTest.java132 when(mCategorizer.getCategory(entry)).thenReturn(NotificationCategorizer.CATEGORY_PEOPLE); in testSnoozingOnSeen()
145 when(mCategorizer.getCategory(entry)).thenReturn(NotificationCategorizer.CATEGORY_PEOPLE); in testNoSnoozingOnSeenUserLocked()
/packages/apps/CellBroadcastReceiver/tests/testapp/src/com/android/cellbroadcastreceiver/tests/
DSendTestBroadcastActivity.java81 private int getCategory() { in getCategory() method in SendTestBroadcastActivity
407 getSerialNumber(), getCategory()); in onCreate()
421 getSerialNumber(), getCategory()); in onCreate()
435 getSerialNumber(), getCategory()); in onCreate()
450 SendTestBroadcastActivity.this, getSerialNumber(), getCategory()); in onCreate()
465 getSerialNumber(), getCategory()); in onCreate()
480 SendTestBroadcastActivity.this, getSerialNumber(), getCategory()); in onCreate()
495 getSerialNumber(), getCategory()); in onCreate()
510 SendTestBroadcastActivity.this, getSerialNumber(), getCategory()); in onCreate()
525 SendTestBroadcastActivity.this, getSerialNumber(), getCategory()); in onCreate()
[all …]
/packages/apps/ThemePicker/src/com/android/customization/model/theme/
DOverlayManagerCompat.java79 if (category.equals(overlayInfo.getCategory()) && overlayInfo.isEnabled()) { in getEnabledPackageName()
105 if (category.equals(info.getCategory())) { in getOverlayPackagesForCategory()
135 overlays.put(overlayInfo.getCategory(), overlayInfo.getPackageName()); in addAllEnabledOverlaysForTarget()
/packages/modules/CellBroadcastService/tests/src/com/android/cellbroadcastservice/tests/
DCdmaSmsMessageTest.java499 assertEquals(SmsCbCmasInfo.CMAS_CATEGORY_UNKNOWN, cmasInfo.getCategory()); in doTestCmasBroadcast()
561 assertEquals(SmsCbCmasInfo.CMAS_CATEGORY_ENV, cmasInfo.getCategory()); in testCmasExtremeAlertType1Elements()
623 assertEquals(SmsCbCmasInfo.CMAS_CATEGORY_UNKNOWN, cmasInfo.getCategory()); in testCmasNoRecordType0()
758 programData.getCategory()); in testServiceCategoryProgramDataAddCategory()
817 programData.getCategory()); in testServiceCategoryProgramDataDeleteTwoCategories()
826 programData.getCategory()); in testServiceCategoryProgramDataDeleteTwoCategories()
870 assertEquals("category", cmasInfo.getCategory(), SmsCbCmasInfo.CMAS_CATEGORY_OTHER); in testDecodeRawBearerData()
/packages/apps/SettingsIntelligence/src/com/android/settings/intelligence/suggestions/
DSuggestionParser.java99 probe.addCategory(category.getCategory()); in readSuggestions()
137 final String keySetupTime = category.getCategory() + SETUP_TIME; in isExclusiveCategoryExpired()
151 + category.getCategory()); in isExclusiveCategoryExpired()
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/picker/
DWallpaperPickerDelegate.java200 Category category = mCategoryProvider.getCategory(i); in findThirdPartyCategory()
212 Category oldLiveWallpapersCategory = mCategoryProvider.getCategory( in updateLiveWallpapersCategories()
230 mCategoryProvider.getCategory(liveWallpaperCollectionId); in updateLiveWallpapersCategories()
332 return mCategoryProvider.getCategory(collectionId); in findCategoryForCollectionId()
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/model/
DCategoryProvider.java47 Category getCategory(int index); in getCategory() method
56 Category getCategory(String collectionId); in getCategory() method
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/task/
DCrossProfileIntentFilterTest.java69 assertEquals(CATEGORY_1, filter.filter.getCategory(0)); in testBuilder()
70 assertEquals(CATEGORY_2, filter.filter.getCategory(1)); in testBuilder()
/packages/apps/WallpaperPicker2/tests/src/com/android/wallpaper/testing/
DTestCategoryProvider.java74 public Category getCategory(int index) { in getCategory() method in TestCategoryProvider
79 public Category getCategory(String collectionId) { in getCategory() method in TestCategoryProvider
/packages/apps/SettingsIntelligence/src/com/android/settings/intelligence/
DSettingsIntelligenceDumpService.java66 .append(category.getCategory()) in dumpSuggestions()
70 probe.addCategory(category.getCategory()); in dumpSuggestions()
/packages/modules/ExtServices/src/android/ext/services/notification/
DNotificationCategorizer.java61 return shouldSilence(getCategory(entry)); in shouldSilence()
69 public int getCategory(NotificationEntry entry) { in getCategory() method in NotificationCategorizer
DAgingHelper.java73 @Category int category = mNotificationCategorizer.getCategory(entry); in onNotificationSeen()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/homepage/contextualcards/
DContextualCardManager.java296 if (current.getCategory() == SUGGESTION_VALUE in getCardsWithSuggestionViewType()
297 && previous.getCategory() == SUGGESTION_VALUE) { in getCardsWithSuggestionViewType()
315 if (card.getCategory() == DEFERRED_SETUP_VALUE) { in getCardsWithDeferredSetupViewType()
/packages/apps/CellBroadcastReceiver/tests/unit/src/com/android/cellbroadcastreceiver/unit/
DCellBroadcastAlertServiceTest.java81 assertEquals(info1.getCategory(), info2.getCategory()); in compareCmasWarningInfo()
/packages/apps/Settings/src/com/android/settings/homepage/contextualcards/
DContextualCardManager.java325 if (current.getCategory() == SUGGESTION_VALUE in getCardsWithSuggestionViewType()
326 && previous.getCategory() == SUGGESTION_VALUE) { in getCardsWithSuggestionViewType()
344 if (card.getCategory() == DEFERRED_SETUP_VALUE) { in getCardsWithDeferredSetupViewType()
/packages/apps/Settings/src/com/android/settings/dashboard/
DCategoryManager.java150 if (CategoryKey.KEY_COMPAT_MAP.containsKey(tile.getCategory())) { in backwardCompatCleanupForCategory()
161 CategoryKey.KEY_COMPAT_MAP.get(tile.getCategory()); in backwardCompatCleanupForCategory()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/dashboard/
DCategoryManager.java150 if (CategoryKey.KEY_COMPAT_MAP.containsKey(tile.getCategory())) { in backwardCompatCleanupForCategory()
161 CategoryKey.KEY_COMPAT_MAP.get(tile.getCategory()); in backwardCompatCleanupForCategory()
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/module/
DDefaultCategoryProvider.java87 public Category getCategory(int index) { in getCategory() method in DefaultCategoryProvider
95 public Category getCategory(String collectionId) { in getCategory() method in DefaultCategoryProvider
/packages/apps/Nfc/src/com/android/nfc/cardemulation/
DRegisteredServicesCache.java388 dynSettings.aidGroups.put(group.getCategory(), group); in readDynamicSettingsLocked()
575 dynSettings.aidGroups.put(aidGroup.getCategory(), aidGroup); in registerAidGroupForService()
583 dynSettings.aidGroups.remove(aidGroup.getCategory()); in registerAidGroupForService()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/notification/
DZenModeSettings.java244 enabledCategories.add(getCategory(category, policy, isFirst)); in getEnabledCategories()
254 private String getCategory(int category, Policy policy, boolean isFirst) { in getCategory() method in ZenModeSettings.SummaryBuilder
/packages/apps/Settings/src/com/android/settings/notification/
DZenModeSettings.java244 enabledCategories.add(getCategory(category, policy, isFirst)); in getEnabledCategories()
254 private String getCategory(int category, Policy policy, boolean isFirst) { in getCategory() method in ZenModeSettings.SummaryBuilder
/packages/apps/SettingsIntelligence/src/com/android/settings/intelligence/suggestions/model/
DSuggestionCategory.java36 public String getCategory() { in getCategory() method in SuggestionCategory
/packages/apps/CellBroadcastReceiver/src/com/android/cellbroadcastreceiver/
DCellBroadcastReceiver.java356 tryCdmaSetCategory(mContext, programData.getCategory(), true); in handleCdmaSmsCbProgramData()
360 tryCdmaSetCategory(mContext, programData.getCategory(), false); in handleCdmaSmsCbProgramData()
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/picker/individual/
DIndividualPickerActivity.java95 mCategory = categoryProvider.getCategory(mCategoryCollectionId); in onCreate()

12