/cts/tests/tests/os/src/android/os/cts/ |
D | BundleTest.java | 74 private static final String KEY1 = "key1"; field in BundleTest 101 b1.putBoolean(KEY1, true); in testBundle() 105 assertTrue(b2.getBoolean(KEY1)); in testBundle() 127 mBundle.putBoolean(KEY1, true); in testClear() 149 assertFalse(mBundle.containsKey(KEY1)); in testContainsKey() 150 mBundle.putBoolean(KEY1, true); in testContainsKey() 151 assertTrue(mBundle.containsKey(KEY1)); in testContainsKey() 153 assertTrue(mBundle.containsKey(KEY1)); in testContainsKey() 160 assertNull(mBundle.get(KEY1)); in testGet() 161 mBundle.putBoolean(KEY1, true); in testGet() [all …]
|
/cts/tests/tests/deviceconfig/src/android/deviceconfig/cts/ |
D | DeviceConfigApiTests.java | 61 private static final String KEY1 = "key1"; field in DeviceConfigApiTests 165 nullifyProperty(NAMESPACE1, KEY1); in cleanUp() 166 nullifyProperty(NAMESPACE2, KEY1); in cleanUp() 184 deletePropertyThrowShell(NAMESPACE1, KEY1); in cleanUpAfterAllTests() 185 deletePropertyThrowShell(NAMESPACE2, KEY1); in cleanUpAfterAllTests() 328 String result = DeviceConfig.getProperty(EMPTY_NAMESPACE, KEY1); in testGetProperty_empty() 338 DeviceConfig.setProperty(NAMESPACE1, KEY1, VALUE1, /*makeDefault=*/false); in testSetAndGetProperty_sameNamespace() 339 String result = DeviceConfig.getProperty(NAMESPACE1, KEY1); in testSetAndGetProperty_sameNamespace() 350 .setString(KEY1, VALUE1).setInt(KEY2, VALID_INT).build(); in testSetAndGetProperties_sameNamespace() 351 assertEquals(DEFAULT_VALUE, DeviceConfig.getString(NAMESPACE1, KEY1, DEFAULT_VALUE)); in testSetAndGetProperties_sameNamespace() [all …]
|
/cts/tests/tests/provider/src/android/provider/cts/settings/ |
D | Settings_ConfigTest.java | 69 private static final String KEY1 = "key1"; field in Settings_ConfigTest 124 deleteProperties(NAMESPACE1, Arrays.asList(KEY1, KEY2)); in cleanUp() 125 deleteProperties(NAMESPACE2, Arrays.asList(KEY1, KEY2)); in cleanUp() 136 String result = Settings.Config.getString(KEY1); in testGetString_empty() 147 .getStrings(EMPTY_NAMESPACE, Arrays.asList(KEY1)); in testGetStrings_empty() 157 Settings.Config.putString(NAMESPACE1, KEY1, VALUE1, /*makeDefault=*/false); in testSetAndGetString_sameNamespace() 158 String result = Settings.Config.getStrings(NAMESPACE1, Arrays.asList(KEY1)).get(KEY1); in testSetAndGetString_sameNamespace() 169 Settings.Config.putString(NAMESPACE1, KEY1, VALUE1, /*makeDefault=*/false); in testSetAndGetString_differentNamespace() 170 String result = Settings.Config.getStrings(NAMESPACE2, Arrays.asList(KEY1)).get(KEY1); in testSetAndGetString_differentNamespace() 179 Settings.Config.putString(NAMESPACE1, KEY1, VALUE1, /*makeDefault=*/false); in testSetAndGetString_multipleNamespaces() [all …]
|
/cts/tests/tests/text/src/android/text/cts/ |
D | AnnotationTest.java | 35 private static final String KEY1 = "name"; field in AnnotationTest 46 new Annotation(KEY1, VALUE1); in testConstructor() 52 mAnnotation = new Annotation(KEY1, VALUE1); in testGetValue() 61 mAnnotation = new Annotation(KEY1, VALUE1); in testGetKey() 62 assertEquals(KEY1, mAnnotation.getKey()); in testGetKey() 69 mAnnotation = new Annotation(KEY1, VALUE1); in testGetSpanTypeId() 78 mAnnotation = new Annotation(KEY1, VALUE1); in testWriteToParcel()
|
/cts/tests/tests/content/src/android/content/cts/ |
D | ContentResolverTest.java | 109 private static final String KEY1 = "key1"; field in ContentResolverTest 134 values.put(COLUMN_KEY_NAME, KEY1); in setUp() 382 assertEquals(KEY1, mCursor.getString(mCursor.getColumnIndexOrThrow(COLUMN_KEY_NAME))); in testQuery_WithSqlSelectionArgs() 980 values.put(COLUMN_KEY_NAME, KEY1); in testDelete() 1002 assertEquals(KEY1, mCursor.getString(mCursor.getColumnIndexOrThrow(COLUMN_KEY_NAME))); in testDelete() 1020 assertEquals(KEY1, mCursor.getString(mCursor.getColumnIndexOrThrow(COLUMN_KEY_NAME))); in testDelete() 1024 selection = COLUMN_KEY_NAME + "=\"" + KEY1 + "\""; in testDelete()
|