/cts/tests/tests/os/src/android/os/cts/ |
D | BundleTest.java | 50 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 …]
|
D | MessageTest.java | 31 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/common/device-side/bedstead/queryable/src/test/java/com/android/queryable/queries/ |
D | BundleKeyQueryHelperTest.java | 36 private static final String KEY = "Key"; field in BundleKeyQueryHelperTest 64 assertThat(bundleKeyQueryHelper.matches(mBundle, KEY)).isTrue(); in matches_noRestrictions_returnsTrue() 69 mBundle.putString(KEY, STRING_VALUE); in matches_stringValueRestriction_meetsRestriction_returnsTrue() 75 assertThat(bundleKeyQueryHelper.matches(mBundle, KEY)).isTrue(); in matches_stringValueRestriction_meetsRestriction_returnsTrue() 80 mBundle.putString(KEY, STRING_VALUE); in matches_stringValueRestriction_doesNotMeetRestriction_returnsFalse() 86 assertThat(bundleKeyQueryHelper.matches(mBundle, KEY)).isFalse(); in matches_stringValueRestriction_doesNotMeetRestriction_returnsFalse() 91 mBundle.putBundle(KEY, mBundle2); in matches_bundleValueRestriction_meetsRestriction_returnsTrue() 98 assertThat(bundleKeyQueryHelper.matches(mBundle, KEY)).isTrue(); in matches_bundleValueRestriction_meetsRestriction_returnsTrue() 103 mBundle.putBundle(KEY, mBundle2); in matches_bundleValueRestriction_doesNotMeetRestriction_returnsFalse() 110 assertThat(bundleKeyQueryHelper.matches(mBundle, KEY)).isFalse(); in matches_bundleValueRestriction_doesNotMeetRestriction_returnsFalse() [all …]
|
D | PersistableBundleKeyQueryHelperTest.java | 32 private static final String KEY = "Key"; field in PersistableBundleKeyQueryHelperTest 46 assertThat(persistableBundleKeyQueryHelper.matches(mPersistableBundle, KEY)).isTrue(); in matches_noRestrictions_returnsTrue() 51 mPersistableBundle.putString(KEY, STRING_VALUE); in matches_stringValueRestriction_meetsRestriction_returnsTrue() 57 assertThat(persistableBundleKeyQueryHelper.matches(mPersistableBundle, KEY)).isTrue(); in matches_stringValueRestriction_meetsRestriction_returnsTrue() 62 mPersistableBundle.putString(KEY, STRING_VALUE); in matches_stringValueRestriction_doesNotMeetRestriction_returnsFalse() 68 assertThat(persistableBundleKeyQueryHelper.matches(mPersistableBundle, KEY)).isFalse(); in matches_stringValueRestriction_doesNotMeetRestriction_returnsFalse() 73 mPersistableBundle.putPersistableBundle(KEY, mPersistableBundle2); in matches_persistableBundleValueRestriction_meetsRestriction_returnsTrue() 80 assertThat(persistableBundleKeyQueryHelper.matches(mPersistableBundle, KEY)).isTrue(); in matches_persistableBundleValueRestriction_meetsRestriction_returnsTrue() 85 mPersistableBundle.putPersistableBundle(KEY, mPersistableBundle2); in matches_persistableBundleValueRestriction_doesNotMeetRestriction_returnsFalse() 92 assertThat(persistableBundleKeyQueryHelper.matches(mPersistableBundle, KEY)).isFalse(); in matches_persistableBundleValueRestriction_doesNotMeetRestriction_returnsFalse() [all …]
|
D | BundleQueryHelperTest.java | 32 private static final String KEY = "Key"; field in BundleQueryHelperTest 49 mBundle.putString(KEY, STRING_VALUE); in matches_restrictionOnOneKey_restrictionIsMet_returnsTrue() 53 bundleQueryHelper.key(KEY).exists(); in matches_restrictionOnOneKey_restrictionIsMet_returnsTrue() 60 mBundle.putString(KEY, STRING_VALUE); in matches_restrictionOnOneKey_restrictionIsNotMet_returnsFalse() 64 bundleQueryHelper.key(KEY).doesNotExist(); in matches_restrictionOnOneKey_restrictionIsNotMet_returnsFalse() 71 mBundle.putString(KEY, STRING_VALUE); in matches_restrictionOnMultipleKeys_oneRestrictionIsNotMet_returnsFalse() 76 bundleQueryHelper.key(KEY).exists(); in matches_restrictionOnMultipleKeys_oneRestrictionIsNotMet_returnsFalse() 84 mBundle.remove(KEY); in matches_restrictionOnNonExistingKey_returnsFalse() 88 bundleQueryHelper.key(KEY).stringValue().isEqualTo(STRING_VALUE); in matches_restrictionOnNonExistingKey_returnsFalse()
|
D | PersistableBundleQueryHelperTest.java | 31 private static final String KEY = "Key"; field in PersistableBundleQueryHelperTest 48 mPersistableBundle.putString(KEY, STRING_VALUE); in matches_restrictionOnOneKey_restrictionIsMet_returnsTrue() 52 persistableBundleQueryHelper.key(KEY).exists(); in matches_restrictionOnOneKey_restrictionIsMet_returnsTrue() 59 mPersistableBundle.putString(KEY, STRING_VALUE); in matches_restrictionOnOneKey_restrictionIsNotMet_returnsFalse() 63 persistableBundleQueryHelper.key(KEY).doesNotExist(); in matches_restrictionOnOneKey_restrictionIsNotMet_returnsFalse() 70 mPersistableBundle.putString(KEY, STRING_VALUE); in matches_restrictionOnMultipleKeys_oneRestrictionIsNotMet_returnsFalse() 75 persistableBundleQueryHelper.key(KEY).exists(); in matches_restrictionOnMultipleKeys_oneRestrictionIsNotMet_returnsFalse() 83 mPersistableBundle.remove(KEY); in matches_restrictionOnNonExistingKey_returnsFalse() 87 persistableBundleQueryHelper.key(KEY).stringValue().isEqualTo(STRING_VALUE); in matches_restrictionOnNonExistingKey_returnsFalse()
|
/cts/common/device-side/bedstead/nene/src/test/java/com/android/bedstead/nene/settings/ |
D | GlobalSettingsTest.java | 52 private static final String KEY = "key"; field in GlobalSettingsTest 64 TestApis.settings().global().putInt(KEY, INT_VALUE); in putInt_putsIntIntoGlobalSettingsOnInstrumentedUser() 66 assertThat(android.provider.Settings.Global.getInt(sContext.getContentResolver(), KEY)) in putInt_putsIntIntoGlobalSettingsOnInstrumentedUser() 73 TestApis.settings().global().putInt(sContext.getContentResolver(), KEY, INT_VALUE); in putIntWithContentResolver_putsIntIntoGlobalSettings() local 75 assertThat(android.provider.Settings.Global.getInt(sContext.getContentResolver(), KEY)) in putIntWithContentResolver_putsIntIntoGlobalSettings() 84 sContext.getContentResolver(), KEY, INT_VALUE)); in putIntWithContentResolver_preS_throwsException() 89 TestApis.settings().global().putInt(TestApis.users().instrumented(), KEY, INT_VALUE); in putIntWithUser_instrumentedUser_putsIntIntoGlobalSettings() local 91 assertThat(android.provider.Settings.Global.getInt(sContext.getContentResolver(), KEY)) in putIntWithUser_instrumentedUser_putsIntIntoGlobalSettings() 99 TestApis.settings().global().putInt(sDeviceState.secondaryUser(), KEY, INT_VALUE); in putIntWithUser_differentUser_putsIntIntoGlobalSettings() local 105 .getContentResolver(), KEY)).isEqualTo(INT_VALUE); in putIntWithUser_differentUser_putsIntIntoGlobalSettings() [all …]
|
D | SecureSettingsTest.java | 52 private static final String KEY = "key"; field in SecureSettingsTest 63 TestApis.settings().secure().putInt(KEY, INT_VALUE); in putInt_putsIntIntoSecureSettingsOnInstrumentedUser() 65 assertThat(android.provider.Settings.Secure.getInt(sContext.getContentResolver(), KEY)) in putInt_putsIntIntoSecureSettingsOnInstrumentedUser() 72 TestApis.settings().secure().putInt(sContext.getContentResolver(), KEY, INT_VALUE); in putIntWithContentResolver_putsIntIntoSecureSettings() local 74 assertThat(android.provider.Settings.Secure.getInt(sContext.getContentResolver(), KEY)) in putIntWithContentResolver_putsIntIntoSecureSettings() 82 sContext.getContentResolver(), KEY, INT_VALUE)); in putIntWithContentResolver_preS_throwsException() 87 TestApis.settings().secure().putInt(TestApis.users().instrumented(), KEY, INT_VALUE); in putIntWithUser_instrumentedUser_putsIntIntoSecureSettings() local 89 assertThat(android.provider.Settings.Secure.getInt(sContext.getContentResolver(), KEY)) in putIntWithUser_instrumentedUser_putsIntIntoSecureSettings() 97 TestApis.settings().secure().putInt(sDeviceState.secondaryUser(), KEY, INT_VALUE); in putIntWithUser_differentUser_putsIntIntoSecureSettings() local 103 .getContentResolver(), KEY)).isEqualTo(INT_VALUE); in putIntWithUser_differentUser_putsIntIntoSecureSettings() [all …]
|
/cts/tests/tests/preference/src/android/preference/cts/ |
D | PreferenceDataStoreTest.java | 72 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/tests/sample/src/android/sample/cts/ |
D | SampleDeviceTest.java | 29 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()
|
D | SampleJUnit4DeviceTest.java | 37 private static final String KEY = "foo"; field in SampleJUnit4DeviceTest 55 mActivityRule.getActivity().savePreference(KEY, VALUE); in shouldSaveSharedPreferences() 57 mActivityRule.getActivity().getPreference(KEY)); in shouldSaveSharedPreferences() 62 mActivityRule.getActivity().getPreference(KEY)); in shouldSaveSharedPreferences()
|
/cts/common/device-side/bedstead/queryable/src/test/java/com/android/queryable/util/ |
D | SerializableParcelWrapperTest.java | 38 private static final String KEY = "Key"; field in SerializableParcelWrapperTest 45 mBundle.putString(KEY, STRING_VALUE); in serialize_deserialize_isEqual() 52 assertThat(unserializedWrapper.get().getString(KEY)) in serialize_deserialize_isEqual() 53 .isEqualTo(serializableParcelWrapper.get().getString(KEY)); in serialize_deserialize_isEqual() 89 bundle1.putString(KEY, STRING_VALUE); in equals_areNotEqual_returnsFalse()
|
/cts/tests/tests/deviceconfig/src/android/deviceconfig/cts/ |
D | DeviceConfigApiPermissionTests.java | 40 private static final String KEY = "key"; field in DeviceConfigApiPermissionTests 179 DeviceConfig.setProperty(PUBLIC_NAMESPACE, KEY, VALUE, /*makeDefault=*/ false); in testDeviceConfigPublicNamespacesWithoutReadPermission() 201 DeviceConfig.setProperty(PUBLIC_NAMESPACE, KEY, VALUE, /*makeDefault=*/ false); in testDeviceConfigPublicNamespacesWithoutReadPermission() 209 new Properties.Builder(PUBLIC_NAMESPACE).setString(KEY, VALUE).build(); in testDeviceConfigPublicNamespacesWithoutReadPermission() 220 String property = DeviceConfig.getProperty(PUBLIC_NAMESPACE, KEY); in testDeviceConfigPublicNamespacesWithoutReadPermission() 231 + " value.", VALUE, properties.getString(KEY, "default_value")); in testDeviceConfigPublicNamespacesWithoutReadPermission() 260 DeviceConfig.setProperty(NAMESPACE, KEY, VALUE, /*makeDefault=*/ false); in trySetPropertyWithoutWritePermission() 283 DeviceConfig.getProperty(NAMESPACE, KEY); in tryGetPropertyWithoutReadPermission() 311 DeviceConfig.setProperty(NAMESPACE, KEY, VALUE, /*makeDefault=*/ false); in trySetPropertyWithWritePermission() 335 property = DeviceConfig.getProperty(NAMESPACE, KEY); in tryGetPropertyWithReadPermission()
|
/cts/hostsidetests/appsecurity/certs/ |
D | cts-testkey1.pem | 1 -----BEGIN RSA PRIVATE KEY----- 27 -----END RSA PRIVATE KEY-----
|
D | cts-testkey2.pem | 1 -----BEGIN RSA PRIVATE KEY----- 27 -----END RSA PRIVATE KEY-----
|
/cts/tests/tests/networksecurityconfig/networksecurityconfig-downloadmanager/res/raw/ |
D | valid_ca.pem | 19 -----BEGIN PRIVATE KEY----- 46 -----END PRIVATE KEY-----
|
/cts/tests/tests/content/data/ |
D | test-key.pem | 1 -----BEGIN PRIVATE KEY----- 52 -----END PRIVATE KEY-----
|
/cts/hostsidetests/appsecurity/test-apps/ApkVerityTestApp/testdata/ |
D | fsverity-debug-key.pem | 1 -----BEGIN PRIVATE KEY----- 52 -----END PRIVATE KEY-----
|
/cts/tests/framework/base/biometrics/src/android/server/biometrics/fingerprint/ |
D | FingerprintCallbackHelper.java | 39 public static final String KEY = "key_auth_callback"; field in FingerprintCallbackHelper 120 bundle -> bundle.putBundle(KEY, mState.toBundle())); in updateJournal()
|
D | FingerprintServiceTest.java | 77 () -> journal.extras.containsKey(FingerprintCallbackHelper.KEY)); in getCallbackState() 79 final Bundle bundle = journal.extras.getBundle(FingerprintCallbackHelper.KEY); in getCallbackState()
|
/cts/tests/tests/media/assets/audio_only/ |
D | index.m3u8 | 6 #EXT-X-KEY:METHOD=SAMPLE-AES,URI="00.key",IV=0x76fb8e8c870c8f95234d6c40aac52902
|
/cts/tests/tests/media/assets/unmuxed_1500k/ |
D | index.m3u8 | 6 #EXT-X-KEY:METHOD=SAMPLE-AES,URI="00.key",IV=0x10428210ced85ee2ece4f45206ba81ce
|
/cts/tests/framework/base/biometrics/src/android/server/biometrics/ |
D | BiometricCallbackHelper.java | 32 public static final String KEY = "key_auth_callback"; field in BiometricCallbackHelper 139 bundle -> bundle.putBundle(KEY, mState.toBundle())); in updateJournal()
|
/cts/tests/tests/contactsprovider/src/android/provider/cts/contacts/ |
D | ContactsTest.java | 644 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/hostsidetests/securitybulletin/securityPatch/Bug-115739809/ |
D | poc.cpp | 50 case InputMessage::Type::KEY: { in sanitizeMessage() 254 InputMessage::Type::KEY, InputMessage::Type::MOTION, InputMessage::Type::FINISHED, in main()
|