/frameworks/base/services/tests/servicestests/src/com/android/server/content/ |
D | SyncManagerTest.java | 94 b1.putString(KEY_1, null); in testSyncExtrasEquals_WithNull() 95 b2.putString(KEY_1, null); in testSyncExtrasEquals_WithNull() 105 b1.putString(KEY_1, null); in testSyncExtrasEqualsBigger_WithNull() 106 b2.putString(KEY_1, null); in testSyncExtrasEqualsBigger_WithNull() 108 b1.putString(KEY_2, "bla"); in testSyncExtrasEqualsBigger_WithNull() 109 b2.putString(KEY_2, "bla"); in testSyncExtrasEqualsBigger_WithNull() 123 b2.putString(null, "Hello NPE!"); in testSyncExtrasEqualsFails_WithNull() 124 b2.putString("a", "b"); in testSyncExtrasEqualsFails_WithNull() 125 b2.putString("c", "d"); in testSyncExtrasEqualsFails_WithNull() 126 b2.putString("e", "f"); in testSyncExtrasEqualsFails_WithNull() [all …]
|
/frameworks/base/services/tests/servicestests/src/com/android/server/accounts/ |
D | TestAccountType1Authenticator.java | 47 result.putString(AccountManager.KEY_ACCOUNT_NAME, in editProperties() 49 result.putString(AccountManager.KEY_ACCOUNT_TYPE, in editProperties() 51 result.putString( in editProperties() 76 result.putString(AccountManager.KEY_ACCOUNT_NAME, accountName); in addAccount() 77 result.putString(AccountManager.KEY_ACCOUNT_TYPE, mAccountType); in addAccount() 78 result.putString(AccountManager.KEY_AUTHTOKEN, in addAccount() 115 result.putString(AccountManager.KEY_ACCOUNT_NAME, account.name); in confirmCredentials() 116 result.putString(AccountManager.KEY_ACCOUNT_TYPE, account.type); in confirmCredentials() 156 result.putString( in getAuthToken() 161 result.putString(AccountManager.KEY_ACCOUNT_NAME, account.name); in getAuthToken() [all …]
|
/frameworks/base/core/tests/utiltests/src/com/android/internal/util/ |
D | InlinePresentationStyleUtilsTest.java | 57 bundle2.putString("KEY", "value"); in testBundleEquals_oneIsEmpty() 65 bundle11.putString("KEY", "VALUE"); in testBundleEquals_nestedBundle_equal() 70 bundle21.putString("KEY", "VALUE"); in testBundleEquals_nestedBundle_equal() 80 bundle11.putString("KEY", "VALUE"); in testBundleEquals_nestedBundle_unequal() 128 bundle.putString("str", "test"); in testFilterContentTypes_basic() 129 bundle.putString("null", null); in testFilterContentTypes_basic() 142 bundle.putString("str", "test"); in testFilterContentTypes_binder_removedBinder() 143 bundle.putString("null", null); in testFilterContentTypes_binder_removedBinder()
|
/frameworks/base/apct-tests/perftests/settingsprovider/src/android/provider/ |
D | SettingsProviderPerfTest.java | 56 Settings.Secure.putString(mContentResolver, SETTING_NAME1, "1"); in setUp() 57 Settings.Config.putString(NAMESPACE, SETTING_NAME1, "1", true); in setUp() 58 Settings.Config.putString(NAMESPACE, SETTING_NAME2, "2", true); in setUp() 63 Settings.Secure.putString(mContentResolver, SETTING_NAME1, "null"); in destroy() 75 Settings.Secure.putString(mContentResolver, SETTING_NAME2, Integer.toString(i)); in testSettingsValueConsecutiveRead() 89 Settings.Secure.putString(mContentResolver, SETTING_NAME1, Integer.toString(i)); in testSettingsValueConsecutiveReadAfterWrite() 123 Settings.Config.putString(NAMESPACE, SETTING_NAME2, Integer.toString(i), true); in testSettingsNamespaceConsecutiveReadAfterWrite()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/util/ |
D | FakeSharedPreferencesTest.kt | 100 SharedPreferences.Editor::putString, in <lambda>() 153 sharedPreferences.edit().putString("key", "value").commit() in <lambda>() 154 sharedPreferences.edit().putString("key", null).commit() in <lambda>() 161 sharedPreferences.edit().putString("key", "value").commit() in <lambda>() 162 sharedPreferences.edit().putString("key", "other").putString("key", null).commit() in <lambda>() 177 sharedPreferences.edit().putInt("keyInt", 1).putString("keyString", "a").commit() in <lambda>() 196 sharedPreferences.edit().putInt("keyInt", 10).putString("keyString", "value").commit() in <lambda>() 217 .putString("keyString", "a") in <lambda>() 222 sharedPreferences.edit().putString("keyString", null).putStringSet("keySet", null).commit() in <lambda>()
|
/frameworks/base/packages/SettingsLib/Tile/src/com/android/settingslib/drawer/ |
D | EntryController.java | 97 bundle.putString(META_DATA_PREFERENCE_KEYHINT, getKey()); in getBundle() 99 bundle.putString(META_DATA_PREFERENCE_ICON_URI, uriString); in getBundle() 102 bundle.putString(META_DATA_PREFERENCE_TITLE_URI, uriString); in getBundle() 105 bundle.putString(META_DATA_PREFERENCE_SUMMARY_URI, uriString); in getBundle() 108 bundle.putString(META_DATA_PREFERENCE_SWITCH_URI, uriString); in getBundle() 208 bundle.putString(EXTRA_CATEGORY_KEY, mCategory); in build() 230 bundle.putString(META_DATA_PREFERENCE_TITLE, mTitle); in build() 236 bundle.putString(META_DATA_PREFERENCE_SUMMARY, mSummary); in build()
|
/frameworks/base/cmds/uiautomator/library/testrunner-src/com/android/uiautomator/testrunner/ |
D | UiAutomatorTestRunner.java | 84 results.putString("shortMsg", ex.getClass().getName()); in run() 85 results.putString("longMsg", ex.getMessage()); in run() 165 testRunOutput.putString("shortMsg", t.getMessage()); in start() 264 mResultTemplate.putString(Instrumentation.REPORT_KEY_IDENTIFIER, REPORT_VALUE_ID); in WatcherResultPrinter() 281 mTestResult.putString(REPORT_KEY_NAME_CLASS, testClass); in startTest() 282 mTestResult.putString(REPORT_KEY_NAME_TEST, testName); in startTest() 286 mTestResult.putString(Instrumentation.REPORT_KEY_STREAMRESULT, in startTest() 290 mTestResult.putString(Instrumentation.REPORT_KEY_STREAMRESULT, ""); in startTest() 316 mTestResult.putString(REPORT_KEY_STACK, BaseTestRunner.getFilteredTrace(t)); in addError() 319 mTestResult.putString(Instrumentation.REPORT_KEY_STREAMRESULT, in addError() [all …]
|
/frameworks/base/services/tests/servicestests/src/com/android/server/ |
D | NetworkScorerAppManagerTest.java | 245 verify(mSettingsFacade, never()).putString(any(), any(), any()); in testSetActiveScorer_noChange() 253 verify(mSettingsFacade).putString(mMockContext, in testSetActiveScorer_nullPackage_currentIsSet() 265 verify(mSettingsFacade, never()).putString(any(), any(), any()); in testSetActiveScorer_nullPackage_currentIsNull() 278 verify(mSettingsFacade).putString(mMockContext, in testSetActiveScorer_validPackage() 293 verify(mSettingsFacade, never()).putString(any(), any(), any()); in testSetActiveScorer_invalidPackage() 316 verify(mSettingsFacade, never()).putString(any(), in testUpdateState_currentPackageValid() 335 verify(mSettingsFacade).putString(mMockContext, in testUpdateState_currentPackageNotValid_validDefault() 362 verify(mSettingsFacade, never()).putString(any(), in testUpdateState_currentPackageNull_defaultNull() 376 verify(mSettingsFacade, never()).putString(any(), in testUpdateState_currentPackageEmpty_defaultEmpty() 404 verify(mSettingsFacade, never()).putString(eq(mMockContext), in testMigrateNetworkScorerAppSettingIfNeeded_networkScorerAppIsNull() [all …]
|
/frameworks/base/tests/testables/tests/src/android/testing/ |
D | TestableSettingsProviderTest.java | 47 Settings.Secure.putString(mContentResolver, NONEXISTENT_SETTING, null); in setup() 48 Settings.Global.putString(mContentResolver, NONEXISTENT_SETTING, "initial value"); in setup() 49 Settings.Global.putString(mContentResolver, Global.DEVICE_PROVISIONED, null); in setup() 66 Secure.putString(mContentResolver, NONEXISTENT_SETTING, "something"); in testSeparateTables() 67 Global.putString(mContentResolver, NONEXISTENT_SETTING, "else"); in testSeparateTables()
|
/frameworks/base/test-runner/src/android/test/ |
D | InstrumentationTestRunner.java | 547 mResults.putString(Instrumentation.REPORT_KEY_IDENTIFIER, REPORT_VALUE_ID); in onStart() 573 mResults.putString(Instrumentation.REPORT_KEY_STREAMRESULT, in onStart() 619 mResults.putString(REPORT_KEY_COVERAGE_PATH, coverageFilePath); in generateCoverageReport() 623 mResults.putString(Instrumentation.REPORT_KEY_STREAMRESULT, in generateCoverageReport() 657 mResults.putString(Instrumentation.REPORT_KEY_STREAMRESULT, "\nError: " + msg); in reportEmmaError() 735 mTestResult.putString(Instrumentation.REPORT_KEY_STREAMRESULT, in endTest() 740 mTestResult.putString(REPORT_KEY_SUITE_ASSIGNMENT, assignmentSuite); in endTest() 758 mResultTemplate.putString(Instrumentation.REPORT_KEY_IDENTIFIER, REPORT_VALUE_ID); in WatcherResultPrinter() 770 mTestResult.putString(REPORT_KEY_NAME_CLASS, testClass); in startTest() 771 mTestResult.putString(REPORT_KEY_NAME_TEST, testName); in startTest() [all …]
|
/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/util/settings/ |
D | FakeSettings.java | 47 putString(initialKey, initialValue); in FakeSettings() 52 putString(kv.getKey(), kv.getValue()); in FakeSettings() 118 public boolean putString(String name, String value, boolean overrideableByRestore) { in putString() method in FakeSettings 123 public boolean putString(String name, String value) { in putString() method in FakeSettings 124 return putString(name, value, false); in putString() 150 public boolean putString(String name, String value, String tag, boolean makeDefault) { in putString() method in FakeSettings 151 return putString(name, value); in putString()
|
/frameworks/base/core/java/android/ddm/ |
D | DdmHandleHello.java | 154 putString(out, vmIdent); in handleHELO() 155 putString(out, appName); in handleHELO() 158 putString(out, instructionSetDescription); in handleHELO() 160 putString(out, vmFlags); in handleHELO() 163 putString(out, pkgName); in handleHELO() 199 putString(out, vmFeatures[i]); in handleFEAT() 203 putString(out, FRAMEWORK_FEATURES[i]); in handleFEAT()
|
/frameworks/base/telephony/java/android/telephony/ |
D | CarrierConfigManager.java | 1926 defaults.putString(KEY_SETTINGS_DEFAULT_PROTOCOL_STRING, ""); in getDefaults() 1927 defaults.putString(KEY_SETTINGS_DEFAULT_ROAMING_PROTOCOL_STRING, ""); in getDefaults() 4709 defaults.putString(KEY_ENTITLEMENT_SERVER_URL_STRING, ""); in getDefaults() 4710 defaults.putString(KEY_FCM_SENDER_ID_STRING, ""); in getDefaults() 4884 defaults.putString(KEY_SUPL_HOST_STRING, "supl.google.com"); in getDefaults() 4885 defaults.putString(KEY_SUPL_PORT_STRING, "7275"); in getDefaults() 4886 defaults.putString(KEY_SUPL_VER_STRING, "0x20000"); in getDefaults() 4887 defaults.putString(KEY_SUPL_MODE_STRING, "1"); in getDefaults() 4888 defaults.putString(KEY_SUPL_ES_STRING, "1"); in getDefaults() 4889 defaults.putString(KEY_LPP_PROFILE_STRING, "2"); in getDefaults() [all …]
|
/frameworks/base/core/tests/coretests/src/android/content/pm/ |
D | PackageParserCacheHelperTest.java | 41 source.putString("s1", "abcdef"); in testParcelUnparcel() 42 source.putString("s2", "xyz"); in testParcelUnparcel() 43 source.putString("s3", null); in testParcelUnparcel() 46 nest.putString("s1", "xyz"); in testParcelUnparcel()
|
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/fuelgauge/ |
D | BatterySaverUtilsTest.java | 77 Secure.putString(mMockResolver, Secure.LOW_POWER_WARNING_ACKNOWLEDGED, "null"); in testSetPowerSaveMode_enableWithWarning_firstCall_needConfirmationWarning() 78 Secure.putString(mMockResolver, Secure.EXTRA_LOW_POWER_WARNING_ACKNOWLEDGED, "null"); in testSetPowerSaveMode_enableWithWarning_firstCall_needConfirmationWarning() 79 Secure.putString(mMockResolver, Secure.LOW_POWER_MANUAL_ACTIVATION_COUNT, "null"); in testSetPowerSaveMode_enableWithWarning_firstCall_needConfirmationWarning() 103 Secure.putString(mMockResolver, Secure.LOW_POWER_MANUAL_ACTIVATION_COUNT, "null"); in testSetPowerSaveMode_enableWithWarning_secondCall_expectUpdateIntent() 170 Secure.putString(mMockResolver, Secure.LOW_POWER_WARNING_ACKNOWLEDGED, "null"); in testSetPowerSaveMode_enableWithoutWarning_expectUpdateIntent() 171 Secure.putString(mMockResolver, Secure.EXTRA_LOW_POWER_WARNING_ACKNOWLEDGED, "null"); in testSetPowerSaveMode_enableWithoutWarning_expectUpdateIntent() 172 Secure.putString(mMockResolver, Secure.LOW_POWER_MANUAL_ACTIVATION_COUNT, "null"); in testSetPowerSaveMode_enableWithoutWarning_expectUpdateIntent() 216 Global.putString(mMockResolver, Global.LOW_POWER_MODE_TRIGGER_LEVEL, "null"); in testSetAutoBatterySaverTriggerLevel_setSuppressSuggestion() 217 Secure.putString(mMockResolver, Secure.SUPPRESS_AUTO_BATTERY_SAVER_SUGGESTION, "null"); in testSetAutoBatterySaverTriggerLevel_setSuppressSuggestion() 275 Secure.putString(mMockResolver, Secure.LOW_POWER_WARNING_ACKNOWLEDGED, "null"); in verifyDisablePowerSaveMode() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/util/settings/ |
D | SecureSettingsImpl.java | 59 public boolean putString(String name, String value, boolean overrideableByRestore) { in putString() method in SecureSettingsImpl 60 return Settings.Secure.putString(mContentResolver, name, value, overrideableByRestore); in putString() 78 public boolean putString(String name, String value, String tag, boolean makeDefault) { in putString() method in SecureSettingsImpl 79 return Settings.Secure.putString(mContentResolver, name, value, tag, makeDefault); in putString()
|
/frameworks/base/tests/FlickerTests/src/com/android/server/wm/flicker/helpers/ |
D | AssistantAppHelper.kt | 45 Settings.Secure.putString( in setDefaultAssistant() 50 Settings.Secure.putString( in setDefaultAssistant() 58 Settings.Secure.putString( in resetDefaultAssistant() 63 Settings.Secure.putString( in resetDefaultAssistant()
|
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/drawer/ |
D | ProviderTileTest.java | 73 mMetaData.putString(META_DATA_PREFERENCE_KEYHINT, "key"); in setUp() 74 mMetaData.putString(META_DATA_PREFERENCE_TITLE, "title"); in setUp() 81 mMetaData.putString(META_DATA_KEY_PROFILE, PROFILE_PRIMARY); in isPrimaryProfileOnly_profilePrimary_shouldReturnTrue() 87 mMetaData.putString(META_DATA_KEY_PROFILE, PROFILE_ALL); in isPrimaryProfileOnly_profileAll_shouldReturnFalse() 146 mMetaData.putString(META_DATA_KEY_ORDER, "1"); in getPriority_badMetadata_return0() 206 mMetaData.putString(META_DATA_PREFERENCE_GROUP_KEY, "test_key"); in hasGroupKey_notEmpty_returnsTrue() 221 mMetaData.putString(META_DATA_PREFERENCE_GROUP_KEY, "test_key"); in getGroupKey_notEmpty_returnsValue() 229 mMetaData.putString(META_DATA_PREFERENCE_SWITCH_URI, "test://testabc/"); in getType_withSwitch_returnsSwitch() 237 mMetaData.putString(META_DATA_PREFERENCE_SWITCH_URI, "test://testabc/"); in getType_withSwitchAndPendingIntent_returnsSwitchWithAction()
|
D | SwitchesProviderTest.java | 158 extras.putString(META_DATA_PREFERENCE_KEYHINT, "123"); in getSwitchDataByKey_shouldReturnData() 173 extras.putString(META_DATA_PREFERENCE_KEYHINT, "123"); in isChecked_shouldReturnCheckedState() 194 extras.putString(META_DATA_PREFERENCE_KEYHINT, "123"); in getProviderIcon_noImplementInterface_shouldReturnNull() 209 extras.putString(META_DATA_PREFERENCE_KEYHINT, "123"); in getProviderIcon_implementInterface_shouldReturnIcon() 224 extras.putString(META_DATA_PREFERENCE_KEYHINT, "123"); in getDynamicTitle_noImplementInterface_shouldReturnNull() 239 extras.putString(META_DATA_PREFERENCE_KEYHINT, "123"); in getDynamicTitle_implementInterface_shouldReturnTitle() 255 extras.putString(META_DATA_PREFERENCE_KEYHINT, "123"); in getDynamicSummary_noImplementInterface_shouldReturnNull() 270 extras.putString(META_DATA_PREFERENCE_KEYHINT, "123"); in getDynamicSummary_implementInterface_shouldReturnSummary() 286 extras.putString(META_DATA_PREFERENCE_KEYHINT, "123"); in onCheckedChangedSuccess_shouldReturnNoError() 301 extras.putString(META_DATA_PREFERENCE_KEYHINT, "123"); in onCheckedChangedFailed_shouldReturnErrorMessage()
|
/frameworks/base/core/tests/coretests/src/android/os/ |
D | BundleTest.java | 74 source.putString("string", "abc"); in createBundleParcel() 169 bundle1.putString("StringKey", "S"); in kindofEquals_bothUnparcelled_same() 173 bundle2.putString("StringKey", "S"); in kindofEquals_bothUnparcelled_same() 182 bundle1.putString("StringKey", "S"); in kindofEquals_bothUnparcelled_different() 186 bundle2.putString("StringKey", "T"); in kindofEquals_bothUnparcelled_different() 195 bundle1.putString("StringKey", "S"); in kindofEquals_bothParcelled_same() 200 bundle2.putString("StringKey", "S"); in kindofEquals_bothParcelled_same() 212 bundle1.putString("StringKey", "S"); in kindofEquals_bothParcelled_different() 217 bundle2.putString("StringKey", "T"); in kindofEquals_bothParcelled_different() 285 b.putString("key0", "string"); in kindofEquals_lazyValuesWithIdenticalParcels_returnsTrue() [all …]
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/row/ |
D | NotificationSnoozeTest.java | 53 Settings.Global.putString(mContext.getContentResolver(), in setUp() 74 Settings.Global.putString(mContext.getContentResolver(), in testGetOptionsWithInvalidConfig() 87 Settings.Global.putString(mContext.getContentResolver(), in testGetOptionsWithValidDefault() 96 Settings.Global.putString(mContext.getContentResolver(), in testGetOptionsWithValidConfig() 110 Settings.Global.putString(mContext.getContentResolver(), in testGetOptionsWithLongConfig()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/flags/ |
D | FlagOverrideStoreTest.java | 61 verify(mSettingsProxy).putString(PROP_NAME, "value"); in testSet_unset() 68 verify(mSettingsProxy).putString(PROP_NAME, "value"); in testSet_setTwice() 69 verify(mSettingsProxy).putString(PROP_NAME, "newvalue"); in testSet_setTwice() 86 verify(mSettingsProxy).putString(PROP_NAME, null); in testErase()
|
/frameworks/base/services/flags/java/com/android/server/flags/ |
D | GlobalSettingsProxy.java | 46 public boolean putString(String name, String value, boolean overrideableByRestore) { in putString() method in GlobalSettingsProxy 65 public boolean putString(String name, String value, String tag, boolean makeDefault) { in putString() method in GlobalSettingsProxy 66 return Settings.Global.putString(mContentResolver, name, value, tag, makeDefault); in putString()
|
/frameworks/base/packages/SettingsLib/Spa/spa/src/com/android/settingslib/spa/framework/util/ |
D | Parameter.kt | 67 normArgs.putString(navArg.name, null) in normalize() 75 normArgs.putString(navArg.name, value) in normalize() 77 normArgs.putString(UNSET_PARAM_PREFIX + navArg.name, null) in normalize() 83 normArgs.putString(UNSET_PARAM_PREFIX + navArg.name, null) in normalize()
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/test/ |
D | TestConferenceEventPackageParser.java | 156 bundle.putString(ImsConferenceState.USER, user); in parseParticipant() 157 bundle.putString(ImsConferenceState.DISPLAY_TEXT, displayText); in parseParticipant() 158 bundle.putString(ImsConferenceState.ENDPOINT, endpoint); in parseParticipant() 159 bundle.putString(ImsConferenceState.STATUS, status); in parseParticipant()
|