/foundation/graphic/graphic_3d/lume/LumeRender/src/gles/ |
H A D | swapchain_gles.cpp | 183 GpuImageDesc res = { variable 201 res.usageFlags = ImageUsageFlagBits::CORE_IMAGE_USAGE_DEPTH_STENCIL_ATTACHMENT_BIT | 204 res.memoryPropertyFlags |= MemoryPropertyFlagBits::CORE_MEMORY_PROPERTY_LAZILY_ALLOCATED_BIT; 206 res.usageFlags = ImageUsageFlagBits::CORE_IMAGE_USAGE_COLOR_ATTACHMENT_BIT | 208 res.engineCreationFlags |= EngineImageCreationFlagBits::CORE_ENGINE_IMAGE_CREATION_RESET_STATE_ON_FRAME_BORDERS; 210 return res;
|
/foundation/multimedia/av_codec/services/engine/codec/audio/encoder/ |
H A D | audio_ffmpeg_encoder_plugin.cpp | 263 auto res = avcodec_open2(avCodecContext_.get(), avCodec_.get(), nullptr); in OpenContext() local 264 if (res != 0) { in OpenContext() 265 AVCODEC_LOGE("avcodec open error %{public}s", FFMpegConverter::AVStrError(res).c_str()); in OpenContext() 297 auto res = avcodec_open2(tmpContext.get(), avCodec_.get(), nullptr); in ReAllocateContext() local 298 if (res != 0) { in ReAllocateContext() 299 AVCODEC_LOGE("avcodec reopen error %{public}s", FFMpegConverter::AVStrError(res).c_str()); in ReAllocateContext()
|
/foundation/graphic/graphic_2d/rosen/modules/render_service_client/test/ |
H A D | render_service_client_modifier_demo.cpp | 76 float res = data + value.data; variable 77 return MyData(res); 81 float res = data - value.data; variable 82 return MyData(res); 86 float res = data * scale; variable 87 return MyData(res);
|
/foundation/graphic/graphic_2d/rosen/test/render_service/render_service_client/unittest/ui/ |
H A D | rs_ui_director_test.cpp | 339 int32_t res = director->GetCurrentRefreshRateMode(); in HWTEST_F() local 340 ASSERT_TRUE(res == -1); in HWTEST_F() 395 bool res = director->HasUIRunningAnimation(); in HWTEST_F() local 396 ASSERT_TRUE(res == false); in HWTEST_F() 466 bool res = RSNodeMap::MutableInstance().RegisterNode(nodePtr); in HWTEST_F() local 479 ASSERT_TRUE(res); in HWTEST_F()
|
/foundation/graphic/graphic_2d/rosen/test/render_service/render_service_client/unittest/modifier/ |
H A D | rs_property_modifier_test.cpp | 74 auto res = colorModifier->CreateRenderModifier(); in HWTEST_F() local 75 EXPECT_NE(res, nullptr); in HWTEST_F() 90 RSModifierType res = colorStrategyModifier->GetModifierType(); in HWTEST_F() local 91 EXPECT_EQ(res, RSModifierType::ENV_FOREGROUND_COLOR_STRATEGY); in HWTEST_F() 138 auto res = clipModifier->CreateRenderModifier(); in HWTEST_F() local 139 EXPECT_NE(res, nullptr); in HWTEST_F()
|
/foundation/filemanagement/user_file_service/frameworks/js/napi/common/ |
H A D | file_extension_info_napi.cpp | 46 napi_value res = nullptr; in FileInfoConstructor() local 49 napi_status status = napi_get_cb_info(env, info, &argc, args, &res, &data); in FileInfoConstructor() 55 return res; in FileInfoConstructor() 62 napi_value res = nullptr; in RootInfoConstructor() local 65 napi_status status = napi_get_cb_info(env, info, &argc, args, &res, &data); in RootInfoConstructor() 71 return res; in RootInfoConstructor()
|
/foundation/filemanagement/storage_service/services/storage_manager/volume/test/ |
H A D | volume_manager_service_test.cpp | 166 int32_t res = vmService->GetVolumeById(volumeId, ve); in HWTEST_F() local 167 EXPECT_EQ(res, E_OK); in HWTEST_F() 195 int32_t res = vmService->GetVolumeById(volumeId, ve); in HWTEST_F() local 196 EXPECT_EQ(res, E_NON_EXIST); in HWTEST_F() 219 int32_t res = vmService->GetVolumeById(volumeId, ve); in HWTEST_F() local 220 EXPECT_EQ(res, E_NON_EXIST); in HWTEST_F()
|
/foundation/multimedia/image_effect/frameworks/native/utils/common/ |
H A D | effect_json_helper.cpp | 254 bool res = static_cast<bool>(cJSON_AddItemToObject(json_, key.c_str(), json)); in Put() local 255 EFFECT_JSON_FALSE_RETURN_WITH_WORK(res, DeleteJson(json, isAllowDelete)); in Put() 316 bool res = static_cast<bool>(cJSON_AddItemToArray(json_, json)); in Add() local 317 EFFECT_JSON_FALSE_RETURN_WITH_WORK(res, DeleteJson(json, isAllowDelete)); in Add() 386 bool res = in Replace() local 388 EFFECT_JSON_FALSE_RETURN_WITH_WORK(res, DeleteJson(json, jsonObject)); in Replace()
|
/foundation/multimedia/image_framework/frameworks/innerkitsimpl/stream/src/ |
H A D | file_source_stream.cpp | 337 static bool DupFd(FILE *f, int &res) in DupFd() argument 339 res = fileno(f); in DupFd() 340 if (res < 0) { in DupFd() 344 res = dup(res); in DupFd() 345 if (res < 0) { in DupFd()
|
/foundation/multimedia/image_effect/frameworks/native/efilter/filterimpl/crop/ |
H A D | crop_efilter.cpp | 53 ErrorCode res = CommonUtils::GetValue(CropEFilter::Parameter::KEY_REGION, values, area); in CalculateCropRegion() local 54 if (res != ErrorCode::SUCCESS || area == nullptr) { in CalculateCropRegion() 56 EFFECT_LOGW("CropEFilter::CalculateCropRegion get value fail! res=%{public}d. " in CalculateCropRegion() 57 "use default value, not execute crop!", res); in CalculateCropRegion() 208 ErrorCode res = CropToOutputBuffer(buffer, context, output); in Render() local 209 CHECK_AND_RETURN_RET_LOG(res == ErrorCode::SUCCESS, res, "filter(%{public}s) render fail", name_.c_str()); in Render()
|
/foundation/multimedia/player_framework/services/services/avmetadatahelper/ipc/ |
H A D | avmetadatahelper_service_stub.cpp | 393 auto res = GetTimeByFrameIndex(index, time); in GetTimeByFrameIndex() local 394 CHECK_AND_RETURN_RET(res == MSERR_OK, res); in GetTimeByFrameIndex() 403 auto res = GetFrameIndexByTime(time, index); in GetFrameIndexByTime() local 404 CHECK_AND_RETURN_RET(res == MSERR_OK, res); in GetFrameIndexByTime()
|
/foundation/systemabilitymgr/safwk/test/services/safwk/unittest/ |
H A D | system_ability_test.cpp | 152 bool res = sysAby->RemoveSystemAbilityListener(LISTENER_ID); in HWTEST_F() local 153 EXPECT_EQ(res, true); in HWTEST_F() 166 bool res = SystemAbility::MakeAndRegisterAbility(new MockSaRealize(SAID, false)); in HWTEST_F() local 167 EXPECT_EQ(res, false); in HWTEST_F() 182 bool res = SystemAbility::MakeAndRegisterAbility(new MockSaRealize(SAID, false)); in HWTEST_F() local 183 EXPECT_EQ(res, true); in HWTEST_F()
|
/foundation/communication/netmanager_base/services/netmanagernative/src/manager/ |
H A D | interface_manager.cpp | 436 int32_t res = AssembleArp(ipAddr, macAddr, ifName, req); in AddStaticArp() local 437 if (res != NETMANAGER_SUCCESS) { in AddStaticArp() 439 return res; in AddStaticArp() 457 int32_t res = AssembleArp(ipAddr, macAddr, ifName, req); in DelStaticArp() local 458 if (res != NETMANAGER_SUCCESS) { in DelStaticArp() 460 return res; in DelStaticArp()
|
/foundation/distributeddatamgr/preferences/frameworks/js/napi/common/src/ |
H A D | js_common_utils.cpp | 321 napi_value res = nullptr; in JsonStringify() local 323 status = napi_call_function(env, json, stringify, 1, argv, &res); in JsonStringify() 325 return std::make_tuple(napi_ok, res); in JsonStringify() 348 napi_value res = nullptr; in JsonParse() local 350 PRE_CHECK_RETURN_CORE(napi_call_function(env, json, parse, 1, argv, &res) == napi_ok, PRE_REVT_NOTHING, nullptr); in JsonParse() 351 return res; in JsonParse()
|
/foundation/distributeddatamgr/relational_store/frameworks/cj/src/ |
H A D | relational_store_utils.cpp | 28 char* res = static_cast<char*>(malloc(sizeof(char) * len)); in MallocCString() local 29 if (res == nullptr) { in MallocCString() 32 return std::char_traits<char>::copy(res, origin.c_str(), len); in MallocCString() 274 std::vector<NativeRdb::RdbStore::PRIKey> res = std::vector<NativeRdb::RdbStore::PRIKey>(); in CArrPRIKeyTypeToPRIKeyArray() local 276 res.push_back(RetPRIKeyTypeToVariant(cPrimaryKeys.head[i])); in CArrPRIKeyTypeToPRIKeyArray() 278 return res; in CArrPRIKeyTypeToPRIKeyArray()
|
/foundation/filemanagement/file_api/interfaces/kits/js/src/mod_fs/properties/ |
H A D | listfile.cpp | 189 int32_t res = stat(stPath.c_str(), &info);
in FilterFilesizeOver() local 190 if (res != 0) {
in FilterFilesizeOver() 207 int32_t res = stat(stPath.c_str(), &info);
in FilterLastModifyTime() local 208 if (res != 0) {
in FilterLastModifyTime() 350 auto res = DoListFileVector2NV(env, string(path.get()), direntsRes, g_optionArgs.recursion);
in Sync() local 352 return res;
in Sync()
|
/foundation/window/window_manager/wmserver/src/ |
H A D | avoid_area_controller.cpp | 146 bool res = UpdateAvoidAreaIfNeed(avoidArea, callingWindow, AvoidAreaType::TYPE_KEYBOARD); in AddOrRemoveKeyboard() local 147 if (res) { in AddOrRemoveKeyboard() 168 bool res = UpdateAvoidAreaIfNeed(GetAvoidAreaByType(appNode, type), appNode, type); in UpdateOverlayWindowIfNeed() local 169 if (type == AvoidAreaType::TYPE_KEYBOARD && res) { in UpdateOverlayWindowIfNeed() 183 bool res = UpdateAvoidAreaIfNeed(systemAvoidArea, node, static_cast<AvoidAreaType>(type)); in UpdateOverlayWindowIfNeed() local 184 if (res && type == static_cast<uint32_t>(AvoidAreaType::TYPE_KEYBOARD)) { in UpdateOverlayWindowIfNeed()
|
/foundation/window/window_manager/wm/test/unittest/ |
H A D | window_agent_test.cpp | 395 auto res = 0; in HWTEST_F() local 398 ASSERT_EQ(0, res); in HWTEST_F() 402 ASSERT_EQ(0, res); in HWTEST_F() 412 auto res = 0; in HWTEST_F() local 415 ASSERT_EQ(0, res); in HWTEST_F() 420 ASSERT_EQ(0, res); in HWTEST_F()
|
/kernel/linux/linux-5.10/drivers/acpi/ |
H A D | pptt.c | 83 * @local_level: passed res reflects this cache level 84 * @res: cache resource in the PPTT we want to walk 103 struct acpi_subtable_header *res, in acpi_pptt_walk_cache() 109 if (res->type != ACPI_PPTT_TYPE_CACHE) in acpi_pptt_walk_cache() 112 cache = (struct acpi_pptt_cache *) res; in acpi_pptt_walk_cache() 141 struct acpi_subtable_header *res; in acpi_find_cache_level() local 148 while ((res = acpi_get_pptt_resource(table_hdr, cpu_node, resource))) { in acpi_find_cache_level() 152 res, &ret, level, type); in acpi_find_cache_level() 101 acpi_pptt_walk_cache(struct acpi_table_header *table_hdr, unsigned int local_level, struct acpi_subtable_header *res, struct acpi_pptt_cache **found, unsigned int level, int type) acpi_pptt_walk_cache() argument
|
/kernel/linux/linux-5.10/drivers/firmware/psci/ |
H A D | psci.c | 116 struct arm_smccc_res res; in __invoke_psci_fn_hvc() local 118 arm_smccc_hvc(function_id, arg0, arg1, arg2, 0, 0, 0, 0, &res); in __invoke_psci_fn_hvc() 119 return res.a0; in __invoke_psci_fn_hvc() 126 struct arm_smccc_res res; in __invoke_psci_fn_smc() local 128 arm_smccc_smc(function_id, arg0, arg1, arg2, 0, 0, 0, 0, &res); in __invoke_psci_fn_smc() 129 return res.a0; in __invoke_psci_fn_smc()
|
/kernel/linux/linux-5.10/arch/mips/cavium-octeon/ |
H A D | octeon-usb.c | 501 struct resource *res; in dwc3_octeon_device_init() local 519 res = platform_get_resource(pdev, IORESOURCE_MEM, 0); in dwc3_octeon_device_init() 520 if (res == NULL) { in dwc3_octeon_device_init() 532 base = devm_ioremap_resource(&pdev->dev, res); in dwc3_octeon_device_init() 545 devm_release_mem_region(&pdev->dev, res->start, in dwc3_octeon_device_init() 546 resource_size(res)); in dwc3_octeon_device_init()
|
/kernel/linux/linux-5.10/arch/arm/include/asm/ |
H A D | atomic.h | 109 unsigned long res; in atomic_cmpxchg_relaxed() local 119 : "=&r" (res), "=&r" (oldval), "+Qo" (ptr->counter) in atomic_cmpxchg_relaxed() 122 } while (res); in atomic_cmpxchg_relaxed() 407 unsigned long res; in atomic64_cmpxchg_relaxed() local 418 : "=&r" (res), "=&r" (oldval), "+Qo" (ptr->counter) in atomic64_cmpxchg_relaxed() 421 } while (res); in atomic64_cmpxchg_relaxed()
|
/kernel/linux/linux-5.10/arch/mips/txx9/generic/ |
H A D | setup_tx4938.c | 336 struct resource res[] = { in tx4938_ata_init() local 369 res[0].start = ((ebccr >> 48) << 20) + 0x10000; in tx4938_ata_init() 370 res[0].end = res[0].start + 0x20000 - 1; in tx4938_ata_init() 373 platform_device_add_resources(pdev, res, ARRAY_SIZE(res)) || in tx4938_ata_init()
|
/kernel/linux/linux-5.10/arch/powerpc/sysdev/ |
H A D | fsl_msi.c | 402 struct resource res, msiir; in fsl_of_msi_probe() local 438 err = of_address_to_resource(dev->dev.of_node, 0, &res); in fsl_of_msi_probe() 445 msi->msi_regs = ioremap(res.start, resource_size(&res)); in fsl_of_msi_probe() 453 features->msiir_offset + (res.start & 0xfffff); in fsl_of_msi_probe() 461 (res.start & MSIIR_OFFSET_MASK); in fsl_of_msi_probe()
|
/kernel/linux/linux-5.10/arch/powerpc/include/asm/ |
H A D | atomic.h | 74 int res, t; \ 81 : "=&r" (res), "=&r" (t), "+m" (v->counter) \ 85 return res; \ 366 s64 res, t; \ 373 : "=&r" (res), "=&r" (t), "+m" (v->counter) \ 377 return res; \
|