Home
last modified time | relevance | path

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

12345678910>>...20

/frameworks/base/services/core/java/com/android/server/am/
DCoreSettingsObserver.java86 mActivityManagerService.mContext.getContentResolver().registerContentObserver( in beginObserveCoreSettings()
92 mActivityManagerService.mContext.getContentResolver().registerContentObserver( in beginObserveCoreSettings()
98 mActivityManagerService.mContext.getContentResolver().registerContentObserver( in beginObserveCoreSettings()
111 value = Settings.Secure.getString(context.getContentResolver(), setting); in populateSettings()
113 value = Settings.System.getString(context.getContentResolver(), setting); in populateSettings()
115 value = Settings.Global.getString(context.getContentResolver(), setting); in populateSettings()
121 value = Settings.Secure.getInt(context.getContentResolver(), setting, 0); in populateSettings()
123 value = Settings.System.getInt(context.getContentResolver(), setting, 0); in populateSettings()
125 value = Settings.Global.getInt(context.getContentResolver(), setting, 0); in populateSettings()
131 value = Settings.Secure.getFloat(context.getContentResolver(), setting, 0); in populateSettings()
[all …]
/frameworks/support/documents-archive/tests/src/android/support/provider/
DIntegrationTest.java51 mClient = getContext().getContentResolver().acquireContentProviderClient( in setUp()
66 final Cursor cursor = mContext.getContentResolver().query( in testQueryForChildren()
75 final Cursor cursor = mContext.getContentResolver().query( in testQueryForDocument_Archive()
87 final Cursor cursor = mContext.getContentResolver().query( in testQueryForDocument_ArchiveDescendant()
103 getContext().getContentResolver().registerContentObserver( in testQueryForDocument_ArchiveDescendant()
111 mContext.getContentResolver().query( in testQueryForDocument_ArchiveDescendant()
119 getContext().getContentResolver().unregisterContentObserver(observer); in testQueryForDocument_ArchiveDescendant()
124 assertEquals("text/plain", mContext.getContentResolver().getType( in testGetType()
130 final ParcelFileDescriptor descriptor = mContext.getContentResolver().openFileDescriptor( in testOpenFileDescriptor()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DWifiSettingsStore.java137 final ContentResolver cr = mContext.getContentResolver(); in persistWifiState()
144 String airplaneModeRadios = Settings.Global.getString(mContext.getContentResolver(), in isAirplaneSensitive()
152 String toggleableRadios = Settings.Global.getString(mContext.getContentResolver(), in isAirplaneToggleable()
185 Settings.Global.putInt(mContext.getContentResolver(), in setWifiSavedState()
199 return Settings.Global.getInt(mContext.getContentResolver(), in getWifiSavedState()
208 final ContentResolver cr = mContext.getContentResolver(); in getPersistedWifiState()
218 return Settings.Global.getInt(mContext.getContentResolver(), in getPersistedAirplaneModeOn()
223 return Settings.Global.getInt(mContext.getContentResolver(), in getPersistedScanAlwaysAvailable()
DFrameworkFacade.java57 return Settings.Global.putInt(context.getContentResolver(), name, def); in setIntegerSetting()
61 return Settings.Global.getInt(context.getContentResolver(), name, def); in getIntegerSetting()
65 return Settings.Global.getLong(context.getContentResolver(), name, def); in getLongSetting()
69 return Settings.Global.putString(context.getContentResolver(), name, def); in setStringSetting()
73 return Settings.Global.getString(context.getContentResolver(), name); in getStringSetting()
/frameworks/base/core/java/android/provider/
DBlockedNumberContract.java245 final Bundle res = context.getContentResolver().call( in isBlocked()
269 final Bundle res = context.getContentResolver().call( in unblock()
281 final Bundle res = context.getContentResolver().call( in canCurrentUserBlockNumbers()
330 context.getContentResolver().call( in notifyEmergencyContact()
339 context.getContentResolver().call( in endBlockSuppression()
350 final Bundle res = context.getContentResolver().call( in shouldSystemBlockNumber()
359 final Bundle res = context.getContentResolver().call( in getBlockSuppressionStatus()
DVoicemailContract.java280 ContentResolver contentResolver = context.getContentResolver(); in insert()
295 ContentResolver contentResolver = context.getContentResolver(); in insert()
313 return context.getContentResolver().delete( in deleteAll()
573 ContentResolver contentResolver = context.getContentResolver(); in setStatus()
604 ContentResolver contentResolver = context.getContentResolver(); in setQuota()
/frameworks/base/core/java/com/android/internal/view/
DRotationPolicy.java94 Settings.System.getIntForUser(context.getContentResolver(), in isRotationLockToggleVisible()
103 return Settings.System.getIntForUser(context.getContentResolver(), in isRotationLocked()
111 Settings.System.putIntForUser(context.getContentResolver(), in setRotationLock()
125 Settings.System.putIntForUser(context.getContentResolver(), in setRotationLockForAccessibility()
168 context.getContentResolver().registerContentObserver(Settings.System.getUriFor( in registerRotationPolicyListener()
171 context.getContentResolver().registerContentObserver(Settings.System.getUriFor( in registerRotationPolicyListener()
181 context.getContentResolver().unregisterContentObserver(listener.mObserver); in unregisterRotationPolicyListener()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/
DGlobalSetting.java40 return Global.getInt(mContext.getContentResolver(), mSettingName, 0); in getValue()
44 Global.putInt(mContext.getContentResolver(), mSettingName, value); in setValue()
50 mContext.getContentResolver().registerContentObserver( in setListening()
53 mContext.getContentResolver().unregisterContentObserver(this); in setListening()
DSecureSetting.java48 return Secure.getIntForUser(mContext.getContentResolver(), mSettingName, DEFAULT, mUserId); in getValue()
52 Secure.putIntForUser(mContext.getContentResolver(), mSettingName, value, mUserId); in setValue()
61 mContext.getContentResolver().registerContentObserver( in setListening()
64 mContext.getContentResolver().unregisterContentObserver(this); in setListening()
/frameworks/base/packages/SystemUI/src/com/android/systemui/settings/
DBrightnessController.java115 final ContentResolver cr = mContext.getContentResolver(); in startObserving()
129 final ContentResolver cr = mContext.getContentResolver(); in stopObserving()
215 Settings.System.putIntForUser(mContext.getContentResolver(), in onChanged()
230 Settings.System.putFloatForUser(mContext.getContentResolver(), in onChanged()
244 Settings.System.putIntForUser(mContext.getContentResolver(), in setMode()
275 automatic = Settings.System.getIntForUser(mContext.getContentResolver(), in updateMode()
290 float value = Settings.System.getFloatForUser(mContext.getContentResolver(), in updateSlider()
297 value = Settings.System.getIntForUser(mContext.getContentResolver(), in updateSlider()
/frameworks/base/packages/SettingsProvider/test/src/com/android/providers/settings/
DBaseSettingsProviderTest.java70 ContentResolver contentResolver = getContext().getContentResolver(); in setStringViaFrontEndApiSetting()
92 ContentResolver contentResolver = getContext().getContentResolver(); in getStringViaFrontEndApiSetting()
123 return getContext().getContentResolver().insert(uri, values); in insertStringViaProviderApi()
128 return getContext().getContentResolver().delete(uri, "name=?", new String[]{name}); in deleteStringViaProviderApi()
136 return getContext().getContentResolver().update(uri, values, "name=?", in updateStringViaProviderApiSetting()
160 Cursor cursor = getContext().getContentResolver().query(uri, NAME_VALUE_COLUMNS, in queryStringViaProviderApi()
/frameworks/opt/datetimepicker/src/com/android/datetimepicker/
DHapticFeedbackController.java19 return Settings.System.getInt(context.getContentResolver(), in checkGlobalSetting()
49 mContext.getContentResolver().registerContentObserver(uri, false, mContentObserver); in start()
57 mContext.getContentResolver().unregisterContentObserver(mContentObserver); in stop()
/frameworks/opt/setupwizard/library/main/src/com/android/setupwizardlib/util/
DWizardManagerHelper.java154 return Settings.Secure.getInt(context.getContentResolver(), in isUserSetupComplete()
159 return Settings.Secure.getInt(context.getContentResolver(), in isUserSetupComplete()
175 return Settings.Global.getInt(context.getContentResolver(), in isDeviceProvisioned()
178 return Settings.Secure.getInt(context.getContentResolver(), in isDeviceProvisioned()
/frameworks/base/packages/SystemUI/src/com/android/systemui/tuner/
DDemoModeFragment.java77 ContentResolver contentResolver = getContext().getContentResolver(); in onCreatePreferences()
109 getContext().getContentResolver().unregisterContentObserver(mDemoModeObserver); in onDestroy()
114 boolean enabled = Settings.Global.getInt(getContext().getContentResolver(), in updateDemoModeEnabled()
121 boolean enabled = Settings.Global.getInt(getContext().getContentResolver(), in updateDemoModeOn()
199 Settings.Global.putInt(getContext().getContentResolver(), key, value); in setGlobal()
/frameworks/base/core/tests/coretests/src/android/provider/
DSettingsProviderTest.java42 ContentResolver r = getContext().getContentResolver(); in testNameValueCache()
74 Settings.Secure.putString(getContext().getContentResolver(), testKey, null); in testRowNameContentUriForSecure()
87 Settings.System.getString(getContext().getContentResolver(), testKey); in testRowNameContentUriForSystem()
95 Settings.System.putString(getContext().getContentResolver(), testKey, oldValue); in testRowNameContentUriForSystem()
102 ContentResolver r = getContext().getContentResolver(); in testRowNameContentUri()
161 ContentResolver r = getContext().getContentResolver(); in testSettingsChangeForOtherUser()
193 ContentResolver r = getContext().getContentResolver(); in testRowNumberContentUri()
216 ContentResolver r = getContext().getContentResolver(); in testParseProviderList()
282 ContentResolver r = getContext().getContentResolver(); in testPerUserSettings()
/frameworks/base/core/tests/coretests/src/android/content/
DMemoryFileProviderTest.java37 ContentResolver resolver = getContext().getContentResolver(); in testRead()
52 ContentResolver resolver = getContext().getContentResolver(); in testClose()
70 ContentResolver resolver = getContext().getContentResolver(); in testFile()
/frameworks/support/v4/api21/android/support/v4/provider/
DDocumentsContractApi21.java33 return DocumentsContract.createDocument(context.getContentResolver(), self, mimeType, in createFile()
47 final ContentResolver resolver = context.getContentResolver(); in listFiles()
72 return DocumentsContract.renameDocument(context.getContentResolver(), self, displayName); in renameTo()
/frameworks/base/services/core/java/com/android/server/
DGestureLauncherService.java140 mContext.getContentResolver().registerContentObserver( in registerContentObservers()
143 mContext.getContentResolver().registerContentObserver( in registerContentObservers()
222 && (Settings.Secure.getIntForUser(context.getContentResolver(), in isCameraLaunchSettingEnabled()
228 && (Settings.Secure.getIntForUser(context.getContentResolver(), in isCameraDoubleTapPowerSettingEnabled()
287 boolean userSetupComplete = Settings.Secure.getInt(mContext.getContentResolver(), in handleCameraLaunchGesture()
314 mContext.getContentResolver().unregisterContentObserver(mSettingObserver);
/frameworks/opt/net/ims/src/java/com/android/ims/
DImsManager.java211 context.getContentResolver(), in isEnhanced4gLteModeSettingEnabledByUser()
222 context.getContentResolver(), in setEnhanced4gLteModeSetting()
248 return Settings.Secure.getInt(context.getContentResolver(), in isNonTtyOrTtyOnVolteEnabled()
318 int enabled = android.provider.Settings.Global.getInt(context.getContentResolver(), in isVtEnabledByUser()
329 android.provider.Settings.Global.putInt(context.getContentResolver(), in setVtSetting()
362 int enabled = android.provider.Settings.Global.getInt(context.getContentResolver(), in isWfcEnabledByUser()
375 android.provider.Settings.Global.putInt(context.getContentResolver(), in setWfcSetting()
413 int setting = android.provider.Settings.Global.getInt(context.getContentResolver(), in getWfcMode()
425 android.provider.Settings.Global.putInt(context.getContentResolver(), in setWfcMode()
455 int enabled = android.provider.Settings.Global.getInt(context.getContentResolver(), in isWfcRoamingEnabledByUser()
[all …]
/frameworks/base/tests/LocationTracker/src/com/android/locationtracker/data/
DTrackerDataHelper.java76 mContext.getContentResolver().insert(TrackerProvider.CONTENT_URI, in writeEntry()
98 mContext.getContentResolver().delete(TrackerProvider.CONTENT_URI, null, in deleteAll()
111 Cursor cursor = mContext.getContentResolver().query( in query()
DTrackerProvider.java89 getContext().getContentResolver().notifyChange(uri, null); in delete()
104 getContext().getContentResolver().notifyChange(addedUri, null); in insert()
117 getContext().getContentResolver().notifyChange(uri, null); in query()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/
DWirelessUtils.java27 String toggleable = Settings.Global.getString(context.getContentResolver(), in isRadioAllowed()
33 return Settings.Global.getInt(context.getContentResolver(), in isAirplaneModeOn()
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/
DSettingsHelper.java215 ringtoneUri = mContext.getContentResolver().uncanonicalize(canonicalUri); in setRingtone()
228 final Uri canonicalUri = mContext.getContentResolver().canonicalize(ringtoneUri); in getCanonicalRingtoneValue()
247 return Settings.Secure.getInt(mContext.getContentResolver(), name, 0) != 0; in isAlreadyConfiguredCriticalAccessibilitySetting()
254 mContext.getContentResolver(), name)); in isAlreadyConfiguredCriticalAccessibilitySetting()
256 return Settings.System.getFloat(mContext.getContentResolver(), name, 1.0f) != 1.0f; in isAlreadyConfiguredCriticalAccessibilitySetting()
284 mContext.getContentResolver(), GPS, enabled); in setGpsLocation()
/frameworks/base/core/java/android/net/
DNetworkScorerAppManager.java183 String scorerPackage = Settings.Global.getString(context.getContentResolver(), in getActiveScorer()
199 String oldPackageName = Settings.Global.getString(context.getContentResolver(), in setActiveScorer()
209 Settings.Global.putString(context.getContentResolver(), in setActiveScorer()
215 Settings.Global.putString(context.getContentResolver(), in setActiveScorer()
/frameworks/support/v4/kitkat/android/support/v4/provider/
DDocumentsContractApi19.java123 return DocumentsContract.deleteDocument(context.getContentResolver(), self); in delete()
127 final ContentResolver resolver = context.getContentResolver(); in exists()
144 final ContentResolver resolver = context.getContentResolver(); in queryForString()
169 final ContentResolver resolver = context.getContentResolver(); in queryForLong()

12345678910>>...20