/test/xts/acts/global_lite/i18n_lite/week_plural_number/src/ |
D | week_plural_number_test.cpp | 55 int out = formatter.GetPluralRuleIndex(number, status); variable 57 EXPECT_TRUE(expect == out); 59 out = formatter.GetPluralRuleIndex(number, status); 60 EXPECT_TRUE(expect == out); 62 out = formatter.GetPluralRuleIndex(number, status); 63 EXPECT_TRUE(expect == out); 76 int out = formatter.GetPluralRuleIndex(number, status); variable 78 EXPECT_TRUE(expect == out); 80 out = formatter.GetPluralRuleIndex(number, status); 81 EXPECT_TRUE(expect == out); [all …]
|
/test/testfwk/arkxtest/uitest/core/ |
D | window_operator.cpp | 73 …static bool CheckOperational(WindowAction action, WindowMode mode, ApiReplyInfo &out, string &butt… in CheckOperational() argument 81 … out.exception_ = ApiCallErr(ERR_OPERATION_UNSUPPORTED, OPERATIONS[index].message); in CheckOperational() 86 … out.exception_ = ApiCallErr(ERR_INTERNAL, "No such window mode-action combination registered"); in CheckOperational() 95 void WindowOperator::CallBar(ApiReplyInfo &out) in CallBar() argument 97 Focus(out); in CallBar() 107 driver_.PerformTouch(touch, options_, out.exception_); in CallBar() 111 void WindowOperator::Focus(ApiReplyInfo &out) in Focus() argument 120 driver_.PerformTouch(touch, options_, out.exception_); in Focus() 124 void WindowOperator::MoveTo(uint32_t endX, uint32_t endY, ApiReplyInfo &out) in MoveTo() argument 126 Focus(out); in MoveTo() [all …]
|
D | window_operator.h | 27 void Focus(ApiReplyInfo &out); 30 void MoveTo(uint32_t endX, uint32_t endY, ApiReplyInfo &out); 33 void Resize(int32_t width, int32_t highth, ResizeDirection direction, ApiReplyInfo &out); 36 void Split(ApiReplyInfo &out); 39 void Maximize(ApiReplyInfo &out); 42 void Resume(ApiReplyInfo &out); 45 void Minimize(ApiReplyInfo &out); 48 void Close(ApiReplyInfo &out); 56 void CallBar(ApiReplyInfo &out); 59 void BarAction(string_view buttonId, ApiReplyInfo &out);
|
D | frontend_api_handler.cpp | 83 ApiReplyInfo out; in OnEvent() local 90 server.Callback(in, out); in OnEvent() 290 void FrontendApiServer::ApiMapPost(const string &oldApiName, ApiReplyInfo &out) const in ApiMapPost() 292 json &value = out.resultValue_; in ApiMapPost() 295 ErrCodeMapping(out.exception_); in ApiMapPost() 335 void FrontendApiServer::Callback(const ApiCallInfo& in, ApiReplyInfo& out) const in Callback() 338 out.exception_ = ApiCallErr(ERR_INTERNAL, "No callback handler set!"); in Callback() 341 callbackHandler_(in, out); in Callback() 368 void FrontendApiServer::Call(const ApiCallInfo &in, ApiReplyInfo &out) const in Call() 379 … out.exception_ = ApiCallErr(ERR_INTERNAL, "No handler found for api '" + call.apiId_ + "'"); in Call() [all …]
|
D | rect_algorithm.cpp | 125 static void FindMaxVisibleRegion(const vector<Rect>& overlays, Rect& out) in FindMaxVisibleRegion() argument 131 out = Rect(0, 0, 0, 0); in FindMaxVisibleRegion() 139 if (width * height <= out.GetWidth() * out.GetHeight()) { in FindMaxVisibleRegion() 151 out = area; in FindMaxVisibleRegion() 157 …l RectAlgorithm::ComputeMaxVisibleRegion(const Rect& rect, const vector<Rect>& overlays, Rect& out) in ComputeMaxVisibleRegion() argument 167 out = Rect(0, 0, 0, 0); in ComputeMaxVisibleRegion() 173 out = rect; in ComputeMaxVisibleRegion() 188 FindMaxVisibleRegion(filteredOverlays, out); in ComputeMaxVisibleRegion() 189 return out.GetHeight() > 0 && out.GetWidth() > 0; in ComputeMaxVisibleRegion()
|
D | frontend_api_handler.h | 37 using ApiInvokeHandler = std::function<void(const ApiCallInfo& in, ApiReplyInfo& out)>; 72 void Call(const ApiCallInfo& in, ApiReplyInfo& out) const; 84 void Callback(const ApiCallInfo& in, ApiReplyInfo& out) const; 97 void ApiMapPost(const std::string &oldApiName, ApiReplyInfo &out) const;
|
D | ui_model.cpp | 112 void Widget::WrapperWidgetToJson(nlohmann::json &out) in WrapperWidgetToJson() argument 121 out[ATTR_NAMES[i].data()] = attributeVec_[i]; in WrapperWidgetToJson() 123 out[ATTR_NAMES[UiAttr::VISIBLE].data()] = attributeVec_[UiAttr::VISIBLE]; in WrapperWidgetToJson() 124 out[ATTR_NAMES[UiAttr::HASHCODE].data()] = attributeVec_[UiAttr::HASHCODE]; in WrapperWidgetToJson() 125 out[ATTR_NAMES[UiAttr::HINT].data()] = attributeVec_[UiAttr::HINT]; in WrapperWidgetToJson()
|
/test/xts/device_attest_lite/test/tdd/gtest/ |
D | attest_tdd_mock_hal.c | 89 uint8_t *out = (uint8_t *)tokenInfo->tokenId; in AttestReadToken() local 91 ret = AttestSeriaToBinary(tokenId, &out, TOKEN_ID_ENCRYPT_LEN); in AttestReadToken() 96 out = (uint8_t *)tokenInfo->tokenValue; in AttestReadToken() 98 ret = AttestSeriaToBinary(tokenValue, &out, TOKEN_VALUE_ENCRYPT_LEN); in AttestReadToken() 103 out = (uint8_t *)tokenInfo->salt; in AttestReadToken() 105 ret = AttestSeriaToBinary(salt, &out, SALT_ENCRYPT_LEN); in AttestReadToken() 110 out = (uint8_t *)tokenInfo->version; in AttestReadToken() 112 ret = AttestSeriaToBinary(version, &out, VERSION_ENCRYPT_LEN); in AttestReadToken()
|
/test/xts/tools/lite/reliability/ |
D | utils.py | 53 (out, err) = proc.communicate(timeout=timeout) 55 out = get_decode(out).strip() 59 return "%s\n %s" % (out, err) if err else out 61 return err if err else out
|
/test/xts/acts/sample_lite/hcpptest_posix/src/ |
D | IsPrimeParamTest.cpp | 23 bool out; member 47 bool out = GetParam().out; in TEST_P() local 49 EXPECT_EQ(out, IsPrimeNum(in)); in TEST_P()
|
/test/xts/device_attest/services/devattest_ability/test/tdd/gtest/src/ |
D | attest_tdd_mock_hal.c | 88 uint8_t *out = (uint8_t *)tokenInfo->tokenId; in AttestReadToken() local 90 ret = AttestSeriaToBinary(tokenId, &out, TOKEN_ID_ENCRYPT_LEN); in AttestReadToken() 95 out = (uint8_t *)tokenInfo->tokenValue; in AttestReadToken() 97 ret = AttestSeriaToBinary(tokenValue, &out, TOKEN_VALUE_ENCRYPT_LEN); in AttestReadToken() 102 out = (uint8_t *)tokenInfo->salt; in AttestReadToken() 104 ret = AttestSeriaToBinary(salt, &out, SALT_ENCRYPT_LEN); in AttestReadToken() 109 out = (uint8_t *)tokenInfo->version; in AttestReadToken() 111 ret = AttestSeriaToBinary(version, &out, VERSION_ENCRYPT_LEN); in AttestReadToken()
|
/test/testfwk/arkxtest/uitest/napi/ |
D | ui_event_observer_napi.cpp | 90 …static void InitCallbackContext(napi_env env, const ApiCallInfo &in, ApiReplyInfo &out, EventCallb… in InitCallbackContext() argument 94 … out.exception_ = ApiCallErr(ERR_INTERNAL, "Api dose not support callback: " + in.apiId_); in InitCallbackContext() 95 LOG_E("%{public}s", out.exception_.message_.c_str()); in InitCallbackContext() 111 … out.exception_ = ApiCallErr(INTERNAL_ERROR, "UIEventObserver is not referenced: " + observerId); in InitCallbackContext() 112 LOG_E("%{public}s", out.exception_.message_.c_str()); in InitCallbackContext() 116 …out.exception_ = ApiCallErr(INTERNAL_ERROR, "JsCallbackFunction is not referenced: " + callbackId); in InitCallbackContext() 117 LOG_E("%{public}s", out.exception_.message_.c_str()); in InitCallbackContext() 131 …id UiEventObserverNapi::HandleEventCallback(napi_env env, const ApiCallInfo &in, ApiReplyInfo &out) in HandleEventCallback() argument 134 InitCallbackContext(env, in, out, *context); in HandleEventCallback() 135 if (out.exception_.code_ != NO_ERROR) { in HandleEventCallback()
|
/test/testfwk/arkxtest/uitest/addon/ |
D | extension_executor.cpp | 56 RetCode (*callThroughMessage)(Text in, ReceiveBuffer out, bool *fatalError); 64 RetCode (*getUiTestVersion)(ReceiveBuffer out); 67 RetCode (*initLowLevelFunctions)(LowLevelFunctions *out); 148 WriteToBuffer(out, replyJson.dump()); \ 156 static RetCode CallThroughMessage(Text in, ReceiveBuffer out, bool *fatalError) in CallThroughMessage() argument 166 CALL_THROUGH_CHECK(out.data != nullptr, "Null output buffer", ERR_BAD_ARG, true, ptr); in CallThroughMessage() 167 CALL_THROUGH_CHECK(out.size != nullptr, "Null output size pointer", ERR_BAD_ARG, true, ptr); in CallThroughMessage() 192 return WriteToBuffer(out, result.dump()); in CallThroughMessage() 198 … FrontendApiServer::Get().SetCallbackHandler([handler](const ApiCallInfo& in, ApiReplyInfo& out) { in SetCallbackMessageHandler() argument 291 static RetCode InitLowLevelFunctions(LowLevelFunctions *out) in InitLowLevelFunctions() argument [all …]
|
/test/xts/acts/multimedia/media/media_cpp_standard/codecFormatNdk/ |
D | ActsCodecFormatNdkTest.cpp | 43 int32_t out ; in CheckDecDesc() local 45 bool res = OH_AVFormat_GetIntValue(OutDesc, t.first.c_str(), &out); in CheckDecDesc() 46 cout << "key: " << t.first << "; out: " << out <<endl; in CheckDecDesc() 51 if (out != t.second) { in CheckDecDesc() 54 << ", actual: "<< out << endl; in CheckDecDesc() 57 out = 0; in CheckDecDesc()
|
/test/xts/device_attest_lite/services/core/utils/ |
D | attest_utils_memleak.c | 140 char* out = malloc(len); in StrdupMemInfo() local 141 if (out == NULL) { in StrdupMemInfo() 144 (void)memset_s(out, len, 0, len); in StrdupMemInfo() 145 if (memcpy_s(out, len, input, strlen(input)) != 0) { in StrdupMemInfo() 146 free(out); in StrdupMemInfo() 149 return out; in StrdupMemInfo()
|
D | attest_utils.c | 85 char* out = ATTEST_MEM_MALLOC(outputLen); in AttestStrdup() local 86 if (out == NULL) { in AttestStrdup() 89 if (memcpy_s(out, outputLen, input, inputLen) != 0) { in AttestStrdup() 90 ATTEST_MEM_FREE(out); in AttestStrdup() 93 return out; in AttestStrdup()
|
/test/xts/device_attest/services/core/utils/ |
D | attest_utils_memleak.c | 142 char* out = malloc(outputLen); in StrdupMemInfo() local 143 if (out == NULL) { in StrdupMemInfo() 146 (void)memset_s(out, outputLen, 0, outputLen); in StrdupMemInfo() 147 if (memcpy_s(out, outputLen, input, inputLen) != 0) { in StrdupMemInfo() 148 free(out); in StrdupMemInfo() 151 return out; in StrdupMemInfo()
|
D | attest_utils.c | 82 char* out = ATTEST_MEM_MALLOC(outputLen); in AttestStrdup() local 83 if (out == NULL) { in AttestStrdup() 86 if (memcpy_s(out, outputLen, input, inputLen) != 0) { in AttestStrdup() 87 ATTEST_MEM_FREE(out); in AttestStrdup() 90 return out; in AttestStrdup()
|
/test/testfwk/developer_test/aw/cxx/hwext/ |
D | perf.h | 132 bool GetTestResult(double *out = nullptr) 134 if (out != nullptr) { 135 *out = m_dbTestResult;
|
/test/xts/acts/global_lite/i18n_lite/resource_parse_load/src/ |
D | hap_resource_test.cpp | 263 int32_t out = HapParser::ReadIndexFromFile(hapPath, in LoadFromHap() local 265 if (out != OK) { in LoadFromHap() 266 HILOG_ERROR("ReadIndexFromFile failed! retcode:%d,err:%s", out, errOut.c_str()); in LoadFromHap() 272 out = HapParser::ParseResHex((char *)buf, bufLen, *resDesc, defaultConfig); in LoadFromHap() 273 if (out != OK) { in LoadFromHap() 276 HILOG_ERROR("ParseResHex failed! retcode:%d", out); in LoadFromHap()
|
/test/xts/acts/ |
D | runtest.sh | 39 OUT_DIR=${SCRIPT_DIR}/../../../out 48 ACTS_HOME=$SCRIPT_DIR/../../../out/$BUILD_VARIANT/suites/acts 49 MODULE_INFO_FILE=$SCRIPT_DIR/../../../out/$BUILD_VARIANT/suites/acts/testcases/module_info.list
|
/test/xts/hats/ |
D | runtest.sh | 39 OUT_DIR=${SCRIPT_DIR}/../../../out 48 HATS_HOME=$SCRIPT_DIR/../../../out/$BUILD_VARIANT/suites/hats 49 MODULE_INFO_FILE=$SCRIPT_DIR/../../../out/$BUILD_VARIANT/suites/hats/testcases/module_info.list
|
/test/xts/dcts/ |
D | runtest.sh | 39 OUT_DIR=${SCRIPT_DIR}/../../../out 48 HATS_HOME=$SCRIPT_DIR/../../../out/$BUILD_VARIANT/suites/dcts 49 MODULE_INFO_FILE=$SCRIPT_DIR/../../../out/$BUILD_VARIANT/suites/dcts/testcases/module_info.list
|
/test/testfwk/xdevice/plugins/ohos/src/ohos/environment/ |
D | device.py | 241 out = self.execute_shell_command( 243 if not out: 245 LOG.info(out) 246 params = parse_strings_key_value(out) 740 out = self.execute_shell_command("netstat -anp | grep {}".format(port)) 741 self.log.debug(out) 742 if out: 743 out = out.split("\n") 744 for data in out: 880 … out = self.execute_shell_command("snapshot_display -f /data/local/tmp/{}".format(picture_name)) [all …]
|
/test/testfwk/arkxtest/uitest/test/ |
D | mock_controller.h | 31 void GetUiWindows(std::vector<Window> &out) override in GetUiWindows() argument 34 out.emplace_back(iter->second); in GetUiWindows()
|