/frameworks/base/services/core/java/com/android/server/ |
D | CertBlacklister.java | 57 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 …]
|
D | DockObserver.java | 160 final ContentResolver cr = getContext().getContentResolver(); in handleDockStateChange() local 161 if (Settings.Global.getInt(cr, in handleDockStateChange() 172 boolean dockSoundsEnabled = Settings.Global.getInt(cr, in handleDockStateChange() 174 boolean dockSoundsEnabledWhenAccessibility = Settings.Global.getInt(cr, in handleDockStateChange() 176 boolean accessibilityEnabled = Settings.Secure.getInt(cr, in handleDockStateChange() 203 final String soundPath = Settings.Global.getString(cr, whichSound); in handleDockStateChange()
|
/frameworks/base/core/java/android/provider/ |
D | Browser.java | 243 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 …]
|
D | SearchRecentSuggestions.java | 189 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()
|
D | Settings.java | 2312 public boolean putStringForUser(ContentResolver cr, String name, String value, in putStringForUser() argument 2324 IContentProvider cp = mProviderHolder.getProvider(cr); in putStringForUser() 2325 cp.call(cr.getPackageName(), mProviderHolder.mUri.getAuthority(), in putStringForUser() 2335 public String getStringForUser(ContentResolver cr, String name, final int userHandle) { in getStringForUser() argument 2345 + cr.getPackageName() +" and user:" + userHandle); in getStringForUser() 2361 IContentProvider cp = mProviderHolder.getProvider(cr); in getStringForUser() 2384 + " in package:" + cr.getPackageName() +" and user:" in getStringForUser() 2399 b = cp.call(cr.getPackageName(), mProviderHolder.mUri.getAuthority(), in getStringForUser() 2405 b = cp.call(cr.getPackageName(), mProviderHolder.mUri.getAuthority(), in getStringForUser() 2424 + cr.getPackageName() + " and user:" in getStringForUser() [all …]
|
D | MediaStore.java | 1532 static @Nullable Bitmap getThumbnail(@NonNull ContentResolver cr, @NonNull Uri uri, in getThumbnail() argument 1555 return cr.loadThumbnail(uri, Point.convert(size), signal); in getThumbnail() 1573 static void cancelThumbnail(@NonNull ContentResolver cr, @NonNull Uri uri) { in cancelThumbnail() argument 1668 public static final Cursor query(ContentResolver cr, Uri uri, String[] projection) { in query() argument 1669 return cr.query(uri, projection, null, null, DEFAULT_SORT_ORDER); in query() 1678 public static final Cursor query(ContentResolver cr, Uri uri, String[] projection, in query() argument 1680 return cr.query(uri, projection, where, in query() 1690 public static final Cursor query(ContentResolver cr, Uri uri, String[] projection, in query() argument 1692 return cr.query(uri, projection, selection, in query() 1707 public static final Bitmap getBitmap(ContentResolver cr, Uri url) in getBitmap() argument [all …]
|
/frameworks/rs/tests/java_api/RsCameraDemo/src/com/android/example/rscamera/ |
D | MediaStoreSaver.java | 54 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/CannyLive/src/com/android/example/cannylive/ |
D | MediaStoreSaver.java | 54 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/packages/SettingsLib/tests/robotests/src/com/android/settingslib/utils/ |
D | ThreadUtilsTest.java | 54 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/src/com/android/tools/layoutlib/create/ |
D | AsmGenerator.java | 242 ClassReader cr = new ClassReader(is); 243 byte[] b = transform(cr, true); 244 name = classNameToEntryPath(transformName(cr.getClassName())); 249 ClassReader cr = entry.getValue(); 250 byte[] b = transform(cr, true); 251 String name = classNameToEntryPath(transformName(cr.getClassName())); 256 ClassReader cr = entry.getValue(); 257 byte[] b = transform(cr, true); 258 String name = classNameToEntryPath(transformName(cr.getClassName())); 310 byte[] transform(ClassReader cr, boolean stubNativesOnly) { [all …]
|
D | AsmAnalyzer.java | 205 ClassReader cr = new ClassReader(zip.getInputStream(entry)); in parseZip() local 206 String className = classReaderToClassName(cr); in parseZip() 208 classes.put(className, cr); in parseZip() 390 for (ClassReader cr : inOutKeepClasses.values()) { in findDeps() 391 visitor.setClassName(cr.getClassName()); in findDeps() 392 cr.accept(visitor, 0 /* flags */); in findDeps() 409 for (ClassReader cr : temp.values()) { in findDeps() 410 visitor.setClassName(cr.getClassName()); in findDeps() 411 cr.accept(visitor, 0 /* flags */); in findDeps() 483 ClassReader cr = mZipClasses.get(className); in considerName() local [all …]
|
/frameworks/layoutlib/create/tests/com/android/tools/layoutlib/create/ |
D | DelegateClassAdapterTest.java | 94 ClassReader cr = new ClassReader(NATIVE_CLASS_NAME); in testNoOp() local 95 cr.accept(cv, 0 /* flags */); in testNoOp() 151 ClassReader cr = new ClassReader(NATIVE_CLASS_NAME); in testConstructorAfterDelegate() local 152 cr.accept(cv, 0 /* flags */); in testConstructorAfterDelegate() 183 ClassReader cr = new ClassReader(INNER_CLASS_NAME); in testInnerConstructorAfterDelegate() local 184 cr.accept(cv, 0 /* flags */); in testInnerConstructorAfterDelegate() 218 ClassReader cr = new ClassReader(STATIC_INNER_CLASS_NAME); in testStaticInnerConstructorAfterDelegate() local 219 cr.accept(cv, 0 /* flags */); in testStaticInnerConstructorAfterDelegate() 249 ClassReader cr = new ClassReader(NATIVE_CLASS_NAME); in testDelegateNative() local 250 cr.accept(cv, 0 /* flags */); in testDelegateNative() [all …]
|
D | ClassHasNativeVisitorTest.java | 38 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()
|
D | AsmAnalyzerTest.java | 110 ClassReader cr = AsmAnalyzer.findClass("mock_android.view.ViewGroup$LayoutParams", in testFindClass() local 113 assertNotNull(cr); in testFindClass() 114 assertEquals("mock_android/view/ViewGroup$LayoutParams", cr.getClassName()); in testFindClass() 117 assertArrayEquals(new ClassReader[] { cr }, found.values().toArray()); in testFindClass() 188 … ClassReader cr = AsmAnalyzer.findClass("mock_android.widget.LinearLayout", zipClasses, keep); in testDependencyVisitor() local 192 cr.accept(visitor, 0 /* flags */); in testDependencyVisitor()
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/cat/ |
D | ComprehensionTlv.java | 52 protected ComprehensionTlv(int tag, boolean cr, int length, byte[] data, in ComprehensionTlv() argument 55 mCr = cr; in ComprehensionTlv() 127 boolean cr; // Comprehension required flag in decode() 143 cr = (tag & 0x8000) != 0; in decode() 150 cr = (tag & 0x80) != 0; in decode() 200 return new ComprehensionTlv(tag, cr, length, data, curIndex); in decode()
|
/frameworks/base/core/java/android/hardware/display/ |
D | NightDisplayListener.java | 108 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/ |
D | IntRangeManager.java | 460 ClientRange cr = clients.get(0); in disableRange() local 461 if (cr.mStartId == startId && cr.mEndId == endId && cr.mClient.equals(client)) { in disableRange() 488 ClientRange cr = clients.get(crIndex); in disableRange() local 489 if (cr.mStartId == startId && cr.mEndId == endId && cr.mClient.equals(client)) { in disableRange() 504 clients.add(crIndex, cr); in disableRange() 505 range.mEndId = cr.mEndId; in disableRange() 576 if (cr.mEndId > largestEndId) { in disableRange() 577 largestEndId = cr.mEndId; in disableRange()
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/ |
D | WifiSettingsStore.java | 138 final ContentResolver cr = mContext.getContentResolver(); in persistWifiState() local 140 Settings.Global.putInt(cr, Settings.Global.WIFI_ON, state); in persistWifiState() 209 final ContentResolver cr = mContext.getContentResolver(); in getPersistedWifiState() local 211 return Settings.Global.getInt(cr, Settings.Global.WIFI_ON); in getPersistedWifiState() 213 Settings.Global.putInt(cr, Settings.Global.WIFI_ON, WIFI_DISABLED); in getPersistedWifiState()
|
/frameworks/base/core/java/android/database/ |
D | AbstractCursor.java | 413 public void setNotificationUri(ContentResolver cr, Uri notifyUri) { in setNotificationUri() argument 414 setNotificationUris(cr, Arrays.asList(notifyUri)); in setNotificationUri() 418 public void setNotificationUris(@NonNull ContentResolver cr, @NonNull List<Uri> notifyUris) { in setNotificationUris() argument 419 Preconditions.checkNotNull(cr); in setNotificationUris() 422 setNotificationUris(cr, notifyUris, cr.getUserId(), true); in setNotificationUris() 432 public void setNotificationUris(ContentResolver cr, List<Uri> notifyUris, int userHandle, in setNotificationUris() argument 437 mContentResolver = cr; in setNotificationUris()
|
D | Cursor.java | 436 void setNotificationUri(ContentResolver cr, Uri uri); in setNotificationUri() argument 452 default void setNotificationUris(@NonNull ContentResolver cr, @NonNull List<Uri> uris) { in setNotificationUris() argument 453 setNotificationUri(cr, uris.get(0)); in setNotificationUris()
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/fuelgauge/ |
D | BatterySaverUtils.java | 119 final ContentResolver cr = context.getContentResolver(); in setPowerSaveMode() local 134 Secure.getInt(cr, Secure.LOW_POWER_MANUAL_ACTIVATION_COUNT, 0) + 1; in setPowerSaveMode() 135 Secure.putInt(cr, Secure.LOW_POWER_MANUAL_ACTIVATION_COUNT, count); in setPowerSaveMode() 141 && Global.getInt(cr, Global.LOW_POWER_MODE_TRIGGER_LEVEL, 0) == 0 in setPowerSaveMode() 142 && Secure.getInt(cr, in setPowerSaveMode()
|
/frameworks/base/services/core/java/com/android/server/testharness/ |
D | TestHarnessModeService.java | 162 ContentResolver cr = getContext().getContentResolver(); in configureSettings() local 165 Settings.Global.putLong(cr, Settings.Global.ADB_ALLOWED_CONNECTION_TIME, 0); in configureSettings() 166 Settings.Global.putInt(cr, Settings.Global.ADB_ENABLED, 1); in configureSettings() 167 Settings.Global.putInt(cr, Settings.Global.DEVELOPMENT_SETTINGS_ENABLED, 1); in configureSettings() 168 Settings.Global.putInt(cr, Settings.Global.PACKAGE_VERIFIER_ENABLE, 0); in configureSettings() 170 cr, in configureSettings() 173 Settings.Global.putInt(cr, Settings.Global.OTA_DISABLE_AUTOMATIC_UPDATE, 1); in configureSettings() 215 ContentResolver cr = getContext().getContentResolver(); in setDeviceProvisioned() local 216 Settings.Global.putInt(cr, Settings.Global.DEVICE_PROVISIONED, 1); in setDeviceProvisioned() 218 cr, in setDeviceProvisioned()
|
/frameworks/base/core/tests/utiltests/src/com/android/internal/util/ |
D | LockPatternUtilsTest.java | 59 final MockContentResolver cr = new MockContentResolver(context); in configureTest() local 60 cr.addProvider(Settings.AUTHORITY, new FakeSettingsProvider()); in configureTest() 61 when(context.getContentResolver()).thenReturn(cr); in configureTest() 62 Settings.Global.putInt(cr, Settings.Global.DEVICE_DEMO_MODE, deviceDemoMode); in configureTest()
|
/frameworks/base/services/core/java/com/android/server/display/color/ |
D | ColorDisplayService.java | 237 final ContentResolver cr = getContext().getContentResolver(); in onUserChanged() local 241 cr.unregisterContentObserver(mUserSetupObserver); in onUserChanged() 251 if (!isUserSetupCompleted(cr, mCurrentUser)) { in onUserChanged() 255 if (isUserSetupCompleted(cr, mCurrentUser)) { in onUserChanged() 256 cr.unregisterContentObserver(this); in onUserChanged() 265 cr.registerContentObserver(Secure.getUriFor(Secure.USER_SETUP_COMPLETE), in onUserChanged() 273 private static boolean isUserSetupCompleted(ContentResolver cr, int userHandle) { in isUserSetupCompleted() argument 274 return Secure.getIntForUser(cr, Secure.USER_SETUP_COMPLETE, 0, userHandle) == 1; in isUserSetupCompleted() 364 final ContentResolver cr = getContext().getContentResolver(); in setUp() local 365 cr.registerContentObserver(Secure.getUriFor(Secure.NIGHT_DISPLAY_ACTIVATED), in setUp() [all …]
|
/frameworks/base/core/java/android/view/accessibility/ |
D | CaptioningManager.java | 476 public static CaptionStyle getCustomStyle(ContentResolver cr) { in getCustomStyle() argument 479 cr, Secure.ACCESSIBILITY_CAPTIONING_FOREGROUND_COLOR, defStyle.foregroundColor); in getCustomStyle() 481 cr, Secure.ACCESSIBILITY_CAPTIONING_BACKGROUND_COLOR, defStyle.backgroundColor); in getCustomStyle() 483 cr, Secure.ACCESSIBILITY_CAPTIONING_EDGE_TYPE, defStyle.edgeType); in getCustomStyle() 485 cr, Secure.ACCESSIBILITY_CAPTIONING_EDGE_COLOR, defStyle.edgeColor); in getCustomStyle() 487 cr, Secure.ACCESSIBILITY_CAPTIONING_WINDOW_COLOR, defStyle.windowColor); in getCustomStyle() 489 String rawTypeface = Secure.getString(cr, Secure.ACCESSIBILITY_CAPTIONING_TYPEFACE); in getCustomStyle()
|