/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/aggregation/ |
D | ContactAggregatorTest.java | 79 long rawContactId1 = RawContactUtil.createRawContactWithName(mResolver, "zz", "top"); in testCrudAggregationExceptions() 80 long rawContactId2 = RawContactUtil.createRawContactWithName(mResolver, "aa", "bottom"); in testCrudAggregationExceptions() 91 Cursor c = mResolver.query(AggregationExceptions.CONTENT_URI, in testCrudAggregationExceptions() 105 c = mResolver.query(AggregationExceptions.CONTENT_URI, AGGREGATION_EXCEPTION_PROJECTION, in testCrudAggregationExceptions() 120 c = mResolver.query(AggregationExceptions.CONTENT_URI, AGGREGATION_EXCEPTION_PROJECTION, in testCrudAggregationExceptions() 127 long rawContactId = RawContactUtil.createRawContact(mResolver); in testAggregationCreatesNewAggregate() 129 Uri resultUri = DataUtil.insertStructuredName(mResolver, rawContactId, "Johna", "Smitha"); in testAggregationCreatesNewAggregate() 142 long rawContactId1 = RawContactUtil.createRawContact(mResolver, ACCOUNT_1); in testAggregationOfExactFullNameMatch() 143 DataUtil.insertStructuredName(mResolver, rawContactId1, "Johnb", "Smithb"); in testAggregationOfExactFullNameMatch() 145 long rawContactId2 = RawContactUtil.createRawContact(mResolver, ACCOUNT_2); in testAggregationOfExactFullNameMatch() [all …]
|
D | ContactAggregator2Test.java | 79 long rawContactId1 = RawContactUtil.createRawContactWithName(mResolver, "zz", "top"); in testCrudAggregationExceptions() 80 long rawContactId2 = RawContactUtil.createRawContactWithName(mResolver, "aa", "bottom"); in testCrudAggregationExceptions() 91 Cursor c = mResolver.query(AggregationExceptions.CONTENT_URI, in testCrudAggregationExceptions() 105 c = mResolver.query(AggregationExceptions.CONTENT_URI, AGGREGATION_EXCEPTION_PROJECTION, in testCrudAggregationExceptions() 120 c = mResolver.query(AggregationExceptions.CONTENT_URI, AGGREGATION_EXCEPTION_PROJECTION, in testCrudAggregationExceptions() 127 long rawContactId = RawContactUtil.createRawContact(mResolver); in testAggregationCreatesNewAggregate() 129 Uri resultUri = DataUtil.insertStructuredName(mResolver, rawContactId, "Johna", "Smitha"); in testAggregationCreatesNewAggregate() 142 long rawContactId1 = RawContactUtil.createRawContact(mResolver, ACCOUNT_1); in testAggregationOfExactFullNameMatch() 143 DataUtil.insertStructuredName(mResolver, rawContactId1, "Johnb", "Smithb"); in testAggregationOfExactFullNameMatch() 145 long rawContactId2 = RawContactUtil.createRawContact(mResolver, ACCOUNT_2); in testAggregationOfExactFullNameMatch() [all …]
|
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ |
D | VoicemailProviderTest.java | 84 Uri uri = mResolver.insert(voicemailUri(), getTestVoicemailValues()); in testInsert() 96 Uri uri = mResolver.insert(voicemailUri(), values); in testInsertReadMessageIsNotNew() 101 Cursor c = mResolver.query(uri, projection, Calls.NEW + "=0", null, in testInsertReadMessageIsNotNew() 119 OutputStream out = mResolver.openOutputStream(uri); in testFileContent() 124 InputStream in = mResolver.openInputStream(uri); in testFileContent() 146 int count = mResolver.update(uri, values, null, null); in testUpdate() 153 final Uri uri = mResolver.insert(voicemailUri(), getTestVoicemailValues()); in testUpdateOwnPackageVoicemail_NotDirty() 154 mResolver.update(uri, new ContentValues(), null, null); in testUpdateOwnPackageVoicemail_NotDirty() 165 final Uri uri = mResolver.insert(voicemailUri(), getTestVoicemailValues()); in testUpdateOwnPackageVoicemail_RemovesDirtyStatus() 167 mResolver.update(uri, new ContentValues(), null, null); in testUpdateOwnPackageVoicemail_RemovesDirtyStatus() [all …]
|
D | SearchIndexManagerTest.java | 52 long rawContactId = RawContactUtil.createRawContact(mResolver); in testSearchIndexForStructuredName() 54 DataUtil.insertStructuredName(mResolver, rawContactId, "John", "Doe"); in testSearchIndexForStructuredName() 57 DataUtil.insertStructuredName(mResolver, rawContactId, values); in testSearchIndexForStructuredName() 66 DataUtil.insertStructuredName(mResolver, rawContactId, values); in testSearchIndexForStructuredName() 73 long rawContactId = RawContactUtil.createRawContact(mResolver); in testSearchIndexForStructuredName_phoneticOnly() 75 DataUtil.insertStructuredName(mResolver, rawContactId, "John", "Doe"); in testSearchIndexForStructuredName_phoneticOnly() 78 DataUtil.insertStructuredName(mResolver, rawContactId, values); in testSearchIndexForStructuredName_phoneticOnly() 87 DataUtil.insertStructuredName(mResolver, rawContactId, values); in testSearchIndexForStructuredName_phoneticOnly() 98 long rawContactId = RawContactUtil.createRawContact(mResolver); in testSearchIndexForChineseName() 102 DataUtil.insertStructuredName(mResolver, rawContactId, values); in testSearchIndexForChineseName() [all …]
|
D | LegacyContactsProviderTest.java | 71 Uri uri = mResolver.insert(People.CONTENT_URI, values); in testPeopleInsert() 80 Uri uri = mResolver.insert(People.CONTENT_URI, values); in testPeopleUpdate() 87 mResolver.update(uri, values, null, null); in testPeopleUpdate() 92 mResolver.update(People.CONTENT_URI, values, People._ID + "=" + personId, null); in testPeopleUpdate() 99 Uri personId = mResolver.insert(People.CONTENT_URI, values); in testPeopleDelete() 100 mResolver.delete(personId, null, null); in testPeopleDelete() 102 Cursor c = mResolver.query(personId, null, People.NAME + "='John Doe'" , null, null); in testPeopleDelete() 107 mResolver.query(People.DELETED_CONTENT_URI, null, null, null, null); in testPeopleDelete() 116 mResolver.insert(People.CONTENT_URI, values); in testPeopleFilter() 120 mResolver.insert(People.CONTENT_URI, values); in testPeopleFilter() [all …]
|
D | ContactsProvider2Test.java | 956 Uri rowUri = mResolver.insert(RawContacts.CONTENT_URI, values); in testRawContactsInsert() 967 long rawContactId = RawContactUtil.createRawContactWithName(mResolver); in testDataDirectoryWithLookupUri() 992 Cursor cursor = mResolver.query(dataUri, new String[]{ Data.DATA1 }, null, null, Data._ID); in assertDataRows() 1014 long rawContactId1 = RawContactUtil.createRawContactWithName(mResolver, account1); in testContactEntitiesWithIdBasedUri() 1019 long rawContactId2 = RawContactUtil.createRawContact(mResolver, account2); in testContactEntitiesWithIdBasedUri() 1036 long rawContactId1 = RawContactUtil.createRawContactWithName(mResolver, account1); in testContactEntitiesWithLookupUri() 1041 long rawContactId2 = RawContactUtil.createRawContact(mResolver, account2); in testContactEntitiesWithLookupUri() 1068 Cursor cursor = mResolver.query(entityUri, null, null, null, in assertEntityRows() 1128 long rawContactId = RawContactUtil.createRawContactWithName(mResolver, "John", "Doe"); in testDataInsert() 1132 Uri dataUri = mResolver.insert(Data.CONTENT_URI, values); in testDataInsert() [all …]
|
D | CallLogProviderTest.java | 87 mResolver.delete(Calls.CONTENT_URI_WITH_VOICEMAIL, null, null); in tearDown() 93 Uri uri = mResolver.insert(Calls.CONTENT_URI, values); in testInsert_RegularCallRecord() 116 mResolver.insert(Calls.CONTENT_URI, values); in testInsert_VoicemailCallRecord() 121 Uri uri = mResolver.insert(Calls.CONTENT_URI_WITH_VOICEMAIL, values); in testInsert_VoicemailCallRecord() 139 int count = mResolver.update(uri, values, null, null); in testUpdate() 148 mResolver.delete(uri, null, null); in testDelete() 154 int count = mResolver.delete(Calls.CONTENT_URI, Calls._ID + "=" in testDelete() 162 mResolver.insert(Calls.CONTENT_URI, values); in testCallLogFilter() 165 Cursor c = mResolver.query(filterUri, null, null, null, null); in testCallLogFilter() 172 c = mResolver.query(filterUri, null, null, null, null); in testCallLogFilter() [all …]
|
D | ContactMetadataProviderTest.java | 113 mResolver.insert(Uri.withAppendedPath(MetadataSync.METADATA_AUTHORITY_URI, in testInsertWithInvalidUri() 123 mResolver.update(Uri.withAppendedPath(MetadataSync.METADATA_AUTHORITY_URI, in testUpdateWithInvalidUri() 132 Cursor c = mResolver.query(MetadataSync.CONTENT_URI, null, SELECTION_BY_TEST_ACCOUNT1, in testGetMetadataByAccount() 168 mResolver.insert(MetadataSync.CONTENT_URI, newValues); in testFailOnInsertMetadataForSameAccountIdAndBackupId() 178 mResolver, mTestAccount); in testInsertAndUpdateMetadataSync() 182 assertEquals(1, mResolver.update(rawContactUri, values, null, null)); in testInsertAndUpdateMetadataSync() 214 Uri metadataUri = mResolver.insert(MetadataSync.CONTENT_URI, insertedValues); in testInsertAndUpdateMetadataSync() 250 mResolver.insert(MetadataSync.CONTENT_URI, updatedValues); in testInsertAndUpdateMetadataSync() 287 Uri metadataUri = mResolver.insert(MetadataSync.CONTENT_URI, insertedValues); in testInsertMetadata() 319 mResolver.insert(MetadataSync.CONTENT_URI, newValues); in testFailUpdateDeletedMetadata() [all …]
|
D | GroupsTest.java | 164 mResolver.update(updateUri, values, null, null); in testMarkAsDirtyParameter() 176 assertEquals(1, mResolver.update(uri, values, null, null)); in testGroupDirtyClearedWhenSetExplicitly() 186 mResolver.delete(uri, null, null); in testGroupDeletion1() 191 mResolver.delete(permanentDeletionUri, null, null); in testGroupDeletion1() 201 mResolver.delete(permanentDeletionUri, null, null); in testGroupDeletion2() 211 mResolver.update(uri, values, null, null); in testGroupVersionUpdates() 237 final Cursor cursor = mResolver.query(Contacts.CONTENT_URI, new String[] { in assertContactVisible() 259 final long rawContactId = RawContactUtil.createRawContact(this.mResolver, sTestAccount); in testDelayVisibleTransaction() 273 mResolver.applyBatch(ContactsContract.AUTHORITY, oper); in testDelayVisibleTransaction() 278 mResolver.applyBatch(ContactsContract.AUTHORITY, oper); in testDelayVisibleTransaction() [all …]
|
D | ContactsProvider2TransactionTest.java | 67 mResolver.insert(RawContacts.CONTENT_URI, values); in testTransactionCallback_insert() 77 mResolver.insert(Profile.CONTENT_RAW_CONTACTS_URI, values); in testTransactionCallback_insert() 93 mResolver.insert(RawContacts.CONTENT_URI, values); in testTransactionCallback_update() 94 mResolver.insert(Profile.CONTENT_RAW_CONTACTS_URI, values); in testTransactionCallback_update() 101 assertTrue(mResolver.update(RawContacts.CONTENT_URI, values, null, null) > 0); in testTransactionCallback_update() 111 assertTrue(mResolver.update(Profile.CONTENT_RAW_CONTACTS_URI, values, null, null) > 0); in testTransactionCallback_update() 127 mResolver.insert(RawContacts.CONTENT_URI, values); in testTransactionCallback_delete() 128 mResolver.insert(Profile.CONTENT_RAW_CONTACTS_URI, values); in testTransactionCallback_delete() 132 assertTrue(mResolver.delete(RawContacts.CONTENT_URI, null, null) > 0); in testTransactionCallback_delete() 141 assertTrue(mResolver.delete(Profile.CONTENT_RAW_CONTACTS_URI, null, null) > 0); in testTransactionCallback_delete() [all …]
|
D | BaseContactsProvider2Test.java | 103 protected MockContentResolver mResolver; field in BaseContactsProvider2Test 130 mResolver = mActor.resolver; in setUp() 186 return mResolver.update(uri, values, null, null); in updateItem() 211 return ContentUris.parseId(mResolver.insert(uri, values)); in createGroup() 229 mResolver.insert(Settings.CONTENT_URI, values); in createSettings() 252 Uri resultUri = mResolver.insert(Data.CONTENT_URI, values); in insertOrganization() 288 Uri resultUri = mResolver.insert(Data.CONTENT_URI, values); in insertPhoneNumber() 325 Uri resultUri = mResolver.insert(Data.CONTENT_URI, values); in insertEmail() 342 Uri resultUri = mResolver.insert(Data.CONTENT_URI, values); in insertSipAddress() 353 Uri resultUri = mResolver.insert(Data.CONTENT_URI, values); in insertNickname() [all …]
|
D | ContactLookupKeyTest.java | 44 long rawContactId1 = RawContactUtil.createRawContactWithName(mResolver, "John", "Doe"); in testLookupKeyUsingDisplayNameAndNoAccount() 45 long rawContactId2 = RawContactUtil.createRawContactWithName(mResolver, "johndoe", null); in testLookupKeyUsingDisplayNameAndNoAccount() 72 long rawContactId1 = RawContactUtil.createRawContactWithName(mResolver, "John", "Doe"); in testLookupKeyUsingSourceIdAndNoAccount() 75 long rawContactId2 = RawContactUtil.createRawContactWithName(mResolver, "johndoe", null); in testLookupKeyUsingSourceIdAndNoAccount() 78 long rawContactId3 = RawContactUtil.createRawContactWithName(mResolver, "john", "dough"); in testLookupKeyUsingSourceIdAndNoAccount() 98 long rawContactId1 = RawContactUtil.createRawContactWithName(mResolver, "Dear", "Doe"); in testLookupKeySameSourceIdDifferentAccounts() 103 long rawContactId2 = RawContactUtil.createRawContactWithName(mResolver, "Deer", "Dough"); in testLookupKeySameSourceIdDifferentAccounts() 129 long rawContactId1 = RawContactUtil.createRawContactWithName(mResolver, "John", "Doe"); in testLookupKeyChoosingLargestContact() 132 long rawContactId2 = RawContactUtil.createRawContactWithName(mResolver, "John", "Doe"); in testLookupKeyChoosingLargestContact() 135 long rawContactId3 = RawContactUtil.createRawContactWithName(mResolver, "John", "Doe"); in testLookupKeyChoosingLargestContact() [all …]
|
D | SqlInjectionDetectionTest.java | 46 long rawContactId = RawContactUtil.createRawContactWithName(mResolver, "Hot", "Tamale"); in testPhoneQueryValid() 54 long rawContactId = RawContactUtil.createRawContactWithName(mResolver, "Hot", "Tamale"); in testPhoneQueryBadProjection() 62 long rawContactId = RawContactUtil.createRawContactWithName(mResolver, "Hot", "Tamale"); in testPhoneQueryBadSelection() 70 long rawContactId = RawContactUtil.createRawContactWithName(mResolver, "Hot", "Tamale"); in testPhoneQueryBadSortOrder() 79 long rawContactId = RawContactUtil.createRawContactWithName(mResolver, "Hot", "Tamale"); in testPhoneQueryBadLimit() 88 final Cursor c = mResolver.query(Phone.CONTENT_URI, PHONE_ID_PROJECTION, null, null, null); in testPhoneQueryBadLimit() 99 final Cursor c = mResolver.query(uri, projection, selection, null, sortOrder); in assertQueryValid() 108 final Cursor c = mResolver.query(uri, projection, selection, null, sortOrder); in assertQueryThrows()
|
D | VoicemailCleanupServiceTest.java | 78 mCleanupService.handleIntentInternal(packageIntent, mResolver); in sendIntent() 84 mResolver.insert(Voicemails.buildSourceUri(sourcePackage), values); in insertDataForPackage() 85 mResolver.insert(Status.buildSourceUri(sourcePackage), values); in insertDataForPackage() 95 Cursor cursor = mResolver.query( in checkDataExistsForPackage() 98 cursor = mResolver.query( in checkDataExistsForPackage() 104 Cursor cursor = mResolver.query( in checkDataDoesNotExistForPackage() 107 cursor = mResolver.query( in checkDataDoesNotExistForPackage()
|
D | DirectoryTest.java | 79 long contactId = queryContactId(RawContactUtil.createRawContactWithName(mResolver, "John", in testForwardingToLocalContacts() 85 Cursor cursor = mResolver.query(contentUri, in testForwardingToLocalContacts() 98 long contactId1 = queryContactId(RawContactUtil.createRawContactWithName(mResolver, "Bob", in testForwardingToLocalInvisibleContacts() 104 long contactId2 = queryContactId(RawContactUtil.createRawContactWithName(mResolver, "Helen", in testForwardingToLocalInvisibleContacts() 111 Cursor cursor = mResolver.query(contentUri, in testForwardingToLocalInvisibleContacts() 117 mResolver.delete(Data.CONTENT_URI, in testForwardingToLocalInvisibleContacts() 121 cursor = mResolver.query(contentUri, in testForwardingToLocalInvisibleContacts()
|
D | ContactDirectoryManagerTest.java | 177 Cursor cursor = mResolver.query(Directory.CONTENT_URI, null, null, null, in testScanAllProviders() 229 Cursor cursor = mResolver.query(Directory.CONTENT_URI, null, null, null, null); in testPackageInstalled() 247 cursor = mResolver.query(Directory.CONTENT_URI, null, null, null, null); in testPackageInstalled() 289 Cursor cursor = mResolver.query(Directory.CONTENT_URI, null, null, null, null); in testPackageUninstalled() 298 cursor = mResolver.query(Directory.CONTENT_URI, null, null, null, null); in testPackageUninstalled() 335 Cursor cursor = mResolver.query(Directory.CONTENT_URI, null, null, null, null); in testPackageReplaced() 347 cursor = mResolver.query(Directory.CONTENT_URI, null, null, null, null); in testPackageReplaced() 393 Cursor cursor = mResolver.query(Directory.CONTENT_URI, null, null, null, null); in testPackageRenamed() 412 cursor = mResolver.query(Directory.CONTENT_URI, null, null, null, null); in testPackageRenamed() 460 Cursor cursor = mResolver.query(Directory.CONTENT_URI, null, null, null, null); in testAccountRemoval() [all …]
|
/packages/apps/Dialer/tests/src/com/android/dialer/database/ |
D | FilteredNumberProviderTest.java | 32 private ContentResolver mResolver; field in FilteredNumberProviderTest 48 mResolver = getMockContentResolver(); in setUp() 53 Uri uri = mResolver.insert( in testInsert() 62 Cursor cursor = mResolver.query( in testQuery() 72 Uri uri = mResolver.insert(FilteredNumberContract.FilteredNumber.CONTENT_URI, testValues); in testInsertAndQuery() 75 Cursor cursor = mResolver.query(uri, null, null, null, null); in testInsertAndQuery() 86 mResolver.query( in testIllegalUri() 98 Uri uri = mResolver.insert(FilteredNumberContract.FilteredNumber.CONTENT_URI, testValues); in testQueryWithId() 102 Cursor cursor = mResolver.query( in testQueryWithId() 116 Uri uri = mResolver.insert( in testDelete() [all …]
|
D | VoicemailArchiveProviderTest.java | 41 private MockContentResolver mResolver; field in VoicemailArchiveProviderTest 52 mResolver = getMockContentResolver(); in setUp() 125 mResolver.query(Uri.withAppendedPath(VoicemailArchive.CONTENT_URI, TEST_STRING), in testQuery_illegalUri() 138 mResolver.update(mVoicemailUri, values, null, null); in testUpdate() 153 mResolver.update(VoicemailArchive.CONTENT_URI, values, getIdQuery(), null); in testUpdate_selection() 163 mResolver.update(Uri.withAppendedPath(VoicemailArchive.CONTENT_URI, TEST_STRING), in testUpdate_illegalUri() 174 mResolver.delete(mVoicemailUri, null, null); in testDelete() 184 mResolver.delete(VoicemailArchive.CONTENT_URI, getIdQuery(), null); in testDelete_selection() 191 mResolver.delete(Uri.withAppendedPath(VoicemailArchive.CONTENT_URI, TEST_STRING), in testDelete_illegalUri() 198 Cursor tempCursor = mResolver.query(mVoicemailUri, null, null, null, null); in doesRowExist() [all …]
|
/packages/providers/BlockedNumberProvider/tests/src/com/android/providers/blockednumber/ |
D | BlockedNumberProviderTest.java | 60 private ContentResolver mResolver; field in BlockedNumberProviderTest 69 mResolver = mMockContext.getContentResolver(); in setUp() 109 try (Cursor c = mResolver.query(uri, null, null, null, null)) { in assertRowCount() 115 assertEquals(BlockedNumbers.CONTENT_TYPE, mResolver.getType( in testGetType() 118 assertEquals(BlockedNumbers.CONTENT_ITEM_TYPE, mResolver.getType( in testGetType() 121 assertNull(mResolver.getType( in testGetType() 162 Cursor c = mResolver.query(BlockedNumbers.CONTENT_URI, null, null, null, null); in testChangesNotified() 176 mResolver.delete(uri, null, null); in testChangesNotified() 187 final Uri uri = mResolver.insert(BlockedNumbers.CONTENT_URI, cv); in insert() 191 try (Cursor c = mResolver.query(uri, null, null, null, null)) { in insert() [all …]
|
/packages/providers/CalendarProvider/tests/src/com/android/providers/calendar/ |
D | CalendarProvider2Test.java | 97 private MockContentResolver mResolver; field in CalendarProvider2Test 277 Cursor cursor = mResolver.query(mEventsUri, null, null, null, null); in execute() 293 Cursor cursor = mResolver.query(mEventsUri, null, null, null, null); in execute() 949 mResolver = new MockContentResolver(); in setUp() 956 mContext = new IsolatedContext(mResolver, targetContextWrapper) { in setUp() 972 mResolver.addProvider(CalendarContract.AUTHORITY, mProvider); in setUp() 973 mResolver.addProvider("subscribedfeeds", new MockProvider("subscribedfeeds")); in setUp() 974 mResolver.addProvider("sync", new MockProvider("sync")); in setUp() 1087 Uri url = mResolver.insert( in insertCal() 1115 return mResolver.insert(addSyncQueryParams(uri, DEFAULT_ACCOUNT, DEFAULT_ACCOUNT_TYPE), m); in insertColor() [all …]
|
/packages/apps/Bluetooth/tests/src/com/android/bluetooth/tests/ |
D | BluetoothMapContentTest.java | 50 private ContentResolver mResolver; field in BluetoothMapContentTest 97 mResolver = mContext.getContentResolver(); in initTestSetup() 206 fd = mResolver.openFileDescriptor(uri, "r"); in dumpMessageContent() 250 Uri uriOut = mResolver.insert(mEmailMessagesUri, newMessage); in writeMessageContent() 253 fd = mResolver.openFileDescriptor(uri, "r"); in writeMessageContent() 255 fdOut = mResolver.openFileDescriptor(uri, "w"); in writeMessageContent() 314 Cursor c = mResolver.query(mEmailMessagesUri, EMAIL_ACCOUNT_PROJECTION, in callBluetoothProvider() 335 Bundle myBundle = mResolver.call(mEmailUri, BluetoothMapContract.METHOD_UPDATE_FOLDER, in callBluetoothProvider() 444 Cursor c = mResolver.query(mEmailMessagesUri, BT_MESSAGE_ID_PROJECTION, in testGetMessages() 476 Cursor c = mResolver.query(mEmailAccountUri, BT_ACCOUNT_PROJECTION, null, null, "_id DESC"); in testDumpAccounts() [all …]
|
D | BluetoothMapIMContentTest.java | 28 private ContentResolver mResolver; field in BluetoothMapIMContentTest 55 Cursor c = mResolver.query( in dumpImMessageTable() 78 Uri uriWithId = mResolver.insert(uri, cv); in insertImMessage() 95 Cursor convo = mResolver.query( in dumpImConversationTable() 115 Cursor cContact = mResolver.query( in dumpImContactsTable() 133 Cursor cContact = mResolver.query( in dumpImAccountsTable() 156 mResolver = mContext.getContentResolver(); in testDumpMessages() 168 mResolver = mContext.getContentResolver(); in testDumpConversations()
|
/packages/providers/DownloadProvider/tests/src/com/android/providers/downloads/ |
D | AbstractDownloadProviderFunctionalTest.java | 65 protected MockContentResolverWithNotify mResolver; field in AbstractDownloadProviderFunctionalTest 103 private final ContentResolver mResolver; field in AbstractDownloadProviderFunctionalTest.TestContext 110 mResolver = new MockContentResolverWithNotify(this); in TestContext() 121 return mResolver; in getContentResolver() 158 mResolver = (MockContentResolverWithNotify) mTestContext.getContentResolver(); in setUp() 167 mResolver.addProvider(PROVIDER_AUTHORITY, provider); in setUp() 194 Cursor cursor = mResolver.query(Downloads.Impl.ALL_DOWNLOADS_CONTENT_URI, in isDatabaseEmpty() 207 if (mResolver == null) { in cleanUpDownloads() 211 Cursor cursor = mResolver.query(Downloads.Impl.CONTENT_URI, columns, null, null, null); in cleanUpDownloads() 222 mResolver.delete(Downloads.Impl.CONTENT_URI, null, null); in cleanUpDownloads()
|
/packages/providers/TvProvider/tests/src/com/android/providers/tv/ |
D | EpgDataCleanupServiceTests.java | 48 private MockContentResolver mResolver; field in EpgDataCleanupServiceTests 59 mResolver = new MockContentResolver(); in setUp() 61 mResolver.addProvider(Settings.AUTHORITY, new MockContentProvider() { in setUp() 69 mResolver.addProvider(TvContract.AUTHORITY, mProvider); in setUp() 71 setContext(new MockTvProviderContext(mResolver, getSystemContext())); in setUp() 126 Uri uri = mResolver.insert(Channels.CONTENT_URI, values); in insertChannel() 143 Uri uri = mResolver.insert(Programs.CONTENT_URI, values); in insertPrograms() 156 Cursor cursor = mResolver.query(Programs.CONTENT_URI, projection, null, null, null); in queryPrograms() 182 Uri uri = mResolver.insert(WatchedPrograms.CONTENT_URI, values); in insertWatchedPrograms() 195 Cursor cursor = mResolver.query(WatchedPrograms.CONTENT_URI, projection, null, null, null); in queryWatchedPrograms()
|
/packages/apps/Dialer/src/com/android/dialer/voicemail/ |
D | VoicemailAsyncTaskUtil.java | 88 private final ContentResolver mResolver; field in VoicemailAsyncTaskUtil 93 mResolver = Preconditions.checkNotNull(contentResolver); in VoicemailAsyncTaskUtil() 111 try (Cursor cursor = mResolver.query(voicemailUri, in getVoicemailFilePath() 146 return mResolver.update(voicemailUri, values, null, null) > 0; in setVoicemailArchiveStatus() 185 Uri insertedVoicemailUri = mResolver.insert( in archiveVoicemailContent() 193 try (InputStream inputStream = mResolver.openInputStream(voicemailUri); in archiveVoicemailContent() 195 mResolver.openOutputStream(insertedVoicemailUri)) { in archiveVoicemailContent() 207 mResolver.delete(insertedVoicemailUri, null, null); in archiveVoicemailContent() 318 return mResolver.query( in getCallLogInfoCursor() 326 return mResolver.query(voicemailUri, in getContentInfoCursor() [all …]
|