/test/vts/compilation_tools/vtsc/ |
D | VtsCompilerUtils.h | 32 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, 45 extern string GetCppInstanceType( 47 const string& msg = string(), 51 extern string GetConversionToProtobufFunctionName( 59 string ClearStringWithNameSpaceAccess(const string& str); 62 string PathJoin(const char* dir_path, const char* file_name); 65 string RemoveBaseDir(const string& file_path, const string& base_path); [all …]
|
D | VtsCompilerUtils.cpp | 42 string ComponentClassToString(int component_class) { in ComponentClassToString() 63 string ComponentTypeToString(int component_type) { in ComponentTypeToString() 120 string GetCppVariableType(const std::string scalar_type_string) { in GetCppVariableType() 156 string GetCppVariableType(const VariableSpecificationMessage& arg, in GetCppVariableType() 158 string result; in GetCppVariableType() 194 string element_type = GetCppVariableType(arg.vector_value(0)); in GetCppVariableType() 207 string element_type = GetCppVariableType(cur_val); in GetCppVariableType() 307 string element_type = GetCppVariableType(arg.fmq_value(0)); in GetCppVariableType() 313 string element_type = GetCppVariableType(arg.fmq_value(0)); in GetCppVariableType() 326 string element_type = GetCppVariableType(cur_val); in GetCppVariableType() [all …]
|
/test/vts/compilation_tools/vtsc/code_gen/profiler/ |
D | ProfilerCodeGenBase.h | 59 const VariableSpecificationMessage& val, const std::string& arg_name, 60 const std::string& arg_value) = 0; 64 const VariableSpecificationMessage& val, const std::string& arg_name, 65 const std::string& arg_value) = 0; 69 const VariableSpecificationMessage& val, const std::string& arg_name, 70 const std::string& arg_value) = 0; 74 const VariableSpecificationMessage& val, const std::string& arg_name, 75 const std::string& arg_value) = 0; 79 const VariableSpecificationMessage& val, const std::string& arg_name, 80 const std::string& arg_value) = 0; [all …]
|
D | HalHidlProfilerCodeGen.h | 33 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 …]
|
D | HalHidlProfilerCodeGen.cpp | 27 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() 67 std::string index_name = GetVarString(arg_name) + "_index"; in GenerateProfilerForVectorVariable() 71 std::string vector_element_name = in GenerateProfilerForVectorVariable() 85 const std::string& arg_name, const std::string& arg_value) { in GenerateProfilerForArrayVariable() 88 std::string index_name = GetVarString(arg_name) + "_index"; in GenerateProfilerForArrayVariable() [all …]
|
/test/vts/utils/native/trace_processor/ |
D | VtsTraceProcessor.h | 43 void CleanupTraces(const std::string& path); 45 void ProcessTraceForLatencyProfiling(const std::string& trace_file); 48 void DedupTraces(const std::string& trace_dir); 58 const std::string& coverage_file_dir, const std::string& trace_file_dir, 61 void ParseTrace(const std::string& trace_file); 64 void ConvertTrace(const std::string& trace_file); 69 void GetTestListForHal(const std::string& test_trace_dir, 70 const std::string& output_file, 76 bool ParseBinaryTrace(const std::string& trace_file, bool ignore_timestamp, 82 bool ParseTextTrace(const std::string& trace_file, [all …]
|
/test/vts/agents/hal/ |
D | SocketClientToDriver.h | 47 int32_t LoadHal(const string& file_path, int target_class, int target_type, 49 const string& target_package, 50 const string& target_component_name, 51 const string& hw_binder_service_name, 52 const string& module_name); 55 string GetFunctions(); 61 string ReadSpecification(const string& component_name, int target_class, 64 const string& target_package); 67 string Call(const string& arg, const string& uid); 70 string GetAttribute(const string& arg); [all …]
|
D | AgentRequestHandler.h | 50 bool ListHals(const ::google::protobuf::RepeatedPtrField<string>& base_paths); 56 bool CheckDriverService(const string& service_name, bool* live); 70 bool CallApi(const string& call_payload, const string& uid); 73 bool GetAttribute(const string& payload); 84 bool SendApiResult(const string& func_name, const string& result, 85 const string& spec = ""); 101 string service_name_; 111 const string driver_hal_spec_dir_path_; 112 const string driver_hal_binary32_; 113 const string driver_hal_binary64_; [all …]
|
D | SocketClientToDriver.cpp | 41 const string& file_path, int target_class, int target_type, in LoadHal() 43 const string& target_package, const string& target_component_name, in LoadHal() 44 const string& hw_binder_service_name, const string& module_name) { in LoadHal() 69 string VtsDriverSocketClient::GetFunctions() { in GetFunctions() 84 string VtsDriverSocketClient::ReadSpecification(const string& component_name, in ReadSpecification() 89 const string& target_package) { in ReadSpecification() 113 string VtsDriverSocketClient::Call(const string& arg, const string& uid) { in Call() 131 string VtsDriverSocketClient::GetAttribute(const string& arg) { in GetAttribute() 149 const ::google::protobuf::RepeatedPtrField<string> shell_command) { in ExecuteShellCommand() 226 string GetSocketPortFilePath(const string& service_name) { in GetSocketPortFilePath() [all …]
|
D | VtsAgentMain.cpp | 46 string hal_driver_path32 = kDefaultHalDriverPath32; in main() 47 string hal_driver_path64 = kDefaultHalDriverPath64; in main() 48 string shell_driver_path32 = kDefaultShellDriverPath32; in main() 49 string shell_driver_path64 = kDefaultShellDriverPath64; in main() 50 string spec_dir_path = kDefaultSpecDirPath; in main() 51 string log_severity = "INFO"; in main() 85 log_severity = string(optarg); in main() 89 hal_driver_path32 = string(optarg); in main() 93 hal_driver_path64 = string(optarg); in main() 97 shell_driver_path32 = string(optarg); in main() [all …]
|
/test/vts/drivers/hal/common/include/utils/ |
D | InterfaceSpecUtil.h | 37 string GetFunctionNamePrefix(const ComponentSpecificationMessage& message); 50 string GetVersionString(int version_major, int version_minor, 63 string GetVersionString(float version, bool for_macro=false); 74 string GetHidlHalDriverLibName(const string& package_name, 88 string GetInterfaceFQName(const string& package_name, const int version_major, 90 const string& interface_name); 94 string GetPackageName(const string& type_name); 98 string GetVersion(const string& type_name); 104 int GetVersionMajor(const string& version, bool for_macro = false); 110 int GetVersionMinor(const string& version, bool for_macro = false); [all …]
|
/test/vts/utils/native/testability_checker/ |
D | VtsTestabilityChecker.h | 35 using std::string; 65 bool CheckHalForComplianceTest(const string& hal_package_name, 67 const string& hal_interface_name, 68 const Arch& arch, set<string>* instances); 76 bool CheckHalForNonComplianceTest(const string& hal_package_name, 78 const string& hal_interface_name, 79 const Arch& arch, set<string>* instances); 86 bool CheckFrameworkCompatibleHal(const string& hal_package_name, 88 const string& hal_interface_name, 89 const Arch& arch, set<string>* instances); [all …]
|
D | VtsTestabilityChecker.cpp | 41 using std::string; 48 const string& hal_package_name, const Version& hal_version, in CheckHalForComplianceTest() 49 const string& hal_interface_name, const Arch& arch, in CheckHalForComplianceTest() 50 set<string>* instances) { in CheckHalForComplianceTest() 52 set<string> famework_hal_instances; in CheckHalForComplianceTest() 53 set<string> vendor_hal_instances; in CheckHalForComplianceTest() 67 const string& hal_package_name, const Version& hal_version, in CheckHalForNonComplianceTest() 68 const string& hal_interface_name, const Arch& arch, in CheckHalForNonComplianceTest() 69 set<string>* instances) { in CheckHalForNonComplianceTest() 71 set<string> vendor_hal_instances; in CheckHalForNonComplianceTest() [all …]
|
/test/vts/drivers/hal/common/include/driver_manager/ |
D | VtsHalDriverManager.h | 38 VtsHalDriverManager(const string& spec_dir, const int epoch_count, 39 const string& callback_socket_name, 50 DriverId LoadTargetComponent(const string& dll_file_name, 51 const string& spec_lib_file_path, 55 const string& package_name, 56 const string& component_name, 57 const string& hw_binder_service_name); 69 string CallFunction(FunctionCallMessage* func_msg); 80 DriverId GetDriverIdForHidlHalInterface(const string& package_name, 83 const string& interface_name, [all …]
|
/test/vts-testcase/hal/treble/vintf/ |
D | SingleManifestTest.cpp | 49 void FailureHalMissing(const FQName &fq_name, const std::string &instance) { in FailureHalMissing() 51 cout << "[ WARNING ] " << fq_name.string() << "/" << instance in FailureHalMissing() 56 ADD_FAILURE() << fq_name.string() << "/" << instance << " not available."; in FailureHalMissing() 63 cout << "[ WARNING ] " << fq_name.string() in FailureHashMissing() 69 cout << "[ WARNING ] " << fq_name.string() in FailureHashMissing() 74 cout << "[ WARNING ] " << fq_name.string() in FailureHashMissing() 80 << fq_name.string() in FailureHashMissing() 87 static string RangeInstancesToString(const std::pair<It, It> &range) { in RangeInstancesToString() 91 ss << it->second.string(); in RangeInstancesToString() 97 static string InstancesToString(const Container &container) { in InstancesToString() [all …]
|
D | VtsTrebleVintfTestBase.cpp | 78 using std::string; 97 const std::string instance_name = manifest_instance.instance(); in ForEachHidlHalInstance() 104 cout << "Timed out on: " << fq_name.string() << " " << instance_name in ForEachHidlHalInstance() 117 const std::string &package = manifest_instance.package(); in ForEachAidlHalInstance() 118 const std::string &interface = manifest_instance.interface(); in ForEachAidlHalInstance() 119 const std::string &instance = manifest_instance.instance(); in ForEachAidlHalInstance() 134 const string &instance_name, in GetHalService() 136 return GetHalService(fq_name.string(), instance_name, transport, log); in GetHalService() 139 sp<IBase> VtsTrebleVintfTestBase::GetHalService(const string &fq_name, in GetHalService() 140 const string &instance_name, in GetHalService() [all …]
|
/test/vts/drivers/hal/common/utils/ |
D | InterfaceSpecUtil.cpp | 46 const string data = str_stream.str(); in ParseInterfaceSpec() 56 string GetFunctionNamePrefix(const ComponentSpecificationMessage& message) { in GetFunctionNamePrefix() 68 string package_as_function_name(message.package()); in GetFunctionNamePrefix() 85 string GetVersionString(float version, bool for_macro) { in GetVersionString() 109 string GetVersionString(int version_major, int version_minor, bool for_macro) { in GetVersionString() 120 string GetHidlHalDriverLibName(const string& package_name, in GetHidlHalDriverLibName() 127 string GetInterfaceFQName(const string& package_name, const int version_major, in GetInterfaceFQName() 129 const string& interface_name) { in GetInterfaceFQName() 134 string GetPackageName(const string& type_name) { in GetPackageName() 135 string str = type_name.substr(0, type_name.find('V') - strlen("::")); in GetPackageName() [all …]
|
/test/vts/compilation_tools/vtsc/code_gen/driver/ |
D | HalHidlCodeGen.h | 38 const string& fuzzer_extended_class_name) override; 42 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; 65 const string& fuzzer_extended_class_name) override; 69 const string& fuzzer_extended_class_name) override; 77 const string& fuzzer_extended_class_name, 82 const string& fuzzer_extended_class_name) override; [all …]
|
D | HalCodeGen.h | 39 const string& fuzzer_extended_class_name) override; 43 const string& fuzzer_extended_class_name) override; 47 const string& fuzzer_extended_class_name) override; 51 const string& fuzzer_extended_class_name) override; 54 const StructSpecificationMessage& message, const string& parent_path); 57 const StructSpecificationMessage& message, const string& parent_path); 61 const string& fuzzer_extended_class_name, 62 const string& original_data_structure_name, const string& parent_path); 66 const string& fuzzer_extended_class_name, 67 const string& original_data_structure_name, const string& parent_path);
|
/test/vts/drivers/hal/server/ |
D | SocketServer.h | 51 int32_t LoadHal(const string& path, int target_class, int target_type, 53 const string& target_package, 54 const string& target_component_name, 55 const string& hw_binder_service_name, 56 const string& module_name); 60 string ReadSpecification(const string& name, int target_class, 63 const string& target_package); 64 string Call(const string& arg); 65 string GetAttribute(const string& arg); 66 string ListFunctions() const; [all …]
|
/test/vts/drivers/hal/common/include/component_loader/ |
D | HalDriverLoader.h | 36 HalDriverLoader(const string dir_path, int epoch_count, 37 const string& callback_socket_name); 45 const string& package_name, 48 const string& component_name, 53 DriverBase* GetDriver(const string& driver_lib_path, 55 const string& hw_binder_service_name, 58 const string& dll_file_name); 83 DriverBase* GetLibDriver(const string& driver_lib_path, 85 const string& dll_file_name); 88 DriverBase* GetHidlHalDriver(const string& driver_lib_path, [all …]
|
/test/vts-testcase/fuzz/iface_fuzzer/ |
D | ProtoFuzzerRunner.cpp | 32 using std::string; 40 static string GetVersionString(const CompSpec &comp_spec) { in GetVersionString() 47 static string GetDriverName(const CompSpec &comp_spec) { in GetDriverName() 48 string version_string = GetVersionString(comp_spec); in GetDriverName() 49 string driver_name = in GetDriverName() 54 static string GetServiceName(const CompSpec &comp_spec) { in GetServiceName() 55 string hal_name = comp_spec.package(); in GetServiceName() 56 string iface_name = comp_spec.component_name(); in GetServiceName() 70 string service_name = *instance_names.begin(); in GetServiceName() 72 for (const string &instance_name : instance_names) { in GetServiceName() [all …]
|
/test/vts/utils/native/libcoverage/ |
D | VtsCoverageConfigureMain.cpp | 24 const string kSysPropHalCoverage = "hal.coverage.enable"; 39 bool parseFqInstaceName(string fqInstanceName, Lambda &&func) { in parseFqInstaceName() 40 string::size_type n = fqInstanceName.find("/"); in parseFqInstaceName() 41 if (n == std::string::npos || fqInstanceName.size() == n + 1) return false; in parseFqInstaceName() 43 string fqInterfaceName = fqInstanceName.substr(0, n); in parseFqInstaceName() 44 string instanceName = fqInstanceName.substr(n + 1, std::string::npos); in parseFqInstaceName() 47 if (n == std::string::npos || fqInstanceName.size() == n + 1) return false; in parseFqInstaceName() 48 string halName = fqInstanceName.substr(0, n); in parseFqInstaceName() 55 bool FlushHALCoverage(string flushHal = "") { in FlushHALCoverage() 69 for (const string &fqInstanceName : interfaces) { in FlushHALCoverage() [all …]
|
/test/vts/runners/target/vts_hal_hidl_target/ |
D | VtsHalHidlTargetTestEnvBase.cpp | 26 static const std::string kListFlag = "--list_registered_services"; 27 static const std::string kServiceInstanceFlag = "--hal_service_instance="; 82 if (string(arg).find(kServiceInstanceFlag) == 0) { in parseVtsTestOption() 84 string value = string(arg).substr(kServiceInstanceFlag.length()); in parseVtsTestOption() 92 const string& halServiceInstance) { in addHalServiceInstance() 102 string halName = halServiceInstance.substr(0, halServiceInstance.find('/')); in addHalServiceInstance() 103 string instanceName = in addHalServiceInstance() 115 string VtsHalHidlTargetTestEnvBase::getServiceName(const string& instanceName, in getServiceName() 116 const string& defaultName) { in getServiceName() 126 void VtsHalHidlTargetTestEnvBase::registerTestService(const string& FQName) { in registerTestService() [all …]
|
/test/vts/drivers/hal/common/component_loader/ |
D | HalDriverLoader.cpp | 35 HalDriverLoader::HalDriverLoader(const string dir_path, int epoch_count, in HalDriverLoader() 36 const string& callback_socket_name) in HalDriverLoader() 42 const int component_class, const string& package_name, in FindComponentSpecification() 44 const string& component_name, const int component_type, in FindComponentSpecification() 50 string driver_lib_dir = dir_path_; in FindComponentSpecification() 54 string package_path = package_name; in FindComponentSpecification() 66 string(ent->d_name).find(kSpecFileExt) != std::string::npos) { in FindComponentSpecification() 68 const string file_path = driver_lib_dir + "/" + string(ent->d_name); in FindComponentSpecification() 103 const string& driver_lib_path, in GetDriver() 105 const string& hw_binder_service_name, const uint64_t interface_pt, in GetDriver() [all …]
|