/third_party/node/deps/v8/src/torque/ |
H A D | earley-parser.h | 207 auto result = action(child_results); in AsSingletonVector() 208 if (!result) return result; in AsSingletonVector() 209 return ParseResult{std::vector<T>{(*result).Cast<T>()}}; in AsSingletonVector() 314 Item result(rule_, mark_ + 1, start_, new_pos); in Advance() 315 result.prev_ = this; in Advance() 316 result.child_ = child; in Advance() 317 return result; in Advance() 387 // it. These symbols form the result of the lexing. 415 // A grammar can have a result, whic 438 Symbol* result = symbol.get(); global() local 480 To result = std::move(child_results->NextAs<From>()); CastParseResult() local 496 std::vector<T> result; MakeSingletonVector() local [all...] |
/third_party/python/Lib/ |
H A D | platform.py | 142 result = [] 150 result.extend((t, v)) 151 return result 806 result = cls.__new__(cls, *iterable) 807 if len(result) != num_fields + 1: 808 msg = f'Expected {num_fields} arguments, got {len(result)}' 810 return result 1027 result = _sys_version_cache.get(sys_version, None) 1028 if result is not None: 1029 return result [all...] |
/third_party/skia/third_party/externals/icu/source/i18n/ |
H A D | double-conversion-bignum.cpp | 101 uint64_t result = 0; in ReadUInt64() local 105 result = result * 10 + digit; in ReadUInt64() 107 return result; in ReadUInt64() 429 // Since the result was guaranteed to lie inside the number the 520 // Easy case: if we have less digits than the divisor than the result is 0. 528 uint16_t result = 0; 535 // the result should be small (less than 10). 540 result += static_cast<uint16_t>(RawBigit(used_bigits_ - 1)); 557 result [all...] |
/third_party/protobuf/js/binary/ |
H A D | utils.js | 261 // bounadaries of precision, the result can be off by one. 310 * lost if the result is greater than 2^52. 322 * if the result is greater than 2^52. 338 var result = jspb.utils.joinUint64(bitsLow, bitsHigh); 339 return sign ? -result : result; 344 * zig-zag encoding. Invokes the provided function to produce final result. 349 * the result value, takes parameters (lowBits, highBits). 372 * decoding. Precision will be lost if the result is greater than 2^52. 384 * complement encoding. Invokes the provided function to produce final result [all...] |
/third_party/python/Parser/ |
H A D | string_parser.c | 148 PyObject *result = _PyBytes_DecodeEscape(s, len, NULL, &first_invalid_escape); in decode_bytes_with_escapes() local 149 if (result == NULL) { in decode_bytes_with_escapes() 155 Py_DECREF(result); in decode_bytes_with_escapes() 159 return result; in decode_bytes_with_escapes() 164 _PyPegen_parsestr parses it, and sets *result to decoded Python string object. 168 _PyPegen_parsestr(Parser *p, int *bytesmode, int *rawmode, PyObject **result, in _PyPegen_parsestr() argument 181 *result = NULL; in _PyPegen_parsestr() 270 *result = PyBytes_FromStringAndSize(s, len); in _PyPegen_parsestr() 273 *result = decode_bytes_with_escapes(p, s, len, t); in _PyPegen_parsestr() 278 *result in _PyPegen_parsestr() 356 expr_ty result = NULL; fstring_compile_expr() local 457 int result = 0; fstring_find_literal() local 879 int result; fstring_find_literal_and_expr() local 1132 int result = fstring_find_literal_and_expr(p, str, end, raw, recurse_lvl, _PyPegen_FstringParser_ConcatFstring() local [all...] |
/third_party/protobuf/ruby/src/main/java/com/google/protobuf/jruby/ |
H A D | SentinelOuterClass.java | 401 com.google.protobuf.jruby.SentinelOuterClass.Sentinel result = buildPartial(); in build() 402 if (!result.isInitialized()) { in build() 403 throw newUninitializedMessageException(result); in build() 405 return result; in build() 409 com.google.protobuf.jruby.SentinelOuterClass.Sentinel result = new com.google.protobuf.jruby.SentinelOuterClass.Sentinel(this); in buildPartial() 410 result.defaultInt32_ = defaultInt32_; in buildPartial() 411 result.defaultInt64_ = defaultInt64_; in buildPartial() 412 result.defaultUnit32_ = defaultUnit32_; in buildPartial() 413 result.defaultUint64_ = defaultUint64_; in buildPartial() 414 result in buildPartial() [all...] |
/third_party/protobuf/src/google/protobuf/stubs/ |
H A D | strutil.h | 213 // to 'result'. If there are consecutive delimiters, this function skips 220 // as a nul-terminated c string. Append the components to 'result'. 228 std::vector<string>* result); 236 std::vector<string> result; in Split() local 238 SplitStringUsing(full, delim, &result); in Split() 240 SplitStringAllowEmpty(full, delim, &result); in Split() 242 return result; in Split() 254 const char* delim, string* result); 258 string result; in JoinStrings() local 259 JoinStrings(components, delim, &result); in JoinStrings() 768 Join(Iterator start, Iterator end, const char* delim, string* result) Join() argument 781 string result; Join() local [all...] |
/foundation/CastEngine/castengine_cast_framework/service/src/device_manager/src/ |
H A D | connection_manager.cpp | 149 void OnBindResultFailedWriteWrap(const std::string& funcName, int32_t result, const std::string& puid) in OnBindResultFailedWriteWrap() argument 152 static_cast<uint16_t>(result)); in OnBindResultFailedWriteWrap() 594 CLOGD("encrypt result is %d ", outputData.length); in EncryptPort() 614 size_t result = iconv(cd, &inbuf, &inSize, &outbuf, &outSize); in convLatin1ToUTF8() local 615 if (result == (size_t)-1) { in convLatin1ToUTF8() 644 std::unique_ptr<uint8_t[]> result = std::make_unique<uint8_t[]>(INT_FOUR); in intToByteArray() local 646 result[i] = (num >> FOURTH_BYTE_OFFSET) & 0xFF; in intToByteArray() 647 result[++i] = (num >> THIRD_BYTE_OFFSET) & 0xFF; in intToByteArray() 648 result[++i] = (num >> SECOND_BYTE_OFFSET) & 0xFF; in intToByteArray() 649 result[ in intToByteArray() 945 NotifySessionEvent(const std::string &deviceId, int result) NotifySessionEvent() argument 973 OnBindResult(const PeerTargetId &targetId, int32_t result, int32_t status, std::string content) OnBindResult() argument 1072 bool result = GetSessionKey(authInfo, sessionKey); HandleConnectDeviceAction() local 1083 bool result = CastDeviceDataManager::GetInstance().SetDeviceSessionKey(deviceId, sessionKey); HandleConnectDeviceAction() local 1125 OnUnbindResult(const PeerTargetId &targetId, int32_t result, std::string content) OnUnbindResult() argument [all...] |
/foundation/ability/ability_runtime/services/uripermmgr/src/ |
H A D | uri_permission_manager_stub_impl.cpp | 220 int checkPersistPermission(uint64_t tokenId, const std::vector<PolicyInfo> &policy, std::vector<bool> &result) in checkPersistPermission() argument 223 result.emplace_back(true); in checkPersistPermission() 225 TAG_LOGI(AAFwkTag::URIPERMMGR, "result size:%{public}zu", result.size()); in checkPersistPermission() 235 int persistPermission(const std::vector<PolicyInfo> &policy, std::vector<uint32_t> &result) in persistPermission() argument 238 result.emplace_back(0); in persistPermission() 240 TAG_LOGI(AAFwkTag::URIPERMMGR, "result size:%{public}zu", result.size()); in persistPermission() 653 std::vector<bool> result(uriStrVec.size(), false); in CheckUriAuthorization() 654 return result; in CheckUriAuthorization() 775 std::vector<bool> result; HandleUriPermission() local 846 CheckProxyUriPermission(TokenIdPermission &tokenIdPermission, const std::vector<Uri> &uriVec, uint32_t flag, std::vector<bool> &result) CheckProxyUriPermission() argument [all...] |
/foundation/multimedia/player_framework/frameworks/js/player/ |
H A D | audio_player_napi.cpp | 102 napi_value result = nullptr; in Constructor() local 107 napi_get_undefined(env, &result); in Constructor() 109 return result; in Constructor() 129 napi_get_undefined(env, &result); in Constructor() 132 return result; in Constructor() 152 napi_value result = nullptr; in CreateAudioPlayer() local 157 napi_get_undefined(env, &result); in CreateAudioPlayer() 158 return result; in CreateAudioPlayer() 161 status = napi_new_instance(env, constructor, 0, nullptr, &result); in CreateAudioPlayer() 164 napi_get_undefined(env, &result); in CreateAudioPlayer() 174 napi_value result = nullptr; CreateAudioPlayerAsync() local 802 std::string result; GetJSState() local 903 napi_value result = nullptr; GetTrackDescription() local [all...] |
/third_party/python/Lib/multiprocessing/ |
H A D | managers.py | 90 kind, result = c.recv() 92 return result 93 raise convert_to_error(kind, result) 95 def convert_to_error(kind, result): 97 return result 99 if not isinstance(result, str): 102 result, kind, type(result))) 104 return RemoteError('Unserializable message: %s\n' % result) 106 return RemoteError(result) [all...] |
/third_party/python/Python/ |
H A D | formatter_unicode.c | 54 input string, updates *result with the corresponding positive 61 Py_ssize_t *result) in get_integer() 88 *result = accumulator; in get_integer() 772 int result = -1; in format_string_internal() local 842 result = fill_padding(writer, len, format->fill_char, lpad, rpad); in format_string_internal() 843 if (result == -1) in format_string_internal() 852 result = 0; in format_string_internal() 855 return result; in format_string_internal() 867 int result = -1; in format_long_internal() local 1025 result in format_long_internal() 60 get_integer(PyObject *str, Py_ssize_t *ppos, Py_ssize_t end, Py_ssize_t *result) get_integer() argument 1058 int result = -1; format_float_internal() local 1216 int result = -1; format_complex_internal() local 1494 int result = -1; _PyLong_FormatAdvancedWriter() local [all...] |
/foundation/ability/ability_runtime/service_router_framework/services/srms/test/unittest/service_router_mgr_interface_test/ |
H A D | srms_interface_test.cpp | 123 auto result = BusinessAbilityFilter::Unmarshalling(parcel); in HWTEST_F() local 124 EXPECT_NE(result->mimeType, MIME_TYPE); in HWTEST_F() 127 result = BusinessAbilityFilter::Unmarshalling(parcel); in HWTEST_F() 128 EXPECT_EQ(result->mimeType, MIME_TYPE); in HWTEST_F() 200 auto result = AppInfo::Unmarshalling(parcel); in HWTEST_F() local 201 EXPECT_NE(result->bundleName, BUNDLE_NAME); in HWTEST_F() 204 result = AppInfo::Unmarshalling(parcel); in HWTEST_F() 205 EXPECT_EQ(result->bundleName, BUNDLE_NAME); in HWTEST_F() 221 auto result = BusinessAbilityInfo::Unmarshalling(parcel); in HWTEST_F() local 222 EXPECT_EQ(result in HWTEST_F() 238 auto result = PurposeInfo::Unmarshalling(parcel); HWTEST_F() local [all...] |
/foundation/CastEngine/castengine_wifi_display/services/utils/ |
H A D | utils.cpp | 167 void Split(std::string str, std::string separator, std::vector<std::string> &result) in Split() argument 169 result.clear(); in Split() 175 ADD_VECTOR_END(result, str.substr(lastPosition, position - lastPosition)); in Split() 179 ADD_VECTOR_END(result, str.substr(lastPosition, std::string::npos)); in Split() 315 std::string result; in GetAnonyString() local 323 result += value[0]; in GetAnonyString() 324 result += tmpStr; in GetAnonyString() 325 result += value[strLen - 1]; in GetAnonyString() 328 result.append(value, 0, INT32_PLAINTEXT_LENGTH); in GetAnonyString() 329 result in GetAnonyString() [all...] |
/foundation/barrierfree/accessibility/services/aams/src/ |
H A D | accessibility_datashare_helper.cpp | 108 int64_t result = defaultValue; in GetLongValue() local 109 std::string valueStr = GetStringValue(key, std::to_string(result)); in GetLongValue() 111 result = static_cast<int64_t>(std::strtoll(valueStr.c_str(), nullptr, DECIMAL_NOTATION)); in GetLongValue() 113 return result; in GetLongValue() 124 bool result = defaultValue; in GetBoolValue() local 125 std::string valueStr = GetStringValue(key, result ? "1" : "0"); in GetBoolValue() 127 result = (valueStr == "1" || valueStr == "true"); in GetBoolValue() 129 return result; in GetBoolValue() 134 float result = defaultValue; in GetFloatValue() local 135 std::string valueStr = GetStringValue(key, std::to_string(result)); in GetFloatValue() [all...] |
/foundation/communication/bluetooth/frameworks/inner/src/ |
H A D | bluetooth_hid_host.cpp | 64 int32_t GetDevicesByStates(std::vector<int> states, std::vector<BluetoothRemoteDevice>& result) in GetDevicesByStates() 82 result.push_back(remoteDevice); in GetDevicesByStates() 138 int result; in HidHostVCUnplug() local 141 proxy->HidHostVCUnplug(device, id, size, type, result); in HidHostVCUnplug() 148 int result; in HidHostSendData() local 151 proxy->HidHostSendData(device, id, size, type, result); in HidHostSendData() 158 int result; in HidHostSetReport() local 161 proxy->HidHostSetReport(device, type, report, result); in HidHostSetReport() 168 int result; in HidHostGetReport() local 171 proxy->HidHostGetReport(device, id, size, type, result); in HidHostGetReport() 235 GetDevicesByStates(std::vector<int> states, std::vector<BluetoothRemoteDevice> &result) GetDevicesByStates() argument [all...] |
/foundation/bundlemanager/bundle_framework/services/bundlemgr/test/unittest/bms_bundle_updater_test/ |
H A D | bms_bundle_updater_test.cpp | 140 bool result = installer->Install(bundlePath, installParam, receiver); in InstallBundle() local 141 EXPECT_TRUE(result); in InstallBundle() 161 bool result = installer->Uninstall(bundleName, installParam, receiver); in UninstallBundle() local 162 EXPECT_TRUE(result); in UninstallBundle() 183 bool result = installer->Install(bundlePath, installParam, receiver); in UpdateBundle() local 184 EXPECT_TRUE(result); in UpdateBundle() 204 bool result = installer->Install(bundlePath, installParam, receiver); in UpdateBundle() local 205 EXPECT_TRUE(result); in UpdateBundle() 278 bool result = dataMgr->GetApplicationInfo(PACKAGE_NAME, ApplicationFlag::GET_BASIC_APPLICATION_INFO, USERID, info); in CheckApplicationInfo() local 279 return result; in CheckApplicationInfo() 321 bool result = CheckBundleInfo(VERSION_3, true); HWTEST_F() local [all...] |
/foundation/graphic/graphic_2d/rosen/modules/texgine/src/ |
H A D | font_descriptor_cache.cpp | 236 bool FontDescriptorCache::ParseInstallFontDescSharedPtrByName(const std::string& fullName, FontDescSharedPtr& result) in ParseInstallFontDescSharedPtrByName() argument 257 result = item; in ParseInstallFontDescSharedPtrByName() 267 const int32_t& systemFontType, FontDescSharedPtr& result) in GetFontDescSharedPtrByFullName() 271 result = nullptr; in GetFontDescSharedPtrByFullName() 276 result = nullptr; in GetFontDescSharedPtrByFullName() 279 auto tryFindFontDescriptor = [&fullName, &result](const std::unordered_map<std::string, in GetFontDescSharedPtrByFullName() 283 result = *(it->second.begin()); in GetFontDescSharedPtrByFullName() 295 ParseInstallFontDescSharedPtrByName(fullName, result)) { in GetFontDescSharedPtrByFullName() 299 result = nullptr; in GetFontDescSharedPtrByFullName() 477 void FontDescriptorCache::MatchFromFontDescriptor(FontDescSharedPtr desc, std::set<FontDescSharedPtr>& result) in MatchFromFontDescriptor() argument 266 GetFontDescSharedPtrByFullName(const std::string& fullName, const int32_t& systemFontType, FontDescSharedPtr& result) GetFontDescSharedPtrByFullName() argument [all...] |
/foundation/graphic/graphic_3d/lume/LumeEngine/src/loader/ |
H A D | system_graph_loader.cpp | 116 ElementType result; in ReadArrayPropertyValue() local 117 if (SafeGetJsonValue(jsonData, propertyData.info->name, error, result)) { in ReadArrayPropertyValue() 118 *output = result; in ReadArrayPropertyValue() 128 string_view result; in ReadArrayPropertyValue() local 129 if (SafeGetJsonValue(jsonData, propertyData.info->name, error, result)) { in ReadArrayPropertyValue() 131 const auto end = result.copy(output, propertyData.info->count - 1, 0); in ReadArrayPropertyValue() 134 *output = result[0]; in ReadArrayPropertyValue() 142 decltype(HandleType::id) result; in ReadHandlePropertyValue() 143 if (SafeGetJsonValue(jsonData, propertyData.info->name, error, result)) { in ReadHandlePropertyValue() 145 handle.id = result; in ReadHandlePropertyValue() 153 VecType& result = propertyData.Get<VecType>(); ReadVecPropertyValue() local [all...] |
/foundation/multimedia/av_session/frameworks/native/session/test/unittest/ |
H A D | avsession_permission_test.cpp | 232 auto result = AVSessionManager::GetInstance().RegisterSessionListener(listener); in HWTEST_F() local 233 EXPECT_EQ(result, ERR_IPC_SEND_REQUEST); in HWTEST_F() 257 auto result = AVSessionManager::GetInstance().SendSystemAVKeyEvent(*keyEvent); in HWTEST_F() local 258 EXPECT_EQ(result, ERR_IPC_SEND_REQUEST); in HWTEST_F() 273 auto result = AVSessionManager::GetInstance().SendSystemControlCommand(command); in HWTEST_F() local 274 EXPECT_EQ(result, ERR_IPC_SEND_REQUEST); in HWTEST_F() 395 auto result = AVSessionManager::GetInstance().RegisterSessionListener(listener); in HWTEST_F() local 396 EXPECT_EQ(result, AVSESSION_SUCCESS); in HWTEST_F() 420 auto result = AVSessionManager::GetInstance().SendSystemAVKeyEvent(*keyEvent); in HWTEST_F() local 421 EXPECT_EQ(result, AVSESSION_SUCCES in HWTEST_F() 436 auto result = AVSessionManager::GetInstance().SendSystemControlCommand(command); HWTEST_F() local [all...] |
/foundation/multimedia/media_library/frameworks/innerkitsimpl/test/unittest/medialibrary_multistages_capture_test/src/ |
H A D | medialibrary_multistages_video_capture_test.cpp | 329 int32_t result = SetVideoId(fileId, videoId);
in HWTEST_F() local 330 EXPECT_GT(result, E_OK);
in HWTEST_F() 358 int32_t result = SetVideoId(fileId, videoId);
in HWTEST_F() local 359 EXPECT_GT(result, E_OK);
in HWTEST_F() 396 int32_t result = SetVideoId(fileId, videoId);
in HWTEST_F() local 397 EXPECT_GT(result, E_OK);
in HWTEST_F() 430 int32_t result = SetVideoId(fileId, videoId);
in HWTEST_F() local 431 EXPECT_GT(result, E_OK);
in HWTEST_F() 467 int32_t result = SetVideoId(fileId, videoId);
in HWTEST_F() local 468 EXPECT_GT(result, E_O in HWTEST_F() 501 int32_t result = SetVideoId(fileId, videoId); HWTEST_F() local [all...] |
/foundation/multimedia/ringtone_library/services/ringtone_scanner/src/ |
H A D | ringtone_scanner_db.cpp | 106 int32_t result = rawRdb->Update(updateCount, tableName, values, whereClause, whereArgs); in UpdateRingtoneRdb() local 107 if (result != NativeRdb::E_OK) { in UpdateRingtoneRdb() 108 RINGTONE_ERR_LOG("Update operation failed. Result %{public}d. Updated %{public}d", result, updateCount); in UpdateRingtoneRdb() 331 int32_t result = rawRdb->Update(updateCount, tableName, values, whereClause, whereArgs); in UpdateMetadata() local 332 if (result != NativeRdb::E_OK || updateCount <= 0) { in UpdateMetadata() 333 RINGTONE_ERR_LOG("Update operation failed. Result %{public}d. Updated %{public}d", result, updateCount); in UpdateMetadata() 354 int32_t result = rawRdb->Update(updateCount, tableName, values, whereClause, whereArgs); in UpdateVibrateMetadata() local 355 if (result != NativeRdb::E_OK || updateCount <= 0) { in UpdateVibrateMetadata() 356 RINGTONE_ERR_LOG("Update operation failed. Result %{public}d. Updated %{public}d", result, updateCount); in UpdateVibrateMetadata() 399 int32_t result in InsertData() local [all...] |
/foundation/distributeddatamgr/pasteboard/interfaces/kits/napi/include/ |
H A D | systempasteboard_napi.h | 129 napi_status operator()(napi_env env, napi_value *result) override 134 return Context::operator()(env, result); 148 napi_status operator()(napi_env env, napi_value *result) override 153 return Context::operator()(env, result); 169 napi_status operator()(napi_env env, napi_value *result) override 174 return Context::operator()(env, result); 188 napi_status operator()(napi_env env, napi_value *result) override 193 return Context::operator()(env, result); 207 napi_status operator()(napi_env env, napi_value *result) override 212 return Context::operator()(env, result); [all...] |
/foundation/distributedhardware/distributed_hardware_fwk/av_transport/common/src/ |
H A D | av_sync_utils.cpp | 39 int result = AshmemSetProt(fd, static_cast<int>(prot));
in CreateAVTransSharedMemory() local 40 if (result < 0) {
in CreateAVTransSharedMemory() 93 int result = AshmemSetProt(memory.fd, static_cast<int>(prot));
in WriteClockUnitToMemory() local 94 TRUE_RETURN_V_MSG_E(result < 0, ERR_DH_AVT_SHARED_MEMORY_FAILED, "AshmemSetProt failed");
in WriteClockUnitToMemory() 134 int result = AshmemSetProt(memory.fd, static_cast<int>(prot));
135 TRUE_RETURN_V_MSG_E(result < 0, ERR_DH_AVT_SHARED_MEMORY_FAILED, "AshmemSetProt failed");
179 int result = AshmemSetProt(memory.fd, static_cast<int>(prot));
180 TRUE_RETURN_V_MSG_E(result < 0, ERR_DH_AVT_SHARED_MEMORY_FAILED, "AshmemSetProt failed");
209 int result = AshmemSetProt(memory.fd, static_cast<int>(prot));
210 TRUE_RETURN_V_MSG_E(result < [all...] |
/test/xts/acts/distributed_schedule_lite/system_ability_manager_posix/src/ |
H A D | TaskpoolSharedTaskTest.cpp | 253 int result = iUnknown->QueryInterface(iUnknown, 0x20, (void **)&demoApi); in GetIUnknown() local 254 if (result == 0 && demoApi != nullptr) { in GetIUnknown() 268 int result = iUnknown->QueryInterface(iUnknown, 0x20, (void **)&defaultApi); in GetDefaultIUnknown() local 269 if (result == 0 && defaultApi != nullptr) { in GetDefaultIUnknown() 309 bool result = demoApi->FeatureApi001((IUnknown *)demoApi, (char*)"xxxx"); in HWTEST_F() local 310 ASSERT_EQ(result, TRUE); in HWTEST_F() 314 char *body = (char*)"I wanna async call good result!"; in HWTEST_F() 333 result = defaultApi->DefaultApi001((IUnknown *)defaultApi, (char*)"yyyy"); in HWTEST_F() 334 ASSERT_EQ(result, TRUE); in HWTEST_F() 365 bool result in HWTEST_F() local [all...] |