Home
last modified time | relevance | path

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

12345

/packages/modules/Bluetooth/system/bta/test/common/
Dmock_device_groups.cc22 void MockDeviceGroups::SetMockInstanceForTesting(MockDeviceGroups* groups) { in SetMockInstanceForTesting() argument
23 mock_groups = groups; in SetMockInstanceForTesting()
26 bluetooth::groups::DeviceGroups* bluetooth::groups::DeviceGroups::Get() { in Get()
30 void bluetooth::groups::DeviceGroups::Initialize( in Initialize()
31 bluetooth::groups::DeviceGroupsCallbacks* callbacks) { in Initialize()
36 void bluetooth::groups::DeviceGroups::DebugDump(int) {} in DebugDump()
38 void bluetooth::groups::DeviceGroups::CleanUp( in CleanUp()
39 bluetooth::groups::DeviceGroupsCallbacks* callbacks) { in CleanUp()
Dmock_device_groups.h23 class MockDeviceGroups : public bluetooth::groups::DeviceGroups {
41 (bluetooth::groups::DeviceGroupsCallbacks * callbacks));
43 (bluetooth::groups::DeviceGroupsCallbacks * callbacks));
/packages/modules/Wifi/framework/java/android/net/wifi/p2p/
DWifiP2pGroupList.java141 final Collection<WifiP2pGroup> groups = mGroups.snapshot().values(); in getNetworkId()
142 for (WifiP2pGroup grp : groups) { in getNetworkId()
170 final Collection<WifiP2pGroup> groups = mGroups.snapshot().values(); in getNetworkId() local
171 for (WifiP2pGroup grp : groups) { in getNetworkId()
216 final Collection<WifiP2pGroup> groups = mGroups.snapshot().values(); in contains() local
217 for (WifiP2pGroup grp: groups) { in contains()
229 final Collection<WifiP2pGroup> groups = mGroups.snapshot().values(); in toString() local
230 for (WifiP2pGroup grp: groups) { in toString()
245 final Collection<WifiP2pGroup> groups = mGroups.snapshot().values(); in writeToParcel() local
246 dest.writeInt(groups.size()); in writeToParcel()
[all …]
/packages/modules/Bluetooth/floss/hcidoc/src/
Dengine.rs78 groups: BTreeMap<String, RuleGroup>, field
83 RuleEngine { groups: BTreeMap::new() } in new()
87 self.groups.insert(name, group); in add_rule_group()
92 for group in self.groups.values_mut() { in process()
98 for group in self.groups.values() { in report()
104 for group in self.groups.values() { in report_signals()
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/model/legacy/
DPermissionGroups.java88 List<PermissionGroup> groups) { in onLoadFinished() argument
89 if (mGroups.equals(groups)) { in onLoadFinished()
93 mGroups.addAll(groups); in onLoadFinished()
177 List<PermissionGroup> groups = new ArrayList<>(); in getPermissionGroups() local
231 groups.add(group); in getPermissionGroups()
291 groups.add(group); in getPermissionGroups()
296 int numGroups = groups.size(); in getPermissionGroups()
298 PermissionGroup group = groups.get(i); in getPermissionGroups()
301 groups.remove(i); in getPermissionGroups()
306 Collections.sort(groups); in getPermissionGroups()
[all …]
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/utils/legacy/
DLegacySafetyNetLogger.java50 public static void logPermissionsToggled(ArraySet<AppPermissionGroup> groups) { in logPermissionsToggled() argument
53 int numGroups = groups.size(); in logPermissionsToggled()
55 AppPermissionGroup group = groups.valueAt(i); in logPermissionsToggled()
79 List<AppPermissionGroup> groups) { in buildChangedPermissionForPackageMessage() argument
84 int groupCount = groups.size(); in buildChangedPermissionForPackageMessage()
86 AppPermissionGroup group = groups.get(groupNum); in buildChangedPermissionForPackageMessage()
/packages/modules/Bluetooth/system/bta/include/
Dbta_groups.h26 namespace groups {
75 bluetooth::Uuid uuid = bluetooth::groups::kGenericContextUuid,
76 int group_id = bluetooth::groups::kGroupUnknown) = 0;
79 bluetooth::Uuid uuid = bluetooth::groups::kGenericContextUuid) const = 0;
82 int group_id = bluetooth::groups::kGroupUnknown) = 0;
/packages/providers/ContactsProvider/tests/assets/upgradeTest/
Dcontacts2_1108.sql38 CREATE TABLE groups (_id INTEGER PRIMARY KEY AUTOINCREMENT,package_id INTEGER REFERENCES package(_i… table
133 CREATE INDEX groups_source_id_account_id_index ON groups (sourceid, account_id);
139groups.sourceid AS group_sourceid FROM data JOIN mimetypes ON (data.mimetype_id=mimetypes._id) JOI…
142groups.sourceid AS group_sourceid FROM raw_contacts JOIN accounts ON (raw_contacts.account_id=acco…
143groups.sourceid AS group_sourceid FROM raw_contacts JOIN accounts ON (raw_contacts.account_id=acco…
148groups._id AS _id,groups.account_id AS account_id,accounts.account_name AS account_name,accounts.a…
153 CREATE TRIGGER groups_updated1 AFTER UPDATE ON groups BEGIN UPDATE groups SET version=OLD…
154groups BEGIN DELETE FROM default_directory; INSERT OR IGNORE INTO default_directory SELECT …
160groups._id AS _id, accounts.account_name, accounts.account_type, title AS name, notes AS notes , s…
161groups.sourceid AS group_sync_id, accounts.account_name AS group_sync_account, accounts.account_ty…
/packages/apps/AvatarPicker/src/tests/unit/java/com/android/avatarpicker/tests/unit/viewmodel/
DDetailsViewModelTest.kt75 Truth.assertThat(model.groups.value.size).isEqualTo(1) in testNoIllustrations()
76 Truth.assertThat(model.groups.value[0].size).isEqualTo(10) in testNoIllustrations()
100 Truth.assertThat(model.groups.value.size).isEqualTo(2) in <lambda>()
101 Truth.assertThat(model.groups.value[0].size).isEqualTo(2) in <lambda>()
102 Truth.assertThat(model.groups.value[1].size).isEqualTo(3) in <lambda>()
127 handler.onSelect(model.groups.value[1][0]) in <lambda>()
/packages/apps/Contacts/src/com/android/contacts/quickcontact/
DInvisibleContactUtil.java43 final List<GroupMetaData> groups = contactData.getGroupMetaData(); in isInvisibleAndAddable()
46 if (groups == null) return false; in isInvisibleAndAddable()
49 final long defaultGroupId = getDefaultGroupId(groups); in isInvisibleAndAddable()
109 private static long getDefaultGroupId(List<GroupMetaData> groups) { in getDefaultGroupId() argument
111 for (GroupMetaData group : groups) { in getDefaultGroupId()
/packages/modules/Permission/PermissionController/tests/inprocess/src/com/android/permissioncontroller/permission/
DGetPermissionGroupInfoTest.kt37 val groups = PermissionMapping.getPlatformPermissionGroups() in assertAllPlatformPermGroupPermListsMatch() constant
39 for (group in groups) { in assertAllPlatformPermGroupPermListsMatch()
53 val groups = PermissionMapping.getPlatformPermissionGroups() in assertAllPlatformPermGroupsMatch() constant
54 for (group in groups) { in assertAllPlatformPermGroupsMatch()
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/utils/
DSafetyNetLogger.java51 List<LightAppPermGroup> groups) { in logPermissionsRequested() argument
53 buildChangedPermissionForPackageMessageNew(packageName, groups)); in logPermissionsRequested()
104 List<LightAppPermGroup> groups) { in buildChangedPermissionForPackageMessageNew() argument
108 for (LightAppPermGroup group: groups) { in buildChangedPermissionForPackageMessageNew()
/packages/apps/DocumentsUI/src/com/android/documentsui/base/
DMimeTypes.java124 final String[] groups = mimeType.split("/"); in splitMimeType() local
126 if (groups.length != 2 || groups[0].isEmpty() || groups[1].isEmpty()) { in splitMimeType()
130 return groups; in splitMimeType()
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/ui/handheld/v31/
DReviewOngoingUsageFragment.java126 private CharSequence getListOfPermissionLabels(ArrayMap<String, CharSequence> groups) { in getListOfPermissionLabels() argument
127 int numGroups = groups.size(); in getListOfPermissionLabels()
130 return groups.valueAt(0); in getListOfPermissionLabels()
131 } else if (numGroups == 2 && groups.containsKey(MICROPHONE) && groups.containsKey(CAMERA)) { in getListOfPermissionLabels()
135 ArrayList<CharSequence> sortedGroups = new ArrayList<>(groups.values()); in getListOfPermissionLabels()
222 Set<String> groups = usage.getValue(); in updateDialogView() local
237 for (String group : groups) { in updateDialogView()
/packages/providers/ContactsProvider/tests/assets/test1/
Dlegacy_contacts.sql40 …RY KEY,person INTEGER REFERENCES people(_id),group_id INTEGER REFERENCES groups(_id),group_sync_ac…
47 CREATE TABLE groups (_id INTEGER PRIMARY KEY AUTOINCREMENT,_sync_account TEXT,_sync_id TEXT,_sync_t… table
48 INSERT INTO groups VALUES(1,'android.contacts.test.eclair@gmail.com',6,NULL,NULL,NULL,0,1,'System G…
49 INSERT INTO groups VALUES(2,'android.contacts.test.eclair@gmail.com','20a186238cf27aaa',12491729927…
50 INSERT INTO groups VALUES(3,'android.contacts.test.eclair@gmail.com','2fcbf74c8be345dc',12491766935…
111 CREATE INDEX groupsSyncDirtyIndex ON groups (_sync_dirty);
134 CREATE TRIGGER groups_cleanup DELETE ON groups BEGIN UPDATE groupmembership SET group_id = null WHE…
135 CREATE TRIGGER groups_to_deleted DELETE ON groups WHEN old._sync_id is not null BEGIN INSERT INTO _…
/packages/modules/Bluetooth/system/bta/groups/
Dgroups_test.cc28 namespace groups { namespace
39 using bluetooth::groups::DeviceGroups;
40 using bluetooth::groups::DeviceGroupsCallbacks;
240 bluetooth::groups::kGroupUnknown); in TEST_F()
243 ASSERT_NE(bluetooth::groups::kGroupUnknown, gid1); in TEST_F()
244 ASSERT_NE(bluetooth::groups::kGroupUnknown, gid2); in TEST_F()
276 int gid1 = bluetooth::groups::kGroupUnknown; in TEST_F()
277 int gid2 = bluetooth::groups::kGroupUnknown; in TEST_F()
288 ASSERT_NE(bluetooth::groups::kGroupUnknown, gid1); in TEST_F()
/packages/services/Car/car-lib/src/android/car/media/
DCarAudioZoneConfigInfo.java83 public CarAudioZoneConfigInfo(String name, List<CarVolumeGroupInfo> groups, int zoneId, in CarAudioZoneConfigInfo() argument
86 mConfigVolumeGroups = Objects.requireNonNull(groups, in CarAudioZoneConfigInfo()
211 Set<CarVolumeGroupInfo> groups = new ArraySet<>(carVolumeGroupInfos); in hasSameVolumeGroup() local
213 if (groups.contains(mConfigVolumeGroups.get(c))) { in hasSameVolumeGroup()
214 groups.remove(mConfigVolumeGroups.get(c)); in hasSameVolumeGroup()
219 return groups.isEmpty(); in hasSameVolumeGroup()
/packages/modules/Permission/PermissionController/tests/permissionui/src/com/android/permissioncontroller/permissionui/
DPermissionGroupPreferenceUtils.kt44 val groups = in getUsageCountsFromUi() constant
48 UsageCount(groups[1].toInt(), groups[2].toInt()) in getUsageCountsFromUi()
/packages/modules/Bluetooth/system/bta/le_audio/
Dle_audio_client_test.cc495 for (const auto& [addr, id] : groups) { in InjectGroupDeviceAdded()
504 bluetooth::groups::DeviceGroupsCallbacks* group_callbacks, in InjectGroupDeviceAdded()
841 if (groups.find(addr) != groups.end()) return groups.at(addr); in SetUpMockGroups()
842 return bluetooth::groups::kGroupUnknown; in SetUpMockGroups()
848 if (groups.find(addr) != groups.end()) { in SetUpMockGroups()
849 group_id = groups[addr]; in SetUpMockGroups()
850 groups.erase(addr); in SetUpMockGroups()
858 bluetooth::groups::DeviceGroupsCallbacks* in SetUpMockGroups()
873 int group_id = bluetooth::groups::kGroupUnknown) -> int { in SetUpMockGroups()
874 if (group_id == bluetooth::groups::kGroupUnknown) { in SetUpMockGroups()
[all …]
/packages/providers/ContactsProvider/tests/assets/testUnsynced/
Dlegacy_contacts.sql24 …RY KEY,person INTEGER REFERENCES people(_id),group_id INTEGER REFERENCES groups(_id),group_sync_ac…
30 CREATE TABLE groups (_id INTEGER PRIMARY KEY AUTOINCREMENT,_sync_account TEXT,_sync_id TEXT,_sync_t… table
31 INSERT INTO groups VALUES(1,NULL,NULL,NULL,NULL,NULL,0,NULL,'Contacts',NULL,0,'Contacts');
79 CREATE INDEX groupsSyncDirtyIndex ON groups (_sync_dirty);
102 CREATE TRIGGER groups_cleanup DELETE ON groups BEGIN UPDATE groupmembership SET group_id = null WHE…
103 CREATE TRIGGER groups_to_deleted DELETE ON groups WHEN old._sync_id is not null BEGIN INSERT INTO _…
/packages/providers/ContactsProvider/tests/assets/testSynced/
Dlegacy_contacts.sql28 …RY KEY,person INTEGER REFERENCES people(_id),group_id INTEGER REFERENCES groups(_id),group_sync_ac…
40 CREATE TABLE groups (_id INTEGER PRIMARY KEY AUTOINCREMENT,_sync_account TEXT,_sync_id TEXT,_sync_t… table
41 INSERT INTO groups VALUES(1,'lemmytest@gmail.com',6,NULL,NULL,NULL,0,1,'System Group: My Contacts',…
135 CREATE INDEX groupsSyncDirtyIndex ON groups (_sync_dirty);
158 CREATE TRIGGER groups_cleanup DELETE ON groups BEGIN UPDATE groupmembership SET group_id = null WHE…
159 CREATE TRIGGER groups_to_deleted DELETE ON groups WHEN old._sync_id is not null BEGIN INSERT INTO _…
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/ui/model/
DGrantPermissionsViewModel.kt262 val groups = packagePermissionsLiveData.value in <lambda>() constant
264 if (groups.isNullOrEmpty() || pI == null) { in <lambda>()
291 groups.values.firstOrNull { affectedPerm in it } ?: emptyList() in <lambda>()
298 groups.toMutableMap().apply { in <lambda>()
304 private fun setAppPermGroupsLiveDatas(groups: Map<String, List<String>>) { in <lambda>()
306 groups.filter { (_, perms) -> in <lambda>()
311 Log.e(LOG_TAG, "None of " + "$unfilteredAffectedPermissions in $groups") in <lambda>()
469 private fun addRequiredGroupStates(groups: List<LightAppPermGroup>) { in <lambda>()
472 val group = getGroupWithPerm(perm, groups) in <lambda>()
477 val group = getGroupWithPerm(perm, groups)!! in <lambda>()
[all …]
/packages/apps/Launcher3/src/com/android/launcher3/responsive/
DResponsiveSpecsParser.kt43 val groups = mutableListOf<ResponsiveSpecGroup<T>>() in parseXML() constant
60 groups += ResponsiveSpecGroup.create(groupAttrs, specs) in parseXML()
91 return groups in parseXML()
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/data/
DHibernationSettingStateLiveData.kt84 val groups = packagePermsLiveData.value?.keys?.filter { it != NON_RUNTIME_NORMAL_PERMS } in <lambda>() constant
86 if (packageInfo == null || groups == null) { in <lambda>()
91 setSourcesToDifference(groups, permStateLiveDatas, getLiveData) in <lambda>()
/packages/modules/Bluetooth/system/bta/csis/
Dcsis_client.cc72 using bluetooth::groups::DeviceGroups;
73 using bluetooth::groups::DeviceGroupsCallbacks;
303 if (device == nullptr) return bluetooth::groups::kGroupUnknown; in GetGroupId()
307 if (csis_group == nullptr) return bluetooth::groups::kGroupUnknown; in GetGroupId()
795 if (group_id != bluetooth::groups::kGroupUnknown) { in RemoveCsisDevice()
877 int group_id_to_discover = bluetooth::groups::kGroupUnknown; in NotifyCsisDeviceValidAndStoreIfNeeded()
901 if (group_id_to_discover == bluetooth::groups::kGroupUnknown) { in NotifyCsisDeviceValidAndStoreIfNeeded()
910 if (group_id_to_discover != bluetooth::groups::kGroupUnknown) { in NotifyCsisDeviceValidAndStoreIfNeeded()
1213 if (discovering_group_ == bluetooth::groups::kGroupUnknown) { in OnCsisObserveCompleted()
1219 discovering_group_ = bluetooth::groups::kGroupUnknown; in OnCsisObserveCompleted()
[all …]

12345