Home
last modified time | relevance | path

Searched refs:KEY2 (Results 1 – 10 of 10) sorted by relevance

/cts/tests/tests/provider/src/android/provider/cts/settings/
DSettings_ConfigTest.java70 private static final String KEY2 = "key2"; field in Settings_ConfigTest
124 deleteProperties(NAMESPACE1, Arrays.asList(KEY1, KEY2)); in cleanUp()
125 deleteProperties(NAMESPACE2, Arrays.asList(KEY1, KEY2)); in cleanUp()
234 assertNull(Settings.Config.getStrings(NAMESPACE1, Arrays.asList(KEY1)).get(KEY2)); in testSetAndGetStrings_sameNamespace()
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()
256 assertNull(Settings.Config.getStrings(NAMESPACE2, Arrays.asList(KEY2)).get(KEY2)); in testSetAndGetStrings_differentNamespace()
266 put(KEY2, VALUE2); in testSetAndGetStrings_multipleNamespaces()
270 put(KEY2, VALUE4); in testSetAndGetStrings_multipleNamespaces()
[all …]
/cts/tests/tests/text/src/android/text/cts/
DAnnotationTest.java36 private static final String KEY2 = "family name"; field in AnnotationTest
54 mAnnotation = new Annotation(KEY2, VALUE2); in testGetValue()
63 mAnnotation = new Annotation(KEY2, VALUE2); in testGetKey()
64 assertEquals(KEY2, mAnnotation.getKey()); in testGetKey()
/cts/common/device-side/bedstead/queryable/src/test/java/com/android/queryable/queries/
DPersistableBundleKeyQueryHelperTest.java42 private static final String KEY2 = "Key2"; field in PersistableBundleKeyQueryHelperTest
83 mPersistableBundle2.putString(KEY2, STRING_VALUE); in matches_persistableBundleValueRestriction_meetsRestriction_returnsTrue()
87 persistableBundleKeyQueryHelper.persistableBundleValue().key(KEY2).exists(); in matches_persistableBundleValueRestriction_meetsRestriction_returnsTrue()
95 mPersistableBundle2.remove(KEY2); in matches_persistableBundleValueRestriction_doesNotMeetRestriction_returnsFalse()
99 persistableBundleKeyQueryHelper.persistableBundleValue().key(KEY2).exists(); in matches_persistableBundleValueRestriction_doesNotMeetRestriction_returnsFalse()
DBundleQueryHelperTest.java43 private static final String KEY2 = "Key2"; field in BundleQueryHelperTest
82 mBundle.remove(KEY2); in matches_restrictionOnMultipleKeys_oneRestrictionIsNotMet_returnsFalse()
87 bundleQueryHelper.key(KEY2).exists(); in matches_restrictionOnMultipleKeys_oneRestrictionIsNotMet_returnsFalse()
DPersistableBundleQueryHelperTest.java42 private static final String KEY2 = "Key2"; field in PersistableBundleQueryHelperTest
81 mPersistableBundle.remove(KEY2); in matches_restrictionOnMultipleKeys_oneRestrictionIsNotMet_returnsFalse()
86 persistableBundleQueryHelper.key(KEY2).exists(); in matches_restrictionOnMultipleKeys_oneRestrictionIsNotMet_returnsFalse()
DBundleKeyQueryHelperTest.java46 private static final String KEY2 = "Key2"; field in BundleKeyQueryHelperTest
101 mBundle2.putString(KEY2, STRING_VALUE); in matches_bundleValueRestriction_meetsRestriction_returnsTrue()
105 bundleKeyQueryHelper.bundleValue().key(KEY2).exists(); in matches_bundleValueRestriction_meetsRestriction_returnsTrue()
113 mBundle2.remove(KEY2); in matches_bundleValueRestriction_doesNotMeetRestriction_returnsFalse()
117 bundleKeyQueryHelper.bundleValue().key(KEY2).exists(); in matches_bundleValueRestriction_doesNotMeetRestriction_returnsFalse()
/cts/tests/tests/deviceconfig/src/android/deviceconfig/cts/
DDeviceConfigApiTests.java62 private static final String KEY2 = "key2"; field in DeviceConfigApiTests
167 nullifyProperty(NAMESPACE1, KEY2); in cleanUp()
168 nullifyProperty(NAMESPACE2, KEY2); in cleanUp()
186 deletePropertyThrowShell(NAMESPACE1, KEY2); in cleanUpAfterAllTests()
187 deletePropertyThrowShell(NAMESPACE2, KEY2); in cleanUpAfterAllTests()
350 .setString(KEY1, VALUE1).setInt(KEY2, VALID_INT).build(); in testSetAndGetProperties_sameNamespace()
352 assertEquals(DEFAULT_INT, DeviceConfig.getInt(NAMESPACE1, KEY2, DEFAULT_INT)); in testSetAndGetProperties_sameNamespace()
356 assertEquals(VALID_INT, DeviceConfig.getInt(NAMESPACE1, KEY2, DEFAULT_INT)); in testSetAndGetProperties_sameNamespace()
377 .setString(KEY1, VALUE1).setInt(KEY2, VALID_INT).build(); in testSetAndGetProperties_differentNamespace()
381 assertEquals(DEFAULT_INT, DeviceConfig.getInt(NAMESPACE2, KEY2, DEFAULT_INT)); in testSetAndGetProperties_differentNamespace()
[all …]
DDeviceConfigApiPermissionTests.java48 private static final String KEY2 = "key2"; field in DeviceConfigApiPermissionTests
179 VALUE, properties.getString(KEY2, "default_value")); in testDeviceConfigWithAllPermissions()
209 new Properties.Builder(PUBLIC_NAMESPACE).setString(KEY2, VALUE).build(); in testDeviceConfigPublicNamespacesWithoutReadPermission()
292 new Properties.Builder(NAMESPACE2).setString(KEY2, VALUE).build(); in trySetPropertiesWithoutWritePermission()
324 new Properties.Builder(NAMESPACE2).setString(KEY2, VALUE).build(); in trySetPropertiesWithWritePermission()
/cts/tests/tests/os/src/android/os/cts/
DBundleTest.java75 private static final String KEY2 = "key2"; field in BundleTest
305 assertNull(mBundle.getCharSequence(KEY2)); in testGetCharSequence()
307 mBundle.putCharSequence(KEY2, mSpannable); in testGetCharSequence()
309 assertSpannableEquals(mSpannable, mBundle.getCharSequence(KEY2)); in testGetCharSequence()
312 assertSpannableEquals(mSpannable, mBundle.getCharSequence(KEY2)); in testGetCharSequence()
1392 mBundle.putParcelable(KEY2, bomb); in testItemDeserializationIndependence()
1394 assertEquals(bomb, mBundle.getParcelable(KEY2)); in testItemDeserializationIndependence()
1402 assertThrows(RuntimeException.class, () -> mBundle.getParcelable(KEY2)); in testItemDeserializationIndependence()
1410 mBundle.putString(KEY2, "value"); in testLazyValueReserialization()
1412 assertEquals("value", mBundle.getString(KEY2)); in testLazyValueReserialization()
[all …]
/cts/tests/tests/content/src/android/content/cts/
DContentResolverTest.java110 private static final String KEY2 = "key2"; field in ContentResolverTest
139 values.put(COLUMN_KEY_NAME, KEY2); in setUp()
365 assertEquals(KEY2, mCursor.getString(mCursor.getColumnIndexOrThrow(COLUMN_KEY_NAME))); in testQuery()
579 assertEquals(KEY2, mCursor.getString(mCursor.getColumnIndexOrThrow(COLUMN_KEY_NAME))); in testCrashingQuery()
984 values.put(COLUMN_KEY_NAME, KEY2); in testDelete()