Home
last modified time | relevance | path

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

12345678

/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/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/tests/tests/provider/src/android/provider/cts/
DSettingsTest.java54 ContentResolver cr = getContext().getContentResolver(); in testSystemTable()
114 ContentResolver cr = getContext().getContentResolver(); in testSecureTable()
138 ContentResolver cr = getContext().getContentResolver(); in tryBadTableAccess()
215 final int initialValue = Settings.System.getInt(getContext().getContentResolver(), in testNoStaleValueModifiedFromSameProcess()
220 Settings.System.putInt(getInstrumentation().getContext().getContentResolver(), in testNoStaleValueModifiedFromSameProcess()
222 final int actualValue = Settings.System.getInt(getContext().getContentResolver(), in testNoStaleValueModifiedFromSameProcess()
227 Settings.System.putInt(getContext().getContentResolver(), in testNoStaleValueModifiedFromSameProcess()
233 final int initialValue = Settings.System.getInt(getContext().getContentResolver(), in testNoStaleValueModifiedFromOtherProcess()
240 final int actualValue = Settings.System.getInt(getContext().getContentResolver(), in testNoStaleValueModifiedFromOtherProcess()
245 Settings.System.putInt(getContext().getContentResolver(), in testNoStaleValueModifiedFromOtherProcess()
[all …]
/cts/hostsidetests/devicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/
DAirplaneModeRestrictionTest.java65 Settings.Global.putInt(mContext.getContentResolver(), AIRPLANE_MODE_ON, 1); in testAirplaneModeTurnedOffWhenRestrictionSet()
70 mContext.getContentResolver(), Settings.Global.AIRPLANE_MODE_ON)); in testAirplaneModeTurnedOffWhenRestrictionSet()
79 Settings.Global.putInt(mContext.getContentResolver(), AIRPLANE_MODE_ON, 1); in testAirplaneModeCannotBeTurnedOnWithRestrictionOn()
81 mContext.getContentResolver(), AIRPLANE_MODE_ON)); in testAirplaneModeCannotBeTurnedOnWithRestrictionOn()
86 Settings.Global.putInt(mContext.getContentResolver(), AIRPLANE_MODE_ON, 1); in testAirplaneModeCanBeTurnedOnWithRestrictionOff()
88 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()
DContactsContract_DirectoryTest.java49 mResolver = getContext().getContentResolver(); in setUp()
76 try (Cursor c = getContext().getContentResolver().query(Directory.CONTENT_URI, in waitForDirectorySetup()
117 try (Cursor c = getContext().getContentResolver().query( in testQueryParameters()
/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/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/tests/framework/base/activitymanager/util/src/android/server/am/settings/
DSettingsSession.java125 setter.set(getContentResolver(), uri.getLastPathSegment(), value); in put()
130 return getter.get(getContentResolver(), uri.getLastPathSegment()); in get()
134 getContentResolver().delete(uri, null, null); in delete()
137 private static ContentResolver getContentResolver() { in getContentResolver() method in SettingsSession
138 return InstrumentationRegistry.getTargetContext().getContentResolver(); in getContentResolver()
/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/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/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/vr/src/android/vr/cts/
DVrSetFIFOThreadTest.java51 … mOldVrListener = Settings.Secure.getString(mContext.getContentResolver(), ENABLED_VR_LISTENERS); in setUp()
56 Settings.Secure.putString(mContext.getContentResolver(), in tearDown()
74 Settings.Secure.putString(mContext.getContentResolver(), in testSetVrThreadAPISuccess()
97 Settings.Secure.putString(mContext.getContentResolver(), in testSetVrThreadAPIFailure()
/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.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/net/src/android/net/cts/
DAirplaneModeTest.java39 resolver = mContext.getContentResolver(); in setup()
82 return Settings.Global.getInt(mContext.getContentResolver(), in isAirplaneModeOn()
DTheaterModeTest.java38 resolver = mContext.getContentResolver(); in setup()
81 return Settings.Global.getInt(mContext.getContentResolver(), in isTheaterModeOn()
/cts/tests/tests/bluetooth/src/android/bluetooth/cts/
DTestUtils.java62 return Settings.Secure.getInt(context.getContentResolver(), in getLocationMode()
70 Settings.Secure.putInt(context.getContentResolver(), Settings.Secure.LOCATION_MODE, in setLocationMode()
/cts/hostsidetests/appsecurity/test-apps/DocumentClient/src/com/android/cts/documentclient/
DDocumentsClientTestCase.java89 final ContentResolver resolver = getInstrumentation().getContext().getContentResolver(); in getColumn()
100 final InputStream in = getInstrumentation().getContext().getContentResolver() in readFully()
107 getInstrumentation().getContext().getContentResolver() in readTypedFully()
129 OutputStream out = getInstrumentation().getContext().getContentResolver() in writeFully()
/cts/hostsidetests/inputmethodservice/deviceside/provider/src/android/inputmethodservice/cts/provider/
DEventProvider.java88 cursor.setNotificationUri(getContext().getContentResolver(), uri); in query()
103 getContext().getContentResolver().notifyChange(insertedUri, null); in insert()
123 getContext().getContentResolver().notifyChange(uri, null); in delete()
144 getContext().getContentResolver().notifyChange(uri, null); in update()
/cts/tests/JobScheduler/src/android/jobscheduler/cts/
DTriggerContentTest.java117 getContext().getContentResolver().delete(mActiveUris[which], null, null); in cleanupActive()
255 getContext().getContentResolver().notifyChange(uribase, null, 0); in testDescendantsObserver()
256 getContext().getContentResolver().notifyChange(uri1, null, 0); in testDescendantsObserver()
272 getContext().getContentResolver().notifyChange(uribase, null, in testDescendantsObserver()
274 getContext().getContentResolver().notifyChange(uri2, null, 0); in testDescendantsObserver()
302 getContext().getContentResolver().notifyChange(uribase, null, 0); in testNonDescendantsObserver()
303 getContext().getContentResolver().notifyChange(uri1, null, 0); in testNonDescendantsObserver()
318 getContext().getContentResolver().notifyChange(uribase, null, in testNonDescendantsObserver()
320 getContext().getContentResolver().notifyChange(uri2, null, 0); in testNonDescendantsObserver()
/cts/tests/tests/widget/src/android/widget/cts/
DTextClockTest.java74 Settings.System.putInt(mActivity.getContentResolver(), Settings.System.TIME_12_24, base); in teardown()
87 final ContentResolver resolver = mActivity.getContentResolver(); in testUpdate12_24()
151 final ContentResolver resolver = mActivity.getContentResolver();
186 final ContentResolver resolver = mActivity.getContentResolver(); in registerForChanges()
/cts/hostsidetests/appsecurity/test-apps/AppAccessData/src/com/android/cts/appaccessdata/
DAccessPrivateDataTest.java144 final int port = getContext().getContentResolver().call(PRIVATE_TARGET, "start", null, null) in testTrafficStatsStatsUidSelf()
154 getContext().getContentResolver().call(PRIVATE_TARGET, "tag", null, extras); in testTrafficStatsStatsUidSelf()
166 getContext().getContentResolver().call(PRIVATE_TARGET, "stop", null, null); in testTrafficStatsStatsUidSelf()

12345678