Home
last modified time | relevance | path

Searched refs:getContentResolver (Results 1 – 25 of 106) sorted by relevance

12345

/cts/tests/tests/permission/src/android/permission/cts/
DContactsProviderTest.java38 getContext().getContentResolver().query(ContactsContract.Contacts.CONTENT_URI, in testQueryContacts()
56 getContext().getContentResolver().insert(ContactsContract.Contacts.CONTENT_URI, in testInsertContacts()
74 getContext().getContentResolver().query(ContactsContract.Profile.CONTENT_URI, in testQueryProfile()
94 getContext().getContentResolver().insert(ContactsContract.Profile.CONTENT_URI, in testInsertProfile()
112 getContext().getContentResolver().update(ContactsContract.Profile.CONTENT_URI, in testUpdateProfile()
130 getContext().getContentResolver().query( in testQueryPhoneEnterprise()
149 getContext().getContentResolver().query( in testRawContactsEntityCorp()
DTvPermissionTest.java48 getContext().getContentResolver().insert(uri, values); in verifyInsert()
58 getContext().getContentResolver().update(uri, values, null, null); in verifyUpdate()
67 getContext().getContentResolver().delete(uri, null, null); in verifyDelete()
DProviderPermissionTest.java84 getContext().getContentResolver().insert(Settings.System.CONTENT_URI, value); in testWriteSettings()
/cts/tests/tests/permission2/src/android/permission2/cts/
DContactsProviderTest.java36 getContext().getContentResolver().query(ContactsContract.Contacts.CONTENT_URI, in testQueryContacts()
47 getContext().getContentResolver().insert(ContactsContract.Contacts.CONTENT_URI, in testInsertContacts()
62 getContext().getContentResolver().query(ContactsContract.Profile.CONTENT_URI, in testQueryProfile()
74 getContext().getContentResolver().insert(ContactsContract.Profile.CONTENT_URI, in testInsertProfile()
89 getContext().getContentResolver().update(ContactsContract.Profile.CONTENT_URI, in testUpdateProfile()
DNoWriteSecureSettingsPermissionTest.java40 getContext().getContentResolver().insert(Settings.Secure.CONTENT_URI, values); in testWriteSecureSettings()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/helpers/
DSensorFeaturesDeactivator.java99 ContentResolver contentResolver = mStateContainer.getContentResolver(); in getSettingMode()
119 mStateContainer.getContentResolver(), in getSettingMode()
150 mStateContainer.getContentResolver(), in getSettingMode()
165 mStateContainer.getContentResolver(), in getSettingMode()
180 mStateContainer.getContentResolver(), in getSettingMode()
194 mStateContainer.getContentResolver(), in getSettingMode()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/tv/
DMockTvInputSetupActivity.java60 try (Cursor cursor = getContentResolver().query(uri, projection, null, null, null)) { in onCreate()
72 Uri channelUri = getContentResolver().insert(uri, values); in onCreate()
75 getContentResolver().delete(channelUri, null, null); in onCreate()
76 channelUri = getContentResolver().insert(uri, values); in onCreate()
94 getContentResolver().bulkInsert(Programs.CONTENT_URI, list.toArray( in onCreate()
/cts/tests/tests/telecom/src/android/telecom/cts/
DDefaultDialerOperationsTest.java88 mContext.getContentResolver().query(Voicemails.CONTENT_URI, null, null, null, null); in testVoicemailReadWritePermissions()
94 mContext.getContentResolver().delete(Voicemails.CONTENT_URI, in testVoicemailReadWritePermissions()
101 mContext.getContentResolver().update( in testVoicemailReadWritePermissions()
112 mContext.getContentResolver().query(Voicemails.CONTENT_URI, null, null, null, null); in testVoicemailReadWritePermissions()
113 mContext.getContentResolver().delete(Voicemails.CONTENT_URI, in testVoicemailReadWritePermissions()
/cts/tests/tests/content/src/android/content/cts/
DDummyProvider.java107 getContext().getContentResolver().notifyChange(uri, null); in insert()
126 c.setNotificationUri(getContext().getContentResolver(), uri); in query()
172 getContext().getContentResolver().notifyChange(uri, null); in update()
189 getContext().getContentResolver().notifyChange(uri, null); in delete()
DMockContentProvider.java170 getContext().getContentResolver().notifyChange(uri, null); in delete()
226 getContext().getContentResolver().notifyChange(url, null); in insert()
294 c.setNotificationUri(getContext().getContentResolver(), uri); in query()
332 getContext().getContentResolver().notifyChange(uri, null); in update()
/cts/hostsidetests/devicepolicy/app/IntentReceiver/src/com/android/cts/intent/receiver/
DIntentReceiverActivity.java90 getContentResolver().takePersistableUriPermission(uri, in onCreate()
116 InputStream is = getContentResolver().openInputStream(uri); in getFirstLineFromUri()
123 getContentResolver().openOutputStream(uri)); in writeToUri()
/cts/hostsidetests/appsecurity/test-apps/UsePermissionDiffCert/src/com/android/cts/usespermissiondiffcertapp/
DAccessPermissionWithDiffSigTest.java71 getContext().getContentResolver().query(uri, null, null, null, null); in assertReadingContentUriNotAllowed()
80 getContext().getContentResolver().query(uri, null, null, null, null); in assertReadingContentUriAllowed()
108 getContext().getContentResolver().openFileDescriptor(uri, mode).close(); in assertOpenFileDescriptorModeNotAllowed()
118 final ContentResolver resolver = getContext().getContentResolver(); in assertWritingContentUriNotAllowed()
141 getContext().getContentResolver().openOutputStream(uri).close(); in assertWritingContentUriNotAllowed()
157 final ContentResolver resolver = getContext().getContentResolver(); in assertWritingContentUriAllowed()
629 Cursor c = getContext().getContentResolver().query(uri, in assertReadingClipAllowed()
638 Cursor c = getContext().getContentResolver().query(uri, in assertReadingClipAllowed()
745 getContext().getContentResolver().insert(uri, new ContentValues()); in assertWritingClipAllowed()
750 getContext().getContentResolver().insert(uri, new ContentValues()); in assertWritingClipAllowed()
[all …]
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/base/
DISensorTestStateContainer.java72 ContentResolver getContentResolver(); in getContentResolver() method
/cts/hostsidetests/appsecurity/test-apps/UsePermissionAppCompat/src/com/android/cts/usepermission/
DUsePermissionCompatTest.java55 assertMediaReadWriteAccess(getInstrumentation().getContext().getContentResolver()); in testCompatDefault()
77 assertMediaNoAccess(getInstrumentation().getContext().getContentResolver()); in testCompatRevoked()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/
DTestResultsProvider.java154 getContext().getContentResolver().notifyChange(uri, null); in insert()
192 getContext().getContentResolver().notifyChange(uri, null); in update()
203 getContext().getContentResolver().notifyChange(uri, null); in delete()
222 ContentResolver resolver = context.getContentResolver(); in setTestResult()
/cts/hostsidetests/appsecurity/test-apps/UsePermissionApp/src/com/android/cts/usepermission/
DUsePermissionTest.java57 assertMediaNoAccess(getInstrumentation().getContext().getContentResolver()); in testDefault()
70 assertMediaReadWriteAccess(getInstrumentation().getContext().getContentResolver()); in testGranted()
84 assertMediaNoAccess(getInstrumentation().getContext().getContentResolver()); in testInteractiveGrant()
118 assertMediaReadWriteAccess(getInstrumentation().getContext().getContentResolver()); in testInteractiveGrant()
/cts/tests/tests/text/src/android/text/method/cts/
DPasswordTransformationMethodTest.java204 mPasswordPrefBackUp = System.getInt(mActivity.getContentResolver(), in savePasswordPref()
214 System.putInt(mActivity.getContentResolver(), System.TEXT_SHOW_PASSWORD, in resumePasswordPref()
220 System.putInt(mActivity.getContentResolver(), System.TEXT_SHOW_PASSWORD, in switchShowPassword()
/cts/tests/tests/provider/src/android/provider/cts/
DContacts_SettingsTest.java29 mContentResolver = getInstrumentation().getTargetContext().getContentResolver(); in setUp()
DSettingsTest.java45 ContentResolver cr = mContext.getContentResolver(); in testSystemTable()
105 ContentResolver cr = mContext.getContentResolver(); in testSecureTable()
129 ContentResolver cr = mContext.getContentResolver(); in tryBadTableAccess()
DTelephonyProviderTest.java50 mContentResolver = getInstrumentation().getContext().getContentResolver(); in setUp()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/location/
DLocationModeTestActivity.java211 ContentResolver cr = getContentResolver(); in getLocationMode()
239 ContentResolver cr = getContentResolver(); in testSecureProviderIsEnabled()
246 ContentResolver cr = getContentResolver(); in testSecureProviderIsDisabled()
/cts/tests/tests/tv/src/android/media/tv/cts/
DTvViewTest.java178 StubTunerTvInputService.deleteChannels(mActivity.getContentResolver(), mStubInfo); in tearDown()
207 StubTunerTvInputService.insertChannels(mActivity.getContentResolver(), mStubInfo); in tryTuneAllChannels()
211 try (Cursor cursor = mActivity.getContentResolver().query( in tryTuneAllChannels()
373 StubTunerTvInputService.insertChannels(mActivity.getContentResolver(), mStubInfo); in testOnUnhandledInputEventListener()
377 try (Cursor cursor = mActivity.getContentResolver().query( in testOnUnhandledInputEventListener()
/cts/tests/tests/calllog/src/android/calllog/cts/
DCallLogBackupTest.java215 ContentResolver resolver = getContext().getContentResolver(); in clearCallLog()
228 getContext().getContentResolver().insert(Calls.CONTENT_URI, values); in addCall()
234 ContentResolver resolver = getContext().getContentResolver(); in getCalls()
/cts/hostsidetests/appsecurity/test-apps/DocumentClient/src/com/android/cts/documentclient/
DDocumentsClientTest.java236 final ContentResolver resolver = getInstrumentation().getContext().getContentResolver(); in testTree()
305 final ContentResolver resolver = getInstrumentation().getContext().getContentResolver(); in getColumn()
316 InputStream in = getInstrumentation().getContext().getContentResolver() in readFully()
332 OutputStream out = getInstrumentation().getContext().getContentResolver() in writeFully()
/cts/tests/tests/voicesettings/src/android/voicesettings/cts/
DAirplaneModeTest.java81 return Settings.Global.getInt(mContext.getContentResolver(), in getMode()

12345