Home
last modified time | relevance | path

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

12

/cts/common/device-side/bedstead/nene/src/test/java/com/android/bedstead/nene/settings/
DGlobalSettingsTest.kt46 TestApis.settings().global().putInt(KEY, INT_VALUE) in <lambda>()
47 assertThat(Settings.Global.getInt(context.contentResolver, KEY)) in <lambda>()
55 TestApis.settings().global().putInt(context.contentResolver, KEY, INT_VALUE) in <lambda>()
56 assertThat(Settings.Global.getInt(context.contentResolver, KEY)) in <lambda>()
66 context.contentResolver, KEY, INT_VALUE) in <lambda>()
73 TestApis.settings().global().putInt(TestApis.users().instrumented(), KEY, INT_VALUE) in <lambda>()
74 assertThat(Settings.Global.getInt(context.contentResolver, KEY)) in <lambda>()
83 TestApis.settings().global().putInt(deviceState.secondaryUser(), KEY, INT_VALUE) in <lambda>()
87 .contentResolver, KEY)).isEqualTo(INT_VALUE) in <lambda>()
97 TestApis.settings().global().putInt(deviceState.secondaryUser(), KEY, INT_VALUE) in <lambda>()
[all …]
DSystemSettingsTest.kt39 TestApis.settings().system().putInt(KEY, INT_VALUE) in <lambda>()
41 assertThat(Settings.System.getInt(sContext.contentResolver, KEY)) in <lambda>()
49 TestApis.settings().system().putInt(sContext.contentResolver, KEY, INT_VALUE) in <lambda>()
51 assertThat(Settings.System.getInt(sContext.contentResolver, KEY)) in <lambda>()
61 sContext.contentResolver, KEY, INT_VALUE) in <lambda>()
68 TestApis.settings().system().putInt(TestApis.users().instrumented(), KEY, INT_VALUE) in <lambda>()
70 assertThat(Settings.System.getInt(sContext.contentResolver, KEY)) in <lambda>()
79 TestApis.settings().system().putInt(deviceState.secondaryUser(), KEY, INT_VALUE) in <lambda>()
84 .contentResolver, KEY)).isEqualTo(INT_VALUE) in <lambda>()
94 TestApis.settings().system().putInt(deviceState.secondaryUser(), KEY, INT_VALUE) in <lambda>()
[all …]
DSecureSettingsTest.kt47 TestApis.settings().secure().putInt(KEY, INT_VALUE) in <lambda>()
49 Truth.assertThat(Settings.Secure.getInt(context.contentResolver, KEY)) in <lambda>()
57 TestApis.settings().secure().putInt(context.contentResolver, KEY, INT_VALUE) in <lambda>()
59 Truth.assertThat(Settings.Secure.getInt(context.contentResolver, KEY)) in <lambda>()
68 context.contentResolver, KEY, INT_VALUE) in <lambda>()
75 TestApis.settings().secure().putInt(TestApis.users().instrumented(), KEY, INT_VALUE) in <lambda>()
77 Truth.assertThat(Settings.Secure.getInt(context.contentResolver, KEY)) in <lambda>()
86 TestApis.settings().secure().putInt(deviceState.secondaryUser(), KEY, INT_VALUE) in <lambda>()
91 .contentResolver, KEY)).isEqualTo(INT_VALUE) in <lambda>()
101 TestApis.settings().secure().putInt(deviceState.secondaryUser(), KEY, INT_VALUE) in <lambda>()
[all …]
/cts/common/device-side/bedstead/queryable/src/test/java/com/android/queryable/queries/
DBundleKeyQueryHelperTest.java45 private static final String KEY = "Key"; field in BundleKeyQueryHelperTest
73 assertThat(bundleKeyQueryHelper.matches(mBundle, KEY)).isTrue(); in matches_noRestrictions_returnsTrue()
78 mBundle.putString(KEY, STRING_VALUE); in matches_stringValueRestriction_meetsRestriction_returnsTrue()
84 assertThat(bundleKeyQueryHelper.matches(mBundle, KEY)).isTrue(); in matches_stringValueRestriction_meetsRestriction_returnsTrue()
89 mBundle.putString(KEY, STRING_VALUE); in matches_stringValueRestriction_doesNotMeetRestriction_returnsFalse()
95 assertThat(bundleKeyQueryHelper.matches(mBundle, KEY)).isFalse(); in matches_stringValueRestriction_doesNotMeetRestriction_returnsFalse()
100 mBundle.putBundle(KEY, mBundle2); in matches_bundleValueRestriction_meetsRestriction_returnsTrue()
107 assertThat(bundleKeyQueryHelper.matches(mBundle, KEY)).isTrue(); in matches_bundleValueRestriction_meetsRestriction_returnsTrue()
112 mBundle.putBundle(KEY, mBundle2); in matches_bundleValueRestriction_doesNotMeetRestriction_returnsFalse()
119 assertThat(bundleKeyQueryHelper.matches(mBundle, KEY)).isFalse(); in matches_bundleValueRestriction_doesNotMeetRestriction_returnsFalse()
[all …]
DPersistableBundleKeyQueryHelperTest.java41 private static final String KEY = "Key"; field in PersistableBundleKeyQueryHelperTest
55 assertThat(persistableBundleKeyQueryHelper.matches(mPersistableBundle, KEY)).isTrue(); in matches_noRestrictions_returnsTrue()
60 mPersistableBundle.putString(KEY, STRING_VALUE); in matches_stringValueRestriction_meetsRestriction_returnsTrue()
66 assertThat(persistableBundleKeyQueryHelper.matches(mPersistableBundle, KEY)).isTrue(); in matches_stringValueRestriction_meetsRestriction_returnsTrue()
71 mPersistableBundle.putString(KEY, STRING_VALUE); in matches_stringValueRestriction_doesNotMeetRestriction_returnsFalse()
77 assertThat(persistableBundleKeyQueryHelper.matches(mPersistableBundle, KEY)).isFalse(); in matches_stringValueRestriction_doesNotMeetRestriction_returnsFalse()
82 mPersistableBundle.putPersistableBundle(KEY, mPersistableBundle2); in matches_persistableBundleValueRestriction_meetsRestriction_returnsTrue()
89 assertThat(persistableBundleKeyQueryHelper.matches(mPersistableBundle, KEY)).isTrue(); in matches_persistableBundleValueRestriction_meetsRestriction_returnsTrue()
94 mPersistableBundle.putPersistableBundle(KEY, mPersistableBundle2); in matches_persistableBundleValueRestriction_doesNotMeetRestriction_returnsFalse()
101 assertThat(persistableBundleKeyQueryHelper.matches(mPersistableBundle, KEY)).isFalse(); in matches_persistableBundleValueRestriction_doesNotMeetRestriction_returnsFalse()
[all …]
DBundleQueryHelperTest.java42 private static final String KEY = "Key"; field in BundleQueryHelperTest
59 mBundle.putString(KEY, STRING_VALUE); in matches_restrictionOnOneKey_restrictionIsMet_returnsTrue()
63 bundleQueryHelper.key(KEY).exists(); in matches_restrictionOnOneKey_restrictionIsMet_returnsTrue()
70 mBundle.putString(KEY, STRING_VALUE); in matches_restrictionOnOneKey_restrictionIsNotMet_returnsFalse()
74 bundleQueryHelper.key(KEY).doesNotExist(); in matches_restrictionOnOneKey_restrictionIsNotMet_returnsFalse()
81 mBundle.putString(KEY, STRING_VALUE); in matches_restrictionOnMultipleKeys_oneRestrictionIsNotMet_returnsFalse()
86 bundleQueryHelper.key(KEY).exists(); in matches_restrictionOnMultipleKeys_oneRestrictionIsNotMet_returnsFalse()
94 mBundle.remove(KEY); in matches_restrictionOnNonExistingKey_returnsFalse()
98 bundleQueryHelper.key(KEY).stringValue().isEqualTo(STRING_VALUE); in matches_restrictionOnNonExistingKey_returnsFalse()
108 bundleQueryHelper.key(KEY).stringValue().isEqualTo(STRING_VALUE); in parcel_parcelsCorrectly()
[all …]
DPersistableBundleQueryHelperTest.java41 private static final String KEY = "Key"; field in PersistableBundleQueryHelperTest
58 mPersistableBundle.putString(KEY, STRING_VALUE); in matches_restrictionOnOneKey_restrictionIsMet_returnsTrue()
62 persistableBundleQueryHelper.key(KEY).exists(); in matches_restrictionOnOneKey_restrictionIsMet_returnsTrue()
69 mPersistableBundle.putString(KEY, STRING_VALUE); in matches_restrictionOnOneKey_restrictionIsNotMet_returnsFalse()
73 persistableBundleQueryHelper.key(KEY).doesNotExist(); in matches_restrictionOnOneKey_restrictionIsNotMet_returnsFalse()
80 mPersistableBundle.putString(KEY, STRING_VALUE); in matches_restrictionOnMultipleKeys_oneRestrictionIsNotMet_returnsFalse()
85 persistableBundleQueryHelper.key(KEY).exists(); in matches_restrictionOnMultipleKeys_oneRestrictionIsNotMet_returnsFalse()
93 mPersistableBundle.remove(KEY); in matches_restrictionOnNonExistingKey_returnsFalse()
97 persistableBundleQueryHelper.key(KEY).stringValue().isEqualTo(STRING_VALUE); in matches_restrictionOnNonExistingKey_returnsFalse()
115 mPersistableBundle.putString(KEY, STRING_VALUE); in persistableBundleQueryHelper_queries()
[all …]
/cts/tests/tests/preference/src/android/preference/cts/
DPreferenceDataStoreTest.java72 private static final String KEY = "TestPrefKey"; field in PreferenceDataStoreTest
86 mPreference.setKey(KEY); in setup()
96 mManager.getSharedPreferences().edit().remove(KEY).commit(); in setup()
153 verify(mDataStore, atLeastOnce()).getString(eq(KEY), any()); in testDataStoresHierarchy()
173 verify(mDataStore, atLeast(0)).getString(eq(KEY), nullable(String.class)); in putStringTestCommon()
174 verify(mDataStore, atLeastOnce()).putString(eq(KEY), anyString()); in putStringTestCommon()
178 assertNull(mSharedPref.getString(KEY, null)); in putStringTestCommon()
186 verify(mDataStore, atLeastOnce()).getString(eq(KEY), eq(TEST_STR)); in testGetStringWithDataStoreOnPref()
194 verify(mDataStore, atLeastOnce()).getString(eq(KEY), eq(TEST_STR)); in testGetStringWithDataStoreOnMgr()
208 mSharedPref.edit().putString(KEY, TEST_WRONG_STR).commit(); in testDefaultStringValue()
[all …]
/cts/common/device-side/bedstead/nene/src/test/java/com/android/bedstead/nene/properties/
DPropertiesTest.kt17 TestApis.properties().set(KEY, VALUE).use { in set_valueIsSet()
19 assertThat(TestApis.properties().get(KEY)).isEqualTo(VALUE) in set_valueIsSet()
25 TestApis.properties().set(KEY, VALUE).use { in set_autoclose_resetsValue()
26 TestApis.properties().set(KEY, DIFFERENT_VALUE).use { in set_autoclose_resetsValue()
30 assertThat(TestApis.properties().get(KEY)).isEqualTo(VALUE) in set_autoclose_resetsValue()
40 val KEY = "dumpstate.testkey" constant
/cts/common/device-side/bedstead/queryable/src/test/java/com/android/queryable/util/
DSerializableParcelWrapperTest.java46 private static final String KEY = "Key"; field in SerializableParcelWrapperTest
53 mBundle.putString(KEY, STRING_VALUE); in serialize_deserialize_isEqual()
61 assertThat(unserializedWrapper.get().getString(KEY)) in serialize_deserialize_isEqual()
62 .isEqualTo(serializableParcelWrapper.get().getString(KEY)); in serialize_deserialize_isEqual()
98 bundle1.putString(KEY, STRING_VALUE); in equals_areNotEqual_returnsFalse()
118 mBundle.putString(KEY, STRING_VALUE); in parcel_parcelsCorrectly()
125 assertThat(unParceled.get().getString(KEY)) in parcel_parcelsCorrectly()
126 .isEqualTo(serializableParcelWrapper.get().getString(KEY)); in parcel_parcelsCorrectly()
/cts/tests/sample/src/android/sample/cts/
DSampleDeviceTest.java37 private static final String KEY = "foo"; field in SampleDeviceTest
59 mActivityRule.getActivity().savePreference(KEY, VALUE); in testSharedPreferences()
61 mActivityRule.getActivity().getPreference(KEY)); in testSharedPreferences()
66 mActivityRule.getActivity().getPreference(KEY)); in testSharedPreferences()
/cts/tests/tests/car/src/android/car/cts/
DSyncResultCallbackTest.java35 private static final String KEY = "testKey"; field in SyncResultCallbackTest
44 mBundle.putDouble(KEY, VALUE); in setup()
51 assertThat(mCallback.get().getDouble(KEY)).isEqualTo(VALUE); in testGet()
58 assertThat(mCallback.get(1000, TimeUnit.MILLISECONDS).getDouble(KEY)).isEqualTo(VALUE); in testGetWithTimeout()
/cts/tests/tests/deviceconfig/src/android/deviceconfig/cts/
DDeviceConfigApiPermissionTests.java47 private static final String KEY = "key"; field in DeviceConfigApiPermissionTests
201 DeviceConfig.setProperty(PUBLIC_NAMESPACE, KEY, VALUE, /*makeDefault=*/ false); in testDeviceConfigPublicNamespacesWithoutReadPermission()
223 DeviceConfig.setProperty(PUBLIC_NAMESPACE, KEY, VALUE, /*makeDefault=*/ false); in testDeviceConfigPublicNamespacesWithoutReadPermission()
231 new Properties.Builder(PUBLIC_NAMESPACE).setString(KEY, VALUE).build(); in testDeviceConfigPublicNamespacesWithoutReadPermission()
242 String property = DeviceConfig.getProperty(PUBLIC_NAMESPACE, KEY); in testDeviceConfigPublicNamespacesWithoutReadPermission()
253 + " value.", VALUE, properties.getString(KEY, "default_value")); in testDeviceConfigPublicNamespacesWithoutReadPermission()
282 DeviceConfig.setProperty(NAMESPACE, KEY, VALUE, /*makeDefault=*/ false); in trySetPropertyWithoutWritePermission()
305 DeviceConfig.deleteProperty(NAMESPACE, KEY); in tryDeletePropertyWithoutWritePermission()
314 DeviceConfig.setProperty(NAMESPACE, KEY, VALUE, /*makeDefault=*/ false); in trySetPropertyWithWritePermission()
338 property = DeviceConfig.getProperty(NAMESPACE, KEY); in tryGetPropertyWithReadPermission()
/cts/tests/tests/keystore/res/raw/
Dca_key.pem4 -----BEGIN EC PRIVATE KEY-----
8 -----END EC PRIVATE KEY-----
/cts/tests/credentials/src/android/credentials/cts/unittests/selection/
DAuthenticationEntryTest.java50 private static final String KEY = "key"; field in AuthenticationEntryTest
61 new AuthenticationEntry(KEY, SUBKEY, SLICE, STATUS, FRAMEWORK_EXTRAS_INTENT); in testConstructor()
63 assertThat(entry.getKey()).isEqualTo(KEY); in testConstructor()
74 final AuthenticationEntry entry1 = new AuthenticationEntry(KEY, SUBKEY, SLICE, STATUS, in testWriteToParcel()
/cts/tests/tests/networksecurityconfig/networksecurityconfig-downloadmanager/res/raw/
Dmake_certs.go106 -----BEGIN PRIVATE KEY-----
133 -----END PRIVATE KEY-----
137 -----BEGIN PRIVATE KEY-----
164 -----END PRIVATE KEY-----
168 -----BEGIN PRIVATE KEY-----
195 -----END PRIVATE KEY-----
Dvalid_ca.pem19 -----BEGIN PRIVATE KEY-----
46 -----END PRIVATE KEY-----
/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/content/data/
Dtest-key.pem1 -----BEGIN PRIVATE KEY-----
52 -----END PRIVATE KEY-----
/cts/hostsidetests/appsecurity/test-apps/ApkVerityTestApp/testdata/
Dfsverity-debug-key.pem1 -----BEGIN PRIVATE KEY-----
52 -----END PRIVATE KEY-----
/cts/tests/devicepolicy/src/android/devicepolicy/cts/
DTransferOwnershipTest.kt62 testApp.devicePolicyManager().transferOwnershipBundle.getBoolean(KEY)).isTrue() in <lambda>()
284 … .whereBundle().key(KEY).booleanValue().isEqualTo(bundle.getBoolean(KEY))).eventOccurred() in <lambda>()
316 private const val KEY = "VALUE" in <lambda>() constant
319 private val bundle = PersistableBundle().apply { putBoolean(KEY, true) } in <lambda>()
/cts/tests/framework/base/biometrics/src/android/server/biometrics/fingerprint/util/
DFingerprintCallbackHelper.java39 public static final String KEY = "key_auth_callback"; field in FingerprintCallbackHelper
120 bundle -> bundle.putBundle(KEY, mState.toBundle())); in updateJournal()
/cts/tests/tests/os/src/android/os/cts/
DMessageTest.java57 public static final String KEY = "android"; field in MessageTest
200 bundle.putInt(KEY, VALUE); in testCopyFrom()
208 assertEquals(VALUE, mMessage.getData().getInt(KEY)); in testCopyFrom()
231 bundle.putInt(KEY, VALUE); in testWriteToParcel()
241 assertEquals(VALUE, mMessage.getData().getInt(KEY)); in testWriteToParcel()
/cts/tests/framework/base/biometrics/src/android/server/biometrics/util/
DBiometricCallbackHelper.java32 public static final String KEY = "key_auth_callback"; field in BiometricCallbackHelper
139 bundle -> bundle.putBundle(KEY, mState.toBundle())); in updateJournal()

12