Home
last modified time | relevance | path

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

12345

/aosp14/frameworks/base/services/core/java/com/android/server/audio/
H A DSettingsAdapter.java35 public int getGlobalInt(ContentResolver cr, String name, int def) { in getGlobalInt() argument
36 return Settings.Global.getInt(cr, name, def); in getGlobalInt()
45 public boolean putGlobalInt(ContentResolver cr, String name, int value) { in putGlobalInt() argument
46 return Settings.Global.putInt(cr, name, value); in putGlobalInt()
59 public int getSystemIntForUser(ContentResolver cr, String name, int def, int userHandle) { in getSystemIntForUser() argument
60 return Settings.System.getIntForUser(cr, name, def, userHandle); in getSystemIntForUser()
65 return Settings.System.putIntForUser(cr, name, value, userHandle); in putSystemIntForUser()
74 return Settings.Secure.getIntForUser(cr, name, def, userHandle); in getSecureIntForUser()
84 return Settings.Secure.putIntForUser(cr, name, value, userHandle); in putSecureIntForUser()
88 public boolean putSecureStringForUser(ContentResolver cr, String name, String value, in putSecureStringForUser() argument
[all …]
/aosp14/frameworks/base/services/core/java/com/android/server/
H A DCertBlacklister.java57 public BlacklistObserver(String key, String name, String path, ContentResolver cr) { in BlacklistObserver() argument
63 mContentResolver = cr; in BlacklistObserver()
113 private BlacklistObserver buildPubkeyObserver(ContentResolver cr) { in buildPubkeyObserver() argument
117 cr); in buildPubkeyObserver()
120 private BlacklistObserver buildSerialObserver(ContentResolver cr) { in buildSerialObserver() argument
124 cr); in buildSerialObserver()
127 private void registerObservers(ContentResolver cr) { in registerObservers() argument
129 cr.registerContentObserver( in registerObservers()
132 buildPubkeyObserver(cr) in registerObservers()
136 cr.registerContentObserver( in registerObservers()
[all …]
/aosp14/frameworks/base/core/java/android/provider/
H A DBrowser.java243 public static final Cursor getAllBookmarks(ContentResolver cr) throws in getAllBookmarks() argument
255 public static final Cursor getAllVisitedUrls(ContentResolver cr) throws in getAllVisitedUrls() argument
313 public static final void updateVisitedHistory(ContentResolver cr, in updateVisitedHistory() argument
325 public static final String[] getVisitedHistory(ContentResolver cr) { in getVisitedHistory() argument
339 public static final void truncateHistory(ContentResolver cr) { in truncateHistory() argument
349 public static final boolean canClearHistory(ContentResolver cr) { in canClearHistory() argument
360 public static final void clearHistory(ContentResolver cr) { in clearHistory() argument
374 public static final void deleteHistoryTimeFrame(ContentResolver cr, in deleteHistoryTimeFrame() argument
385 public static final void deleteFromHistory(ContentResolver cr, in deleteFromHistory() argument
396 public static final void addSearchUrl(ContentResolver cr, String search) { in addSearchUrl() argument
[all …]
H A DSearchRecentSuggestions.java189 ContentResolver cr = mContext.getContentResolver(); in saveRecentQueryBlocking() local
201 cr.insert(mSuggestionsUri, values); in saveRecentQueryBlocking()
207 truncateHistory(cr, MAX_HISTORY_COUNT); in saveRecentQueryBlocking()
219 ContentResolver cr = mContext.getContentResolver(); in clearHistory() local
220 truncateHistory(cr, 0); in clearHistory()
229 protected void truncateHistory(ContentResolver cr, int maxEntries) { in truncateHistory() argument
243 cr.delete(mSuggestionsUri, selection, null); in truncateHistory()
H A DSettings.java4046 return getIntForUser(cr, name, def, cr.getUserId()); in getInt()
4076 return getIntForUser(cr, name, cr.getUserId()); in getInt()
4101 return putIntForUser(cr, name, value, cr.getUserId()); in putInt()
4126 return getLongForUser(cr, name, def, cr.getUserId()); in getLong()
4155 return getLongForUser(cr, name, cr.getUserId()); in getLong()
4233 return getFloatForUser(cr, name, cr.getUserId()); in getFloat()
6680 return getIntForUser(cr, name, def, cr.getUserId()); in getInt()
6710 return getIntForUser(cr, name, cr.getUserId()); in getInt()
6759 return getLongForUser(cr, name, def, cr.getUserId()); in getLong()
6789 return getLongForUser(cr, name, cr.getUserId()); in getLong()
[all …]
H A DCalendarContract.java1917 public static final Cursor query(ContentResolver cr, String[] projection, in query() argument
1922 return cr.query(builder.build(), projection, WHERE_CALENDARS_SELECTED, in query()
1946 public static final Cursor query(ContentResolver cr, String[] projection, in query() argument
1952 return cr.query(builder.build(), projection, WHERE_CALENDARS_SELECTED, in query()
2265 return cr.query(builder.build(), projection, SELECTION, in query()
2489 public static final Uri insert(ContentResolver cr, long eventId, in insert() argument
2502 return cr.insert(CONTENT_URI, values); in insert()
2552 public static final void rescheduleMissedAlarms(ContentResolver cr, in rescheduleMissedAlarms() argument
2564 Cursor cursor = cr.query(CalendarAlerts.CONTENT_URI, projection, in rescheduleMissedAlarms()
2648 public static final boolean alarmExists(ContentResolver cr, long eventId, in alarmExists() argument
[all …]
/aosp14/frameworks/base/services/tests/servicestests/src/com/android/server/audio/
H A DNoOpSettingsAdapter.java34 public int getGlobalInt(ContentResolver cr, String name, int def) { in getGlobalInt() argument
44 public boolean putGlobalInt(ContentResolver cr, String name, int value) { in putGlobalInt() argument
62 public int getSystemIntForUser(ContentResolver cr, String name, int def, int userHandle) { in getSystemIntForUser() argument
67 public boolean putSystemIntForUser(ContentResolver cr, String name, int value, int userHandle) { in putSystemIntForUser() argument
80 public int getSecureIntForUser(ContentResolver cr, String name, int def, int userHandle) { in getSecureIntForUser() argument
90 public boolean putSecureIntForUser(ContentResolver cr, String name, int value, int userHandle) { in putSecureIntForUser() argument
96 public boolean putSecureStringForUser(ContentResolver cr, String name, String value, in putSecureStringForUser() argument
/aosp14/system/core/init/
H A Dproperty_service.cpp126 const ucred* cr; member
133 if (!d || !d->name || !d->cr) { in PropertyAuditCallback()
138 snprintf(buf, len, "property=%s pid=%d uid=%d gid=%d", d->name, d->cr->pid, d->cr->uid, in PropertyAuditCallback()
139 d->cr->gid); in PropertyAuditCallback()
162 audit_data.cr = &cr; in CanReadProperty()
177 audit_data.cr = &cr; in CheckMacPerms()
590 ucred cr; in handle_property_set_fd() local
591 socklen_t cr_size = sizeof(cr); in handle_property_set_fd()
598 SocketConnection socket(s, cr); in handle_property_set_fd()
633 << " gid:" << cr.gid << " pid:" << cr.pid << ": " << error; in handle_property_set_fd()
[all …]
/aosp14/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/utils/
H A DThreadUtilsTest.java54 TestRunnable cr = new TestRunnable(); in testPostOnMainThread_shouldRunOnMainThread() local
56 ThreadUtils.postOnMainThread(cr); in testPostOnMainThread_shouldRunOnMainThread()
57 assertThat(cr.called).isFalse(); in testPostOnMainThread_shouldRunOnMainThread()
60 assertThat(cr.called).isTrue(); in testPostOnMainThread_shouldRunOnMainThread()
61 assertThat(cr.onUiThread).isTrue(); in testPostOnMainThread_shouldRunOnMainThread()
/aosp14/frameworks/base/core/java/android/hardware/display/
H A DNightDisplayListener.java108 final ContentResolver cr = mContext.getContentResolver(); in setCallbackInternal() local
109 cr.registerContentObserver(Secure.getUriFor(Secure.NIGHT_DISPLAY_ACTIVATED), in setCallbackInternal()
111 cr.registerContentObserver(Secure.getUriFor(Secure.NIGHT_DISPLAY_AUTO_MODE), in setCallbackInternal()
113 cr.registerContentObserver( in setCallbackInternal()
116 cr.registerContentObserver( in setCallbackInternal()
119 cr.registerContentObserver( in setCallbackInternal()
/aosp14/frameworks/base/services/core/java/com/android/server/am/
H A DProcessServiceRecord.java300 final ConnectionRecord cr = clist.get(c); in isAlmostPerceptible() local
301 if (cr.hasFlag(Context.BIND_ALMOST_PERCEPTIBLE)) { in isAlmostPerceptible()
343 ConnectionRecord cr = mConnections.valueAt(i); in updateHasAboveClientLocked() local
344 if (cr.hasFlag(Context.BIND_ABOVE_CLIENT)) { in updateHasAboveClientLocked()
532 ConnectionRecord cr = c.get(i); in updateBoundClientUids() local
533 boundClientUids.add(cr.clientUid); in updateBoundClientUids()
534 controller.addBoundClientUid(cr.clientUid, cr.clientPackageName, cr.getFlags()); in updateBoundClientUids()
549 ConnectionRecord cr = c.get(i); in addBoundClientUidsOfNewService() local
550 mBoundClientUids.add(cr.clientUid); in addBoundClientUidsOfNewService()
552 .addBoundClientUid(cr.clientUid, cr.clientPackageName, cr.getFlags()); in addBoundClientUidsOfNewService()
H A DOomAdjuster.java746 ConnectionRecord cr = psr.getConnectionAt(i); in collectReachableProcessesLocked() local
748 ? cr.binding.service.isolationHostProc : cr.binding.service.app; in collectReachableProcessesLocked()
758 if (cr.hasFlag(Context.BIND_WAIVE_PRIORITY) in collectReachableProcessesLocked()
805 ConnectionRecord cr = clist.get(i); in collectReachableProcessesLocked() local
2260 ConnectionRecord cr = clist.get(i); in computeOomAdjLSP() local
2261 if (cr.binding.client == app) { in computeOomAdjLSP()
2268 ProcessRecord client = cr.binding.client; in computeOomAdjLSP()
2272 client = cr.binding.attributedClient; in computeOomAdjLSP()
2303 if (cr.notHasFlag(Context.BIND_WAIVE_PRIORITY)) { in computeOomAdjLSP()
2453 if (cr.notHasFlag(Context.BIND_NOT_FOREGROUND in computeOomAdjLSP()
[all …]
H A DCoreSettingsObserver.java259 final ContentResolver cr = context.getContentResolver(); in populateSettings() local
264 value = Settings.Secure.getStringForUser(cr, setting, cr.getUserId()); in populateSettings()
266 value = Settings.System.getStringForUser(cr, setting, cr.getUserId()); in populateSettings()
268 value = Settings.Global.getString(cr, setting); in populateSettings()
/aosp14/frameworks/base/core/java/android/database/
H A DAbstractCursor.java419 public void setNotificationUri(ContentResolver cr, Uri notifyUri) { in setNotificationUri() argument
420 setNotificationUris(cr, Arrays.asList(notifyUri)); in setNotificationUri()
424 public void setNotificationUris(@NonNull ContentResolver cr, @NonNull List<Uri> notifyUris) { in setNotificationUris() argument
425 Objects.requireNonNull(cr); in setNotificationUris()
428 setNotificationUris(cr, notifyUris, cr.getUserId(), true); in setNotificationUris()
438 public void setNotificationUris(ContentResolver cr, List<Uri> notifyUris, int userHandle, in setNotificationUris() argument
443 mContentResolver = cr; in setNotificationUris()
H A DCursorWrapper.java241 public void setNotificationUri(ContentResolver cr, Uri uri) { in setNotificationUri() argument
242 mCursor.setNotificationUri(cr, uri); in setNotificationUri()
246 public void setNotificationUris(ContentResolver cr, List<Uri> uris) { in setNotificationUris() argument
247 mCursor.setNotificationUris(cr, uris); in setNotificationUris()
H A DCursor.java442 void setNotificationUri(ContentResolver cr, Uri uri); in setNotificationUri() argument
458 default void setNotificationUris(@NonNull ContentResolver cr, @NonNull List<Uri> uris) { in setNotificationUris() argument
459 setNotificationUri(cr, uris.get(0)); in setNotificationUris()
/aosp14/frameworks/base/services/core/java/com/android/server/testharness/
H A DTestHarnessModeService.java162 ContentResolver cr = getContext().getContentResolver(); in configureSettings() local
166 if (Settings.Global.getInt(cr, Settings.Global.ADB_ENABLED, 0) == 1) { in configureSettings()
173 Settings.Global.putLong(cr, Settings.Global.ADB_ALLOWED_CONNECTION_TIME, 0); in configureSettings()
174 Settings.Global.putInt(cr, Settings.Global.DEVELOPMENT_SETTINGS_ENABLED, 1); in configureSettings()
175 Settings.Global.putInt(cr, Settings.Global.PACKAGE_VERIFIER_INCLUDE_ADB, 0); in configureSettings()
177 cr, in configureSettings()
180 Settings.Global.putInt(cr, Settings.Global.OTA_DISABLE_AUTOMATIC_UPDATE, 1); in configureSettings()
234 ContentResolver cr = getContext().getContentResolver(); in setDeviceProvisioned() local
235 Settings.Global.putInt(cr, Settings.Global.DEVICE_PROVISIONED, 1); in setDeviceProvisioned()
237 cr, in setDeviceProvisioned()
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/
H A DRecents.java126 ContentResolver cr = mContext.getContentResolver(); in isUserSetup() local
127 return (Settings.Global.getInt(cr, Settings.Global.DEVICE_PROVISIONED, 0) != 0) && in isUserSetup()
128 (Settings.Secure.getInt(cr, Settings.Secure.USER_SETUP_COMPLETE, 0) != 0); in isUserSetup()
/aosp14/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/
H A DSettingsHelper.java164 public void restoreValue(Context context, ContentResolver cr, ContentValues contentValues, in restoreValue() argument
189 oldValue = table.lookup(cr, name, UserHandle.USER_SYSTEM); in restoreValue()
219 cr.insert(destination, contentValues); in restoreValue()
227 setLongPressPowerBehavior(cr, value); in restoreValue()
238 cr.insert(destination, contentValues); in restoreValue()
441 private void setLongPressPowerBehavior(ContentResolver cr, String value) { in setLongPressPowerBehavior() argument
466 Settings.Global.putInt(cr, Settings.Global.POWER_BUTTON_LONG_PRESS, in setLongPressPowerBehavior()
468 Settings.Global.putInt(cr, Settings.Global.KEY_CHORD_POWER_VOLUME_UP, in setLongPressPowerBehavior()
477 Settings.Global.putInt(cr, Settings.Global.POWER_BUTTON_LONG_PRESS, in setLongPressPowerBehavior()
481 Settings.Global.putInt(cr, Settings.Global.POWER_BUTTON_LONG_PRESS, in setLongPressPowerBehavior()
[all …]
/aosp14/frameworks/base/services/core/java/com/android/server/display/color/
H A DColorDisplayService.java235 final ContentResolver cr = getContext().getContentResolver(); in onUserChanged() local
239 cr.unregisterContentObserver(mUserSetupObserver); in onUserChanged()
249 if (!isUserSetupCompleted(cr, mCurrentUser)) { in onUserChanged()
253 if (isUserSetupCompleted(cr, mCurrentUser)) { in onUserChanged()
254 cr.unregisterContentObserver(this); in onUserChanged()
370 final ContentResolver cr = getContext().getContentResolver(); in setUp() local
371 cr.registerContentObserver(Secure.getUriFor(Secure.NIGHT_DISPLAY_ACTIVATED), in setUp()
381 cr.registerContentObserver(System.getUriFor(System.DISPLAY_COLOR_MODE), in setUp()
385 cr.registerContentObserver( in setUp()
960 final ContentResolver cr = getContext().getContentResolver(); in getNightDisplayLastActivatedTimeSetting() local
[all …]
/aosp14/frameworks/base/packages/SettingsLib/src/com/android/settingslib/fuelgauge/
H A DBatterySaverUtils.java128 final ContentResolver cr = context.getContentResolver(); in setPowerSaveMode() local
143 Secure.getInt(cr, Secure.LOW_POWER_MANUAL_ACTIVATION_COUNT, 0) + 1; in setPowerSaveMode()
144 Secure.putInt(cr, Secure.LOW_POWER_MANUAL_ACTIVATION_COUNT, count); in setPowerSaveMode()
150 && Global.getInt(cr, Global.LOW_POWER_MODE_TRIGGER_LEVEL, 0) == 0 in setPowerSaveMode()
151 && Secure.getInt(cr, in setPowerSaveMode()
/aosp14/frameworks/base/core/tests/coretests/src/android/os/
H A DPowerManagerVrTest.java142 ContentResolver cr = context.getContentResolver(); in setTestVrListener() local
143 String oldVrListeners = Settings.Secure.getString(cr, ENABLED_VR_LISTENERS); in setTestVrListener()
144 Settings.Secure.putString(cr, ENABLED_VR_LISTENERS, newValue); in setTestVrListener()
/aosp14/frameworks/base/media/jni/
H A Dandroid_media_Utils.cpp168 uint8_t *cb, *cr; in getLockedImageInfo() local
241 cr = buffer->data + (buffer->stride * buffer->height); in getLockedImageInfo()
242 cb = cr + 1; in getLockedImageInfo()
252 cr; in getLockedImageInfo()
286 cr = buffer->data + ySize; in getLockedImageInfo()
288 cb = cr + cSize; in getLockedImageInfo()
295 cr; in getLockedImageInfo()
341 cr = cb + 2; in getLockedImageInfo()
343 pData = (idx == 0) ? buffer->data : (idx == 1) ? cb : cr; in getLockedImageInfo()
600 outputImage->dataCr = reinterpret_cast<uint8_t*>(ycbcr.cr); in lockImageFromBuffer()
/aosp14/frameworks/base/core/java/android/view/accessibility/
H A DCaptioningManager.java580 public static CaptionStyle getCustomStyle(ContentResolver cr) { in getCustomStyle() argument
583 cr, Secure.ACCESSIBILITY_CAPTIONING_FOREGROUND_COLOR, defStyle.foregroundColor); in getCustomStyle()
585 cr, Secure.ACCESSIBILITY_CAPTIONING_BACKGROUND_COLOR, defStyle.backgroundColor); in getCustomStyle()
587 cr, Secure.ACCESSIBILITY_CAPTIONING_EDGE_TYPE, defStyle.edgeType); in getCustomStyle()
589 cr, Secure.ACCESSIBILITY_CAPTIONING_EDGE_COLOR, defStyle.edgeColor); in getCustomStyle()
591 cr, Secure.ACCESSIBILITY_CAPTIONING_WINDOW_COLOR, defStyle.windowColor); in getCustomStyle()
593 String rawTypeface = Secure.getString(cr, Secure.ACCESSIBILITY_CAPTIONING_TYPEFACE); in getCustomStyle()
/aosp14/frameworks/base/services/core/java/com/android/server/notification/
H A DCalendarTracker.java226 final ContentResolver cr = mSystemContext.getContentResolver();
230 cr.unregisterContentObserver(mObserver);
236 cr.registerContentObserver(Instances.CONTENT_URI, true, mObserver, userId);
237 cr.registerContentObserver(Events.CONTENT_URI, true, mObserver, userId);
238 cr.registerContentObserver(Calendars.CONTENT_URI, true, mObserver, userId);

12345