Home
last modified time | relevance | path

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

12345678910>>...29

/packages/apps/TvSettings/Settings/src/com/android/tv/settings/system/development/
DCaptionCustomFragment.java199 final String typeface = Settings.Secure.getString(getContext().getContentResolver(), in getCaptionsFontFamily()
206 Settings.Secure.putString(getContext().getContentResolver(), in setCaptionsFontFamily()
209 Settings.Secure.putString(getContext().getContentResolver(), in setCaptionsFontFamily()
215 return Integer.toHexString(Settings.Secure.getInt(getContext().getContentResolver(), in getCaptionsTextColor()
221 final int alpha = Settings.Secure.getInt(getContext().getContentResolver(), in setCaptionsTextColor()
223 Settings.Secure.putInt(getContext().getContentResolver(), in setCaptionsTextColor()
228 return opacityToString(Settings.Secure.getInt(getContext().getContentResolver(), in getCaptionsTextOpacity()
233 final int color = Settings.Secure.getInt(getContext().getContentResolver(), in setCaptionsTextOpacity()
236 Settings.Secure.putInt(getContext().getContentResolver(), in setCaptionsTextOpacity()
241 return Integer.toString(Settings.Secure.getInt(getContext().getContentResolver(), in getCaptionsEdgeType()
[all …]
/packages/apps/Settings/src/com/android/settings/accessibility/
DAccessibilitySettings.java227 mSettingsContentObserver.register(getContentResolver()); in onResume()
237 mSettingsContentObserver.unregister(getContentResolver()); in onPause()
258 Settings.Secure.putInt(getContentResolver(), in handleLongPressTimeoutPreferenceChange()
265 Settings.Secure.putInt(getContentResolver(), in handleToggleInversionPreferenceChange()
300 Settings.Secure.putInt(getContentResolver(), in handleToggleTextContrastPreferenceClick()
306 Settings.Secure.putInt(getContentResolver(), in handleTogglePowerButtonEndsCallPreferenceClick()
319 Settings.Secure.putInt(getContentResolver(), in handleToggleSpeakPasswordPreferenceClick()
325 Settings.Secure.putInt(getContentResolver(), in handleToggleLargePointerIconPreferenceClick()
331 Settings.System.putIntForUser(getContentResolver(), Settings.System.MASTER_MONO, in handleToggleMasterMonoPreferenceClick()
341 extras.putBoolean(EXTRA_CHECKED, Settings.Global.getInt(getContentResolver(), in handleToggleEnableAccessibilityGesturePreferenceClick()
[all …]
/packages/apps/Settings/src/com/android/settings/
DApplicationSettings.java69 boolean userSetInstLocation = (Settings.Global.getInt(getContentResolver(), in onCreate()
87 Settings.Global.putInt(getContentResolver(), in handleUpdateAppInstallLocation()
90 Settings.Global.putInt(getContentResolver(), in handleUpdateAppInstallLocation()
93 Settings.Global.putInt(getContentResolver(), in handleUpdateAppInstallLocation()
97 Settings.Global.putInt(getContentResolver(), in handleUpdateAppInstallLocation()
114 return Settings.System.getInt(getContentResolver(), in isAdvancedSettingsEnabled()
122 Settings.Secure.putInt(getContentResolver(), Settings.System.ADVANCED_SETTINGS, value); in setAdvancedSettingsEnabled()
130 int selectedLocation = Settings.Global.getInt(getContentResolver(), in getAppInstallLocation()
DDisplaySettings.java115 final ContentResolver resolver = activity.getContentResolver(); in onCreate()
224 int current = Settings.Secure.getIntForUser(c.getContentResolver(), in onCreate()
234 if (!Settings.Secure.putIntForUser(c.getContentResolver(), in onCreate()
333 final long currentTimeout = Settings.System.getLong(getActivity().getContentResolver(), in onResume()
357 int brightnessMode = Settings.System.getInt(getContentResolver(), in updateState()
364 int value = Settings.Secure.getInt(getContentResolver(), WAKE_GESTURE_ENABLED, 0); in updateState()
370 int value = Settings.Secure.getInt(getContentResolver(), DOZE_ENABLED, 1); in updateState()
376 int value = Settings.Secure.getInt(getContentResolver(), DOUBLE_TAP_TO_WAKE, 0); in updateState()
382 int value = Settings.Secure.getInt(getContentResolver(), CAMERA_GESTURE_DISABLED, 0); in updateState()
389 getContentResolver(), CAMERA_DOUBLE_TAP_POWER_GESTURE_DISABLED, 0); in updateState()
[all …]
DDevelopmentSettings.java581 final ContentResolver cr = getActivity().getContentResolver(); in onResume()
592 Settings.Global.putInt(getActivity().getContentResolver(), in onResume()
644 final ContentResolver cr = context.getContentResolver(); in updateAllOptions()
771 Settings.Global.getInt(getActivity().getContentResolver(), in updateWebViewMultiprocessOptions()
777 Settings.Global.putInt(getActivity().getContentResolver(), in writeWebViewMultiprocessOptions()
822 Settings.Secure.putInt(getActivity().getContentResolver(), in writeBtHciSnoopLogOptions()
891 getActivity().getContentResolver(), Settings.Global.DEBUG_APP); in updateDebuggerOptions()
893 getActivity().getContentResolver(), Settings.Global.WAIT_FOR_DEBUGGER, 0) != 0); in updateDebuggerOptions()
947 …dateSwitchPreference(mVerifyAppsOverUsb, Settings.Global.getInt(getActivity().getContentResolver(), in updateVerifyAppsOverUsbOptions()
953 Settings.Global.putInt(getActivity().getContentResolver(), in writeVerifyAppsOverUsbOptions()
[all …]
/packages/apps/Settings/src/com/android/settings/applications/
DDefaultAssistPreference.java71 Settings.Secure.putString(getContext().getContentResolver(), in setAssistNone()
73 Settings.Secure.putString(getContext().getContentResolver(), in setAssistNone()
75 Settings.Secure.putString(getContext().getContentResolver(), in setAssistNone()
89 Settings.Secure.putString(getContext().getContentResolver(), in setAssistService()
91 Settings.Secure.putString(getContext().getContentResolver(), in setAssistService()
93 Settings.Secure.putString(getContext().getContentResolver(), in setAssistService()
105 Settings.Secure.putString(getContext().getContentResolver(), in setAssistActivity()
107 Settings.Secure.putString(getContext().getContentResolver(), in setAssistActivity()
109 Settings.Secure.putString(getContext().getContentResolver(), in setAssistActivity()
/packages/apps/DeskClock/src/com/android/deskclock/alarms/
DAlarmStateManager.java193 final ContentResolver cr = context.getContentResolver(); in getNextFiringAlarm()
221 Settings.System.putString(context.getContentResolver(), in updateNextAlarmInSystemSettings()
269 ContentResolver cr = context.getContentResolver(); in updateParentAlarm()
358 ContentResolver contentResolver = context.getContentResolver(); in setSilentState()
380 ContentResolver contentResolver = context.getContentResolver(); in setLowNotificationState()
402 ContentResolver contentResolver = context.getContentResolver(); in setHideNotificationState()
424 ContentResolver contentResolver = context.getContentResolver(); in setHighNotificationState()
446 ContentResolver contentResolver = context.getContentResolver(); in setFiredState()
494 AlarmInstance.updateInstance(context.getContentResolver(), instance); in setSnoozeState()
545 ContentResolver contentResolver = context.getContentResolver(); in setMissedState()
[all …]
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/system/
DCaptionFragment.java191 return Settings.Secure.getInt(getContext().getContentResolver(), in getCaptionsEnabled()
196 Settings.Secure.putInt(getContext().getContentResolver(), in setCaptionsEnabled()
201 return Settings.Secure.getInt(getContext().getContentResolver(), in getCaptionsStyle()
206 Settings.Secure.putInt(getContext().getContentResolver(), in setCaptionsStyle()
213 return Settings.Secure.getString(getContext().getContentResolver(), in getCaptionsLocale()
218 Settings.Secure.putString(getContext().getContentResolver(), in setCaptionsLocale()
223 final float textSize = Settings.Secure.getFloat(getContext().getContentResolver(), in getCaptionsTextSize()
242 Settings.Secure.putFloat(getContext().getContentResolver(), in setCaptionsTextSize()
/packages/apps/SpareParts/src/com/android/spare_parts/
DSpareParts.java128 mCompatibilityMode.setChecked(Settings.Global.getInt(getContentResolver(), in onCreate()
146 getContentResolver(), in updateToggles()
149 getContentResolver(), in updateToggles()
170 Settings.Global.putInt(getContentResolver(), in onPreferenceTreeClick()
198 Settings.System.putInt(getContentResolver(), in writeEndButtonPreference()
238 pref.setValueIndex(Settings.System.getInt(getContentResolver(), in readEndButtonPreference()
246 Settings.Global.putInt(getContentResolver(), in onSharedPreferenceChanged()
250 Settings.System.putInt(getContentResolver(), in onSharedPreferenceChanged()
/packages/services/Telephony/src/com/android/phone/
DCdmaSystemSelectListPreference.java72 Settings.Global.getInt(mPhone.getContext().getContentResolver(), in onDialogClosed()
85 Settings.Global.putInt(mPhone.getContext().getContentResolver(), in onDialogClosed()
122 mPhone.getContext().getContentResolver(), in handleQueryCdmaRoamingPreference()
132 mPhone.getContext().getContentResolver(), in handleQueryCdmaRoamingPreference()
151 Settings.Global.putInt(mPhone.getContext().getContentResolver(), in handleSetCdmaRoamingPreference()
163 Settings.Global.putInt(mPhone.getContext().getContentResolver(), in resetCdmaRoamingModeToDefault()
/packages/apps/Dialer/tests/src/com/android/dialer/voicemail/
DVoicemailActivityInstrumentationTestCase2.java146 getContentResolver().delete(VoicemailContract.Voicemails.CONTENT_URI, in cleanUpVoicemailUri()
160 mVoicemailUri = getContentResolver().insert( in setUriForRealFileVoicemailEntry()
164 OutputStream outputStream = getContentResolver().openOutputStream(mVoicemailUri)) { in setUriForRealFileVoicemailEntry()
177 mVoicemailUri = getContentResolver().insert( in setUriForUnfetchedVoicemailEntry()
183 ContentResolver contentResolver = getContentResolver(); in setUriForInvalidVoicemailEntry()
219 protected ContentResolver getContentResolver() { in getContentResolver() method in VoicemailActivityInstrumentationTestCase2
220 return getInstrumentation().getTargetContext().getContentResolver(); in getContentResolver()
/packages/apps/Dialer/tests/src/com/android/dialer/
DCallDetailActivityTest.java135 ContentResolver contentResolver = getContentResolver(); in setActivityIntentForTestCallEntry()
146 ContentResolver contentResolver = getContentResolver(); in setActivityIntentForTestVoicemailEntry()
163 getContentResolver().delete(VoicemailContract.Voicemails.CONTENT_URI, in cleanUpUri()
168 getContentResolver().delete(CallLog.Calls.CONTENT_URI_WITH_VOICEMAIL, in cleanUpUri()
174 private ContentResolver getContentResolver() { in getContentResolver() method in CallDetailActivityTest
175 return getInstrumentation().getTargetContext().getContentResolver(); in getContentResolver()
/packages/apps/Messaging/src/com/android/messaging/datamodel/
DMessagingContentProvider.java108 final ContentResolver cr = context.getContentResolver(); in notifyEverythingChanged()
129 final ContentResolver cr = Factory.get().getApplicationContext().getContentResolver(); in notifyParticipantsChanged()
134 final ContentResolver cr = Factory.get().getApplicationContext().getContentResolver(); in notifyAllMessagesChanged()
139 final ContentResolver cr = Factory.get().getApplicationContext().getContentResolver(); in notifyAllParticipantsChanged()
184 final ContentResolver cr = context.getContentResolver(); in notifyMessagesChanged()
203 final ContentResolver cr = Factory.get().getApplicationContext().getContentResolver(); in notifyConversationMetadataChanged()
209 final ContentResolver cr = Factory.get().getApplicationContext().getContentResolver(); in notifyPartsChanged()
215 final ContentResolver cr = context.getContentResolver(); in notifyConversationListChanged()
374 cursor.setNotificationUri(getContext().getContentResolver(), uri); in query()
382 cursor.setNotificationUri(getContext().getContentResolver(), notifyUri); in queryConversationMessages()
/packages/apps/Gallery/tests/src/com/android/camera/
DBitmapManagerUnitTests.java56 mContext.getContentResolver(), in setUp()
78 mBitmapManager.cancelThreadDecoding(t, mContext.getContentResolver()); in testCanThreadDecoding()
99 mBitmapManager.cancelThreadDecoding(t, mContext.getContentResolver()); in testCancelDecoding()
111 mBitmapManager.cancelThreadDecoding(t, mContext.getContentResolver()); in testAllowDecoding()
126 mBitmapManager.cancelThreadDecoding(t2, mContext.getContentResolver()); in testThreadDecoding()
/packages/apps/Settings/src/com/android/settings/notification/
DConfigureNotificationSettings.java130 return Settings.System.putInt(getContentResolver(), in initPulse()
143 mNotificationPulse.setChecked(Settings.System.getInt(getContentResolver(), in updatePulse()
195 Settings.Secure.putInt(getContentResolver(), in initLockscreenNotifications()
197 Settings.Secure.putInt(getContentResolver(), in initLockscreenNotifications()
263 Settings.Secure.putIntForUser(getContentResolver(), in initLockscreenNotificationsForProfile()
266 Settings.Secure.putIntForUser(getContentResolver(), in initLockscreenNotificationsForProfile()
331 return Settings.Secure.getIntForUser(getContentResolver(), in getLockscreenNotificationsEnabled()
336 return Settings.Secure.getIntForUser(getContentResolver(), in getLockscreenAllowPrivateNotifications()
356 final ContentResolver cr = getContentResolver(); in register()
/packages/services/Telephony/sip/src/com/android/services/telephony/sip/
DSipPreferences.java43 Settings.System.putString(mContext.getContentResolver(), in setSipCallOption()
54 String option = Settings.System.getString(mContext.getContentResolver(), in getSipCallOption()
61 Settings.System.putInt(mContext.getContentResolver(), in setReceivingCallsEnabled()
67 return (Settings.System.getInt(mContext.getContentResolver(), in isReceivingCallsEnabled()
/packages/apps/Dialer/src/com/android/dialer/filterednumber/
DFilteredNumbersUtil.java131 final Cursor cursor = context.getContentResolver().query( in checkForSendToVoicemailContact()
168 new FilteredNumberAsyncQueryHandler(context.getContentResolver()); in importSendToVoicemailContacts()
178 final Cursor phoneCursor = context.getContentResolver().query( in importSendToVoicemailContacts()
208 context.getContentResolver().update( in importSendToVoicemailContacts()
247 final Cursor cursor = context.getContentResolver().query( in shouldBlockVoicemail()
314 new FilteredNumberAsyncQueryHandler(context.getContentResolver()); in maybeNotifyCallBlockingDisabled()
361 context.getContentResolver(), in getRecentEmergencyCallThresholdMs()
/packages/apps/Dialer/src/com/android/dialer/settings/
DSoundSettingsFragment.java119 Settings.System.getInt(context.getContentResolver(), in onCreate()
165 Settings.System.putInt(getActivity().getContentResolver(), in onPreferenceChange()
170 Settings.System.putInt(getActivity().getContentResolver(), in onPreferenceChange()
189 Settings.System.putInt(getActivity().getContentResolver(), in onPreferenceTreeClick()
215 int vibrateWhenRingingSetting = Settings.System.getInt(getActivity().getContentResolver(), in shouldVibrateWhenRinging()
225 int dtmfToneSetting = Settings.System.getInt(getActivity().getContentResolver(), in shouldPlayDtmfTone()
/packages/apps/Settings/src/com/android/settings/location/
DScanningSettings.java60 wifiScanAlwaysAvailable.setChecked(Global.getInt(getContentResolver(), in initPreferences()
64 bleScanAlwaysAvailable.setChecked(Global.getInt(getContentResolver(), in initPreferences()
72 Global.putInt(getContentResolver(), in onPreferenceTreeClick()
76 Global.putInt(getContentResolver(), in onPreferenceTreeClick()
/packages/apps/Email/provider_src/com/android/email/provider/
DFolderPickerActivity.java118 getContentResolver().unregisterContentObserver(mAccountObserver); in onDestroy()
141 mContext.getContentResolver().unregisterContentObserver(mAccountObserver); in onChange()
165 getContentResolver().registerContentObserver(uri, false, mAccountObserver); in waitForFolders()
191 getContentResolver().update( in select()
200 getContentResolver().update( in select()
207 getContentResolver().update( in select()
/packages/apps/UnifiedEmail/tests/src/com/android/mail/compose/
DComposeActivityTest.java133 final Message refMessage = getRefMessage(activity.getContentResolver()); in testRecipientsRefReplyAllCustomFromReplyTo()
176 final Message refMessage = getRefMessage(activity.getContentResolver()); in testRecipientsRefReplyAllOnlyAccount()
213 final Message refMessage = getRefMessage(activity.getContentResolver()); in testRecipientsRefReplyAllOnlyCustomFrom()
250 final Message refMessage = getRefMessage(activity.getContentResolver()); in testReply()
272 final Message refMessage = getRefMessage(activity.getContentResolver()); in testReplyWithReplyTo()
298 final Message refMessage = getRefMessage(activity.getContentResolver()); in testReplyToSelf()
323 final Message refMessage = getRefMessage(activity.getContentResolver()); in testReplyAllToSelf()
349 final Message refMessage = getRefMessage(activity.getContentResolver()); in testReplyAllToSelfWithCc()
375 final Message refMessage = getRefMessage(activity.getContentResolver()); in testReplyAll()
398 final Message refMessage = getRefMessage(activity.getContentResolver()); in testReplyAllWithReplyTo()
[all …]
/packages/apps/Settings/src/com/android/settings/fuelgauge/
DBatterySaverPreference.java47 getContext().getContentResolver().registerContentObserver( in onAttached()
49 getContext().getContentResolver().registerContentObserver( in onAttached()
56 getContext().getContentResolver().unregisterContentObserver(mObserver); in onDetached()
64 int percent = Settings.Global.getInt(context.getContentResolver(), in updateSwitch()
/packages/apps/Dialer/src/com/android/dialer/calllog/
DCallLogAsyncTaskUtil.java181 Cursor cursor = context.getContentResolver().query( in getPhoneCallDetailsForUri()
274 context.getContentResolver().delete( in deleteCalls()
312 Cursor cursor = context.getContentResolver().query( in deleteBlockedCall()
327 context.getContentResolver().delete( in deleteBlockedCall()
357 context.getContentResolver().update( in markVoicemailAsRead()
379 context.getContentResolver().delete(voicemailUri, null, null); in deleteVoicemail()
417 context.getContentResolver().update( in markCallAsRead()
442 ContentResolver contentResolver = context.getContentResolver(); in updateVoicemailDuration()
452 context.getContentResolver().update(voicemailUri, values, null, null); in updateVoicemailDuration()
/packages/apps/TV/usbtuner/src/com/android/usbtuner/tvinput/
DChannelDataManager.java184 try (Cursor cursor = mContext.getContentResolver().query(TvContract.buildChannelUri( in getChannel()
222 try (Cursor cursor = mContext.getContentResolver().query(mChannelsUri, in notifyScanStarted()
262 mContext.getContentResolver().applyBatch(TvContract.AUTHORITY, ops); in notifyScanCompleted()
404 mContext.getContentResolver().applyBatch(TvContract.AUTHORITY, ops); in handleEvents()
435 Uri channelUri = mContext.getContentResolver().insert(TvContract.Channels.CONTENT_URI, in handleChannel()
439 mContext.getContentResolver().update( in handleChannel()
455 int count = mContext.getContentResolver().delete(mChannelsUri, null, null); in clearChannels()
471 try (Cursor cursor = mContext.getContentResolver().query(mChannelsUri, in getChannelId()
492 try (Cursor cursor = mContext.getContentResolver().query( in getAllProgramsForChannel()
520 try (Cursor cursor = mContext.getContentResolver().query(mChannelsUri, in buildChannelMap()
/packages/apps/Bluetooth/tests/src/com/android/bluetooth/tests/
DMapTestData.java82 ContentResolver resolver = sContext.getContentResolver(); in execute()
253 ContentResolver resolver = mContext.getContentResolver(); in testInsertMessages()
258 ContentResolver resolver = mContext.getContentResolver(); in testInsert1000Messages()
266 ContentResolver resolver = mContext.getContentResolver(); in testSetupContacts()
274 ContentResolver resolver = mContext.getContentResolver(); in testDeleteTestContacts()
279 ContentResolver resolver = mContext.getContentResolver(); in testSetup1000Contacts()

12345678910>>...29