Home
last modified time | relevance | path

Searched refs:outcome (Results 1 – 25 of 38) sorted by relevance

12

/AliOS-Things-master/components/oss/src/
A DOssClientImpl.cc979 outcome.result().payload(),outcome.result().headerCollection())); in GetObject()
1147 outcome.result().payload(), outcome.result().headerCollection())); in ProcessObject()
1160 outcome.result().payload(), outcome.result().headerCollection())); in SelectObject()
1175 outcome.result().RequestId(), outcome.result().payload()); in CreateSelectObjectMeta()
1353 if(outcome.isSuccess()) in ListMultipartUploads()
1369 if(outcome.isSuccess()) in ListParts()
1507 return outcome; in ResumableDownloadObject()
1520 if(outcome.isSuccess()) in PutLiveChannelStatus()
1533 if(outcome.isSuccess()) in PutLiveChannel()
1548 if(outcome.isSuccess()) in PostVodPlaylist()
[all …]
A Doss_app.cpp165 auto outcome = client.PutObject(request); in oss_upload_local_file() local
170 if (!outcome.isSuccess()) { in oss_upload_local_file()
208 auto outcome = client.PutObject(request); in oss_upload_local_file() local
213 if (!outcome.isSuccess()) { in oss_upload_local_file()
300 auto outcome = client.PutObject(request); in oss_upload_file() local
305 if (!outcome.isSuccess()) { in oss_upload_file()
343 auto outcome = client.PutObject(request); in oss_upload_file() local
348 if (!outcome.isSuccess()) { in oss_upload_file()
416 auto outcome = client.PutObject(request); in oss_upload_local_content() local
420 if (!outcome.isSuccess()) { in oss_upload_local_content()
[all …]
/AliOS-Things-master/components/ucloud_ai/src/model/
A Docr.cc33 auto outcome = client.recognizeIdentityCard(request); in recognizeIdentityCardFaceSide() local
63 address = outcome.result().getData().frontResult.address; in recognizeIdentityCardFaceSide()
65 gender = outcome.result().getData().frontResult.gender; in recognizeIdentityCardFaceSide()
103 auto outcome = client.recognizeIdentityCard(request); in recognizeIdentityCardBackSide() local
111 issue = outcome.result().getData().backResult.issue; in recognizeIdentityCardBackSide()
144 auto outcome = client.recognizeBankCard(request); in recognizeBankCard() local
152 bankName = outcome.result().getData().bankName; in recognizeBankCard()
153 cardNumber = outcome.result().getData().cardNumber; in recognizeBankCard()
154 validDate = outcome.result().getData().validDate; in recognizeBankCard()
188 auto outcome = client.recognizeCharacter(request); in recognizeCharacter() local
[all …]
A Dobjectdet.cc33 auto outcome = client.detectObject(request); in detectObject() local
35 cout << "error code: " << outcome.error().errorCode() << endl; in detectObject()
39 cout << "object height:" << outcome.result().getData().height << endl; in detectObject()
40 cout << "object width:" << outcome.result().getData().width << endl; in detectObject()
41 objectNum = outcome.result().getData().elements.size(); in detectObject()
50 type = outcome.result().getData().elements[i].type; in detectObject()
84 auto outcome = client.detectMainBody(request); in detectMainBody() local
86 cout << "error code: " << outcome.error().errorCode() << endl; in detectMainBody()
88 cout << "object x:" << outcome.result().getData().location.x << endl; in detectMainBody()
92 result.mainbody.location.x = outcome.result().getData().location.x; in detectMainBody()
[all …]
A Dimagerecog.cc32 auto outcome = client.classifyingRubbish(request); in classifyingRubbish() local
34 cout << "error code: " << outcome.error().errorCode() << endl; in classifyingRubbish()
35 cout << "requestId: " << outcome.result().requestId() << endl << endl; in classifyingRubbish()
36 cout << "sensitive: " << outcome.result().getData().sensitive << endl; in classifyingRubbish()
38 for (i = 0; i < outcome.result().getData().elements.size(); i++) { in classifyingRubbish()
43 rubbish = outcome.result().getData().elements[i].rubbish; in classifyingRubbish()
44 category = outcome.result().getData().elements[i].category; in classifyingRubbish()
79 auto outcome = client.detectFruits(request); in detectFruits() local
81 cout << "error code: " << outcome.error().errorCode() << endl; in detectFruits()
84 for (i = 0; i < outcome.result().getData().elements.size(); i++) { in detectFruits()
[all …]
A Dfacebody.cc35 auto outcome = client.compareFace(request); in compareFace() local
37 cout << "error code: " << outcome.error().errorCode() << endl; in compareFace()
41 cout << "x:" << outcome.result().getData().rectAList[0] << endl; in compareFace()
42 cout << "y:" << outcome.result().getData().rectAList[1] << endl; in compareFace()
43 cout << "w:" << outcome.result().getData().rectAList[2] << endl; in compareFace()
44 cout << "h" << outcome.result().getData().rectAList[3] << endl; in compareFace()
79 auto outcome = client.recognizeExpression(request); in recognizeExpression() local
81 cout << "error code: " << outcome.error().errorCode() << endl; in recognizeExpression()
129 auto outcome = client.generateHumanAnimeStyle(request); in generateHumanAnimeStyle() local
131 cout << "error code: " << outcome.error().errorCode() << endl; in generateHumanAnimeStyle()
[all …]
A Dimageseg.cc33 auto outcome = client.segmentCommonImage(request); in segmentCommonImage() local
35 cout << "error code: " << outcome.error().errorCode() << endl; in segmentCommonImage()
36 cout << "requestId: " << outcome.result().requestId() << endl << endl; in segmentCommonImage()
37 cout << "image url: " << outcome.result().getData().imageURL << endl; in segmentCommonImage()
39 outImageUrl = outcome.result().getData().imageURL; in segmentCommonImage()
71 auto outcome = client.segmentFace(request); in segmentFace() local
73 cout << "error code: " << outcome.error().errorCode() << endl; in segmentFace()
74 cout << "requestId: " << outcome.result().requestId() << endl << endl; in segmentFace()
76 if (outcome.result().getData().elements.size() == 0) in segmentFace()
83 cout << i << "x: " << outcome.result().getData().elements[i].x << endl; in segmentFace()
[all …]
A Dchatbot.cc43 auto outcome = client.commonResponse(request); in chatbot() local
44 if (!outcome.isSuccess()) { in chatbot()
45 cout << "error code: " << outcome.error().errorCode() << endl; in chatbot()
46 cout << "error message: " << outcome.error().errorMessage() << endl; in chatbot()
47 cout << "error host: " << outcome.error().host() << endl; in chatbot()
48 cout << "error requestId: " << outcome.error().requestId() << endl; in chatbot()
49 cout << "error detail: " << outcome.error().detail() << endl; in chatbot()
53 cout << endl << "add item returns: " << outcome.result().payload() << endl << endl; in chatbot()
54 response = strdup(outcome.result().payload().c_str()); in chatbot()
A Dimageenhan.cc34 auto outcome = client.erasePerson(request); in erasePerson() local
36 cout << "error code: " << outcome.error().errorCode() << endl; in erasePerson()
37 cout << "requestId: " << outcome.result().requestId() << endl << endl; in erasePerson()
38 cout << "imageUrl: " << outcome.result().getData().imageUrl << endl; in erasePerson()
40 url = outcome.result().getData().imageUrl; in erasePerson()
76 auto outcome = client.extendImageStyle(request); in extendImageStyle() local
78 cout << "error code: " << outcome.error().errorCode() << endl; in extendImageStyle()
79 cout << "requestId: " << outcome.result().requestId() << endl << endl; in extendImageStyle()
81 cout << "outImageURL: " << outcome.result().getData().url << endl; in extendImageStyle()
83 outMajorURL = outcome.result().getData().majorUrl; in extendImageStyle()
[all …]
A Dcommon.cc92 auto outcome = client.commonResponse(request); in getTokenId() local
93 if (!outcome.isSuccess()) { in getTokenId()
94 cout << "error code: " << outcome.error().errorCode() << endl; in getTokenId()
95 cout << "error message: " << outcome.error().errorMessage() << endl; in getTokenId()
96 cout << "error host: " << outcome.error().host() << endl; in getTokenId()
97 cout << "error requestId: " << outcome.error().requestId() << endl; in getTokenId()
98 cout << "error detail: " << outcome.error().detail() << endl; in getTokenId()
102 cout << endl << "add item returns: " << outcome.result().payload() << endl << endl; in getTokenId()
103 response = strdup(outcome.result().payload().c_str()); in getTokenId()
/AliOS-Things-master/components/ucloud_ai/src/model/aliyun-openapi/facebody/src/
A DFacebodyClient.cc62 if (outcome.isSuccess()) in addFace()
98 if (outcome.isSuccess()) in addFaceEntity()
134 if (outcome.isSuccess()) in blurFace()
170 if (outcome.isSuccess()) in bodyPosture()
206 if (outcome.isSuccess()) in compareFace()
242 if (outcome.isSuccess()) in countCrowd()
278 if (outcome.isSuccess()) in createFaceDb()
314 if (outcome.isSuccess()) in deleteFace()
350 if (outcome.isSuccess()) in deleteFaceDb()
386 if (outcome.isSuccess()) in deleteFaceEntity()
[all …]
/AliOS-Things-master/components/ucloud_ai/src/model/aliyun-openapi/ocr/src/
A DOcrClient.cc62 if (outcome.isSuccess()) in detectCardScreenshot()
98 if (outcome.isSuccess()) in getAsyncJobResult()
134 if (outcome.isSuccess()) in recognizeAccountPage()
170 if (outcome.isSuccess()) in recognizeBankCard()
206 if (outcome.isSuccess()) in recognizeBusinessCard()
242 if (outcome.isSuccess()) in recognizeBusinessLicense()
278 if (outcome.isSuccess()) in recognizeCharacter()
314 if (outcome.isSuccess()) in recognizeChinapassport()
350 if (outcome.isSuccess()) in recognizeDriverLicense()
386 if (outcome.isSuccess()) in recognizeDrivingLicense()
[all …]
/AliOS-Things-master/components/ucloud_ai/src/model/aliyun-openapi/imageseg/src/
A DImagesegClient.cc62 if (outcome.isSuccess()) in changeSky()
98 if (outcome.isSuccess()) in getAsyncJobResult()
134 if (outcome.isSuccess()) in parseFace()
170 if (outcome.isSuccess()) in refineMask()
206 if (outcome.isSuccess()) in segmentAnimal()
242 if (outcome.isSuccess()) in segmentBody()
278 if (outcome.isSuccess()) in segmentCloth()
314 if (outcome.isSuccess()) in segmentCommodity()
350 if (outcome.isSuccess()) in segmentCommonImage()
386 if (outcome.isSuccess()) in segmentFace()
[all …]
/AliOS-Things-master/components/ucloud_ai/src/model/aliyun-openapi/imageenhan/src/
A DImageenhanClient.cc62 if (outcome.isSuccess()) in assessComposition()
98 if (outcome.isSuccess()) in assessExposure()
134 if (outcome.isSuccess()) in assessSharpness()
170 if (outcome.isSuccess()) in changeImageSize()
206 if (outcome.isSuccess()) in colorizeImage()
242 if (outcome.isSuccess()) in enhanceImageColor()
278 if (outcome.isSuccess()) in erasePerson()
314 if (outcome.isSuccess()) in extendImageStyle()
350 if (outcome.isSuccess()) in generateDynamicImage()
386 if (outcome.isSuccess()) in getAsyncJobResult()
[all …]
/AliOS-Things-master/components/ucloud_ai/src/model/aliyun-openapi/objectdet/src/
A DObjectdetClient.cc62 if (outcome.isSuccess()) in classifyVehicleInsurance()
98 if (outcome.isSuccess()) in detectMainBody()
134 if (outcome.isSuccess()) in detectObject()
170 if (outcome.isSuccess()) in detectTransparentImage()
206 if (outcome.isSuccess()) in detectVehicle()
242 if (outcome.isSuccess()) in detectWhiteBaseImage()
278 if (outcome.isSuccess()) in generateVehicleRepairPlan()
314 if (outcome.isSuccess()) in getVehicleRepairPlan()
350 if (outcome.isSuccess()) in recognizeVehicleDamage()
386 if (outcome.isSuccess()) in recognizeVehicleDashboard()
[all …]
/AliOS-Things-master/components/ucloud_ai/src/model/aliyun-openapi/imagerecog/src/
A DImagerecogClient.cc62 if (outcome.isSuccess()) in classifyingRubbish()
98 if (outcome.isSuccess()) in detectFruits()
101 return DetectFruitsOutcome(outcome.error()); in detectFruits()
134 if (outcome.isSuccess()) in detectImageElements()
170 if (outcome.isSuccess()) in recognizeImageColor()
206 if (outcome.isSuccess()) in recognizeImageStyle()
242 if (outcome.isSuccess()) in recognizeLogo()
278 if (outcome.isSuccess()) in recognizeScene()
314 if (outcome.isSuccess()) in recognizeVehicleType()
350 if (outcome.isSuccess()) in taggingImage()
[all …]
/AliOS-Things-master/components/ucloud_ai/src/model/aliyun-openapi/examples/facebody/
A Dfacebody.cc26 auto outcome = client.compareFace(request); in main() local
28 cout << "error code: " << outcome.error().errorCode() << endl; in main()
29 cout << "requestId: " << outcome.result().requestId() << endl << endl; in main()
31 cout << outcome.result().getData().confidence << endl; in main()
32 cout << outcome.result().getData().rectAList[0] << endl; in main()
33 cout << outcome.result().getData().rectAList[1] << endl; in main()
34 cout << outcome.result().getData().rectAList[2] << endl; in main()
35 cout << outcome.result().getData().rectAList[3] << endl; in main()
/AliOS-Things-master/components/oss/src/resumable/
A DResumableUploader.cc124 if (outcome.isSuccess()) { in Upload()
133 outcomes.push_back(outcome); in Upload()
149 for (const auto& outcome : outcomes) { in Upload() local
150 if (!outcome.isSuccess()) { in Upload()
185 if (!outcome.isSuccess()) { in Upload()
223 if(!outcome.isSuccess()){ in prepare()
224 err = outcome.error(); in prepare()
229 uploadID_ = outcome.result().UploadId(); in prepare()
334 if(!outcome.isSuccess()){ in getPartsToUpload()
335 err = outcome.error(); in getPartsToUpload()
[all …]
A DResumableCopier.cc95 if (outcome.isSuccess()) { in Copy()
99 outcomes.push_back(outcome); in Copy()
100 if (outcome.isSuccess()) { in Copy()
120 for (const auto& outcome : outcomes) { in Copy() local
121 if (!outcome.isSuccess()) { in Copy()
205 if (!outcome.isSuccess()) { in prepare()
206 err = outcome.error(); in prepare()
211 uploadID_ = outcome.result().UploadId(); in prepare()
350 if (!outcome.isSuccess()) { in getPartsToUploadCopy()
351 err = outcome.error(); in getPartsToUploadCopy()
[all …]
/AliOS-Things-master/components/ucloud_ai/src/model/aliyun-openapi/test/function_test/nlp/
A Dnlp_wordsegment_ft.cc32 auto outcome = client.commonResponse(request); in TEST() local
33 EXPECT_TRUE(outcome.error().errorCode().empty()); in TEST()
35 EXPECT_TRUE(outcome.result().payload() == expected); in TEST()
58 auto outcome = client.commonResponse(request); in TEST() local
60 EXPECT_TRUE(outcome.error().detail() == error); in TEST()
85 auto outcome = client.commonResponse(request); in TEST() local
86 EXPECT_TRUE(outcome.error().errorCode() == "OperationTimeoutError"); in TEST()
114 auto outcome = client.commonResponse(request); in TEST() local
115 EXPECT_TRUE(outcome.error().errorCode() == "OperationTimeoutError"); in TEST()
143 auto outcome = client.commonResponse(request); in TEST() local
[all …]
/AliOS-Things-master/components/py_engine/engine/lib/tinytest/
A Dtinytest.c91 static enum outcome
95 int outcome; in testcase_run_bare_() local
106 outcome = cur_test_outcome; in testcase_run_bare_()
110 outcome = FAIL; in testcase_run_bare_()
113 return outcome; in testcase_run_bare_()
120 static enum outcome
226 enum outcome outcome; local
255 if (outcome == OK) {
259 } else if (outcome == SKIP) {
270 exit(outcome==OK ? 0 : (outcome==SKIP?MAGIC_EXITCODE : 1));
[all …]
/AliOS-Things-master/components/ucloud_ai/src/model/aliyun-openapi/core/src/sts/
A DStsClient.cc53 auto outcome = makeRequest(ENDPOINT, request); in assumeRole() local
55 if (outcome.isSuccess()) in assumeRole()
56 return AssumeRoleOutcome(AssumeRoleResult(outcome.result())); in assumeRole()
58 return AssumeRoleOutcome(Error(outcome.error())); in assumeRole()
83 auto outcome = makeRequest(ENDPOINT, request); in getCallerIdentity() local
85 if (outcome.isSuccess()) in getCallerIdentity()
86 return GetCallerIdentityOutcome(GetCallerIdentityResult(outcome.result())); in getCallerIdentity()
88 return GetCallerIdentityOutcome(Error(outcome.error())); in getCallerIdentity()
/AliOS-Things-master/components/oss/src/client/
A DClient.cc58 auto outcome = AttemptOnceRequest(endpoint, request, method); in AttemptRequest() local
59 if (outcome.isSuccess()) { in AttemptRequest()
60 return outcome; in AttemptRequest()
63 return outcome; in AttemptRequest()
67 outcome.error().Status() == 403 && in AttemptRequest()
68 outcome.error().Message().find("RequestTimeTooSkewed")) { in AttemptRequest()
69 auto serverTimeStr = analyzeServerTime(outcome.error().Message()); in AttemptRequest()
84 if (retryStrategy == nullptr || !retryStrategy->shouldRetry(outcome.error(), retry)) { in AttemptRequest()
85 return outcome; in AttemptRequest()
87 long sleepTmeMs = retryStrategy->calcDelayTimeMs(outcome.error(), retry); in AttemptRequest()
/AliOS-Things-master/components/ucloud_ai/src/model/aliyun-openapi/core/src/
A DEcsMetadataFetcher.cc52 auto outcome = client->makeRequest(request); in getMetadata() local
54 if (outcome.isSuccess()) in getMetadata()
55 return std::string(outcome.result().body(), outcome.result().bodySize()); in getMetadata()
57 return outcome.error().errorCode(); in getMetadata()
A DCoreClient.cc54 auto outcome = httpClient_->makeRequest(r); in AttemptRequest() local
55 if (!outcome.isSuccess()) in AttemptRequest()
56 return outcome; in AttemptRequest()
57 if (hasResponseError(outcome.result())) in AttemptRequest()
58 return HttpClient::HttpResponseOutcome(buildCoreError(outcome.result())); in AttemptRequest()
60 return outcome; in AttemptRequest()

Completed in 53 milliseconds

12