Searched defs:groups (Results 1 - 10 of 10) sorted by relevance

/packages/apps/Contacts/src/com/android/contacts/quickcontact/
H A DInvisibleContactUtil.java43 final List<GroupMetaData> groups = contactData.getGroupMetaData();
45 // For accounts without group support, groups is null
46 if (groups == null) return false;
49 final long defaultGroupId = getDefaultGroupId(groups);
101 /** return default group id or -1 if no group or several groups are marked as default */
102 private static long getDefaultGroupId(List<GroupMetaData> groups) { argument
104 for (GroupMetaData group : groups) {
106 // two default groups? return neither
/packages/apps/PackageInstaller/src/com/android/packageinstaller/permission/utils/
H A DSafetyNetLogger.java41 List<AppPermissionGroup> groups) {
44 packageInfo.packageName, groups));
47 public static void logPermissionsToggled(String packageName, List<AppPermissionGroup> groups) { argument
50 packageName, groups));
54 List<AppPermissionGroup> groups) {
59 final int groupCount = groups.size();
61 AppPermissionGroup group = groups.get(i);
40 logPermissionsRequested(PackageInfo packageInfo, List<AppPermissionGroup> groups) argument
53 buildChangedGroupForPackageMessage(String packageName, List<AppPermissionGroup> groups) argument
/packages/providers/ContactsProvider/tests/assets/test1/
H A Dlegacy_contacts.sql40 CREATE TABLE groupmembership (_id INTEGER PRIMARY KEY,person INTEGER REFERENCES people(_id),group_id INTEGER REFERENCES groups(_id),group_sync_account STRING,group_sync_id STRING);
47 CREATE TABLE groups (_id INTEGER PRIMARY KEY AUTOINCREMENT,_sync_account TEXT,_sync_id TEXT,_sync_time TEXT,_sync_version TEXT,_sync_local_id INTEGER,_sync_dirty INTEGER NOT NULL DEFAULT 0,_sync_mark INTEGER,name TEXT NOT NULL,notes TEXT,should_sync INTEGER NOT NULL DEFAULT 0,system_id TEXT,UNIQUE(name,system_id,_sync_account)); table
48 INSERT INTO groups VALUES(1,'android.contacts.test.eclair@gmail.com',6,NULL,NULL,NULL,0,1,'System Group: My Contacts','System Group: My Contacts',0,'Contacts');
49 INSERT INTO groups VALUES(2,'android.contacts.test.eclair@gmail.com','20a186238cf27aaa',1249172992736000,1249172992736000,NULL,0,1,'Eclair Contacts','Eclair Contacts',0,NULL);
50 INSERT INTO groups VALUES(3,'android.contacts.test.eclair@gmail.com','2fcbf74c8be345dc',1249176693566000,1249176693566000,NULL,0,1,'Starred in Android','Starred in Android',0,NULL);
97 INSERT INTO sqlite_sequence VALUES('groups',3);
111 CREATE INDEX groupsSyncDirtyIndex ON groups (_sync_dirty);
134 CREATE TRIGGER groups_cleanup DELETE ON groups BEGIN UPDATE groupmembership SET group_id = null WHERE group_id = old._id;END;
135 CREATE TRIGGER groups_to_deleted DELETE ON groups WHEN old._sync_id is not null BEGIN INSERT INTO _deleted_groups (_sync_id, _sync_account, _sync_version) VALUES (old._sync_id, old._sync_account, old._sync_version);END;
/packages/providers/ContactsProvider/tests/assets/testSynced/
H A Dlegacy_contacts.sql28 CREATE TABLE groupmembership (_id INTEGER PRIMARY KEY,person INTEGER REFERENCES people(_id),group_id INTEGER REFERENCES groups(_id),group_sync_account STRING,group_sync_id STRING);
40 CREATE TABLE groups (_id INTEGER PRIMARY KEY AUTOINCREMENT,_sync_account TEXT,_sync_id TEXT,_sync_time TEXT,_sync_version TEXT,_sync_local_id INTEGER,_sync_dirty INTEGER NOT NULL DEFAULT 0,_sync_mark INTEGER,name TEXT NOT NULL,notes TEXT,should_sync INTEGER NOT NULL DEFAULT 0,system_id TEXT,UNIQUE(name,system_id,_sync_account)); table
41 INSERT INTO groups VALUES(1,'lemmytest@gmail.com',6,NULL,NULL,NULL,0,1,'System Group: My Contacts','System Group: My Contacts',0,'Contacts');
123 INSERT INTO sqlite_sequence VALUES('groups',1);
135 CREATE INDEX groupsSyncDirtyIndex ON groups (_sync_dirty);
158 CREATE TRIGGER groups_cleanup DELETE ON groups BEGIN UPDATE groupmembership SET group_id = null WHERE group_id = old._id;END;
159 CREATE TRIGGER groups_to_deleted DELETE ON groups WHEN old._sync_id is not null BEGIN INSERT INTO _deleted_groups (_sync_id, _sync_account, _sync_version) VALUES (old._sync_id, old._sync_account, old._sync_version);END;
/packages/providers/ContactsProvider/tests/assets/testUnsynced/
H A Dlegacy_contacts.sql24 CREATE TABLE groupmembership (_id INTEGER PRIMARY KEY,person INTEGER REFERENCES people(_id),group_id INTEGER REFERENCES groups(_id),group_sync_account STRING,group_sync_id STRING);
30 CREATE TABLE groups (_id INTEGER PRIMARY KEY AUTOINCREMENT,_sync_account TEXT,_sync_id TEXT,_sync_time TEXT,_sync_version TEXT,_sync_local_id INTEGER,_sync_dirty INTEGER NOT NULL DEFAULT 0,_sync_mark INTEGER,name TEXT NOT NULL,notes TEXT,should_sync INTEGER NOT NULL DEFAULT 0,system_id TEXT,UNIQUE(name,system_id,_sync_account)); table
31 INSERT INTO groups VALUES(1,NULL,NULL,NULL,NULL,NULL,0,NULL,'Contacts',NULL,0,'Contacts');
67 INSERT INTO sqlite_sequence VALUES('groups',1);
79 CREATE INDEX groupsSyncDirtyIndex ON groups (_sync_dirty);
102 CREATE TRIGGER groups_cleanup DELETE ON groups BEGIN UPDATE groupmembership SET group_id = null WHERE group_id = old._id;END;
103 CREATE TRIGGER groups_to_deleted DELETE ON groups WHEN old._sync_id is not null BEGIN INSERT INTO _deleted_groups (_sync_id, _sync_account, _sync_version) VALUES (old._sync_id, old._sync_account, old._sync_version);END;
/packages/apps/PackageInstaller/src/com/android/packageinstaller/permission/model/
H A DPermissionGroups.java65 List<PermissionGroup> groups) {
66 if (mGroups.equals(groups)) {
70 mGroups.addAll(groups);
106 List<PermissionGroup> groups = new ArrayList<>();
150 groups.add(group);
154 // Make sure we add groups for lone runtime permissions.
198 groups.add(group);
202 Collections.sort(groups);
203 return groups;
64 onLoadFinished(Loader<List<PermissionGroup>> loader, List<PermissionGroup> groups) argument
/packages/experimental/LoaderApp/src/com/android/loaderapp/fragments/
H A DGroupsListFragment.java95 private void setData(Cursor groups) { argument
99 mAdapter.changeCursor(new MergeCursor(new Cursor[] { psuedoGroups, groups }));
/packages/apps/Dialer/tests/src/com/android/dialer/calllog/
H A DCallLogGroupBuilderTest.java40 /** Records the created groups. */
63 assertEquals(0, mFakeGroupCreator.groups.size());
69 assertEquals(0, mFakeGroupCreator.groups.size());
76 assertEquals(0, mFakeGroupCreator.groups.size());
84 assertEquals(1, mFakeGroupCreator.groups.size());
85 assertGroupIs(0, 3, false, mFakeGroupCreator.groups.get(0));
93 assertEquals(1, mFakeGroupCreator.groups.size());
94 assertGroupIs(0, 3, false, mFakeGroupCreator.groups.get(0));
152 assertEquals(2, mFakeGroupCreator.groups.size());
153 assertGroupIs(1, 4, false, mFakeGroupCreator.groups
294 public final List<GroupSpec> groups = newArrayList(); field in class:CallLogGroupBuilderTest.FakeGroupCreator
[all...]
/packages/apps/Settings/src/com/android/settings/wifi/p2p/
H A DWifiP2pSettings.java525 public void onPersistentGroupInfoAvailable(WifiP2pGroupList groups) { argument
528 for (WifiP2pGroup group: groups.getGroupList()) {
541 // shouldn't be in this situation in first place, because these groups are persistent
542 // groups and they shouldn't just get deleted!
/packages/apps/ContactsCommon/src/com/android/contacts/common/model/
H A DContact.java493 /* package */ void setGroupMetaData(ImmutableList<GroupMetaData> groups) { argument
494 mGroups = groups;

Completed in 1426 milliseconds