/cts/tests/tests/permission/src/android/permission/cts/ |
D | ContactsProviderTest.java | 38 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()
|
D | TvPermissionTest.java | 48 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/ |
D | ContactsProviderTest.java | 38 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/ |
D | SettingsTest.java | 54 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/ |
D | AirplaneModeRestrictionTest.java | 65 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/ |
D | ContactsMetadataProviderTest.java | 46 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()
|
D | ContactsContract_DirectoryTest.java | 49 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/ |
D | NumberBlockingAppTest.java | 29 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/ |
D | SensorFeaturesDeactivator.java | 100 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/ |
D | SettingsSession.java | 125 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/ |
D | IntentReceiverActivity.java | 107 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/ |
D | MockTvInputSetupActivity.java | 69 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/ |
D | DummyJobContentProvider.java | 93 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/ |
D | DummyJobContentProvider.java | 93 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/ |
D | VrSetFIFOThreadTest.java | 51 … 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/ |
D | DefaultDialerOperationsTest.java | 88 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/ |
D | DummyProvider.java | 104 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/ |
D | AirplaneModeTest.java | 39 resolver = mContext.getContentResolver(); in setup() 82 return Settings.Global.getInt(mContext.getContentResolver(), in isAirplaneModeOn()
|
D | TheaterModeTest.java | 38 resolver = mContext.getContentResolver(); in setup() 81 return Settings.Global.getInt(mContext.getContentResolver(), in isTheaterModeOn()
|
/cts/tests/tests/bluetooth/src/android/bluetooth/cts/ |
D | TestUtils.java | 62 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/ |
D | DocumentsClientTestCase.java | 89 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/ |
D | EventProvider.java | 88 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/ |
D | TriggerContentTest.java | 117 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/ |
D | TextClockTest.java | 74 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/ |
D | AccessPrivateDataTest.java | 144 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()
|