/frameworks/base/core/java/com/android/internal/logging/ |
D | MetricsLogger.java | 92 public void visible(int category) throws IllegalArgumentException { in visible() argument 93 if (Build.IS_DEBUGGABLE && category == VIEW_UNKNOWN) { in visible() 96 saveLog(new LogMaker(category).setType(MetricsEvent.TYPE_OPEN)); in visible() 101 public void hidden(int category) throws IllegalArgumentException { in hidden() argument 102 if (Build.IS_DEBUGGABLE && category == VIEW_UNKNOWN) { in hidden() 105 saveLog(new LogMaker(category).setType(MetricsEvent.TYPE_CLOSE)); in hidden() 111 public void visibility(int category, boolean visible) in visibility() argument 114 visible(category); in visibility() 116 hidden(category); in visibility() 124 public void visibility(int category, int vis) in visibility() argument [all …]
|
/frameworks/native/libs/tracing_perfetto/ |
D | tracing_perfetto.cpp | 31 Result traceBegin(uint64_t category, const char* name) { in traceBegin() argument 33 internal::toPerfettoCategory(category); in traceBegin() 37 atrace_begin(category, name); in traceBegin() 42 Result traceEnd(uint64_t category) { in traceEnd() argument 44 internal::toPerfettoCategory(category); in traceEnd() 48 atrace_end(category); in traceEnd() 53 Result traceAsyncBegin(uint64_t category, const char* name, int32_t cookie) { in traceAsyncBegin() argument 55 internal::toPerfettoCategory(category); in traceAsyncBegin() 59 atrace_async_begin(category, name, cookie); in traceAsyncBegin() 64 Result traceAsyncEnd(uint64_t category, const char* name, int32_t cookie) { in traceAsyncEnd() argument [all …]
|
D | tracing_perfetto_internal.cpp | 144 struct PerfettoTeCategory* toPerfettoCategory(uint64_t category) { in toPerfettoCategory() argument 145 struct PerfettoTeCategory* perfettoCategory = toCategory(category); in toPerfettoCategory() 171 Result perfettoTraceBegin(const struct PerfettoTeCategory& category, const char* name) { in perfettoTraceBegin() argument 172 PERFETTO_TE(category, PERFETTO_TE_SLICE_BEGIN(name)); in perfettoTraceBegin() 176 Result perfettoTraceEnd(const struct PerfettoTeCategory& category) { in perfettoTraceEnd() argument 177 PERFETTO_TE(category, PERFETTO_TE_SLICE_END()); in perfettoTraceEnd() 181 Result perfettoTraceAsyncBeginForTrack(const struct PerfettoTeCategory& category, const char* name, in perfettoTraceAsyncBeginForTrack() argument 184 category, PERFETTO_TE_SLICE_BEGIN(name), in perfettoTraceAsyncBeginForTrack() 189 Result perfettoTraceAsyncEndForTrack(const struct PerfettoTeCategory& category, in perfettoTraceAsyncEndForTrack() argument 192 category, PERFETTO_TE_SLICE_END(), in perfettoTraceAsyncEndForTrack() [all …]
|
D | tracing_perfetto_internal.h | 31 struct PerfettoTeCategory* toPerfettoCategory(uint64_t category); 35 Result perfettoTraceBegin(const struct PerfettoTeCategory& category, const char* name); 37 Result perfettoTraceEnd(const struct PerfettoTeCategory& category); 39 Result perfettoTraceAsyncBegin(const struct PerfettoTeCategory& category, const char* name, 42 Result perfettoTraceAsyncEnd(const struct PerfettoTeCategory& category, const char* name, 45 Result perfettoTraceAsyncBeginForTrack(const struct PerfettoTeCategory& category, const char* name, 48 Result perfettoTraceAsyncEndForTrack(const struct PerfettoTeCategory& category, 51 Result perfettoTraceInstant(const struct PerfettoTeCategory& category, const char* name); 53 Result perfettoTraceInstantForTrack(const struct PerfettoTeCategory& category, 56 Result perfettoTraceCounter(const struct PerfettoTeCategory& category, const char* name,
|
/frameworks/native/libs/tracing_perfetto/include/ |
D | tracing_perfetto.h | 28 Result traceBegin(uint64_t category, const char* name); 30 Result traceEnd(uint64_t category); 32 Result traceAsyncBegin(uint64_t category, const char* name, int32_t cookie); 34 Result traceAsyncEnd(uint64_t category, const char* name, int32_t cookie); 36 Result traceAsyncBeginForTrack(uint64_t category, const char* name, 39 Result traceAsyncEndForTrack(uint64_t category, const char* trackName, 42 Result traceInstant(uint64_t category, const char* name); 44 Result traceInstantForTrack(uint64_t category, const char* trackName, 47 Result traceCounter(uint64_t category, const char* name, int64_t value); 49 bool isTagEnabled(uint64_t category);
|
/frameworks/base/services/people/java/com/android/server/people/data/ |
D | EventStore.java | 95 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/ |
D | MetricsFeatureProvider.java | 80 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() 104 public void clicked(int category, String key) { in clicked() argument 106 writer.clicked(category, key); in clicked() 117 public void changed(int category, String key, int value) { in changed() argument 119 writer.changed(category, key, value); in changed() 129 public void action(Context context, int category, Pair<Integer, Object>... taggedData) { in action() argument 131 writer.action(context, category, taggedData); in action() [all …]
|
D | LogWriter.java | 29 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 clicked(int category, String key); in clicked() argument 44 void changed(int category, String key, int value); in changed() argument 49 void action(Context context, int category, Pair<Integer, Object>... taggedData); in action() argument 54 void action(Context context, int category, int value); in action() argument 59 void action(Context context, int category, boolean value); in action() argument 64 void action(Context context, int category, String pkg); in action() argument
|
D | EventLogWriter.java | 33 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() 66 public void changed(int category, String key, int value) { in changed() argument 70 if (category != MetricsProto.MetricsEvent.VIEW_UNKNOWN) { in changed() 71 logMaker.addTaggedData(MetricsProto.MetricsEvent.FIELD_CONTEXT, category); in changed() 84 public void action(Context context, int category, Pair<Integer, Object>... taggedData) { in action() argument 85 final LogMaker logMaker = new LogMaker(category) in action() 96 public void action(Context context, int category, int value) { in action() argument [all …]
|
/frameworks/base/nfc/java/android/nfc/cardemulation/ |
D | AidGroup.java | 75 public AidGroup(@NonNull List<String> aids, @Nullable String category) { in AidGroup() argument 87 if (isValidCategory(category)) { in AidGroup() 88 this.mCategory = category; in AidGroup() 105 AidGroup(@NonNull String category, @NonNull String description) { in AidGroup() argument 107 this.mCategory = category; in AidGroup() 181 String category = source.readString8(); 187 return new AidGroup(aidList, category); 207 String category = null; in createFromXml() local 227 category = parser.getAttributeValue(null, "category"); in createFromXml() 228 if (category == null) { in createFromXml() [all …]
|
D | CardEmulation.java | 221 public boolean isDefaultServiceForCategory(ComponentName service, String category) { in isDefaultServiceForCategory() argument 224 service, category); in isDefaultServiceForCategory() 234 service, category); in isDefaultServiceForCategory() 291 public boolean categoryAllowsForegroundPreference(String category) { in categoryAllowsForegroundPreference() argument 300 if (CATEGORY_PAYMENT.equals(category)) { in categoryAllowsForegroundPreference() 332 public int getSelectionModeForCategory(String category) { in getSelectionModeForCategory() argument 333 if (CATEGORY_PAYMENT.equals(category)) { in getSelectionModeForCategory() 564 public boolean registerAidsForService(ComponentName service, String category, in registerAidsForService() argument 566 AidGroup aidGroup = new AidGroup(aids, category); in registerAidsForService() 722 public List<String> getAidsForService(ComponentName service, String category) { in getAidsForService() argument [all …]
|
/frameworks/base/core/java/android/content/om/ |
D | OverlayInfo.java | 191 @Nullable public final String category; field in OverlayInfo 248 source.targetOverlayableName, source.category, source.baseCodePath, state, in OverlayInfo() 255 @Nullable String targetOverlayableName, @Nullable String category, in OverlayInfo() argument 258 category, baseCodePath, state, userId, priority, isMutable, in OverlayInfo() 265 @Nullable String category, @NonNull String baseCodePath, int state, int userId, in OverlayInfo() argument 271 this.category = category; in OverlayInfo() 287 category = source.readString(); in OverlayInfo() 338 return category; in getCategory() 435 dest.writeString(category); in writeToParcel() 523 result = prime * result + ((category == null) ? 0 : category.hashCode()); in hashCode() [all …]
|
/frameworks/base/tools/aapt2/link/ |
D | ManifestFixer_test.cpp | 356 options.rename_overlay_category = std::string("category"); in TEST_F() 372 xml::Attribute* attr = overlay_el->FindAttribute(xml::kSchemaAndroid, "category"); in TEST_F() 374 EXPECT_THAT(attr->value, StrEq("category")); in TEST_F() 379 options.rename_overlay_category = std::string("category"); in TEST_F() 386 android:category="yrogetac"/> in TEST_F() 397 xml::Attribute* attr = overlay_el->FindAttribute(xml::kSchemaAndroid, "category"); in TEST_F() 399 EXPECT_THAT(attr->value, StrEq("category")); in TEST_F() 1283 <category android:name="" /> 1296 <category /> 1309 <category android:name="android.intent.category.LAUNCHER" /> [all …]
|
/frameworks/base/packages/SettingsLib/tests/integ/src/com/android/settingslib/applications/ |
D | ApplicationsStateTest.java | 60 mEntry.info.category = ApplicationInfo.CATEGORY_GAME; in testGameFilterAcceptsCategorizedGame() 68 mEntry.info.category = ApplicationInfo.CATEGORY_GAME; in testGameFilterAcceptsCategorizedGameAndDeprecatedIsGame() 75 mEntry.info.category = ApplicationInfo.CATEGORY_UNDEFINED; in testGamesFilterRejectsNotGame() 82 mEntry.info.category = ApplicationInfo.CATEGORY_AUDIO; in testAudioFilterAcceptsCategorizedAudio() 89 mEntry.info.category = ApplicationInfo.CATEGORY_GAME; in testAudiosFilterRejectsNotAudio() 96 mEntry.info.category = ApplicationInfo.CATEGORY_UNDEFINED; in testAudiosFilterRejectsDefaultCategory() 103 mEntry.info.category = ApplicationInfo.CATEGORY_AUDIO; in testOtherAppsRejectsAudio() 110 mEntry.info.category = ApplicationInfo.CATEGORY_GAME; in testOtherAppsRejectsGame() 117 mEntry.info.category = ApplicationInfo.CATEGORY_IMAGE; in testOtherAppsRejectsImageApp() 124 mEntry.info.category = ApplicationInfo.CATEGORY_UNDEFINED; in testOtherAppsAcceptsDefaultCategory() [all …]
|
/frameworks/base/packages/SettingsLib/Spa/spa/src/com/android/settingslib/spa/debug/ |
D | DebugLogger.kt | 26 override fun message(tag: String, msg: String, category: LogCategory) { in message() 27 Log.d("SpaMsg-$category", "[$tag] $msg") in message() 30 override fun event(id: String, event: LogEvent, category: LogCategory, extraData: Bundle) { in event() 32 Log.d("SpaEvent-$category", "[$id] $event $extraMsg") in event()
|
/frameworks/native/services/surfaceflinger/tests/unittests/ |
D | LayerInfoTest.cpp | 210 ASSERT_EQ(actualVotes[0].category, vote.category); in TEST_F() 216 .category = FrameRateCategory::High, in TEST_F() 224 ASSERT_EQ(actualVotes[0].category, vote.category); in TEST_F() 229 ASSERT_EQ(actualVotes[1].category, FrameRateCategory::Default); in TEST_F() 235 .category = FrameRateCategory::High}; in TEST_F() 242 ASSERT_EQ(actualVotes[0].category, vote.category); in TEST_F() 248 .category = FrameRateCategory::NoPreference}; in TEST_F() 255 ASSERT_EQ(actualVotes[0].category, vote.category); in TEST_F()
|
/frameworks/base/packages/SystemUI/shared/src/com/android/systemui/shared/recents/model/ |
D | Task.java | 57 @ViewDebug.ExportedProperty(category="recents") 59 @ViewDebug.ExportedProperty(category="recents") 61 @ViewDebug.ExportedProperty(category="recents") 64 @ViewDebug.ExportedProperty(category="recents") 66 @ViewDebug.ExportedProperty(category="recents") 72 @ViewDebug.ExportedProperty(category = "recents") 218 @ViewDebug.ExportedProperty(category="recents") 220 @ViewDebug.ExportedProperty(category="recents") 222 @ViewDebug.ExportedProperty(category="recents") 224 @ViewDebug.ExportedProperty(category="recents") [all …]
|
/frameworks/base/nfc/java/android/nfc/ |
D | INfcCardEmulation.aidl | 29 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 39 AidGroup getAidGroupForService(int userHandle, in ComponentName service, String category); in getAidGroupForService() argument 40 boolean removeAidGroupForService(int userHandle, in ComponentName service, String category); in removeAidGroupForService() argument 43 List<ApduServiceInfo> getServices(int userHandle, in String category); in getServices() argument
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/theme/ |
D | ThemeOverlayApplier.java | 212 .map(category -> mCategoryToTargetPackage.get(category)) in applyCurrentUserOverlays() 220 o.category)) in applyCurrentUserOverlays() 221 .filter(o -> overlayCategoriesToDisable.contains(o.category)) in applyCurrentUserOverlays() 225 .map(o -> new Pair<>(o.category, o.packageName)) in applyCurrentUserOverlays() 243 for (String category : THEME_CATEGORIES) { in applyCurrentUserOverlays() 244 if (categoryToPackage.containsKey(category)) { in applyCurrentUserOverlays() 245 OverlayIdentifier overlayInfo = categoryToPackage.get(category); in applyCurrentUserOverlays() 246 setEnabled(transaction, overlayInfo, category, currentUser, managedProfiles, in applyCurrentUserOverlays() 270 OverlayIdentifier identifier, String category, int currentUser, in setEnabled() argument 274 + category + ": " + enabled); in setEnabled() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/communal/data/model/ |
D | CommunalWidgetCategories.kt | 28 fun contains(category: Int) = (categories and category) == category in contains()
|
/frameworks/base/core/java/android/service/notification/ |
D | ZenPolicy.java | 717 public @NonNull Builder unsetPriorityCategory(@PriorityCategory int category) { in unsetPriorityCategory() argument 718 mZenPolicy.mPriorityCategories.set(category, STATE_UNSET); in unsetPriorityCategory() 720 if (category == PRIORITY_CATEGORY_MESSAGES) { in unsetPriorityCategory() 722 } else if (category == PRIORITY_CATEGORY_CALLS) { in unsetPriorityCategory() 724 } else if (category == PRIORITY_CATEGORY_CONVERSATIONS) { in unsetPriorityCategory() 881 public @NonNull Builder allowCategory(@PriorityCategory int category, boolean allow) { in allowCategory() argument 882 switch (category) { in allowCategory() 1320 category) { in getZenPolicyPriorityCategoryState() 1321 switch (category) { in getZenPolicyPriorityCategoryState() 1377 public boolean isCategoryAllowed(@PriorityCategory int category, boolean defaultVal) { in isCategoryAllowed() argument [all …]
|
/frameworks/base/packages/SettingsLib/Spa/tests/src/com/android/settingslib/spa/tests/testutils/ |
D | SpaEnvironmentForTest.kt | 45 data class MsgCountKey(val msg: String, val category: LogCategory) in <lambda>() constant in com.android.settingslib.spa.tests.testutils.SpaLoggerForTest.MsgCountKey 46 data class EventCountKey(val id: String, val event: LogEvent, val category: LogCategory) in <lambda>() constant in com.android.settingslib.spa.tests.testutils.SpaLoggerForTest.EventCountKey 51 override fun message(tag: String, msg: String, category: LogCategory) { in <lambda>() 52 val key = MsgCountKey("[$tag]$msg", category) in <lambda>() 56 override fun event(id: String, event: LogEvent, category: LogCategory, extraData: Bundle) { in <lambda>() 57 val key = EventCountKey(id, event, category) in <lambda>() 61 fun getMessageCount(tag: String, msg: String, category: LogCategory): Int { in <lambda>() 62 val key = MsgCountKey("[$tag]$msg", category) in <lambda>() 66 fun getEventCount(id: String, event: LogEvent, category: LogCategory): Int { in <lambda>() 67 val key = EventCountKey(id, event, category) in <lambda>()
|
/frameworks/base/services/core/java/com/android/server/utils/quota/ |
D | CountQuotaTracker.java | 224 public void setCountLimit(@NonNull Category category, int limit, long timeWindowMs) { in setCountLimit() argument 229 final Integer oldLimit = mMaxCategoryCounts.put(category, limit); in setCountLimit() 232 final Long oldWindowSizeMs = mCategoryCountWindowSizesMs.put(category, newWindowSizeMs); in setCountLimit() 248 public int getLimit(@NonNull Category category) { in getLimit() argument 250 final Integer limit = mMaxCategoryCounts.get(category); in getLimit() 252 throw new IllegalArgumentException("Limit for " + category + " not defined"); in getLimit() 261 public long getWindowSizeMs(@NonNull Category category) { in getWindowSizeMs() argument 263 final Long limitMs = mCategoryCountWindowSizesMs.get(category); in getWindowSizeMs() 265 throw new IllegalArgumentException("Limit for " + category + " not defined"); in getWindowSizeMs() 387 final Category category = mCategorizer.getCategory(userId, packageName, tag); in getExecutionStatsLocked() local [all …]
|
/frameworks/libs/native_bridge_support/android_api/libvulkan/proxy/ |
D | vulkan_xml_test.go | 31 <type category="test">Here is <name>type_name</name></type> 68 <type category="union" name="Union"> 121 <type name="VkStructureType" category="enum"/> 189 <type name="VkImageCreateFlagBits" category="enum"/> 235 <type name="Vk64BitEnum" category="enum"/> 279 <type category="handle"><type>VK_DEFINE_HANDLE</type>(<name>VkInstance</name>)</type> 316 …<type category="handle"><type>VK_DEFINE_NON_DISPATCHABLE_HANDLE</type>(<name>VkFence</name>)</type> 360 …<type category="funcpointer">typedef void (VKAPI_PTR *<name>PFN_vkVoidFunction</name>)(void);</typ… 361 <type category="funcpointer" requires="VkDebugUtilsMessengerCallbackDataEXT"> 444 <type category="basetype">typedef <type>uint32_t</type> <name>VkFlags</name>;</type> [all …]
|
/frameworks/base/core/java/android/hardware/display/ |
D | BrightnessConfiguration.java | 133 public BrightnessCorrection getCorrectionByCategory(@ApplicationInfo.Category int category) { in getCorrectionByCategory() argument 134 return mCorrectionsByCategory.get(category); in getCorrectionByCategory() 202 final int category = entry.getKey(); in writeToParcel() local 204 dest.writeInt(category); in writeToParcel() 317 final int category = in.readInt(); 320 builder.addCorrectionByCategory(category, correction); 370 final int category = entry.getKey(); in saveToXml() local 373 serializer.attributeInt(null, ATTR_CATEGORY, category); in saveToXml() 442 final int category = parser.getAttributeInt(null, ATTR_CATEGORY, -1); in loadFromXml() local 446 } else if (category != -1) { in loadFromXml() [all …]
|