Home
last modified time | relevance | path

Searched refs:Result (Results 1 - 25 of 57) sorted by relevance

123

/developtools/packing_tool/packing_tool/frameworks/src/json/
H A Dpt_json.cpp346 Result PtJson::GetBool(const char *key, bool *value) const in GetBool()
350 return Result::NOT_EXIST; in GetBool()
353 return Result::TYPE_ERROR; in GetBool()
357 return Result::SUCCESS; in GetBool()
360 Result PtJson::SetBool(const char *key, const bool& value) in SetBool()
364 return Result::NOT_EXIST; in SetBool()
367 return Result::SUCCESS; in SetBool()
370 Result PtJson::GetInt(const char *key, int32_t *value) const in GetInt()
373 Result ret = GetDouble(key, &result); in GetInt()
374 if (ret == Result in GetInt()
[all...]
H A Dmodule_json.cpp148 if (root_->GetObject(APP.c_str(), &appObj) != Result::SUCCESS) { in GetAppObject()
165 if (root_->GetObject(DEVICE_CONFIG.c_str(), &deviceConfigObj) != Result::SUCCESS) { in GetDeviceConfigObject()
183 if (appObj->GetObject(VERSION.c_str(), &versionObj) != Result::SUCCESS) { in GetVersionObject()
200 if (root_->GetObject(MODULE.c_str(), &moduleObj) != Result::SUCCESS) { in GetModuleObject()
228 if (moduleObj->GetObject(DISTRO.c_str(), &distroObj) != Result::SUCCESS) { in GetDistroObjectByModuleObj()
246 if (appObj->GetObject(API_VERSION.c_str(), &apiVersionObj) != Result::SUCCESS) { in GetApiVersionObject()
273 if (moduleObj->GetString(NAME.c_str(), &moduleName) != Result::SUCCESS) { in GetModuleNameByModuleObj()
291 if (moduleObj->GetString(NAME.c_str(), &patchModuleName) != Result::SUCCESS) { in GetPatchModuleName()
318 if (appObj->GetString(BUNDLE_NAME.c_str(), &bundleName) != Result::SUCCESS) { in GetBundleNameByAppObj()
336 if (appObj->SetString(BUNDLE_NAME.c_str(), bundleName) != Result in SetBundleName()
[all...]
H A Dmodule_json_fa.cpp111 if (appObj->GetObject(VERSION.c_str(), &versionObj) != Result::SUCCESS) { in GetFaVersionByAppObj()
128 if (versionObj->GetInt(CODE.c_str(), &version.versionCode) != Result::SUCCESS) { in GetFaVersionByVersionObj()
132 if (versionObj->GetString(NAME.c_str(), &version.versionName) != Result::SUCCESS) { in GetFaVersionByVersionObj()
138 &version.minCompatibleVersionCode) != Result::SUCCESS) { in GetFaVersionByVersionObj()
159 if (versionObj->SetInt(CODE.c_str(), versionCode) != Result::SUCCESS) { in SetFaVersionCode()
177 if (versionObj->SetString(NAME.c_str(), versionName) != Result::SUCCESS) { in SetFaVersionName()
216 if (distroObj->GetBool(INSTALLATION_FREE.c_str(), &installationFree) != Result::SUCCESS) { in GetFaInstallationFreeByDistroObj()
259 if (appObj->GetObject(API_VERSION.c_str(), &apiVersionObj) != Result::SUCCESS) { in GetFaModuleApiVersionByAppObj()
274 if (apiVersionObj->GetInt(COMPATIBLE.c_str(), &moduleApiVersion.compatibleApiVersion) != Result::SUCCESS) { in GetFaModuleApiVersionByApiVersionObj()
280 if (apiVersionObj->GetInt(TARGET.c_str(), &moduleApiVersion.targetApiVersion) != Result in GetFaModuleApiVersionByApiVersionObj()
[all...]
H A Ddistro_filter.cpp50 if (root->GetArray(VALUE.c_str(), &valuesObj) != Result::SUCCESS) { in ParseFromJson()
59 if (root->GetString(POLICY.c_str(), &policy) != Result::SUCCESS) { in ParseFromJson()
75 if (root->GetArray(VALUE.c_str(), &valuesObj) != Result::SUCCESS) { in ParseFromJsonApiVersion()
84 if (root->GetString(POLICY.c_str(), &policy) != Result::SUCCESS) { in ParseFromJsonApiVersion()
100 if (root->GetObject(API_VERSION.c_str(), &apiVersionObj) != Result::SUCCESS) { in ParseApiVersion()
120 if (root->GetObject(SCREEN_SHAPE.c_str(), &screenShapeObj) != Result::SUCCESS) { in ParseScreenShape()
140 if (root->GetObject(SCREEN_DENSITY.c_str(), &screenDensityObj) != Result::SUCCESS) { in ParseScreenDensity()
160 if (root->GetObject(SCREEN_WINDOW.c_str(), &screenWindowObj) != Result::SUCCESS) { in ParseScreenWindow()
180 if (root->GetObject(COUNTRY_CODE.c_str(), &countryCodeObj) != Result::SUCCESS) { in ParseCountryCode()
H A Dmodule_json_stage.cpp101 if (appObj->SetInt(VERSIONCODE.c_str(), versionCode) != Result::SUCCESS) { in SetStageVersionCode()
119 if (appObj->SetString(VERSIONNAME.c_str(), versionName) != Result::SUCCESS) { in SetStageVersionName()
146 if (appObj->GetInt(VERSIONCODE.c_str(), &version.versionCode) != Result::SUCCESS) { in GetStageVersionByAppObj()
150 if (appObj->GetString(VERSIONNAME.c_str(), &version.versionName) != Result::SUCCESS) { in GetStageVersionByAppObj()
156 &version.minCompatibleVersionCode) != Result::SUCCESS) { in GetStageVersionByAppObj()
184 if (moduleObj->GetBool(INSTALLATION_FREE.c_str(), &installationFree) != Result::SUCCESS) { in GetStageInstallationFreeByModuleObj()
209 if (appObj->GetInt(MIN_API_VERSION.c_str(), &moduleApiVersion.compatibleApiVersion) != Result::SUCCESS) { in GetStageModuleApiVersionByAppObj()
215 if (appObj->GetInt(TARGET_API_VERSION.c_str(), &moduleApiVersion.targetApiVersion) != Result::SUCCESS) { in GetStageModuleApiVersionByAppObj()
221 if (appObj->GetString(API_RELEASE_TYPE.c_str(), &moduleApiVersion.releaseType) != Result::SUCCESS) { in GetStageModuleApiVersionByAppObj()
249 if (moduleObj->GetString(NAME.c_str(), &stageModuleName) != Result in GetStageModuleNameByModuleObj()
[all...]
H A Dpack_info.cpp103 if (root_->GetObject(SUMMARY.c_str(), &summaryObj) != Result::SUCCESS) { in GetSummaryObject()
120 if (root_->GetArray(PACKAGES.c_str(), &packagesObj) != Result::SUCCESS) { in GetPackagesObject()
138 if (summaryObj->GetObject(APP.c_str(), &appObj) != Result::SUCCESS) { in GetAppObject()
156 if (summaryObj->GetArray(MODULES.c_str(), &modulesObj) != Result::SUCCESS) { in GetModulesObject()
183 if (appObj->GetString(BUNDLE_NAME.c_str(), &bundleName) != Result::SUCCESS) { in GetBundleNameByAppObj()
201 if (appObj->SetString(BUNDLE_NAME.c_str(), bundleName) != Result::SUCCESS) { in SetBundleName()
226 if (appObj->GetString(BUNDLE_TYPE.c_str(), &bundleType) != Result::SUCCESS) { in GetBundleTypeByAppObj()
247 if (appObj->GetObject(VERSION.c_str(), &versionObj) != Result::SUCCESS) { in GetVersionObject()
290 if (moduleObj->GetObject(DISTRO.c_str(), &distroObj) != Result::SUCCESS) { in GetDistroObjectByModuleObj()
333 if (moduleObj->GetArray(EXTENSION_ABILITIES.c_str(), &extensionAbilitiesObj) != Result in GetExtensionAbilitiesObjByModuleObj()
[all...]
H A Dpatch_json.cpp97 if (root_->GetObject(APP.c_str(), &appObj) != Result::SUCCESS) { in GetAppObject()
114 if (root_->GetObject(MODULE.c_str(), &moduleObj) != Result::SUCCESS) { in GetModuleObject()
141 if (appObj->GetString(BUNDLE_NAME.c_str(), &bundleName) != Result::SUCCESS) { in GetBundleNameByAppObj()
168 if (appObj->GetInt(VERSION_CODE.c_str(), &versionCode) != Result::SUCCESS) { in GetVersionCodeByAppObj()
195 if (appObj->GetString(VERSION_NAME.c_str(), &versionName) != Result::SUCCESS) { in GetVersionNameByAppObj()
222 if (appObj->GetInt(PATCH_VERSION_CODE.c_str(), &patchVersionCode) != Result::SUCCESS) { in GetPatchVersionCodeByAppObj()
249 if (appObj->GetString(PATCH_VERSION_NAME.c_str(), &patchVersionName) != Result::SUCCESS) { in GetPatchVersionNameByAppObj()
276 if (moduleObj->GetString(NAME.c_str(), &name) != Result::SUCCESS) { in GetNameByModuleObj()
303 if (moduleObj->GetString(TYPE.c_str(), &type) != Result::SUCCESS) { in GetTypeByModuleObj()
331 if (moduleObj->GetArray(DEVICE_TYPES.c_str(), &deviceTypesObj) != Result in GetDeviceTypesByModuleObj()
[all...]
/developtools/packing_tool/packing_tool/frameworks/include/json/
H A Dpt_json.h26 enum class Result : uint8_t { class
101 Result GetBool(const char *key, bool *value) const;
102 Result GetInt(const char *key, int32_t *value) const;
103 Result GetInt64(const char *key, int64_t *value) const;
104 Result GetUInt(const char *key, uint32_t *value) const;
105 Result GetUInt64(const char *key, uint64_t *value) const;
106 Result GetDouble(const char *key, double *value) const;
107 Result GetString(const char *key, std::string *value) const;
108 Result GetObject(const char *key, std::unique_ptr<PtJson> *value) const;
109 Result GetArra
[all...]
/developtools/packing_tool/packing_tool/frameworks/test/unittest/json/pt_json_test/
H A Dpt_json_test.cpp370 EXPECT_EQ(ptJson.SetBool("AAA", flag), OHOS::AppPackingTool::Result::SUCCESS); in HWTEST_F()
388 EXPECT_EQ(ptJson.SetInt("BBB", 321), OHOS::AppPackingTool::Result::SUCCESS); in HWTEST_F()
408 EXPECT_EQ(ptJson.SetInt64("BBB", value64), OHOS::AppPackingTool::Result::SUCCESS); in HWTEST_F()
410 EXPECT_EQ(ptJson.GetInt64("BBB", &value642), OHOS::AppPackingTool::Result::SUCCESS); in HWTEST_F()
414 EXPECT_EQ(ptJson.SetUInt("BBB", value32), OHOS::AppPackingTool::Result::SUCCESS); in HWTEST_F()
416 EXPECT_EQ(ptJson.GetUInt("BBB", &value322), OHOS::AppPackingTool::Result::SUCCESS); in HWTEST_F()
420 EXPECT_EQ(ptJson.SetUInt64("BBB", valueInt64), OHOS::AppPackingTool::Result::SUCCESS); in HWTEST_F()
422 EXPECT_EQ(ptJson.GetUInt64("BBB", &valueInt642), OHOS::AppPackingTool::Result::SUCCESS); in HWTEST_F()
426 EXPECT_EQ(ptJson.SetDouble("CCC", valueDouble), OHOS::AppPackingTool::Result::SUCCESS); in HWTEST_F()
428 EXPECT_EQ(ptJson.GetDouble("CCC", &valueDouble2), OHOS::AppPackingTool::Result in HWTEST_F()
[all...]
/developtools/integration_verification/tools/fotff/tester/mock/
H A Dmock.go38 func (t *Tester) DoTestTask(device string, ctx context.Context) ([]tester.Result, error) {
42 return []tester.Result{
49 func (t *Tester) DoTestCase(device string, testCase string, ctx context.Context) (tester.Result, error) {
51 return tester.Result{TestCaseName: testCase, Status: tester.ResultPass}, nil
54 func (t *Tester) DoTestCases(device string, testcases []string, ctx context.Context) ([]tester.Result, error) {
55 var ret []tester.Result
/developtools/integration_verification/tools/fotff/tester/pkg_available/
H A Dpkg_available.go51 func (t *Tester) DoTestTask(deviceSN string, ctx context.Context) (ret []tester.Result, err error) {
55 func (t *Tester) DoTestCase(deviceSN, testCase string, ctx context.Context) (ret tester.Result, err error) {
60 return tester.Result{TestCaseName: testCase, Status: tester.ResultFail}, nil
65 return tester.Result{TestCaseName: testCase, Status: tester.ResultPass}, nil
69 return tester.Result{TestCaseName: testCase, Status: tester.ResultFail}, nil
72 func (t *Tester) DoTestCases(deviceSN string, testcases []string, ctx context.Context) (ret []tester.Result, err error) {
/developtools/integration_verification/tools/fotff/tester/
H A Dtester.go28 type Result struct { type
39 DoTestTask(device string, ctx context.Context) ([]Result, error)
41 DoTestCase(device string, testCase string, ctx context.Context) (Result, error)
43 DoTestCases(device string, testcases []string, ctx context.Context) ([]Result, error)
/developtools/integration_verification/tools/fotff/tester/common/
H A Dcommon.go36 Result string `json:"result"`
54 func (t *Tester) DoTestTask(device string, ctx context.Context) ([]tester.Result, error) {
73 func (t *Tester) DoTestCase(device string, testCase string, ctx context.Context) (tester.Result, error) {
81 defaultResult := tester.Result{}
106 func (t *Tester) DoTestCases(device string, testCases []string, ctx context.Context) ([]tester.Result, error) {
127 func (t *Tester) processResult() ([]tester.Result, error) {
141 var ret []tester.Result
143 if r.Result == testResultPass {
144 ret = append(ret, tester.Result{TestCaseName: r.TestCase, Status: tester.ResultPass})
146 ret = append(ret, tester.Result{TestCaseNam
[all...]
/developtools/integration_verification/tools/fotff/tester/manual/
H A Dmanual.go52 func (t *Tester) DoTestTask(deviceSN string, ctx context.Context) (ret []tester.Result, err error) {
56 func (t *Tester) DoTestCase(deviceSN, testCase string, ctx context.Context) (ret tester.Result, err error) {
71 return tester.Result{TestCaseName: testCase, Status: tester.ResultPass}, nil
73 return tester.Result{TestCaseName: testCase, Status: tester.ResultFail}, nil
79 func (t *Tester) DoTestCases(deviceSN string, testcases []string, ctx context.Context) (ret []tester.Result, err error) {
/developtools/hdc/hdc_rust/src/host/
H A Dclient.rs57 pub async fn run_client_mode(parsed_cmd: ParsedCommand) -> io::Result<()> {
92 pub async fn new(parsed_cmd: ParsedCommand) -> io::Result<Self> {
115 async fn execute_command(&mut self) -> io::Result<()> {
152 pub async fn handshake(&mut self) -> io::Result<()> {
182 async fn recv(&mut self) -> io::Result<Vec<u8>> {
187 async fn unity_task(&mut self) -> io::Result<()> {
192 async fn wait_task(&mut self) -> io::Result<()> {
197 async fn unity_root_run_task(&mut self) -> io::Result<()> {
204 async fn jdwp_task(&mut self) -> io::Result<()> {
211 async fn shell_task(&mut self) -> io::Result<()> {
[all...]
H A Dauth.rs65 async fn handshake_deal_daemon_auth_result(daemon: SessionHandShake, connect_key: String) -> io::Result<()> {
121 pub async fn handshake_task(msg: TaskMessage, session_id: u32, connect_key: String) -> io::Result<()> {
173 fn load_or_create_prikey() -> io::Result<Rsa<openssl::pkey::Private>> { in load_or_create_prikey()
189 pub fn create_prikey() -> io::Result<Rsa<openssl::pkey::Private>> { in create_prikey()
205 fn get_pubkey_pem(rsa: &Rsa<openssl::pkey::Private>) -> io::Result<String> { in get_pubkey_pem()
217 fn get_signature_b64(rsa: &Rsa<openssl::pkey::Private>, plain: String) -> io::Result<String> { in get_signature_b64()
251 fn get_hostname() -> io::Result<String> { in get_hostname()
/developtools/integration_verification/tools/fotff/rec/
H A Dfotff.go134 logrus.Infof("get testcase result %s from cache done, result is %s", result.(tester.Result).TestCaseName, result.(tester.Result).Status)
137 logrus.Infof("get testcase result %s from cache done, result is %s", fellowResult.(tester.Result).TestCaseName, fellowResult.(tester.Result).Status)
138 if fellowResult.(tester.Result).Status == result.(tester.Result).Status {
143 return result.(tester.Result).Status == tester.ResultPass, newFellows, nil
145 var results []tester.Result
H A Dfotff_test.go72 func (f *FotffMocker) DoTestTask(device string, ctx context.Context) ([]tester.Result, error) {
79 return []tester.Result{{TestCaseName: f.TestCaseName(), Status: tester.ResultFail}}, nil
82 func (f *FotffMocker) DoTestCase(device string, testcase string, ctx context.Context) (tester.Result, error) {
86 return tester.Result{}, context.Canceled
95 return tester.Result{TestCaseName: testcase, Status: tester.ResultFail}, nil
98 return tester.Result{TestCaseName: testcase, Status: tester.ResultPass}, nil
101 func (f *FotffMocker) DoTestCases(device string, testcases []string, ctx context.Context) ([]tester.Result, error) {
102 var ret []tester.Result
/developtools/hdc/hdc_rust/src/tar/
H A Dcompress.rs57 fn add_path_recursion(&mut self, path: &Path) -> io::Result<()> { in add_path_recursion()
75 pub fn add_path(&mut self, path: &Path) -> io::Result<()> { in add_path()
79 fn add_entry(&mut self, file: &str) -> io::Result<()> { in add_entry()
104 pub fn compress(&mut self, file_path: PathBuf) -> io::Result<()> { in compress()
/developtools/integration_verification/tools/fotff/tester/xdevice/
H A Dxdevice.go48 Result string `xml:"result,attr"`
82 func (t *Tester) DoTestTask(deviceSN string, ctx context.Context) (ret []tester.Result, err error) {
98 func (t *Tester) DoTestCase(deviceSN, testCase string, ctx context.Context) (ret tester.Result, err error) {
122 func (t *Tester) DoTestCases(deviceSN string, testcases []string, ctx context.Context) (ret []tester.Result, err error) {
138 func (t *Tester) readReport(reportDir string) (ret []tester.Result, err error) {
153 if c.Result == "true" {
158 ret = append(ret, tester.Result{TestCaseName: c.Name, Status: status})
/developtools/integration_verification/tools/fotff/tester/smoke/
H A Dsmoke.go61 func (t *Tester) DoTestTask(deviceSN string, ctx context.Context) (ret []tester.Result, err error) {
80 func (t *Tester) DoTestCase(deviceSN, testCase string, ctx context.Context) (ret tester.Result, err error) {
107 func (t *Tester) DoTestCases(deviceSN string, testcases []string, ctx context.Context) (ret []tester.Result, err error) {
126 func (t *Tester) readReport(reportDir string) (ret []tester.Result, err error) {
143 ret = append(ret, tester.Result{TestCaseName: strconv.Itoa(r.TestCaseName), Status: tester.ResultPass})
145 ret = append(ret, tester.Result{TestCaseName: strconv.Itoa(r.TestCaseName), Status: tester.ResultFail})
/developtools/hapsigner/hapsigntool_cpp_test/unittest/codeSigning/utils/
H A Dfs_digest_utils_test.cpp57 std::string str = api->Result(type); in HWTEST_F()
80 std::string str = api->Result(type); in HWTEST_F()
98 std::string str = api->Result(type); in HWTEST_F()
/developtools/hdc/hdc_rust/src/daemon_lib/
H A Dmod.rs69 pub async fn handle_message(res: io::Result<TaskMessage>, session_id: u32) -> io::Result<()> {
94 pub async fn bridge_daemon_start() -> io::Result<()> {
130 pub async fn bridge_handle_client(ptr: u64, fd: i32, client_fd: i32) -> io::Result<()> {
166 pub async fn tcp_handle_client(stream: TcpStream) -> io::Result<()> {
196 pub async fn tcp_daemon_start(port: u16) -> io::Result<()> {
222 pub async fn uart_daemon_start() -> io::Result<()> {
238 ) -> io::Result<u32> {
270 pub async fn uart_handle_client(fd: i32) -> io::Result<()> {
357 pub async fn usb_daemon_start() -> io::Result<()> {
[all...]
/developtools/hdc/hdc_rust/src/transfer/
H A Dusb.rs68 pub fn usb_init() -> io::Result<(i32, i32, i32)> { in usb_init()
134 fn read_frame(&self, expect: usize) -> io::Result<Vec<u8>> { in read_frame()
157 fn read_frame(&self, _expected_size: usize) -> io::Result<Vec<u8>> { in read_frame()
161 fn check_protocol_head(&mut self) -> io::Result<(u32, u32, u32)> { in check_protocol_head()
180 pub fn usb_write_all(fd: i32, data: Vec<u8>) -> io::Result<i32> { in usb_write_all()
196 fn write_all(&self, data: Vec<u8>) -> io::Result<i32> { in write_all()
211 fn write_all(&self, _data: Vec<u8>) -> io::Result<i32> { in write_all()
/developtools/hdc/hdc_rust/src/common/
H A Duds.rs28 use std::io::{self, ErrorKind, Result};
90 pub fn parse_abstract(name: &[u8]) -> io::Result<Self> { in parse_abstract()
120 pub fn wrap_bind(socket_fd: i32, addr: &UdsAddr) -> Result<()> { in wrap_bind()
228 pub fn wrap_socketpair(socket_type: c_int) -> Result<(i32, i32)> { in wrap_socketpair()
239 pub fn wrap_pipe() -> Result<(i32, i32)> { in wrap_pipe()
261 pub fn wrap_bind(socket_fd: i32, addr: &UdsAddr) -> Result<()> { in wrap_bind()
282 pub fn wrap_connect(socket_fd: i32, addr: &UdsAddr) -> Result<()> { in wrap_connect()

Completed in 12 milliseconds

123