Home
last modified time | relevance | path

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

1234567

/frameworks/opt/telephony/src/java/com/android/internal/telephony/d2d/
DTimeouts.java30 public Adapter(ContentResolver cr) { in Adapter() argument
31 mContentResolver = cr; in Adapter()
81 public static long getRtpMessageAckDurationMillis(ContentResolver cr) { in getRtpMessageAckDurationMillis() argument
82 return get(cr, "rtp_message_ack_duration_millis", 1000L); in getRtpMessageAckDurationMillis()
91 public static long getDtmfMinimumIntervalMillis(ContentResolver cr) { in getDtmfMinimumIntervalMillis() argument
92 return get(cr, "dtmf_minimum_interval_millis", 100L); in getDtmfMinimumIntervalMillis()
100 public static long getMaxDurationOfDtmfMessageMillis(ContentResolver cr) { in getMaxDurationOfDtmfMessageMillis() argument
101 return get(cr, "dtmf_max_message_duration_millis", 1000L); in getMaxDurationOfDtmfMessageMillis()
109 public static long getDtmfNegotiationTimeoutMillis(ContentResolver cr) { in getDtmfNegotiationTimeoutMillis() argument
110 return get(cr, "dtmf_negotiation_timeout_millis", 3000L); in getDtmfNegotiationTimeoutMillis()
[all …]
/frameworks/base/services/core/java/com/android/server/audio/
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()
64 public boolean putSystemIntForUser(ContentResolver cr, String name, int value, int userHandle) { in putSystemIntForUser() argument
65 return Settings.System.putIntForUser(cr, name, value, userHandle); in putSystemIntForUser()
73 public int getSecureIntForUser(ContentResolver cr, String name, int def, int userHandle) { in getSecureIntForUser() argument
74 return Settings.Secure.getIntForUser(cr, name, def, userHandle); in getSecureIntForUser()
[all …]
/frameworks/base/services/core/java/com/android/server/
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 …]
/frameworks/base/core/java/android/provider/
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
264 private static final Cursor getVisitedLike(ContentResolver cr, String url) { in getVisitedLike() argument
299 return cr.query(History.CONTENT_URI, new String[] { History._ID, History.VISITS }, in getVisitedLike()
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
[all …]
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()
DSettings.java3406 public boolean putStringForUser(ContentResolver cr, String name, String value, in putStringForUser() argument
3422 IContentProvider cp = mProviderHolder.getProvider(cr); in putStringForUser()
3423 cp.call(cr.getAttributionSource(), in putStringForUser()
3432 public @SetAllResult int setStringsForPrefix(ContentResolver cr, String prefix, in setStringsForPrefix() argument
3442 IContentProvider cp = mProviderHolder.getProvider(cr); in setStringsForPrefix()
3443 Bundle bundle = cp.call(cr.getAttributionSource(), in setStringsForPrefix()
3453 public boolean deleteStringForUser(ContentResolver cr, String name, final int userHandle) { in deleteStringForUser() argument
3457 IContentProvider cp = mProviderHolder.getProvider(cr); in deleteStringForUser()
3458 cp.call(cr.getAttributionSource(), in deleteStringForUser()
3468 public String getStringForUser(ContentResolver cr, String name, final int userHandle) { in getStringForUser() argument
[all …]
/frameworks/rs/tests/java_api/CannyLive/src/com/android/example/cannylive/
DMediaStoreSaver.java54 public static final String insertImage(ContentResolver cr, in insertImage() argument
72 url = cr.insert(MediaStore.Images.Media.EXTERNAL_CONTENT_URI, values); in insertImage()
75 OutputStream imageOut = cr.openOutputStream(url); in insertImage()
84 … Bitmap miniThumb = Images.Thumbnails.getThumbnail(cr, id, Images.Thumbnails.MINI_KIND, null); in insertImage()
86 storeThumbnail(cr, miniThumb, id, 50F, 50F, Images.Thumbnails.MICRO_KIND); in insertImage()
88 cr.delete(url, null, null); in insertImage()
93 cr.delete(url, null, null); in insertImage()
113 ContentResolver cr, in storeThumbnail() argument
140 Uri url = cr.insert(Images.Thumbnails.EXTERNAL_CONTENT_URI, values); in storeThumbnail()
143 OutputStream thumbOut = cr.openOutputStream(url); in storeThumbnail()
/frameworks/rs/tests/java_api/RsCameraDemo/src/com/android/example/rscamera/
DMediaStoreSaver.java54 public static final String insertImage(ContentResolver cr, in insertImage() argument
72 url = cr.insert(MediaStore.Images.Media.EXTERNAL_CONTENT_URI, values); in insertImage()
75 OutputStream imageOut = cr.openOutputStream(url); in insertImage()
84 … Bitmap miniThumb = Images.Thumbnails.getThumbnail(cr, id, Images.Thumbnails.MINI_KIND, null); in insertImage()
86 storeThumbnail(cr, miniThumb, id, 50F, 50F, Images.Thumbnails.MICRO_KIND); in insertImage()
88 cr.delete(url, null, null); in insertImage()
93 cr.delete(url, null, null); in insertImage()
113 ContentResolver cr, in storeThumbnail() argument
140 Uri url = cr.insert(Images.Thumbnails.EXTERNAL_CONTENT_URI, values); in storeThumbnail()
143 OutputStream thumbOut = cr.openOutputStream(url); in storeThumbnail()
/frameworks/base/services/tests/servicestests/src/com/android/server/audio/
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
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/utils/
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()
/frameworks/layoutlib/create/tests/src/com/android/tools/layoutlib/create/
DDelegateClassAdapterTest.java102 ClassReader cr = new ClassReader(NATIVE_CLASS_NAME); in testNoOp() local
103 cr.accept(cv, 0 /* flags */); in testNoOp()
159 ClassReader cr = new ClassReader(NATIVE_CLASS_NAME); in testConstructorAfterDelegate() local
160 cr.accept(cv, 0 /* flags */); in testConstructorAfterDelegate()
191 ClassReader cr = new ClassReader(INNER_CLASS_NAME); in testInnerConstructorAfterDelegate() local
192 cr.accept(cv, 0 /* flags */); in testInnerConstructorAfterDelegate()
226 ClassReader cr = new ClassReader(STATIC_INNER_CLASS_NAME); in testStaticInnerConstructorAfterDelegate() local
227 cr.accept(cv, 0 /* flags */); in testStaticInnerConstructorAfterDelegate()
258 ClassReader cr = new ClassReader(CLASS_WITH_STATIC_INIT_NAME); in testDelegateStaticInitializer() local
259 cr.accept(cv, 0 /* flags */); in testDelegateStaticInitializer()
[all …]
DRefactorClassAdapterTest.java49 ClassReader cr = new ClassReader(OUTER_CLASS_NAME); in testRefactorWithLambdas() local
50 cr.accept(cv, 0 /* flags */); in testRefactorWithLambdas()
54 cr = new ClassReader(USAGE_CLASS_NAME); in testRefactorWithLambdas()
55 cr.accept(cv, 0 /* flags */); in testRefactorWithLambdas()
111 ClassReader cr = new ClassReader(name); in findClass()
113 cr.accept(cw, 0); in findClass()
DClassHasNativeVisitorTest.java38 ClassReader cr = new ClassReader(className); in testHasNative() local
40 cr.accept(cv, 0 /* flags */); in testHasNative()
50 ClassReader cr = new ClassReader(className); in testHasNoNative() local
52 cr.accept(cv, 0 /* flags */); in testHasNoNative()
DAsmAnalyzerTest.java113 ClassReader cr = AsmAnalyzer.findClass("mock_android.view.ViewGroup$LayoutParams", in testFindClass() local
116 assertNotNull(cr); in testFindClass()
117 assertEquals("mock_android/view/ViewGroup$LayoutParams", cr.getClassName()); in testFindClass()
120 assertArrayEquals(new ClassReader[] { cr }, found.values().toArray()); in testFindClass()
192 … ClassReader cr = AsmAnalyzer.findClass("mock_android.widget.LinearLayout", zipClasses, keep); in testDependencyVisitor() local
196 cr.accept(visitor, 0 /* flags */); in testDependencyVisitor()
/frameworks/base/core/java/android/hardware/display/
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()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/cat/
DComprehensionTlv.java53 public ComprehensionTlv(int tag, boolean cr, int length, byte[] data, in ComprehensionTlv() argument
56 mCr = cr; in ComprehensionTlv()
128 boolean cr; // Comprehension required flag in decode()
144 cr = (tag & 0x8000) != 0; in decode()
151 cr = (tag & 0x80) != 0; in decode()
201 return new ComprehensionTlv(tag, cr, length, data, curIndex); in decode()
/frameworks/layoutlib/create/src/com/android/tools/layoutlib/create/
DAsmGenerator.java278 ClassReader cr = new ClassReader(is);
279 byte[] b = transform(cr, true);
280 name = classNameToEntryPath(transformName(cr.getClassName()));
285 ClassReader cr = entry.getValue();
286 byte[] b = transform(cr, true);
287 String name = classNameToEntryPath(transformName(cr.getClassName()));
292 ClassReader cr = entry.getValue();
293 byte[] b = transform(cr, true);
294 String name = classNameToEntryPath(transformName(cr.getClassName()));
353 byte[] transform(ClassReader cr, boolean stubNativesOnly) {
[all …]
/frameworks/base/services/core/java/com/android/server/am/
DProcessServiceRecord.java313 final ConnectionRecord cr = clist.get(c); in isAlmostPerceptible() local
314 if (cr.hasFlag(Context.BIND_ALMOST_PERCEPTIBLE)) { in isAlmostPerceptible()
356 ConnectionRecord cr = mConnections.valueAt(i); in updateHasAboveClientLocked() local
358 final boolean isSameProcess = cr.binding.service.app != null in updateHasAboveClientLocked()
359 && cr.binding.service.app.mServices == this; in updateHasAboveClientLocked()
360 if (!isSameProcess && cr.hasFlag(Context.BIND_ABOVE_CLIENT)) { in updateHasAboveClientLocked()
586 ConnectionRecord cr = c.get(i); in updateBoundClientUids() local
587 boundClientUids.add(cr.clientUid); in updateBoundClientUids()
588 controller.addBoundClientUid(cr.clientUid, cr.clientPackageName, cr.getFlags()); in updateBoundClientUids()
603 ConnectionRecord cr = c.get(i); in addBoundClientUidsOfNewService() local
[all …]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DIntRangeManager.java468 ClientRange cr = clients.get(0); in disableRange() local
469 if (cr.mStartId == startId && cr.mEndId == endId && cr.mClient.equals(client)) { in disableRange()
496 ClientRange cr = clients.get(crIndex); in disableRange() local
497 if (cr.mStartId == startId && cr.mEndId == endId && cr.mClient.equals(client)) { in disableRange()
512 clients.add(crIndex, cr); in disableRange()
513 range.mEndId = cr.mEndId; in disableRange()
584 if (cr.mEndId > largestEndId) { in disableRange()
585 largestEndId = cr.mEndId; in disableRange()
/frameworks/base/services/core/java/com/android/server/testharness/
DTestHarnessModeService.java163 ContentResolver cr = getContext().getContentResolver(); in configureSettings() local
167 if (Settings.Global.getInt(cr, Settings.Global.ADB_ENABLED, 0) == 1) { in configureSettings()
174 Settings.Global.putLong(cr, Settings.Global.ADB_ALLOWED_CONNECTION_TIME, 0); in configureSettings()
175 Settings.Global.putInt(cr, Settings.Global.DEVELOPMENT_SETTINGS_ENABLED, 1); in configureSettings()
176 Settings.Global.putInt(cr, Settings.Global.PACKAGE_VERIFIER_INCLUDE_ADB, 0); in configureSettings()
178 cr, in configureSettings()
181 Settings.Global.putInt(cr, Settings.Global.OTA_DISABLE_AUTOMATIC_UPDATE, 1); in configureSettings()
235 ContentResolver cr = getContext().getContentResolver(); in setDeviceProvisioned() local
236 Settings.Global.putInt(cr, Settings.Global.DEVICE_PROVISIONED, 1); in setDeviceProvisioned()
238 cr, in setDeviceProvisioned()
/frameworks/base/core/java/android/database/
DAbstractCursor.java433 public void setNotificationUri(ContentResolver cr, Uri notifyUri) { in setNotificationUri() argument
434 setNotificationUris(cr, Arrays.asList(notifyUri)); in setNotificationUri()
438 public void setNotificationUris(@NonNull ContentResolver cr, @NonNull List<Uri> notifyUris) { in setNotificationUris() argument
439 Objects.requireNonNull(cr); in setNotificationUris()
442 setNotificationUris(cr, notifyUris, cr.getUserId(), true); in setNotificationUris()
452 public void setNotificationUris(ContentResolver cr, List<Uri> notifyUris, int userHandle, in setNotificationUris() argument
457 mContentResolver = cr; in setNotificationUris()
/frameworks/libs/systemui/toruslib/torus-math/src/main/java/com/google/android/torus/math/
DRotationQuaternion.kt68 val cr = cos(rotationX * halfDegToRad) in fromEuler() constant
71 val w = cr * cp * cy + sr * sp * sy in fromEuler()
72 val x = sr * cp * cy - cr * sp * sy in fromEuler()
73 val y = cr * sp * cy + sr * cp * sy in fromEuler()
74 val z = cr * cp * sy - sr * sp * cy in fromEuler()
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/
DRecents.java130 ContentResolver cr = mContext.getContentResolver(); in isUserSetup() local
131 return (Settings.Global.getInt(cr, Settings.Global.DEVICE_PROVISIONED, 0) != 0) && in isUserSetup()
132 (Settings.Secure.getInt(cr, Settings.Secure.USER_SETUP_COMPLETE, 0) != 0); in isUserSetup()
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/
DSettingsHelper.java167 public void restoreValue(Context context, ContentResolver cr, ContentValues contentValues, in restoreValue() argument
192 oldValue = table.lookup(cr, name, UserHandle.USER_SYSTEM); in restoreValue()
197 oldValue = table.lookup(cr, name, context.getUserId()); in restoreValue()
227 cr.insert(destination, contentValues); in restoreValue()
235 setLongPressPowerBehavior(cr, value); in restoreValue()
255 cr.insert(destination, contentValues); in restoreValue()
458 private void setLongPressPowerBehavior(ContentResolver cr, String value) { in setLongPressPowerBehavior() argument
483 Settings.Global.putInt(cr, Settings.Global.POWER_BUTTON_LONG_PRESS, in setLongPressPowerBehavior()
485 Settings.Global.putInt(cr, Settings.Global.KEY_CHORD_POWER_VOLUME_UP, in setLongPressPowerBehavior()
494 Settings.Global.putInt(cr, Settings.Global.POWER_BUTTON_LONG_PRESS, in setLongPressPowerBehavior()
[all …]
/frameworks/base/packages/SettingsLib/tests/robotests/testutils/com/android/settingslib/testutils/shadow/
DShadowSecure.java31 public static boolean putStringForUser(ContentResolver cr, String name, String value, in putStringForUser() argument
33 return putString(cr, name, value); in putStringForUser()

1234567