Home
last modified time | relevance | path

Searched refs:string (Results 1 – 25 of 122) sorted by relevance

12345

/test/vts/compilation_tools/vtsc/
DVtsCompilerUtils.h32 extern string ComponentClassToString(int component_class);
35 extern string ComponentTypeToString(int component_type);
38 extern string GetCppVariableType(const string primitive_type_string);
41 string GetCppVariableType(const VariableSpecificationMessage& arg,
47 extern string GetCppInstanceType(
49 const string& msg = string(),
53 extern string GetConversionToProtobufFunctionName(
61 string ClearStringWithNameSpaceAccess(const string& str);
64 string PathJoin(const char* dir_path, const char* file_name);
67 string RemoveBaseDir(const string& file_path, const string& base_path);
[all …]
/test/vts/agents/hal/
DSocketClientToDriver.h43 int32_t LoadHal(const string& file_path, int target_class, int target_type,
44 float target_version, const string& target_package,
45 const string& target_component_name,
46 const string& hw_binder_service_name,
47 const string& module_name);
50 string GetFunctions();
53 string ReadSpecification(const string& component_name, int target_class,
55 const string& target_package);
58 string Call(const string& arg, const string& uid);
61 string GetAttribute(const string& arg);
[all …]
DAgentRequestHandler.h57 const ::google::protobuf::RepeatedPtrField<::std::string>& base_paths);
63 bool CheckDriverService(const string& service_name, bool* live);
77 bool CallApi(const string& call_payload, const string& uid);
80 bool GetAttribute(const string& payload);
91 bool SendApiResult(const string& func_name, const string& result,
92 const string& spec = "");
96 string service_name_;
106 const string driver_hal_spec_dir_path_;
107 const string driver_hal_binary32_;
108 const string driver_hal_binary64_;
[all …]
DSocketClientToDriver.cpp67 int32_t VtsDriverSocketClient::LoadHal(const string& file_path, in LoadHal()
70 const string& target_package, in LoadHal()
71 const string& target_component_name, in LoadHal()
72 const string& hw_binder_service_name, in LoadHal()
73 const string& module_name) { in LoadHal()
96 string VtsDriverSocketClient::GetFunctions() { in GetFunctions()
113 string VtsDriverSocketClient::ReadSpecification(const string& component_name, in ReadSpecification()
117 const string& target_package) { in ReadSpecification()
141 string VtsDriverSocketClient::Call(const string& arg, const string& uid) { in Call()
159 string VtsDriverSocketClient::GetAttribute(const string& arg) { in GetAttribute()
[all …]
/test/vts/drivers/hal/common/include/driver_manager/
DVtsHalDriverManager.h37 VtsHalDriverManager(const string& spec_dir, const int epoch_count,
38 const string& callback_socket_name);
45 const string& dll_file_name, const string& spec_lib_file_path,
47 const string& package_name, const string& component_name,
48 const string& hw_binder_service_name, const string& submodule_name);
60 string CallFunction(FunctionCallMessage* func_msg);
67 DriverBase* GetDriverForHidlHalInterface(const string& package_name,
69 const string& interface_name,
70 const string& hal_service_name);
78 const string& submodule_name,
[all …]
/test/vts/drivers/hal/common/include/component_loader/
DHalDriverLoader.h36 HalDriverLoader(const string dir_path, int epoch_count,
37 const string& callback_socket_name);
42 const string& package_name,
44 const string& component_name,
46 const string& submodule_name,
50 DriverBase* GetDriver(const string& driver_lib_path,
52 const string& hw_binder_service_name,
55 const string& dll_file_name,
56 const string& target_func_name);
61 const string& spec_lib_file_path,
[all …]
/test/vts/drivers/hal/server/
DSocketServer.h45 int32_t LoadHal(const string& path, int target_class, int target_type,
46 float target_version, const string& target_package,
47 const string& target_component_name,
48 const string& hw_binder_service_name,
49 const string& module_name);
51 string ReadSpecification(const string& name, int target_class,
53 const string& target_package);
54 string Call(const string& arg);
55 string GetAttribute(const string& arg);
56 string ListFunctions() const;
[all …]
DVtsHalDriverServerMain.cpp67 string spec_dir_path = kDefaultSpecDirPath; in main()
68 string callback_socket_name = ""; in main()
69 string server_socket_path; in main()
70 string service_name; in main()
84 spec_dir_path = string(optarg); in main()
88 callback_socket_name = string(optarg); in main()
93 server_socket_path = string(optarg); in main()
97 service_name = string(optarg); in main()
/test/vts/compilation_tools/vtsc/code_gen/profiler/
DHalHidlProfilerCodeGen.h33 const VariableSpecificationMessage& val, const std::string& arg_name,
34 const std::string& arg_value) override;
37 const VariableSpecificationMessage& val, const std::string& arg_name,
38 const std::string& arg_value) override;
41 const VariableSpecificationMessage& val, const std::string& arg_name,
42 const std::string& arg_value) override;
45 const VariableSpecificationMessage& val, const std::string& arg_name,
46 const std::string& arg_value) override;
49 const VariableSpecificationMessage& val, const std::string& arg_name,
50 const std::string& arg_value) override;
[all …]
DProfilerCodeGenBase.h58 const VariableSpecificationMessage& val, const std::string& arg_name,
59 const std::string& arg_value) = 0;
63 const VariableSpecificationMessage& val, const std::string& arg_name,
64 const std::string& arg_value) = 0;
68 const VariableSpecificationMessage& val, const std::string& arg_name,
69 const std::string& arg_value) = 0;
73 const VariableSpecificationMessage& val, const std::string& arg_name,
74 const std::string& arg_value) = 0;
78 const VariableSpecificationMessage& val, const std::string& arg_name,
79 const std::string& arg_value) = 0;
[all …]
DHalHidlProfilerCodeGen.cpp27 const std::string& arg_name, const std::string& arg_value) { in GenerateProfilerForScalarVariable()
35 const std::string& arg_name, const std::string& arg_value) { in GenerateProfilerForStringVariable()
45 const std::string& arg_name, const std::string& arg_value) { in GenerateProfilerForEnumVariable()
50 std::string predefined_type = val.predefined_type(); in GenerateProfilerForEnumVariable()
55 const std::string scalar_type = val.enum_value().scalar_type(); in GenerateProfilerForEnumVariable()
64 const std::string& arg_name, const std::string& arg_value) { in GenerateProfilerForVectorVariable()
69 std::string vector_element_name = arg_name + "_vector_i"; in GenerateProfilerForVectorVariable()
81 const std::string& arg_name, const std::string& arg_value) { in GenerateProfilerForArrayVariable()
86 std::string array_element_name = arg_name + "_array_i"; in GenerateProfilerForArrayVariable()
98 const std::string& arg_name, const std::string& arg_value) { in GenerateProfilerForStructVariable()
[all …]
/test/vts/drivers/hal/common/include/utils/
DInterfaceSpecUtil.h37 string GetFunctionNamePrefix(const ComponentSpecificationMessage& message);
40 string GetVersionString(float version, bool for_macro=false);
43 string GetHidlHalDriverLibName(const string& package_name, const float version);
47 string GetPackageName(const string& type_name);
51 float GetVersion(const string& type_name);
55 string GetComponentName(const string& type_name);
DStringUtil.h28 bool endsWith(const string& s, const string& suffix);
33 string& original, const string& from, const string& to);
/test/vts/utils/native/trace_processor/
DVtsTraceProcessor.h41 void CleanupTraces(const std::string& path);
43 void ProcessTraceForLatencyProfiling(const std::string& trace_file);
46 void DedupTraces(const std::string& trace_dir);
56 const std::string& coverage_file_dir, const std::string& trace_file_dir,
59 void ParseTrace(const std::string& trace_file);
62 void ConvertTrace(const std::string& trace_file);
67 bool ParseBinaryTrace(const std::string& trace_file, bool ignore_timestamp,
72 bool ParseTextTrace(const std::string& trace_file,
76 bool WriteProfilingMsg(const std::string& output_file,
80 void CleanupTraceFile(const std::string& trace_file);
[all …]
/test/vts/compilation_tools/vtsc/code_gen/driver/
DHalCodeGen.h43 const string& fuzzer_extended_class_name) override;
47 const string& fuzzer_extended_class_name) override;
51 const string& fuzzer_extended_class_name) override;
55 const string& fuzzer_extended_class_name) override;
58 const StructSpecificationMessage& message, const string& parent_path);
61 const StructSpecificationMessage& message, const string& parent_path);
65 const string& fuzzer_extended_class_name,
66 const string& original_data_structure_name, const string& parent_path);
70 const string& fuzzer_extended_class_name,
71 const string& original_data_structure_name, const string& parent_path);
DHalHidlCodeGen.h42 const string& fuzzer_extended_class_name) override;
46 const string& fuzzer_extended_class_name) override;
50 const string& fuzzer_extended_class_name) override;
54 const string& fuzzer_extended_class_name) override;
58 const string& fuzzer_extended_class_name) override;
62 const string& fuzzer_extended_class_name) override;
69 const string& fuzzer_extended_class_name) override;
73 const string& fuzzer_extended_class_name) override;
81 const string& fuzzer_extended_class_name,
86 const string& fuzzer_extended_class_name) override;
[all …]
DDriverCodeGenBase.h58 const string& fuzzer_extended_class_name);
63 const string& fuzzer_extended_class_name);
68 const string& fuzzer_extended_class_name) = 0;
73 const string& fuzzer_extended_class_name) = 0;
78 const string& fuzzer_extended_class_name);
83 const string& fuzzer_extended_class_name);
88 const string& /*fuzzer_extended_class_name*/){}; in GenerateCppBodyInterfaceImpl() argument
97 const string& /*fuzzer_extended_class_name*/) {}; in GenerateClassConstructionFunction() argument
102 const string& /*fuzzer_extended_class_name*/) {}; in GenerateAdditionalFuctionDeclarations() argument
112 const string& fuzzer_extended_class_name,
[all …]
/test/vts/drivers/hal/common/utils/
DInterfaceSpecUtil.cpp46 const string data = str_stream.str(); in ParseInterfaceSpec()
58 string GetFunctionNamePrefix(const ComponentSpecificationMessage& message) { in GetFunctionNamePrefix()
66 string package_as_function_name(message.package()); in GetFunctionNamePrefix()
78 string GetVersionString(float version, bool for_macro) { in GetVersionString()
102 string GetHidlHalDriverLibName(const string& package_name, in GetHidlHalDriverLibName()
107 string GetPackageName(const string& type_name) { in GetPackageName()
108 string str = type_name.substr(0, type_name.find('V') - strlen("::")); in GetPackageName()
116 float GetVersion(const string& type_name) { in GetVersion()
117 string str = type_name.substr(type_name.find('V') + 1); in GetVersion()
118 string version_str = str.substr(0, str.find("::")); in GetVersion()
[all …]
DStringUtil.cpp26 bool endsWith(const string& s, const string& suffix) { in endsWith()
30 void ReplaceSubString(string& original, const string& from, const string& to) { in ReplaceSubString()
35 if (index == std::string::npos) break; in ReplaceSubString()
/test/vts/drivers/libdrivercomm/
DVtsDriverFileUtil.cpp28 string ReadFile(const string& file_path) { in ReadFile()
30 string content((istreambuf_iterator<char>(ifs)), in ReadFile()
35 string GetDirFromFilePath(const string& str) { in GetDirFromFilePath()
37 if (found == string::npos) { in GetDirFromFilePath()
/test/vts-testcase/hal/treble/vintf/
Dvts_treble_vintf_test.cpp52 using std::string;
55 std::function<void(const FQName &fq_name, const string &instance_name)>;
59 static const string kDataDir = "/data/local/tmp/";
62 static const string kHashFileName = "current.txt";
65 static const map<string, string> kPackageRoot = {
73 static const set<string> kPassthroughHals = {
79 static const string PackageRoot(const FQName &fq_iface_name) { in PackageRoot()
97 static const set<string> exempt_hals_ = {}; in IsExempt()
98 string hal_name = fq_iface_name.package(); in IsExempt()
105 static set<string> ReleasedHashes(const FQName &fq_iface_name) { in ReleasedHashes()
[all …]
/test/vts/runners/target/vts_hal_hidl_target/
DVtsHalHidlTargetTestEnvBase.h75 string getServiceName() { in getServiceName()
100 string getServiceName(string instanceName);
105 void registerTestService(string FQName);
110 void addHalServiceInstance(string halServiceInstance);
113 map<string, string> halServiceInstances_;
115 set<string> registeredHalServices_;
/test/vts-testcase/security/poc/target/
Dpoc_test.cpp31 using std::string;
58 static map<string, string> ExtractParams(const char *test_params) { in ExtractParams()
59 map<string, string> params; in ExtractParams()
60 string input(test_params); in ExtractParams()
63 string key_value; in ExtractParams()
66 if (delim == string::npos) { in ExtractParams()
71 string key = key_value.substr(0, delim); in ExtractParams()
72 string value = key_value.substr(delim + 1); in ExtractParams()
/test/vts/drivers/hal/common/include/binder/
DVtsFuzzerBinderService.h53 virtual int32_t LoadHal(const string& path, int target_class, int target_type,
54 float target_version, const string& module_name) = 0;
60 virtual string Call(const string& call_payload) = 0;
73 int32_t LoadHal(const string& path, int target_class, int target_type,
74 float target_version, const string& module_name);
76 string Call(const string& call_payload);
/test/vts-testcase/fuzz/iface_fuzzer/
DProtoFuzzerRunner.cpp30 using std::string;
38 static string GetDriverName(const CompSpec &comp_spec) { in GetDriverName()
42 string driver_name = in GetDriverName()
47 static string GetServiceName(const CompSpec &comp_spec) { in GetServiceName()
50 string hal_name = comp_spec.package(); in GetServiceName()
51 string iface_name = comp_spec.component_name(); in GetServiceName()
60 string service_name = *instance_names.begin(); in GetServiceName()
62 for (const string &instance_name : instance_names) { in GetServiceName()
70 static void *Dlopen(string lib_name) { in Dlopen()
83 static void *Dlsym(void *handle, string function_name) { in Dlsym()
[all …]

12345