Searched refs:testValue1 (Results 1 – 2 of 2) sorted by relevance
/frameworks/base/packages/SettingsProvider/test/src/com/android/providers/settings/ |
D | SettingsStateTest.java | 565 final String testValue1 = Strings.repeat("A", 100); in testMemoryUsagePerPackage() local 566 settingsState.insertSettingLocked(testKey1, testValue1, null, true, TEST_PACKAGE); in testMemoryUsagePerPackage() 567 int expectedMemUsage = (testKey1.length() + testValue1.length() in testMemoryUsagePerPackage() 568 + testValue1.length() /* size for default */) * Character.BYTES; in testMemoryUsagePerPackage() 573 settingsState.insertSettingLocked(testKey2, testValue1, null, false, TEST_PACKAGE); in testMemoryUsagePerPackage() 574 expectedMemUsage += (testKey2.length() + testValue1.length()) * Character.BYTES; in testMemoryUsagePerPackage() 580 expectedMemUsage += (testValue2.length() - testValue1.length()) * 2 * Character.BYTES; in testMemoryUsagePerPackage() 591 expectedMemUsage -= (testValue1.length() - testValue2.length()) * Character.BYTES; in testMemoryUsagePerPackage() 613 settingsState.insertSettingLocked(testKey3, testValue1, null, true, testPackage2); in testMemoryUsagePerPackage() 615 final int expectedMemUsage2 = (testKey3.length() + testValue1.length() * 2) in testMemoryUsagePerPackage() [all …]
|
/frameworks/base/core/tests/coretests/src/android/provider/ |
D | SettingsProviderTest.java | 183 final String testValue1 = "value1"; in testSettingsChangeForOtherUser() local 185 Settings.Secure.putString(r, testKey, testValue1); in testSettingsChangeForOtherUser() 188 assertEquals(testValue1, Settings.Secure.getString(r, testKey)); in testSettingsChangeForOtherUser()
|