Home
last modified time | relevance | path

Searched refs:cr (Results 1 – 25 of 183) sorted by relevance

12345678

/packages/services/Telecomm/src/com/android/server/telecom/
DTimeouts.java34 public long getCallScreeningTimeoutMillis(ContentResolver cr) { in getCallScreeningTimeoutMillis() argument
35 return Timeouts.getCallScreeningTimeoutMillis(cr); in getCallScreeningTimeoutMillis()
38 public long getCallRemoveUnbindInCallServicesDelay(ContentResolver cr) { in getCallRemoveUnbindInCallServicesDelay() argument
39 return Timeouts.getCallRemoveUnbindInCallServicesDelay(cr); in getCallRemoveUnbindInCallServicesDelay()
42 public long getRetryBluetoothConnectAudioBackoffMillis(ContentResolver cr) { in getRetryBluetoothConnectAudioBackoffMillis() argument
43 return Timeouts.getRetryBluetoothConnectAudioBackoffMillis(cr); in getRetryBluetoothConnectAudioBackoffMillis()
46 public long getBluetoothPendingTimeoutMillis(ContentResolver cr) { in getBluetoothPendingTimeoutMillis() argument
47 return Timeouts.getBluetoothPendingTimeoutMillis(cr); in getBluetoothPendingTimeoutMillis()
50 public long getEmergencyCallbackWindowMillis(ContentResolver cr) { in getEmergencyCallbackWindowMillis() argument
51 return Timeouts.getEmergencyCallbackWindowMillis(cr); in getEmergencyCallbackWindowMillis()
[all …]
/packages/apps/Email/emailcommon/src/com/android/emailcommon/provider/
DMessageChangeLogTable.java76 private static int startProcessing(final ContentResolver cr, final Uri uri, in startProcessing() argument
85 cr.update(uri, cv, SELECTION_BY_ACCOUNT_KEY_AND_STATUS, args); in startProcessing()
90 return cr.update(uri, cv, SELECTION_BY_ACCOUNT_KEY_AND_STATUS, args); in startProcessing()
103 private static Cursor getRowsToProcess(final ContentResolver cr, final Uri uri, in getRowsToProcess() argument
106 return cr.query(uri, projection, SELECTION_BY_ACCOUNT_KEY_AND_STATUS, args, ID + " ASC"); in getRowsToProcess()
136 protected static int deleteRowsForMessages(final ContentResolver cr, final Uri uri, in deleteRowsForMessages() argument
141 return cr.delete(uri, getSelectionForMessages(messageKeys, count), null); in deleteRowsForMessages()
153 private static int updateStatusForMessages(final ContentResolver cr, final Uri uri, in updateStatusForMessages() argument
160 return cr.update(uri, cv, getSelectionForMessages(messageKeys, count), null); in updateStatusForMessages()
171 protected static int retryMessages(final ContentResolver cr, final Uri uri, in retryMessages() argument
[all …]
DMessageMove.java120 final ContentResolver cr = context.getContentResolver(); in getMoves() local
121 final Cursor c = getCursor(cr, CONTENT_URI, ProjectionMoveQuery.PROJECTION, accountId); in getMoves()
179 deleteRowsForMessages(cr, CONTENT_URI, unmovedMessages, unmovedMessagesCount); in getMoves()
193 public static void upsyncSuccessful(final ContentResolver cr, final long[] messageKeys, in upsyncSuccessful() argument
195 deleteRowsForMessages(cr, CONTENT_URI, messageKeys, count); in upsyncSuccessful()
204 public static void upsyncRetry(final ContentResolver cr, final long[] messageKeys, in upsyncRetry() argument
206 retryMessages(cr, CONTENT_URI, messageKeys, count); in upsyncRetry()
215 public static void upsyncFail(final ContentResolver cr, final long[] messageKeys, in upsyncFail() argument
217 failMessages(cr, CONTENT_URI, messageKeys, count); in upsyncFail()
226 public static long getLastSyncedMailboxForMessage(final ContentResolver cr, in getLastSyncedMailboxForMessage() argument
[all …]
DMessageStateChange.java114 final ContentResolver cr = context.getContentResolver(); in getChanges() local
115 final Cursor c = getCursor(cr, CONTENT_URI, ProjectionChangeQuery.PROJECTION, accountId); in getChanges()
152 final long mailboxId = MessageMove.getLastSyncedMailboxForMessage(cr, in getChanges()
186 deleteRowsForMessages(cr, CONTENT_URI, unchangedMessages, unchangedMessagesCount); in getChanges()
225 public static void upsyncSuccessful(final ContentResolver cr, final long[] messageKeys, in upsyncSuccessful() argument
227 deleteRowsForMessages(cr, CONTENT_URI, messageKeys, count); in upsyncSuccessful()
236 public static void upsyncRetry(final ContentResolver cr, final long[] messageKeys, in upsyncRetry() argument
238 retryMessages(cr, CONTENT_URI, messageKeys, count); in upsyncRetry()
/packages/apps/Gallery/src/com/android/camera/
DImageManager.java200 public static Uri addImage(ContentResolver cr, String title, long dateTaken, in addImage() argument
246 return cr.insert(STORAGE_URI, values); in addImage()
280 public static IImageList makeImageList(ContentResolver cr, in makeImageList() argument
289 if (isEmptyImageList || cr == null) { in makeImageList()
294 return new SingleImageList(cr, singleImageUri); in makeImageList()
305 l.add(new ImageList(cr, STORAGE_URI, sort, bucketId)); in makeImageList()
308 l.add(new VideoList(cr, VIDEO_STORAGE_URI, sort, bucketId)); in makeImageList()
313 l.add(new ImageList(cr, in makeImageList()
340 public static IImageList makeImageList(ContentResolver cr, Uri uri, in makeImageList() argument
345 return makeImageList(cr, DataLocation.EXTERNAL, INCLUDE_VIDEOS, in makeImageList()
[all …]
DBitmapManager.java113 public synchronized void cancelThreadDecoding(Thread t, ContentResolver cr) { in cancelThreadDecoding() argument
128 Images.Thumbnails.cancelThumbnailRequest(cr, -1, t.getId()); in cancelThreadDecoding()
129 Video.Thumbnails.cancelThumbnailRequest(cr, -1, t.getId()); in cancelThreadDecoding()
138 public Bitmap getThumbnail(ContentResolver cr, long origId, int kind, in getThumbnail() argument
153 return Video.Thumbnails.getThumbnail(cr, origId, t.getId(), in getThumbnail()
156 return Images.Thumbnails.getThumbnail(cr, origId, t.getId(), in getThumbnail()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/development/
DSimulateColorSpacePreferenceController.java72 final ContentResolver cr = mContext.getContentResolver(); in updateSimulateColorSpace() local
74 cr, Settings.Secure.ACCESSIBILITY_DISPLAY_DALTONIZER_ENABLED, SETTING_VALUE_OFF) in updateSimulateColorSpace()
79 cr, Settings.Secure.ACCESSIBILITY_DISPLAY_DALTONIZER, in updateSimulateColorSpace()
98 final ContentResolver cr = mContext.getContentResolver(); in writeSimulateColorSpace() local
101 Settings.Secure.putInt(cr, Settings.Secure.ACCESSIBILITY_DISPLAY_DALTONIZER_ENABLED, in writeSimulateColorSpace()
104 Settings.Secure.putInt(cr, Settings.Secure.ACCESSIBILITY_DISPLAY_DALTONIZER_ENABLED, in writeSimulateColorSpace()
106 Settings.Secure.putInt(cr, Settings.Secure.ACCESSIBILITY_DISPLAY_DALTONIZER, newMode); in writeSimulateColorSpace()
115 final ContentResolver cr = mContext.getContentResolver(); in usingDevelopmentColorSpace() local
117 cr, Settings.Secure.ACCESSIBILITY_DISPLAY_DALTONIZER_ENABLED, SETTING_VALUE_OFF) in usingDevelopmentColorSpace()
121 cr, Settings.Secure.ACCESSIBILITY_DISPLAY_DALTONIZER, in usingDevelopmentColorSpace()
/packages/apps/Settings/src/com/android/settings/development/
DSimulateColorSpacePreferenceController.java72 final ContentResolver cr = mContext.getContentResolver(); in updateSimulateColorSpace() local
74 cr, Settings.Secure.ACCESSIBILITY_DISPLAY_DALTONIZER_ENABLED, SETTING_VALUE_OFF) in updateSimulateColorSpace()
79 cr, Settings.Secure.ACCESSIBILITY_DISPLAY_DALTONIZER, in updateSimulateColorSpace()
98 final ContentResolver cr = mContext.getContentResolver(); in writeSimulateColorSpace() local
101 Settings.Secure.putInt(cr, Settings.Secure.ACCESSIBILITY_DISPLAY_DALTONIZER_ENABLED, in writeSimulateColorSpace()
104 Settings.Secure.putInt(cr, Settings.Secure.ACCESSIBILITY_DISPLAY_DALTONIZER_ENABLED, in writeSimulateColorSpace()
106 Settings.Secure.putInt(cr, Settings.Secure.ACCESSIBILITY_DISPLAY_DALTONIZER, newMode); in writeSimulateColorSpace()
115 final ContentResolver cr = mContext.getContentResolver(); in usingDevelopmentColorSpace() local
117 cr, Settings.Secure.ACCESSIBILITY_DISPLAY_DALTONIZER_ENABLED, SETTING_VALUE_OFF) in usingDevelopmentColorSpace()
121 cr, Settings.Secure.ACCESSIBILITY_DISPLAY_DALTONIZER, in usingDevelopmentColorSpace()
/packages/apps/Messaging/src/com/android/messaging/datamodel/
DMessagingContentProvider.java108 final ContentResolver cr = context.getContentResolver(); in notifyEverythingChanged() local
109 cr.notifyChange(uri, null); in notifyEverythingChanged()
129 final ContentResolver cr = Factory.get().getApplicationContext().getContentResolver(); in notifyParticipantsChanged() local
130 cr.notifyChange(uri, null); in notifyParticipantsChanged()
134 final ContentResolver cr = Factory.get().getApplicationContext().getContentResolver(); in notifyAllMessagesChanged() local
135 cr.notifyChange(CONVERSATION_MESSAGES_URI, null); in notifyAllMessagesChanged()
139 final ContentResolver cr = Factory.get().getApplicationContext().getContentResolver(); in notifyAllParticipantsChanged() local
140 cr.notifyChange(CONVERSATION_PARTICIPANTS_URI, null); in notifyAllParticipantsChanged()
184 final ContentResolver cr = context.getContentResolver(); in notifyMessagesChanged() local
185 cr.notifyChange(uri, null); in notifyMessagesChanged()
[all …]
/packages/apps/Settings/src/com/android/settings/accessibility/
DCaptionPropertiesFragment.java176 final ContentResolver cr = context.getContentResolver(); in applyCaptionProperties() local
319 final ContentResolver cr = getContentResolver(); in updateAllPreferences() local
320 final CaptionStyle attrs = CaptionStyle.getCustomStyle(cr); in updateAllPreferences()
403 final ContentResolver cr = getActivity().getContentResolver(); in onValueChanged() local
407 cr, Settings.Secure.ACCESSIBILITY_CAPTIONING_FOREGROUND_COLOR, merged); in onValueChanged()
411 cr, Settings.Secure.ACCESSIBILITY_CAPTIONING_BACKGROUND_COLOR, merged); in onValueChanged()
415 cr, Settings.Secure.ACCESSIBILITY_CAPTIONING_WINDOW_COLOR, merged); in onValueChanged()
417 Settings.Secure.putInt(cr, Settings.Secure.ACCESSIBILITY_CAPTIONING_EDGE_COLOR, value); in onValueChanged()
419 Settings.Secure.putInt(cr, Settings.Secure.ACCESSIBILITY_CAPTIONING_PRESET, value); in onValueChanged()
422 Settings.Secure.putInt(cr, Settings.Secure.ACCESSIBILITY_CAPTIONING_EDGE_TYPE, value); in onValueChanged()
[all …]
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/accessibility/
DCaptionPropertiesFragment.java216 final ContentResolver cr = context.getContentResolver(); in applyCaptionProperties() local
346 final ContentResolver cr = getContentResolver(); in updateAllPreferences() local
347 final CaptionStyle attrs = CaptionStyle.getCustomStyle(cr); in updateAllPreferences()
430 final ContentResolver cr = getActivity().getContentResolver(); in onValueChanged() local
434 cr, Settings.Secure.ACCESSIBILITY_CAPTIONING_FOREGROUND_COLOR, merged); in onValueChanged()
438 cr, Settings.Secure.ACCESSIBILITY_CAPTIONING_BACKGROUND_COLOR, merged); in onValueChanged()
442 cr, Settings.Secure.ACCESSIBILITY_CAPTIONING_WINDOW_COLOR, merged); in onValueChanged()
444 Settings.Secure.putInt(cr, Settings.Secure.ACCESSIBILITY_CAPTIONING_EDGE_COLOR, value); in onValueChanged()
446 Settings.Secure.putInt(cr, Settings.Secure.ACCESSIBILITY_CAPTIONING_PRESET, value); in onValueChanged()
449 Settings.Secure.putInt(cr, Settings.Secure.ACCESSIBILITY_CAPTIONING_EDGE_TYPE, value); in onValueChanged()
[all …]
/packages/apps/Settings/src/com/android/settings/notification/
DSettingPref.java143 protected static boolean putInt(int type, ContentResolver cr, String setting, int value) { in putInt() argument
146 return Global.putInt(cr, setting, value); in putInt()
148 return System.putInt(cr, setting, value); in putInt()
150 return Secure.putInt(cr, setting, value); in putInt()
155 protected static int getInt(int type, ContentResolver cr, String setting, int def) { in getInt() argument
158 return Global.getInt(cr, setting, def); in getInt()
160 return System.getInt(cr, setting, def); in getInt()
162 return Secure.getInt(cr, setting, def); in getInt()
DZenModePreferenceController.java91 public void register(ContentResolver cr) { in register() argument
92 cr.registerContentObserver(ZEN_MODE_URI, false, this, UserHandle.USER_ALL); in register()
93 cr.registerContentObserver(ZEN_MODE_CONFIG_ETAG_URI, false, this, UserHandle.USER_ALL); in register()
96 public void unregister(ContentResolver cr) { in unregister() argument
97 cr.unregisterContentObserver(this); in unregister()
DAbstractZenModePreferenceController.java138 public void register(ContentResolver cr) { in register() argument
139 cr.registerContentObserver(ZEN_MODE_URI, false, this, UserHandle.USER_ALL); in register()
140 cr.registerContentObserver(ZEN_MODE_CONFIG_ETAG_URI, false, this, UserHandle.USER_ALL); in register()
141 cr.registerContentObserver(ZEN_MODE_DURATION_URI, false, this, UserHandle.USER_ALL); in register()
144 public void unregister(ContentResolver cr) { in unregister() argument
145 cr.unregisterContentObserver(this); in unregister()
/packages/apps/TV/src/com/android/tv/recommendation/
DFavoriteChannelEvaluator.java28 for (ChannelRecord cr : channelRecords) { in onChannelRecordListChanged()
29 WatchedProgram[] watchedPrograms = cr.getWatchHistory(); in onChannelRecordListChanged()
39 ChannelRecord cr = getRecommender().getChannelRecord(channelId); in evaluateChannel() local
40 if (cr == null) { in evaluateChannel()
44 if (cr.getTotalWatchDurationMs() == 0) { in evaluateChannel()
49 return (double) cr.getTotalWatchDurationMs() / Math.max(watchPeriodMs, MIN_WATCH_PERIOD_MS); in evaluateChannel()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/notification/
DSettingPref.java143 protected static boolean putInt(int type, ContentResolver cr, String setting, int value) { in putInt() argument
146 return Global.putInt(cr, setting, value); in putInt()
148 return System.putInt(cr, setting, value); in putInt()
150 return Secure.putInt(cr, setting, value); in putInt()
155 protected static int getInt(int type, ContentResolver cr, String setting, int def) { in getInt() argument
158 return Global.getInt(cr, setting, def); in getInt()
160 return System.getInt(cr, setting, def); in getInt()
162 return Secure.getInt(cr, setting, def); in getInt()
DZenModePreferenceController.java91 public void register(ContentResolver cr) { in register() argument
92 cr.registerContentObserver(ZEN_MODE_URI, false, this, UserHandle.USER_ALL); in register()
93 cr.registerContentObserver(ZEN_MODE_CONFIG_ETAG_URI, false, this, UserHandle.USER_ALL); in register()
96 public void unregister(ContentResolver cr) { in unregister() argument
97 cr.unregisterContentObserver(this); in unregister()
DAbstractZenModePreferenceController.java138 public void register(ContentResolver cr) { in register() argument
139 cr.registerContentObserver(ZEN_MODE_URI, false, this, UserHandle.USER_ALL); in register()
140 cr.registerContentObserver(ZEN_MODE_CONFIG_ETAG_URI, false, this, UserHandle.USER_ALL); in register()
141 cr.registerContentObserver(ZEN_MODE_DURATION_URI, false, this, UserHandle.USER_ALL); in register()
144 public void unregister(ContentResolver cr) { in unregister() argument
145 cr.unregisterContentObserver(this); in unregister()
/packages/apps/DeskClock/src/com/android/deskclock/alarms/
DAlarmUpdateHandler.java68 ContentResolver cr = mAppContext.getContentResolver(); in asyncAddAlarm()
71 Alarm newAlarm = Alarm.addAlarm(cr, alarm); in asyncAddAlarm()
108 ContentResolver cr = mAppContext.getContentResolver(); in asyncUpdateAlarm()
111 Alarm.updateAlarm(cr, alarm); in asyncUpdateAlarm()
116 AlarmInstance.getInstancesByAlarmId(cr, alarm.id); in asyncUpdateAlarm()
128 AlarmInstance.updateInstance(cr, newInstance); in asyncUpdateAlarm()
215 final ContentResolver cr = mAppContext.getContentResolver(); in setupAlarmInstance() local
217 newInstance = AlarmInstance.addInstance(cr, newInstance); in setupAlarmInstance()
DAlarmStateManager.java184 final ContentResolver cr = context.getContentResolver(); in getNextFiringAlarm() local
186 final List<AlarmInstance> alarmInstances = AlarmInstance.getInstances(cr, activeAlarmQuery); in getNextFiringAlarm()
263 ContentResolver cr = context.getContentResolver(); in updateParentAlarm() local
264 Alarm alarm = Alarm.getAlarm(cr, instance.mAlarmId); in updateParentAlarm()
273 Alarm.deleteAlarm(cr, alarm.id); in updateParentAlarm()
277 Alarm.updateAlarm(cr, alarm); in updateParentAlarm()
291 AlarmInstance.addInstance(cr, nextRepeatedInstance); in updateParentAlarm()
656 final ContentResolver cr = context.getContentResolver(); in registerInstance() local
657 final Alarm alarm = Alarm.getAlarm(cr, instance.mAlarmId); in registerInstance()
695 Alarm.updateAlarm(cr, alarm); in registerInstance()
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/gestures/
DGesturesSettingsPreferenceControllerTest.java107 final ContentResolver cr = mActivity.getContentResolver(); in updateState_assistSupported_shouldSetToAssistGestureStatus() local
108 Settings.Secure.putInt(cr, Settings.Secure.ASSIST_GESTURE_ENABLED, 0); in updateState_assistSupported_shouldSetToAssistGestureStatus()
109 Settings.Secure.putInt(cr, Settings.Secure.ASSIST_GESTURE_SILENCE_ALERTS_ENABLED, 0); in updateState_assistSupported_shouldSetToAssistGestureStatus()
113 Settings.Secure.putInt(cr, Settings.Secure.ASSIST_GESTURE_ENABLED, 1); in updateState_assistSupported_shouldSetToAssistGestureStatus()
114 Settings.Secure.putInt(cr, Settings.Secure.ASSIST_GESTURE_SILENCE_ALERTS_ENABLED, 0); in updateState_assistSupported_shouldSetToAssistGestureStatus()
118 Settings.Secure.putInt(cr, Settings.Secure.ASSIST_GESTURE_ENABLED, 0); in updateState_assistSupported_shouldSetToAssistGestureStatus()
119 Settings.Secure.putInt(cr, Settings.Secure.ASSIST_GESTURE_SILENCE_ALERTS_ENABLED, 1); in updateState_assistSupported_shouldSetToAssistGestureStatus()
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/parser/
DDisclaimersParserTest.java85 ContentResolver cr = targetContext.getContentResolver(); in setUpClass() local
89 DISCLAIMER_CONTENT_1 = TestUtils.stringFromUri(cr, DISCLAIMER_URI_1); in setUpClass()
92 DISCLAIMER_CONTENT_2 = TestUtils.stringFromUri(cr, DISCLAIMER_URI_2); in setUpClass()
95 DISCLAIMER_CONTENT_3 = TestUtils.stringFromUri(cr, DISCLAIMER_URI_3); in setUpClass()
102 ContentResolver cr = InstrumentationRegistry.getTargetContext().getContentResolver(); in setUp() local
104 when(mContext.getContentResolver()).thenReturn(cr); in setUp()
/packages/apps/StorageManager/src/com/android/storagemanager/automatic/
DAutomaticStorageManagementJobService.java137 final ContentResolver cr = context.getContentResolver(); in maybeDisableDueToPolicy() local
138 if (provider == null || cr == null) { in maybeDisableDueToPolicy()
151 cr, in maybeDisableDueToPolicy()
157 cr, Settings.Secure.AUTOMATIC_STORAGE_MANAGER_TURNED_OFF_BY_POLICY, 1); in maybeDisableDueToPolicy()
158 Settings.Secure.putInt(cr, Settings.Secure.AUTOMATIC_STORAGE_MANAGER_ENABLED, 0); in maybeDisableDueToPolicy()
/packages/apps/Settings/src/com/android/settings/applications/assist/
DAssistSettingObserver.java39 public void register(ContentResolver cr, boolean register) { in register() argument
41 cr.registerContentObserver(ASSIST_URI, false, this); in register()
45 cr.registerContentObserver(uri, false, this); in register()
49 cr.unregisterContentObserver(this); in register()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/applications/assist/
DAssistSettingObserver.java39 public void register(ContentResolver cr, boolean register) { in register() argument
41 cr.registerContentObserver(ASSIST_URI, false, this); in register()
45 cr.registerContentObserver(uri, false, this); in register()
49 cr.unregisterContentObserver(this); in register()

12345678