Home
last modified time | relevance | path

Searched refs:contentResolver (Results 1 – 25 of 50) sorted by relevance

12

/cts/common/device-side/bedstead/nene/src/main/java/com/android/bedstead/nene/settings/
DSecureSettings.kt36 fun putInt(contentResolver: ContentResolver, key: String, value: Int) { in putInt()
40 Settings.Secure.putInt(contentResolver, key, value) in putInt()
60 putInt(TestApis.context().androidContextAsUser(user).contentResolver, key, value) in putInt()
73 TestApis.context().instrumentedContext().contentResolver, key, value) in putInt()
81 fun getInt(contentResolver: ContentResolver, key: String): Int { in getInt()
84 return getIntInner(contentResolver, key) in getInt()
92 fun getInt(contentResolver: ContentResolver, key: String, defaultValue: Int): Int { in getInt()
95 return getIntInner(contentResolver, key, defaultValue) in getInt()
99 private fun getIntInner(contentResolver: ContentResolver, key: String): Int { in getIntInner()
101 Settings.Secure.getInt(contentResolver, key) in getIntInner()
[all …]
DGlobalSettings.kt36 fun putInt(contentResolver: ContentResolver, key: String, value: Int) { in <lambda>()
40 Settings.Global.putInt(contentResolver, key, value) in <lambda>()
60 putInt(TestApis.context().androidContextAsUser(user).contentResolver, key, value) in <lambda>()
72 TestApis.context().instrumentedContext().contentResolver, key, value) in <lambda>()
80 fun putString(contentResolver: ContentResolver, key: String, value: String) { in <lambda>()
84 Settings.Global.putString(contentResolver, key, value) in <lambda>()
104 putString(TestApis.context().androidContextAsUser(user).contentResolver, key, value) in <lambda>()
116 TestApis.context().instrumentedContext().contentResolver, key, value) in <lambda>()
124 fun getInt(contentResolver: ContentResolver, key: String): Int { in <lambda>()
127 return getIntInner(contentResolver, key) in <lambda>()
[all …]
DSystemSettings.kt36 fun putInt(contentResolver: ContentResolver?, key: String?, value: Int) { in putInt()
40 Settings.System.putInt(contentResolver, key, value) in putInt()
60 putInt(TestApis.context().androidContextAsUser(user).contentResolver, key, value) in putInt()
72 TestApis.context().instrumentedContext().contentResolver, key, value) in putInt()
80 fun putString(contentResolver: ContentResolver?, key: String?, value: String?) { in putString()
84 Settings.System.putString(contentResolver, key, value) in putString()
104 putString(TestApis.context().androidContextAsUser(user).contentResolver, key, value) in putString()
116 TestApis.context().instrumentedContext().contentResolver, key, value) in putString()
124 fun getInt(contentResolver: ContentResolver, key: String): Int { in getInt()
127 return getIntInner(contentResolver, key) in getInt()
[all …]
/cts/common/device-side/bedstead/nene/src/test/java/com/android/bedstead/nene/settings/
DGlobalSettingsTest.kt47 assertThat(Settings.Global.getInt(context.contentResolver, KEY)) in <lambda>()
55 TestApis.settings().global().putInt(context.contentResolver, KEY, INT_VALUE) in <lambda>()
56 assertThat(Settings.Global.getInt(context.contentResolver, KEY)) in <lambda>()
66 context.contentResolver, KEY, INT_VALUE) in <lambda>()
74 assertThat(Settings.Global.getInt(context.contentResolver, KEY)) in <lambda>()
87 .contentResolver, KEY)).isEqualTo(INT_VALUE) in <lambda>()
125 TestApis.context().instrumentedContext().contentResolver, KEY, INT_VALUE) in <lambda>()
127 TestApis.context().instrumentedContext().contentResolver, KEY)).isEqualTo(INT_VALUE) in <lambda>()
135 TestApis.context().instrumentedContext().contentResolver, INVALID_KEY) in <lambda>()
143 TestApis.context().instrumentedContext().contentResolver, in <lambda>()
[all …]
DSecureSettingsTest.kt49 Truth.assertThat(Settings.Secure.getInt(context.contentResolver, KEY)) in <lambda>()
57 TestApis.settings().secure().putInt(context.contentResolver, KEY, INT_VALUE) in <lambda>()
59 Truth.assertThat(Settings.Secure.getInt(context.contentResolver, KEY)) in <lambda>()
68 context.contentResolver, KEY, INT_VALUE) in <lambda>()
77 Truth.assertThat(Settings.Secure.getInt(context.contentResolver, KEY)) in <lambda>()
91 .contentResolver, KEY)).isEqualTo(INT_VALUE) in <lambda>()
129 TestApis.context().instrumentedContext().contentResolver, KEY, INT_VALUE) in <lambda>()
132 TestApis.context().instrumentedContext().contentResolver, KEY)).isEqualTo(INT_VALUE) in <lambda>()
140 TestApis.context().instrumentedContext().contentResolver, KEY) in <lambda>()
149 TestApis.context().instrumentedContext().contentResolver, INVALID_KEY) in <lambda>()
[all …]
DSystemSettingsTest.kt41 assertThat(Settings.System.getInt(sContext.contentResolver, KEY)) in <lambda>()
49 TestApis.settings().system().putInt(sContext.contentResolver, KEY, INT_VALUE) in <lambda>()
51 assertThat(Settings.System.getInt(sContext.contentResolver, KEY)) in <lambda>()
61 sContext.contentResolver, KEY, INT_VALUE) in <lambda>()
70 assertThat(Settings.System.getInt(sContext.contentResolver, KEY)) in <lambda>()
84 .contentResolver, KEY)).isEqualTo(INT_VALUE) in <lambda>()
122 TestApis.context().instrumentedContext().contentResolver, KEY, INT_VALUE) in <lambda>()
124 TestApis.context().instrumentedContext().contentResolver, KEY)) in <lambda>()
133 TestApis.context().instrumentedContext().contentResolver, INVALID_KEY) in <lambda>()
141 TestApis.context().instrumentedContext().contentResolver, INVALID_KEY, INT_VALUE)) in <lambda>()
[all …]
/cts/hostsidetests/scopedstorage/device/src/android/scopedstorage/cts/device/
DOwnedAndOtherFilesRule.java36 public OwnedAndOtherFilesRule(ContentResolver contentResolver) { in OwnedAndOtherFilesRule() argument
37 this.mContentResolver = contentResolver; in OwnedAndOtherFilesRule()
54 protected static Cursor getResultForFilesQuery(ContentResolver contentResolver, in getResultForFilesQuery() argument
56 return contentResolver.query( in getResultForFilesQuery()
DOwnedFilesRule.java58 public OwnedFilesRule(ContentResolver contentResolver) { in OwnedFilesRule() argument
59 this.mContentResolver = contentResolver; in OwnedFilesRule()
/cts/tests/tests/slice/src/android/slice/cts/
DSliceProviderTest.kt51 private lateinit var contentResolver: ContentResolver variable in android.slice.cts.SliceProviderTest
59 contentResolver = activityTestRule.activity.contentResolver in setUp()
93 val result = contentResolver.call( in doQuery()
/cts/hostsidetests/scopedstorage/libs/ScopedStorageTestLib/src/android/scopedstorage/cts/lib/
DResolverAccessTestUtils.java148 ContentResolver contentResolver) { in assertResolver_insert() argument
152 Uri uri = contentResolver.insert(tableUri, values, null); in assertResolver_insert()
158 ContentResolver contentResolver) { in assertResolver_insertImage() argument
159 return assertResolver_insert(file, folder, getImageContentUri(), contentResolver); in assertResolver_insertImage()
163 ContentResolver contentResolver) { in assertResolver_insertVideo() argument
164 return assertResolver_insert(file, folder, getVideoContentUri(), contentResolver); in assertResolver_insertVideo()
/cts/tests/inputmethod/mockspellchecker/src/com/android/cts/mockspellchecker/
DMockSpellCheckerClient.kt30 context.contentResolver, KEY_CONFIGURATION, configuration.toByteArray()) in updateConfiguration()
34 SharedPrefsProvider.delete(context.contentResolver, KEY_CONFIGURATION) in close()
DMockSpellChecker.kt68 SharedPrefsProvider.get(contentResolver, KEY_CONFIGURATION)) in onGetSentenceSuggestionsMultiple()
95 SharedPrefsProvider.get(contentResolver, KEY_CONFIGURATION)) in onGetSuggestions()
/cts/tests/tests/security/src/android/security/cts/
DCVE_2021_39663.java55 ContentResolver contentResolver = context.getContentResolver(); in testPocCVE_2021_39663() local
57 Uri uri = contentResolver.insert(MediaStore.Downloads.EXTERNAL_CONTENT_URI, in testPocCVE_2021_39663()
64 contentResolver.delete(uri, null, null); in testPocCVE_2021_39663()
/cts/tests/tests/renderscript/src/android/renderscript/cts/refocus/
DRGBZ.java54 public RGBZ(Uri uri, ContentResolver contentResolver, Context context) throws IOException { in RGBZ() argument
55 preview = BitmapFactory.decodeStream(contentResolver.openInputStream(uri)); in RGBZ()
72 public RGBZ(Uri uriImage, Uri uriDepthmap, ContentResolver contentResolver, in RGBZ() argument
74 preview = BitmapFactory.decodeStream(contentResolver.openInputStream(uriImage)); in RGBZ()
/cts/tests/tests/content/src/android/content/cts/
DClipboardManagerTest.java200 ContentResolver contentResolver = mContext.getContentResolver(); in testSetPrimaryClip_multipleMimeTypes() local
214 clipData.addItem(contentResolver, new Item("More Text")); in testSetPrimaryClip_multipleMimeTypes()
215 clipData.addItem(contentResolver, new Item(intent)); in testSetPrimaryClip_multipleMimeTypes()
216 clipData.addItem(contentResolver, new Item(uri)); in testSetPrimaryClip_multipleMimeTypes()
217 clipData.addItem(contentResolver, new Item(contentUri1)); in testSetPrimaryClip_multipleMimeTypes()
218 clipData.addItem(contentResolver, new Item(contentUri2)); in testSetPrimaryClip_multipleMimeTypes()
219 clipData.addItem(contentResolver, new Item(contentUri3)); in testSetPrimaryClip_multipleMimeTypes()
220 clipData.addItem(contentResolver, new Item(contentUri4)); in testSetPrimaryClip_multipleMimeTypes()
221 clipData.addItem(contentResolver, new Item(contentUri5)); in testSetPrimaryClip_multipleMimeTypes()
222 clipData.addItem(contentResolver, new Item(contentUri6)); in testSetPrimaryClip_multipleMimeTypes()
[all …]
/cts/hostsidetests/securitybulletin/test-apps/CVE-2021-39795/src/android/security/cts/CVE_2021_39795/
DDeviceTest.java63 ContentResolver contentResolver = context.getContentResolver(); in testFilePresence() local
68 outputStream = contentResolver.openOutputStream(contentResolver.insert( in testFilePresence()
/cts/tests/storageaccess/src/android/storageaccess/cts/tests/
DTestBase.kt37 protected val contentResolver constant
38 get() = context.contentResolver!!
/cts/tests/tests/telephonyprovider/src/android/telephonyprovider/cts/
DThreadsTest.java58 ContentResolver contentResolver = getInstrumentation().getContext().getContentResolver(); in cleanup() local
59 contentResolver.delete(Telephony.Threads.CONTENT_URI, null, null); in cleanup()
60 contentResolver.delete(Telephony.Sms.CONTENT_URI, null, null); in cleanup()
DSmsConversationTest.java57 ContentResolver contentResolver = getInstrumentation().getContext().getContentResolver(); in cleanup() local
58 contentResolver.delete(Telephony.Sms.CONTENT_URI, null, null); in cleanup()
DLockedMessageTest.java58 ContentResolver contentResolver = getInstrumentation().getContext().getContentResolver(); in cleanup() local
59 contentResolver.delete(Telephony.Mms.CONTENT_URI, null, null); in cleanup()
60 contentResolver.delete(Telephony.Sms.CONTENT_URI, null, null); in cleanup()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/helpers/
DSensorFeaturesDeactivator.java105 ContentResolver contentResolver = mStateContainer.getContentResolver(); in getSettingMode() local
109 .getInt(contentResolver, Settings.System.AIRPLANE_MODE_ON, defaultValue); in getSettingMode()
112 .getInt(contentResolver, Settings.Global.AIRPLANE_MODE_ON, defaultValue); in getSettingMode()
/cts/tests/mediaprovider/src/android/provider/cts/media/
DMediaStoreAudioTestHelper.java64 public Uri insert(ContentResolver contentResolver, String volumeName) { in insert() argument
67 contentResolver.delete(dirUri, MediaStore.Audio.Media.DATA + "=?", new String[]{ in insert()
71 final Uri itemUri = contentResolver.insert(dirUri, values); in insert()
76 public int delete(ContentResolver contentResolver, Uri uri) { in delete() argument
77 return contentResolver.delete(uri, null, null); in delete()
/cts/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/
DDevicePolicyLoggingTest.java95 final ContentResolver contentResolver = mContext.getContentResolver(); in testSetSecureSettingLogged() local
97 Settings.Secure.getInt(contentResolver, SKIP_FIRST_USE_HINTS, 0); in testSetSecureSettingLogged()
106 Settings.Secure.getString(contentResolver, DEFAULT_INPUT_METHOD); in testSetSecureSettingLogged()
/cts/tests/tests/contactsprovider/src/android/provider/cts/contacts/
DContactsContract_GroupMembershipTest.java37 ContentResolver contentResolver = in setUp() local
40 contentResolver.acquireContentProviderClient(ContactsContract.AUTHORITY); in setUp()
/cts/tests/tests/notification/NotificationListener/src/com/android/test/notificationlistener/
DNotificationUriAccessService.kt48 contentResolver.openAssetFile(uri!!, "r", null).use { return true } in isFileUriAccessible()

12