/packages/services/Telecomm/src/com/android/server/telecom/ |
D | Timeouts.java | 34 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/ |
D | ImageManager.java | 200 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 …]
|
D | BitmapManager.java | 113 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()
|
D | Util.java | 276 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/ |
D | SimulateColorSpacePreferenceController.java | 72 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/ |
D | SimulateColorSpacePreferenceController.java | 72 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/ |
D | MessagingContentProvider.java | 108 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/ |
D | CaptionPropertiesFragment.java | 175 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/ |
D | SettingPref.java | 143 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()
|
D | ZenModePreferenceController.java | 91 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()
|
D | AbstractZenModePreferenceController.java | 138 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/ |
D | CaptionPropertiesFragment.java | 216 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/ |
D | FavoriteChannelEvaluator.java | 28 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/ |
D | AlarmUpdateHandler.kt | 62 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>()
|
D | AlarmUpdateHandler.java | 68 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()
|
D | AlarmStateManager.kt | 228 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 …]
|
D | AlarmStateManager.java | 184 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/ |
D | SettingPref.java | 143 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()
|
D | ZenModePreferenceController.java | 91 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()
|
D | AbstractZenModePreferenceController.java | 138 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/ |
D | GesturesSettingsPreferenceControllerTest.java | 107 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/ |
D | DisclaimersParserTest.java | 85 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/ |
D | AutomaticStorageManagementJobService.java | 137 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/ |
D | AssistSettingObserver.java | 39 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/ |
D | AssistSettingObserver.java | 39 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()
|