/packages/services/Telecomm/src/com/android/server/telecom/ |
D | Timeouts.java | 40 public long getCallScreeningTimeoutMillis(ContentResolver cr) { in getCallScreeningTimeoutMillis() argument 41 return Timeouts.getCallScreeningTimeoutMillis(cr); in getCallScreeningTimeoutMillis() 44 public long getCallRemoveUnbindInCallServicesDelay(ContentResolver cr) { in getCallRemoveUnbindInCallServicesDelay() argument 45 return Timeouts.getCallRemoveUnbindInCallServicesDelay(cr); in getCallRemoveUnbindInCallServicesDelay() 48 public long getRetryBluetoothConnectAudioBackoffMillis(ContentResolver cr) { in getRetryBluetoothConnectAudioBackoffMillis() argument 49 return Timeouts.getRetryBluetoothConnectAudioBackoffMillis(cr); in getRetryBluetoothConnectAudioBackoffMillis() 52 public long getBluetoothPendingTimeoutMillis(ContentResolver cr) { in getBluetoothPendingTimeoutMillis() argument 53 return Timeouts.getBluetoothPendingTimeoutMillis(cr); in getBluetoothPendingTimeoutMillis() 56 public long getEmergencyCallbackWindowMillis(ContentResolver cr) { in getEmergencyCallbackWindowMillis() argument 57 return Timeouts.getEmergencyCallbackWindowMillis(cr); in getEmergencyCallbackWindowMillis() [all …]
|
/packages/apps/QuickAccessWallet/tests/robolectric/src/com/android/systemui/plugin/globalactions/wallet/ |
D | WalletPluginServiceTest.java | 49 ContentResolver cr = mContext.getContentResolver(); in onCreate_serviceAvailable_enablesFeatureInSettings() local 51 cr, Settings.Secure.GLOBAL_ACTIONS_PANEL_AVAILABLE, -1)).isEqualTo(1); in onCreate_serviceAvailable_enablesFeatureInSettings() 53 cr, Settings.Secure.GLOBAL_ACTIONS_PANEL_ENABLED, -1)).isEqualTo(1); in onCreate_serviceAvailable_enablesFeatureInSettings() 62 ContentResolver cr = mContext.getContentResolver(); in onCreate_serviceUnavailable_disablesFeatureInSettings() local 64 cr, Settings.Secure.GLOBAL_ACTIONS_PANEL_AVAILABLE, -1)).isEqualTo(0); in onCreate_serviceUnavailable_disablesFeatureInSettings() 66 cr, Settings.Secure.GLOBAL_ACTIONS_PANEL_ENABLED, -1)).isEqualTo(1); in onCreate_serviceUnavailable_disablesFeatureInSettings() 71 ContentResolver cr = mContext.getContentResolver(); in onCreate_doesNotOverridePanelEnabledSettingIfOff() local 72 Settings.Secure.putInt(cr, Settings.Secure.GLOBAL_ACTIONS_PANEL_ENABLED, 0); in onCreate_doesNotOverridePanelEnabledSettingIfOff() 77 cr, Settings.Secure.GLOBAL_ACTIONS_PANEL_ENABLED, -1)).isEqualTo(0); in onCreate_doesNotOverridePanelEnabledSettingIfOff() 84 ContentResolver cr = mContext.getContentResolver(); in onPanelShown_wasUnavailable_nowAvailable_updatesFeatureAvailabilityInSettings() local [all …]
|
D | QuickAccessWalletClientTest.java | 109 ContentResolver cr = mContext.getContentResolver(); in isWalletFeatureAvailable_happyCase() local 110 Settings.Secure.putInt(cr, Settings.Secure.USER_SETUP_COMPLETE, 1); in isWalletFeatureAvailable_happyCase() 122 ContentResolver cr = mContext.getContentResolver(); in isWalletFeatureAvailable_wrongUser() local 123 Settings.Secure.putInt(cr, Settings.Secure.USER_SETUP_COMPLETE, 1); in isWalletFeatureAvailable_wrongUser() 148 ContentResolver cr = mContext.getContentResolver(); in isWalletFeatureAvailable_globalActionsPanelDisabled() local 149 Settings.Secure.putInt(cr, in isWalletFeatureAvailable_globalActionsPanelDisabled() 151 Settings.Secure.putInt(cr, Settings.Secure.USER_SETUP_COMPLETE, 1); in isWalletFeatureAvailable_globalActionsPanelDisabled() 163 ContentResolver cr = mContext.getContentResolver(); in isWalletFeatureAvailable_userInLockdown() local 164 Settings.Secure.putInt(cr, Settings.Secure.USER_SETUP_COMPLETE, 1); in isWalletFeatureAvailable_userInLockdown() 174 ContentResolver cr = mContext.getContentResolver(); in isWalletFeatureAvailableWhenDeviceLocked() local [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/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/providers/MediaProvider/apex/framework/java/android/provider/ |
D | MediaStore.java | 2125 static @Nullable Bitmap getThumbnail(@NonNull ContentResolver cr, @NonNull Uri uri, in getThumbnail() argument 2139 return cr.loadThumbnail(uri, size, signal); in getThumbnail() 2157 static void cancelThumbnail(@NonNull ContentResolver cr, @NonNull Uri uri) { in cancelThumbnail() argument 2281 public static final Cursor query(ContentResolver cr, Uri uri, String[] projection) { in query() argument 2282 return cr.query(uri, projection, null, null, DEFAULT_SORT_ORDER); in query() 2291 public static final Cursor query(ContentResolver cr, Uri uri, String[] projection, in query() argument 2293 return cr.query(uri, projection, where, in query() 2303 public static final Cursor query(ContentResolver cr, Uri uri, String[] projection, in query() argument 2305 return cr.query(uri, projection, selection, in query() 2320 public static final Bitmap getBitmap(ContentResolver cr, Uri url) in getBitmap() argument [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/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()
|
/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 | AlarmStateManager.kt | 227 val cr: ContentResolver = context.getContentResolver() in <lambda>() constant 230 val alarmInstances = AlarmInstance.getInstances(cr, activeAlarmQuery) in <lambda>() 306 val cr: ContentResolver = context.getContentResolver() in <lambda>() constant 307 val alarm = Alarm.getAlarm(cr, instance.mAlarmId!!) in <lambda>() 316 Alarm.deleteAlarm(cr, alarm.id) in <lambda>() 320 Alarm.updateAlarm(cr, alarm) in <lambda>() 335 AlarmInstance.addInstance(cr, nextRepeatedInstance) in <lambda>() 719 val cr: ContentResolver = context.getContentResolver() in <lambda>() constant 720 val alarm = Alarm.getAlarm(cr, instance.mAlarmId!!) in <lambda>() 758 Alarm.updateAlarm(cr, alarm) in <lambda>() [all …]
|
/packages/apps/Settings/src/com/android/settings/accessibility/ |
D | CaptionAppearanceFragment.java | 179 final ContentResolver cr = context.getContentResolver(); in applyCaptionProperties() local 294 final ContentResolver cr = getContentResolver(); in updateAllPreferences() local 296 cr); in updateAllPreferences() 377 final ContentResolver cr = getActivity().getContentResolver(); in onValueChanged() local 381 cr, Settings.Secure.ACCESSIBILITY_CAPTIONING_FOREGROUND_COLOR, merged); in onValueChanged() 385 cr, Settings.Secure.ACCESSIBILITY_CAPTIONING_BACKGROUND_COLOR, merged); in onValueChanged() 389 cr, Settings.Secure.ACCESSIBILITY_CAPTIONING_WINDOW_COLOR, merged); in onValueChanged() 391 Settings.Secure.putInt(cr, Settings.Secure.ACCESSIBILITY_CAPTIONING_EDGE_COLOR, value); in onValueChanged() 393 Settings.Secure.putInt(cr, Settings.Secure.ACCESSIBILITY_CAPTIONING_PRESET, value); in onValueChanged() 396 Settings.Secure.putInt(cr, Settings.Secure.ACCESSIBILITY_CAPTIONING_EDGE_TYPE, value); in onValueChanged() [all …]
|
/packages/modules/adb/libs/adbconnection/ |
D | adbconnection_client.cpp | 44 ucred cr; in SocketPeerIsTrusted() local 45 socklen_t cr_length = sizeof(cr); in SocketPeerIsTrusted() 46 if (getsockopt(fd, SOL_SOCKET, SO_PEERCRED, &cr, &cr_length) != 0) { in SocketPeerIsTrusted() 52 if (cr.uid != 0 && cr.uid != shell->pw_uid) { in SocketPeerIsTrusted() 53 LOG(ERROR) << "untrusted uid " << cr.uid << " on other end of socket"; in SocketPeerIsTrusted()
|
/packages/apps/Launcher3/src/com/android/launcher3/ |
D | LauncherSettings.java | 392 public static Bundle call(ContentResolver cr, String method) { in call() argument 393 return call(cr, method, null /* arg */); in call() 396 public static Bundle call(ContentResolver cr, String method, String arg) { in call() argument 397 return call(cr, method, arg, null /* extras */); in call() 400 public static Bundle call(ContentResolver cr, String method, String arg, Bundle extras) { in call() argument 401 return cr.call(CONTENT_URI, method, arg, extras); in call()
|
/packages/apps/Settings/src/com/android/settings/notification/zen/ |
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 | 144 public void register(ContentResolver cr) { in register() argument 145 cr.registerContentObserver(ZEN_MODE_URI, false, this, UserHandle.USER_ALL); in register() 146 cr.registerContentObserver(ZEN_MODE_CONFIG_ETAG_URI, false, this, UserHandle.USER_ALL); in register() 147 cr.registerContentObserver(ZEN_MODE_DURATION_URI, false, this, UserHandle.USER_ALL); in register() 150 public void unregister(ContentResolver cr) { in unregister() argument 151 cr.unregisterContentObserver(this); in unregister()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/homepage/contextualcards/ |
D | CardContentProviderTest.java | 241 final Cursor cr = mResolver.query(mUri, null, null, null); in getRowCount() local 242 final int count = cr.getCount(); in getRowCount() 243 cr.close(); in getRowCount() 251 final Cursor cr = mResolver.query(mUri, columns, selection, selectionArgs, null); in queryDismissedTimestamp() local 252 cr.moveToFirst(); in queryDismissedTimestamp() 253 final long dismissedTimestamp = cr.getLong(0); in queryDismissedTimestamp() 254 cr.close(); in queryDismissedTimestamp()
|
/packages/modules/Wifi/service/java/com/android/server/wifi/ |
D | WifiSettingsStore.java | 141 final ContentResolver cr = mContext.getContentResolver(); in persistWifiState() local 143 Settings.Global.putInt(cr, Settings.Global.WIFI_ON, state); in persistWifiState() 173 final ContentResolver cr = mContext.getContentResolver(); in getPersistedWifiState() local 175 return Settings.Global.getInt(cr, Settings.Global.WIFI_ON); in getPersistedWifiState() 177 Settings.Global.putInt(cr, Settings.Global.WIFI_ON, WIFI_DISABLED); in getPersistedWifiState()
|
/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()
|
/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/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/DeskClock/src/com/android/deskclock/ |
D | FetchMatchingAlarmsAction.kt | 59 val cr = mContext.contentResolver in run() constant 96 val alarmInstance = AlarmInstance.getNextUpcomingInstanceByAlarmId(cr, alarm.id) in run() 116 nextTime[Calendar.HOUR_OF_DAY], nextTime[Calendar.MINUTE], cr) in run() 149 cr: ContentResolver in getAlarmsByHourMinutes() 155 return Alarm.getAlarms(cr, selection, *args) in getAlarmsByHourMinutes()
|
/packages/apps/Settings/src/com/android/settings/gestures/ |
D | PreventRingingParentPreferenceController.java | 183 public void register(ContentResolver cr) { in register() argument 184 cr.registerContentObserver(mKeyChordVolumePowerUpUri, false, this); in register() 185 cr.registerContentObserver(mVolumeHushGestureUri, false, this); in register() 188 public void unregister(ContentResolver cr) { in unregister() argument 189 cr.unregisterContentObserver(this); in unregister()
|