/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 | 49 getContext().getContentResolver().insert(uri, values); in verifyInsert() 61 getContext().getContentResolver().update(uri, values, null, null); in verifyUpdate() 72 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/hostsidetests/devicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/ |
D | AirplaneModeRestrictionTest.java | 68 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()
|
D | DevicePolicyLoggingTest.java | 44 Settings.Global.getString(mContext.getContentResolver(), AUTO_TIME); in testSetGlobalSettingLogged() 46 Settings.Global.getString(mContext.getContentResolver(), AUTO_TIME_ZONE); in testSetGlobalSettingLogged() 48 Settings.Global.getString(mContext.getContentResolver(), DATA_ROAMING); in testSetGlobalSettingLogged() 50 Settings.Global.getString(mContext.getContentResolver(), USB_MASS_STORAGE_ENABLED); in testSetGlobalSettingLogged()
|
/cts/tests/tests/provider/src/android/provider/cts/settings/ |
D | SettingsTest.java | 90 ContentResolver cr = getContext().getContentResolver(); in testSystemTable() 141 ContentResolver cr = getContext().getContentResolver(); in testSecureTable() 165 ContentResolver cr = getContext().getContentResolver(); in tryBadTableAccess() 245 final int initialValue = Settings.System.getInt(getContext().getContentResolver(), in testNoStaleValueModifiedFromSameProcess() 250 Settings.System.putInt(getInstrumentation().getContext().getContentResolver(), in testNoStaleValueModifiedFromSameProcess() 252 final int actualValue = Settings.System.getInt(getContext().getContentResolver(), in testNoStaleValueModifiedFromSameProcess() 257 Settings.System.putInt(getContext().getContentResolver(), in testNoStaleValueModifiedFromSameProcess() 264 final int initialValue = Settings.System.getInt(getContext().getContentResolver(), in testNoStaleValueModifiedFromOtherProcess() 271 final int actualValue = Settings.System.getInt(getContext().getContentResolver(), in testNoStaleValueModifiedFromOtherProcess() 276 Settings.System.putInt(getContext().getContentResolver(), in testNoStaleValueModifiedFromOtherProcess() [all …]
|
/cts/common/device-side/bedstead/nene/src/main/java/com/android/bedstead/nene/settings/ |
D | GlobalSettings.java | 72 putInt(sTestApis.context().androidContextAsUser(user).getContentResolver(), key, value); in putInt() 83 sTestApis.context().instrumentedContext().getContentResolver(), key, value); in putInt() 114 putString(sTestApis.context().androidContextAsUser(user).getContentResolver(), key, value); in putString() 125 sTestApis.context().instrumentedContext().getContentResolver(), key, value); in putString() 178 return getInt(sTestApis.context().androidContextAsUser(user).getContentResolver(), key); in getInt() 195 sTestApis.context().androidContextAsUser(user).getContentResolver(), in getInt() 205 return getIntInner(sTestApis.context().instrumentedContext().getContentResolver(), key); in getInt() 215 sTestApis.context().instrumentedContext().getContentResolver(), key, defaultValue); in getInt() 247 return getString(sTestApis.context().androidContextAsUser(user).getContentResolver(), key); in getString() 256 return getStringInner(sTestApis.context().instrumentedContext().getContentResolver(), key); in getString() [all …]
|
D | SecureSettings.java | 72 putInt(sTestApis.context().androidContextAsUser(user).getContentResolver(), key, value); in putInt() 84 sTestApis.context().instrumentedContext().getContentResolver(), key, value); in putInt() 137 return getInt(sTestApis.context().androidContextAsUser(user).getContentResolver(), key); in getInt() 154 sTestApis.context().androidContextAsUser(user).getContentResolver(), in getInt() 164 return getIntInner(sTestApis.context().instrumentedContext().getContentResolver(), key); in getInt() 174 sTestApis.context().instrumentedContext().getContentResolver(), key, defaultValue); in getInt() 207 reset(sTestApis.context().androidContextAsUser(user).getContentResolver()); in reset() 219 sTestApis.context().instrumentedContext().getContentResolver(), in reset()
|
/cts/common/device-side/bedstead/nene/src/test/java/com/android/bedstead/nene/settings/ |
D | GlobalSettingsTest.java | 66 assertThat(android.provider.Settings.Global.getInt(sContext.getContentResolver(), KEY)) in putInt_putsIntIntoGlobalSettingsOnInstrumentedUser() 73 TestApis.settings().global().putInt(sContext.getContentResolver(), KEY, INT_VALUE); in putIntWithContentResolver_putsIntIntoGlobalSettings() 75 assertThat(android.provider.Settings.Global.getInt(sContext.getContentResolver(), KEY)) in putIntWithContentResolver_putsIntIntoGlobalSettings() 84 sContext.getContentResolver(), KEY, INT_VALUE)); in putIntWithContentResolver_preS_throwsException() 91 assertThat(android.provider.Settings.Global.getInt(sContext.getContentResolver(), KEY)) in putIntWithUser_instrumentedUser_putsIntIntoGlobalSettings() 105 .getContentResolver(), KEY)).isEqualTo(INT_VALUE); in putIntWithUser_differentUser_putsIntIntoGlobalSettings() 140 TestApis.context().instrumentedContext().getContentResolver(), KEY, INT_VALUE); in getIntWithContentResolver_getsIntFromGlobalSettings() 143 TestApis.context().instrumentedContext().getContentResolver(), KEY)) in getIntWithContentResolver_getsIntFromGlobalSettings() 152 TestApis.context().instrumentedContext().getContentResolver(), in getIntWithContentResolver_invalidKey_throwsException() 160 TestApis.context().instrumentedContext().getContentResolver(), in getIntWithContentResolver_invalidKey_withDefault_returnsDefault() [all …]
|
D | SecureSettingsTest.java | 65 assertThat(android.provider.Settings.Secure.getInt(sContext.getContentResolver(), KEY)) in putInt_putsIntIntoSecureSettingsOnInstrumentedUser() 72 TestApis.settings().secure().putInt(sContext.getContentResolver(), KEY, INT_VALUE); in putIntWithContentResolver_putsIntIntoSecureSettings() 74 assertThat(android.provider.Settings.Secure.getInt(sContext.getContentResolver(), KEY)) in putIntWithContentResolver_putsIntIntoSecureSettings() 82 sContext.getContentResolver(), KEY, INT_VALUE)); in putIntWithContentResolver_preS_throwsException() 89 assertThat(android.provider.Settings.Secure.getInt(sContext.getContentResolver(), KEY)) in putIntWithUser_instrumentedUser_putsIntIntoSecureSettings() 103 .getContentResolver(), KEY)).isEqualTo(INT_VALUE); in putIntWithUser_differentUser_putsIntIntoSecureSettings() 138 TestApis.context().instrumentedContext().getContentResolver(), KEY, INT_VALUE); in getIntWithContentResolver_getsIntFromSecureSettings() 141 TestApis.context().instrumentedContext().getContentResolver(), KEY)) in getIntWithContentResolver_getsIntFromSecureSettings() 149 TestApis.context().instrumentedContext().getContentResolver(), KEY)); in getIntWithContentResolver_preS_throwsException() 157 TestApis.context().instrumentedContext().getContentResolver(), in getIntWithContentResolver_invalidKey_throwsException() [all …]
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/helpers/ |
D | SensorFeaturesDeactivator.java | 105 ContentResolver contentResolver = mStateContainer.getContentResolver(); in getSettingMode() 132 mStateContainer.getContentResolver(), in getSettingMode() 146 mStateContainer.getContentResolver(), in getSettingMode() 161 mStateContainer.getContentResolver(), in getSettingMode() 176 mStateContainer.getContentResolver(), in getSettingMode() 190 mStateContainer.getContentResolver(), in getSettingMode()
|
/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/hostsidetests/scopedstorage/device/src/android/scopedstorage/cts/device/ |
D | RedactUriDeviceTest.java | 27 import static android.scopedstorage.cts.lib.TestUtils.getContentResolver; 130 final Uri uri = MediaStore.scanFile(getContentResolver(), img); in testRedactedUri_single() 131 final Uri redactedUri = MediaStore.getRedactedUri(getContentResolver(), uri); in testRedactedUri_single() 148 uris.add(MediaStore.scanFile(getContentResolver(), file)); in testRedactedUri_list() 151 final Collection<Uri> redactedUris = MediaStore.getRedactedUri(getContentResolver(), in testRedactedUri_list() 166 final Uri uri = MediaStore.scanFile(getContentResolver(), img); in testQueryOnRedactionUri() 167 final Uri redactedUri = MediaStore.getRedactedUri(getContentResolver(), uri); in testQueryOnRedactionUri() 168 final Cursor uriCursor = getContentResolver().query(uri, null, null, null); in testQueryOnRedactionUri() 176 final Cursor redactedUriCursor = getContentResolver().query(redactedUri, null, null, in testQueryOnRedactionUri() 405 assertEquals(0, getContentResolver().update(redactedUri, new ContentValues(), in testDisallowedOperationsOnRedactedUri() [all …]
|
/cts/hostsidetests/appsecurity/test-apps/UsePermissionDiffCert/src/com/android/cts/usespermissiondiffcertapp/ |
D | Asserts.java | 78 getContext().getContentResolver().query(uri, null, null, null, null); in assertReadingContentUriNotAllowed() 87 getContext().getContentResolver().query(uri, null, null, null, null); in assertReadingContentUriAllowed() 119 getContext().getContentResolver().openFileDescriptor(uri, mode).close(); in assertOpenFileDescriptorModeNotAllowed() 139 final ContentResolver resolver = getContext().getContentResolver(); in assertWritingContentUriNotAllowed() 162 getContext().getContentResolver().openOutputStream(uri).close(); in assertWritingContentUriNotAllowed() 178 final ContentResolver resolver = getContext().getContentResolver(); in assertWritingContentUriAllowed() 226 Cursor c = getContext().getContentResolver().query(uri, in assertReadingClipAllowed() 235 Cursor c = getContext().getContentResolver().query(uri, in assertReadingClipAllowed() 254 getContext().getContentResolver().insert(uri, new ContentValues()); in assertWritingClipAllowed() 259 getContext().getContentResolver().insert(uri, new ContentValues()); in assertWritingClipAllowed() [all …]
|
/cts/hostsidetests/appsecurity/test-apps/MediaStorageApp/src/com/android/cts/mediastorageapp/ |
D | MediaStoreUtils.java | 53 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/tests/tests/provider/src/android/provider/cts/media/ |
D | MediaStoreUtils.java | 62 return context.getContentResolver().insert(params.insertUri, params.insertValues); in createPending() 179 return mContext.getContentResolver().openFileDescriptor(mUri, "rw"); in open() 190 return mContext.getContentResolver().openOutputStream(mUri); in openOutputStream() 204 mContext.getContentResolver().update(mUri, values, null, null); in publish() 213 mContext.getContentResolver().delete(mUri, null, null); in abandon()
|
/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/vr/src/android/vr/cts/ |
D | VrSetFIFOThreadTest.java | 55 … 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/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/tests/telephonyprovider/src/android/telephonyprovider/cts/ |
D | ThreadsTest.java | 56 ContentResolver contentResolver = getInstrumentation().getContext().getContentResolver(); in cleanup() 66 mContentResolver = mContext.getContentResolver(); in setupTestEnvironment() 114 return mContext.getContentResolver().insert(Telephony.Sms.CONTENT_URI, contentValues); in addMessageToTelephonyWithDate() 134 return mContext.getContentResolver().insert(Telephony.Sms.Inbox.CONTENT_URI, contentValues); in saveToTelephony()
|
/cts/tests/tests/database/apps/src/com/android/cts/providerapp/ |
D | DummyProvider.java | 60 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/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/voiceRecognition/src/android/voicerecognition/cts/ |
D | DefaultRecognitionServiceTest.java | 42 mContext.getContentResolver(), VOICE_RECOGNITION_SERVICE); 52 () -> Settings.Secure.putString(mContext.getContentResolver(), in setCurrentRecognizer()
|