Home
last modified time | relevance | path

Searched refs:mResolver (Results 1 – 25 of 104) sorted by relevance

12345

/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/aggregation/
DContactAggregatorTest.java103 long rawContactId1 = RawContactUtil.createRawContactWithName(mResolver, "zz", "top"); in testCrudAggregationExceptions()
104 long rawContactId2 = RawContactUtil.createRawContactWithName(mResolver, "aa", "bottom"); in testCrudAggregationExceptions()
115 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()
151 long rawContactId = RawContactUtil.createRawContact(mResolver); in testAggregationCreatesNewAggregate()
153 Uri resultUri = DataUtil.insertStructuredName(mResolver, rawContactId, "Johna", "Smitha"); in testAggregationCreatesNewAggregate()
166 long rawContactId1 = RawContactUtil.createRawContact(mResolver, ACCOUNT_1); in testAggregationOfExactFullNameMatch()
167 DataUtil.insertStructuredName(mResolver, rawContactId1, "Johnb", "Smithb"); in testAggregationOfExactFullNameMatch()
169 long rawContactId2 = RawContactUtil.createRawContact(mResolver, ACCOUNT_2); in testAggregationOfExactFullNameMatch()
[all …]
DContactAggregator2Test.java103 long rawContactId1 = RawContactUtil.createRawContactWithName(mResolver, "zz", "top"); in testCrudAggregationExceptions()
104 long rawContactId2 = RawContactUtil.createRawContactWithName(mResolver, "aa", "bottom"); in testCrudAggregationExceptions()
115 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()
151 long rawContactId = RawContactUtil.createRawContact(mResolver); in testAggregationCreatesNewAggregate()
153 Uri resultUri = DataUtil.insertStructuredName(mResolver, rawContactId, "Johna", "Smitha"); in testAggregationCreatesNewAggregate()
166 long rawContactId1 = RawContactUtil.createRawContact(mResolver, ACCOUNT_1); in testAggregationOfExactFullNameMatch()
167 DataUtil.insertStructuredName(mResolver, rawContactId1, "Johnb", "Smithb"); in testAggregationOfExactFullNameMatch()
169 long rawContactId2 = RawContactUtil.createRawContact(mResolver, ACCOUNT_2); in testAggregationOfExactFullNameMatch()
[all …]
/packages/providers/TvProvider/tests/src/com/android/providers/tv/
DPackageRemovedReceiverTest.java44 private MockContentResolver mResolver; field in PackageRemovedReceiverTest
52 mResolver = new MockContentResolver(); in setUp()
53 mResolver.addProvider(Settings.AUTHORITY, new MockContentProvider() { in setUp()
61 mResolver.addProvider(TvContract.AUTHORITY, mProvider); in setUp()
63 setContext(new MockTvProviderContext(mResolver, getContext())); in setUp()
75 Utils.clearTvProvider(mResolver); in setUp()
80 Utils.clearTvProvider(mResolver); in tearDown()
96 long channelInPackage1Id = Utils.insertChannel(mResolver); in testPackageRemoved()
97 Utils.insertPrograms(mResolver, channelInPackage1Id, programInPackage1); in testPackageRemoved()
98 Utils.insertPreviewPrograms(mResolver, channelInPackage1Id, previewProgramInPackage1); in testPackageRemoved()
[all …]
DBootCompletedReceiverTest.java44 private MockContentResolver mResolver; field in BootCompletedReceiverTest
52 mResolver = new MockContentResolver(); in setUp()
53 mResolver.addProvider(Settings.AUTHORITY, new MockContentProvider() { in setUp()
61 mResolver.addProvider(TvContract.AUTHORITY, mProvider); in setUp()
64 new MockTvProviderContext(mResolver, getContext()); in setUp()
78 Utils.clearTvProvider(mResolver); in setUp()
83 Utils.clearTvProvider(mResolver); in tearDown()
104 long channelInNonExistingPackageId = Utils.insertChannel(mResolver); in testPackageRemoved()
105 Utils.insertPrograms(mResolver, channelInNonExistingPackageId, programInNonExistingPackage); in testPackageRemoved()
107 mResolver, channelInNonExistingPackageId, previewProgramInNonExistingPackage); in testPackageRemoved()
[all …]
DColumnFilterTest.java37 private MockContentResolver mResolver; field in ColumnFilterTest
44 mResolver = new MockContentResolver(); in setUp()
45 mResolver.addProvider(Settings.AUTHORITY, new MockContentProvider() { in setUp()
53 mResolver.addProvider(TvContract.AUTHORITY, mProvider); in setUp()
55 setContext(new MockTvProviderContext(mResolver, getContext())); in setUp()
60 Utils.clearTvProvider(mResolver); in setUp()
65 Utils.clearTvProvider(mResolver); in tearDown()
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()
[all …]
DUnrecognizedColumnsTest.java25 private MockContentResolver mResolver; field in UnrecognizedColumnsTest
34 mResolver = new MockContentResolver(); in setUp()
35 mResolver.addProvider(Settings.AUTHORITY, new MockContentProvider() { in setUp()
43 mResolver.addProvider(TvContract.AUTHORITY, mProvider); in setUp()
45 mContext = new MockTvProviderContext(mResolver, getContext()); in setUp()
60 Utils.clearTvProvider(mResolver); in tearDown()
79 mResolver.query(TvContract.Programs.CONTENT_URI, projection, null, null, null); in testUnrecognizedColumns()
105 long myChannelId = Utils.insertChannel(mResolver); in insertPrograms()
107 Utils.insertPrograms(mResolver, myChannelId, mProgram); in insertPrograms()
110 long anotherChannelId = Utils.insertChannel(mResolver); in insertPrograms()
[all …]
DParametersTest.java37 private MockContentResolver mResolver; field in ParametersTest
45 mResolver = new MockContentResolver(); in setUp()
46 mResolver.addProvider(Settings.AUTHORITY, new MockContentProvider() { in setUp()
54 mResolver.addProvider(TvContract.AUTHORITY, mProvider); in setUp()
56 mContext = new MockTvProviderContext(mResolver, getContext()); in setUp()
62 Utils.clearTvProvider(mResolver); in setUp()
67 Utils.clearTvProvider(mResolver); in tearDown()
92 try (Cursor cursor = mResolver.query( in verifyChannelCount()
101 mResolver.insert(Channels.CONTENT_URI, values); in insertChannelWithPackageName()
121 int count = mResolver.update(channelsUri, values, null, null); in verifyChannelUpdate()
[all …]
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
DVoicemailProviderTest.java111 Uri uri = mResolver.insert(voicemailUri(), getTestVoicemailValues()); in testInsert()
124 Uri uri = mResolver.insert(voicemailUri(), values); in testInsertReadMessageIsNotNew()
132 Cursor c = mResolver.query(uri, projection, Voicemails.NEW + "=0", null, in testInsertReadMessageIsNotNew()
150 mResolver.bulkInsert(voicemailUri(), in testBulkInsert()
158 OutputStream out = mResolver.openOutputStream(uri); in testFileContent()
163 InputStream in = mResolver.openInputStream(uri); in testFileContent()
190 int count = mResolver.update(uri, values, null, null); in testUpdate()
197 final Uri uri = mResolver.insert(voicemailUri(), getTestVoicemailValues()); in testUpdateOwnPackageVoicemail_NotDirty()
200 mResolver.update(uri, updateValues, null, null); in testUpdateOwnPackageVoicemail_NotDirty()
203 try (Cursor cursor = mResolver in testUpdateOwnPackageVoicemail_NotDirty()
[all …]
DContactsProvider2Test.java1015 Uri rowUri = mResolver.insert(RawContacts.CONTENT_URI, values); in testRawContactsInsert()
1028 long rawContactId = RawContactUtil.createRawContactWithName(mResolver); in testDataDirectoryWithLookupUri()
1053 Cursor cursor = mResolver.query(dataUri, new String[]{ Data.DATA1 }, null, null, Data._ID); in assertDataRows()
1075 long rawContactId1 = RawContactUtil.createRawContactWithName(mResolver, account1); in testContactEntitiesWithIdBasedUri()
1080 long rawContactId2 = RawContactUtil.createRawContact(mResolver, account2); in testContactEntitiesWithIdBasedUri()
1097 long rawContactId1 = RawContactUtil.createRawContactWithName(mResolver, account1); in testContactEntitiesWithLookupUri()
1102 long rawContactId2 = RawContactUtil.createRawContact(mResolver, account2); in testContactEntitiesWithLookupUri()
1129 Cursor cursor = mResolver.query(entityUri, null, null, null, in assertEntityRows()
1189 long rawContactId = RawContactUtil.createRawContactWithName(mResolver, "John", "Doe"); in testDataInsert()
1193 Uri dataUri = mResolver.insert(Data.CONTENT_URI, values); in testDataInsert()
[all …]
DLegacyContactsProviderTest.java81 Uri uri = mResolver.insert(People.CONTENT_URI, values); in testPeopleInsert()
94 Uri uri = mResolver.insert(People.CONTENT_URI, values); in testPeopleUpdate()
102 mResolver.update(uri, values, null, null); 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()
117 mResolver.delete(personId, null, null); in testPeopleDelete()
119 Cursor c = mResolver.query(personId, null, People.NAME + "='John Doe'" , null, null); in testPeopleDelete()
124 mResolver.query(People.DELETED_CONTENT_URI, null, null, null, null); in testPeopleDelete()
133 mResolver.insert(People.CONTENT_URI, values); in testPeopleFilter()
137 mResolver.insert(People.CONTENT_URI, values); in testPeopleFilter()
[all …]
DSearchIndexManagerTest.java52 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 …]
DCallLogProviderTest.java91 mResolver.delete(Calls.CONTENT_URI_WITH_VOICEMAIL, null, null); in tearDown()
100 Uri uri = mResolver.insert(Calls.CONTENT_URI, values); in testInsert_RegularCallRecord()
124 mResolver.insert(Calls.CONTENT_URI, values); in testInsert_VoicemailCallRecord()
129 Uri uri = mResolver.insert(Calls.CONTENT_URI_WITH_VOICEMAIL, values); in testInsert_VoicemailCallRecord()
148 int count = mResolver.update(uri, values, null, null); in testUpdate()
157 mResolver.delete(uri, null, null); in testDelete()
163 int count = mResolver.delete(Calls.CONTENT_URI, Calls._ID + "=" in testDelete()
171 mResolver.insert(Calls.CONTENT_URI, values); in testCallLogFilter()
174 Cursor c = mResolver.query(filterUri, null, null, null, null); in testCallLogFilter()
181 c = mResolver.query(filterUri, null, null, null, null); in testCallLogFilter()
[all …]
DContactMetadataProviderTest.java112 mResolver.insert(Uri.withAppendedPath(MetadataSync.METADATA_AUTHORITY_URI, in testInsertWithInvalidUri()
122 mResolver.update(Uri.withAppendedPath(MetadataSync.METADATA_AUTHORITY_URI, in testUpdateWithInvalidUri()
131 Cursor c = mResolver.query(MetadataSync.CONTENT_URI, null, SELECTION_BY_TEST_ACCOUNT1, in testGetMetadataByAccount()
167 mResolver.insert(MetadataSync.CONTENT_URI, newValues); in testFailOnInsertMetadataForSameAccountIdAndBackupId()
177 mResolver, TEST_ACCOUNT_NAME1, TEST_ACCOUNT_TYPE1, TEST_DATA_SET1); in testInsertAndUpdateMetadataSync()
181 assertEquals(1, mResolver.update(rawContactUri, values, null, null)); 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()
[all …]
DGroupsTest.java164 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 …]
DBaseContactsProvider2Test.java105 protected MockContentResolver mResolver; field in BaseContactsProvider2Test
133 mResolver = mActor.resolver; in setUp()
194 return mResolver.update(uri, values, null, null); in updateItem()
219 return ContentUris.parseId(mResolver.insert(uri, values)); 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()
[all …]
DContactsProvider2TransactionTest.java67 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 …]
DSqlInjectionDetectionTest.java98 long rawContactId = RawContactUtil.createRawContactWithName(mResolver, "Hot", "Tamale"); in testPhoneQueryBadLimit()
107 final Cursor c = mResolver.query(Phone.CONTENT_URI, PHONE_ID_PROJECTION, null, null, null); in testPhoneQueryBadLimit()
118 final Cursor c = mResolver.query(uri, projection, selection, null, sortOrder); in assertQueryValid()
125 final Cursor c = mResolver.query(uri, projection, selection, null, sortOrder); in assertQueryThrows()
132 mResolver.delete(Contacts.CONTENT_URI, ";delete from contacts;--", null); in testBadDelete()
136 mResolver.delete(Contacts.CONTENT_URI, "_id in data_usage_stat", null); in testBadDelete()
143 mResolver.update(Data.CONTENT_URI, cv(), ";delete from contacts;--", null); in testBadUpdate()
147 mResolver.update(Data.CONTENT_URI, cv(), "_id in data_usage_stat", null); in testBadUpdate()
150 mResolver.update(Data.CONTENT_URI, cv("_id/**/", 1), null, null); in testBadUpdate()
153 mResolver.update(Data.CONTENT_URI, cv("[data1]", 1), null, null); in testBadUpdate()
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/development/gamedriver/
DGameDriverEnableForAllAppsPreferenceControllerTest.java61 private ContentResolver mResolver; field in GameDriverEnableForAllAppsPreferenceControllerTest
71 mResolver = mContext.getContentResolver(); in setUp()
80 Settings.Global.putInt(mResolver, Settings.Global.DEVELOPMENT_SETTINGS_ENABLED, 1); in setUp()
82 mResolver, Settings.Global.GAME_DRIVER_ALL_APPS, GAME_DRIVER_DEFAULT); in setUp()
92 mResolver, Settings.Global.GAME_DRIVER_ALL_APPS, GAME_DRIVER_DEFAULT); in getAvailability_developmentSettingsEnabledAndGameDriverSettingsOn_available()
99 Settings.Global.putInt(mResolver, Settings.Global.DEVELOPMENT_SETTINGS_ENABLED, 0); in getAvailability_developmentSettingsDisabled_conditionallyUnavailable()
106 Settings.Global.putInt(mResolver, Settings.Global.GAME_DRIVER_ALL_APPS, GAME_DRIVER_OFF); in getAvailability_gameDriverOff_conditionallyUnavailable()
114 mResolver, Settings.Global.GAME_DRIVER_ALL_APPS, GAME_DRIVER_DEFAULT); in displayPreference_shouldAddListPreference()
126 verify(mGameDriverContentObserver).register(mResolver); in onStart_shouldRegister()
134 verify(mGameDriverContentObserver).unregister(mResolver); in onStop_shouldUnregister()
[all …]
DGameDriverAppPreferenceControllerTest.java78 private ContentResolver mResolver; field in GameDriverAppPreferenceControllerTest
88 mResolver = mContext.getContentResolver(); in setUp()
99 Settings.Global.putInt(mResolver, Settings.Global.DEVELOPMENT_SETTINGS_ENABLED, 1); in getAvailability_developmentSettingsEnabledAndGameDriverOn_available()
101 mResolver, Settings.Global.GAME_DRIVER_ALL_APPS, GAME_DRIVER_DEFAULT); in getAvailability_developmentSettingsEnabledAndGameDriverOn_available()
109 Settings.Global.putInt(mResolver, Settings.Global.DEVELOPMENT_SETTINGS_ENABLED, 0); in getAvailability_developmentSettingsDisabled_conditionallyUnavailable()
117 Settings.Global.putInt(mResolver, Settings.Global.GAME_DRIVER_ALL_APPS, GAME_DRIVER_OFF); in getAvailability_gameDriverOff_conditionallyUnavailable()
139 verify(mGameDriverContentObserver).register(mResolver); in onStart_shouldRegister()
148 verify(mGameDriverContentObserver).unregister(mResolver); in onStop_shouldUnregister()
153 Settings.Global.putInt(mResolver, Settings.Global.DEVELOPMENT_SETTINGS_ENABLED, 1); in updateState_available_visible()
155 mResolver, Settings.Global.GAME_DRIVER_ALL_APPS, GAME_DRIVER_DEFAULT); in updateState_available_visible()
[all …]
DGameDriverGlobalSwitchBarControllerTest.java52 private ContentResolver mResolver; field in GameDriverGlobalSwitchBarControllerTest
59 mResolver = mContext.getContentResolver(); in setUp()
65 mResolver, Settings.Global.GAME_DRIVER_ALL_APPS, GAME_DRIVER_DEFAULT); in constructor_gameDriverOn_shouldCheckSwitchBar()
74 Settings.Global.putInt(mResolver, Settings.Global.GAME_DRIVER_ALL_APPS, GAME_DRIVER_OFF); in constructor_gameDriverOff_shouldUncheckSwitchBar()
83 Settings.Global.putInt(mResolver, Settings.Global.DEVELOPMENT_SETTINGS_ENABLED, 1); in constructor_developmentSettingsEnabled_shouldEnableSwitchBar()
92 Settings.Global.putInt(mResolver, Settings.Global.DEVELOPMENT_SETTINGS_ENABLED, 0); in constructor_developmentSettingsDisabled_shouldDisableSwitchBar()
108 verify(mGameDriverContentObserver).register(mResolver); in onStart_shouldStartListeningAndRegister()
120 verify(mGameDriverContentObserver).unregister(mResolver); in onStop_shouldStopListeningAndUnregister()
125 Settings.Global.putInt(mResolver, Settings.Global.GAME_DRIVER_ALL_APPS, GAME_DRIVER_OFF); in onSwitchToggled_checked_shouldTurnOnGameDriver()
131 mResolver, Settings.Global.GAME_DRIVER_ALL_APPS, GAME_DRIVER_DEFAULT)) in onSwitchToggled_checked_shouldTurnOnGameDriver()
[all …]
/packages/providers/CalendarProvider/tests/src/com/android/providers/calendar/
DCalendarProvider2Test.java103 private MockContentResolver mResolver; field in CalendarProvider2Test
313 Cursor cursor = mResolver.query(mEventsUri, null, null, null, null); in execute()
329 Cursor cursor = mResolver.query(mEventsUri, null, null, null, null); in execute()
985 mResolver = new MockContentResolver(); in setUp()
992 mContext = new IsolatedContext(mResolver, targetContextWrapper) { in setUp()
1003 mWorkContext = new IsolatedContext(mResolver, targetContextWrapper) { in setUp()
1050 mResolver.addProvider(CalendarContract.AUTHORITY, mProvider); in setUp()
1051 mResolver.addProvider("subscribedfeeds", new MockProvider("subscribedfeeds")); in setUp()
1052 mResolver.addProvider("sync", new MockProvider("sync")); in setUp()
1053 mResolver.addProvider(WORK_PROFILE_AUTHORITY, mWorkProfileProvider); in setUp()
[all …]
/packages/providers/BlockedNumberProvider/tests/src/com/android/providers/blockednumber/
DBlockedNumberProviderTest.java62 private ContentResolver mResolver; field in BlockedNumberProviderTest
71 mResolver = mMockContext.getContentResolver(); in setUp()
111 try (Cursor c = mResolver.query(uri, null, null, null, null)) { in assertRowCount()
117 assertEquals(BlockedNumbers.CONTENT_TYPE, mResolver.getType( in testGetType()
120 assertEquals(BlockedNumbers.CONTENT_ITEM_TYPE, mResolver.getType( in testGetType()
123 assertNull(mResolver.getType( in testGetType()
164 Cursor c = mResolver.query(BlockedNumbers.CONTENT_URI, null, null, null, null); in testChangesNotified()
178 mResolver.delete(uri, null, null); in testChangesNotified()
189 final Uri uri = mResolver.insert(BlockedNumbers.CONTENT_URI, cv); in insert()
193 try (Cursor c = mResolver.query(uri, null, null, null, null)) { in insert()
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/batterysaver/
DBatterySaverScheduleSeekBarControllerTest.java25 private ContentResolver mResolver; field in BatterySaverScheduleSeekBarControllerTest
35 mResolver = mContext.getContentResolver(); in setUp()
40 Settings.Global.putInt(mResolver, Global.LOW_POWER_MODE_TRIGGER_LEVEL, 5); in onPreferenceChange_updatesSettingsGlobal()
42 assertThat(Settings.Global.getInt(mResolver, Global.LOW_POWER_MODE_TRIGGER_LEVEL, -1)) in onPreferenceChange_updatesSettingsGlobal()
50 Settings.Global.putInt(mResolver, Global.AUTOMATIC_POWER_SAVE_MODE, in updateSeekBar_routineMode_hasCorrectProperties()
58 Settings.Global.putInt(mResolver, Global.AUTOMATIC_POWER_SAVE_MODE, in updateSeekBar_percentageMode_hasCorrectProperties()
60 Settings.Global.putInt(mResolver, Global.LOW_POWER_MODE_TRIGGER_LEVEL, 5); in updateSeekBar_percentageMode_hasCorrectProperties()
67 Settings.Global.putInt(mResolver, Global.AUTOMATIC_POWER_SAVE_MODE, in updateSeekBar_noneMode_hasCorrectProperties()
69 Settings.Global.putInt(mResolver, Global.LOW_POWER_MODE_TRIGGER_LEVEL, 0); in updateSeekBar_noneMode_hasCorrectProperties()
76 Settings.Global.putInt(mResolver, Global.AUTOMATIC_POWER_SAVE_MODE, in addToScreen_addsToEnd()
[all …]
/packages/providers/ContactsProvider/tests2/src/com/android/providers/contacts/tests2/
DAllUriTest.java206 private ContentResolver mResolver; field in AllUriTest
215 mResolver = getContext().getContentResolver(); in setUp()
295 try (Cursor c = mResolver.query(uri, in getColumns()
309 try (Cursor c = mResolver.query(uri, projection, selection, in checkQueryExecutable()
318 try (Cursor c = mResolver.query(uri, projection, selection, in checkQueryExecutable()
327 try (Cursor c = mResolver.query( in checkQueryExecutable()
339 try (Cursor c = mResolver.query( in checkQueryExecutable()
357 try (Cursor c = mResolver.query(uri, projection, selection, in checkQueryNotExecutable()
561 try (Cursor c = mResolver.query( in checkColumnAccessible()
585 try (Cursor c = mResolver.query(uri, projection, selection, in checkColumnNotAccessibleInner()
[all …]
/packages/apps/Car/LocalMediaPlayer/src/com/android/car/media/localmediaplayer/
DDataModel.java82 private ContentResolver mResolver; field in DataModel
89 mResolver = context.getContentResolver(); in DataModel()
93 FilesystemListTask query = new FilesystemListTask(result, ALL_AUDIO_URI, mResolver); in onQueryByFolder()
99 .setResolver(mResolver) in onQueryByAlbum()
111 .setResolver(mResolver) in onQueryByArtist()
123 .setResolver(mResolver) in onQueryByGenre()
154 cursor = mResolver.query(uri, null, AudioColumns.TITLE_KEY + " = ?", in getMetadata()
177 InputStream dummy = mResolver.openInputStream(albumArtUri); in getMetadata()
205 .setResolver(mResolver) in onQueryByKey()
244 private ContentResolver mResolver; field in DataModel.FilesystemListTask
[all …]

12345