/system/chre/util/tests/ |
D | unique_ptr_test.cc | 11 struct Value { struct 12 Value(int value) : value(value) { in Value() function 16 ~Value() { in ~Value() argument 20 Value &operator=(Value &&other) { in operator =() argument 29 int Value::constructionCounter = 0; argument 32 UniquePtr<Value> myInt = MakeUnique<Value>(0xcafe); in TEST() 56 UniquePtr<Value> myInt = MakeUnique<Value>(0xcafe); in TEST() 58 Value *value = myInt.get(); in TEST() 60 UniquePtr<Value> moved(std::move(myInt)); in TEST() 66 Value::constructionCounter = 0; in TEST() [all …]
|
/system/bpf/libbpf_android/include/bpf/ |
D | BpfMap.h | 44 template <class Key, class Value> 47 BpfMap<Key, Value>() {}; 51 BpfMap<Key, Value>(const char* pathname, uint32_t flags) { 57 explicit BpfMap<Key, Value>(const char* pathname) : BpfMap<Key, Value>(pathname, 0) {} 59 BpfMap<Key, Value>(bpf_map_type map_type, uint32_t max_entries, uint32_t map_flags = 0) { 60 int map_fd = createMap(map_type, sizeof(Key), sizeof(Value), max_entries, map_flags); 80 base::Result<void> writeValue(const Key& key, const Value& value, uint64_t flags) { in writeValue() 87 base::Result<Value> readValue(const Key key) const { in readValue() 88 Value value; in readValue() 108 const std::function<base::Result<void>(const Key& key, const BpfMap<Key, Value>& map)>& [all …]
|
/system/bt/gd/l2cap/ |
D | signal_id_test.cc | 47 ASSERT_TRUE(i == signal_id.Value()); in TEST() 56 ASSERT_TRUE(i == signal_id.Value()); in TEST() 67 ASSERT_EQ(0xff, signal_id.Value()); in TEST() 77 ASSERT_EQ(1, signal_id.Value()); in TEST() 85 ASSERT_TRUE(i == signal_id.Value()); in TEST() 94 ASSERT_TRUE(i == signal_id.Value()); in TEST() 105 ASSERT_EQ(1, signal_id.Value()); in TEST() 115 ASSERT_EQ(0xff, signal_id.Value()); in TEST()
|
/system/tools/hidl/hidl2aidl/test/ |
D | ndk_test_compile.cpp | 56 static_assert(static_cast<int>(aidl::hidl2aidl::test::Value::A) == 3); 57 static_assert(static_cast<int>(aidl::hidl2aidl::test::Value::B) == 7); 58 static_assert(static_cast<int>(aidl::hidl2aidl::test::Value::C) == 8); 59 static_assert(static_cast<int>(aidl::hidl2aidl::test::Value::D) == 9); 60 static_assert(static_cast<int>(aidl::hidl2aidl::test::Value::E) == 27); 61 static_assert(static_cast<int>(aidl::hidl2aidl::test::Value::F) == 28);
|
D | cpp_test_compile.cpp | 74 static_assert(static_cast<int>(hidl2aidl::test::Value::A) == 3); 75 static_assert(static_cast<int>(hidl2aidl::test::Value::B) == 7); 76 static_assert(static_cast<int>(hidl2aidl::test::Value::C) == 8); 77 static_assert(static_cast<int>(hidl2aidl::test::Value::D) == 9); 78 static_assert(static_cast<int>(hidl2aidl::test::Value::E) == 27); 79 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() 223 source.c[0] = hidl2aidl::test::V1_1::Value::A; in TEST_F() 224 source.c[1] = hidl2aidl::test::V1_1::Value::B; in TEST_F() 226 EXPECT_EQ(static_cast<hidl2aidl::test::Value>(source.c[0]), dest.c[0]); in TEST_F() 227 EXPECT_EQ(static_cast<hidl2aidl::test::Value>(source.c[1]), dest.c[1]); in TEST_F() 267 source.c = {hidl2aidl::test::V1_1::Value::A, hidl2aidl::test::V1_1::Value::B}; in TEST_F() 269 EXPECT_EQ(static_cast<hidl2aidl::test::Value>(source.c[0]), dest.c[0]); in TEST_F() 270 EXPECT_EQ(static_cast<hidl2aidl::test::Value>(source.c[1]), dest.c[1]); in TEST_F()
|
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() 223 source.c[0] = hidl2aidl::test::V1_1::Value::A; in TEST_F() 224 source.c[1] = hidl2aidl::test::V1_1::Value::B; in TEST_F() 226 EXPECT_EQ(static_cast<aidl::hidl2aidl::test::Value>(source.c[0]), dest.c[0]); in TEST_F() 227 EXPECT_EQ(static_cast<aidl::hidl2aidl::test::Value>(source.c[1]), dest.c[1]); in TEST_F() 267 source.c = {hidl2aidl::test::V1_1::Value::A, hidl2aidl::test::V1_1::Value::B}; in TEST_F() 269 EXPECT_EQ(static_cast<aidl::hidl2aidl::test::Value>(source.c[0]), dest.c[0]); in TEST_F() 270 EXPECT_EQ(static_cast<aidl::hidl2aidl::test::Value>(source.c[1]), dest.c[1]); in TEST_F()
|
/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()
|
/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()
|
/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/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.2/ |
D | types.hal | 21 import @1.1::Value; 57 @1.1::Value h; 64 @1.1::Value[12] c; 71 vec<@1.1::Value> c;
|
/system/tools/hidl/hidl2aidl/test/1.1/ |
D | types.hal | 19 import @1.0::Value; 41 enum Value : @1.0::Value {
|
/system/core/libprocessgroup/ |
D | task_profiles.cpp | 428 Json::Value root; in Load() 435 const Json::Value& attr = root["Attributes"]; in Load() 436 for (Json::Value::ArrayIndex i = 0; i < attr.size(); ++i) { in Load() 454 const Json::Value& profiles_val = root["Profiles"]; in Load() 455 for (Json::Value::ArrayIndex i = 0; i < profiles_val.size(); ++i) { in Load() 456 const Json::Value& profile_val = profiles_val[i]; in Load() 459 const Json::Value& actions = profile_val["Actions"]; in Load() 462 for (Json::Value::ArrayIndex act_idx = 0; act_idx < actions.size(); ++act_idx) { in Load() 463 const Json::Value& action_val = actions[act_idx]; in Load() 465 const Json::Value& params_val = action_val["Params"]; in Load() [all …]
|
/system/tools/hidl/ |
D | generateInheritanceHierarchy.cpp | 34 Json::Value root; in generateInheritanceHierarchy() 37 Json::Value inheritedInterfaces(Json::arrayValue); in generateInheritanceHierarchy()
|
/system/teeui/libteeui/include/teeui/ |
D | cbor.h | 53 template <typename Key, typename Value> struct MapElement { 55 const Value& value_; 56 MapElement(const Key& key, const Value& value) : key_(key), value_(value) {} in MapElement() 152 template <typename Key, typename Value> MapElement<Key, Value> pair(const Key& k, const Value& v) { 153 return MapElement<Key, Value>(k, v); 280 template <typename Key, typename Value> 281 WriteState write(WriteState wState, const MapElement<Key, Value>& element) {
|
/system/bt/gd/l2cap/classic/internal/ |
D | signalling_manager.cc | 250 … command_just_sent_.signal_id_.Value(), CommandCodeText(command_just_sent_.command_code_).data(), in OnConnectionResponse() 251 signal_id.Value()); in OnConnectionResponse() 350 … ConfigurationResponseBuilder::Create(signal_id.Value(), channel->GetRemoteCid(), is_continuation, in OnConfigurationRequest() 381 …auto response = ConfigurationResponseBuilder::Create(signal_id.Value(), channel->GetRemoteCid(), i… in OnConfigurationRequest() 501 … command_just_sent_.signal_id_.Value(), CommandCodeText(command_just_sent_.command_code_).data(), in OnConfigurationResponse() 502 signal_id.Value()); in OnConfigurationResponse() 597 auto builder = DisconnectionResponseBuilder::Create(signal_id.Value(), cid, remote_cid); in OnDisconnectionRequest() 612 … command_just_sent_.signal_id_.Value(), CommandCodeText(command_just_sent_.command_code_).data(), in OnDisconnectionResponse() 613 signal_id.Value()); in OnDisconnectionResponse() 640 auto builder = EchoResponseBuilder::Create(signal_id.Value(), std::move(raw_builder)); in OnEchoRequest() [all …]
|
/system/extras/libjsonpb/verify/ |
D | verify.cpp | 52 bool AllFieldsAreKnown(const Message& message, const Json::Value& json, in AllFieldsAreKnown() 95 const Json::Value& json_value = json[json_name]; in AllFieldsAreKnown() 140 Json::Value value; in AllFieldsAreKnown() 158 Json::Value old_json; in EqReformattedJson() 168 Json::Value new_json; in EqReformattedJson()
|
/system/core/libprocessgroup/setup/ |
D | cgroup_map_write.cpp | 148 const Json::Value& cgroup, const std::string& name, in MergeCgroupToDescriptors() 192 Json::Value root; in ReadDescriptorsFromFile() 200 const Json::Value& cgroups = root["Cgroups"]; in ReadDescriptorsFromFile() 201 for (Json::Value::ArrayIndex i = 0; i < cgroups.size(); ++i) { in ReadDescriptorsFromFile() 208 const Json::Value& cgroups2 = root["Cgroups2"]; in ReadDescriptorsFromFile() 212 const Json::Value& childGroups = cgroups2["Controllers"]; in ReadDescriptorsFromFile() 213 for (Json::Value::ArrayIndex i = 0; i < childGroups.size(); ++i) { in ReadDescriptorsFromFile()
|
/system/tools/hidl/hidl2aidl/test/2.0/ |
D | IFoo.hal | 20 import @1.0::Value; 28 useImportedEnum(Value value);
|
/system/tools/hidl/hidl2aidl/test/aidl_api/hidl2aidl_test_gen/current/hidl2aidl/test/ |
D | Value.aidl | 22 enum Value { enum
|
D | ArrayFoo.aidl | 25 hidl2aidl.test.Value[] c;
|