/system/chre/util/tests/ |
D | unique_ptr_test.cc | 27 struct Value { struct 28 Value(int value) : value(value) { in Value() argument 32 ~Value() { in ~Value() argument 36 Value &operator=(Value &&other) { in operator =() argument 45 int Value::constructionCounter = 0; argument 48 UniquePtr<Value> myInt = MakeUnique<Value>(0xcafe); in TEST() 72 UniquePtr<Value> myInt = MakeUnique<Value>(0xcafe); in TEST() 74 Value *value = myInt.get(); in TEST() 76 UniquePtr<Value> moved(std::move(myInt)); in TEST() 82 Value::constructionCounter = 0; in TEST() [all …]
|
/system/keymint/hal/src/hal/ |
D | tests.rs | 1 use crate::cbor::value::Value; 46 (Value::Map(vec![]), "expected arr"), in test_cbor_parse_fail() 47 (Value::Integer(0.into()), "expected arr"), in test_cbor_parse_fail() 48 (Value::Array(vec![]), "expected arr len 3"), in test_cbor_parse_fail() 50 Value::Array(vec![ in test_cbor_parse_fail() 51 Value::Integer(0.into()), in test_cbor_parse_fail() 52 Value::Integer(0.into()), in test_cbor_parse_fail() 53 Value::Integer(0.into()), in test_cbor_parse_fail() 54 Value::Integer(0.into()), in test_cbor_parse_fail() 59 Value::Array(vec![ in test_cbor_parse_fail() [all …]
|
/system/keymint/wire/src/ |
D | lib.rs | 263 pub fn cbor_type_error<T>(value: &cbor::value::Value, want: &'static str) -> Result<T, CborError> { in cbor_type_error() argument 264 use cbor::value::Value; in cbor_type_error() 266 Value::Integer(_) => "int", in cbor_type_error() 267 Value::Bytes(_) => "bstr", in cbor_type_error() 268 Value::Text(_) => "tstr", in cbor_type_error() 269 Value::Array(_) => "array", in cbor_type_error() 270 Value::Map(_) => "map", in cbor_type_error() 271 Value::Tag(_, _) => "tag", in cbor_type_error() 272 Value::Float(_) => "float", in cbor_type_error() 273 Value::Bool(_) => "bool", in cbor_type_error() [all …]
|
D | tests.rs | 2 use crate::cbor::value::Value; 8 ("01", Value::Integer(1.into())), in test_read_to_value_ok() 9 ("40", Value::Bytes(vec![])), in test_read_to_value_ok() 10 ("60", Value::Text(String::new())), in test_read_to_value_ok()
|
D | types.rs | 441 fn from_cbor_value(value: $crate::cbor::value::Value) -> 446 $crate::cbor::value::Value::Integer(i) => i.try_into().map_err(|_| { 456 fn to_cbor_value(self) -> Result<$crate::cbor::value::Value, crate::CborError> { 457 Ok($crate::cbor::value::Value::Integer((self as i64).into())) 488 fn from_cbor_value(value: cbor::value::Value) -> Result<Self, CborError> { 490 cbor::value::Value::Array(a) => a, 502 fn to_cbor_value(self) -> Result<cbor::value::Value, CborError> { 503 Ok(cbor::value::Value::Array(match self { 526 fn from_cbor_value(value: cbor::value::Value) -> Result<Self, CborError> { 528 cbor::value::Value::Array(a) => a, [all …]
|
/system/core/init/fuzzer/ |
D | README.md | 14 | Parameter| Valid Values| Configured Value| 16 |`kValidPaths`| 0.`/system/etc/init/hw/init.rc`,<br/> 1.`/system/etc/init` |Value obtained from Fuz… 17 …`,<br/> 4.`{"","14", "10", "unlimited"}`,<br/> 5.`{"","15", "10", "-1"}` |Value obtained from Fuzz… 35 | Parameter| Valid Values |Configured Value| 37 …/> 3.`UINT`,<br/> 4.`DOUBLE`,<br/> 5.`SIZE`,<br/>6.`ENUM`,<br/>7.`RANDOM`|Value obtained from Fuzz… 71 | Parameter| Valid Values| Configured Value| 73 | `major` | `UINT32_MIN` to `UINT32_MAX` | Value obtained from FuzzedDataProvider| 74 | `minor` | `UINT32_MIN` to `UINT32_MAX` | Value obtained from FuzzedDataProvider| 75 | `partition_num ` | `UINT32_MIN` to `UINT32_MAX` | Value obtained from FuzzedDataProvider| 76 | `uid` | `UINT32_MIN` to `UINT32_MAX` | Value obtained from FuzzedDataProvider| [all …]
|
/system/keymint/common/src/ |
D | crypto.rs | 197 fn from_cbor_value(value: cbor::value::Value) -> Result<Self, CborError> { in from_cbor_value() 199 cbor::value::Value::Array(a) if a.len() == 3 => a, in from_cbor_value() 204 cbor::value::Value::Bool(b) => b, in from_cbor_value() 208 cbor::value::Value::Integer(i) => i.try_into()?, in from_cbor_value() 257 cbor::value::Value::Array(a) if a.len() == 3 => a, in from_cbor_value() 298 fn to_cbor_value(self) -> Result<cbor::value::Value, CborError> { in to_cbor_value() argument 300 Ok(cbor::value::Value::Array(match self { in to_cbor_value() 302 cbor::value::Value::Integer((Algorithm::Aes as i32).into()), in to_cbor_value() 303 cbor::value::Value::Bool(true), in to_cbor_value() 304 cbor::value::Value::Bytes(try_to_vec(&k)?), in to_cbor_value() [all …]
|
/system/tools/hidl/hidl2aidl/test/ |
D | ndk_test_compile.cpp | 53 static_assert(static_cast<int>(aidl::hidl2aidl::test::Value::A) == 3); 54 static_assert(static_cast<int>(aidl::hidl2aidl::test::Value::B) == 7); 55 static_assert(static_cast<int>(aidl::hidl2aidl::test::Value::C) == 8); 56 static_assert(static_cast<int>(aidl::hidl2aidl::test::Value::D) == 9); 57 static_assert(static_cast<int>(aidl::hidl2aidl::test::Value::E) == 27); 58 static_assert(static_cast<int>(aidl::hidl2aidl::test::Value::F) == 28);
|
D | cpp_test_compile.cpp | 71 static_assert(static_cast<int>(hidl2aidl::test::Value::A) == 3); 72 static_assert(static_cast<int>(hidl2aidl::test::Value::B) == 7); 73 static_assert(static_cast<int>(hidl2aidl::test::Value::C) == 8); 74 static_assert(static_cast<int>(hidl2aidl::test::Value::D) == 9); 75 static_assert(static_cast<int>(hidl2aidl::test::Value::E) == 27); 76 static_assert(static_cast<int>(hidl2aidl::test::Value::F) == 28);
|
D | translate_cpp_test.cpp | 185 source.h(hidl2aidl::test::V1_1::Value::B); in TEST_F() 187 EXPECT_EQ(static_cast<hidl2aidl::test::Value>(source.h()), in TEST_F() 212 source.k({hidl2aidl::test::V1_1::Value::A, hidl2aidl::test::V1_1::Value::B}); in TEST_F() 215 EXPECT_EQ(source.k()[0], static_cast<hidl2aidl::test::V1_1::Value>( in TEST_F() 217 EXPECT_EQ(source.k()[1], static_cast<hidl2aidl::test::V1_1::Value>( in TEST_F() 264 source.c[0] = hidl2aidl::test::V1_1::Value::A; in TEST_F() 265 source.c[1] = hidl2aidl::test::V1_1::Value::B; in TEST_F() 267 EXPECT_EQ(static_cast<hidl2aidl::test::Value>(source.c[0]), dest.c[0]); in TEST_F() 268 EXPECT_EQ(static_cast<hidl2aidl::test::Value>(source.c[1]), dest.c[1]); in TEST_F() 308 source.c = {hidl2aidl::test::V1_1::Value::A, hidl2aidl::test::V1_1::Value::B}; in TEST_F() [all …]
|
D | translate_ndk_test.cpp | 185 source.h(hidl2aidl::test::V1_1::Value::B); in TEST_F() 187 EXPECT_EQ(static_cast<aidl::hidl2aidl::test::Value>(source.h()), in TEST_F() 212 source.k({hidl2aidl::test::V1_1::Value::A, hidl2aidl::test::V1_1::Value::B}); in TEST_F() 215 EXPECT_EQ(source.k()[0], static_cast<hidl2aidl::test::V1_1::Value>( in TEST_F() 217 EXPECT_EQ(source.k()[1], static_cast<hidl2aidl::test::V1_1::Value>( in TEST_F() 264 source.c[0] = hidl2aidl::test::V1_1::Value::A; in TEST_F() 265 source.c[1] = hidl2aidl::test::V1_1::Value::B; in TEST_F() 267 EXPECT_EQ(static_cast<aidl::hidl2aidl::test::Value>(source.c[0]), dest.c[0]); in TEST_F() 268 EXPECT_EQ(static_cast<aidl::hidl2aidl::test::Value>(source.c[1]), dest.c[1]); in TEST_F() 308 source.c = {hidl2aidl::test::V1_1::Value::A, hidl2aidl::test::V1_1::Value::B}; in TEST_F() [all …]
|
/system/core/toolbox/ |
D | getprop.cpp | 33 Value, enumerator 55 if (result_type != ResultType::Value) { in PrintAllProperties() 75 case ResultType::Value: in PrintProperty() 94 auto result_type = ResultType::Value; in getprop_main() 119 if (result_type != ResultType::Value) { in getprop_main() 126 if (result_type != ResultType::Value) { in getprop_main() 140 if (result_type != ResultType::Value) { in getprop_main()
|
/system/update_engine/common/ |
D | dynamic_partition_control_interface.h | 47 enum class Value { NONE = 0, RETROFIT, LAUNCH }; enum 48 constexpr explicit FeatureFlag(Value value) : value_(value) {} in FeatureFlag() 49 constexpr bool IsEnabled() const { return value_ != Value::NONE; } in IsEnabled() 50 constexpr bool IsRetrofit() const { return value_ == Value::RETROFIT; } in IsRetrofit() 51 constexpr bool IsLaunch() const { return value_ == Value::LAUNCH; } in IsLaunch() 54 Value value_;
|
D | dynamic_partition_control_stub.cc | 30 return FeatureFlag(FeatureFlag::Value::NONE); in GetDynamicPartitionsFeatureFlag() 34 return FeatureFlag(FeatureFlag::Value::NONE); in GetVirtualAbFeatureFlag() 38 return FeatureFlag(FeatureFlag::Value::NONE); in GetVirtualAbCompressionFeatureFlag() 43 return FeatureFlag(FeatureFlag::Value::NONE); in GetVirtualAbCompressionXorFeatureFlag() 48 return FeatureFlag(FeatureFlag::Value::NONE); in GetVirtualAbUserspaceSnapshotsFeatureFlag()
|
/system/tools/hidl/hidl2aidl/test/1.2/ |
D | types.hal | 21 import @1.1::Value; 57 @1.1::Value h; 60 vec<@1.1::Value> k; 68 @1.1::Value[12] c; 71 int8_t[@1.1::Value:E + 1] f; 77 vec<@1.1::Value> c;
|
/system/core/fastboot/fuzzer/ |
D | README.md | 18 | Parameter| Valid Values| Configured Value| 20 | `year` | `2000` to `2127` | Value obtained from FuzzedDataProvider| 21 | `month` | `1` to `12` | Value obtained from FuzzedDataProvider| 22 | `day` | `1` to `31` | Value obtained from FuzzedDataProvider| 23 | `version` | `0` to `127` | Value obtained from FuzzedDataProvider| 24 | `fsOption` | 0. `casefold` 1. `projid` 2. `compress` | Value obtained from FuzzedDataProvider|
|
/system/tools/aidl/metadata/ |
D | parser.cpp | 29 Json::Value root; in main() 44 for (const Json::Value& entry : root) { in main() 50 for (const Json::Value& intf : entry["types"]) { in main() 55 for (const Json::Value& intf : entry["hashes"]) { in main() 61 for (const Json::Value& intf : entry["versions"]) { in main()
|
/system/keymaster/fuzzer/ |
D | README.md | 18 | Parameter| Valid Values| Configured Value| 20 …ARE` 1.`SecurityLevel::TRUSTED_ENVIRONMENT` 2.`SecurityLevel::STRONGBOX`| Value obtained from Fuzz… 21 …_1_5_ENCRYPT` 4.`PaddingMode::RSA_PKCS1_1_5_SIGN` 5.`PaddingMode::PKCS7`| Value obtained from Fuzz… 22 …_224` 5.`Digest::SHA_2_256` 6.`Digest::SHA_2_384` 7.`Digest::SHA_2_512`| Value obtained from Fuzz… 23 | `keyFormat` | 1. `KeyFormat::X509` 2.`KeyFormat::PKCS8` 3.`KeyFormat::RAW`| Value obtained from F… 24 …` 3.`KeyPurpose::SIGN` 4. `KeyPurpose::VERIFY` 5. `KeyPurpose::WRAP_KEY`| Value obtained from Fuzz…
|
/system/apex/proto/ |
D | apex_build_info.proto | 37 // Value of --min_sdk_version parameter passed at build time. 40 // Value of --target_sdk_version parameter passed at build time. 46 // Value of --override_apk_package_name passed at build itme. 49 // Value of --logging_parent passed at build time. 52 // Value of --payload_fs_type passed at build time.
|
/system/keymint/ta/src/ |
D | rkp.rs | 5 cbor::value::Value, iana, AsCborValue, CborSerializable, CoseKey, CoseMac0, CoseMac0Builder, 52 fn rpc_device_info_cbor(&self) -> Result<Value, Error> { in rpc_device_info_cbor() argument 73 let vbmeta_digest = cbor::value::Value::Bytes(try_to_vec(&boot_info.verified_boot_hash)?); in rpc_device_info_cbor() 212 let mut pub_cose_keys: Vec<Value> = Vec::new(); in generate_cert_req_v2() 250 Value::Integer(self.rpc_info.get_version().into()), in generate_cert_req_v2() 251 Value::Text(String::from(CERT_TYPE_KEYMINT)), in generate_cert_req_v2() 253 Value::Array(pub_cose_keys), in generate_cert_req_v2() 258 cbor!([Value::Bytes(challenge.to_vec()), Value::Bytes(csr_payload_data)])?; in generate_cert_req_v2() 278 Value::Integer(AUTH_REQ_SCHEMA_V1.into()), in generate_cert_req_v2() 302 pub fn serialize_cbor(cbor_value: &Value) -> Result<Vec<u8>, Error> { in serialize_cbor()
|
/system/security/diced/sample_inputs/src/ |
D | sample_inputs.rs | 19 use ciborium::{de, ser, value::Value}; 77 fn ed25519_public_key_to_cbor_value(public_key: &[u8]) -> Result<Value> { in ed25519_public_key_to_cbor_value() argument 85 Value::from(iana::EllipticCurve::Ed25519 as u64), in ed25519_public_key_to_cbor_value() 87 (Label::Int(iana::Ec2KeyParameter::X as i64), Value::Bytes(public_key.to_vec())), in ed25519_public_key_to_cbor_value() 123 let bcc_value = Value::Array(vec![ in make_sample_bcc_and_cdis()
|
/system/core/init/ |
D | keyword_map.h | 37 template <typename Value> 43 Value value; 49 Result<Value> Find(const std::vector<std::string>& args) const { in Find()
|
/system/tools/hidl/metadata/ |
D | parser.cpp | 29 Json::Value root; in main() 44 for (const Json::Value& entry : root) { in main() 49 for (const Json::Value& intf : entry["inheritedInterfaces"]) { in main()
|
/system/tools/hidl/hidl2aidl/test/1.1/ |
D | types.hal | 19 import @1.0::Value; 41 enum Value : @1.0::Value {
|
/system/tools/hidl/hidl2aidl/test/aidl_api/hidl2aidl_test_gen/current/hidl2aidl/test/ |
D | SafeUnionBar.aidl | 32 hidl2aidl.test.Value h; 35 hidl2aidl.test.Value[] k;
|