Home
last modified time | relevance | path

Searched refs:CONTENT_URI (Results 1 – 25 of 458) sorted by relevance

12345678910>>...19

/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
DSqlInjectionDetectionTest.java52 assertQueryValid(Phone.CONTENT_URI, PHONE_ID_PROJECTION, in testQueryValid()
56 assertQueryValid(Data.CONTENT_URI, null, in testQueryValid()
61 assertQueryThrows(Phone.CONTENT_URI, in testPhoneQueryBadProjection()
65 assertQueryThrows(Phone.CONTENT_URI, new String[] { "a" }, null, null); in testPhoneQueryBadProjection()
66 assertQueryThrows(Phone.CONTENT_URI, new String[] { " _id" }, null, null); in testPhoneQueryBadProjection()
69 assertQueryThrows(Phone.CONTENT_URI, new String[] { "[_id]" }, null, null); in testPhoneQueryBadProjection()
73 assertQueryThrows(Phone.CONTENT_URI, PHONE_ID_PROJECTION, in testPhoneQueryBadSelection()
75 assertQueryThrows(Phone.CONTENT_URI, PHONE_ID_PROJECTION, ";delete from contacts", null); in testPhoneQueryBadSelection()
77 assertQueryThrows(Phone.CONTENT_URI, PHONE_ID_PROJECTION, in testPhoneQueryBadSelection()
79 assertQueryThrows(Phone.CONTENT_URI, PHONE_ID_PROJECTION, in testPhoneQueryBadSelection()
[all …]
DLegacyContactsProviderTest.java81 Uri uri = mResolver.insert(People.CONTENT_URI, values); in testPeopleInsert()
87 assertSelection(People.CONTENT_URI, values, "people", People._ID, ContentUris.parseId(uri)); in testPeopleInsert()
94 Uri uri = mResolver.insert(People.CONTENT_URI, values); in testPeopleUpdate()
98 assertSelection(People.CONTENT_URI, values, "people", People._ID, personId); in testPeopleUpdate()
108 mResolver.update(People.CONTENT_URI, values, People._ID + "=" + personId, null); in testPeopleUpdate()
116 Uri personId = mResolver.insert(People.CONTENT_URI, values); in testPeopleDelete()
133 mResolver.insert(People.CONTENT_URI, values); in testPeopleFilter()
137 mResolver.insert(People.CONTENT_URI, values); in testPeopleFilter()
141 mResolver.insert(People.CONTENT_URI, values); in testPeopleFilter()
152 Uri personUri = mResolver.insert(People.CONTENT_URI, values); in testDefaultDisplayName()
[all …]
DContactLookupKeyTest.java55 assertStoredValue(ContentUris.withAppendedId(Contacts.CONTENT_URI, contactId), in testLookupKeyUsingDisplayNameAndNoAccount()
73 storeValue(RawContacts.CONTENT_URI, rawContactId1, RawContacts.SOURCE_ID, "123"); in testLookupKeyUsingSourceIdAndNoAccount()
76 storeValue(RawContacts.CONTENT_URI, rawContactId2, RawContacts.SOURCE_ID, "4.5.6"); in testLookupKeyUsingSourceIdAndNoAccount()
79 storeValue(RawContacts.CONTENT_URI, rawContactId3, RawContacts.SOURCE_ID, "http://foo?bar"); in testLookupKeyUsingSourceIdAndNoAccount()
90 assertStoredValue(ContentUris.withAppendedId(Contacts.CONTENT_URI, contactId), in testLookupKeyUsingSourceIdAndNoAccount()
99 storeValue(RawContacts.CONTENT_URI, rawContactId1, RawContacts.ACCOUNT_TYPE, "foo"); in testLookupKeySameSourceIdDifferentAccounts()
100 storeValue(RawContacts.CONTENT_URI, rawContactId1, RawContacts.ACCOUNT_NAME, "FOO"); in testLookupKeySameSourceIdDifferentAccounts()
101 storeValue(RawContacts.CONTENT_URI, rawContactId1, RawContacts.SOURCE_ID, "1"); in testLookupKeySameSourceIdDifferentAccounts()
104 storeValue(RawContacts.CONTENT_URI, rawContactId2, RawContacts.ACCOUNT_TYPE, "bar"); in testLookupKeySameSourceIdDifferentAccounts()
105 storeValue(RawContacts.CONTENT_URI, rawContactId2, RawContacts.ACCOUNT_NAME, "BAR"); in testLookupKeySameSourceIdDifferentAccounts()
[all …]
DContactsProvider2Test.java166 Uri localUri = ContactsProvider2.convertToLocalUri(enterpriseUri, Phone.CONTENT_URI); in testConvertEnterpriseUriWithEnterpriseDirectoryToLocalUri()
167 Uri expectedUri = Phone.CONTENT_URI.buildUpon().appendPath(phoneNumber) in testConvertEnterpriseUriWithEnterpriseDirectoryToLocalUri()
183 Uri localUri = ContactsProvider2.convertToLocalUri(enterpriseUri, Phone.CONTENT_URI); in testConvertEnterpriseUriWithPersonalDirectoryToLocalUri()
184 Uri expectedUri = Phone.CONTENT_URI.buildUpon().appendPath(phoneNumber) in testConvertEnterpriseUriWithPersonalDirectoryToLocalUri()
198 Uri localUri = ContactsProvider2.convertToLocalUri(enterpriseUri, Phone.CONTENT_URI); in testConvertEnterpriseUriWithoutDirectoryToLocalUri()
199 Uri expectedUri = Phone.CONTENT_URI.buildUpon().appendPath(phoneNumber) in testConvertEnterpriseUriWithoutDirectoryToLocalUri()
206 assertProjection(Contacts.CONTENT_URI, new String[]{ in testContactsProjection()
383 assertProjection(RawContacts.CONTENT_URI, new String[]{ in testRawContactsProjection()
423 assertProjection(Data.CONTENT_URI, new String[]{ in testDataProjection()
595 Uri.withAppendedPath(ContentUris.withAppendedId(Contacts.CONTENT_URI, 0), in testEntityProjection()
[all …]
DContactMetadataProviderTest.java131 Cursor c = mResolver.query(MetadataSync.CONTENT_URI, null, SELECTION_BY_TEST_ACCOUNT1, in testGetMetadataByAccount()
167 mResolver.insert(MetadataSync.CONTENT_URI, newValues); in testFailOnInsertMetadataForSameAccountIdAndBackupId()
178 Uri rawContactUri = ContentUris.withAppendedId(RawContacts.CONTENT_URI, rawContactId); in testInsertAndUpdateMetadataSync()
213 Uri metadataUri = mResolver.insert(MetadataSync.CONTENT_URI, insertedValues); in testInsertAndUpdateMetadataSync()
249 mResolver.insert(MetadataSync.CONTENT_URI, updatedValues); in testInsertAndUpdateMetadataSync()
286 Uri metadataUri = mResolver.insert(MetadataSync.CONTENT_URI, insertedValues); in testInsertMetadata()
318 mResolver.insert(MetadataSync.CONTENT_URI, newValues); in testFailUpdateDeletedMetadata()
337 mResolver.insert(MetadataSync.CONTENT_URI, newValues); in testInsertWithNullData()
346 Cursor c = mResolver.query(MetadataSync.CONTENT_URI, null, SELECTION_BY_TEST_ACCOUNT1, in testDeleteMetadata()
349 int numOfDeletion = mResolver.delete(MetadataSync.CONTENT_URI, SELECTION_BY_TEST_ACCOUNT1, in testDeleteMetadata()
[all …]
DGroupsTest.java149 Uri uri = ContentUris.withAppendedId(Groups.CONTENT_URI, in testGroupDirtySetOnChange()
157 Uri uri = ContentUris.withAppendedId(Groups.CONTENT_URI, in testMarkAsDirtyParameter()
169 Uri uri = ContentUris.withAppendedId(Groups.CONTENT_URI, in testGroupDirtyClearedWhenSetExplicitly()
183 Uri uri = ContentUris.withAppendedId(Groups.CONTENT_URI, groupId); in testGroupDeletion1()
197 Uri uri = ContentUris.withAppendedId(Groups.CONTENT_URI, groupId); in testGroupDeletion2()
206 Uri uri = ContentUris.withAppendedId(Groups.CONTENT_URI, in testGroupVersionUpdates()
237 final Cursor cursor = mResolver.query(Contacts.CONTENT_URI, new String[] { in assertContactVisible()
247 return ContentProviderOperation.newAssertQuery(Contacts.CONTENT_URI).withSelection( in buildVisibleAssert()
256 final Uri groupUri = ContentUris.withAppendedId(Groups.CONTENT_URI, groupId); in testDelayVisibleTransaction()
261 final Uri contactUri = ContentUris.withAppendedId(Contacts.CONTENT_URI, contactId); in testDelayVisibleTransaction()
[all …]
DCallLogProviderTest.java100 Uri uri = mResolver.insert(Calls.CONTENT_URI, values); in testInsert_RegularCallRecord()
124 mResolver.insert(Calls.CONTENT_URI, values); in testInsert_VoicemailCallRecord()
163 int count = mResolver.delete(Calls.CONTENT_URI, Calls._ID + "=" in testDelete()
171 mResolver.insert(Calls.CONTENT_URI, values); in testCallLogFilter()
234 assertEquals(2, getCount(Calls.CONTENT_URI, null, null)); in testDifferentContentUris()
242 Uri uri = Calls.CONTENT_URI.buildUpon() in testLimitParamReturnsCorrectLimit()
250 mResolver.insert(Calls.CONTENT_URI, getDefaultValues(Calls.INCOMING_TYPE)); in testLimitAndOffsetParamReturnsCorrectEntries()
253 mResolver.insert(Calls.CONTENT_URI, getDefaultValues(Calls.MISSED_TYPE)); in testLimitAndOffsetParamReturnsCorrectEntries()
256 Uri uri = Calls.CONTENT_URI.buildUpon() in testLimitAndOffsetParamReturnsCorrectEntries()
286 Uri uri = Calls.CONTENT_URI.buildUpon() in assertParamThrowsIllegalArgumentException()
[all …]
DContactsProvider2TransactionTest.java67 mResolver.insert(RawContacts.CONTENT_URI, values); in testTransactionCallback_insert()
93 mResolver.insert(RawContacts.CONTENT_URI, values); in testTransactionCallback_update()
101 assertTrue(mResolver.update(RawContacts.CONTENT_URI, values, null, null) > 0); in testTransactionCallback_update()
127 mResolver.insert(RawContacts.CONTENT_URI, values); in testTransactionCallback_delete()
132 assertTrue(mResolver.delete(RawContacts.CONTENT_URI, null, null) > 0); in testTransactionCallback_delete()
157 mResolver.bulkInsert(RawContacts.CONTENT_URI, new ContentValues[] {values}); in testTransactionCallback_bulkInsert()
180 b = ContentProviderOperation.newInsert(RawContacts.CONTENT_URI); in addInsertContactOperations()
185 b = ContentProviderOperation.newInsert(Data.CONTENT_URI); in addInsertContactOperations()
198 assertStoredValues(Contacts.CONTENT_URI, cv( in checkStoredContact()
214 b = ContentProviderOperation.newInsert(Data.CONTENT_URI); in addInsertProfileOperations()
[all …]
DBaseContactsProvider2Test.java218 final Uri uri = TestUtil.maybeAddAccountQueryParameters(Groups.CONTENT_URI, account); in createGroup()
237 mResolver.insert(Settings.CONTENT_URI, values); in createSettings()
260 Uri resultUri = mResolver.insert(Data.CONTENT_URI, values); in insertOrganization()
296 Uri resultUri = mResolver.insert(Data.CONTENT_URI, values); in insertPhoneNumber()
333 Uri resultUri = mResolver.insert(Data.CONTENT_URI, values); in insertEmail()
350 Uri resultUri = mResolver.insert(Data.CONTENT_URI, values); in insertSipAddress()
361 Uri resultUri = mResolver.insert(Data.CONTENT_URI, values); in insertNickname()
371 Uri resultUri = mResolver.insert(Data.CONTENT_URI, values); in insertPostalAddress()
378 Uri resultUri = mResolver.insert(Data.CONTENT_URI, values); in insertPostalAddress()
387 Uri resultUri = mResolver.insert(Data.CONTENT_URI, values); in insertPhoto()
[all …]
DContactDirectoryManagerTest.java186 Cursor cursor = mResolver.query(Directory.CONTENT_URI, null, null, null, in testScanAllProviders()
271 Cursor cursor = mResolver.query(Directory.CONTENT_URI, null, null, null, null); in testPackageInstalled()
289 cursor = mResolver.query(Directory.CONTENT_URI, null, null, null, null); in testPackageInstalled()
331 Cursor cursor = mResolver.query(Directory.CONTENT_URI, null, null, null, null); in testPackageUninstalled()
340 cursor = mResolver.query(Directory.CONTENT_URI, null, null, null, null); in testPackageUninstalled()
377 Cursor cursor = mResolver.query(Directory.CONTENT_URI, null, null, null, null); in testPackageReplaced()
389 cursor = mResolver.query(Directory.CONTENT_URI, null, null, null, null); in testPackageReplaced()
435 Cursor cursor = mResolver.query(Directory.CONTENT_URI, null, null, null, null); in testPackageRenamed()
454 cursor = mResolver.query(Directory.CONTENT_URI, null, null, null, null); in testPackageRenamed()
502 Cursor cursor = mResolver.query(Directory.CONTENT_URI, null, null, null, null); in testAccountRemoval()
[all …]
/packages/modules/CellBroadcastService/tests/src/com/android/cellbroadcastservice/tests/
DCellBroadcastProviderTest.java46 public static final Uri CONTENT_URI = Uri.parse("content://cellbroadcasts"); field in CellBroadcastProviderTest
101 Uri uri = mContentResolver.insert(CONTENT_URI, cv); in testUpdate()
109 mContentResolver.update(CONTENT_URI, cv, SELECT_BY_ID, in testUpdate()
113 Cursor cursor = mContentResolver.query(CONTENT_URI, QUERY_COLUMNS, in testUpdate()
127 Uri uri = mContentResolver.insert(CONTENT_URI, cv); in testUpdate_WithoutWritePermission_fail()
134 mContentResolver.update(CONTENT_URI, cv, SELECT_BY_ID, in testUpdate_WithoutWritePermission_fail()
149 mContentResolver.insert(CONTENT_URI, cv); in testGetAllCellBroadcast()
156 mContentResolver.insert(CONTENT_URI, cv); in testGetAllCellBroadcast()
161 CONTENT_URI, in testGetAllCellBroadcast()
171 Uri uri = mContentResolver.insert(CONTENT_URI, fakeCellBroadcast()); in testDelete_withoutWritePermission_throwSecurityException()
[all …]
/packages/apps/Car/CompanionDeviceSupport/tests/unit/src/com/android/car/companiondevicesupport/feature/calendarsync/
DCalendarCleanerTest.java79 when(mContentResolver.query(eq(Events.CONTENT_URI), any(), any(), any(), in setUp()
93 eq(Events.CONTENT_URI), in eraseCalendarDeleteOpsHaveCorrectOrder()
108 assertEquals(Attendees.CONTENT_URI, capturedOps.get(0).getUri()); in eraseCalendarDeleteOpsHaveCorrectOrder()
109 assertEquals(Attendees.CONTENT_URI, capturedOps.get(1).getUri()); in eraseCalendarDeleteOpsHaveCorrectOrder()
110 assertEquals(Events.CONTENT_URI, capturedOps.get(2).getUri()); in eraseCalendarDeleteOpsHaveCorrectOrder()
111 assertEquals(Calendars.CONTENT_URI, capturedOps.get(3).getUri()); in eraseCalendarDeleteOpsHaveCorrectOrder()
129 verifyDelete(Attendees.CONTENT_URI, Attendees.EVENT_ID, TEST_EVENT_ID_1); in eraseCalendar()
130 verifyDelete(Attendees.CONTENT_URI, Attendees.EVENT_ID, TEST_EVENT_ID_2); in eraseCalendar()
131 verifyDelete(Events.CONTENT_URI, Events.CALENDAR_ID, CALENDAR_IDENTIFIER); in eraseCalendar()
132 verifyDelete(Calendars.CONTENT_URI, Calendars._ID, CALENDAR_IDENTIFIER); in eraseCalendar()
[all …]
/packages/providers/TelephonyProvider/tests/src/com/android/providers/telephony/
DCarrierIdProviderTest.java171 mContentResolver.insert(CarrierId.All.CONTENT_URI, createCarrierInfoInternal()); in testInsertCarrierInfo()
172 Cursor countCursor = mContentResolver.query(CarrierId.All.CONTENT_URI, in testInsertCarrierInfo()
193 mContentResolver.insert(CarrierId.All.CONTENT_URI, contentValues); in testDuplicateInsertionCarrierInfo()
194 mContentResolver.insert(CarrierId.All.CONTENT_URI, contentValues); in testDuplicateInsertionCarrierInfo()
210 mContentResolver.insert(CarrierId.All.CONTENT_URI, contentValues); in testInvalidInsertionCarrierInfo()
224 mContentResolver.insert(CarrierId.All.CONTENT_URI, in testDeleteCarrierInfo()
233 numRowsDeleted = mContentResolver.delete(CarrierId.All.CONTENT_URI, in testDeleteCarrierInfo()
251 mContentResolver.insert(CarrierId.All.CONTENT_URI, contentValues); in testUpdateCarrierInfo()
258 mContentResolver.update(CarrierId.All.CONTENT_URI, contentValues, in testUpdateCarrierInfo()
265 Cursor findEntry = mContentResolver.query(CarrierId.All.CONTENT_URI, in testUpdateCarrierInfo()
[all …]
DTelephonyProviderTest.java110 private static final Uri URI_TELEPHONY = Carriers.CONTENT_URI;
279 int rows = mContentResolver.bulkInsert(Carriers.CONTENT_URI, values); in testBulkInsertCarriers()
295 Cursor cursor = mContentResolver.query(Carriers.CONTENT_URI, in testBulkInsertCarriers()
317 doSimpleTestForUri(Carriers.CONTENT_URI); in testInsertCarriers()
330 mContentResolver.addProvider(Telephony.CarrierId.All.CONTENT_URI.getAuthority(), in testMccMncMigration()
340 mContentResolver.bulkInsert(Telephony.CarrierId.All.CONTENT_URI, carrierIdMccMncs); in testMccMncMigration()
355 mContentResolver.bulkInsert(SimInfo.CONTENT_URI, existingSimInfoEntries); in testMccMncMigration()
361 try (Cursor c = mContentResolver.query(SimInfo.CONTENT_URI, proj, in testMccMncMigration()
370 try (Cursor c = mContentResolver.query(SimInfo.CONTENT_URI, proj, in testMccMncMigration()
406 Uri row1 = mContentResolver.insert(Carriers.CONTENT_URI, contentValues); in testUpdateConflictingCarriers()
[all …]
DCarrierProviderTest.java157 mContentResolver.insert(CarrierProvider.CONTENT_URI, contentValues); in testInsertCertificates()
162 Cursor countCursor = mContentResolver.query(CarrierProvider.CONTENT_URI, in testInsertCertificates()
193 mContentResolver.insert(CarrierProvider.CONTENT_URI, contentValues); in testUpdateCertificates()
201 mContentResolver.update(CarrierProvider.CONTENT_URI, updatedValues, in testUpdateCertificates()
210 Cursor findEntry = mContentResolver.query(CarrierProvider.CONTENT_URI, columns, in testUpdateCertificates()
247 mContentResolver.insert(CarrierProvider.CONTENT_URI, contentValues); in testMultipleCertificates()
248 mContentResolver.insert(CarrierProvider.CONTENT_URI, contentValuesNew); in testMultipleCertificates()
254 Cursor countCursor = mContentResolver.query(CarrierProvider.CONTENT_URI, in testMultipleCertificates()
281 mContentResolver.insert(CarrierProvider.CONTENT_URI, contentValues); in testDuplicateFailure()
286 mContentResolver.insert(CarrierProvider.CONTENT_URI, contentValues); in testDuplicateFailure()
[all …]
/packages/apps/Contacts/tests/src/com/android/contacts/tests/allintents/
DAllIntentsActivity.java148 new Intent(Intent.ACTION_PICK, Contacts.CONTENT_URI)); in onListItemClick()
153 new Intent(Intent.ACTION_PICK, People.CONTENT_URI)); in onListItemClick()
158 new Intent(Intent.ACTION_PICK, Phone.CONTENT_URI)); in onListItemClick()
163 new Intent(Intent.ACTION_PICK, Phones.CONTENT_URI)); in onListItemClick()
168 new Intent(Intent.ACTION_PICK, StructuredPostal.CONTENT_URI)); in onListItemClick()
179 new Intent(Intent.ACTION_PICK, Email.CONTENT_URI)); in onListItemClick()
297 Uri contactUri = ContentUris.withAppendedId(Contacts.CONTENT_URI, contactId); in onListItemClick()
307 final Uri uri = ContentUris.withAppendedId(Contacts.CONTENT_URI, contactId); in onListItemClick()
316 final Uri uri = ContentUris.withAppendedId(Contacts.CONTENT_URI, contactId); in onListItemClick()
329 final Uri uri = ContentUris.withAppendedId(Contacts.CONTENT_URI, contactId); in onListItemClick()
[all …]
/packages/providers/BlockedNumberProvider/tests/src/com/android/providers/blockednumber/
DBlockedNumberProviderTest.java118 BlockedNumbers.CONTENT_URI)); in testGetType()
121 ContentUris.withAppendedId(BlockedNumbers.CONTENT_URI, 1))); in testGetType()
151 assertRowCount(7, BlockedNumbers.CONTENT_URI); in testInsert()
164 Cursor c = mResolver.query(BlockedNumbers.CONTENT_URI, null, null, null, null); in testChangesNotified()
189 final Uri uri = mResolver.insert(BlockedNumbers.CONTENT_URI, cv); in insert()
202 BlockedNumbers.CONTENT_URI, cv); in insertExpectingFailure()
218 assertRowCount(5, BlockedNumbers.CONTENT_URI); in testDelete()
223 assertRowCount(4, BlockedNumbers.CONTENT_URI); in testDelete()
233 assertRowCount(3, BlockedNumbers.CONTENT_URI); in testDelete()
235 mResolver.delete(BlockedNumbers.CONTENT_URI, in testDelete()
[all …]
/packages/apps/Contacts/tests/src/com/android/contacts/model/
DRawContactDeltaListTests.java230 return buildCPOWrapper(RawContacts.CONTENT_URI, TYPE_ASSERT, values); in buildAssertVersion()
236 return buildCPOWrapper(RawContacts.CONTENT_URI, TYPE_UPDATE, values); in buildAggregationModeUpdate()
251 return buildCPOWrapper(AggregationExceptions.CONTENT_URI, TYPE_UPDATE, values); in buildUpdateAggregationKeepTogether()
302 if (AggregationExceptions.CONTENT_URI.equals(oper.getUri()) in countExceptionUpdates()
390 buildCPOWrapper(Data.CONTENT_URI, TYPE_UPDATE, phone.getAfter()), in testMergeDataLocalUpdateRemoteInsert()
398 buildCPOWrapper(Data.CONTENT_URI, TYPE_UPDATE, phone.getAfter()), in testMergeDataLocalUpdateRemoteInsert()
415 buildCPOWrapper(Data.CONTENT_URI, TYPE_UPDATE, phone.getAfter()), in testMergeDataLocalUpdateRemoteDelete()
424 buildCPOWrapper(Data.CONTENT_URI, TYPE_INSERT, buildDataInsert(phone, CONTACT_BOB)), in testMergeDataLocalUpdateRemoteDelete()
441 buildDelete(Data.CONTENT_URI), in testMergeDataLocalDeleteRemoteUpdate()
449 buildDelete(Data.CONTENT_URI), in testMergeDataLocalDeleteRemoteUpdate()
[all …]
DRawContactDeltaTests.java149 final BuilderWrapper builderWrapper = values.buildDiffWrapper(Data.CONTENT_URI); in testValuesDiffDelete()
196 assertEquals("Incorrect target", RawContacts.CONTENT_URI, oper.getUri()); in testEntityDiffNoneInsert()
202 assertEquals("Incorrect target", Data.CONTENT_URI, oper.getUri()); in testEntityDiffNoneInsert()
208 assertEquals("Incorrect target", RawContacts.CONTENT_URI, oper.getUri()); in testEntityDiffNoneInsert()
239 assertEquals("Incorrect target", RawContacts.CONTENT_URI, oper.getUri()); in testEntityDiffUpdateInsert()
245 assertEquals("Incorrect target", RawContacts.CONTENT_URI, oper.getUri()); in testEntityDiffUpdateInsert()
251 assertEquals("Incorrect target", Data.CONTENT_URI, oper.getUri()); in testEntityDiffUpdateInsert()
257 assertEquals("Incorrect target", RawContacts.CONTENT_URI, oper.getUri()); in testEntityDiffUpdateInsert()
282 assertEquals("Incorrect target", RawContacts.CONTENT_URI, oper.getUri()); in testEntityDiffNoneUpdate()
288 assertEquals("Incorrect target", Data.CONTENT_URI, oper.getUri()); in testEntityDiffNoneUpdate()
[all …]
/packages/providers/TvProvider/tests/src/com/android/providers/tv/
DUtils.java41 resolver.delete(Channels.CONTENT_URI, null, null); in clearTvProvider()
44 resolver.delete(TvContract.RecordedPrograms.CONTENT_URI, null, null); in clearTvProvider()
45 resolver.delete(TvContract.WatchNextPrograms.CONTENT_URI, null, null); in clearTvProvider()
194 Uri uri = resolver.insert(Channels.CONTENT_URI, values); in insertChannel()
204 Uri uri = resolver.insert(TvContract.Programs.CONTENT_URI, values); in insertPrograms()
217 resolver.query(TvContract.Programs.CONTENT_URI, projection, null, null, null); in queryPrograms()
237 Uri uri = resolver.insert(TvContract.PreviewPrograms.CONTENT_URI, values); in insertPreviewPrograms()
251 TvContract.PreviewPrograms.CONTENT_URI, projection, null, null, null); in queryPreviewPrograms()
270 Uri uri = resolver.insert(RecordedPrograms.CONTENT_URI, values); in insertRecordedPrograms()
283 Cursor cursor = resolver.query(RecordedPrograms.CONTENT_URI, projection, null, null, null); in queryRecordedPrograms()
[all …]
DColumnFilterTest.java76 Uri uri = mResolver.insert(Channels.CONTENT_URI, values); in insertChannel()
88 Cursor cursor = mResolver.query(Channels.CONTENT_URI, projection, null, null, null); in testQueryChannel()
101 Cursor cursor = mResolver.query(Channels.CONTENT_URI, projection, null, null, null); in testQueryChannel_count()
110 Cursor cursor = mResolver.query(Channels.CONTENT_URI, null, null, null, null); in testQueryChannelWithNullProjection()
120 Cursor cursor = mResolver.query(Channels.CONTENT_URI, projection, null, null, null); in testQueryChannelWithNoValidColumn()
134 Cursor cursor = mResolver.query(Channels.CONTENT_URI, projection, null, null, null); in testInsertAndQueryChannel()
146 mResolver.update(Channels.CONTENT_URI, values, null, null); in testUpdateChannel()
152 Cursor cursor = mResolver.query(Channels.CONTENT_URI, projection, null, null, null); in testUpdateChannel()
/packages/providers/TvProvider/src/com/android/providers/tv/
DBootCompletedReceiver.java77 deleteRowsOfUninstalledPackagesInternal(context, db, TvContract.Channels.CONTENT_URI); in deleteRowsOfUninstalledPackages()
79 context, db, TvContract.RecordedPrograms.CONTENT_URI); in deleteRowsOfUninstalledPackages()
81 context, db, TvContract.WatchNextPrograms.CONTENT_URI); in deleteRowsOfUninstalledPackages()
121 if (TvContract.Channels.CONTENT_URI.equals(uri)) { in getTableName()
124 if (TvContract.Programs.CONTENT_URI.equals(uri)) { in getTableName()
127 if (TvContract.PreviewPrograms.CONTENT_URI.equals(uri)) { in getTableName()
130 if (TvContract.WatchedPrograms.CONTENT_URI.equals(uri)) { in getTableName()
133 if (TvContract.RecordedPrograms.CONTENT_URI.equals(uri)) { in getTableName()
136 if (TvContract.WatchNextPrograms.CONTENT_URI.equals(uri)) { in getTableName()
/packages/providers/CalendarProvider/tests/src/com/android/providers/calendar/
DCalendarProvider2Test.java104 private Uri mEventsUri = Events.CONTENT_URI;
105 private Uri mCalendarsUri = Calendars.CONTENT_URI;
1217 Uri uri = CalendarContract.Colors.CONTENT_URI; in insertColor()
1224 Uri uri = CalendarContract.Colors.CONTENT_URI; in updateAndCheckColor()
1347 Uri uri = updatedUri(ContentUris.withAppendedId(Events.CONTENT_URI, id), true, account, in deleteMatchingEvents()
1416 Uri uri = ContentUris.withAppendedId(Events.CONTENT_URI, id); in updateMatchingEvents()
1441 Uri uri = ContentUris.withAppendedId(Events.CONTENT_URI, id); in updateMatchingEventsStatusOnly()
1529 Uri colSyncUri = asSyncAdapter(Colors.CONTENT_URI, DEFAULT_ACCOUNT, in testInsertUpdateDeleteColor()
1539 Cursor cursor = mResolver.query(Colors.CONTENT_URI, new String[] {Colors.COLOR_KEY}, in testInsertUpdateDeleteColor()
1548 cursor = mResolver.query(Colors.CONTENT_URI, new String[] {Colors.COLOR_KEY}, in testInsertUpdateDeleteColor()
[all …]
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/aggregation/
DContactAggregatorTest.java115 Cursor c = mResolver.query(AggregationExceptions.CONTENT_URI, in testCrudAggregationExceptions()
129 c = mResolver.query(AggregationExceptions.CONTENT_URI, AGGREGATION_EXCEPTION_PROJECTION, in testCrudAggregationExceptions()
144 c = mResolver.query(AggregationExceptions.CONTENT_URI, AGGREGATION_EXCEPTION_PROJECTION, in testCrudAggregationExceptions()
1204 ContentUris.withAppendedId(Data.CONTENT_URI, normalEarthDataId), in testChooseLargerPhotoByDimensions()
1226 ContentUris.withAppendedId(Data.CONTENT_URI, nebulaDataId), in testChooseLargerPhotoByFileSize()
1249 ContentUris.withAppendedId(Data.CONTENT_URI, normalEarthDataId), in testChooseFilePhotoOverThumbnail()
1276 ContentUris.withAppendedId(Data.CONTENT_URI, cupcakeEarthDataId), in testFallbackToAccountPriorityForSamePhoto()
1412 storeValue(RawContacts.CONTENT_URI, rawContactId1, in testAggregationModeSuspendedSeparateTransactions()
1417 storeValue(RawContacts.CONTENT_URI, rawContactId2, in testAggregationModeSuspendedSeparateTransactions()
1424 storeValue(RawContacts.CONTENT_URI, rawContactId1, in testAggregationModeSuspendedSeparateTransactions()
[all …]
/packages/providers/CalendarProvider/tests/src/com/android/providers/calendar/enterprise/
DCrossProfileCalendarHelperTest.java44 mHelper.getCalibratedProjection(projection, Calendars.CONTENT_URI); in testProjectionNotWhitelisted_throwErrorForCalendars()
57 mHelper.getCalibratedProjection(projection, Events.CONTENT_URI); in testProjectionNotWhitelisted_throwErrorForEvents()
70 mHelper.getCalibratedProjection(projection, Instances.CONTENT_URI); in testProjectionNotWhitelisted_throwErrorForInstances()
78 final String[] projection = mHelper.getCalibratedProjection(null, Calendars.CONTENT_URI); in testNoProjection_getFullWhitelistedProjectionForCalendars()
85 final String[] projection = mHelper.getCalibratedProjection(null, Events.CONTENT_URI); in testNoProjection_getFullWhitelistedProjectionForEvents()
91 final String[] projection = mHelper.getCalibratedProjection(null, Instances.CONTENT_URI); in testNoProjection_getFullWhitelistedProjectionForInstances()

12345678910>>...19