/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ |
H A D | ContactLookupKeyTest.java | 54 assertStoredValue(ContentUris.withAppendedId(Contacts.CONTENT_URI, contactId), 72 storeValue(RawContacts.CONTENT_URI, rawContactId1, RawContacts.SOURCE_ID, "123"); 75 storeValue(RawContacts.CONTENT_URI, rawContactId2, RawContacts.SOURCE_ID, "4.5.6"); 78 storeValue(RawContacts.CONTENT_URI, rawContactId3, RawContacts.SOURCE_ID, "http://foo?bar"); 89 assertStoredValue(ContentUris.withAppendedId(Contacts.CONTENT_URI, contactId), 98 storeValue(RawContacts.CONTENT_URI, rawContactId1, RawContacts.ACCOUNT_TYPE, "foo"); 99 storeValue(RawContacts.CONTENT_URI, rawContactId1, RawContacts.ACCOUNT_NAME, "FOO"); 100 storeValue(RawContacts.CONTENT_URI, rawContactId1, RawContacts.SOURCE_ID, "1"); 103 storeValue(RawContacts.CONTENT_URI, rawContactId2, RawContacts.ACCOUNT_TYPE, "bar"); 104 storeValue(RawContacts.CONTENT_URI, rawContactId [all...] |
H A D | SqlInjectionDetectionTest.java | 49 assertQueryValid(Phone.CONTENT_URI, PHONE_ID_PROJECTION, 57 assertQueryThrows(IllegalArgumentException.class, Phone.CONTENT_URI, 65 assertQueryThrows(SQLiteException.class, Phone.CONTENT_URI, PHONE_ID_PROJECTION, 73 assertQueryThrows(SQLiteException.class, Phone.CONTENT_URI, 85 assertQueryValid(Phone.CONTENT_URI, 88 final Cursor c = mResolver.query(Phone.CONTENT_URI, PHONE_ID_PROJECTION, null, null, null);
|
H A D | GroupsTest.java | 148 Uri uri = ContentUris.withAppendedId(Groups.CONTENT_URI, 156 Uri uri = ContentUris.withAppendedId(Groups.CONTENT_URI, 168 Uri uri = ContentUris.withAppendedId(Groups.CONTENT_URI, 182 Uri uri = ContentUris.withAppendedId(Groups.CONTENT_URI, groupId); 196 Uri uri = ContentUris.withAppendedId(Groups.CONTENT_URI, groupId); 205 Uri uri = ContentUris.withAppendedId(Groups.CONTENT_URI, 236 final Cursor cursor = mResolver.query(Contacts.CONTENT_URI, new String[] { 246 return ContentProviderOperation.newAssertQuery(Contacts.CONTENT_URI).withSelection( 255 final Uri groupUri = ContentUris.withAppendedId(Groups.CONTENT_URI, groupId); 260 final Uri contactUri = ContentUris.withAppendedId(Contacts.CONTENT_URI, contactI [all...] |
H A D | LegacyContactsProviderTest.java | 73 Uri uri = mResolver.insert(People.CONTENT_URI, values); 75 assertSelection(People.CONTENT_URI, values, "people", People._ID, ContentUris.parseId(uri)); 82 Uri uri = mResolver.insert(People.CONTENT_URI, values); 85 assertSelection(People.CONTENT_URI, values, "people", People._ID, personId); 94 mResolver.update(People.CONTENT_URI, values, People._ID + "=" + personId, null); 101 Uri personId = mResolver.insert(People.CONTENT_URI, values); 118 mResolver.insert(People.CONTENT_URI, values); 122 mResolver.insert(People.CONTENT_URI, values); 126 mResolver.insert(People.CONTENT_URI, values); 137 Uri personUri = mResolver.insert(People.CONTENT_URI, value [all...] |
H A D | DirectoryTest.java | 47 ContentUris.withAppendedId(Directory.CONTENT_URI, Directory.DEFAULT); 63 ContentUris.withAppendedId(Directory.CONTENT_URI, Directory.LOCAL_INVISIBLE); 79 Uri contentUri = Contacts.CONTENT_URI.buildUpon().appendQueryParameter( 103 Uri contentUri = Contacts.CONTENT_URI.buildUpon().appendQueryParameter( 113 mResolver.delete(Data.CONTENT_URI,
|
H A D | ContactsProvider2Test.java | 105 assertProjection(Contacts.CONTENT_URI, new String[]{ 253 assertProjection(RawContacts.CONTENT_URI, new String[]{ 287 assertProjection(Data.CONTENT_URI, new String[]{ 433 Uri.withAppendedPath(ContentUris.withAppendedId(Contacts.CONTENT_URI, 0), 518 assertProjection(RawContactsEntity.CONTENT_URI, new String[]{ 589 assertProjection(Groups.CONTENT_URI, new String[]{ 648 assertProjection(AggregationExceptions.CONTENT_URI, new String[]{ 657 assertProjection(Settings.CONTENT_URI, new String[]{ 670 assertProjection(StatusUpdates.CONTENT_URI, new String[]{ 688 assertProjection(Directory.CONTENT_URI, ne [all...] |
/packages/apps/Email/tests/src/com/android/email/provider/ |
H A D | AccountBackupRestoreTests.java | 102 assertEquals(2, EmailContent.count(mMockContext, Account.CONTENT_URI)); 103 assertEquals(4, EmailContent.count(mMockContext, HostAuth.CONTENT_URI)); 110 cr.delete(Account.CONTENT_URI, null, null); 111 cr.delete(HostAuth.CONTENT_URI, null, null); 114 assertEquals(0, EmailContent.count(mMockContext, Account.CONTENT_URI)); 115 assertEquals(0, EmailContent.count(mMockContext, HostAuth.CONTENT_URI)); 123 assertEquals(2, EmailContent.count(mMockContext, Account.CONTENT_URI)); 124 assertEquals(4, EmailContent.count(mMockContext, HostAuth.CONTENT_URI)); 127 Cursor c = cr.query(Account.CONTENT_URI, Account.CONTENT_PROJECTION, null, null, "_id ASC");
|
/packages/apps/Contacts/tests/src/com/android/contacts/tests/allintents/ |
H A D | AllIntentsActivity.java | 151 new Intent(UI.LIST_DEFAULT, Contacts.CONTENT_URI)); 156 new Intent(UI.LIST_ALL_CONTACTS_ACTION, Contacts.CONTENT_URI)); 161 new Intent(UI.LIST_CONTACTS_WITH_PHONES_ACTION, Contacts.CONTENT_URI)); 166 new Intent(UI.LIST_STARRED_ACTION, Contacts.CONTENT_URI)); 171 new Intent(UI.LIST_FREQUENT_ACTION, Contacts.CONTENT_URI)); 176 new Intent(UI.LIST_STREQUENT_ACTION, Contacts.CONTENT_URI)); 181 new Intent(UI.LIST_GROUP_ACTION, Contacts.CONTENT_URI)); 186 new Intent(Intent.ACTION_PICK, Contacts.CONTENT_URI)); 191 new Intent(Intent.ACTION_PICK, People.CONTENT_URI)); 196 new Intent(Intent.ACTION_PICK, Phone.CONTENT_URI)); [all...] |
/packages/providers/PartnerBookmarksProvider/src/com/android/providers/partnerbookmarks/ |
H A D | PartnerBookmarksContract.java | 71 public static final Uri CONTENT_URI = Uri.withAppendedPath(AUTHORITY_URI, "bookmarks"); field in class:PartnerBookmarksContract.Bookmarks 77 Uri.withAppendedPath(CONTENT_URI, "folder"); 88 * The MIME type of {@link #CONTENT_URI} providing a directory of bookmarks. 93 * The MIME type of a {@link #CONTENT_URI} of a single bookmark.
|
/packages/experimental/LoaderApp/src/com/android/loaderapp/model/ |
H A D | GroupsListLoader.java | 36 super(context, Groups.CONTENT_URI, COLUMNS, null, null, Groups.TITLE);
|
/packages/apps/Bluetooth/src/com/android/bluetooth/opp/ |
H A D | BluetoothOppLiveFolder.java | 47 public static final Uri CONTENT_URI = Uri field in class:BluetoothOppLiveFolder 58 setResult(RESULT_OK, createLiveFolder(this, CONTENT_URI, this 73 Constants.ACTION_OPEN, BluetoothShare.CONTENT_URI));
|
/packages/apps/Email/emailcommon/src/com/android/emailcommon/provider/ |
H A D | QuickResponse.java | 40 public static final Uri CONTENT_URI = Uri.parse(EmailContent.CONTENT_URI field in class:QuickResponse 43 EmailContent.CONTENT_URI + "/quickresponse/account"); 68 mBaseUri = CONTENT_URI; 78 mBaseUri = CONTENT_URI; 88 mBaseUri = CONTENT_URI;
|
H A D | EmailContent.java | 69 public static final Uri CONTENT_URI = Uri.parse("content://" + AUTHORITY); field in class:EmailContent 280 public static final Uri CONTENT_URI = Uri.parse(EmailContent.CONTENT_URI + "/body"); field in class:EmailContent.Body 337 mBaseUri = CONTENT_URI; 373 Uri u = ContentUris.withAppendedId(Body.CONTENT_URI, id); 381 Cursor c = context.getContentResolver().query(Body.CONTENT_URI, 392 return Utility.getFirstRowLong(context, Body.CONTENT_URI, 409 resolver.insert(CONTENT_URI, values); 411 final Uri uri = ContentUris.withAppendedId(CONTENT_URI, bodyId); 418 return Utility.getFirstRowLong(context, Body.CONTENT_URI, 537 public static final Uri CONTENT_URI = Uri.parse(EmailContent.CONTENT_URI + "/message"); field in class:EmailContent.Message 1096 public static final String CONTENT_URI = "contentUri"; field in interface:EmailContent.AttachmentColumns 1124 public static final Uri CONTENT_URI = Uri.parse(EmailContent.CONTENT_URI + "/attachment"); field in class:EmailContent.Attachment [all...] |
/packages/apps/Email/tests/src/com/android/emailcommon/utility/ |
H A D | UtilityMediumTests.java | 156 mMockContext, Account.CONTENT_URI, EmailContent.ID_PROJECTION, 162 mMockContext, Account.CONTENT_URI, EmailContent.ID_PROJECTION, 169 mMockContext, Account.CONTENT_URI, EmailContent.ID_PROJECTION, 176 mMockContext, Account.CONTENT_URI, EmailContent.ID_PROJECTION, 189 mMockContext, Account.CONTENT_URI, EmailContent.ID_PROJECTION, 195 mMockContext, Account.CONTENT_URI, EmailContent.ID_PROJECTION, 202 mMockContext, Account.CONTENT_URI, EmailContent.ID_PROJECTION, 209 mMockContext, Account.CONTENT_URI, EmailContent.ID_PROJECTION, 224 mMockContext, Account.CONTENT_URI, DISPLAY_NAME_PROJECTION, 230 mMockContext, Account.CONTENT_URI, DISPLAY_NAME_PROJECTIO [all...] |
/packages/apps/Contacts/src/com/android/contacts/util/ |
H A D | ContactLoaderUtils.java | 60 ContentUris.withAppendedId(RawContacts.CONTENT_URI, rawContactId)); 73 ContentUris.withAppendedId(RawContacts.CONTENT_URI, rawContactId));
|
/packages/apps/Exchange/exchange2/src/com/android/exchange/provider/ |
H A D | MailboxUtilities.java | 68 Cursor childCursor = resolver.query(Mailbox.CONTENT_URI, 78 resolver.update(ContentUris.withAppendedId(Mailbox.CONTENT_URI, childId), 93 resolver.update(ContentUris.withAppendedId(Mailbox.CONTENT_URI, parentId), 105 Cursor cursor = context.getContentResolver().query(Mailbox.CONTENT_URI, 134 resolver.query(Mailbox.CONTENT_URI, Mailbox.CONTENT_PROJECTION, 155 resolver.update(Mailbox.CONTENT_URI, values, noParentKeySelection, null); 166 ContentUris.withAppendedId(Account.CONTENT_URI, account.mId), cv, null, null); 206 resolver.update(Mailbox.CONTENT_URI, values, accountSelector, null);
|
/packages/apps/Contacts/tests/src/com/android/contacts/ |
H A D | EntityDeltaTests.java | 80 before.addSubValue(Data.CONTENT_URI, phone); 158 final Builder builder = values.buildDiff(Data.CONTENT_URI); 169 final Builder builder = values.buildDiff(Data.CONTENT_URI); 183 final Builder builder = values.buildDiff(Data.CONTENT_URI); 197 final Builder builder = values.buildDiff(Data.CONTENT_URI); 241 assertEquals("Incorrect target", RawContacts.CONTENT_URI, oper.getUri()); 246 assertEquals("Incorrect target", Data.CONTENT_URI, oper.getUri()); 251 assertEquals("Incorrect target", RawContacts.CONTENT_URI, oper.getUri()); 281 assertEquals("Incorrect target", RawContacts.CONTENT_URI, oper.getUri()); 286 assertEquals("Incorrect target", RawContacts.CONTENT_URI, ope [all...] |
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/aggregation/ |
H A D | ContactAggregatorTest.java | 84 Cursor c = mResolver.query(AggregationExceptions.CONTENT_URI, 98 c = mResolver.query(AggregationExceptions.CONTENT_URI, AGGREGATION_EXCEPTION_PROJECTION, 113 c = mResolver.query(AggregationExceptions.CONTENT_URI, AGGREGATION_EXCEPTION_PROJECTION, 992 ContentUris.withAppendedId(Data.CONTENT_URI, normalEarthDataId), 1014 ContentUris.withAppendedId(Data.CONTENT_URI, nebulaDataId), 1037 ContentUris.withAppendedId(Data.CONTENT_URI, normalEarthDataId), 1064 ContentUris.withAppendedId(Data.CONTENT_URI, cupcakeEarthDataId), 1123 storeValue(RawContacts.CONTENT_URI, rawContactId1, RawContacts.NAME_VERIFIED, "1"); 1139 storeValue(RawContacts.CONTENT_URI, rawContactId2, RawContacts.NAME_VERIFIED, "1"); 1140 assertStoredValue(RawContacts.CONTENT_URI, rawContactId [all...] |
/packages/apps/Browser/src/com/android/browser/ |
H A D | AccountsChangedReceiver.java | 56 Cursor c = cr.query(Accounts.CONTENT_URI, PROJECTION, 65 cr.update(Accounts.CONTENT_URI, null, null, null); 74 Uri uri = Bookmarks.CONTENT_URI.buildUpon()
|
/packages/providers/PartnerBookmarksProvider/tests/src/com/android/providers/partnerbookmarks/ |
H A D | PartnerBookmarksProviderTest.java | 36 PartnerBookmarksContract.Bookmarks.CONTENT_URI); 38 "Failed to acquire " + PartnerBookmarksContract.Bookmarks.CONTENT_URI, 42 cursor = providerClient.query(PartnerBookmarksContract.Bookmarks.CONTENT_URI,
|
/packages/apps/Contacts/src/com/android/contacts/ |
H A D | GroupMetaDataLoader.java | 65 if (!groupUri.toString().startsWith(Groups.CONTENT_URI.toString())) {
|
/packages/apps/Contacts/src/com/android/contacts/list/ |
H A D | ProviderStatusWatcher.java | 143 .registerContentObserver(ProviderStatus.CONTENT_URI, false, this); 177 * This means this method is essentially a blocking {@link ProviderStatus#CONTENT_URI} query. 230 Cursor cursor = mContext.getContentResolver().query(ProviderStatus.CONTENT_URI, 278 if (!ProviderStatus.CONTENT_URI.equals(uri)) return; 297 context.getContentResolver().update(ProviderStatus.CONTENT_URI, values,
|
/packages/apps/Exchange/exchange2/src/com/android/exchange/ |
H A D | ContactsSyncAdapterService.java | 109 Uri uri = RawContacts.CONTENT_URI.buildUpon() 116 uri = Groups.CONTENT_URI.buildUpon() 131 cr.query(com.android.emailcommon.provider.Account.CONTENT_URI, ID_PROJECTION, 137 Cursor mailboxCursor = cr.query(Mailbox.CONTENT_URI, ID_PROJECTION,
|
/packages/apps/Phone/src/com/android/phone/ |
H A D | ClearMissedCallsService.java | 56 getContentResolver().update(Calls.CONTENT_URI, values, where.toString(),
|
/packages/providers/DownloadProvider/tests/public_api_access/src/com/android/providers/downloads/public_api_access_tests/ |
H A D | PublicApiAccessTest.java | 60 mContentResolver.delete(Downloads.Impl.CONTENT_URI, null, null); 66 mContentResolver.insert(Downloads.Impl.CONTENT_URI, buildValidValues()); 78 mContentResolver.insert(Downloads.Impl.CONTENT_URI, values); 135 mContentResolver.insert(Downloads.Impl.CONTENT_URI, values);
|