Home
last modified time | relevance | path

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

12345678

/frameworks/base/core/java/com/android/internal/logging/
DMetricsLogger.java57 public void visible(int category) throws IllegalArgumentException { in visible() argument
58 if (Build.IS_DEBUGGABLE && category == VIEW_UNKNOWN) { in visible()
61 EventLogTags.writeSysuiViewVisibility(category, 100); in visible()
62 saveLog(new LogMaker(category) in visible()
67 public void hidden(int category) throws IllegalArgumentException { in hidden() argument
68 if (Build.IS_DEBUGGABLE && category == VIEW_UNKNOWN) { in hidden()
71 EventLogTags.writeSysuiViewVisibility(category, 0); in hidden()
72 saveLog(new LogMaker(category) in hidden()
77 public void visibility(int category, boolean visibile) in visibility() argument
80 visible(category); in visibility()
[all …]
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/drawer/
DCategoryManagerTest.java61 tile1.category = CategoryKey.CATEGORY_ACCOUNT; in backwardCompatCleanupForCategory_shouldNotChangeCategoryForNewKeys()
62 tile2.category = CategoryKey.CATEGORY_ACCOUNT; in backwardCompatCleanupForCategory_shouldNotChangeCategoryForNewKeys()
63 final DashboardCategory category = new DashboardCategory(); in backwardCompatCleanupForCategory_shouldNotChangeCategoryForNewKeys() local
64 category.addTile(tile1); in backwardCompatCleanupForCategory_shouldNotChangeCategoryForNewKeys()
65 category.addTile(tile2); in backwardCompatCleanupForCategory_shouldNotChangeCategoryForNewKeys()
66 mCategoryByKeyMap.put(CategoryKey.CATEGORY_ACCOUNT, category); in backwardCompatCleanupForCategory_shouldNotChangeCategoryForNewKeys()
81 tile1.category = CategoryKey.CATEGORY_ACCOUNT; in backwardCompatCleanupForCategory_shouldNotChangeCategoryForMixedKeys()
82 tile2.category = oldCategory; in backwardCompatCleanupForCategory_shouldNotChangeCategoryForMixedKeys()
104 tile1.category = oldCategory; in backwardCompatCleanupForCategory_shouldChangeCategoryForOldKeys()
125 final DashboardCategory category = new DashboardCategory(); in sortCategories_singlePackage_shouldReorderBasedOnPriority() local
[all …]
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/core/instrumentation/
DEventLogWriter.java34 public void visible(Context context, int source, int category) { in visible() argument
35 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()
45 public void action(int category, int value, Pair<Integer, Object>... taggedData) { in action() argument
47 mMetricsLogger.action(category, value); in action()
49 final LogMaker logMaker = new LogMaker(category) in action()
59 public void action(int category, boolean value, Pair<Integer, Object>... taggedData) { in action() argument
60 action(category, value ? 1 : 0, taggedData); in action()
63 public void action(Context context, int category, Pair<Integer, Object>... taggedData) { in action() argument
[all …]
DMetricsFeatureProvider.java44 public void visible(Context context, int source, int category) { in visible() argument
46 writer.visible(context, source, category); in visible()
50 public void hidden(Context context, int category) { in hidden() argument
52 writer.hidden(context, category); in hidden()
56 public void actionWithSource(Context context, int source, int category) { in actionWithSource() argument
58 writer.actionWithSource(context, source, category); in actionWithSource()
66 public void action(VisibilityLoggerMixin visibilityLogger, int category, int value) { in action() argument
68 writer.action(category, value, in action()
77 public void action(VisibilityLoggerMixin visibilityLogger, int category, boolean value) { in action() argument
79 writer.action(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(int category, int value, Pair<Integer, Object>... taggedData); in action() argument
44 void action(int category, boolean value, Pair<Integer, Object>... taggedData); in action() argument
49 void action(Context context, int category, Pair<Integer, Object>... taggedData); in action() argument
54 void actionWithSource(Context context, int source, int category); in actionWithSource() argument
61 void action(Context context, int category, int value); in action() argument
68 void action(Context context, int category, boolean value); in action() argument
73 void action(Context context, int category, String pkg, Pair<Integer, Object>... taggedData); in action() argument
/frameworks/support/preference/src/androidTest/java/androidx/preference/tests/
DExpandablePreferenceTest.java90 PreferenceCategory category = new PreferenceCategory(mContext); in expandablePreference_inCategory_collapsesCorrectly() local
92 mScreen.addPreference(category); in expandablePreference_inCategory_collapsesCorrectly()
94 category.setKey("category"); in expandablePreference_inCategory_collapsesCorrectly()
95 category.setInitialExpandedChildrenCount(1); in expandablePreference_inCategory_collapsesCorrectly()
97 category.addPreference(mPreference1); in expandablePreference_inCategory_collapsesCorrectly()
98 category.addPreference(mPreference2); in expandablePreference_inCategory_collapsesCorrectly()
99 category.addPreference(mPreference3); in expandablePreference_inCategory_collapsesCorrectly()
105 assertEquals(category, preferenceGroupAdapter.getItem(0)); in expandablePreference_inCategory_collapsesCorrectly()
114 PreferenceCategory category = new PreferenceCategory(mContext); in expandablePreference_inNestedCategory_collapsesCorrectly() local
117 mScreen.addPreference(category); in expandablePreference_inNestedCategory_collapsesCorrectly()
[all …]
DPreferenceParentGroupTest.java60 PreferenceCategory category = new PreferenceCategory(mContext); in parentAddRemoveTest() local
61 assertNull(category.getParent()); in parentAddRemoveTest()
66 screen.addPreference(category); in parentAddRemoveTest()
67 assertEquals(screen, category.getParent()); in parentAddRemoveTest()
69 category.addPreference(pref); in parentAddRemoveTest()
70 assertEquals(category, pref.getParent()); in parentAddRemoveTest()
72 screen.removePreference(category); in parentAddRemoveTest()
73 assertNull(category.getParent()); in parentAddRemoveTest()
75 category.removePreference(pref); in parentAddRemoveTest()
/frameworks/base/core/java/android/nfc/cardemulation/
DAidGroup.java49 final String category; field in AidGroup
58 public AidGroup(List<String> aids, String category) { in AidGroup() argument
70 if (isValidCategory(category)) { in AidGroup()
71 this.category = category; in AidGroup()
73 this.category = CardEmulation.CATEGORY_OTHER; in AidGroup()
82 AidGroup(String category, String description) { in AidGroup() argument
84 this.category = category; in AidGroup()
92 return category; in getCategory()
104 StringBuilder out = new StringBuilder("Category: " + category + in toString()
120 dest.writeString(category); in writeToParcel()
[all …]
DCardEmulation.java202 public boolean isDefaultServiceForCategory(ComponentName service, String category) { in isDefaultServiceForCategory() argument
204 return sService.isDefaultServiceForCategory(mContext.getUserId(), service, category); in isDefaultServiceForCategory()
214 category); in isDefaultServiceForCategory()
264 public boolean categoryAllowsForegroundPreference(String category) { in categoryAllowsForegroundPreference() argument
265 if (CATEGORY_PAYMENT.equals(category)) { in categoryAllowsForegroundPreference()
291 public int getSelectionModeForCategory(String category) { in getSelectionModeForCategory() argument
292 if (CATEGORY_PAYMENT.equals(category)) { in getSelectionModeForCategory()
325 public boolean registerAidsForService(ComponentName service, String category, in registerAidsForService() argument
327 AidGroup aidGroup = new AidGroup(aids, category); in registerAidsForService()
361 public List<String> getAidsForService(ComponentName service, String category) { in getAidsForService() 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/suggestions/
DSuggestionParser.java135 final SuggestionCategory category = mSuggestionList.get(i); in getSuggestions() local
136 if (category.exclusive && !isExclusiveCategoryExpired(category)) { in getSuggestions()
144 readSuggestions(category, exclusiveSuggestions, false /* isSmartSuggestion */); in getSuggestions()
147 exclusiveList.addSuggestions(category, exclusiveSuggestions); in getSuggestions()
154 readSuggestions(category, suggestions, isSmartSuggestionEnabled); in getSuggestions()
155 suggestionList.addSuggestions(category, suggestions); in getSuggestions()
190 SuggestionCategory category, List<Tile> suggestions, boolean isSmartSuggestionEnabled) { in readSuggestions() argument
193 intent.addCategory(category.category); in readSuggestions()
194 if (category.pkg != null) { in readSuggestions()
195 intent.setPackage(category.pkg); in readSuggestions()
[all …]
DSuggestionList.java41 public void addSuggestions(SuggestionCategory category, List<Tile> suggestions) { in addSuggestions() argument
42 mSuggestions.put(category, suggestions); in addSuggestions()
62 for (SuggestionCategory category : mSuggestions.keySet()) { in isExclusiveSuggestionCategory()
63 if (category.exclusive) { in isExclusiveSuggestionCategory()
/frameworks/base/packages/SystemUI/shared/src/com/android/systemui/shared/recents/model/
DTask.java52 @ViewDebug.ExportedProperty(category="recents")
54 @ViewDebug.ExportedProperty(category="recents")
56 @ViewDebug.ExportedProperty(category="recents")
58 @ViewDebug.ExportedProperty(category="recents")
60 @ViewDebug.ExportedProperty(category="recents")
136 @ViewDebug.ExportedProperty(category="recents")
138 @ViewDebug.ExportedProperty(category="recents")
140 @ViewDebug.ExportedProperty(category="recents")
142 @ViewDebug.ExportedProperty(category="recents")
144 @ViewDebug.ExportedProperty(category="recents")
[all …]
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/drawer/
DCategoryManager.java104 DashboardCategory category = mCategories.get(i); in updateCategoryFromBlacklist() local
105 for (int j = 0; j < category.getTilesCount(); j++) { in updateCategoryFromBlacklist()
106 Tile tile = category.getTile(j); in updateCategoryFromBlacklist()
108 category.removeTile(j--); in updateCategoryFromBlacklist()
129 for (DashboardCategory category : mCategories) { in tryInitCategories()
130 mCategoryByKeyMap.put(category.key, category); in tryInitCategories()
164 if (CategoryKey.KEY_COMPAT_MAP.containsKey(tile.category)) { in backwardCompatCleanupForCategory()
174 final String newCategoryKey = CategoryKey.KEY_COMPAT_MAP.get(tile.category); in backwardCompatCleanupForCategory()
175 tile.category = newCategoryKey; in backwardCompatCleanupForCategory()
210 final DashboardCategory category = categoryEntry.getValue(); in filterDuplicateTiles() local
[all …]
DTileUtils.java250 DashboardCategory category = categoryMap.get(tile.category); in getCategories() local
251 if (category == null) { in getCategories()
252 category = createCategory(context, tile.category, categoryDefinedInManifest); in getCategories()
253 if (category == null) { in getCategories()
254 Log.w(LOG_TAG, "Couldn't find category " + tile.category); in getCategories()
257 categoryMap.put(category.key, category); in getCategories()
259 category.addTile(tile); in getCategories()
262 for (DashboardCategory category : categories) { in getCategories()
263 category.sortTiles(); in getCategories()
281 DashboardCategory category = new DashboardCategory(); in createCategory() local
[all …]
/frameworks/base/core/java/android/content/om/
DOverlayInfo.java120 public final String category; field in OverlayInfo
161 this(source.packageName, source.targetPackageName, source.category, source.baseCodePath, in OverlayInfo()
166 @NonNull String category, @NonNull String baseCodePath, int state, int userId, in OverlayInfo() argument
170 this.category = category; in OverlayInfo()
182 category = source.readString(); in OverlayInfo()
225 dest.writeString(category); in writeToParcel()
301 result = prime * result + ((category == null) ? 0 : category.hashCode()); in hashCode()
330 if (!category.equals(other.category)) { in equals()
/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/support/room/integration-tests/testapp/src/androidTest/java/androidx/room/integration/testapp/test/
DRelationWithReservedKeywordTest.java63 Category category = new Category(1, "cat1"); in loadRelation() local
64 mDb.getDao().insert(category); in loadRelation()
69 assertThat(categoryWithTopics.get(0).category, is(category)); in loadRelation()
90 Category category = (Category) o; in equals()
92 if (id != category.id) return false; in equals()
93 return name != null ? name.equals(category.name) : category.name == null; in equals()
129 public Category category; field in RelationWithReservedKeywordTest.CategoryWithTopics
/frameworks/support/mediarouter/src/main/java/androidx/mediarouter/media/
DMediaRouteSelector.java88 public boolean hasControlCategory(String category) { in hasControlCategory() argument
89 if (category != null) { in hasControlCategory()
93 if (mControlCategories.get(i).equals(category)) { in hasControlCategory()
245 public Builder addControlCategory(@NonNull String category) { in addControlCategory() argument
246 if (category == null) { in addControlCategory()
253 if (!mControlCategories.contains(category)) { in addControlCategory()
254 mControlCategories.add(category); in addControlCategory()
273 for (String category : categories) { in addControlCategories()
274 addControlCategory(category); in addControlCategories()
/frameworks/av/packages/MediaComponents/src/com/android/support/mediarouter/media/
DMediaRouteSelector.java87 public boolean hasControlCategory(String category) { in hasControlCategory() argument
88 if (category != null) { in hasControlCategory()
92 if (mControlCategories.get(i).equals(category)) { in hasControlCategory()
244 public Builder addControlCategory(@NonNull String category) { in addControlCategory() argument
245 if (category == null) { in addControlCategory()
252 if (!mControlCategories.contains(category)) { in addControlCategory()
253 mControlCategories.add(category); in addControlCategory()
272 for (String category : categories) { in addControlCategories()
273 addControlCategory(category); in addControlCategories()
/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
34 AidGroup getAidGroupForService(int userHandle, in ComponentName service, String category); in getAidGroupForService() argument
35 boolean removeAidGroupForService(int userHandle, in ComponentName service, String category); in removeAidGroupForService() argument
36 List<ApduServiceInfo> getServices(int userHandle, in String category); in getServices() argument
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/car/
DCarFacetButtonController.java103 String category = getPackageCategory(packageName); in taskChanged() local
104 if (category != null) { in taskChanged()
105 facetButton = mButtonsByCategory.get(category); in taskChanged()
135 for (String category : supportedCategories) { in getPackageCategory()
139 intent.addCategory(category); in getPackageCategory()
144 mButtonsByPackage.put(packageName, mButtonsByCategory.get(category)); in getPackageCategory()
145 return category; in getPackageCategory()
/frameworks/base/services/net/java/android/net/util/
DSharedLog.java117 private String record(Category category, String msg) { in record() argument
118 final String entry = logLine(category, msg); in record()
123 private String logLine(Category category, String msg) { in logLine() argument
126 if (category != Category.NONE) sj.add(category.toString()); in logLine()
/frameworks/base/services/core/java/com/android/server/
DUiModeManagerService.java119 private static Intent buildHomeIntent(String category) { in buildHomeIntent() argument
121 intent.addCategory(category); in buildHomeIntent()
543 String category = null; in updateLocked() local
547 category = Intent.CATEGORY_CAR_DOCK; in updateLocked()
552 category = Intent.CATEGORY_DESK_DOCK; in updateLocked()
556 category = Intent.CATEGORY_HOME; in updateLocked()
562 + mDockState +", category=" + category); in updateLocked()
565 sendConfigurationAndStartDreamOrDockAppLocked(category); in updateLocked()
589 String category = null; in updateAfterBroadcastLocked() local
595 category = Intent.CATEGORY_CAR_DOCK; in updateAfterBroadcastLocked()
[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()

12345678