/foundation/distributeddatamgr/relational_store/frameworks/js/napi/cloud_data/src/ |
H A D | napi_queue.cpp | 136 napi_value result[RESULT_ALL] = { nullptr }; in GenerateOutput() local 138 napi_get_undefined(ctx.env, &result[RESULT_ERROR]); in GenerateOutput() 142 result[RESULT_DATA] = output; in GenerateOutput() 154 napi_create_error(ctx.env, errorCode, message, &result[RESULT_ERROR]); in GenerateOutput() 155 napi_get_undefined(ctx.env, &result[RESULT_DATA]); in GenerateOutput() 160 napi_resolve_deferred(ctx.env, ctx.deferred, result[RESULT_DATA]); in GenerateOutput() 163 napi_reject_deferred(ctx.env, ctx.deferred, result[RESULT_ERROR]); in GenerateOutput() 170 napi_call_function(ctx.env, nullptr, callback, RESULT_ALL, result, &callbackResult); in GenerateOutput()
|
/foundation/distributeddatamgr/relational_store/frameworks/js/napi/common/mock/include/ |
H A D | napi_async_proxy.h | 130 napi_value result[RESULT_COUNT] = { 0 }; in DoAsyncWork() 132 napi_get_undefined(env, &result[0]); in DoAsyncWork() 133 result[1] = output; in DoAsyncWork() 137 napi_create_error(env, nullptr, message, &result[0]); in DoAsyncWork() 138 napi_get_undefined(env, &result[1]); in DoAsyncWork() 143 napi_resolve_deferred(env, context->deferred, result[1]); in DoAsyncWork() 145 napi_reject_deferred(env, context->deferred, result[0]); in DoAsyncWork() 152 napi_call_function(env, nullptr, callback, RESULT_COUNT, result, &callbackResult); in DoAsyncWork()
|
/foundation/distributeddatamgr/relational_store/test/native/appdatafwk/unittest/ |
H A D | serializable_test.cpp | 186 Serializable::json result = Serializable::ToJson(jsonStr); in HWTEST_F() local 187 ASSERT_FALSE(result.is_discarded()); in HWTEST_F() 198 Serializable::json result = Serializable::ToJson(jsonStr); in HWTEST_F() local 199 ASSERT_FALSE(result.is_discarded()); in HWTEST_F() 210 Serializable::json result = Serializable::ToJson(jsonStr); in HWTEST_F() local 211 ASSERT_TRUE(result.empty()); in HWTEST_F() 222 Serializable::json result = Serializable::ToJson(jsonStr); in HWTEST_F() local 223 ASSERT_FALSE(result.is_discarded()); in HWTEST_F()
|
/foundation/distributeddatamgr/relational_store/frameworks/js/napi/dataability/include/ |
H A D | napi_async_proxy.h | 141 napi_value result[RESULT_COUNT] = { 0 }; in DoAsyncWork() 143 napi_get_undefined(env, &result[0]); in DoAsyncWork() 144 result[1] = output; in DoAsyncWork() 148 napi_create_error(env, nullptr, message, &result[0]); in DoAsyncWork() 149 napi_get_undefined(env, &result[1]); in DoAsyncWork() 154 napi_resolve_deferred(env, context->deferred, result[1]); in DoAsyncWork() 156 napi_reject_deferred(env, context->deferred, result[0]); in DoAsyncWork() 163 napi_call_function(env, nullptr, callback, RESULT_COUNT, result, &callbackResult); in DoAsyncWork()
|
/foundation/distributeddatamgr/udmf/framework/jskitsimpl/common/ |
H A D | napi_queue.cpp | 103 napi_value result[RESULT_ALL] = { nullptr }; in GenerateOutput() local 106 napi_get_undefined(ctxt->env, &result[RESULT_ERROR]); in GenerateOutput() 110 result[RESULT_DATA] = ctxt->output; in GenerateOutput() 122 napi_create_error(ctxt->env, code, message, &result[RESULT_ERROR]); in GenerateOutput() 123 napi_get_undefined(ctxt->env, &result[RESULT_DATA]); in GenerateOutput() 129 napi_resolve_deferred(ctxt->env, ctxt->deferred, result[RESULT_DATA]); in GenerateOutput() 132 napi_reject_deferred(ctxt->env, ctxt->deferred, result[RESULT_ERROR]); in GenerateOutput() 140 napi_call_function(ctxt->env, nullptr, callback, RESULT_ALL, result, &callbackResult); in GenerateOutput()
|
/foundation/window/window_manager/window_scene/test/dms_unittest/ |
H A D | screen_setting_helper_test.cpp | 284 auto result = ScreenSettingHelper::GetSettingRotation(rotation, key); in HWTEST_F() local 285 ASSERT_EQ(result, false); in HWTEST_F() 297 auto result = ScreenSettingHelper::GetSettingRotation(rotation, key); in HWTEST_F() local 298 ASSERT_EQ(result, true); in HWTEST_F() 322 auto result = ScreenSettingHelper::GetSettingRotation(screenId, key); in HWTEST_F() local 323 ASSERT_EQ(result, false); in HWTEST_F() 335 auto result = ScreenSettingHelper::GetSettingRotation(screenId, key); in HWTEST_F() local 336 ASSERT_EQ(result, false); in HWTEST_F()
|
/third_party/benchmark/src/ |
H A D | string_util.cc | 182 const unsigned long result = strtoul(strStart, &strEnd, base); in stoul() local 198 return result; in stoul() 208 const long result = strtol(strStart, &strEnd, base); in stoi() local 215 if (strtolErrno == ERANGE || long(int(result)) != result) { in stoi() 224 return int(result); in stoi() 234 const double result = strtod(strStart, &strEnd); in stod() local 250 return result; in stod()
|
/third_party/gn/src/gn/ |
H A D | unique_vector.h | 105 Vector result = std::move(vector_); 107 return result; 153 size_t result = vector_.size(); 155 set_.Insert(node, hash, result); 156 return {true, result}; 166 size_t result = vector_.size(); 168 set_.Insert(node, hash, result); 169 return {true, result};
|
/third_party/icu/icu4c/source/io/ |
H A D | sprintf.cpp | 60 const UChar *result, in u_sprintf_pad_and_justify() 91 written += u_sprintf_write(output, result, resultLen); in u_sprintf_pad_and_justify() 99 written += u_sprintf_write(output, result, resultLen); in u_sprintf_pad_and_justify() 104 written = u_sprintf_write(output, result, resultLen); in u_sprintf_pad_and_justify() 238 int32_t result = 0; /* test the return value of u_printf_parse */ in u_vsnprintf_u() local 255 result = u_printf_parse(&g_sprintf_stream_handler, patternSpecification, &outStr, &outStr, &outStr.fBundle, &written, ap); in u_vsnprintf_u() 266 if (result < 0) { in u_vsnprintf_u() 267 return result; in u_vsnprintf_u() 58 u_sprintf_pad_and_justify(void *context, const u_printf_spec_info *info, const UChar *result, int32_t resultLen) u_sprintf_pad_and_justify() argument
|
/third_party/icu/icu4c/source/common/ |
H A D | dictionarydata.cpp | 55 UStringTrieResult result = (codePointsMatched == 0) ? uct.first(c) : uct.next(c); in matches() local 58 if (USTRINGTRIE_HAS_VALUE(result)) { in matches() 71 if (result == USTRINGTRIE_FINAL_VALUE) { in matches() 75 else if (result == USTRINGTRIE_NO_MATCH) { in matches() 122 UStringTrieResult result = (codePointsMatched == 0) ? bt.first(transform(c)) : bt.next(transform(c)); in matches() local 125 if (USTRINGTRIE_HAS_VALUE(result)) { in matches() 138 if (result == USTRINGTRIE_FINAL_VALUE) { in matches() 142 else if (result == USTRINGTRIE_NO_MATCH) { in matches()
|
/third_party/icu/icu4j/perf-tests/ |
H A D | dateformatperf.pl | 271 # @return an array of results. Each result is an array REF 398 my $result = formatSigDig($sigdig, $a*$mult); 402 if ($result =~ /\.(\d+)/) { 412 $result .= " $PLUS_MINUS " . $d; 414 $result; 478 my $result; 490 $result = $sign . $d; 492 $result = $sign . substr($d, 0, $e) . '.' . substr($d, $e); 497 $result;
|
H A D | normperf.pl | 320 # @return an array of results. Each result is an array REF 448 my $result = formatSigDig($sigdig, $a*$mult); 452 if ($result =~ /\.(\d+)/) { 462 $result .= " $PLUS_MINUS " . $d; 464 $result; 528 my $result; 540 $result = $sign . $d; 542 $result = $sign . substr($d, 0, $e) . '.' . substr($d, $e); 547 $result;
|
H A D | decimalformatperf.pl | 266 # @return an array of results. Each result is an array REF 393 my $result = formatSigDig($sigdig, $a*$mult); 397 if ($result =~ /\.(\d+)/) { 407 $result .= " $PLUS_MINUS " . $d; 409 $result; 473 my $result; 485 $result = $sign . $d; 487 $result = $sign . substr($d, 0, $e) . '.' . substr($d, $e); 492 $result;
|
H A D | converterperf.pl | 288 # @return an array of results. Each result is an array REF 416 my $result = formatSigDig($sigdig, $a*$mult); 420 if ($result =~ /\.(\d+)/) { 430 $result .= " $PLUS_MINUS " . $d; 432 $result; 496 my $result; 508 $result = $sign . $d; 510 $result = $sign . substr($d, 0, $e) . '.' . substr($d, $e); 515 $result;
|
H A D | ucharacterperf.pl | 268 # @return an array of results. Each result is an array REF 395 my $result = formatSigDig($sigdig, $a*$mult); 399 if ($result =~ /\.(\d+)/) { 409 $result .= " $PLUS_MINUS " . $d; 411 $result; 475 my $result; 487 $result = $sign . $d; 489 $result = $sign . substr($d, 0, $e) . '.' . substr($d, $e); 494 $result;
|
H A D | unicodesetperf.pl | 258 # @return an array of results. Each result is an array REF 385 my $result = formatSigDig($sigdig, $a*$mult); 389 if ($result =~ /\.(\d+)/) { 399 $result .= " $PLUS_MINUS " . $d; 401 $result; 465 my $result; 477 $result = $sign . $d; 479 $result = $sign . substr($d, 0, $e) . '.' . substr($d, $e); 484 $result;
|
/third_party/icu/icu4c/source/i18n/ |
H A D | strmatch.cpp | 162 UnicodeString& StringMatcher::toPattern(UnicodeString& result, in toPattern() argument 165 result.truncate(0); in toPattern() 168 result.append((UChar)40); /*(*/ in toPattern() 174 ICU_Utility::appendToRule(result, keyChar, false, escapeUnprintable, quoteBuf); in toPattern() 176 ICU_Utility::appendToRule(result, m->toPattern(str, escapeUnprintable), in toPattern() 181 result.append((UChar)41); /*)*/ in toPattern() 183 // Flush quoteBuf out to result in toPattern() 184 ICU_Utility::appendToRule(result, -1, in toPattern() 186 return result; in toPattern()
|
H A D | gender.cpp | 102 const GenderInfo* result = NULL; in getInstance() local 106 result = (const GenderInfo*) uhash_get(gGenderInfoCache, key); in getInstance() 108 if (result) { in getInstance() 109 return result; in getInstance() 113 result = loadInstance(locale, status); in getInstance() 124 result = temp; in getInstance() 126 uhash_put(gGenderInfoCache, uprv_strdup(key), (void*) result, &status); in getInstance() 132 return result; in getInstance()
|
/third_party/libuv/test/ |
H A D | runner-win.c | 81 DWORD result; in process_start() local 119 result = GetModuleFileNameW(NULL, in process_start() 122 if (result == 0 || result == sizeof(image)) in process_start() 182 DWORD timeout_api, result; in process_wait() local 199 result = WaitForMultipleObjects(n, handles, TRUE, timeout_api); in process_wait() 201 if (result < WAIT_OBJECT_0 + n) { in process_wait() 205 if (result == WAIT_TIMEOUT) { in process_wait()
|
/third_party/jerryscript/targets/mbedos5/jerryscript-mbed/jerryscript-mbed-drivers/source/ |
H A D | I2C-js.cpp | 104 int result = native_ptr->read(data); in DECLARE_CLASS_FUNCTION() local 106 return jerry_create_number(result); in DECLARE_CLASS_FUNCTION() 136 int result = native_ptr->read(address, data, length, repeated); in DECLARE_CLASS_FUNCTION() local 148 if (result == 0) { in DECLARE_CLASS_FUNCTION() 201 int result = native_ptr->write(data); in DECLARE_CLASS_FUNCTION() local 202 return jerry_create_number(result); in DECLARE_CLASS_FUNCTION() 233 int result = native_ptr->write(address, data, length, repeated); in DECLARE_CLASS_FUNCTION() local 238 return jerry_create_number(result); in DECLARE_CLASS_FUNCTION()
|
/third_party/mesa3d/src/gallium/drivers/virgl/ |
H A D | virgl_query.c | 38 uint64_t result; member 177 union pipe_query_result *result) in virgl_get_query_result() 197 /* The resource is idle and the result should be available at this point, in virgl_get_query_result() 201 * transfer until we get the result back. in virgl_get_query_result() 217 query->result = host_state->result; in virgl_get_query_result() 219 query->result = (uint32_t) host_state->result; in virgl_get_query_result() 227 result->u64 = query->result; in virgl_get_query_result() 174 virgl_get_query_result(struct pipe_context *ctx, struct pipe_query *q, bool wait, union pipe_query_result *result) virgl_get_query_result() argument [all...] |
/third_party/node/lib/ |
H A D | os.js | 144 const result = []; 147 ArrayPrototypePush(result, { 159 return result; 278 const result = {}; 281 return result; 296 const existing = result[name]; 300 result[name] = [entry]; 303 return result;
|
/third_party/node/test/pseudo-tty/ |
H A D | testcfg.py | 100 result = [self.config.context.GetVm(self.arch, self.mode)] 104 result += flags_match.group(1).strip().split() 105 result.append(self.file) 106 return result 141 result = [] 146 return result 155 result.append(TTYTestCase(tst, file_path, output_path, 157 return result
|
/third_party/node/deps/v8/tools/clusterfuzz/js_fuzzer/ |
H A D | gen_exceptions.js | 26 // Add tests matching error regexp to result array. 37 // map test -> duration in result map. 104 const result = failedList.map(path => babelTypes.stringLiteral(path)); 105 if (result.length) { 106 babelTypes.addComment(result[0], 'leading', leadingComment); 108 return result; 113 const result = slowList.map(([path, duration]) => { 119 if (result.length) { 120 babelTypes.addComment(result[0], 'leading', leadingComment); 122 return result; [all...] |
/third_party/node/deps/icu-small/source/common/ |
H A D | dictionarydata.cpp | 55 UStringTrieResult result = (codePointsMatched == 0) ? uct.first(c) : uct.next(c); in matches() local 58 if (USTRINGTRIE_HAS_VALUE(result)) { in matches() 71 if (result == USTRINGTRIE_FINAL_VALUE) { in matches() 75 else if (result == USTRINGTRIE_NO_MATCH) { in matches() 122 UStringTrieResult result = (codePointsMatched == 0) ? bt.first(transform(c)) : bt.next(transform(c)); in matches() local 125 if (USTRINGTRIE_HAS_VALUE(result)) { in matches() 138 if (result == USTRINGTRIE_FINAL_VALUE) { in matches() 142 else if (result == USTRINGTRIE_NO_MATCH) { in matches()
|