Home
last modified time | relevance | path

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

1234

/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.java78 String[] groups = Arrays.copyOfRange(args, 1, args.length); in onShellCommand() local
79 int result = mShellProtoLog.startLoggingToLogcat(groups, logger); in onShellCommand()
81 pw.println("Starting logging on groups: " + Arrays.toString(groups)); in onShellCommand()
87 String[] groups = Arrays.copyOfRange(args, 1, args.length); in onShellCommand() local
88 int result = mShellProtoLog.stopLoggingToLogcat(groups, logger); in onShellCommand()
90 pw.println("Stopping logging on groups: " + Arrays.toString(groups)); in onShellCommand()
96 String[] groups = Arrays.copyOfRange(args, 1, args.length); in onShellCommand() local
97 return mShellProtoLog.startLoggingToLogcat(groups, logger) == 0; in onShellCommand()
100 String[] groups = Arrays.copyOfRange(args, 1, args.length); in onShellCommand() local
101 return mShellProtoLog.stopLoggingToLogcat(groups, logger) == 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/core/java/android/content/
DUriRelativeFilterGroup.java90 public static boolean matchGroupsToUri(List<UriRelativeFilterGroup> groups, Uri uri) { in matchGroupsToUri() argument
91 for (int i = 0; i < groups.size(); i++) { in matchGroupsToUri()
92 if (groups.get(i).matchData(uri)) { in matchGroupsToUri()
93 return groups.get(i).getAction() == UriRelativeFilterGroup.ACTION_ALLOW; in matchGroupsToUri()
102 List<UriRelativeFilterGroup> groups = new ArrayList<>(); in parcelsToGroups() local
105 groups.add(new UriRelativeFilterGroup(parcels.get(i))); in parcelsToGroups()
108 return groups; in parcelsToGroups()
113 @Nullable List<UriRelativeFilterGroup> groups) { in groupsToParcels()
115 if (groups != null) { in groupsToParcels()
116 for (int i = 0; i < groups.size(); i++) { in groupsToParcels()
[all …]
/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/packages/SystemUI/src/com/android/systemui/statusbar/notification/data/repository/
DActiveNotificationListRepository.kt55 val groups: Map<String, ActiveNotificationGroupModel> = emptyMap(), constant in com.android.systemui.statusbar.notification.data.repository.ActiveNotificationsStore
73 is Key.Group -> groups[key.key] in get()
87 private val groups = mutableMapOf<String, ActiveNotificationGroupModel>() constant in com.android.systemui.statusbar.notification.data.repository.ActiveNotificationsStore.Builder
92 fun build() = ActiveNotificationsStore(groups, individuals, renderList, rankingsMap) in build()
108 groups[group.key] = group in addNotifGroup()
/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/core/java/com/android/internal/widget/
DMessagingData.java40 List<MessagingMessage> newMessagingMessages, List<List<MessagingMessage>> groups, in MessagingData() argument
44 groups, in MessagingData()
52 List<List<MessagingMessage>> groups, in MessagingData() argument
60 mGroups = groups; in MessagingData()
DPeopleHelper.java192 public Map<CharSequence, String> mapUniqueNamesToPrefix(List<MessagingGroup> groups) { in mapUniqueNamesToPrefix() argument
197 for (int i = 0; i < groups.size(); i++) { in mapUniqueNamesToPrefix()
198 MessagingGroup group = groups.get(i); in mapUniqueNamesToPrefix()
254 List<List<Notification.MessagingStyle.Message>> groups) { in mapUniqueNamesToPrefixWithGroupList() argument
259 for (int i = 0; i < groups.size(); i++) { in mapUniqueNamesToPrefixWithGroupList()
260 List<Notification.MessagingStyle.Message> group = groups.get(i); in mapUniqueNamesToPrefixWithGroupList()
296 public void maybeHideFirstSenderName(@NonNull List<MessagingGroup> groups, in maybeHideFirstSenderName() argument
298 for (int i = groups.size() - 1; i >= 0; i--) { in maybeHideFirstSenderName()
299 MessagingGroup messagingGroup = groups.get(i); in maybeHideFirstSenderName()
DCompactMessagingLayout.java139 final List<List<MessagingStyle.Message>> groups = groupMessages(newMessages, in setGroupFacePileAsync() local
142 mPeopleHelper.mapUniqueNamesToPrefixWithGroupList(groups); in setGroupFacePileAsync()
149 for (int i = groups.size() - 1; i >= 0; i--) { in setGroupFacePileAsync()
150 final MessagingStyle.Message message = groups.get(i).get(0); in setGroupFacePileAsync()
233 final ArrayList<List<MessagingStyle.Message>> groups = new ArrayList<>(); in groupMessages() local
245 groups.add(currentGroup); in groupMessages()
250 return groups; in groupMessages()
DMessagingLayout.java193 List<List<MessagingMessage>> groups = new ArrayList<>(); in parseMessagingData() local
197 findGroups(historicMessagingMessages, newMessagingMessages, groups, senders); in parseMessagingData()
200 historicMessagingMessages, newMessagingMessages, groups, senders); in parseMessagingData()
460 private void createGroupViews(List<List<MessagingMessage>> groups, in createGroupViews() argument
463 for (int groupIndex = 0; groupIndex < groups.size(); groupIndex++) { in createGroupViews()
464 List<MessagingMessage> group = groups.get(groupIndex); in createGroupViews()
496 newGroup.setSending(groupIndex == (groups.size() - 1) && showSpinner); in createGroupViews()
508 List<MessagingMessage> messages, List<List<MessagingMessage>> groups, in findGroups() argument
528 groups.add(currentGroup); in findGroups()
/frameworks/base/core/java/com/android/internal/protolog/
DLegacyProtoLogImpl.java275 String... groups) { in setLogging() argument
276 for (int i = 0; i < groups.length; i++) { in setLogging()
277 String group = groups[i]; in setLogging()
322 String[] groups = args.toArray(new String[args.size()]); in onShellCommand() local
334 return setLogging(false, true, logger, groups); in onShellCommand()
337 return setLogging(true, true, logger, groups); in onShellCommand()
339 return setLogging(false, false, logger, groups); in onShellCommand()
341 return setLogging(true, false, logger, groups); in onShellCommand()
392 public int startLoggingToLogcat(String[] groups, ILogger logger) { in startLoggingToLogcat() argument
394 return setLogging(true /* setTextLogging */, true, logger, groups); in startLoggingToLogcat()
[all …]
DPerfettoProtoLogImpl.java508 public int startLoggingToLogcat(String[] groups, ILogger logger) { in startLoggingToLogcat() argument
510 return setTextLogging(true, logger, groups); in startLoggingToLogcat()
519 public int stopLoggingToLogcat(String[] groups, ILogger logger) { in stopLoggingToLogcat() argument
521 return setTextLogging(false, logger, groups); in stopLoggingToLogcat()
551 public int startLoggingStackTrace(String[] groups, ILogger logger) { in startLoggingStackTrace() argument
563 private int setTextLogging(boolean value, ILogger logger, String... groups) { in setTextLogging() argument
564 for (int i = 0; i < groups.length; i++) { in setTextLogging()
565 String group = groups[i]; in setTextLogging()
594 String[] groups = args.toArray(new String[0]); in onShellCommand() local
603 return setTextLogging(true, logger, groups); in onShellCommand()
[all …]
/frameworks/base/tools/protologtool/src/com/android/protolog/tool/
DProtoLogTool.kt98 val groups = injector.readLogGroups( in <lambda>() constant
106 groups) in <lambda>()
115 groups, command.protoLogGroupsClassNameArg).toByteArray()) in <lambda>()
159 groups: Map<String, LogGroup>, in <lambda>()
180 injectCacheClass(classDeclaration, groups, protoLogGroupsClassName) in <lambda>()
183 viewerConfigFilePath, legacyViewerConfigFilePath, legacyOutputFilePath, groups, in <lambda>()
194 groups: Map<String, LogGroup>, in <lambda>()
225 for (group in groups) { in <lambda>()
267 groups: Map<String, LogGroup>, in <lambda>()
274 for (group in groups) { in <lambda>()
[all …]
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>()
DViewerConfigProtoBuilder.kt34 val groups = statements.map { it.key.logGroup }.toSet() in <lambda>() constant
36 groups.forEach { in <lambda>()
DViewerConfigJsonBuilder.kt25 val groups = statements.map { it.key.logGroup }.toSet() in <lambda>() constant
50 groups.toSortedSet { 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/core/java/com/android/internal/protolog/common/
DIProtoLog.java47 int startLoggingToLogcat(String[] groups, ILogger logger); in startLoggingToLogcat() argument
54 int stopLoggingToLogcat(String[] groups, ILogger logger); in stopLoggingToLogcat() argument
/frameworks/base/tools/protologtool/tests/com/android/protolog/tool/
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/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/
DSingleLineViewInflater.kt219 val groups = mutableListOf<MutableList<MessagingStyle.Message>>() in groupMessages() constant
229 groups.add(currentGroup) in groupMessages()
234 return groups in groupMessages()
250 val groups = groupMessages(messages, historicMessages) in loadConversationAvatar() constant
251 val uniqueNames = peopleHelper.mapUniqueNamesToPrefixWithGroupList(groups) in loadConversationAvatar()
296 for (i in groups.lastIndex downTo 0) { in loadConversationAvatar()
297 val message = groups[i][0] in loadConversationAvatar()
/frameworks/base/libs/WindowManager/Shell/
DAndroid.bp27 name: "wm_shell_protolog-groups",
86 ":wm_shell_protolog-groups",
93 "--loggroups-jar $(location :wm_shell_protolog-groups) " +
105 ":wm_shell_protolog-groups",
112 "--loggroups-jar $(location :wm_shell_protolog-groups) " +
122 ":wm_shell_protolog-groups",
129 "--loggroups-jar $(location :wm_shell_protolog-groups) " +
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/
DKeyboardShortcutsTest.java194 private void emitImeShortcuts(@Nullable List<KeyboardShortcutGroup> groups, int deviceId) { in emitImeShortcuts() argument
198 callbackCaptor.getValue().onKeyboardShortcutsReceived(groups); in emitImeShortcuts()
201 private void emitAppShortcuts(@Nullable List<KeyboardShortcutGroup> groups, int deviceId) { in emitAppShortcuts() argument
205 callbackCaptor.getValue().onKeyboardShortcutsReceived(groups); in emitAppShortcuts()

1234