Home
last modified time | relevance | path

Searched refs:Contains (Results 1 – 25 of 44) sorted by relevance

12

/system/keymaster/android_keymaster/
Doperation.cpp100 !key.authorizations().Contains(TAG_PADDING, *padding) && in GetAndValidatePadding()
101 !key.authorizations().Contains(TAG_PADDING_OLD, *padding)) { in GetAndValidatePadding()
125 if (key.authorizations().Contains(TAG_DIGEST, KM_DIGEST_NONE)) { in GetAndValidateDigest()
139 !key.authorizations().Contains(TAG_DIGEST, *digest) && in GetAndValidateDigest()
140 !key.authorizations().Contains(TAG_DIGEST_OLD, *digest)) { in GetAndValidateDigest()
/system/keymaster/km_openssl/
Daes_key.cpp50 if (hw_enforced.Contains(TAG_BLOCK_MODE, KM_MODE_GCM) || in LoadKey()
51 sw_enforced.Contains(TAG_BLOCK_MODE, KM_MODE_GCM)) { in LoadKey()
70 if (key_description.Contains(TAG_BLOCK_MODE, KM_MODE_GCM)) { in validate_algorithm_specific_new_key_params()
Dec_key_factory.cpp95 } else if (!authorizations.Contains(TAG_KEY_SIZE, key_size)) { in GenerateKey()
97 } else if (!authorizations.Contains(TAG_EC_CURVE, ec_curve)) { in GenerateKey()
135 if (key_description.Contains(TAG_ATTESTATION_CHALLENGE)) { in GenerateKey()
143 !key_description.Contains(TAG_PURPOSE, KM_PURPOSE_SIGN) /* fake_signature */, &error); in GenerateKey()
181 if (key_description.Contains(KM_TAG_ATTESTATION_CHALLENGE)) { in ImportKey()
189 !key_description.Contains(TAG_PURPOSE, KM_PURPOSE_SIGN) /* fake_signature */, &error); in ImportKey()
Dattestation_utils.cpp213 if (!auths.Contains(TAG_ALGORITHM, KM_ALGORITHM_RSA) && in check_attest_key_auths()
214 !auths.Contains(TAG_ALGORITHM, KM_ALGORITHM_EC)) { in check_attest_key_auths()
217 if (!auths.Contains(TAG_PURPOSE, KM_PURPOSE_ATTEST_KEY)) { in check_attest_key_auths()
296 cert_params.is_signing_key = proxy.Contains(TAG_PURPOSE, KM_PURPOSE_SIGN); in generate_attestation()
297 cert_params.is_encryption_key = proxy.Contains(TAG_PURPOSE, KM_PURPOSE_DECRYPT); in generate_attestation()
298 cert_params.is_agreement_key = proxy.Contains(TAG_PURPOSE, KM_PURPOSE_AGREE_KEY); in generate_attestation()
Drsa_key_factory.cpp105 if (key_description.Contains(TAG_ATTESTATION_CHALLENGE)) { in GenerateKey()
112 key_size < 1024 || !key_description.Contains(TAG_PURPOSE, KM_PURPOSE_SIGN); in GenerateKey()
153 if (key_description.Contains(KM_TAG_ATTESTATION_CHALLENGE)) { in ImportKey()
160 key_size < 1024 || !key_description.Contains(TAG_PURPOSE, KM_PURPOSE_SIGN); in ImportKey()
Dtriple_des_key.cpp58 if (key_description.Contains(TAG_MIN_MAC_LENGTH)) return KM_ERROR_INVALID_TAG; in validate_algorithm_specific_new_key_params()
Dcertificate_utils.cpp362 cert_params.is_signing_key = key.authorizations().Contains(TAG_PURPOSE, KM_PURPOSE_SIGN); in generate_self_signed_cert()
363 cert_params.is_encryption_key = key.authorizations().Contains(TAG_PURPOSE, KM_PURPOSE_DECRYPT); in generate_self_signed_cert()
364 cert_params.is_agreement_key = key.authorizations().Contains(TAG_PURPOSE, KM_PURPOSE_AGREE_KEY); in generate_self_signed_cert()
Drsa_operation.cpp131 if (!begin_params.Contains(TAG_PADDING, KM_PAD_RSA_OAEP)) { in GetAndValidateMgfDigest()
140 if (!key.authorizations().Contains(TAG_RSA_OAEP_MGF_DIGEST, KM_DIGEST_SHA1)) { in GetAndValidateMgfDigest()
150 } else if (!key.authorizations().Contains(TAG_RSA_OAEP_MGF_DIGEST, *digest)) { in GetAndValidateMgfDigest()
/system/update_engine/payload_consumer/
Dsnapshot_extent_writer_unittest.cc80 bool Contains(size_t block) { in Contains() function in chromeos_update_engine::FakeCowWriter
122 ASSERT_TRUE(cow_writer_.Contains(123)) in TEST_F()
141 ASSERT_TRUE(cow_writer_.Contains(123)); in TEST_F()
142 ASSERT_TRUE(cow_writer_.Contains(125)); in TEST_F()
170 ASSERT_TRUE(cow_writer_.Contains(123)); in TEST_F()
171 ASSERT_TRUE(cow_writer_.Contains(125)); in TEST_F()
/system/linkerconfig/modules/tests/
Dapex_test.cc42 using ::testing::Contains;
108 Contains("bar.so")); in TEST()
160 ASSERT_THAT((*apexes)["foo"].require_libs, Contains("bar.so")); in TEST_F()
164 ASSERT_THAT((*apexes)["bar"].provide_libs, Contains("bar.so")); in TEST_F()
168 ASSERT_THAT((*apexes)["baz"].jni_libs, Contains("baz.so")); in TEST_F()
/system/apex/apexd/
Dapex_database_test.cpp104 bool Contains(const MountedApexDatabase& db, const std::string& package, in Contains() function
148 ASSERT_TRUE(Contains(db, kPackage, kLoopName, kPath, kMountPoint, kDeviceName, in TEST()
154 EXPECT_FALSE(Contains(db, kPackage, kLoopName, kPath, kMountPoint, in TEST()
179 ASSERT_TRUE(Contains(db, kPackage[i], kLoopName[i], kPath[i], in TEST()
186 EXPECT_FALSE(Contains(db, kPackage[0], kLoopName[0], kPath[0], kMountPoint[0], in TEST()
190 EXPECT_TRUE(Contains(db, kPackage[1], kLoopName[1], kPath[1], kMountPoint[1], in TEST()
194 EXPECT_TRUE(Contains(db, kPackage[2], kLoopName[2], kPath[2], kMountPoint[2], in TEST()
198 EXPECT_TRUE(Contains(db, kPackage[3], kLoopName[3], kPath[3], kMountPoint[3], in TEST()
/system/bt/stack/test/
Dble_advertiser_test.cc28 using ::testing::Contains;
264 AllOf(SizeIs(1), Contains(Field(&SetEnableData::handle, in TEST_F()
282 AllOf(SizeIs(1), Contains(Field(&SetEnableData::handle, in TEST_F()
403 AllOf(SizeIs(1), Contains(Field(&SetEnableData::handle, in TEST_F()
415 AllOf(SizeIs(1), Contains(Field(&SetEnableData::handle, in TEST_F()
492 AllOf(SizeIs(1), Contains(Field(&SetEnableData::handle, in TEST_F()
712 Contains(Field(&SetEnableData::max_extended_advertising_events, in TEST_F()
757 Contains(Field(&SetEnableData::max_extended_advertising_events, in TEST_F()
774 AllOf(SizeIs(1), Contains(Field(&SetEnableData::handle, in TEST_F()
862 AllOf(SizeIs(1), Contains(Field(&SetEnableData::handle, in TEST_F()
[all …]
/system/nvram/hal/tests/
Dnvram_hal_test.cc47 bool Contains(T value, const std::vector<T>& target) { in Contains() function
56 [target](T value) { return Contains(value, target); }); in ContainsAll()
67 CHECK(!Contains(NV_CONTROL_PERSISTENT_WRITE_LOCK, control_list)) in CreateSpace()
69 CHECK(!Contains(NV_CONTROL_BOOT_WRITE_LOCK, control_list) || in CreateSpace()
70 !Contains(NV_CONTROL_WRITE_AUTHORIZATION, control_list) || in CreateSpace()
184 while (Contains(*index, space_index_list)) { in GetNextBurnSpace()
251 EXPECT_TRUE(Contains(kTestIndex1, space_index_list2)); in TEST()
259 EXPECT_FALSE(Contains(kTestIndex1, space_index_list3)); in TEST()
/system/tools/hidl/lint/test/
Dmain.cpp28 using ::testing::Contains;
93 EXPECT_THAT(errors, Contains(Property(&Lint::getMessage, ContainsRegex(errorMsg)))); \
/system/keymaster/include/keymaster/
Dauthorization_set.h229 bool Contains(keymaster_tag_t tag) const { return find(tag) != -1; } in Contains() function
240 bool Contains(TypedEnumTag<KM_ENUM_REP, Tag, T> tag, T val) const { in Contains() function
248 bool Contains(TypedEnumTag<KM_ENUM, Tag, T> tag, T val) const { in Contains() function
255 template <keymaster_tag_t Tag> bool Contains(TypedTag<KM_UINT, Tag> tag, uint32_t val) const { in Contains() function
700 template <typename... ARGS> bool Contains(ARGS&&... args) const { in Contains() function
701 return hw_enforced_.Contains(forward<ARGS>(args)...) || in Contains()
702 sw_enforced_.Contains(forward<ARGS>(args)...); in Contains()
/system/extras/simpleperf/
Dthread_tree.h60 uint64_t Contains(uint64_t addr) const { return addr >= start_addr && addr < get_end_addr(); } in Contains() function
63 if (Contains(addr)) { in GetVaddrInFile()
/system/apex/libs/libapexutil/
Dapexutil_test.cpp35 using ::testing::Contains;
/system/timezone/
DREADME.android12 - Contains tools useful for debugging time zone issues on Android devices.
19 - Contains files that provide inputs to the time zone rules update process.
24 - Contains tools that generate Android time zone files.
27 - Contains some derived files from the time zone rules update process and
32 - Contains tools and scripts related to testing time zone update code. See
/system/keymaster/contexts/
Dpure_soft_keymaster_context.cpp261 if (hw_enforced.Contains(KM_TAG_ROLLBACK_RESISTANCE) || in ParseKeyBlob()
262 hw_enforced.Contains(KM_TAG_USAGE_COUNT_LIMIT)) { in ParseKeyBlob()
431 if (!key->hw_enforced().Contains(TAG_PURPOSE, KM_PURPOSE_WRAP) && in UnwrapKey()
432 !key->sw_enforced().Contains(TAG_PURPOSE, KM_PURPOSE_WRAP)) { in UnwrapKey()
Dkeymaster1_passthrough_context.cpp108 if (key->hw_enforced().Contains(TAG_PURPOSE) && in UpgradeKeyBlob()
109 !key->hw_enforced().Contains(TAG_OS_PATCHLEVEL)) { in UpgradeKeyBlob()
Dsoft_keymaster_context.cpp215 if (km1_dev_ && key->hw_enforced().Contains(TAG_PURPOSE) && in UpgradeKeyBlob()
216 !key->hw_enforced().Contains(TAG_OS_PATCHLEVEL)) in UpgradeKeyBlob()
/system/keymaster/ng/include/
Dauthorization_set.h155 bool Contains(Tag tag) const { return find(tag) != -1; } in Contains() function
158 bool Contains(TypedTag<tag_type, tag> ttag, const ValueT& value) const { in Contains() function
/system/keymaster/legacy_support/
Dec_keymaster1_key.cpp80 } else if (!key_description.Contains(TAG_KEY_SIZE, key_size)) { in GenerateKey()
/system/bt/gd/packet/parser/
DREADME54 Inheritance vs Contains
/system/chre/
DREADME.md56 - ``chre_api/``: Contains the official definition of the CHRE API (current and
60 - ``doc/``: Contains documentation for the CHRE framework and associated topics

12