Home
last modified time | relevance | path

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

123456

/frameworks/base/core/java/com/android/internal/logging/
DMetricsLogger.java95 public void visible(int category) throws IllegalArgumentException { in visible() argument
96 if (Build.IS_DEBUGGABLE && category == VIEW_UNKNOWN) { in visible()
99 saveLog(new LogMaker(category).setType(MetricsEvent.TYPE_OPEN)); in visible()
104 public void hidden(int category) throws IllegalArgumentException { in hidden() argument
105 if (Build.IS_DEBUGGABLE && category == VIEW_UNKNOWN) { in hidden()
108 saveLog(new LogMaker(category).setType(MetricsEvent.TYPE_CLOSE)); in hidden()
114 public void visibility(int category, boolean visible) in visibility() argument
117 visible(category); in visibility()
119 hidden(category); in visibility()
127 public void visibility(int category, int vis) in visibility() argument
[all …]
/frameworks/base/core/java/android/nfc/cardemulation/
DAidGroup.java52 final String category; field in AidGroup
62 public AidGroup(List<String> aids, String category) { in AidGroup() argument
74 if (isValidCategory(category)) { in AidGroup()
75 this.category = category; in AidGroup()
77 this.category = CardEmulation.CATEGORY_OTHER; in AidGroup()
87 AidGroup(String category, String description) { in AidGroup() argument
89 this.category = category; in AidGroup()
98 return category; in getCategory()
111 StringBuilder out = new StringBuilder("Category: " + category + in toString()
127 dest.writeString(category); in writeToParcel()
[all …]
DCardEmulation.java206 public boolean isDefaultServiceForCategory(ComponentName service, String category) { in isDefaultServiceForCategory() argument
208 return sService.isDefaultServiceForCategory(mContext.getUserId(), service, category); in isDefaultServiceForCategory()
218 category); in isDefaultServiceForCategory()
268 public boolean categoryAllowsForegroundPreference(String category) { in categoryAllowsForegroundPreference() argument
269 if (CATEGORY_PAYMENT.equals(category)) { in categoryAllowsForegroundPreference()
295 public int getSelectionModeForCategory(String category) { in getSelectionModeForCategory() argument
296 if (CATEGORY_PAYMENT.equals(category)) { in getSelectionModeForCategory()
329 public boolean registerAidsForService(ComponentName service, String category, in registerAidsForService() argument
331 AidGroup aidGroup = new AidGroup(aids, category); in registerAidsForService()
486 public List<String> getAidsForService(ComponentName service, String category) { in getAidsForService() argument
[all …]
DApduServiceInfo.java130 this.mStaticAidGroups.put(aidGroup.category, aidGroup); in ApduServiceInfo()
133 this.mDynamicAidGroups.put(aidGroup.category, aidGroup); in ApduServiceInfo()
253 if (!mStaticAidGroups.containsKey(currentGroup.category)) { in ApduServiceInfo()
254 mStaticAidGroups.put(currentGroup.category, currentGroup); in ApduServiceInfo()
362 public AidGroup getDynamicAidGroupForCategory(String category) { in getDynamicAidGroupForCategory() argument
363 return mDynamicAidGroups.get(category); in getDynamicAidGroupForCategory()
366 public boolean removeDynamicAidGroupForCategory(String category) { in removeDynamicAidGroupForCategory() argument
367 return (mDynamicAidGroups.remove(category) != null); in removeDynamicAidGroupForCategory()
401 return group.category; in getCategoryForAid()
407 public boolean hasCategory(String category) { in hasCategory() argument
[all …]
/frameworks/base/packages/SystemUI/shared/src/com/android/systemui/shared/system/
DMetricsLoggerCompat.java31 public void action(int category) { in action() argument
32 mMetricsLogger.action(category); in action()
35 public void action(int category, int value) { in action() argument
36 mMetricsLogger.action(category, value); in action()
39 public void visible(int category) { in visible() argument
40 mMetricsLogger.visible(category); in visible()
43 public void hidden(int category) { in hidden() argument
44 mMetricsLogger.hidden(category); in hidden()
47 public void visibility(int category, boolean visible) { in visibility() argument
48 mMetricsLogger.visibility(category, visible); in visibility()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/core/instrumentation/
DEventLogWriter.java33 public void visible(Context context, int source, int category) { in visible() argument
34 final LogMaker logMaker = new LogMaker(category) in visible()
41 public void hidden(Context context, int category) { in hidden() argument
42 MetricsLogger.hidden(context, category); in hidden()
46 public void action(Context context, int category, Pair<Integer, Object>... taggedData) { in action() argument
47 final LogMaker logMaker = new LogMaker(category) in action()
58 public void action(Context context, int category, int value) { in action() argument
59 MetricsLogger.action(context, category, value); in action()
63 public void action(Context context, int category, boolean value) { in action() argument
64 MetricsLogger.action(context, category, value); in action()
[all …]
DMetricsFeatureProvider.java70 public void visible(Context context, int source, int category) { in visible() argument
72 writer.visible(context, source, category); in visible()
76 public void hidden(Context context, int category) { in hidden() argument
78 writer.hidden(context, category); in hidden()
85 public void action(Context context, int category, Pair<Integer, Object>... taggedData) { in action() argument
87 writer.action(context, category, taggedData); in action()
94 public void action(Context context, int category, String pkg) { in action() argument
96 writer.action(context, category, pkg); in action()
109 public void action(Context context, int category, int value) { in action() argument
111 writer.action(context, category, value); in action()
[all …]
DLogWriter.java29 void visible(Context context, int source, int category); in visible() argument
34 void hidden(Context context, int category); in hidden() argument
39 void action(Context context, int category, Pair<Integer, Object>... taggedData); in action() argument
44 void action(Context context, int category, int value); in action() argument
49 void action(Context context, int category, boolean value); in action() argument
54 void action(Context context, int category, String pkg); in action() argument
/frameworks/base/packages/SystemUI/src/com/android/systemui/theme/
DThemeOverlayManager.java140 .map(category -> mCategoryToTargetPackage.get(category)) in applyCurrentUserOverlays()
147 mTargetPackageToCategories.get(o.targetPackageName).contains(o.category)) in applyCurrentUserOverlays()
148 .filter(o -> overlayCategoriesToDisable.contains(o.category)) in applyCurrentUserOverlays()
150 .collect(Collectors.toMap((o) -> o.category, (o) -> o.packageName)); in applyCurrentUserOverlays()
153 for (String category : THEME_CATEGORIES) { in applyCurrentUserOverlays()
154 if (categoryToPackage.containsKey(category)) { in applyCurrentUserOverlays()
155 setEnabled(categoryToPackage.get(category), category, userHandles, true); in applyCurrentUserOverlays() local
156 } else if (overlaysToDisable.containsKey(category)) { in applyCurrentUserOverlays()
157 setEnabled(overlaysToDisable.get(category), category, userHandles, false); in applyCurrentUserOverlays() local
163 String packageName, String category, Set<UserHandle> handles, boolean enabled) { in setEnabled() argument
[all …]
DThemeOverlayController.java109 for (String category : ThemeOverlayManager.THEME_CATEGORIES) { in updateThemeOverlays()
110 if (object.has(category)) { in updateThemeOverlays()
111 categoryToPackage.put(category, object.getString(category)); in updateThemeOverlays()
/frameworks/base/packages/SystemUI/shared/src/com/android/systemui/shared/recents/model/
DTask.java57 @ViewDebug.ExportedProperty(category="recents")
59 @ViewDebug.ExportedProperty(category="recents")
61 @ViewDebug.ExportedProperty(category="recents")
63 @ViewDebug.ExportedProperty(category="recents")
65 @ViewDebug.ExportedProperty(category="recents")
71 @ViewDebug.ExportedProperty(category = "recents")
177 @ViewDebug.ExportedProperty(category="recents")
180 @ViewDebug.ExportedProperty(category="recents")
182 @ViewDebug.ExportedProperty(category="recents")
184 @ViewDebug.ExportedProperty(category="recents")
[all …]
/frameworks/base/packages/SettingsLib/tests/integ/src/com/android/settingslib/applications/
DApplicationsStateTest.java50 mEntry.info.category = ApplicationInfo.CATEGORY_GAME; in testGameFilterAcceptsCategorizedGame()
58 mEntry.info.category = ApplicationInfo.CATEGORY_GAME; in testGameFilterAcceptsCategorizedGameAndDeprecatedIsGame()
65 mEntry.info.category = ApplicationInfo.CATEGORY_UNDEFINED; in testGamesFilterRejectsNotGame()
72 mEntry.info.category = ApplicationInfo.CATEGORY_AUDIO; in testAudioFilterAcceptsCategorizedAudio()
79 mEntry.info.category = ApplicationInfo.CATEGORY_GAME; in testAudiosFilterRejectsNotAudio()
86 mEntry.info.category = ApplicationInfo.CATEGORY_UNDEFINED; in testAudiosFilterRejectsDefaultCategory()
93 mEntry.info.category = ApplicationInfo.CATEGORY_AUDIO; in testOtherAppsRejectsAudio()
100 mEntry.info.category = ApplicationInfo.CATEGORY_GAME; in testOtherAppsRejectsGame()
107 mEntry.info.category = ApplicationInfo.CATEGORY_IMAGE; in testOtherAppsRejectsImageApp()
114 mEntry.info.category = ApplicationInfo.CATEGORY_UNDEFINED; in testOtherAppsAcceptsDefaultCategory()
[all …]
/frameworks/base/core/java/android/content/om/
DOverlayInfo.java161 public final String category; field in OverlayInfo
209 source.category, source.baseCodePath, state, source.userId, source.priority, in OverlayInfo()
215 @Nullable String targetOverlayableName, @Nullable String category, in OverlayInfo() argument
221 this.category = category; in OverlayInfo()
235 category = source.readString(); in OverlayInfo()
271 return category; in getCategory()
329 dest.writeString(category); in writeToParcel()
410 result = prime * result + ((category == null) ? 0 : category.hashCode()); in hashCode()
442 if (!Objects.equals(category, other.category)) { in equals()
/frameworks/base/core/java/android/nfc/
DINfcCardEmulation.aidl29 boolean isDefaultServiceForCategory(int userHandle, in ComponentName service, String category); in isDefaultServiceForCategory() argument
31 boolean setDefaultServiceForCategory(int userHandle, in ComponentName service, String category); in setDefaultServiceForCategory() argument
36 AidGroup getAidGroupForService(int userHandle, in ComponentName service, String category); in getAidGroupForService() argument
37 boolean removeAidGroupForService(int userHandle, in ComponentName service, String category); in removeAidGroupForService() argument
38 List<ApduServiceInfo> getServices(int userHandle, in String category); in getServices() argument
/frameworks/base/core/java/android/service/notification/
DZenPolicy.java439 public @NonNull Builder unsetPriorityCategory(@PriorityCategory int category) { in unsetPriorityCategory() argument
440 mZenPolicy.mPriorityCategories.set(category, STATE_UNSET); in unsetPriorityCategory()
442 if (category == PRIORITY_CATEGORY_MESSAGES) { in unsetPriorityCategory()
444 } else if (category == PRIORITY_CATEGORY_CALLS) { in unsetPriorityCategory()
577 public @NonNull Builder allowCategory(@PriorityCategory int category, boolean allow) { in allowCategory() argument
578 switch (category) { in allowCategory()
864 category) { in getZenPolicyPriorityCategoryState()
865 switch (category) { in getZenPolicyPriorityCategoryState()
907 public boolean isCategoryAllowed(@PriorityCategory int category, boolean defaultVal) { in isCategoryAllowed() argument
908 switch (getZenPolicyPriorityCategoryState(category)) { in isCategoryAllowed()
[all …]
/frameworks/base/packages/CarSystemUI/src/com/android/systemui/statusbar/car/
DCarFacetButtonController.java149 String category = getPackageCategory(packageName); in taskChanged() local
150 if (category != null) { in taskChanged()
151 facetButton = mButtonsByCategory.get(category); in taskChanged()
176 for (String category : supportedCategories) { in getPackageCategory()
180 intent.addCategory(category); in getPackageCategory()
185 mButtonsByPackage.put(packageName, mButtonsByCategory.get(category)); in getPackageCategory()
186 return category; in getPackageCategory()
/frameworks/base/core/java/android/hardware/display/
DBrightnessConfiguration.java110 public BrightnessCorrection getCorrectionByCategory(@ApplicationInfo.Category int category) { in getCorrectionByCategory() argument
111 return mCorrectionsByCategory.get(category); in getCorrectionByCategory()
135 final int category = entry.getKey(); in writeToParcel() local
137 dest.writeInt(category); in writeToParcel()
219 final int category = in.readInt();
222 builder.addCorrectionByCategory(category, correction);
266 final int category = entry.getKey(); in saveToXml() local
269 serializer.attribute(null, ATTR_CATEGORY, Integer.toString(category)); in saveToXml()
324 final int category = Integer.parseInt(categoryText); in loadFromXml() local
325 correctionsByCategory.put(category, correction); in loadFromXml()
[all …]
/frameworks/base/tests/JankBench/app/src/main/java/com/android/benchmark/registry/
DBenchmarkRegistry.java97 @BenchmarkCategory int getCategory(int category) { in getCategory() argument
98 switch (category) { in getCategory()
139 int category = getCategory(testCategory); in parseBenchmarkGroup() local
141 id, testName, category, testDescription); in parseBenchmarkGroup()
142 List<BenchmarkGroup.Benchmark> benches = benchmarks.get(category); in parseBenchmarkGroup()
145 benchmarks.append(category, benches); in parseBenchmarkGroup()
193 public static String getCategoryString(int category) { in getCategoryString() argument
194 switch (category) { in getCategoryString()
/frameworks/base/packages/SettingsLib/Tile/src/com/android/settingslib/drawer/
DTileUtils.java236 DashboardCategory category = categoryMap.get(categoryKey); in getCategories() local
237 if (category == null) { in getCategories()
238 category = new DashboardCategory(categoryKey); in getCategories()
240 if (category == null) { in getCategories()
244 categoryMap.put(categoryKey, category); in getCategories()
246 category.addTile(tile); in getCategories()
249 for (DashboardCategory category : categories) { in getCategories()
250 category.sortTiles(); in getCategories()
/frameworks/base/packages/SystemUI/legacy/recents/src/com/android/systemui/recents/misc/
DDozeTrigger.java30 @ViewDebug.ExportedProperty(category="recents")
32 @ViewDebug.ExportedProperty(category="recents")
34 @ViewDebug.ExportedProperty(category="recents")
/frameworks/base/core/java/android/view/textclassifier/intent/
DTemplateIntentFactory.java106 if (remoteActionTemplate.category != null) { in createIntent()
107 for (String category : remoteActionTemplate.category) { in createIntent()
108 if (category != null) { in createIntent()
109 intent.addCategory(category); in createIntent()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/
DAppItem.java30 public int category; field in AppItem
67 int comparison = Integer.compare(category, another.category); in compareTo()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/theme/
DThemeOverlayManagerTest.java73 for (String category : THEME_CATEGORIES) {
74 ALL_CATEGORIES_MAP.put(category, TEST_DISABLED_PREFIX + category); in ALL_CATEGORIES_MAP.put() argument
203 for (String category : THEME_CATEGORIES) { in zeroCategoriesSpecified_allDisabled()
204 verify(mOverlayManager).setEnabled(TEST_ENABLED_PREFIX + category, false, TEST_USER); in zeroCategoriesSpecified_allDisabled()
238 String category, boolean enabled) { in createOverlayInfo() argument
239 return new OverlayInfo(packageName, targetPackageName, null, category, "", in createOverlayInfo()
/frameworks/base/services/autofill/java/com/android/server/autofill/
DHelper.java105 private static LogMaker newLogMaker(int category, @NonNull String servicePackageName, in newLogMaker() argument
107 final LogMaker log = new LogMaker(category) in newLogMaker()
117 public static LogMaker newLogMaker(int category, @NonNull String packageName, in newLogMaker() argument
119 return newLogMaker(category, servicePackageName, sessionId, compatMode) in newLogMaker()
124 public static LogMaker newLogMaker(int category, @NonNull ComponentName componentName, in newLogMaker() argument
126 return newLogMaker(category, servicePackageName, sessionId, compatMode) in newLogMaker()
/frameworks/base/services/core/java/com/android/server/om/
DOverlayManagerSettings.java134 @Nullable String category) throws BadKeyException { in setCategory() argument
139 return mItems.get(idx).setCategory(category); in setCategory()
446 final String category = XmlUtils.readStringAttribute(parser, ATTR_CATEGORY); in restoreRow() local
449 baseCodePath, state, isEnabled, isStatic, priority, category); in restoreRow()
505 final int priority, @Nullable String category) { in SettingsItem() argument
513 mCategory = category; in SettingsItem()
522 final boolean isStatic, final int priority, @Nullable String category) { in SettingsItem() argument
524 OverlayInfo.STATE_UNKNOWN, false, isStatic, priority, category); in SettingsItem()
582 private boolean setCategory(String category) { in setCategory() argument
583 if (!Objects.equals(mCategory, category)) { in setCategory()
[all …]

123456