/frameworks/base/packages/SystemUI/src/com/android/keyguard/clock/ |
D | SettingsWrapper.java | 41 SettingsWrapper(ContentResolver contentResolver) { in SettingsWrapper() argument 42 this(contentResolver, new Migrator(contentResolver)); in SettingsWrapper() 46 SettingsWrapper(ContentResolver contentResolver, Migration migration) { in SettingsWrapper() argument 47 mContentResolver = contentResolver; in SettingsWrapper() 112 Migrator(ContentResolver contentResolver) { in Migrator() argument 113 mContentResolver = contentResolver; in Migrator()
|
/frameworks/base/tests/Input/src/com/android/test/input/ |
D | AnrTest.kt | 61 val contentResolver = mInstrumentation.targetContext.contentResolver in setUp() constant 62 mHideErrorDialogs = Settings.Global.getInt(contentResolver, HIDE_ERROR_DIALOGS, 0) in setUp() 63 Settings.Global.putInt(contentResolver, HIDE_ERROR_DIALOGS, 0) in setUp() 68 val contentResolver = mInstrumentation.targetContext.contentResolver in tearDown() constant 69 Settings.Global.putInt(contentResolver, HIDE_ERROR_DIALOGS, mHideErrorDialogs) in tearDown()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/log/ |
D | LogcatEchoTrackerDebug.kt | 40 private val contentResolver: ContentResolver constant in com.android.systemui.log.LogcatEchoTrackerDebug 48 contentResolver: ContentResolver, in create() 51 val tracker = LogcatEchoTrackerDebug(contentResolver) in create() 58 contentResolver.registerContentObserver( in attach() 68 contentResolver.registerContentObserver( in attach() 105 parseProp(Settings.Global.getString(contentResolver, path)) in readSetting()
|
/frameworks/rs/tests/java_api/Refocus/src/com/android/rs/test/ |
D | RGBZ.java | 53 public RGBZ(Uri uri, ContentResolver contentResolver, Context context) throws IOException { in RGBZ() argument 54 preview = BitmapFactory.decodeStream(contentResolver.openInputStream(uri)); in RGBZ() 72 public RGBZ(Uri uriImage, Uri uriDepthmap, ContentResolver contentResolver, in RGBZ() argument 74 preview = BitmapFactory.decodeStream(contentResolver.openInputStream(uriImage)); in RGBZ() 94 ContentResolver contentResolver, Context context) in createFromBitmapDepthmap() argument 96 Bitmap image = BitmapFactory.decodeStream(contentResolver.openInputStream(uriImage)); in createFromBitmapDepthmap() 105 ContentResolver contentResolver, Context context) in createFromPFMDepthmap() argument 107 Bitmap image = BitmapFactory.decodeStream(contentResolver.openInputStream(uriImage)); in createFromPFMDepthmap()
|
/frameworks/base/core/java/android/text/method/ |
D | TextKeyListener.java | 252 final ContentResolver contentResolver = mResolver.get(); in release() local 253 if (contentResolver != null) { in release() 254 contentResolver.unregisterContentObserver(mObserver); in release() 264 final ContentResolver contentResolver = context.getContentResolver(); in initPrefs() local 265 mResolver = new WeakReference<ContentResolver>(contentResolver); in initPrefs() 268 contentResolver.registerContentObserver(Settings.System.CONTENT_URI, true, mObserver); in initPrefs() 271 updatePrefs(contentResolver); in initPrefs() 283 final ContentResolver contentResolver = mResolver.get(); in onChange() local 284 if (contentResolver == null) { in onChange() 287 updatePrefs(contentResolver); in onChange()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/demomode/ |
D | DemoModeAvailabilityTracker.kt | 42 val resolver = context.contentResolver in startTracking() 50 val resolver = context.contentResolver in stopTracking() 61 .getInt(context.contentResolver, DEMO_MODE_ALLOWED, 0) != 0 in onDemoModeAvailabilityChanged() 65 return Settings.Global.getInt(context.contentResolver, DEMO_MODE_ON, 0) != 0 in checkIsDemoModeOn()
|
/frameworks/base/core/tests/coretests/src/android/provider/ |
D | SmsProviderTest.java | 61 ContentResolver contentResolver = mContext.getContentResolver(); in testProvider() local 66 urls[i] = contentResolver.insert(Sms.Inbox.CONTENT_URI, map); in testProvider() 70 Cursor c = contentResolver.query(Sms.Inbox.CONTENT_URI, null, null, null, "date"); in testProvider() 75 int count = contentResolver.delete(url, null, null); in testProvider()
|
/frameworks/base/tests/utils/testutils/java/com/android/internal/util/test/ |
D | FakeSettingsProviderRule.java | 58 MockContentResolver contentResolver = new MockContentResolver(context); in mockContentResolver() local 59 contentResolver.addProvider(Settings.AUTHORITY, new FakeSettingsProvider()); in mockContentResolver() 60 return contentResolver; in mockContentResolver()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/people/ |
D | PeopleHubViewController.kt | 161 private val contentResolver = context.contentResolver constant 172 contentResolver.registerContentObserver(settingUri, false, observer, UserHandle.USER_ALL) in registerListener() 174 override fun unsubscribe() = contentResolver.unregisterContentObserver(observer) in registerListener() 180 contentResolver, in updateListener()
|
/frameworks/base/core/java/android/security/ |
D | ConfirmationPrompt.java | 219 ContentResolver contentResolver = mContext.getContentResolver(); in getUiOptionsAsFlags() local 220 int inversionEnabled = Settings.Secure.getInt(contentResolver, in getUiOptionsAsFlags() 225 float fontScale = Settings.System.getFloat(contentResolver, in getUiOptionsAsFlags() 236 ContentResolver contentResolver = context.getContentResolver(); in isAccessibilityServiceRunning() local 237 int a11yEnabled = Settings.Secure.getInt(contentResolver, in isAccessibilityServiceRunning()
|
/frameworks/base/packages/SettingsProvider/test/src/com/android/providers/settings/ |
D | BaseSettingsProviderTest.java | 80 ContentResolver contentResolver = getContext().getContentResolver(); in setStringViaFrontEndApiSetting() local 84 Settings.Global.putStringForUser(contentResolver, name, value, userId); in setStringViaFrontEndApiSetting() 88 Settings.Secure.putStringForUser(contentResolver, name, value, userId); in setStringViaFrontEndApiSetting() 92 Settings.System.putStringForUser(contentResolver, name, value, userId); in setStringViaFrontEndApiSetting() 102 ContentResolver contentResolver = getContext().getContentResolver(); in getStringViaFrontEndApiSetting() local 106 return Settings.Global.getStringForUser(contentResolver, name, userId); in getStringViaFrontEndApiSetting() 110 return Settings.Secure.getStringForUser(contentResolver, name, userId); in getStringViaFrontEndApiSetting() 114 return Settings.System.getStringForUser(contentResolver, name, userId); in getStringViaFrontEndApiSetting()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/screenshot/ |
D | DeleteScreenshotReceiverTest.java | 92 ContentResolver contentResolver = mContext.getContentResolver(); in testFileDeleted() local 93 final Uri testUri = contentResolver.insert( in testFileDeleted() 99 contentResolver.query(testUri, null, null, null, null); in testFileDeleted() 109 contentResolver.query(testUri, null, null, null, null); in testFileDeleted() 112 contentResolver.delete(testUri, null, null); in testFileDeleted()
|
D | ImageExporterTest.java | 93 ContentResolver contentResolver = mContext.getContentResolver(); in testImageExport() local 94 ImageExporter exporter = new ImageExporter(contentResolver); in testImageExport() 115 try (InputStream in = contentResolver.openInputStream(result.uri)) { in testImageExport() 120 try (ParcelFileDescriptor pfd = contentResolver.openFile(result.uri, "r", null)) { in testImageExport() 147 contentResolver.delete(result.uri, null); in testImageExport()
|
/frameworks/base/telephony/common/com/android/internal/telephony/ |
D | CarrierAppUtils.java | 88 ContentResolver contentResolver = getContentResolverForUser(context, userId); in disableCarrierAppsUntilPrivileged() local 89 disableCarrierAppsUntilPrivileged(callingPackage, telephonyManager, contentResolver, in disableCarrierAppsUntilPrivileged() 116 ContentResolver contentResolver = getContentResolverForUser(context, userId); in disableCarrierAppsUntilPrivileged() local 118 contentResolver, userId, systemCarrierAppsDisabledUntilUsed, in disableCarrierAppsUntilPrivileged() 139 @Nullable TelephonyManager telephonyManager, ContentResolver contentResolver, in disableCarrierAppsUntilPrivileged() argument 157 Settings.Secure.getIntForUser(contentResolver, Settings.Secure.CARRIER_APPS_HANDLED, in disableCarrierAppsUntilPrivileged() 158 0, contentResolver.getUserId()); in disableCarrierAppsUntilPrivileged() 310 Settings.Secure.putIntForUser(contentResolver, Settings.Secure.CARRIER_APPS_HANDLED, in disableCarrierAppsUntilPrivileged() 311 Build.VERSION.SDK_INT, contentResolver.getUserId()); in disableCarrierAppsUntilPrivileged()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/media/ |
D | MediaResumeListenerTest.kt | 99 private var originalQsSetting = Settings.Global.getInt(context.contentResolver, in capture() 101 private var originalResumeSetting = Settings.Secure.getInt(context.contentResolver, in capture() 108 Settings.Global.putInt(context.contentResolver, in capture() 110 Settings.Secure.putInt(context.contentResolver, in capture() 123 whenever(mockContext.contentResolver).thenReturn(context.contentResolver) in capture() 153 Settings.Global.putInt(context.contentResolver, in capture() 155 Settings.Secure.putInt(context.contentResolver, in capture() 161 Settings.Secure.putInt(context.contentResolver, in capture()
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/fuelgauge/ |
D | Estimate.kt | 44 val resolver = context.contentResolver in getCachedEstimateIfAvailable() 70 val resolver = context.contentResolver in storeCachedEstimate() 89 context.contentResolver, in getLastCacheUpdateTime()
|
/frameworks/base/core/java/android/provider/ |
D | DeviceConfig.java | 659 ContentResolver contentResolver = ActivityThread.currentApplication().getContentResolver(); in getProperties() local 661 Settings.Config.getStrings(contentResolver, namespace, Arrays.asList(names))); in getProperties() 799 ContentResolver contentResolver = ActivityThread.currentApplication().getContentResolver(); in setProperty() local 800 return Settings.Config.putString(contentResolver, namespace, name, value, makeDefault); in setProperty() 821 ContentResolver contentResolver = ActivityThread.currentApplication().getContentResolver(); in setProperties() local 822 return Settings.Config.setStrings(contentResolver, properties.getNamespace(), in setProperties() 854 ContentResolver contentResolver = ActivityThread.currentApplication().getContentResolver(); in resetToDefaults() local 855 Settings.Config.resetToDefaults(contentResolver, resetMode, namespace); in resetToDefaults() 872 ContentResolver contentResolver = ActivityThread.currentApplication().getContentResolver(); in setSyncDisabled() local 873 Settings.Config.setSyncDisabled(contentResolver, syncDisabledMode); in setSyncDisabled() [all …]
|
D | VoicemailContract.java | 411 ContentResolver contentResolver = context.getContentResolver(); in insert() local 413 return contentResolver.insert(buildSourceUri(context.getPackageName()), contentValues); in insert() 426 ContentResolver contentResolver = context.getContentResolver(); in insert() local 430 contentResolver.insert(buildSourceUri(context.getPackageName()), contentValues); in insert()
|
/frameworks/base/core/java/android/content/ |
D | ContentInsertHandler.java | 38 public void insert(ContentResolver contentResolver, InputStream in) in insert() argument 47 public void insert(ContentResolver contentResolver, String in) in insert() argument
|
D | DefaultDataHandler.java | 87 public void insert(ContentResolver contentResolver, InputStream in) in insert() argument 89 mContentResolver = contentResolver; in insert() 93 public void insert(ContentResolver contentResolver, String in) in insert() argument 95 mContentResolver = contentResolver; in insert()
|
/frameworks/base/core/java/android/os/ |
D | GraphicsEnvironment.java | 336 private static List<String> getGlobalSettingsString(ContentResolver contentResolver, in getGlobalSettingsString() argument 345 settingsValue = Settings.Global.getString(contentResolver, globalSetting); in getGlobalSettingsString() 387 ContentResolver contentResolver = context.getContentResolver(); in getDriverForPackage() local 388 allUseAngle = Settings.Global.getInt(contentResolver, in getDriverForPackage() 402 final ContentResolver contentResolver = context.getContentResolver(); in getDriverForPackage() local 404 getGlobalSettingsString(contentResolver, bundle, in getDriverForPackage() 407 getGlobalSettingsString(contentResolver, bundle, in getDriverForPackage() 467 ContentResolver contentResolver = context.getContentResolver(); in getAngleDebugPackage() local 468 debugPackage = Settings.Global.getString(contentResolver, in getAngleDebugPackage() 578 final ContentResolver contentResolver = context.getContentResolver(); in checkAngleAllowlist() local [all …]
|
/frameworks/base/libs/WindowManager/Shell/tests/flicker/src/com/android/wm/shell/flicker/helpers/ |
D | MultiWindowHelper.kt | 32 Settings.Global.getInt(context.contentResolver, 36 Settings.Global.putInt(context.contentResolver,
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/d2d/ |
D | Timeouts.java | 71 private static long get(ContentResolver contentResolver, String key, long defaultValue) { in get() argument 72 return Settings.Secure.getLong(contentResolver, PREFIX + key, defaultValue); in get()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/wmshell/ |
D | TestableNotificationInterruptStateProviderImpl.java | 35 ContentResolver contentResolver, in TestableNotificationInterruptStateProviderImpl() argument 44 super(contentResolver, in TestableNotificationInterruptStateProviderImpl()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/util/settings/ |
D | SystemSettingsImpl.java | 29 SystemSettingsImpl(ContentResolver contentResolver) { in SystemSettingsImpl() argument 30 mContentResolver = contentResolver; in SystemSettingsImpl()
|