/aosp12/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ |
H A D | SqlInjectionDetectionTest.java | 52 assertQueryValid(Phone.CONTENT_URI, PHONE_ID_PROJECTION, in testQueryValid() 56 assertQueryValid(Data.CONTENT_URI, null, in testQueryValid() 61 assertQueryThrows(Phone.CONTENT_URI, in testPhoneQueryBadProjection() 73 assertQueryThrows(Phone.CONTENT_URI, PHONE_ID_PROJECTION, in testPhoneQueryBadSelection() 77 assertQueryThrows(Phone.CONTENT_URI, PHONE_ID_PROJECTION, in testPhoneQueryBadSelection() 79 assertQueryThrows(Phone.CONTENT_URI, PHONE_ID_PROJECTION, in testPhoneQueryBadSelection() 85 assertQueryThrows(Phone.CONTENT_URI, in testPhoneQueryBadSortOrder() 89 assertQueryThrows(Phone.CONTENT_URI, PHONE_ID_PROJECTION, null, in testPhoneQueryBadSortOrder() 91 assertQueryThrows(Phone.CONTENT_URI, PHONE_ID_PROJECTION, in testPhoneQueryBadSortOrder() 104 assertQueryValid(Phone.CONTENT_URI, in testPhoneQueryBadLimit() [all …]
|
H A D | ContactLookupKeyTest.java | 55 assertStoredValue(ContentUris.withAppendedId(Contacts.CONTENT_URI, contactId), in testLookupKeyUsingDisplayNameAndNoAccount() 90 assertStoredValue(ContentUris.withAppendedId(Contacts.CONTENT_URI, contactId), in testLookupKeyUsingSourceIdAndNoAccount() 101 storeValue(RawContacts.CONTENT_URI, rawContactId1, RawContacts.SOURCE_ID, "1"); in testLookupKeySameSourceIdDifferentAccounts() 106 storeValue(RawContacts.CONTENT_URI, rawContactId2, RawContacts.SOURCE_ID, "1"); in testLookupKeySameSourceIdDifferentAccounts() 114 assertStoredValue(ContentUris.withAppendedId(Contacts.CONTENT_URI, contactId1), in testLookupKeySameSourceIdDifferentAccounts() 118 assertStoredValue(ContentUris.withAppendedId(Contacts.CONTENT_URI, contactId2), in testLookupKeySameSourceIdDifferentAccounts() 130 storeValue(RawContacts.CONTENT_URI, rawContactId1, RawContacts.SOURCE_ID, "1"); in testLookupKeyChoosingLargestContact() 133 storeValue(RawContacts.CONTENT_URI, rawContactId2, RawContacts.SOURCE_ID, "2"); in testLookupKeyChoosingLargestContact() 145 assertStoredValue(ContentUris.withAppendedId(Contacts.CONTENT_URI, contactId), in testLookupKeyChoosingLargestContact() 158 ContentUris.withAppendedId(Contacts.CONTENT_URI, largerContactId), in testLookupKeyChoosingLargestContact() [all …]
|
H A D | LegacyContactsProviderTest.java | 81 Uri uri = mResolver.insert(People.CONTENT_URI, values); in testPeopleInsert() 94 Uri uri = mResolver.insert(People.CONTENT_URI, values); in testPeopleUpdate() 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() 264 assertStoredValues(ContactMethods.CONTENT_URI, in testEmailCrud() 356 assertSelection(Organizations.CONTENT_URI, values, in testOrganizationsInsert() 425 assertSelection(Phones.CONTENT_URI, values, "phones", in testPhonesInsert() 834 mResolver.insert(Presence.CONTENT_URI, values); in assertSearchSuggestion() 843 mResolver.insert(Phones.CONTENT_URI, values); in assertSearchSuggestion() [all …]
|
H A D | GroupsTest.java | 149 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() 306 mResolver.update(AggregationExceptions.CONTENT_URI, values, null, null); in testLocalMixedVisible() 319 mResolver.insert(Settings.CONTENT_URI, values); in testUngroupedVisible() 357 mResolver.update(AggregationExceptions.CONTENT_URI, values, null, null); in testMultipleSourcesVisible() 375 mResolver.insert(Settings.CONTENT_URI, values); in testMultipleSourcesVisible() [all …]
|
H A D | ContactsProvider2Test.java | 3618 Profile.CONTENT_URI.buildUpon() in testQueryProfileWithoutPermission() 3914 Uri uri = Data.CONTENT_URI; in testPhonesWithStatusUpdate() 4057 Groups.CONTENT_URI.buildUpon() in testGroupDelete_byAccountParam() 4210 Uri uri3 = Settings.CONTENT_URI.buildUpon() in testSettingsQuery() 4234 assertStoredValue(Settings.CONTENT_URI, in testSettingsInsertionPreventsDuplicates() 4239 assertStoredValue(Settings.CONTENT_URI, in testSettingsInsertionPreventsDuplicates() 6169 RawContacts.CONTENT_URI.buildUpon() in testRawContactDeletion_byAccountParam() 6180 RawContacts.CONTENT_URI.buildUpon() in testRawContactDeletion_byAccountParam() 6947 mResolver.insert(Data.CONTENT_URI, values); in testUpdateRawContactDataPhoto() 7596 Uri uri = Contacts.CONTENT_URI.buildUpon() in testContactCounts() [all …]
|
H A D | ContactsProvider2TransactionTest.java | 67 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 …]
|
H A D | CallLogProviderTest.java | 103 Uri uri = mResolver.insert(Calls.CONTENT_URI, values); in testInsert_RegularCallRecord() 127 mResolver.insert(Calls.CONTENT_URI, values); in testInsert_VoicemailCallRecord() 174 mResolver.insert(Calls.CONTENT_URI, values); in testCallLogFilter() 241 assertEquals(2, getCount(Calls.CONTENT_URI, null, null)); in testDifferentContentUris() 249 Uri uri = Calls.CONTENT_URI.buildUpon() in testLimitParamReturnsCorrectLimit() 263 Uri uri = Calls.CONTENT_URI.buildUpon() in testLimitAndOffsetParamReturnsCorrectEntries() 293 Uri uri = Calls.CONTENT_URI.buildUpon() in assertParamThrowsIllegalArgumentException() 315 mResolver.insert(Calls.CONTENT_URI, values); in testCannotAccessVoicemailSpecificFields_Insert() 420 assertStoredValues(Calls.CONTENT_URI); in testCopyEntriesFromCursor_AllEntriesSyncedWithoutDuplicatesPresent() 425 assertStoredValues(Calls.CONTENT_URI, in testCopyEntriesFromCursor_AllEntriesSyncedWithoutDuplicatesPresent() [all …]
|
/aosp12/frameworks/base/core/java/android/provider/ |
H A D | BrowserContract.java | 258 public static final Uri CONTENT_URI = Uri.withAppendedPath(AUTHORITY_URI, "bookmarks"); field in BrowserContract.Bookmarks 309 Uri.withAppendedPath(CONTENT_URI, "folder"); 417 public static final Uri CONTENT_URI = field in BrowserContract.Accounts 455 public static final Uri CONTENT_URI = Uri.withAppendedPath(AUTHORITY_URI, "history"); field in BrowserContract.History 526 public static final Uri CONTENT_URI = field in BrowserContract.SyncState 534 return SyncStateContract.Helpers.get(provider, CONTENT_URI, account); in get() 542 return SyncStateContract.Helpers.getWithUri(provider, CONTENT_URI, account); in getWithUri() 550 SyncStateContract.Helpers.set(provider, CONTENT_URI, account, data); in set() 557 return SyncStateContract.Helpers.newSetOperation(CONTENT_URI, account, data); in newSetOperation() 585 public static final Uri CONTENT_URI = Uri.withAppendedPath(AUTHORITY_URI, "images"); field in BrowserContract.Images [all …]
|
H A D | Telephony.java | 403 return cr.query(CONTENT_URI, projection, where, in query() 2158 MmsSms.CONTENT_URI, "conversations"); 2164 CONTENT_URI, "obsolete"); 2940 return cr.query(CONTENT_URI, projection, in query() 3033 CONTENT_URI = Uri.parse("content://mms/sent"); field in Telephony.Mms.Sent 3141 Uri addrUri = Mms.CONTENT_URI.buildUpon() in getAddrUriForMessage() 3172 public static final Uri CONTENT_URI = Uri.withAppendedPath(Mms.CONTENT_URI, TABLE_PART); field in Telephony.Mms.Part 3261 Uri partUri = Mms.CONTENT_URI.buildUpon() in getPartUriForMessage() 3284 Mms.CONTENT_URI, "rate"); 3430 MmsSms.CONTENT_URI, "pending"); [all …]
|
H A D | ContactsContract.java | 430 public static final Uri CONTENT_URI = field in ContactsContract.Directory 721 public static final Uri CONTENT_URI = field in ContactsContract.SyncState 1730 CONTENT_URI, "filter"); 1752 CONTENT_URI, "strequent"); 1768 CONTENT_URI, "frequent"); 1785 CONTENT_URI, "group"); 6148 public static final Uri CONTENT_URI = Uri.withAppendedPath(Data.CONTENT_URI, field in ContactsContract.CommonDataKinds.Phone 6376 public static final Uri CONTENT_URI = Uri.withAppendedPath(Data.CONTENT_URI, field in ContactsContract.CommonDataKinds.Email 6642 public static final Uri CONTENT_URI = Uri.withAppendedPath(Data.CONTENT_URI, field in ContactsContract.CommonDataKinds.StructuredPostal 7716 public static final Uri CONTENT_URI = Uri.withAppendedPath(Data.CONTENT_URI, field in ContactsContract.CommonDataKinds.Callable [all …]
|
H A D | CalendarContract.java | 185 public static final Uri CONTENT_URI = Uri.parse("content://" + AUTHORITY); field in CalendarContract 572 public static final Uri CONTENT_URI = Uri.parse("content://" + AUTHORITY + field in CalendarContract.CalendarEntity 1389 public static final Uri CONTENT_URI = Uri.parse("content://" + AUTHORITY + field in CalendarContract.EventsEntity 1752 public static final Uri CONTENT_URI = field in CalendarContract.Events 1919 Uri.Builder builder = CONTENT_URI.buildUpon(); in query() 2233 public static final Uri CONTENT_URI = Uri.parse("content://" + AUTHORITY field in CalendarContract.EventDays 2262 Uri.Builder builder = CONTENT_URI.buildUpon(); in query() 2502 return cr.insert(CONTENT_URI, values); in insert() 2564 Cursor cursor = cr.query(CalendarAlerts.CONTENT_URI, projection, in rescheduleMissedAlarms() 2775 public static final Uri CONTENT_URI = field in CalendarContract.ExtendedProperties [all …]
|
/aosp12/packages/modules/CellBroadcastService/tests/src/com/android/cellbroadcastservice/tests/ |
H A D | CellBroadcastProviderTest.java | 101 Uri uri = mContentResolver.insert(CONTENT_URI, cv); in testUpdate() 109 mContentResolver.update(CONTENT_URI, cv, SELECT_BY_ID, 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() 178 mContentResolver.delete(CONTENT_URI, SELECT_BY_ID, in testDelete_withoutWritePermission_throwSecurityException() 191 Uri uri = mContentResolver.insert(CONTENT_URI, cv); in testDelete_oneRecord_success() 217 mContentResolver.insert(CONTENT_URI, fakeCellBroadcast()); in testDelete_all_success() [all …]
|
/aosp12/packages/providers/TelephonyProvider/tests/src/com/android/providers/telephony/ |
H A D | CarrierIdProviderTest.java | 191 mContentResolver.insert(CarrierId.All.CONTENT_URI, contentValues); in testDuplicateInsertionCarrierInfo() 192 mContentResolver.insert(CarrierId.All.CONTENT_URI, contentValues); in testDuplicateInsertionCarrierInfo() 208 mContentResolver.insert(CarrierId.All.CONTENT_URI, contentValues); in testInvalidInsertionCarrierInfo() 222 mContentResolver.insert(CarrierId.All.CONTENT_URI, in testDeleteCarrierInfo() 249 mContentResolver.insert(CarrierId.All.CONTENT_URI, contentValues); in testUpdateCarrierInfo() 256 mContentResolver.update(CarrierId.All.CONTENT_URI, contentValues, in testUpdateCarrierInfo() 325 Uri.withAppendedPath(CarrierId.All.CONTENT_URI, in testGetVersion() 354 Uri.withAppendedPath(CarrierId.CONTENT_URI, "1"), in testUpdateCurrentSubscription() 369 Uri.withAppendedPath(CarrierId.CONTENT_URI, "2"), in testUpdateCurrentSubscription() 393 mContext.getContentResolver().query(CarrierId.CONTENT_URI, in testQueryCurrrentSubscription_wrongProjection() [all …]
|
H A D | CarrierProviderTest.java | 157 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 …]
|
/aosp12/frameworks/base/telephony/common/com/android/internal/telephony/ |
H A D | HbpcdLookup.java | 28 public static final Uri CONTENT_URI = field in HbpcdLookup 46 public static final Uri CONTENT_URI = field in HbpcdLookup.MccIdd 59 public static final Uri CONTENT_URI = field in HbpcdLookup.MccLookup 79 public static final Uri CONTENT_URI = field in HbpcdLookup.MccSidConflicts 92 public static final Uri CONTENT_URI = field in HbpcdLookup.MccSidRange 105 public static final Uri CONTENT_URI = field in HbpcdLookup.ArbitraryMccSidMatch 118 public static final Uri CONTENT_URI = field in HbpcdLookup.NanpAreaCode
|
/aosp12/packages/apps/Car/libs/car-telephony-common/tests/unittests/src/com/android/car/telephony/common/ |
H A D | QueryParamTest.java | 45 private static final Uri CONTENT_URI = Data.CONTENT_URI; field in QueryParamTest 56 QueryParam.QueryBuilder builder = new QueryParam.QueryBuilder(CONTENT_URI); in testContentUri() 60 assertThat(queryParam.mUri).isEqualTo(CONTENT_URI); in testContentUri() 69 QueryParam.QueryBuilder builder = new QueryParam.QueryBuilder(CONTENT_URI); in testEmptyQueryParam() 83 Data.CONTENT_URI, in testBuildQueryParam() 95 QueryParam builtQueryParam = new QueryParam.QueryBuilder(Data.CONTENT_URI) in testBuildQueryParam() 116 QueryParam.QueryBuilder builder = new QueryParam.QueryBuilder(CONTENT_URI); in testBuildProjection_selectAll() 126 QueryParam.QueryBuilder builder = new QueryParam.QueryBuilder(CONTENT_URI); in testBuildSelection() 138 QueryParam.QueryBuilder builder = new QueryParam.QueryBuilder(CONTENT_URI); in testBuildSelection_andCondition() 156 QueryParam.QueryBuilder builder = new QueryParam.QueryBuilder(CONTENT_URI); in testBuildSelection_orCondition() [all …]
|
/aosp12/packages/apps/Contacts/tests/src/com/android/contacts/tests/allintents/ |
H A D | AllIntentsActivity.java | 148 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() 405 startActivity(new Intent(Intent.ACTION_VIEW, Contacts.CONTENT_URI)); in onListItemClick() 540 final Cursor cursor = getContentResolver().query(Contacts.CONTENT_URI, in findArbitraryContactWithPhoneNumber() 557 final Cursor cursor = getContentResolver().query(RawContacts.CONTENT_URI, in findArbitraryRawContactOfContact() 578 intent.setData(ContentUris.withAppendedId(Groups.CONTENT_URI, groupId)); in findArbitraryGroupIntent() [all …]
|
/aosp12/packages/providers/TvProvider/src/com/android/providers/tv/ |
H A D | BootCompletedReceiver.java | 77 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()
|
/aosp12/packages/providers/BlockedNumberProvider/tests/src/com/android/providers/blockednumber/ |
H A D | BlockedNumberProviderTest.java | 122 BlockedNumbers.CONTENT_URI)); in testGetType() 155 assertRowCount(7, BlockedNumbers.CONTENT_URI); in testInsert() 206 BlockedNumbers.CONTENT_URI, cv); in insertExpectingFailure() 222 assertRowCount(5, BlockedNumbers.CONTENT_URI); in testDelete() 227 assertRowCount(4, BlockedNumbers.CONTENT_URI); in testDelete() 237 assertRowCount(3, BlockedNumbers.CONTENT_URI); in testDelete() 239 mResolver.delete(BlockedNumbers.CONTENT_URI, in testDelete() 242 assertRowCount(2, BlockedNumbers.CONTENT_URI); in testDelete() 250 assertRowCount(2, BlockedNumbers.CONTENT_URI); in testDelete() 253 assertRowCount(0, BlockedNumbers.CONTENT_URI); in testDelete() [all …]
|
/aosp12/frameworks/base/core/tests/coretests/src/android/provider/ |
H A D | SettingsProviderTest.java | 79 testRowNameContentUri(Settings.Secure.CONTENT_URI, Settings.Secure.NAME, in testRowNameContentUriForSecure() 99 testRowNameContentUri(Settings.System.CONTENT_URI, Settings.System.NAME, in testRowNameContentUriForSystem() 361 r.call(DeviceConfig.CONTENT_URI, Settings.CALL_METHOD_PUT_CONFIG, name, args); in testCall_putAndGetConfig() 368 r.call(DeviceConfig.CONTENT_URI, Settings.CALL_METHOD_DELETE_CONFIG, name, null); in testCall_putAndGetConfig() 382 r.call(DeviceConfig.CONTENT_URI, Settings.CALL_METHOD_PUT_CONFIG, name, args); in testCall_deleteConfig() 390 results = r.call(DeviceConfig.CONTENT_URI, Settings.CALL_METHOD_DELETE_CONFIG, name, in testCall_deleteConfig() 398 r.call(DeviceConfig.CONTENT_URI, Settings.CALL_METHOD_DELETE_CONFIG, name, null); in testCall_deleteConfig() 416 r.call(DeviceConfig.CONTENT_URI, Settings.CALL_METHOD_PUT_CONFIG, name, args); in testCall_listConfig() 418 r.call(DeviceConfig.CONTENT_URI, Settings.CALL_METHOD_PUT_CONFIG, newName, args); in testCall_listConfig() 421 Bundle result = r.call(DeviceConfig.CONTENT_URI, Settings.CALL_METHOD_LIST_CONFIG, in testCall_listConfig() [all …]
|
/aosp12/packages/providers/CalendarProvider/tests/src/com/android/providers/calendar/enterprise/ |
H A D | CrossProfileCalendarHelperTest.java | 44 mHelper.getCalibratedProjection(projection, Calendars.CONTENT_URI); in testProjectionNotInAllowedList_throwErrorForCalendars() 57 mHelper.getCalibratedProjection(projection, Events.CONTENT_URI); in testProjectionNotInAllowedList_throwErrorForEvents() 70 mHelper.getCalibratedProjection(projection, Instances.CONTENT_URI); in testProjectionNotInAllowedList_throwErrorForInstances() 78 final String[] projection = mHelper.getCalibratedProjection(null, Calendars.CONTENT_URI); in testNoProjection_getFullAllowedListProjectionForCalendars() 85 final String[] projection = mHelper.getCalibratedProjection(null, Events.CONTENT_URI); in testNoProjection_getFullAllowedListProjectionForEvents() 91 final String[] projection = mHelper.getCalibratedProjection(null, Instances.CONTENT_URI); in testNoProjection_getFullAllowedListProjectionForInstances()
|
/aosp12/packages/providers/TvProvider/tests/src/com/android/providers/tv/ |
H A D | Utils.java | 41 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() 270 Uri uri = resolver.insert(RecordedPrograms.CONTENT_URI, values); in insertRecordedPrograms() 307 Uri uri = resolver.insert(TvContract.WatchedPrograms.CONTENT_URI, values); in insertWatchedPrograms() 341 Uri uri = resolver.insert(TvContract.WatchNextPrograms.CONTENT_URI, values); in insertWatchNextPrograms() [all …]
|
H A D | ColumnFilterTest.java | 76 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()
|
/aosp12/packages/apps/Contacts/tests/src/com/android/contacts/model/ |
H A D | RawContactDeltaListTests.java | 240 return buildCPOWrapper(RawContacts.CONTENT_URI, TYPE_ASSERT, values); in buildAssertVersion() 246 return buildCPOWrapper(RawContacts.CONTENT_URI, TYPE_UPDATE, values); in buildAggregationModeUpdate() 313 if (AggregationExceptions.CONTENT_URI.equals(oper.getUri()) in countExceptionUpdates() 452 buildDelete(Data.CONTENT_URI), in testMergeDataLocalDeleteRemoteUpdate() 460 buildDelete(Data.CONTENT_URI), in testMergeDataLocalDeleteRemoteUpdate() 476 buildCPOWrapper(Data.CONTENT_URI, TYPE_INSERT, in testMergeDataLocalInsertRemoteInsert() 485 buildCPOWrapper(Data.CONTENT_URI, TYPE_INSERT, in testMergeDataLocalInsertRemoteInsert() 507 buildCPOWrapper(Data.CONTENT_URI, TYPE_INSERT, joePhoneInsert), in testMergeRawContactLocalInsertRemoteInsert() 534 buildDelete(RawContacts.CONTENT_URI)); in testMergeRawContactLocalDeleteRemoteDelete() 569 buildCPOWrapper(Data.CONTENT_URI, TYPE_INSERT, phoneInsert), in testMergeRawContactLocalUpdateRemoteDelete() [all …]
|
/aosp12/packages/apps/CellBroadcastReceiver/tests/unit/src/com/android/cellbroadcastreceiver/unit/ |
H A D | CellBroadcastContentProviderTest.java | 51 public static final Uri CONTENT_URI = Uri.parse("content://cellbroadcasts-app"); field in CellBroadcastContentProviderTest 109 mContentResolver.insert(CONTENT_URI, msg); in testInsert() 122 mContentResolver.delete(CONTENT_URI, null, null); in testDelete() 135 mContentResolver.update(CONTENT_URI, null, null); in testUpdate() 150 Cursor cursor = mContentResolver.query(CONTENT_URI, in testDeleteAll() 155 cursor = mContentResolver.query(CONTENT_URI, CellBroadcastDatabaseHelper.QUERY_COLUMNS, in testDeleteAll() 169 Cursor cursor = mContentResolver.query(CONTENT_URI, in testDeleteBroadcast() 186 Cursor cursor = mContentResolver.query(CONTENT_URI, in testMarkSmsSyncPending() 193 cursor = mContentResolver.query(CONTENT_URI, in testMarkSmsSyncPending() 209 Cursor cursor = mContentResolver.query(CONTENT_URI, in testWriteSmsInboxBeforeUserUnlock() [all …]
|