Home
last modified time | relevance | path

Searched refs:cr (Results 1 – 25 of 179) 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/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()
DUtil.java276 Uri uri, ContentResolver cr, boolean useNative) { in makeBitmap() argument
279 input = cr.openFileDescriptor(uri, "r"); in makeBitmap()
284 return makeBitmap(minSideLength, maxNumOfPixels, uri, cr, input, in makeBitmap()
304 Uri uri, ContentResolver cr, ParcelFileDescriptor pfd, in makeBitmap() argument
307 if (pfd == null) pfd = makeInputStream(uri, cr); in makeBitmap()
334 Uri uri, ContentResolver cr) { in makeInputStream() argument
336 return cr.openFileDescriptor(uri, "r"); in makeInputStream()
/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.java175 final ContentResolver cr = context.getContentResolver(); in applyCaptionProperties() local
297 final ContentResolver cr = getContentResolver(); in updateAllPreferences() local
298 final CaptionStyle attrs = CaptionStyle.getCustomStyle(cr); in updateAllPreferences()
383 final ContentResolver cr = getActivity().getContentResolver(); in onValueChanged() local
387 cr, Settings.Secure.ACCESSIBILITY_CAPTIONING_FOREGROUND_COLOR, merged); in onValueChanged()
391 cr, Settings.Secure.ACCESSIBILITY_CAPTIONING_BACKGROUND_COLOR, merged); in onValueChanged()
395 cr, Settings.Secure.ACCESSIBILITY_CAPTIONING_WINDOW_COLOR, merged); in onValueChanged()
397 Settings.Secure.putInt(cr, Settings.Secure.ACCESSIBILITY_CAPTIONING_EDGE_COLOR, value); in onValueChanged()
399 Settings.Secure.putInt(cr, Settings.Secure.ACCESSIBILITY_CAPTIONING_PRESET, value); in onValueChanged()
402 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/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/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/apps/DeskClock/src/com/android/deskclock/alarms/
DAlarmUpdateHandler.kt62 val cr: ContentResolver = mAppContext.getContentResolver() in <lambda>() constant
65 val newAlarm = Alarm.addAlarm(cr, alarm) in <lambda>()
103 val cr: ContentResolver = mAppContext.getContentResolver() in <lambda>() constant
106 Alarm.updateAlarm(cr, alarm) in <lambda>()
109 val instanceList = AlarmInstance.getInstancesByAlarmId(cr, alarm.id) in <lambda>()
121 AlarmInstance.updateInstance(cr, newInstance) in <lambda>()
201 val cr: ContentResolver = mAppContext.getContentResolver() in <lambda>() constant
203 newInstance = AlarmInstance.addInstance(cr, newInstance) in <lambda>()
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.kt228 val cr: ContentResolver = context.getContentResolver() in <lambda>() constant
231 val alarmInstances = AlarmInstance.getInstances(cr, activeAlarmQuery) in <lambda>()
307 val cr: ContentResolver = context.getContentResolver() in <lambda>() constant
308 val alarm = Alarm.getAlarm(cr, instance.mAlarmId!!) in <lambda>()
317 Alarm.deleteAlarm(cr, alarm.id) in <lambda>()
321 Alarm.updateAlarm(cr, alarm) in <lambda>()
336 AlarmInstance.addInstance(cr, nextRepeatedInstance) in <lambda>()
720 val cr: ContentResolver = context.getContentResolver() in <lambda>() constant
721 val alarm = Alarm.getAlarm(cr, instance.mAlarmId!!) in <lambda>()
759 Alarm.updateAlarm(cr, alarm) in <lambda>()
[all …]
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/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/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/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()
/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()

12345678