/test/dittosuite/include/ditto/ |
D | result.h | 37 explicit Result(const std::string& name, int repeat); 39 void AddMeasurement(const std::string& type, const std::vector<double>& samples); 41 std::vector<double> GetSamples(const std::string& measurement_name) const; 43 void Print(ResultsOutput results_output, const std::string& instruction_path); 45 void SetStatistics(const std::string& name, const Statistics& stats); 54 std::string name; 59 std::string name; 63 std::string name_; 64 std::map<std::string, std::vector<double>> samples_; 65 std::map<std::string, Statistics> statistics_; [all …]
|
D | tracer.h | 32 void Start(const std::string &splice); 33 void End(const std::string &splice); 37 std::string id_; 41 std::string trace_format__(const T& id) { in trace_format__() 42 return std::string("|") + id; in trace_format__() 46 std::string trace_format__(const T& id, Args... vars) { in trace_format__() 47 return std::string("|") + id + trace_format__(vars...); in trace_format__() 51 std::string trace_format(const T& id) { in trace_format() 56 std::string trace_format(const T& id, Args... vars) { in trace_format() 57 std::string result; in trace_format()
|
D | binder_request.h | 32 explicit BinderRequest(const std::string& kName, const Params& params, 33 const std::string& service_name); 36 std::string service_name_; 45 inline static const std::string kName = "binder_request_ditto"; 47 explicit BinderRequestDitto(const Params& params, const std::string& service_name); 61 inline static const std::string kName = "binder_request_ms"; 77 inline static const std::string kName = "binder_request_generic"; 79 std::string service_name, int32_t code, 85 std::string service_name_;
|
D | shared_variables.h | 27 typedef std::variant<int, std::string, std::vector<std::string>> Variant; 29 static int GetKey(const std::list<int>& thread_ids, const std::string& variable_name); 31 static Variant Get(const std::list<int>& thread_ids, const std::string& variable_name); 33 static void Set(const std::list<int>& thread_ids, const std::string& variable_name, 39 static std::unordered_map<int, std::unordered_map<std::string, int>> keys_;
|
D | parser.h | 30 std::unique_ptr<dittosuiteproto::Benchmark> ParseFile(const std::string& file_path, 31 const std::vector<std::string>& parameters); 33 const std::string& embedded_benchmark, const std::vector<std::string>& parameters); 44 std::unique_ptr<dittosuiteproto::Benchmark> __Parse(std::string json_benchmark, 45 const std::vector<std::string>& parameters);
|
D | syscall.h | 43 std::string to_string(const SchedAttr__& attr); 49 virtual int Access(const std::string& path_name, int mode) = 0; 58 virtual int Open(const std::string& path_name, int flags, int mode) = 0; 59 virtual DIR* OpenDir(const std::string& name) = 0; 63 virtual int64_t ReadLink(const std::string& path_name, char* buf, int64_t bufsiz) = 0; 65 virtual int Unlink(const std::string& path_name) = 0; 76 int Access(const std::string& path_name, int mode) override; 85 int Open(const std::string& path_name, int flags, int mode) override; 86 DIR* OpenDir(const std::string& name) override; 90 int64_t ReadLink(const std::string& path_name, char* buf, int64_t bufsiz) override; [all …]
|
/test/vts/vts_hal_hidl_target/ |
D | VtsHalHidlTargetTestEnvBase.h | 93 string getServiceName(const string& defaultName = kDefaultServiceName) { 120 string getServiceName(const string& instanceName, const string& defaultName); 125 void registerTestService(const string& FQName); 130 void addHalServiceInstance(const string& halServiceInstance); 136 bool isValidInstance(const string& halServiceInstance); 139 map<string, string> halServiceInstances_; 141 set<string> registeredHalServices_;
|
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 …]
|
D | VtsHalHidlTargetTestBase.h | 43 string testCaseInfo = getTestCaseInfo(); in SetUp() 59 string testCaseInfo = getTestCaseInfo(); in TearDown() 80 virtual string getTestCaseInfo() const { return ""; } in getTestCaseInfo() 85 static string PropertyGet(const char* name); 91 static sp<T> getService(const string& serviceName = "default", 118 string getTestSuiteName() const; 123 string getTestCaseName() const;
|
D | VtsHalHidlTargetCallbackBase.h | 106 string name; 126 const string& callback_function_name = 142 const vector<string>& callback_function_names = vector<string>(), 166 void NotifyFromCallback(const string& callback_function_name = 184 void NotifyFromCallback(const string& callback_function_name, in NotifyFromCallback() 195 void ClearForCallback(const string& callback_function_name = 204 milliseconds GetWaitTimeout(const string& callback_function_name = 215 void SetWaitTimeout(const string& callback_function_name, in SetWaitTimeout() 242 CallbackLock(VtsHalHidlTargetCallbackBase& parent, const string& name) in CallbackLock() 347 string name_; [all …]
|
/test/dittosuite/test/ |
D | example_test.cpp | 21 bool string_has_suffix(const std::string& input, const std::string& suffix) { in string_has_suffix() 32 void __ditto_files_paths(std::vector<std::string>* ditto_paths, const std::string& base_path) { in __ditto_files_paths() 38 std::string path = base_path + "/" + entry->d_name; in __ditto_files_paths() 48 if (std::string(".").compare(entry->d_name) && std::string("..").compare(entry->d_name)) { in __ditto_files_paths() 59 std::vector<std::string> ditto_files_paths() { in ditto_files_paths() 60 std::string base_path; in ditto_files_paths() 61 std::vector<std::string> paths; in ditto_files_paths() 73 class ExampleTest : public testing::TestWithParam<std::string> {}; 78 std::string file_path = GetParam(); in TEST_P() 81 if (std::string::npos != file_path.rfind("example/android/")) { in TEST_P()
|
/test/vts-testcase/hal/treble/vintf/ |
D | utils.cpp | 35 const string kDataDir = "/data/local/tmp/"; 38 const string kHashFileName = "current.txt"; 41 const map<string, string> kPackageRoot = { 49 const set<string> kPassthroughHals = { 54 std::string SanitizeTestCaseName(std::string original) { in SanitizeTestCaseName() 69 return os << val.transport() << " HAL " << val.fq_name().string() << "/" in operator <<() 73 string HidlInstance::test_case_name() const { in test_case_name() 74 return SanitizeTestCaseName(fq_name().string() + "/" + instance_name()); in test_case_name() 82 string AidlInstance::test_case_name() const { in test_case_name() 102 string NativeInstance::test_case_name() const { in test_case_name() [all …]
|
D | SingleManifestTest.cpp | 65 void FailureHalMissing(const FQName &fq_name, const std::string &instance) { in FailureHalMissing() 67 cout << "[ WARNING ] " << fq_name.string() << "/" << instance in FailureHalMissing() 72 ADD_FAILURE() << fq_name.string() << "/" << instance << " not available."; in FailureHalMissing() 78 cout << "[ WARNING ] " << fq_name.string() in FailureHashMissing() 84 cout << "[ WARNING ] " << fq_name.string() in FailureHashMissing() 90 << fq_name.string() in FailureHashMissing() 96 static FqInstance ToFqInstance(const string &interface, in ToFqInstance() 97 const string &instance) { in ToFqInstance() 125 ADD_FAILURE() << fq_instance.string() in GetPassthroughServiceExact() 131 interface.string(), fq_instance.getInstance(), Transport::PASSTHROUGH); in GetPassthroughServiceExact() [all …]
|
D | utils.h | 66 using std::string; 78 string instance_name() const { return instance(); }; in instance_name() 81 string test_case_name() const; 91 string package() const { return ManifestInstance::package(); } in package() 93 string interface() const { return ManifestInstance::interface(); } in interface() 94 string instance() const { return ManifestInstance::instance(); } in instance() 95 std::optional<string> updatable_via_apex() const { in updatable_via_apex() 99 string test_case_name() const; 109 string package() const { return ManifestInstance::package(); } in package() 116 string interface() const { return ManifestInstance::interface(); } in interface() [all …]
|
D | VtsTrebleVintfTestBase.h | 49 static sp<IBase> GetHidlService(const string &fq_name, 50 const string &instance_name, Transport, 53 const string &instance_name, Transport, 55 static sp<IBinder> GetAidlService(const std::string &name); 57 static vector<string> GetInstanceNames(const sp<IServiceManager> &manager, 60 static vector<string> GetInterfaceChain(const sp<IBase> &service); 62 static set<string> GetDeclaredHidlHalsOfTransport(HalManifestPtr manifest, 71 static std::vector<std::string> ListRegisteredHwbinderHals();
|
D | VtsTrebleVintfTestBase.cpp | 81 using std::string; 132 const string &instance_name, in GetHidlService() 135 return GetHidlService(fq_name.string(), instance_name, transport, log); in GetHidlService() 138 sp<IBase> VtsTrebleVintfTestBase::GetHidlService(const string &fq_name, in GetHidlService() 139 const string &instance_name, in GetHidlService() 176 sp<IBinder> VtsTrebleVintfTestBase::GetAidlService(const string &name) { in GetAidlService() 190 vector<string> VtsTrebleVintfTestBase::GetInstanceNames( in GetInstanceNames() 192 vector<string> ret; in GetInstanceNames() 194 manager->listByInterface(fq_name.string(), [&](const auto &out) { in GetInstanceNames() 201 vector<string> VtsTrebleVintfTestBase::GetInterfaceChain( in GetInterfaceChain() [all …]
|
/test/vts-testcase/security/avb/ |
D | gsi_validation_utils.cpp | 45 bool HexToBytes(const std::string &hex, std::vector<uint8_t> *bytes) { in HexToBytes() 64 std::string BytesToHex(const std::vector<uint8_t> &bytes) { in BytesToHex() 65 std::string retval; in BytesToHex() 74 std::unique_ptr<ShaHasher> CreateShaHasher(const std::string &algorithm) { in CreateShaHasher() 90 static std::optional<std::string> ReadCommandToString(const std::string &command) { in ReadCommandToString() 105 std::string output; in ReadCommandToString() 115 static bool DeviceSupportsFeature(const std::string &feature) { in DeviceSupportsFeature() 116 std::optional<std::string> features = ReadCommandToString("pm list features"); in DeviceSupportsFeature() 122 return features.value().find(feature) != std::string::npos; in DeviceSupportsFeature() 126 static bool DeviceHasPackage(const std::string &package_name) { in DeviceHasPackage() [all …]
|
/test/vts-testcase/kernel/gki/ |
D | generic_boot_image_test.cpp | 65 std::optional<std::string> get_config( in get_config() 66 const std::map<std::string, std::string>& configs, const std::string& key) { in get_config() argument 113 const std::string& release = runtime_info->osRelease(); in TEST_F() 123 std::set<std::string> GetRequirementBySdkLevel(uint32_t target_sdk_level) { in GetRequirementBySdkLevel() 126 static const std::map<uint32_t, std::set<std::string>> required_by_level = { in GetRequirementBySdkLevel() 132 std::set<std::string> res; in GetRequirementBySdkLevel() 142 std::set<std::string> GetAllowListBySdkLevel(uint32_t target_sdk_level) { in GetAllowListBySdkLevel() 146 static const std::map<uint32_t, std::set<std::string>> allow_by_level = { in GetAllowListBySdkLevel() 172 std::string slot_suffix = GetProperty("ro.boot.slot_suffix", ""); in TEST_F() 175 std::string error_msg; in TEST_F() [all …]
|
/test/dittosuite/ |
D | dittotrace.cpp | 27 std::string name; 28 std::vector<std::string> arguments; 29 std::string return_value; 33 std::vector<std::string> ReadLines(const std::string& file_path) { in ReadLines() 34 std::vector<std::string> lines; in ReadLines() 36 std::string line; in ReadLines() 47 Syscall ProcessLine(const std::string& line) { in ProcessLine() 51 std::string raw_arguments = line.substr(line.find('(') + 1, line.find(')') - line.find('(') - 1); in ProcessLine() 57 while ((next = raw_arguments.find(", ", last)) != std::string::npos) { in ProcessLine() 58 std::string part = raw_arguments.substr(last, next - last); in ProcessLine() [all …]
|
/test/vts-testcase/kernel/bow/ |
D | BowTest.cpp | 68 template <void (*Prepare)(std::string)> 79 loop_device_ = std::string("/dev/block/loop") + std::to_string(i); in SetUp() 96 const static std::string loop_file_; 101 std::string loop_device_; 104 template <void (*Prepare)(std::string)> 105 const std::string LoopbackTestFixture<Prepare>::loop_file_ = 108 void PrepareBowDefault(std::string) {} in PrepareBowDefault() argument 110 template <void (*PrepareLoop)(std::string), 111 void (*PrepareBow)(std::string) = PrepareBowDefault> 113 std::string GetTableStatus() { in GetTableStatus() [all …]
|
/test/dittosuite/schema/ |
D | benchmark.proto | 42 optional string name = 1; 60 // Write the UTF-16 string STR into the send parcel. 84 string data = 2; 88 optional string name = 1; 93 string service_name = 1; 101 string path_name = 1; 102 string input = 2; 104 optional string output_fd = 3; 112 string path_name = 1; 113 string input = 2; [all …]
|
/test/dittosuite/src/ |
D | parser.cpp | 37 std::string json_benchmark, const std::vector<std::string>& parameters) in __Parse() 44 std::string to_replace("$PARAMETER_" + std::to_string(i + 1) + "$"); in __Parse() 46 if (position == std::string::npos) { in __Parse() 76 const std::string& embedded_benchmark, const std::vector<std::string>& parameters) { in ParseEmbedded() 86 const std::string& file_path, const std::vector<std::string>& parameters) { in ParseFile() 92 std::string json_benchmark((std::istreambuf_iterator<char>(file)), in ParseFile()
|
/test/vts-testcase/kernel/encryption/ |
D | Keymaster.h | 48 bool generateKey(const km::AuthorizationSet& inParams, std::string* key); 51 bool exportKey(const std::string& kmKey, std::string* key); 53 bool importKey(const km::AuthorizationSet& inParams, const std::string& key, 54 std::string* outKeyBlob);
|
D | utils.cpp | 57 std::string kdf = in GetKdfContext() 84 std::string Errno() { return std::string(": ") + strerror(errno); } in Errno() 87 void DeleteRecursively(const std::string &path) { in DeleteRecursively() 98 std::string filename(entry->d_name); in DeleteRecursively() 121 std::string BytesToHex(const std::vector<uint8_t> &bytes) { in BytesToHex() 144 static bool GetFsBlockDeviceAndType(const std::string &mountpoint, in GetFsBlockDeviceAndType() 145 std::string *fs_blk_device, in GetFsBlockDeviceAndType() 146 std::string *fs_type) { in GetFsBlockDeviceAndType() 170 static bool GetFilesystemUuid(const std::string &fs_blk_device, in GetFilesystemUuid() 171 const std::string &fs_type, in GetFilesystemUuid() [all …]
|
/test/vts-testcase/kernel/toolchain/ |
D | vts_kernel_toolchain.cpp | 31 const std::string arch_; 35 std::string version_; 51 const std::string needle = "gcc version"; in TEST_F() 57 const std::string needle = "clang version"; in TEST_F() 63 const std::string needle = "GNU ld"; in TEST_F() 71 const std::string needle = "GNU gold"; in TEST_F() 77 const std::string needle = "LLD"; in TEST_F()
|