/cts/common/device-side/bedstead/queryable/src/test/java/com/android/queryable/queries/ |
D | EnumQueryHelperTest.java | 42 VALUE1, VALUE2 enumConstant 72 assertThat(enumQueryHelper.matches(TestEnum.VALUE2)).isFalse(); in matches_isEqualTo_doesNotMatch_returnsFalse() 82 assertThat(enumQueryHelper.matches(TestEnum.VALUE2)).isTrue(); in matches_isNotEqualTo_matches_returnsTrue() 121 enumQueryHelper.isOneOf(TestEnum.VALUE1, TestEnum.VALUE2); in matches_isOneOf_matches_returnsTrue() 123 assertThat(enumQueryHelper.matches(TestEnum.VALUE2)).isTrue(); in matches_isOneOf_matches_returnsTrue() 131 enumQueryHelper.isOneOf(TestEnum.VALUE1, TestEnum.VALUE2); in matches_isOneOf_doesNotMatch_returnsFalse() 143 assertThat(enumQueryHelper.matches(TestEnum.VALUE2)).isTrue(); in matches_isNotOneOf_matches_returnsTrue() 151 enumQueryHelper.isNotOneOf(TestEnum.VALUE1, TestEnum.VALUE2); in matches_isNotOneOf_doesNotMatch_returnsFalse() 182 enumQueryHelper.isNotEqualTo(TestEnum.VALUE2); in parcel_parcelsCorrectly()
|
/cts/tests/tests/text/src/android/text/cts/ |
D | AnnotationTest.java | 38 private static final String VALUE2 = "Smith"; field in AnnotationTest 54 mAnnotation = new Annotation(KEY2, VALUE2); in testGetValue() 55 assertEquals(VALUE2, mAnnotation.getValue()); in testGetValue() 63 mAnnotation = new Annotation(KEY2, VALUE2); in testGetKey()
|
/cts/tests/tests/provider/src/android/provider/cts/settings/ |
D | Settings_ConfigTest.java | 72 private static final String VALUE2 = "value2"; field in Settings_ConfigTest 180 Settings.Config.putString(NAMESPACE2, KEY1, VALUE2, /*makeDefault=*/false); in testSetAndGetString_multipleNamespaces() 185 assertEquals("Value read from Settings.Config API does not match written value.", VALUE2, in testSetAndGetString_multipleNamespaces() 195 Settings.Config.putString(NAMESPACE1, KEY1, VALUE2, /*makeDefault=*/false); in testSetAndGetString_overrideValue() 198 + " value.", VALUE2, result); in testSetAndGetString_overrideValue() 237 put(KEY2, VALUE2); in testSetAndGetStrings_sameNamespace() 241 assertEquals(VALUE2, Settings.Config.getStrings(NAMESPACE1, Arrays.asList(KEY2)).get(KEY2)); in testSetAndGetStrings_sameNamespace() 252 put(KEY2, VALUE2); in testSetAndGetStrings_differentNamespace() 266 put(KEY2, VALUE2); in testSetAndGetStrings_multipleNamespaces() 279 assertEquals(namespace1Values.toString(), VALUE2, namespace1Values.get(KEY2)); in testSetAndGetStrings_multipleNamespaces() local [all …]
|
/cts/tests/tests/deviceconfig/src/android/deviceconfig/cts/ |
D | DeviceConfigApiTests.java | 66 private static final String VALUE2 = "value2"; field in DeviceConfigApiTests 390 DeviceConfig.setProperty(NAMESPACE2, KEY1, VALUE2, /*makeDefault=*/false); in testSetAndGetProperty_multipleNamespaces() 395 assertEquals("Value read from DeviceConfig API does not match written value.", VALUE2, in testSetAndGetProperty_multipleNamespaces() 408 .setString(KEY1, VALUE2).setInt(KEY2, VALID_INT2).build(); in testSetAndGetProperties_multipleNamespaces() 414 assertEquals(VALUE2, DeviceConfig.getString(NAMESPACE2, KEY1, DEFAULT_VALUE)); in testSetAndGetProperties_multipleNamespaces() 424 DeviceConfig.setProperty(NAMESPACE1, KEY1, VALUE2, /*makeDefault=*/false); in testSetAndGetProperty_overrideValue() 427 + " value.", VALUE2, result); in testSetAndGetProperty_overrideValue() 439 .setString(KEY1, VALUE2).setInt(KEY2, VALID_INT2).build(); in testSetAndGetProperties_overrideValue() 443 assertEquals(VALUE2, DeviceConfig.getString(NAMESPACE1, KEY1, DEFAULT_VALUE)); in testSetAndGetProperties_overrideValue() 1068 setPropertiesAndAssertSuccessfulChange(NAMESPACE1, KEY2, VALUE2); in testDeleteProperty_withUndeletedProperty() [all …]
|
/cts/tests/tests/content/src/android/content/cts/ |
D | ContentQueryMapTest.java | 48 private static final String VALUE2 = "value2"; field in ContentQueryMapTest 155 values.put(DummyProvider.VALUE, VALUE2); in testRequery() 169 assertEquals(VALUE2, contentValues.getAsString(DummyProvider.VALUE)); in testRequery() 189 values.put(DummyProvider.VALUE, VALUE2); in testSetKeepUpdated() 210 assertEquals(VALUE2, contentValues.getAsString(DummyProvider.VALUE)); in testSetKeepUpdated() 291 values.put(DummyProvider.VALUE, VALUE2); in testSetKeepUpdatedWithHandler() 312 assertEquals(VALUE2, contentValues.getAsString(DummyProvider.VALUE)); in testSetKeepUpdatedWithHandler()
|
D | ContentResolverTest.java | 113 private static final int VALUE2 = 2; field in ContentResolverTest 140 values.put(COLUMN_VALUE_NAME, VALUE2); in setUp() 366 assertEquals(VALUE2, mCursor.getInt(mCursor.getColumnIndexOrThrow(COLUMN_VALUE_NAME))); in testQuery() 580 assertEquals(VALUE2, mCursor.getInt(mCursor.getColumnIndexOrThrow(COLUMN_VALUE_NAME))); in testCrashingQuery() 985 values.put(COLUMN_VALUE_NAME, VALUE2); in testDelete()
|