Home
last modified time | relevance | path

Searched refs:category (Results 1 – 25 of 194) sorted by relevance

12345678

/packages/apps/Settings/tests/robotests/src/com/android/settings/dashboard/
DCategoryManagerTest.java73 final DashboardCategory category = new DashboardCategory(CategoryKey.CATEGORY_ACCOUNT); in backwardCompatCleanupForCategory_shouldNotChangeCategoryForNewKeys() local
74 category.addTile(tile1); in backwardCompatCleanupForCategory_shouldNotChangeCategoryForNewKeys()
75 category.addTile(tile2); in backwardCompatCleanupForCategory_shouldNotChangeCategoryForNewKeys()
76 mCategoryByKeyMap.put(CategoryKey.CATEGORY_ACCOUNT, category); in backwardCompatCleanupForCategory_shouldNotChangeCategoryForNewKeys()
133 final DashboardCategory category = new DashboardCategory(CATEGORY_HOMEPAGE); in sortCategories_singlePackage_shouldReorderBasedOnPriority() local
149 final Tile tile1 = new Tile(activityInfo1, category.key); in sortCategories_singlePackage_shouldReorderBasedOnPriority()
150 final Tile tile2 = new Tile(activityInfo2, category.key); in sortCategories_singlePackage_shouldReorderBasedOnPriority()
151 final Tile tile3 = new Tile(activityInfo3, category.key); in sortCategories_singlePackage_shouldReorderBasedOnPriority()
153 category.addTile(tile1); in sortCategories_singlePackage_shouldReorderBasedOnPriority()
154 category.addTile(tile2); in sortCategories_singlePackage_shouldReorderBasedOnPriority()
[all …]
/packages/apps/CellBroadcastReceiver/tests/testapp/src/com/android/cellbroadcastreceiver/tests/
DSendTestMessages.java393 int category) { in createFromPdu() argument
396 return createFromPdus(context, pdus, serialNumber, category); in createFromPdu()
400 int category) { in createFromPdus() argument
408 if (category != 0) { in createFromPdus()
409 Log.d(TAG, "setting GSM message identifier to " + category); in createFromPdus()
410 pdu[2] = (byte) ((category >>> 8) & 0xff); in createFromPdus()
411 pdu[3] = (byte) (category & 0xff); in createFromPdus()
418 if (category != 0) { in createFromPdus()
419 Log.d(TAG, "setting UMTS message identifier to " + category); in createFromPdus()
420 pdu[1] = (byte) ((category >>> 8) & 0xff); in createFromPdus()
[all …]
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/notification/
DZenModeSettings.java119 category -> PRIORITY_CATEGORY_ALARMS == category in getSoundSettingSummary()
120 || PRIORITY_CATEGORY_MEDIA == category in getSoundSettingSummary()
121 || PRIORITY_CATEGORY_SYSTEM == category, false); in getSoundSettingSummary()
144 category -> PRIORITY_CATEGORY_CALLS == category in getCallsSettingSummary()
145 || PRIORITY_CATEGORY_REPEAT_CALLERS == category, false); in getCallsSettingSummary()
161 category -> PRIORITY_CATEGORY_MESSAGES == category, false); in getMessagesSettingSummary()
235 for (int category : ALL_PRIORITY_CATEGORIES) { in getEnabledCategories()
237 if (filteredCategories.test(category) && isCategoryEnabled(policy, category)) { in getEnabledCategories()
238 if (category == Policy.PRIORITY_CATEGORY_REPEAT_CALLERS in getEnabledCategories()
244 enabledCategories.add(getCategory(category, policy, isFirst)); in getEnabledCategories()
[all …]
DZenModeBackend.java150 protected void saveVisualEffectsPolicy(int category, boolean suppress) { in saveVisualEffectsPolicy() argument
154 int suppressedEffects = getNewSuppressedEffects(suppress, category); in saveVisualEffectsPolicy()
159 protected void saveSoundPolicy(int category, boolean allow) { in saveSoundPolicy() argument
160 int priorityCategories = getNewDefaultPriorityCategories(allow, category); in saveSoundPolicy()
193 protected void saveSenders(int category, int val) { in saveSenders() argument
196 int categorySenders = getPrioritySenders(category); in saveSenders()
202 if (category == NotificationManager.Policy.PRIORITY_CATEGORY_CALLS) { in saveSenders()
207 if (category == NotificationManager.Policy.PRIORITY_CATEGORY_MESSAGES) { in saveSenders()
212 savePolicy(getNewDefaultPriorityCategories(allowSenders, category), in saveSenders()
220 protected String getSendersKey(int category) { in getSendersKey() argument
[all …]
/packages/apps/Settings/src/com/android/settings/notification/
DZenModeSettings.java119 category -> PRIORITY_CATEGORY_ALARMS == category in getSoundSettingSummary()
120 || PRIORITY_CATEGORY_MEDIA == category in getSoundSettingSummary()
121 || PRIORITY_CATEGORY_SYSTEM == category, false); in getSoundSettingSummary()
144 category -> PRIORITY_CATEGORY_CALLS == category in getCallsSettingSummary()
145 || PRIORITY_CATEGORY_REPEAT_CALLERS == category, false); in getCallsSettingSummary()
161 category -> PRIORITY_CATEGORY_MESSAGES == category, false); in getMessagesSettingSummary()
235 for (int category : ALL_PRIORITY_CATEGORIES) { in getEnabledCategories()
237 if (filteredCategories.test(category) && isCategoryEnabled(policy, category)) { in getEnabledCategories()
238 if (category == Policy.PRIORITY_CATEGORY_REPEAT_CALLERS in getEnabledCategories()
244 enabledCategories.add(getCategory(category, policy, isFirst)); in getEnabledCategories()
[all …]
DZenModeBackend.java150 protected void saveVisualEffectsPolicy(int category, boolean suppress) { in saveVisualEffectsPolicy() argument
154 int suppressedEffects = getNewSuppressedEffects(suppress, category); in saveVisualEffectsPolicy()
159 protected void saveSoundPolicy(int category, boolean allow) { in saveSoundPolicy() argument
160 int priorityCategories = getNewDefaultPriorityCategories(allow, category); in saveSoundPolicy()
193 protected void saveSenders(int category, int val) { in saveSenders() argument
196 int categorySenders = getPrioritySenders(category); in saveSenders()
202 if (category == NotificationManager.Policy.PRIORITY_CATEGORY_CALLS) { in saveSenders()
207 if (category == NotificationManager.Policy.PRIORITY_CATEGORY_MESSAGES) { in saveSenders()
212 savePolicy(getNewDefaultPriorityCategories(allowSenders, category), in saveSenders()
220 protected String getSendersKey(int category) { in getSendersKey() argument
[all …]
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/analytics/
DMetricsLoggerWrapper.java42 public void logAction(Context context, int category, String value) { in logAction() argument
43 logd("MetricsLoggerWrapper, category:" + category + ", value: " + value); in logAction()
44 if (category != VIEW_UNKNOWN) { in logAction()
45 MetricsLogger.action(context, category, value); in logAction()
56 public void logAction(Context context, int category, int value) { in logAction() argument
57 logd("MetricsLoggerWrapper, category:" + category + ", value: " + value); in logAction()
58 if (category != VIEW_UNKNOWN) { in logAction()
59 MetricsLogger.action(context, category, value); in logAction()
69 public void logAction(Context context, int category) { in logAction() argument
70 logd("MetricsLoggerWrapper, category:" + category); in logAction()
[all …]
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/picker/
DWallpaperPickerDelegate.java165 public void onCategoryReceived(Category category) { in updateThirdPartyCategories()
166 if (category.supportsThirdParty() && category.containsThirdParty(packageName)) { in updateThirdPartyCategories()
167 addCategory(category, false); in updateThirdPartyCategories()
181 public void onCategoryReceived(Category category) { in updateThirdPartyCategories()
200 Category category = mCategoryProvider.getCategory(i); in findThirdPartyCategory() local
201 if (category.supportsThirdParty() && category.containsThirdParty(packageName)) { in findThirdPartyCategory()
202 return category; in findThirdPartyCategory()
223 public void onCategoryReceived(Category category) { in updateLiveWallpapersCategories()
262 public void onCategoryReceived(Category category) { in populateCategories()
263 addCategory(category, true); in populateCategories()
[all …]
/packages/apps/SettingsIntelligence/src/com/android/settings/intelligence/suggestions/
DSuggestionParser.java70 for (SuggestionCategory category : CATEGORIES) { in getSuggestions()
71 if (category.isExclusive() && !isExclusiveCategoryExpired(category)) { in getSuggestions()
79 readSuggestions(category, false /* ignoreDismissRule */); in getSuggestions()
81 suggestionBuilder.addSuggestions(category, exclusiveSuggestions); in getSuggestions()
88 readSuggestions(category, true /* ignoreDismissRule */); in getSuggestions()
89 suggestionBuilder.addSuggestions(category, suggestions); in getSuggestions()
96 List<Suggestion> readSuggestions(SuggestionCategory category, boolean ignoreDismissRule) { in readSuggestions() argument
99 probe.addCategory(category.getCategory()); in readSuggestions()
136 private boolean isExclusiveCategoryExpired(SuggestionCategory category) { in isExclusiveCategoryExpired() argument
137 final String keySetupTime = category.getCategory() + SETUP_TIME; in isExclusiveCategoryExpired()
[all …]
/packages/modules/ExtServices/src/android/ext/services/notification/
DAgingHelper.java73 @Category int category = mNotificationCategorizer.getCategory(entry); in onNotificationSeen() local
76 if (category == NotificationCategorizer.CATEGORY_MIN) { in onNotificationSeen()
81 if (category == NotificationCategorizer.CATEGORY_ONGOING in onNotificationSeen()
82 || category > NotificationCategorizer.CATEGORY_REMINDER) { in onNotificationSeen()
83 scheduleAging(entry.getSbn().getKey(), category, TWO_HOURS_MS); in onNotificationSeen() local
85 scheduleAging(entry.getSbn().getKey(), category, HOUR_MS); in onNotificationSeen() local
106 private void scheduleAging(String key, @Category int category, long duration) { in scheduleAging() argument
111 final PendingIntent pi = createPendingIntent(key, category); in scheduleAging()
128 private Intent createAgingIntent(String key, @Category int category) { in createAgingIntent() argument
131 .putExtra(EXTRA_CATEGORY, category) in createAgingIntent()
[all …]
/packages/apps/Settings/src/com/android/settings/core/instrumentation/
DSettingsEventLogWriter.java28 public void visible(Context context, int source, int category) { in visible() argument
32 super.visible(context, source, category); in visible()
36 public void hidden(Context context, int category) { in hidden() argument
40 super.hidden(context, category); in hidden()
44 public void action(Context context, int category, String pkg) { in action() argument
48 super.action(context, category, pkg); in action()
52 public void action(Context context, int category, int value) { in action() argument
56 super.action(context, category, value); in action()
60 public void action(Context context, int category, boolean value) { in action() argument
64 super.action(context, category, value); in action()
/packages/apps/TV/common/src/com/android/tv/common/ui/setup/
DSetupActionHelper.java30 public static boolean onActionClick(Fragment fragment, String category, int actionId) { in onActionClick() argument
31 return onActionClick(fragment, category, actionId, null); in onActionClick()
36 Fragment fragment, String category, int actionId, Bundle params) { in onActionClick() argument
39 .onActionClick(category, actionId, params); in onActionClick()
44 + category in onActionClick()
55 Fragment fragment, String category, int actionId, Bundle params) { in createOnClickListenerForAction() argument
56 return new OnActionClickListenerForAction(fragment, category, actionId, params); in createOnClickListenerForAction()
72 Fragment fragment, String category, int actionId, Bundle params) { in OnActionClickListenerForAction() argument
74 mCategory = category; in OnActionClickListenerForAction()
/packages/apps/ThemePicker/robolectric_tests/src/com/android/customization/testutils/
DOverlayManagerMocks.java47 final String category; field in OverlayManagerMocks.MockOverlay
49 public MockOverlay(String packageName, String targetPackage, String category) { in MockOverlay() argument
52 this.category = category; in MockOverlay()
60 && TextUtils.equals(((MockOverlay) obj).category, category); in equals()
85 public void addOverlay(String packageName, String targetPackage, String category, in addOverlay() argument
87 MockOverlay overlay = new MockOverlay(packageName, targetPackage, category); in addOverlay()
105 && mockOverlay.category.equals(inv.getArgument(1))) in setUpMock()
130 overlay.category, in setUpMock()
/packages/apps/Car/Settings/src/com/android/car/settings/datausage/
DAppDataUsagePreferenceController.java100 int category; in aggregateDataUsage() local
105 category = AppItem.CATEGORY_APP; in aggregateDataUsage()
106 return accumulate(collapseKey, knownItems, entry, category, items); in aggregateDataUsage()
111 category = AppItem.CATEGORY_APP; in aggregateDataUsage()
112 return accumulate(collapseKey, knownItems, entry, category, items); in aggregateDataUsage()
118 category = AppItem.CATEGORY_APP; in aggregateDataUsage()
119 return accumulate(collapseKey, knownItems, entry, category, items); in aggregateDataUsage()
128 category = AppItem.CATEGORY_APP; in aggregateDataUsage()
129 long appLargest = accumulate(collapseKey, knownItems, entry, category, items); in aggregateDataUsage()
138 category = AppItem.CATEGORY_APP; in aggregateDataUsage()
[all …]
/packages/apps/PermissionController/src/com/android/packageinstaller/permission/ui/handheld/
DPermissionAppsFragment.java309 PreferenceCategory category = null; in onPermissionsLoaded() local
314 category = allowed; in onPermissionsLoaded()
316 category = allowedForeground; in onPermissionsLoaded()
319 category = denied; in onPermissionsLoaded()
323 category.addPreference(existingPref); in onPermissionsLoaded()
341 category.addPreference(pref); in onPermissionsLoaded()
343 logPermissionAppsFragmentCreated(app, viewIdForLogging, category == allowed, in onPermissionsLoaded()
344 category == allowedForeground, category == denied); in onPermissionsLoaded()
377 PreferenceCategory category = grantedCount > 0 ? allowed : denied; in onPermissionsLoaded() local
378 category.addPreference(pref); in onPermissionsLoaded()
[all …]
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/dashboard/
DCategoryManager.java92 DashboardCategory category = mCategories.get(i); in updateCategoryFromBlacklist() local
93 for (int j = 0; j < category.getTilesCount(); j++) { in updateCategoryFromBlacklist()
94 Tile tile = category.getTile(j); in updateCategoryFromBlacklist()
96 category.removeTile(j--); in updateCategoryFromBlacklist()
115 for (DashboardCategory category : mCategories) { in tryInitCategories()
116 mCategoryByKeyMap.put(category.key, category); in tryInitCategories()
197 final DashboardCategory category = categoryEntry.getValue(); in filterDuplicateTiles() local
198 final int count = category.getTilesCount(); in filterDuplicateTiles()
201 final Tile tile = category.getTile(i); in filterDuplicateTiles()
204 category.removeTile(i); in filterDuplicateTiles()
DSummaryLoader.java213 public void updateSummaryToCache(DashboardCategory category) { in updateSummaryToCache() argument
214 if (category == null) { in updateSummaryToCache()
217 for (Tile tile : category.getTiles()) { in updateSummaryToCache()
250 private Tile getTileFromCategory(DashboardCategory category, ComponentName component) { in getTileFromCategory() argument
251 if (category == null || category.getTilesCount() == 0) { in getTileFromCategory()
254 final List<Tile> tiles = category.getTiles(); in getTileFromCategory()
291 final DashboardCategory category = in handleMessage() local
293 if (category == null || category.getTilesCount() == 0) { in handleMessage()
296 final List<Tile> tiles = category.getTiles(); in handleMessage()
/packages/apps/Settings/src/com/android/settings/dashboard/
DCategoryManager.java92 DashboardCategory category = mCategories.get(i); in updateCategoryFromBlacklist() local
93 for (int j = 0; j < category.getTilesCount(); j++) { in updateCategoryFromBlacklist()
94 Tile tile = category.getTile(j); in updateCategoryFromBlacklist()
96 category.removeTile(j--); in updateCategoryFromBlacklist()
115 for (DashboardCategory category : mCategories) { in tryInitCategories()
116 mCategoryByKeyMap.put(category.key, category); in tryInitCategories()
197 final DashboardCategory category = categoryEntry.getValue(); in filterDuplicateTiles() local
198 final int count = category.getTilesCount(); in filterDuplicateTiles()
201 final Tile tile = category.getTile(i); in filterDuplicateTiles()
204 category.removeTile(i); in filterDuplicateTiles()
DSummaryLoader.java213 public void updateSummaryToCache(DashboardCategory category) { in updateSummaryToCache() argument
214 if (category == null) { in updateSummaryToCache()
217 for (Tile tile : category.getTiles()) { in updateSummaryToCache()
250 private Tile getTileFromCategory(DashboardCategory category, ComponentName component) { in getTileFromCategory() argument
251 if (category == null || category.getTilesCount() == 0) { in getTileFromCategory()
254 final List<Tile> tiles = category.getTiles(); in getTileFromCategory()
291 final DashboardCategory category = in handleMessage() local
293 if (category == null || category.getTilesCount() == 0) { in handleMessage()
296 final List<Tile> tiles = category.getTiles(); in handleMessage()
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/module/
DDefaultCategoryProvider.java68 for (Category category : mCategories) { in fetchCategories()
69 receiver.onCategoryReceived(category); in fetchCategories()
96 Category category; in getCategory() local
98 category = mCategories.get(i); in getCategory()
99 if (category.getCollectionId().equals(collectionId)) { in getCategory()
100 return category; in getCategory()
109 public void onCategoryReceived(Category category) { in doFetch()
110 receiver.onCategoryReceived(category); in doFetch()
111 mCategories.add(category); in doFetch()
267 Category category = values[i]; in onProgressUpdate() local
[all …]
/packages/apps/Nfc/src/com/android/nfc/cardemulation/
DCardEmulationManager.java242 ComponentName getDefaultServiceForCategory(int userId, String category, in getDefaultServiceForCategory() argument
244 if (!CardEmulation.CATEGORY_PAYMENT.equals(category)) { in getDefaultServiceForCategory()
245 Log.e(TAG, "Not allowing defaults for category " + category); in getDefaultServiceForCategory()
265 String category) { in setDefaultServiceForCategoryChecked() argument
266 if (!CardEmulation.CATEGORY_PAYMENT.equals(category)) { in setDefaultServiceForCategoryChecked()
267 Log.e(TAG, "Not allowing defaults for category " + category); in setDefaultServiceForCategoryChecked()
327 String category) { in isDefaultServiceForCategory() argument
334 getDefaultServiceForCategory(userId, category, true); in isDefaultServiceForCategory()
351 ComponentName service, String category) throws RemoteException { in setDefaultServiceForCategory() argument
357 return setDefaultServiceForCategoryChecked(userId, service, category); in setDefaultServiceForCategory()
[all …]
DRegisteredAidCache.java65 String category; field in RegisteredAidCache.ServiceAidInfo
72 ", category='" + category + '\'' + in toString()
84 if (!category.equals(that.category)) return false; in equals()
94 result = 31 * result + category.hashCode(); in hashCode()
104 String category = null; field in RegisteredAidCache.AidResolveInfo
112 ", category='" + category + '\'' + in toString()
168 resolveInfo.category = CardEmulation.CATEGORY_OTHER; in resolveAid()
185 resolveInfo.category = entryResolveInfo.category; in resolveAid()
246 resolveInfo.category = CardEmulation.CATEGORY_OTHER; in resolveAidConflictLocked()
252 CardEmulation.CATEGORY_PAYMENT.equals(serviceAidInfo.category); in resolveAidConflictLocked()
[all …]
/packages/apps/Car/Settings/src/com/android/car/settings/language/
DLocalePreferenceProvider.java94 PreferenceCategory category = null; in populateBasePreference() local
98 category = (PreferenceCategory) preference; in populateBasePreference()
99 base.addPreference(category); in populateBasePreference()
102 if (category == null) { in populateBasePreference()
105 category.addPreference(preference); in populateBasePreference()
120 PreferenceCategory category = new PreferenceCategory(mContext); in getPreference() local
121 category.setTitle(type == TYPE_HEADER_SUGGESTED in getPreference()
124 return category; in getPreference()
/packages/services/Telephony/src/com/android/phone/
DEccShortcutAdapter.java119 for (int category : ShortcutViewUtils.PROMOTED_CATEGORIES) { in updateCountryEccInfo()
120 String number = pickEmergencyNumberForCategory(category, in updateCountryEccInfo()
123 emergencyNumbers.put(number, category); in updateCountryEccInfo()
155 private String pickEmergencyNumberForCategory(int category, in pickEmergencyNumberForCategory() argument
158 if ((number.getEmergencyServiceCategoryBitmask() & category) != 0) { in pickEmergencyNumberForCategory()
170 for (int category : categories) { in prepareEccMaterial()
172 switch (category) { in prepareEccMaterial()
/packages/apps/Settings/src/com/android/settings/datausage/
DDataUsageSummary.java152 TemplatePreferenceCategory category = (TemplatePreferenceCategory) in addMobileSection() local
154 category.setTemplate(DataUsageUtils.getMobileTemplate(getContext(), subId), in addMobileSection()
156 category.pushTemplates(services); in addMobileSection()
158 Preference title = category.findPreference(KEY_MOBILE_USAGE_TITLE); in addMobileSection()
165 TemplatePreferenceCategory category = (TemplatePreferenceCategory) in addWifiSection() local
167 category.setTemplate(NetworkTemplate.buildTemplateWifiWildcard(), 0, services); in addWifiSection()
171 TemplatePreferenceCategory category = (TemplatePreferenceCategory) in addEthernetSection() local
173 category.setTemplate(NetworkTemplate.buildTemplateEthernet(), 0, services); in addEthernetSection()

12345678