Home
last modified time | relevance | path

Searched refs:putInt (Results 1 – 25 of 1521) sorted by relevance

12345678910>>...61

/aosp12/packages/modules/ExtServices/java/tests/src/android/ext/services/autofill/
H A DCreditCardMatcherTest.java55 bundle.putInt(REQUIRED_ARG_MIN_CREDIT_CARD_LENGTH, -1); in testCalculateScore_BadBundle()
56 bundle.putInt(REQUIRED_ARG_MAX_CREDIT_CARD_LENGTH, -1); in testCalculateScore_BadBundle()
61 bundle.putInt(REQUIRED_ARG_MIN_CREDIT_CARD_LENGTH, -1); in testCalculateScore_BadBundle()
62 bundle.putInt(REQUIRED_ARG_MAX_CREDIT_CARD_LENGTH, 1); in testCalculateScore_BadBundle()
67 bundle.putInt(REQUIRED_ARG_MIN_CREDIT_CARD_LENGTH, 1); in testCalculateScore_BadBundle()
68 bundle.putInt(REQUIRED_ARG_MAX_CREDIT_CARD_LENGTH, -1); in testCalculateScore_BadBundle()
73 bundle.putInt(REQUIRED_ARG_MIN_CREDIT_CARD_LENGTH, 4); in testCalculateScore_BadBundle()
74 bundle.putInt(REQUIRED_ARG_MAX_CREDIT_CARD_LENGTH, 3); in testCalculateScore_BadBundle()
79 bundle.putInt(REQUIRED_ARG_MIN_CREDIT_CARD_LENGTH, 13); in testCalculateScore_BadBundle()
81 bundle.putInt(OPTIONAL_ARG_SUFFIX_LENGTH, -1); in testCalculateScore_BadBundle()
[all …]
/aosp12/frameworks/base/services/core/java/com/android/server/locksettings/
H A DVersionedPasswordMetrics.java54 buffer.putInt(mVersion); in serialize()
55 buffer.putInt(mMetrics.credType); in serialize()
56 buffer.putInt(mMetrics.length); in serialize()
57 buffer.putInt(mMetrics.letters); in serialize()
58 buffer.putInt(mMetrics.upperCase); in serialize()
59 buffer.putInt(mMetrics.lowerCase); in serialize()
60 buffer.putInt(mMetrics.numeric); in serialize()
61 buffer.putInt(mMetrics.symbols); in serialize()
62 buffer.putInt(mMetrics.nonLetter); in serialize()
63 buffer.putInt(mMetrics.nonNumeric); in serialize()
[all …]
/aosp12/packages/apps/Settings/tests/unit/src/com/android/settings/fuelgauge/batterysaver/
H A DBatterySaverScheduleRadioButtonsControllerTest.java52 Settings.Global.putInt(mResolver, Global.AUTOMATIC_POWER_SAVE_MODE, in getDefaultKey_routine_returnsCorrectValue()
60 Settings.Global.putInt(mResolver, Global.AUTOMATIC_POWER_SAVE_MODE, in getDefaultKey_automatic_returnsCorrectValue()
62 Settings.Global.putInt(mResolver, Global.LOW_POWER_MODE_TRIGGER_LEVEL, 5); in getDefaultKey_automatic_returnsCorrectValue()
69 Settings.Global.putInt(mResolver, Global.AUTOMATIC_POWER_SAVE_MODE, in getDefaultKey_none_returnsCorrectValue()
71 Settings.Global.putInt(mResolver, Global.LOW_POWER_MODE_TRIGGER_LEVEL, 0); in getDefaultKey_none_returnsCorrectValue()
87 Secure.putInt( in setDefaultKey_percentage_shouldSuppressNotification()
89 Settings.Global.putInt(mResolver, Global.AUTOMATIC_POWER_SAVE_MODE, in setDefaultKey_percentage_shouldSuppressNotification()
91 Settings.Global.putInt(mResolver, Global.LOW_POWER_MODE_TRIGGER_LEVEL, 5); in setDefaultKey_percentage_shouldSuppressNotification()
101 Secure.putInt( in setDefaultKey_routine_shouldSuppressNotification()
103 Settings.Global.putInt(mResolver, Global.AUTOMATIC_POWER_SAVE_MODE, in setDefaultKey_routine_shouldSuppressNotification()
/aosp12/frameworks/base/telephony/java/android/telephony/
H A DCarrierConfigManager.java4892 defaults.putInt(KEY_DPD_TIMER_SEC_INT, 120); in getDefaults()
4893 defaults.putInt(KEY_MAX_RETRIES_INT, 3); in getDefaults()
4962 defaults.putInt(KEY_EPDG_PCO_ID_IPV6_INT, 0); in getDefaults()
4963 defaults.putInt(KEY_EPDG_PCO_ID_IPV4_INT, 0); in getDefaults()
5366 sDefaults.putInt(KEY_VVM_PORT_NUMBER_INT, 0); in sDefaults.putInt()
5461 sDefaults.putInt(KEY_WFC_SPN_FORMAT_IDX_INT, 0); in sDefaults.putInt()
5528 sDefaults.putInt( in sDefaults.putInt()
5615 sDefaults.putInt(IMSI_KEY_AVAILABILITY_INT, 0); in sDefaults.putInt()
5835 sDefaults.putInt(KEY_GBA_MODE_INT, GBA_ME); in sDefaults.putInt()
5858 sDefaults.putInt(KEY_DEFAULT_RTT_MODE_INT, 0); in sDefaults.putInt()
[all …]
/aosp12/frameworks/base/core/java/android/ddm/
H A DDdmHandleHello.java150 out.putInt(CLIENT_PROTOCOL_VERSION); in handleHELO()
151 out.putInt(android.os.Process.myPid()); in handleHELO()
152 out.putInt(vmIdent.length()); in handleHELO()
153 out.putInt(appName.length()); in handleHELO()
156 out.putInt(UserHandle.myUserId()); in handleHELO()
157 out.putInt(instructionSetDescription.length()); in handleHELO()
159 out.putInt(vmFlags.length()); in handleHELO()
162 out.putInt(pkgName.length()); in handleHELO()
196 out.putInt(vmFeatures.length + FRAMEWORK_FEATURES.length); in handleFEAT()
198 out.putInt(vmFeatures[i].length()); in handleFEAT()
[all …]
/aosp12/packages/apps/Settings/tests/robotests/src/com/android/settings/notification/
H A DShowOnLockscreenNotificationPreferenceControllerTest.java84 Settings.Secure.putInt(mContext.getContentResolver(), in updateState_noNotifsOnLockscreen()
88 Settings.Secure.putInt(mContext.getContentResolver(), in updateState_noNotifsOnLockscreen()
103 Settings.Secure.putInt(mContext.getContentResolver(), in updateState_alertingNotifsOnLockscreen()
106 Settings.Secure.putInt(mContext.getContentResolver(), in updateState_alertingNotifsOnLockscreen()
120 Settings.Secure.putInt(mContext.getContentResolver(), in updateState_allNotifsOnLockscreen()
123 Settings.Secure.putInt(mContext.getContentResolver(), in updateState_allNotifsOnLockscreen()
149 Settings.Secure.putInt(mContext.getContentResolver(), in updateState_dpmSaysNo()
152 Settings.Secure.putInt(mContext.getContentResolver(), in updateState_dpmSaysNo()
176 Settings.Secure.putInt(mContext.getContentResolver(), in onPreferenceChange_allToAlerting()
179 Settings.Secure.putInt(mContext.getContentResolver(), in onPreferenceChange_allToAlerting()
[all …]
/aosp12/packages/apps/Settings/tests/robotests/src/com/android/settings/accessibility/
H A DVibrationPreferenceControllerTest.java57 Settings.System.putInt(mContext.getContentResolver(), in getSummary_disabledVibration_shouldReturnOffSummary()
59 Settings.System.putInt(mContext.getContentResolver(), in getSummary_disabledVibration_shouldReturnOffSummary()
61 Settings.System.putInt(mContext.getContentResolver(), in getSummary_disabledVibration_shouldReturnOffSummary()
70 Settings.System.putInt(mContext.getContentResolver(), in getSummary_enabledSomeVibration_shouldReturnVibrationOnSummary()
72 Settings.System.putInt(mContext.getContentResolver(), in getSummary_enabledSomeVibration_shouldReturnVibrationOnSummary()
74 Settings.System.putInt(mContext.getContentResolver(), in getSummary_enabledSomeVibration_shouldReturnVibrationOnSummary()
76 Settings.System.putInt(mContext.getContentResolver(), in getSummary_enabledSomeVibration_shouldReturnVibrationOnSummary()
78 Settings.System.putInt(mContext.getContentResolver(), in getSummary_enabledSomeVibration_shouldReturnVibrationOnSummary()
H A DNotificationVibrationIntensityPreferenceControllerTest.java96 Settings.System.putInt(mContext.getContentResolver(), in updateState_withMultipleIntensitySuport_shouldRefreshSummary()
102 Settings.System.putInt(mContext.getContentResolver(), in updateState_withMultipleIntensitySuport_shouldRefreshSummary()
108 Settings.System.putInt(mContext.getContentResolver(), in updateState_withMultipleIntensitySuport_shouldRefreshSummary()
114 Settings.System.putInt(mContext.getContentResolver(), in updateState_withMultipleIntensitySuport_shouldRefreshSummary()
126 Settings.System.putInt(mContext.getContentResolver(), in updateState_withoutMultipleIntensitySupport_shouldRefreshSummary()
132 Settings.System.putInt(mContext.getContentResolver(), in updateState_withoutMultipleIntensitySupport_shouldRefreshSummary()
138 Settings.System.putInt(mContext.getContentResolver(), in updateState_withoutMultipleIntensitySupport_shouldRefreshSummary()
144 Settings.System.putInt(mContext.getContentResolver(), in updateState_withoutMultipleIntensitySupport_shouldRefreshSummary()
/aosp12/packages/apps/Settings/tests/robotests/src/com/android/settings/development/graphicsdriver/
H A DGraphicsDriverEnableForAllAppsPreferenceControllerTest.java81 Settings.Global.putInt( in setUp()
93 Settings.Global.putInt( in getAvailability_developmentSettingsEnabledAndUpdatableDriverSettingsOn_available()
108 Settings.Global.putInt(mResolver, Settings.Global.UPDATABLE_DRIVER_ALL_APPS, in getAvailability_updatableDriverOff_conditionallyUnavailable()
116 Settings.Global.putInt( in displayPreference_shouldAddListPreference()
142 Settings.Global.putInt( in updateState_availableAndDefault_visibleAndDefault()
153 Settings.Global.putInt( in updateState_availableAndProductionDriver_visibleAndProductionDriver()
165 Settings.Global.putInt( in updateState_availableAndPrereleaseDriver_visibleAndPrereleaseDriver()
177 Settings.Global.putInt(mResolver, Settings.Global.UPDATABLE_DRIVER_ALL_APPS, in updateState_updatableDriverOff_notVisibleAndSystemDriver()
188 Settings.Global.putInt( in onPreferenceChange_default_shouldUpdateSettingsGlobal()
201 Settings.Global.putInt( in onPreferenceChange_updatableDriver_shouldUpdateSettingsGlobal()
[all …]
/aosp12/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/inspector/
H A DTestMetadata.java32 data.putInt(ExifInterface.TAG_IMAGE_WIDTH, 3840); in populateExifData()
33 data.putInt(ExifInterface.TAG_IMAGE_LENGTH, 2160); in populateExifData()
44 data.putInt(ExifInterface.TAG_ISO_SPEED_RATINGS, 120); in populateExifData()
53 data.putInt(ExifInterface.TAG_IMAGE_WIDTH, 1920); in populateVideoData()
54 data.putInt(ExifInterface.TAG_IMAGE_LENGTH, 1080); in populateVideoData()
55 data.putInt(MediaMetadata.METADATA_KEY_DURATION, 72000); in populateVideoData()
62 data.putInt(MediaMetadata.METADATA_KEY_DURATION, 72000); in populateAudioData()
/aosp12/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/recoverablekeystore/
H A DMockScrypt.java37 byteBuffer.putInt(password.length); in scrypt()
39 byteBuffer.putInt(salt.length); in scrypt()
41 byteBuffer.putInt(n); in scrypt()
42 byteBuffer.putInt(r); in scrypt()
43 byteBuffer.putInt(p); in scrypt()
44 byteBuffer.putInt(outLen); in scrypt()
/aosp12/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/development/
H A DDevelopmentSettingsUtilTest.java59 Settings.Global.putInt(mContext.getContentResolver(), in isEnabled_settingsOff_isAdmin_shouldReturnFalse()
69 Settings.Global.putInt(mContext.getContentResolver(), in isEnabled_settingsOn_isAdmin_shouldReturnTrue()
80 Settings.Global.putInt(mContext.getContentResolver(), in isEnabled_settingsOn_notAdmin_shouldReturnFalse()
91 Settings.Global.putInt(mContext.getContentResolver(), in isEnabled_hasDisallowDebuggingRestriction_shouldReturnFalse()
105 Settings.Global.putInt(mContext.getContentResolver(), in isEnabled_doesNotHaveDisallowDebuggingRestriction_shouldReturnTrue()
114 Settings.Global.putInt(mContext.getContentResolver(), in setDevelopmentSettingsEnabled_setTrue()
125 Settings.Global.putInt(mContext.getContentResolver(), in setDevelopmentSettingsEnabled_setFalse()
136 Settings.Global.putInt(mContext.getContentResolver(), Settings.Global.DEVICE_PROVISIONED, in isDeviceProvisioned_true()
143 Settings.Global.putInt(mContext.getContentResolver(), Settings.Global.DEVICE_PROVISIONED, in isDeviceProvisioned_false()
/aosp12/packages/apps/Settings/tests/robotests/src/com/android/settings/development/qstile/
H A DWirelessDebuggingTest.java76 Global.putInt(mContext.getContentResolver(), in adbWifiEnabled_shouldReturnEnabled()
84 Global.putInt(mContext.getContentResolver(), in adbWifiDisabled_shouldReturnDisabled()
93 Global.putInt(mContext.getContentResolver(), in setIsEnabled_false_keyguardUnlocked_WifiDisconnected_shouldDisableAdbWifi()
108 Global.putInt(mContext.getContentResolver(), in setIsEnabled_false_keyguardLocked_WifiDisconnected_shouldDisableAdbWifi()
123 Global.putInt(mContext.getContentResolver(), in setIsEnabled_false_keyguardUnlocked_WifiConnected_shouldDisableAdbWifi()
138 Global.putInt(mContext.getContentResolver(), in setIsEnabled_false_keyguardLocked_WifiConnected_shouldDisableAdbWifi()
155 Global.putInt(mContext.getContentResolver(), in setIsEnabled_true_keyguardUnlocked_WifiDisconnected_shouldDisableAdbWifi()
177 Global.putInt(mContext.getContentResolver(), in setIsEnabled_true_keyguardLocked_WifiDisconnected_shouldDisableAdbWifi()
193 Global.putInt(mContext.getContentResolver(), in setIsEnabled_true_keyguardUnlocked_WifiConnected_shouldDisableAdbWifi()
208 Global.putInt(mContext.getContentResolver(), in setIsEnabled_true_keyguardLocked_WifiConnected_shouldDisableAdbWifi()
/aosp12/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/common/
H A DManagedProvisioningSharedPreferences.java100 .putInt(KEY_NAVIGATION_BAR_BACKGROUND_COLOR, color) in writeNavigationBarColor()
116 .putInt(KEY_NAVIGATION_BAR_DIVIDER_COLOR, color) in writeNavigationBarDividerColor()
132 .putInt(KEY_TEXT_PRIMARY_COLOR, color) in writeTextPrimaryColor()
148 .putInt(KEY_TEXT_SECONDARY_COLOR, color) in writeTextSecondaryColor()
164 .putInt(KEY_BACKGROUND_COLOR, color) in writeBackgroundColor()
180 .putInt(KEY_ACCENT_COLOR, color) in writeAccentColor()
196 .putInt(KEY_NOTIFICATION_BACKGROUND_COLOR, color) in writeNotificationBackgroundColor()
/aosp12/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/sound/
H A DRingtonePickerPreferenceControllerTest.java122 args.putInt(RingtoneManager.EXTRA_RINGTONE_TYPE, RingtoneManager.TYPE_RINGTONE); in onStart_setArgs_validRingtoneTypeSet()
124 args.putInt(RingtoneManager.EXTRA_RINGTONE_AUDIO_ATTRIBUTES_FLAGS, in onStart_setArgs_validRingtoneTypeSet()
137 args.putInt(RingtoneManager.EXTRA_RINGTONE_TYPE, RingtoneManager.TYPE_RINGTONE); in onStart_doesNotShowSilent_noExtraPreference()
139 args.putInt(RingtoneManager.EXTRA_RINGTONE_AUDIO_ATTRIBUTES_FLAGS, in onStart_doesNotShowSilent_noExtraPreference()
158 args.putInt(RingtoneManager.EXTRA_RINGTONE_TYPE, RingtoneManager.TYPE_RINGTONE); in onStart_showSilent_hasExtraPreference()
160 args.putInt(RingtoneManager.EXTRA_RINGTONE_AUDIO_ATTRIBUTES_FLAGS, in onStart_showSilent_hasExtraPreference()
182 args.putInt(RingtoneManager.EXTRA_RINGTONE_AUDIO_ATTRIBUTES_FLAGS, in onStart_showSilent_firstPreferenceIsSilent()
199 args.putInt(RingtoneManager.EXTRA_RINGTONE_AUDIO_ATTRIBUTES_FLAGS, in onStart_hasSilent_defaultRingtoneSelected()
225 args.putInt(RingtoneManager.EXTRA_RINGTONE_AUDIO_ATTRIBUTES_FLAGS, in onPreferenceClick_clickCurrentlySelectedItem_nothingChanges()
252 args.putInt(RingtoneManager.EXTRA_RINGTONE_AUDIO_ATTRIBUTES_FLAGS, in onPreferenceClick_clickDifferentItem_selectionChanges()
[all …]
/aosp12/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/batterysaver/
H A DBatterySaverScheduleSeekBarControllerTest.java47 Settings.Global.putInt(mResolver, Global.LOW_POWER_MODE_TRIGGER_LEVEL, 5); in onPreferenceChange_updatesSettingsGlobal()
58 Settings.Global.putInt(mResolver, Global.AUTOMATIC_POWER_SAVE_MODE, in updateSeekBar_routineMode_hasCorrectProperties()
68 Settings.Global.putInt(mResolver, Global.AUTOMATIC_POWER_SAVE_MODE, in updateSeekBar_percentageMode_hasCorrectProperties()
70 Settings.Global.putInt(mResolver, Global.LOW_POWER_MODE_TRIGGER_LEVEL, 5); in updateSeekBar_percentageMode_hasCorrectProperties()
80 Settings.Global.putInt(mResolver, Global.AUTOMATIC_POWER_SAVE_MODE, in updateSeekBar_noneMode_hasCorrectProperties()
82 Settings.Global.putInt(mResolver, Global.LOW_POWER_MODE_TRIGGER_LEVEL, 0); in updateSeekBar_noneMode_hasCorrectProperties()
90 Settings.Global.putInt(mResolver, Global.AUTOMATIC_POWER_SAVE_MODE, in addToScreen_addsToEnd()
92 Settings.Global.putInt(mResolver, Global.LOW_POWER_MODE_TRIGGER_LEVEL, 15); in addToScreen_addsToEnd()
H A DBatterySaverSchedulePreferenceControllerTest.java62 Settings.Global.putInt(mContext.getContentResolver(), in testPreference_lowPowerLevelZero_percentageMode_summaryNoSchedule()
64 Settings.Global.putInt(mContext.getContentResolver(), in testPreference_lowPowerLevelZero_percentageMode_summaryNoSchedule()
74 Settings.Global.putInt(mContext.getContentResolver(), in testPreference_lowPowerLevelNonZero_percentageMode_summaryPercentage()
76 Settings.Global.putInt(mContext.getContentResolver(), in testPreference_lowPowerLevelNonZero_percentageMode_summaryPercentage()
87 Settings.Global.putInt(mContext.getContentResolver(), in testPreference_percentageRoutine_summaryRoutine()
89 Settings.Global.putInt(mContext.getContentResolver(), in testPreference_percentageRoutine_summaryRoutine()
/aosp12/packages/apps/Settings/tests/robotests/src/com/android/settings/notification/zen/
H A DZenModeBehaviorFooterPreferenceControllerTest.java103 Settings.Global.putInt(mContentResolver, ZEN_MODE, ZEN_MODE_NO_INTERRUPTIONS); in totalSilence_footerIsAvailable()
109 Settings.Global.putInt(mContentResolver, ZEN_MODE, ZEN_MODE_ALARMS); in alarmsOnly_footerIsAvailable()
115 Settings.Global.putInt(mContentResolver, ZEN_MODE, ZEN_MODE_IMPORTANT_INTERRUPTIONS); in priorityOnly_footerIsAvailable()
121 Settings.Global.putInt(mContentResolver, ZEN_MODE, ZEN_MODE_OFF); in zenModeOff_footerIsAvailable()
127 Settings.Global.putInt(mContentResolver, ZEN_MODE, ZEN_MODE_OFF); in zenModeOff_updateState_noFooterTitle()
143 Settings.Global.putInt(mContentResolver, ZEN_MODE, ZEN_MODE_ALARMS); in deprecatedZenModeAlarms_qsManualRule_setFooterTitle()
157 Settings.Global.putInt(mContentResolver, ZEN_MODE, ZEN_MODE_ALARMS); in deprecatedZenModeAlarms_appManualRule_setFooterTitle()
173 Settings.Global.putInt(mContentResolver, ZEN_MODE, ZEN_MODE_NO_INTERRUPTIONS); in deprecatedZenModeNoInterruptions_qsManualRule_setFooterTitle()
187 Settings.Global.putInt(mContentResolver, ZEN_MODE, ZEN_MODE_NO_INTERRUPTIONS); in deprecatedZenModeNoInterruptions_appManualRule_setFooterTitle()
203 Settings.Global.putInt(mContentResolver, ZEN_MODE, ZEN_MODE_ALARMS); in deprecatedZenModeAlarms_automaticRule_setFooterTitle()
[all …]
/aosp12/frameworks/base/media/java/android/media/
H A DMediaMetrics.java385 .putInt(pid) in Item()
386 .putInt(uid) in Item()
404 putInt(key.getName(), (int) value); in set()
423 public Item putInt(String key, int value) { in putInt() method in Item
430 .putInt(value); in putInt()
665 bundle.putInt(BUNDLE_TOTAL_SIZE, totalSize); in toBundle()
666 bundle.putInt(BUNDLE_HEADER_SIZE, headerSize); in toBundle()
670 bundle.putInt(BUNDLE_PID, pid); in toBundle()
671 bundle.putInt(BUNDLE_UID, uid); in toBundle()
673 bundle.putInt(BUNDLE_PROPERTY_COUNT, propertyCount); in toBundle()
[all …]
/aosp12/packages/modules/StatsD/framework/java/android/util/
H A DStatsEvent.java411 mPos += mBuffer.putInt(mPos, value); in writeInt()
466 mPos += mBuffer.putInt(mPos, numBytes); in writeByteArray()
497 mPos += mBuffer.putInt(mPos, uids[i]); in writeAttributionChain()
539 mPos += mBuffer.putInt(mPos, key); in writeKeyValuePairs()
541 mPos += mBuffer.putInt(mPos, value); in writeKeyValuePairs()
547 mPos += mBuffer.putInt(mPos, key); in writeKeyValuePairs()
555 mPos += mBuffer.putInt(mPos, key); in writeKeyValuePairs()
565 mPos += mBuffer.putInt(mPos, key); in writeKeyValuePairs()
610 mPos += mBuffer.putInt(mPos, value); in addIntAnnotation()
654 mPos += mBuffer.putInt(mPos, mAtomId); in build()
[all …]
/aosp12/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/euicc/
H A DEuiccCardControllerTest.java120 Settings.Global.putInt(mContext.getContentResolver(), in tearDown()
124 sp.edit().putInt(KEY_LAST_BOOT_COUNT, mLastBootCount).apply(); in tearDown()
130 Settings.Global.putInt(mContext.getContentResolver(), Settings.Global.BOOT_COUNT, 0); in testIsBootUp()
133 mSp.edit().putInt(KEY_LAST_BOOT_COUNT, 1).apply(); in testIsBootUp()
137 mSp.edit().putInt(KEY_LAST_BOOT_COUNT, 1).apply(); in testIsBootUp()
138 Settings.Global.putInt(mContext.getContentResolver(), Settings.Global.BOOT_COUNT, 1); in testIsBootUp()
141 mSp.edit().putInt(KEY_LAST_BOOT_COUNT, 2).apply(); in testIsBootUp()
204 Settings.Global.putInt(mContext.getContentResolver(), Settings.Global.BOOT_COUNT, 0); in testStartOtaUpdatingIfNecessary_onEmbeddedSlot_Present()
218 Settings.Global.putInt(mContext.getContentResolver(), Settings.Global.BOOT_COUNT, 0); in testStartOtaUpdatingIfNecessary_onEmbeddedSlot_NotPresent()
231 mSp.edit().putInt(KEY_LAST_BOOT_COUNT, 1).apply(); in testStartOtaUpdatingIfNecessary_notBootUp()
[all …]
/aosp12/packages/apps/Settings/tests/robotests/src/com/android/settings/development/
H A DWirelessDebuggingEnablerTest.java91 Global.putInt(mContext.getContentResolver(), in adbWifiEnabled_switchBarShouldBeChecked()
98 Global.putInt(mContext.getContentResolver(), in adbWifiEnabled_switchBarShouldBeChecked()
111 Global.putInt(mContext.getContentResolver(), in adbWifiEnabled_switchBarShouldNotBeChecked()
118 Global.putInt(mContext.getContentResolver(), in adbWifiEnabled_switchBarShouldNotBeChecked()
132 Global.putInt(mContext.getContentResolver(), in onSwitchToggled_true_wifiConnected_shouldSetAdbWifiEnabledTrue()
148 Global.putInt(mContext.getContentResolver(), in onSwitchToggled_true_wifiNotConnected_shouldSetAdbWifiEnabledFalse()
164 Global.putInt(mContext.getContentResolver(), in onSwitchToggled_false_wifiConnected_shouldSetAdbWifiEnabledFalse()
180 Global.putInt(mContext.getContentResolver(), in onSwitchToggled_false_wifiNotConnected_shouldSetAdbWifiEnabledFalse()
/aosp12/packages/apps/Settings/tests/robotests/src/com/android/settings/sound/
H A DMediaControlsParentPreferenceControllerTest.java62 Settings.Global.putInt(mContentResolver, Settings.Global.SHOW_MEDIA_ON_QUICK_SETTINGS, in tearDown()
64 Settings.Secure.putInt(mContentResolver, Settings.Secure.MEDIA_CONTROLS_RESUME, in tearDown()
75 Settings.Global.putInt(mContentResolver, Settings.Global.SHOW_MEDIA_ON_QUICK_SETTINGS, 1); in getSummary_isOn_showPlayer()
76 Settings.Secure.putInt(mContentResolver, Settings.Secure.MEDIA_CONTROLS_RESUME, 1); in getSummary_isOn_showPlayer()
84 Settings.Global.putInt(mContentResolver, Settings.Global.SHOW_MEDIA_ON_QUICK_SETTINGS, 1); in getSummary_isOff_hidePlayer()
85 Settings.Secure.putInt(mContentResolver, Settings.Secure.MEDIA_CONTROLS_RESUME, 0); in getSummary_isOff_hidePlayer()
/aosp12/packages/apps/Settings/tests/robotests/src/com/android/settings/notification/app/
H A DBubbleSummaryPreferenceControllerTest.java99 Settings.Secure.putInt(mContext.getContentResolver(), NOTIFICATION_BUBBLES, SYSTEM_WIDE_ON); in isAvailable_NOTIFICATION_BUBBLESisOn_shouldReturnTrue()
107 Settings.Secure.putInt(mContext.getContentResolver(), NOTIFICATION_BUBBLES, SYSTEM_WIDE_ON); in isAvailable_NOTIFICATION_BUBBLESisOn_neverSentMsg_shouldReturnFalse()
116 Settings.Secure.putInt(mContext.getContentResolver(), NOTIFICATION_BUBBLES, in isAvailable_NOTIFICATION_BUBBLESisOff_shouldReturnFalse()
125 Settings.Secure.putInt(mContext.getContentResolver(), NOTIFICATION_BUBBLES, in isAvailable_nonNullChannelNOTIFICATION_BUBBLESisOff_shouldReturnFalse()
136 Settings.Secure.putInt(mContext.getContentResolver(), NOTIFICATION_BUBBLES, SYSTEM_WIDE_ON); in isAvailable_defaultChannelNOTIFICATION_BUBBLESisOn_shouldReturnTrue()
147 Settings.Secure.putInt(mContext.getContentResolver(), NOTIFICATION_BUBBLES, SYSTEM_WIDE_ON); in isAvailable_lowRam_shouldReturnFalse()
158 Settings.Secure.putInt(mContext.getContentResolver(), NOTIFICATION_BUBBLES, SYSTEM_WIDE_ON); in isAvailable_notLowRam_shouldReturnTrue()
179 Settings.Secure.putInt(mContext.getContentResolver(), NOTIFICATION_BUBBLES, in getSummary_NOTIFICATION_BUBBLESIsOff_returnsNoneString()
191 Settings.Secure.putInt(mContext.getContentResolver(), NOTIFICATION_BUBBLES, in getSummary_BUBBLE_PREFERENCE_NONEisSelected_returnsNoneString()
204 Settings.Secure.putInt(mContext.getContentResolver(), NOTIFICATION_BUBBLES, in getSummary_BUBBLE_PREFERENCE_ALLisSelected_returnsAllString()
[all …]
H A DBubblePreferenceControllerTest.java127 Settings.Secure.putInt(mContext.getContentResolver(), NOTIFICATION_BUBBLES, SYSTEM_WIDE_ON); in isAvailable_notIfAppBlocked()
136 Settings.Secure.putInt(mContext.getContentResolver(), NOTIFICATION_BUBBLES, SYSTEM_WIDE_ON); in isAvailable_notIfChannelBlocked()
146 Settings.Secure.putInt(mContext.getContentResolver(), NOTIFICATION_BUBBLES, SYSTEM_WIDE_ON); in isAvailable_channel_notIfAppOff()
160 Settings.Secure.putInt(mContext.getContentResolver(), in isNotAvailable_ifOffGlobally_app()
184 Settings.Secure.putInt(mContext.getContentResolver(), in isAvailable_notIfOffGlobally_channel()
194 Settings.Secure.putInt(mContext.getContentResolver(), NOTIFICATION_BUBBLES, SYSTEM_WIDE_ON); in isAvailable_ifNotLowRam()
206 Settings.Secure.putInt(mContext.getContentResolver(), in isAvailable_app_evenIfOffGlobally()
216 Settings.Secure.putInt(mContext.getContentResolver(), NOTIFICATION_BUBBLES, SYSTEM_WIDE_ON); in isAvailable_app()
229 Settings.Secure.putInt(mContext.getContentResolver(), NOTIFICATION_BUBBLES, SYSTEM_WIDE_ON); in isAvailable_defaultChannel()
364 Settings.Secure.putInt(mContext.getContentResolver(), in updateState_app_offGlobally()
[all …]

12345678910>>...61