Home
last modified time | relevance | path

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

1234567

/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 …]
DEventLogTags.logtags6 524287 sysui_view_visibility (category|1|5),(visible|1|6)
7 524288 sysui_action (category|1|5),(pkg|3)
/frameworks/base/core/java/android/nfc/cardemulation/
DAidGroup.java53 final String category; field in AidGroup
63 public AidGroup(List<String> aids, String category) { in AidGroup() argument
75 if (isValidCategory(category)) { in AidGroup()
76 this.category = category; in AidGroup()
78 this.category = CardEmulation.CATEGORY_OTHER; in AidGroup()
88 AidGroup(String category, String description) { in AidGroup() argument
90 this.category = category; in AidGroup()
99 return category; in getCategory()
112 StringBuilder out = new StringBuilder("Category: " + category + in toString()
130 proto.write(AidGroupProto.CATEGORY, category); in dump()
[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.java131 this.mStaticAidGroups.put(aidGroup.category, aidGroup); in ApduServiceInfo()
134 this.mDynamicAidGroups.put(aidGroup.category, aidGroup); in ApduServiceInfo()
254 if (!mStaticAidGroups.containsKey(currentGroup.category)) { in ApduServiceInfo()
255 mStaticAidGroups.put(currentGroup.category, currentGroup); in ApduServiceInfo()
363 public AidGroup getDynamicAidGroupForCategory(String category) { in getDynamicAidGroupForCategory() argument
364 return mDynamicAidGroups.get(category); in getDynamicAidGroupForCategory()
367 public boolean removeDynamicAidGroupForCategory(String category) { in removeDynamicAidGroupForCategory() argument
368 return (mDynamicAidGroups.remove(category) != null); in removeDynamicAidGroupForCategory()
402 return group.category; in getCategoryForAid()
408 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/services/people/java/com/android/server/people/data/
DEventStore.java95 for (@EventCategory int category = 0; category < mEventsCategoryDirs.size(); in loadFromDisk()
96 category++) { in loadFromDisk()
97 File categoryDir = mEventsCategoryDirs.get(category); in loadFromDisk()
101 mEventHistoryMaps.get(category).putAll(existingEventHistoriesImpl); in loadFromDisk()
123 synchronized EventHistory getEventHistory(@EventCategory int category, String key) { in getEventHistory() argument
124 return mEventHistoryMaps.get(category).get(key); in getEventHistory()
136 synchronized EventHistoryImpl getOrCreateEventHistory(@EventCategory int category, String key) { in getOrCreateEventHistory() argument
137 return mEventHistoryMaps.get(category).computeIfAbsent(key, in getOrCreateEventHistory()
139 new File(mEventsCategoryDirs.get(category), Uri.encode(key)), in getOrCreateEventHistory()
149 synchronized void deleteEventHistory(@EventCategory int category, String key) { in deleteEventHistory() argument
[all …]
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/core/instrumentation/
DEventLogWriter.java33 public void visible(Context context, int source, int category, int latency) { in visible() argument
34 final LogMaker logMaker = new LogMaker(category) in visible()
43 public void hidden(Context context, int category, int visibleTime) { in hidden() argument
44 final LogMaker logMaker = new LogMaker(category) in hidden()
52 public void action(Context context, int category, Pair<Integer, Object>... taggedData) { in action() argument
53 final LogMaker logMaker = new LogMaker(category) in action()
64 public void action(Context context, int category, int value) { in action() argument
65 MetricsLogger.action(context, category, value); in action()
69 public void action(Context context, int category, boolean value) { in action() argument
70 MetricsLogger.action(context, category, value); in action()
[all …]
DMetricsFeatureProvider.java80 public void visible(Context context, int source, int category, int latency) { in visible() argument
82 writer.visible(context, source, category, latency); in visible()
92 public void hidden(Context context, int category, int visibleTime) { in hidden() argument
94 writer.hidden(context, category, visibleTime); in hidden()
101 public void action(Context context, int category, Pair<Integer, Object>... taggedData) { in action() argument
103 writer.action(context, category, taggedData); in action()
110 public void action(Context context, int category, String pkg) { in action() argument
112 writer.action(context, category, pkg); in action()
125 public void action(Context context, int category, int value) { in action() argument
127 writer.action(context, category, value); in action()
[all …]
DLogWriter.java29 void visible(Context context, int source, int category, int latency); in visible() argument
34 void hidden(Context context, int category, int visibleTime); 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.java126 for (String category : ThemeOverlayManager.THEME_CATEGORIES) { in updateThemeOverlays()
127 if (object.has(category)) { in updateThemeOverlays()
128 categoryToPackage.put(category, object.getString(category)); in updateThemeOverlays()
/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.java164 public final String category; field in OverlayInfo
213 source.category, source.baseCodePath, state, source.userId, source.priority, in OverlayInfo()
219 @Nullable String targetOverlayableName, @Nullable String category, in OverlayInfo() argument
225 this.category = category; in OverlayInfo()
239 category = source.readString(); in OverlayInfo()
275 return category; in getCategory()
334 dest.writeString(category); in writeToParcel()
415 result = prime * result + ((category == null) ? 0 : category.hashCode()); in hashCode()
447 if (!Objects.equals(category, other.category)) { in equals()
/frameworks/base/packages/SystemUI/shared/src/com/android/systemui/shared/recents/model/
DTask.java61 @ViewDebug.ExportedProperty(category="recents")
63 @ViewDebug.ExportedProperty(category="recents")
65 @ViewDebug.ExportedProperty(category="recents")
67 @ViewDebug.ExportedProperty(category="recents")
69 @ViewDebug.ExportedProperty(category="recents")
75 @ViewDebug.ExportedProperty(category = "recents")
223 @ViewDebug.ExportedProperty(category="recents")
226 @ViewDebug.ExportedProperty(category="recents")
228 @ViewDebug.ExportedProperty(category="recents")
230 @ViewDebug.ExportedProperty(category="recents")
[all …]
/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.java496 public @NonNull Builder unsetPriorityCategory(@PriorityCategory int category) { in unsetPriorityCategory() argument
497 mZenPolicy.mPriorityCategories.set(category, STATE_UNSET); in unsetPriorityCategory()
499 if (category == PRIORITY_CATEGORY_MESSAGES) { in unsetPriorityCategory()
501 } else if (category == PRIORITY_CATEGORY_CALLS) { in unsetPriorityCategory()
503 } else if (category == PRIORITY_CATEGORY_CONVERSATIONS) { in unsetPriorityCategory()
660 public @NonNull Builder allowCategory(@PriorityCategory int category, boolean allow) { in allowCategory() argument
661 switch (category) { in allowCategory()
972 category) { in getZenPolicyPriorityCategoryState()
973 switch (category) { in getZenPolicyPriorityCategoryState()
1017 public boolean isCategoryAllowed(@PriorityCategory int category, boolean defaultVal) { in isCategoryAllowed() argument
[all …]
/frameworks/base/services/core/java/com/android/server/utils/quota/
DCountQuotaTracker.java225 public void setCountLimit(@NonNull Category category, int limit, long timeWindowMs) { in setCountLimit() argument
230 final Integer oldLimit = mMaxCategoryCounts.put(category, limit); in setCountLimit()
233 final Long oldWindowSizeMs = mCategoryCountWindowSizesMs.put(category, newWindowSizeMs); in setCountLimit()
249 public int getLimit(@NonNull Category category) { in getLimit() argument
251 final Integer limit = mMaxCategoryCounts.get(category); in getLimit()
253 throw new IllegalArgumentException("Limit for " + category + " not defined"); in getLimit()
262 public long getWindowSizeMs(@NonNull Category category) { in getWindowSizeMs() argument
264 final Long limitMs = mCategoryCountWindowSizesMs.get(category); in getWindowSizeMs()
266 throw new IllegalArgumentException("Limit for " + category + " not defined"); in getWindowSizeMs()
389 final Category category = mCategorizer.getCategory(userId, packageName, tag); in getExecutionStatsLocked() local
[all …]
/frameworks/base/packages/CarSystemUI/src/com/android/systemui/car/navigationbar/
DButtonSelectionStateController.java183 String category = getPackageCategory(packageName); in findSelectedButtons() local
184 if (category != null) { in findSelectedButtons()
185 selectedButtons = mButtonsByCategory.get(category); in findSelectedButtons()
203 for (String category : supportedCategories) { in getPackageCategory()
207 intent.addCategory(category); in getPackageCategory()
212 mButtonsByPackage.put(packageName, mButtonsByCategory.get(category)); in getPackageCategory()
213 return category; in getPackageCategory()
/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/src/com/android/settingslib/
DAppItem.java30 public int category; field in AppItem
67 int comparison = Integer.compare(category, another.category); in compareTo()
/frameworks/base/core/java/android/hardware/display/
DBrightnessConfiguration.java135 public BrightnessCorrection getCorrectionByCategory(@ApplicationInfo.Category int category) { in getCorrectionByCategory() argument
136 return mCorrectionsByCategory.get(category); in getCorrectionByCategory()
204 final int category = entry.getKey(); in writeToParcel() local
206 dest.writeInt(category); in writeToParcel()
319 final int category = in.readInt();
322 builder.addCorrectionByCategory(category, correction);
372 final int category = entry.getKey(); in saveToXml() local
375 serializer.attribute(null, ATTR_CATEGORY, Integer.toString(category)); in saveToXml()
451 final int category = Integer.parseInt(categoryText); in loadFromXml() local
452 correctionsByCategory.put(category, correction); in loadFromXml()
[all …]
/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/libs/systemui/iconloaderlib/src/com/android/launcher3/icons/
DDotRenderer.java131 @ViewDebug.ExportedProperty(category = "notification dot", formatToHexString = true)
134 @ViewDebug.ExportedProperty(category = "notification dot")
137 @ViewDebug.ExportedProperty(category = "notification dot")
140 @ViewDebug.ExportedProperty(category = "notification dot")

1234567