Home
last modified time | relevance | path

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

/cts/tests/tests/os/src/android/os/cts/
DBundleTest.java50 public static final String KEY = "Bruce Lee"; field in BundleTest
70 b1.putBoolean(KEY, true); in testBundle()
74 assertTrue(b2.getBoolean(KEY)); in testBundle()
94 mBundle.putBoolean(KEY, true); in testClear()
114 assertFalse(mBundle.containsKey(KEY)); in testContainsKey()
115 mBundle.putBoolean(KEY, true); in testContainsKey()
116 assertTrue(mBundle.containsKey(KEY)); in testContainsKey()
118 assertTrue(mBundle.containsKey(KEY)); in testContainsKey()
124 assertNull(mBundle.get(KEY)); in testGet()
125 mBundle.putBoolean(KEY, true); in testGet()
[all …]
DMessageTest.java31 public static final String KEY = "android"; field in MessageTest
160 bundle.putInt(KEY, VALUE); in testCopyFrom()
168 assertEquals(VALUE, mMessage.getData().getInt(KEY)); in testCopyFrom()
188 bundle.putInt(KEY, VALUE); in testWriteToParcel()
198 assertEquals(VALUE, mMessage.getData().getInt(KEY)); in testWriteToParcel()
/cts/tests/tests/preference2/src/android/preference2/cts/
DPreferenceDataStoreTest.java71 private static final String KEY = "TestPrefKey"; field in PreferenceDataStoreTest
85 mPreference.setKey(KEY); in setup()
95 mManager.getSharedPreferences().edit().remove(KEY).commit(); in setup()
152 verify(mDataStore, atLeastOnce()).getString(eq(KEY), any()); in testDataStoresHierarchy()
172 verify(mDataStore, atLeast(0)).getString(eq(KEY), nullable(String.class)); in putStringTestCommon()
173 verify(mDataStore, atLeastOnce()).putString(eq(KEY), anyString()); in putStringTestCommon()
177 assertNull(mSharedPref.getString(KEY, null)); in putStringTestCommon()
185 verify(mDataStore, atLeastOnce()).getString(eq(KEY), eq(TEST_STR)); in testGetStringWithDataStoreOnPref()
193 verify(mDataStore, atLeastOnce()).getString(eq(KEY), eq(TEST_STR)); in testGetStringWithDataStoreOnMgr()
207 mSharedPref.edit().putString(KEY, TEST_WRONG_STR).commit(); in testDefaultStringValue()
[all …]
/cts/tests/sample/src/android/sample/cts/
DSampleDeviceTest.java29 private static final String KEY = "foo"; field in SampleDeviceTest
69 mActivity.savePreference(KEY, VALUE); in testSharedPreferences()
70 assertEquals("Preferences were not saved", VALUE, mActivity.getPreference(KEY)); in testSharedPreferences()
74 assertNull("Preferences were not cleared", mActivity.getPreference(KEY)); in testSharedPreferences()
DSampleJUnit4DeviceTest.java41 private static final String KEY = "foo"; field in SampleJUnit4DeviceTest
59 mActivityRule.getActivity().savePreference(KEY, VALUE); in shouldSaveSharedPreferences()
61 mActivityRule.getActivity().getPreference(KEY)); in shouldSaveSharedPreferences()
66 mActivityRule.getActivity().getPreference(KEY)); in shouldSaveSharedPreferences()
/cts/hostsidetests/appsecurity/certs/
Dcts-testkey1.pem1 -----BEGIN RSA PRIVATE KEY-----
27 -----END RSA PRIVATE KEY-----
Dcts-testkey2.pem1 -----BEGIN RSA PRIVATE KEY-----
27 -----END RSA PRIVATE KEY-----
/cts/tests/tests/networksecurityconfig/networksecurityconfig-downloadmanager/res/raw/
Dvalid_ca.pem19 -----BEGIN PRIVATE KEY-----
46 -----END PRIVATE KEY-----
/cts/tests/tests/provider/src/android/provider/cts/contacts/
DContactsTest.java644 Settings.KEY, Settings.VALUE};
659 value.put(Settings.KEY, insertKey);
674 Settings.KEY + " = ?",
687 value.put(Settings.KEY, updateKey);
693 Settings.KEY + " = ?",
703 Settings.KEY + " = ?",
715 value.put(Settings.KEY, insertKey);
721 Settings.KEY + " = ?",
731 Settings.KEY + " = ?",
/cts/tests/libcore/javautilcollections/libs/
Dguava-20.0.jarMETA-INF/MANIFEST.MF META-INF/ META-INF/maven/ META- ...