Home
last modified time | relevance | path

Searched refs:groups (Results 1 – 25 of 60) sorted by relevance

123

/frameworks/av/services/audiopolicy/engine/config/tests/
Dengineconfig_tests.cpp28 engineConfig::VolumeGroups groups; in TEST() local
29 ASSERT_TRUE(groups.empty()); in TEST()
32 groups); in TEST()
34 EXPECT_TRUE(groups.empty()); in TEST()
37 groups); in TEST()
39 EXPECT_FALSE(groups.empty()); in TEST()
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/
DProtoLogController.java62 String[] groups = Arrays.copyOfRange(args, 1, args.length); in onShellCommand() local
63 int result = mShellProtoLog.startTextLogging(groups, pw); in onShellCommand()
65 pw.println("Starting logging on groups: " + Arrays.toString(groups)); in onShellCommand()
71 String[] groups = Arrays.copyOfRange(args, 1, args.length); in onShellCommand() local
72 int result = mShellProtoLog.stopTextLogging(groups, pw); in onShellCommand()
74 pw.println("Stopping logging on groups: " + Arrays.toString(groups)); in onShellCommand()
80 String[] groups = Arrays.copyOfRange(args, 1, args.length); in onShellCommand() local
81 return mShellProtoLog.startTextLogging(groups, pw) == 0; in onShellCommand()
84 String[] groups = Arrays.copyOfRange(args, 1, args.length); in onShellCommand() local
85 return mShellProtoLog.stopTextLogging(groups, pw) == 0; in onShellCommand()
/frameworks/base/tools/split-select/
DGrouper.cpp32 Vector<SortedVector<SplitDescription> > groups; in groupByMutualExclusivity() local
50 groups.add(); in groupByMutualExclusivity()
51 groups.editTop().add(split); in groupByMutualExclusivity()
57 groups.add(densityGroups[i]); in groupByMutualExclusivity()
62 groups.add(abiGroups[i]); in groupByMutualExclusivity()
65 return groups; in groupByMutualExclusivity()
/frameworks/base/tools/aapt2/configuration/
DConfigurationParser_test.cpp67 <abi-groups>
76 </abi-groups>
77 <screen-density-groups>
91 </screen-density-groups>
92 <locale-groups>
107 </locale-groups>
119 <gl-texture-groups>
DConfigurationParser.internal.h88 ComparisonChain& Add(const Group<T>& groups, const std::optional<std::string>& lhs, in Add() argument
90 return Add(GetGroupOrder(groups, lhs), GetGroupOrder(groups, rhs)); in Add()
112 inline size_t GetGroupOrder(const Entry<T>& groups, const std::optional<std::string>& label) { in GetGroupOrder() argument
116 return groups.at(label.value()).order; in GetGroupOrder()
/frameworks/base/core/jni/
Dandroid_media_AudioProductStrategies.cpp89 std::map<int /**attributesGroupIndex*/, std::vector<VolumeGroupAttributes> > groups; in convertAudioProductStrategiesFromNative() local
93 const auto &iter = std::find_if(begin(groups), end(groups), in convertAudioProductStrategiesFromNative()
99 if (iter != end(groups)) { in convertAudioProductStrategiesFromNative()
100 groups[iter->first].push_back(attr); in convertAudioProductStrategiesFromNative()
103 groups[attrGroupIndex++].push_back(attr); in convertAudioProductStrategiesFromNative()
106 numAttributesGroups = groups.size(); in convertAudioProductStrategiesFromNative()
110 for (const auto &iter : groups) { in convertAudioProductStrategiesFromNative()
Dandroid_media_AudioVolumeGroups.cpp134 AudioVolumeGroupVector groups; in android_media_AudioSystem_listAudioVolumeGroups() local
138 status = AudioSystem::listAudioVolumeGroups(groups); in android_media_AudioSystem_listAudioVolumeGroups()
143 for (const auto &group : groups) { in android_media_AudioSystem_listAudioVolumeGroups()
/frameworks/base/tools/protologtool/src/com/android/protolog/tool/
DProtoLogTool.kt46 val groups = injector.readLogGroups( in <lambda>() constant
52 command.protoLogGroupsClassNameArg, groups) in <lambda>()
94 outJar.write(generateLogGroupCache(cachePackage, cacheName, groups, in <lambda>()
104 groups: Map<String, LogGroup>, in <lambda>()
108 val fields = groups.values.map { in <lambda>()
112 val updates = groups.values.map { in <lambda>()
149 val groups = injector.readLogGroups( in <lambda>() constant
153 command.protoLogGroupsClassNameArg, groups) in <lambda>()
DViewerConfigParser.kt94 var groups: Map<String, GroupEntry>? = null in <lambda>() variable
101 "groups" -> groups = parseGroups(jsonReader) in <lambda>()
108 if (messages == null || groups == null || version == null) { in <lambda>()
117 msg.value.messageString, msg.value.level, groups[msg.value.groupName]?.tag in <lambda>()
DViewerConfigBuilder.kt40 groups.add(group) in <lambda>()
47 private val groups: MutableSet<LogGroup> = mutableSetOf() in <lambda>() constant in com.android.protolog.tool.ViewerConfigBuilder
103 groups.toSortedSet(Comparator { o1, o2 -> o1.name.compareTo(o2.name) }).forEach { group -> in <lambda>()
/frameworks/native/cmds/dumpstate/
DDumpstateInternal.cpp73 std::vector<gid_t> groups(group_names.size(), 0); in DropRootUser() local
76 groups[i] = grp != nullptr ? grp->gr_gid : 0; in DropRootUser()
77 if (groups[i] == 0) { in DropRootUser()
84 if (setgroups(groups.size(), groups.data()) != 0) { in DropRootUser()
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/protolog/
DShellProtoLogImpl.java106 public int startTextLogging(String[] groups, PrintWriter pw) { in startTextLogging() argument
108 return setLogging(true /* setTextLogging */, true, pw, groups); in startTextLogging()
111 public int stopTextLogging(String[] groups, PrintWriter pw) { in stopTextLogging() argument
112 return setLogging(true /* setTextLogging */, false, pw, groups); in stopTextLogging()
/frameworks/base/tools/protologtool/tests/com/android/protolog/tool/
DProtoLogToolTest.kt26 val groups = mapOf( in generateLogGroupCache() constant
31 groups, "org.example.ProtoLogImpl", "org.example.ProtoLogGroups") in generateLogGroupCache()
DViewerConfigParserTest.kt197 val groups = parser.parseGroups(getJSONReader(json)) in parseGroups() constant
198 assertEquals(2, groups.size) in parseGroups()
201 assertEquals(grp1, groups["GENERIC_WM"]) in parseGroups()
202 assertEquals(grp2, groups["ERROR_WM"]) in parseGroups()
/frameworks/base/core/java/com/android/internal/widget/
DPeopleHelper.java190 public Map<CharSequence, String> mapUniqueNamesToPrefix(List<MessagingGroup> groups) { in mapUniqueNamesToPrefix() argument
195 for (int i = 0; i < groups.size(); i++) { in mapUniqueNamesToPrefix()
196 MessagingGroup group = groups.get(i); in mapUniqueNamesToPrefix()
228 public void maybeHideFirstSenderName(@NonNull List<MessagingGroup> groups, in maybeHideFirstSenderName() argument
230 for (int i = groups.size() - 1; i >= 0; i--) { in maybeHideFirstSenderName()
231 MessagingGroup messagingGroup = groups.get(i); in maybeHideFirstSenderName()
DMessagingLayout.java426 List<List<MessagingMessage>> groups = new ArrayList<>(); in addMessagesToGroups() local
430 findGroups(historicMessages, messages, groups, senders); in addMessagesToGroups()
433 createGroupViews(groups, senders, showSpinner); in addMessagesToGroups()
436 private void createGroupViews(List<List<MessagingMessage>> groups, in createGroupViews() argument
439 for (int groupIndex = 0; groupIndex < groups.size(); groupIndex++) { in createGroupViews()
440 List<MessagingMessage> group = groups.get(groupIndex); in createGroupViews()
472 newGroup.setSending(groupIndex == (groups.size() - 1) && showSpinner); in createGroupViews()
484 List<MessagingMessage> messages, List<List<MessagingMessage>> groups, in findGroups() argument
504 groups.add(currentGroup); in findGroups()
/frameworks/base/core/java/com/android/internal/protolog/
DBaseProtoLogImpl.java288 String... groups) { in setLogging() argument
289 for (int i = 0; i < groups.length; i++) { in setLogging()
290 String group = groups[i]; in setLogging()
333 String[] groups = args.toArray(new String[args.size()]); in onShellCommand() local
345 return setLogging(false, true, pw, groups); in onShellCommand()
348 return setLogging(true, true, pw, groups); in onShellCommand()
350 return setLogging(false, false, pw, groups); in onShellCommand()
352 return setLogging(true, false, pw, groups); in onShellCommand()
/frameworks/base/libs/WindowManager/Shell/
DAndroid.bp26 name: "wm_shell_protolog-groups",
83 ":wm_shell_protolog-groups",
92 "--loggroups-jar $(location :wm_shell_protolog-groups) " +
101 ":wm_shell_protolog-groups",
108 "--loggroups-jar $(location :wm_shell_protolog-groups) " +
/frameworks/proto_logging/stats/express/catalog/
Dtex_test.cfg3 # - consists of 2 groups:
6 # - groups separated by dot '.'
/frameworks/base/packages/EasterEgg/src/com/android/egg/landroid/
DPathTools.kt50 val cmd = it.groups[1]!!.value in Path()
52 it.groups[2]?.value?.split(Regex("\\s+"))?.map { v -> v.toFloat() } ?: emptyList() in Path()
/frameworks/base/services/core/java/com/android/server/notification/
DPreferencesHelper.java335 if (r.groups.size() >= NOTIFICATION_CHANNEL_GROUP_COUNT_LIMIT) { in restorePackage()
348 r.groups.put(id, group); in restorePackage()
639 for (NotificationChannelGroup group : r.groups.values()) { in writeXml()
827 NotificationChannelGroup group = r.groups.get(groupId); in isGroupBlocked()
862 if (r.groups.size() >= NOTIFICATION_CHANNEL_GROUP_COUNT_LIMIT) { in createNotificationChannelGroup()
868 final NotificationChannelGroup oldGroup = r.groups.get(group.getId()); in createNotificationChannelGroup()
892 r.groups.put(group.getId(), group); in createNotificationChannelGroup()
916 if (channel.getGroup() != null && !r.groups.containsKey(channel.getGroup())) { in createNotificationChannel()
1438 if (r == null || groupId == null || !r.groups.containsKey(groupId)) { in getNotificationChannelGroupWithChannels()
1441 NotificationChannelGroup group = r.groups.get(groupId).clone(); in getNotificationChannelGroupWithChannels()
[all …]
/frameworks/base/services/tests/wmtests/
DAndroid.bp25 ":protolog-groups",
34 "--loggroups-jar $(location :protolog-groups) " +
/frameworks/base/tools/protologtool/
DREADME.md14 --loggroups-class <protolog groups class name>
48 --loggroups-class <protolog groups class name>
66 "groups": {
111 After doing any changes to logging groups or statements you should build the project and follow ins…
/frameworks/base/services/usage/java/com/android/server/usage/
DAppTimeLimitController.java937 ArrayList<UsageGroup> groups = user.observedMap.get(name); in noteUsageStart() local
938 if (groups == null) return; in noteUsageStart()
940 final int size = groups.size(); in noteUsageStart()
942 UsageGroup group = groups.get(i); in noteUsageStart()
986 ArrayList<UsageGroup> groups = user.observedMap.get(name); in noteUsageStop() local
987 if (groups == null) return; in noteUsageStop()
989 final int size = groups.size(); in noteUsageStop()
991 UsageGroup group = groups.get(i); in noteUsageStop()
/frameworks/base/tests/JankBench/app/src/main/java/com/android/benchmark/registry/
DBenchmarkRegistry.java81 List<BenchmarkGroup> groups = parseBenchmarkGroup(inf.activityInfo); in loadBenchmarks() local
82 if (groups != null) { in loadBenchmarks()
83 mGroups.addAll(groups); in loadBenchmarks()

123