Home
last modified time | relevance | path

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

123456789

/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()
/cts/tests/tests/provider/src/android/provider/cts/
DSettingsTest.java89 ContentResolver cr = getContext().getContentResolver(); in testSystemTable()
140 ContentResolver cr = getContext().getContentResolver(); in testSecureTable()
164 ContentResolver cr = getContext().getContentResolver(); in tryBadTableAccess()
244 final int initialValue = Settings.System.getInt(getContext().getContentResolver(), in testNoStaleValueModifiedFromSameProcess()
249 Settings.System.putInt(getInstrumentation().getContext().getContentResolver(), in testNoStaleValueModifiedFromSameProcess()
251 final int actualValue = Settings.System.getInt(getContext().getContentResolver(), in testNoStaleValueModifiedFromSameProcess()
256 Settings.System.putInt(getContext().getContentResolver(), in testNoStaleValueModifiedFromSameProcess()
263 final int initialValue = Settings.System.getInt(getContext().getContentResolver(), in testNoStaleValueModifiedFromOtherProcess()
270 final int actualValue = Settings.System.getInt(getContext().getContentResolver(), in testNoStaleValueModifiedFromOtherProcess()
275 Settings.System.putInt(getContext().getContentResolver(), in testNoStaleValueModifiedFromOtherProcess()
[all …]
DMediaStoreUtils.java59 return context.getContentResolver().insert(params.insertUri, params.insertValues); in createPending()
176 return mContext.getContentResolver().openFileDescriptor(mUri, "rw"); in open()
187 return mContext.getContentResolver().openOutputStream(mUri); in openOutputStream()
201 mContext.getContentResolver().update(mUri, values, null, null); in publish()
210 mContext.getContentResolver().delete(mUri, null, null); in abandon()
/cts/tests/tests/permission2/src/android/permission2/cts/
DContactsProviderTest.java38 getContext().getContentResolver().query(ContactsContract.Contacts.CONTENT_URI, in testQueryContacts()
49 getContext().getContentResolver().insert(ContactsContract.Contacts.CONTENT_URI, in testInsertContacts()
64 getContext().getContentResolver().query(ContactsContract.Profile.CONTENT_URI, in testQueryProfile()
76 getContext().getContentResolver().insert(ContactsContract.Profile.CONTENT_URI, in testInsertProfile()
91 getContext().getContentResolver().update(ContactsContract.Profile.CONTENT_URI, in testUpdateProfile()
/cts/hostsidetests/devicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/
DAirplaneModeRestrictionTest.java68 Settings.Global.putInt(mContext.getContentResolver(), AIRPLANE_MODE_ON, 1); in testAirplaneModeTurnedOffWhenRestrictionSet()
73 mContext.getContentResolver(), Settings.Global.AIRPLANE_MODE_ON)); in testAirplaneModeTurnedOffWhenRestrictionSet()
83 Settings.Global.putInt(mContext.getContentResolver(), AIRPLANE_MODE_ON, 1); in testAirplaneModeCannotBeTurnedOnWithRestrictionOn()
85 mContext.getContentResolver(), AIRPLANE_MODE_ON)); in testAirplaneModeCannotBeTurnedOnWithRestrictionOn()
89 Settings.Global.putInt(mContext.getContentResolver(), AIRPLANE_MODE_ON, 1); in testAirplaneModeCanBeTurnedOnWithRestrictionOff()
91 mContext.getContentResolver(), AIRPLANE_MODE_ON)); in testAirplaneModeCanBeTurnedOnWithRestrictionOff()
/cts/tests/tests/provider/src/android/provider/cts/contacts/
DContactsMetadataProviderTest.java46 getContext().getContentResolver().query(CONTENT_URI, null, null, null, null); in testCallerCheck()
52 getContext().getContentResolver().insert(CONTENT_URI, new ContentValues()); in testCallerCheck()
58 getContext().getContentResolver().update(CONTENT_URI, new ContentValues(), null, null); in testCallerCheck()
64 getContext().getContentResolver().delete(CONTENT_URI, null, null); in testCallerCheck()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/helpers/
DSensorFeaturesDeactivator.java100 ContentResolver contentResolver = mStateContainer.getContentResolver(); in getSettingMode()
127 mStateContainer.getContentResolver(), in getSettingMode()
141 mStateContainer.getContentResolver(), in getSettingMode()
156 mStateContainer.getContentResolver(), in getSettingMode()
171 mStateContainer.getContentResolver(), in getSettingMode()
185 mStateContainer.getContentResolver(), in getSettingMode()
/cts/hostsidetests/appsecurity/test-apps/MediaStorageApp/src/com/android/cts/mediastorageapp/
DMediaStoreUtils.java53 return context.getContentResolver().insert(params.insertUri, params.insertValues); in createPending()
170 return mContext.getContentResolver().openFileDescriptor(mUri, "rw"); in open()
181 return mContext.getContentResolver().openOutputStream(mUri); in openOutputStream()
195 mContext.getContentResolver().update(mUri, values, null, null); in publish()
204 mContext.getContentResolver().delete(mUri, null, null); in abandon()
/cts/hostsidetests/numberblocking/app/src/com/android/cts/numberblocking/hostside/
DNumberBlockingAppTest.java29 assertTrue(mContext.getContentResolver().delete( in testCleanupBlockedNumberAsPrimaryUserSucceeds()
54 assertEquals(1, mContext.getContentResolver().delete( in testUnblockNumberAsPrimaryUserSucceeds()
63 mContext.getContentResolver().insert( in verifyInsertBlockedNumberSucceeds()
/cts/hostsidetests/devicepolicy/app/IntentReceiver/src/com/android/cts/intent/receiver/
DIntentReceiverActivity.java107 getContentResolver().takePersistableUriPermission(uri, in onCreate()
125 getContentResolver().notifyChange(uri, null); in onCreate()
133 getContentResolver().registerContentObserver(uri, false, uriObserver); in onCreate()
137 getContentResolver().unregisterContentObserver(uriObserver); in onCreate()
184 InputStream is = getContentResolver().openInputStream(uri); in getFirstLineFromUri()
191 getContentResolver().openOutputStream(uri)); in writeToUri()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/tv/
DMockTvInputSetupActivity.java69 try (Cursor cursor = getContentResolver().query(uri, projection, null, null, null)) { in onCreate()
93 Uri channelUri = getContentResolver().insert(uri, values); in onCreate()
96 getContentResolver().delete(channelUri, null, null); in onCreate()
97 channelUri = getContentResolver().insert(uri, values); in onCreate()
115 getContentResolver().bulkInsert(Programs.CONTENT_URI, list.toArray( in onCreate()
/cts/tests/tests/os/src/android/os/cts/
DPowerManagerTest.java68 ContentResolver resolver = getContext().getContentResolver(); in setUp()
80 ContentResolver resolver = getContext().getContentResolver(); in tearDown()
94 ContentResolver resolver = getContext().getContentResolver(); in testPowerManager_getPowerSaveMode()
113 ContentResolver resolver = getContext().getContentResolver(); in testPowerManager_setDynamicPowerSavings()
/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/JobSchedulerSharedUid/src/android/jobscheduler/
DDummyJobContentProvider.java93 getContext().getContentResolver().notifyChange(uri, null); in insert()
112 c.setNotificationUri(getContext().getContentResolver(), uri); in query()
138 getContext().getContentResolver().notifyChange(uri, null); in update()
155 getContext().getContentResolver().notifyChange(uri, null); in delete()
/cts/tests/vr/src/android/vr/cts/
DVrSetFIFOThreadTest.java55 … mOldVrListener = Settings.Secure.getString(mContext.getContentResolver(), ENABLED_VR_LISTENERS); in setUp()
60 Settings.Secure.putString(mContext.getContentResolver(), in tearDown()
78 Settings.Secure.putString(mContext.getContentResolver(), in testSetVrThreadAPISuccess()
102 Settings.Secure.putString(mContext.getContentResolver(), in testSetVrThreadAPIFailure()
/cts/tests/JobScheduler/src/android/jobscheduler/
DDummyJobContentProvider.java93 getContext().getContentResolver().notifyChange(uri, null); in insert()
112 c.setNotificationUri(getContext().getContentResolver(), uri); in query()
138 getContext().getContentResolver().notifyChange(uri, null); in update()
155 getContext().getContentResolver().notifyChange(uri, null); in delete()
/cts/tests/tests/telephonyprovider/src/android/telephonyprovider/cts/
DThreadsTest.java34 mContentResolver = mContext.getContentResolver(); in setupTestEnvironment()
39 ContentResolver contentResolver = getInstrumentation().getContext().getContentResolver(); in cleanup()
74 return mContext.getContentResolver().insert(Telephony.Sms.Inbox.CONTENT_URI, contentValues); in saveToTelephony()
/cts/tests/tests/content/src/android/content/cts/
DDummyProvider.java104 getContext().getContentResolver().notifyChange(uri, null); in insert()
123 c.setNotificationUri(getContext().getContentResolver(), uri); in query()
169 getContext().getContentResolver().notifyChange(uri, null); in update()
186 getContext().getContentResolver().notifyChange(uri, null); in delete()
/cts/tests/tests/widget/src/android/widget/cts/
DTextClockTest.java70 mDefaultTime1224 = Settings.System.getString(mActivity.getContentResolver(), in setup()
76 Settings.System.putString(mActivity.getContentResolver(), Settings.System.TIME_12_24, in teardown()
90 final ContentResolver resolver = mActivity.getContentResolver(); in testUpdate12_24()
152 final ContentResolver resolver = mActivity.getContentResolver();
180 final ContentResolver resolver = mActivity.getContentResolver(); in registerForChanges()
/cts/tests/tests/database/apps/src/com/android/cts/providerapp/
DDummyProvider.java60 cursor.setNotificationUris(getContext().getContentResolver(), in query()
74 getContext().getContentResolver().notifyChange(TEST_URI1, null); in call()
77 getContext().getContentResolver().notifyChange(TEST_URI2, null); in call()
/cts/tests/framework/base/windowmanager/util/src/android/server/wm/settings/
DSettingsSession.java146 setter.set(getContentResolver(), uri.getLastPathSegment(), value); in put()
152 return getter.get(getContentResolver(), uri.getLastPathSegment()); in get()
169 private static ContentResolver getContentResolver() { in getContentResolver() method in SettingsSession
170 return getInstrumentation().getTargetContext().getContentResolver(); in getContentResolver()
/cts/hostsidetests/appsecurity/test-apps/UsePermissionApp22/src/com/android/cts/usepermission/
DUsePermissionTest22.java55 try (Cursor c = mContext.getContentResolver().query(uri, null, null, null)) { in testCompatDefault()
78 try (Cursor c = mContext.getContentResolver().query(uri, null, null, null)) { in testCompatRevoked_part2()
160 try (Cursor c = mContext.getContentResolver().query(uri, null, null, null)) { in testAssertNoCalendarAccess()
168 try (Cursor c = mContext.getContentResolver().query(uri, null, null, null)) { in testAssertCalendarAccess()
182 return mContext.getContentResolver().insert(CalendarContract.Calendars.CONTENT_URI, values); in insertCalendarItem()
/cts/tests/JobScheduler/src/android/jobscheduler/cts/
DTriggerContentTest.java106 getContext().getContentResolver().delete(mActiveUris[which], null, null); in cleanupActive()
256 getContext().getContentResolver().notifyChange(uribase, null, 0); in testDescendantsObserver()
257 getContext().getContentResolver().notifyChange(uri1, null, 0); in testDescendantsObserver()
273 getContext().getContentResolver().notifyChange(uribase, null, in testDescendantsObserver()
275 getContext().getContentResolver().notifyChange(uri2, null, 0); in testDescendantsObserver()
303 getContext().getContentResolver().notifyChange(uribase, null, 0); in testNonDescendantsObserver()
304 getContext().getContentResolver().notifyChange(uri1, null, 0); in testNonDescendantsObserver()
319 getContext().getContentResolver().notifyChange(uribase, null, in testNonDescendantsObserver()
321 getContext().getContentResolver().notifyChange(uri2, null, 0); in testNonDescendantsObserver()
/cts/hostsidetests/appsecurity/test-apps/UsePermissionDiffCert/src/com/android/cts/usespermissiondiffcertapp/
DAccessPermissionWithDiffSigTest.java96 getContext().getContentResolver().query(uri, null, null, null, null); in assertReadingContentUriNotAllowed()
105 getContext().getContentResolver().query(uri, null, null, null, null); in assertReadingContentUriAllowed()
137 getContext().getContentResolver().openFileDescriptor(uri, mode).close(); in assertOpenFileDescriptorModeNotAllowed()
157 final ContentResolver resolver = getContext().getContentResolver(); in assertWritingContentUriNotAllowed()
180 getContext().getContentResolver().openOutputStream(uri).close(); in assertWritingContentUriNotAllowed()
196 final ContentResolver resolver = getContext().getContentResolver(); in assertWritingContentUriAllowed()
561 getContext().getContentResolver().call(UtilsProvider.URI, "", "", extras); in call()
622 Cursor c = getContext().getContentResolver().query(uri, in assertReadingClipAllowed()
631 Cursor c = getContext().getContentResolver().query(uri, in assertReadingClipAllowed()
738 getContext().getContentResolver().insert(uri, new ContentValues()); in assertWritingClipAllowed()
[all …]

123456789