/frameworks/opt/net/ims/tests/src/com/android/ims/rcs/uce/eab/ |
D | EabProviderTest.java | 53 (MockContentResolver) mContext.getContentResolver(); in setUp() 69 mContext.getContentResolver().insert(CONTACT_URI, data); in testQueryContactInfo() 71 Cursor cursor = mContext.getContentResolver().query(CONTACT_URI, in testQueryContactInfo() 85 mContext.getContentResolver().insert(CONTACT_URI, data); in testContactIsUnique() 89 mContext.getContentResolver().insert(CONTACT_URI, data); in testContactIsUnique() 91 Cursor cursor = mContext.getContentResolver().query(CONTACT_URI, in testContactIsUnique() 107 mContext.getContentResolver().insert(COMMON_URI, data); in testQueryCommonInfo() 109 Cursor cursor = mContext.getContentResolver().query(COMMON_URI, in testQueryCommonInfo() 126 mContext.getContentResolver().insert(COMMON_URI, data); in testCommonIsNotUnique() 133 mContext.getContentResolver().insert(COMMON_URI, data); in testCommonIsNotUnique() [all …]
|
/frameworks/base/core/java/android/hardware/input/ |
D | InputSettings.java | 108 return Settings.System.getInt(context.getContentResolver(), in getPointerSpeed() 130 Settings.System.putInt(context.getContentResolver(), in setPointerSpeed() 150 return Settings.Global.getFloat(context.getContentResolver(), in getMaximumObscuringOpacityForTouch() 188 Settings.Global.putFloat(context.getContentResolver(), in setMaximumObscuringOpacityForTouch() 197 return Settings.Global.getInt(context.getContentResolver(), in isStylusEverUsed() 208 Settings.Global.putInt(context.getContentResolver(), in setStylusEverUsed() 225 return Settings.System.getIntForUser(context.getContentResolver(), in getTouchpadPointerSpeed() 247 Settings.System.putIntForUser(context.getContentResolver(), in setTouchpadPointerSpeed() 263 return Settings.System.getIntForUser(context.getContentResolver(), in useTouchpadNaturalScrolling() 280 Settings.System.putIntForUser(context.getContentResolver(), in setTouchpadNaturalScrolling() [all …]
|
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/ |
D | ReviewNotificationPermissionsReceiverTest.java | 72 Settings.Global.putInt(mContext.getContentResolver(), in testReceive_remindMeLater_firstTime() 87 Settings.Global.getInt(mContext.getContentResolver(), in testReceive_remindMeLater_firstTime() 96 Settings.Global.putInt(mContext.getContentResolver(), in testReceive_remindMeLater_laterTimes() 112 Settings.Global.getInt(mContext.getContentResolver(), in testReceive_remindMeLater_laterTimes() 121 Settings.Global.putInt(mContext.getContentResolver(), in testReceive_dismiss() 133 Settings.Global.getInt(mContext.getContentResolver(), in testReceive_dismiss() 142 Settings.Global.putInt(mContext.getContentResolver(), in testReceive_notificationCanceled_firstSwipe() 157 Settings.Global.getInt(mContext.getContentResolver(), in testReceive_notificationCanceled_firstSwipe() 166 Settings.Global.putInt(mContext.getContentResolver(), in testReceive_notificationCanceled_secondSwipe() 181 Settings.Global.getInt(mContext.getContentResolver(), in testReceive_notificationCanceled_secondSwipe() [all …]
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/fuelgauge/ |
D | BatterySaverUtils.java | 101 final String newValue = Global.getString(mContext.getContentResolver(), in Parameters() 127 final ContentResolver cr = context.getContentResolver(); in setPowerSaveMode() 176 if (Secure.getInt(context.getContentResolver(), in maybeShowBatterySaverConfirmation() 178 && Secure.getInt(context.getContentResolver(), in maybeShowBatterySaverConfirmation() 204 Secure.putInt(context.getContentResolver(), in setBatterySaverConfirmationAcknowledged() 206 Secure.putInt(context.getContentResolver(), in setBatterySaverConfirmationAcknowledged() 214 Secure.putInt(context.getContentResolver(), in suppressAutoBatterySaver() 225 Global.putInt(context.getContentResolver(), Global.LOW_POWER_MODE_TRIGGER_LEVEL, level); in setAutoBatterySaverTriggerLevel() 233 if (Global.getInt(context.getContentResolver(), Global.LOW_POWER_MODE_TRIGGER_LEVEL, 0) in ensureAutoBatterySaver() 245 ContentResolver resolver = context.getContentResolver(); in revertScheduleToNoneIfNeeded() [all …]
|
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/onehanded/ |
D | OneHandedController.java | 146 mContext.getContentResolver(), mUserId); 155 mContext.getContentResolver(), mUserId)); 268 context.getContentResolver(), mUserId); in OneHandedController() 271 context.getContentResolver(), mUserId); in OneHandedController() 355 mContext.getContentResolver(), state == STATE_ACTIVE ? 1 : 0, mUserId); in notifyShortcutStateChanged() 433 mContext.getContentResolver(), mActivatedObserver, newUserId); in registerSettingObservers() 435 mContext.getContentResolver(), mEnabledObserver, newUserId); in registerSettingObservers() 438 mContext.getContentResolver(), mSwipeToNotificationEnabledObserver, newUserId); in registerSettingObservers() 441 mContext.getContentResolver(), mShortcutEnabledObserver, newUserId); in registerSettingObservers() 444 mContext.getContentResolver(), mShortcutEnabledObserver, newUserId); in registerSettingObservers() [all …]
|
/frameworks/base/core/java/com/android/internal/policy/ |
D | GestureNavigationSettingsObserver.java | 66 ContentResolver r = mContext.getContentResolver(); in register() 88 ContentResolver r = mContext.getContentResolver(); in registerForCallingUser() 107 mContext.getContentResolver().unregisterContentObserver(this); in unregister() 125 final float scale = Settings.Secure.getFloatForUser(mContext.getContentResolver(), in getLeftSensitivity() 136 final float scale = Settings.Secure.getFloat(mContext.getContentResolver(), in getLeftSensitivityForCallingUser() 146 final float scale = Settings.Secure.getFloatForUser(mContext.getContentResolver(), in getRightSensitivity() 157 final float scale = Settings.Secure.getFloat(mContext.getContentResolver(), in getRightSensitivityForCallingUser() 163 return Settings.Secure.getIntForUser(mContext.getContentResolver(), in areNavigationButtonForcedVisible()
|
D | ForceShowNavBarSettingsObserver.java | 53 final ContentResolver r = mContext.getContentResolver(); in register() 63 mContext.getContentResolver().unregisterContentObserver(this); in unregister() 81 return Settings.Secure.getIntForUser(mContext.getContentResolver(), in isEnabled()
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ |
D | GlobalSettingsHelper.java | 37 return Settings.Global.getInt(context.getContentResolver(), settingName, defaultValue); in getInt() 46 return Settings.Global.getInt(context.getContentResolver(), settingName, in getBoolean() 56 return Settings.Global.getInt(context.getContentResolver(), settingName) == 1; in getBoolean() 68 needChange = Settings.Global.getInt(context.getContentResolver(), settingName) != value; in setInt() 72 if (needChange) Settings.Global.putInt(context.getContentResolver(), settingName, value); in setInt()
|
/frameworks/base/core/java/android/provider/ |
D | BlockedNumberContract.java | 336 final Bundle res = context.getContentResolver().call( in isBlocked() 370 final Bundle res = context.getContentResolver().call( in unblock() 383 final Bundle res = context.getContentResolver().call( in canCurrentUserBlockNumbers() 465 context.getContentResolver().call( in notifyEmergencyContact() 481 context.getContentResolver().call( in endBlockSuppression() 503 final Bundle res = context.getContentResolver().call( in shouldSystemBlockNumber() 522 final Bundle res = context.getContentResolver().call( in getBlockSuppressionStatus() 540 final Bundle res = context.getContentResolver().call( in shouldShowEmergencyCallNotification() 568 final Bundle res = context.getContentResolver().call( in getEnhancedBlockSetting() 596 context.getContentResolver().call(AUTHORITY_URI, METHOD_SET_ENHANCED_BLOCK_SETTING, in setEnhancedBlockSetting()
|
/frameworks/base/packages/SettingsProvider/test/src/com/android/providers/settings/ |
D | BaseSettingsProviderTest.java | 80 ContentResolver contentResolver = getContext().getContentResolver(); in setStringViaFrontEndApiSetting() 102 ContentResolver contentResolver = getContext().getContentResolver(); in getStringViaFrontEndApiSetting() 133 return getContext().getContentResolver().insert(uri, values); in insertStringViaProviderApi() 138 return getContext().getContentResolver().delete(uri, "name=?", new String[]{name}); in deleteStringViaProviderApi() 146 return getContext().getContentResolver().update(uri, values, "name=?", in updateStringViaProviderApiSetting() 170 Cursor cursor = getContext().getContentResolver().query(uri, NAME_VALUE_COLUMNS, in queryStringViaProviderApi() 255 return Settings.Global.getString(getContext().getContentResolver(), name); in getSetting() 259 return Settings.Secure.getString(getContext().getContentResolver(), name); in getSetting() 263 return Settings.System.getString(getContext().getContentResolver(), name); in getSetting() 275 Settings.Global.putString(getContext().getContentResolver(), name, value); in putSetting() [all …]
|
/frameworks/base/tests/testables/src/android/testing/ |
D | TestableSettingsProvider.java | 58 Settings.Global.putString(context.getContentResolver(), MY_UNIQUE_KEY, MY_UNIQUE_KEY); in clearValuesAndCheck() 59 Settings.Secure.putString(context.getContentResolver(), MY_UNIQUE_KEY, MY_UNIQUE_KEY); in clearValuesAndCheck() 60 Settings.System.putString(context.getContentResolver(), MY_UNIQUE_KEY, MY_UNIQUE_KEY); in clearValuesAndCheck() 64 Settings.Global.getString(context.getContentResolver(), MY_UNIQUE_KEY)); in clearValuesAndCheck() 66 Settings.Secure.getString(context.getContentResolver(), MY_UNIQUE_KEY)); in clearValuesAndCheck() 68 Settings.System.getString(context.getContentResolver(), MY_UNIQUE_KEY)); in clearValuesAndCheck()
|
/frameworks/base/core/java/com/android/internal/view/ |
D | RotationPolicy.java | 92 Settings.System.getIntForUser(context.getContentResolver(), in isRotationLockToggleVisible() 101 return Settings.System.getIntForUser(context.getContentResolver(), in isRotationLocked() 120 Settings.System.putIntForUser(context.getContentResolver(), in setRotationLockAtAngle() 134 Settings.System.putIntForUser(context.getContentResolver(), in setRotationLockForAccessibility() 183 context.getContentResolver().registerContentObserver(Settings.System.getUriFor( in registerRotationPolicyListener() 186 context.getContentResolver().registerContentObserver(Settings.System.getUriFor( in registerRotationPolicyListener() 196 context.getContentResolver().unregisterContentObserver(listener.mObserver); in unregisterRotationPolicyListener()
|
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/ |
D | WindowManagerSettingsTests.java | 179 return Settings.Global.getInt(getContentResolver(), mSettingName, 0) != 0; in getSetting() 183 Settings.Global.putInt(getContentResolver(), mSettingName, in setSetting() 188 private ContentResolver getContentResolver() { in getContentResolver() method in WindowManagerSettingsTests.BoolSettingsSession 189 return getInstrumentation().getTargetContext().getContentResolver(); in getContentResolver() 208 return Settings.Global.getString(getContentResolver(), mSettingName); in getSetting() 212 Settings.Global.putString(getContentResolver(), mSettingName, value); in setSetting() 216 private ContentResolver getContentResolver() { in getContentResolver() method in WindowManagerSettingsTests.StringSettingsSession 217 return getInstrumentation().getTargetContext().getContentResolver(); in getContentResolver()
|
/frameworks/base/services/core/java/com/android/server/notification/ |
D | ReviewNotificationPermissionsReceiver.java | 88 Settings.Global.putInt(context.getContentResolver(), in onReceive() 94 Settings.Global.putInt(context.getContentResolver(), in onReceive() 103 int notifState = Settings.Global.getInt(context.getContentResolver(), in onReceive() 110 Settings.Global.putInt(context.getContentResolver(), in onReceive() 116 Settings.Global.putInt(context.getContentResolver(), in onReceive()
|
/frameworks/base/wifi/java/src/android/net/wifi/ |
D | WifiMigration.java | 526 context.getContentResolver(), Settings.Global.WIFI_MIGRATION_COMPLETED, 0) == 1) { in loadFromSettings() 532 Settings.Global.getInt(context.getContentResolver(), in loadFromSettings() 535 Settings.Global.getInt(context.getContentResolver(), in loadFromSettings() 538 Settings.Global.getString(context.getContentResolver(), in loadFromSettings() 541 Settings.Global.getInt(context.getContentResolver(), in loadFromSettings() 544 Settings.Global.getInt(context.getContentResolver(), in loadFromSettings() 547 Settings.Global.getInt(context.getContentResolver(), in loadFromSettings() 550 Settings.Global.getInt(context.getContentResolver(), in loadFromSettings() 554 context.getContentResolver(), Settings.Global.WIFI_MIGRATION_COMPLETED, 1); in loadFromSettings()
|
/frameworks/opt/net/ims/src/java/com/android/ims/rcs/uce/eab/ |
D | EabUtil.java | 49 try (Cursor cursor = context.getContentResolver().query( in getContactFromEab() 85 try (Cursor cursor = context.getContentResolver().query( in getCapabilityFromEab() 145 cursor = context.getContentResolver().query( in getEabContactId() 167 cursor = context.getContentResolver().query( in getEabCommonId() 187 count = context.getContentResolver().delete(EabProvider.PRESENCE_URI, in removeContactCapabilities() 189 context.getContentResolver().delete(EabProvider.OPTIONS_URI, in removeContactCapabilities() 191 context.getContentResolver().delete(EabProvider.COMMON_URI, in removeContactCapabilities() 193 context.getContentResolver().delete(EabProvider.CONTACT_URI, in removeContactCapabilities()
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/euicc/ |
D | EuiccCardControllerTest.java | 84 mContext.getContentResolver(), Settings.Global.BOOT_COUNT, -1); in setUp() 116 Settings.Global.resetToDefaults(mContext.getContentResolver(), KEY_LAST_BOOT_COUNT); in tearDown() 118 Settings.Global.putInt(mContext.getContentResolver(), in tearDown() 131 Settings.Global.putInt(mContext.getContentResolver(), Settings.Global.BOOT_COUNT, 0); in testIsBootUp() 135 Settings.Global.resetToDefaults(mContext.getContentResolver(), KEY_LAST_BOOT_COUNT); in testIsBootUp() 139 Settings.Global.putInt(mContext.getContentResolver(), Settings.Global.BOOT_COUNT, 1); in testIsBootUp() 205 Settings.Global.putInt(mContext.getContentResolver(), Settings.Global.BOOT_COUNT, 0); in testStartOtaUpdatingIfNecessary_onEmbeddedSlot_Present() 219 Settings.Global.putInt(mContext.getContentResolver(), Settings.Global.BOOT_COUNT, 0); in testStartOtaUpdatingIfNecessary_onEmbeddedSlot_NotPresent() 233 Settings.Global.putInt(mContext.getContentResolver(), Settings.Global.BOOT_COUNT, 1); in testStartOtaUpdatingIfNecessary_notBootUp() 247 Settings.Global.putInt(mContext.getContentResolver(), Settings.Global.BOOT_COUNT, 0); in testStartOtaUpdatingIfNecessary_onRemovableSlot()
|
/frameworks/base/core/java/com/android/internal/accessibility/util/ |
D | ShortcutUtils.java | 64 final String targetString = Settings.Secure.getString(context.getContentResolver(), in optInValueToSettings() 76 Settings.Secure.putString(context.getContentResolver(), targetKey, joiner.toString()); in optInValueToSettings() 95 final String targetsValue = Settings.Secure.getString(context.getContentResolver(), in optOutValueFromSettings() 111 Settings.Secure.putString(context.getContentResolver(), targetsKey, joiner.toString()); in optOutValueFromSettings() 125 final String targetString = Settings.Secure.getString(context.getContentResolver(), in isComponentIdExistingInSettings() 253 context.getContentResolver(), targetKey, /* def= */ 0, userId) == 1; in getShortcutTargetsFromSettings() 259 context.getContentResolver(), targetKey, userId); in getShortcutTargetsFromSettings()
|
/frameworks/base/services/accessibility/java/com/android/server/accessibility/ |
D | CaptioningManagerImpl.java | 46 Settings.Secure.putIntForUser(mContext.getContentResolver(), in setSystemAudioCaptioningEnabled() 63 return Settings.Secure.getIntForUser(mContext.getContentResolver(), in isSystemAudioCaptioningUiEnabled() 81 Settings.Secure.putIntForUser(mContext.getContentResolver(), in setSystemAudioCaptioningUiEnabled()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/doze/ |
D | AlwaysOnDisplayPolicyTest.java | 48 mPreviousConfig = Settings.Global.getString(mContext.getContentResolver(), in setUp() 54 Settings.Global.putString(mContext.getContentResolver(), in tearDown() 60 Settings.Global.putString(mContext.getContentResolver(), in testPolicy_valueNull_containsDefaultValue() 76 Settings.Global.putString(mContext.getContentResolver(), in testPolicy_valueNotNull_containsValue()
|
/frameworks/base/services/core/java/com/android/server/input/ |
D | InputSettingsObserver.java | 116 mContext.getContentResolver().registerContentObserver( in registerAndUpdate() 142 final int setting = Settings.System.getIntForUser(mContext.getContentResolver(), in getBoolean() 153 int speed = Settings.System.getIntForUser(mContext.getContentResolver(), in updateMousePointerSpeed() 200 mContext.getContentResolver(), Settings.Secure.ACCESSIBILITY_LARGE_POINTER_ICON, in updateAccessibilityLargePointer() 207 final int longPressTimeoutMs = Settings.Secure.getIntForUser(mContext.getContentResolver(), in updateLongPressTimeout() 225 final int timeoutMs = Settings.Secure.getIntForUser(mContext.getContentResolver(), in updateKeyRepeatInfo() 228 final int delayMs = Settings.Secure.getIntForUser(mContext.getContentResolver(), in updateKeyRepeatInfo() 278 mContext.getContentResolver(), Settings.System.POINTER_FILL_STYLE, in updatePointerFillStyleFromSettings() 288 final float pointerScale = Settings.System.getFloatForUser(mContext.getContentResolver(), in updatePointerScaleFromSettings()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/row/ |
D | NotificationSnoozeTest.java | 54 Settings.Global.putString(mContext.getContentResolver(), in setUp() 75 Settings.Global.putString(mContext.getContentResolver(), in testGetOptionsWithInvalidConfig() 88 Settings.Global.putString(mContext.getContentResolver(), in testGetOptionsWithValidDefault() 97 Settings.Global.putString(mContext.getContentResolver(), in testGetOptionsWithValidConfig() 111 Settings.Global.putString(mContext.getContentResolver(), in testGetOptionsWithLongConfig()
|
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/applications/ |
D | ServiceListingTest.java | 165 Settings.Secure.putString(RuntimeEnvironment.application.getContentResolver(), in testSaveLoad() 173 assertThat(Settings.Secure.getString(RuntimeEnvironment.application.getContentResolver(), in testSaveLoad() 175 assertThat(Settings.Secure.getString(RuntimeEnvironment.application.getContentResolver(), in testSaveLoad() 182 assertThat(Settings.Secure.getString(RuntimeEnvironment.application.getContentResolver(), in testSaveLoad() 184 assertThat(Settings.Secure.getString(RuntimeEnvironment.application.getContentResolver(), in testSaveLoad() 191 assertThat(Settings.Secure.getString(RuntimeEnvironment.application.getContentResolver(), in testSaveLoad() 193 assertThat(Settings.Secure.getString(RuntimeEnvironment.application.getContentResolver(), in testSaveLoad()
|
/frameworks/base/services/core/java/com/android/server/infra/ |
D | SecureSettingsServiceNameResolver.java | 86 mContext.getContentResolver(), mProperty, userId)); in readServiceNameList() 92 mContext.getContentResolver(), mProperty, userId); in readServiceName() 99 mContext.getContentResolver(), mProperty, null, userId); in setServiceNameList() 108 mContext.getContentResolver(), mProperty, builder.toString(), userId); in setServiceNameList()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/accessibility/ |
D | AccessibilityButtonModeObserverTest.java | 65 Settings.Secure.putIntForUser(mContext.getContentResolver(), in setUp() 75 Settings.Secure.putIntForUser(mContext.getContentResolver(), in onChange_haveListener_invokeCallback() 88 Settings.Secure.putIntForUser(mContext.getContentResolver(), in onChange_noListener_noInvokeCallback() 99 Settings.Secure.putIntForUser(mContext.getContentResolver(), in getCurrentAccessibilityButtonMode_expectedValue()
|