/foundation/multimedia/image_effect/frameworks/native/effect/manager/memory_manager/ |
H A D | effect_memory.cpp | 109 auto ret = sb->Alloc(requestConfig); in CreateSurfaceBuffer() local 110 CHECK_AND_RETURN_RET_LOG(ret == 0, nullptr, "surface buffer Alloc fail! res=%{public}d", ret); in CreateSurfaceBuffer() 111 ret = sb->Map(); in CreateSurfaceBuffer() 112 CHECK_AND_RETURN_RET_LOG(ret == 0, nullptr, "surface buffer Map fail! res=%{public}d", ret); in CreateSurfaceBuffer()
|
/foundation/multimedia/av_codec/services/services/codec/ipc/ |
H A D | codec_listener_proxy.cpp | 175 bool ret = inputBufferCache_->WriteToParcel(index, buffer, data); in OnInputBufferAvailable() local 176 CHECK_AND_RETURN_LOG(ret, "InputBufferCache write parcel failed"); in OnInputBufferAvailable() 199 bool ret = outputBufferCache_->WriteToParcel(index, buffer, data); in OnOutputBufferAvailable() local 200 CHECK_AND_RETURN_LOG(ret, "OutputBufferCache write parcel failed"); in OnOutputBufferAvailable() 216 bool ret = data.ReadInt64(info.presentationTimeUs) && data.ReadInt32(info.offset) && data.ReadInt32(info.size) && in InputBufferInfoFromParcel() local 223 return ret && buffer->meta_->FromParcel(data); in InputBufferInfoFromParcel()
|
/foundation/multimedia/av_session/frameworks/native/session/test/unittest/ |
H A D | avmeta_data_test.cpp | 246 auto ret = g_metaData.Marshalling(parcel); in HWTEST_F() local 247 EXPECT_EQ(ret, true); in HWTEST_F() 295 auto ret = metaData.CopyFrom(g_metaDataCloneTest); in HWTEST_F() local 297 EXPECT_EQ(ret, true); in HWTEST_F() 319 auto ret = g_metaDataCloneTest.CopyToByMask(mask, metaOut); in HWTEST_F() local 320 EXPECT_EQ(ret, true); in HWTEST_F()
|
/foundation/multimedia/av_session/services/session/server/test/ |
H A D | avcontroller_callback_proxy_test.cpp | 249 int32_t ret = aVControllerCallbackProxy->GetPixelMapBuffer(metaData, parcel); in HWTEST_F() local 250 EXPECT_EQ(ret, 0); in HWTEST_F() 264 int32_t ret = aVControllerCallbackProxy->GetPixelMapBuffer(metaData, parcel); in HWTEST_F() local 284 EXPECT_EQ(ret, retExpect); in HWTEST_F() 304 int32_t ret = aVControllerCallbackProxy->GetPixelMapBuffer(metaData, parcel); in HWTEST_F() local 325 EXPECT_EQ(ret, retExpect); in HWTEST_F()
|
/foundation/multimedia/media_library/frameworks/innerkitsimpl/medialibrary_data_extension/src/ |
H A D | medialibrary_command.cpp | 245 string ret = MEDIALIBRARY_TABLE; in GetDistTable() local 248 return ret; in GetDistTable() 252 return ret; in GetDistTable() 257 ret = rdbStorePtr->ObtainDistributedTableName(networkId, table, errCode); in GetDistTable() 259 ret = rdbStorePtr->ObtainDistributedTableName(networkId, MEDIALIBRARY_TABLE, errCode); in GetDistTable() 261 return ret; in GetDistTable()
|
/foundation/multimodalinput/input/service/touch_event_normalize/src/ |
H A D | tablet_tool_tranform_processor.cpp | 120 bool ret = false; in OnTip() local 123 ret = OnTipDown(tabletEvent); in OnTip() 124 if (!ret) { in OnTip() 130 ret = OnTipUp(tabletEvent); in OnTip() 131 if (!ret) { in OnTip() 141 return ret; in OnTip()
|
/foundation/multimodalinput/input/service/touch_event_normalize/test/src/ |
H A D | touchpad_transform_processor_mock_test.cpp | 275 int32_t ret = processor.SetTouchPadSwipeData(&event, action); in HWTEST_F() local 276 EXPECT_EQ(ret, RET_ERR); in HWTEST_F() 301 int32_t ret = processor.SetTouchPadSwipeData(&event, action); in HWTEST_F() local 302 EXPECT_EQ(ret, RET_ERR); in HWTEST_F() 327 int32_t ret = processor.SetTouchPadSwipeData(&event, action); in HWTEST_F() local 328 EXPECT_EQ(ret, RET_ERR); in HWTEST_F()
|
/foundation/resourceschedule/memmgr/services/memmgrservice/src/nandlife_controller/ |
H A D | nandlife_controller.cpp | 208 bool NandLifeController::GetSwapOutKBSinceKernelBoot(unsigned long long &ret) in GetSwapOutKBSinceKernelBoot() argument 211 if (KernelInterface::GetInstance().ReadSwapOutKBSinceKernelBoot(PSI_HEALTH_INFO_PATH, SWAP_OUT_SIZE_TAG, ret)) { in GetSwapOutKBSinceKernelBoot() 367 bool ret = SetParameterRetry(PERMANENTLY_CLOSED_STATUS_PARAM, NOT_PERMANENTLY_CLOSED, RETRY_TIMES); in OpenSwapOutPermanently() local 368 HILOGW("[%{public}llu] open eswap permanently %{public}s!", iter_, ret ? "success" : "failed"); in OpenSwapOutPermanently() 374 bool ret = SetParameterRetry(PERMANENTLY_CLOSED_STATUS_PARAM, PERMANENTLY_CLOSED, RETRY_TIMES); in CloseSwapOutPermanently() local 375 HILOGW("[%{public}llu] close eswap permanently %{public}s!", iter_, ret ? "success" : "failed"); in CloseSwapOutPermanently()
|
/foundation/systemabilitymgr/samgr/services/samgr/native/source/ |
H A D | system_ability_manager_util.cpp | 44 bool ret = false;
in IsNameInValid() local 46 ret = true;
in IsNameInValid() 49 return ret;
in IsNameInValid() 194 int ret = SetParameter(key.c_str(), value.c_str());
in SetModuleUpdateParam() 195 if (ret != 0) {
in SetModuleUpdateParam() 196 HILOGE("SetModuleUpdateParam SetParameter error:%{public}d!", ret);
in SetModuleUpdateParam()
|
/foundation/window/window_manager/extension/extension_connection/src/ |
H A D | window_extension_connection.cpp | 124 auto ret = AAFwk::AbilityManagerClient::GetInstance()->ConnectAbility(want, this, nullptr); in ConnectExtension() local 125 WLOGI("Connection extension end ret = %{public}d windowId = %{public}u uid = %{public}u", ret, windowId, uid); in ConnectExtension() 126 return ret; in ConnectExtension() 144 auto ret = AAFwk::AbilityManagerClient::GetInstance()->ConnectUIExtensionAbility(want, this, extSessionInfo, uid); in ConnectExtension() local 145 WLOGI("Connection ui extension end ret = %{public}d windowId = %{public}u uid = %{public}u", ret, windowId, uid); in ConnectExtension() 146 return ret; in ConnectExtension()
|
/foundation/communication/netmanager_base/test/netconnmanager/unittest/net_conn_add_test/ |
H A D | router_advertisement_daemon_test.cpp | 63 auto ret = routerAdvertiseDaemon.StartRa(); in HWTEST_F() local 64 EXPECT_EQ(ret, true); in HWTEST_F() 79 auto ret = routerAdvertiseDaemon.CreateRASocket(); in HWTEST_F() local 80 EXPECT_TRUE(ret); in HWTEST_F() 112 auto ret = routerAdvertiseDaemon.MaybeSendRa(dest); in HWTEST_F() local 113 EXPECT_FALSE(ret); in HWTEST_F()
|
/foundation/communication/netmanager_base/services/netmanagernative/src/manager/ |
H A D | wearable_distributed_net_manager.cpp | 245 int32_t ret = EstablishTcpIpRules(); in EnableWearableDistributedNetForward() local 246 if (ret != NETMANAGER_SUCCESS) { in EnableWearableDistributedNetForward() 248 return ret; in EnableWearableDistributedNetForward() 250 ret = EstablishUdpIpRules(udpPortId); in EnableWearableDistributedNetForward() 251 if (ret != NETMANAGER_SUCCESS) { in EnableWearableDistributedNetForward() 253 return ret; in EnableWearableDistributedNetForward()
|
/foundation/communication/netmanager_ext/test/vpnmanager/unittest/sys_vpn_manager_test/ |
H A D | vpn_database_helper_test.cpp | 49 int32_t ret = dbCallBack->OnCreate(*(store_)); in HWTEST_F() local 50 EXPECT_EQ(ret, NETMANAGER_EXT_SUCCESS); in HWTEST_F() 63 int32_t ret = dbCallBack->OnUpgrade(*(store_), OLD_VERSION, NEW_VERSION); in HWTEST_F() local 64 EXPECT_EQ(ret, NETMANAGER_EXT_SUCCESS); in HWTEST_F() 77 int32_t ret = dbCallBack->OnDowngrade(*(store_), OLD_VERSION, NEW_VERSION); in HWTEST_F() local 78 EXPECT_EQ(ret, NETMANAGER_EXT_SUCCESS); in HWTEST_F()
|
/foundation/communication/netmanager_ext/test/networksharemanager/unittest/networkshare_manager_test/ |
H A D | router_advertisement_daemon_test.cpp | 63 auto ret = routerAdvertiseDaemon.StartRa(); in HWTEST_F() local 64 EXPECT_EQ(ret, NETMANAGER_EXT_SUCCESS); in HWTEST_F() 79 auto ret = routerAdvertiseDaemon.CreateRASocket(); in HWTEST_F() local 80 EXPECT_TRUE(ret); in HWTEST_F() 112 auto ret = routerAdvertiseDaemon.MaybeSendRa(dest); in HWTEST_F() local 113 EXPECT_FALSE(ret); in HWTEST_F()
|
/foundation/communication/wifi/wifi/utils/src/ |
H A D | wifi_event_handler.cpp | 131 int32_t ret = eventQueue->cancel(iter->second); in ~WifiEventHandlerImpl() local 132 if (ret != 0) { in ~WifiEventHandlerImpl() 133 WIFI_LOGD("~WifiEventHandler cancel failed, error code : %{public}d", ret); in ~WifiEventHandlerImpl() 193 int32_t ret = eventQueue->cancel(iter->second); in RemoveAsyncTask() local 194 if (ret != 0) { in RemoveAsyncTask() 195 WIFI_LOGD("RemoveAsyncTask failed, error code : %{public}d", ret); in RemoveAsyncTask()
|
/foundation/communication/wifi/wifi/services/wifi_standard/wifi_framework/wifi_manage/wifi_scan_sa/ |
H A D | wifi_scan_service_impl.cpp | 182 ErrCode ret = pService->Scan(externFlag); in PermissionVerification() local 183 if (ret != WIFI_OPT_SUCCESS) { in PermissionVerification() 184 WIFI_LOGE("Scan failed: %{public}d!", static_cast<int>(ret)); in PermissionVerification() 189 return ret; in PermissionVerification() 400 int ret = WifiManager::GetInstance().GetSupportedFeatures(features); in GetSupportedFeatures() local 401 if (ret < 0) { in GetSupportedFeatures()
|
/foundation/communication/wifi/wifi/base/cRPC/src/ |
H A D | serial.c | 61 int ret = ContextAppendWrite(context, buf, len); in WriteFunc() local 64 return ret; in WriteFunc() 151 int ret = ContextAppendWrite(context, buf, len); in WriteStr() local 154 return ret; in WriteStr() 179 int ret = ContextAppendWrite(context, buf, inLen); in WriteUStr() local 182 return ret; in WriteUStr()
|
/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/rust/ylong_cloud_extension/src/service_impl/ |
H A D | cloud_db.rs | 148 let ret = self.database_ipc.delete(name, &extends)?; in batch_delete() 151 for value_bucket in ret.into_iter().flatten() { in batch_delete() 176 let ret = in batch_query() 179 Ok(ret.into()) in batch_query() 308 let ret = f(&mut self.database_ipc, name, &value_raw_vb, &extend_raw_vb)?; in upload() 309 for value_bucket in ret.into_iter().flatten() { in upload()
|
/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/service/udmf/preprocess/ |
H A D | preprocess_utils.cpp | 194 int ret = GetDfsUrisFromLocal(uris, userId, data); in SetRemoteUri() local 195 if (ret != E_OK) { in SetRemoteUri() 198 ZLOGE("Get remoteUri failed, ret = %{public}d, userId: %{public}d, uri size:%{public}zu.", in SetRemoteUri() 199 ret, userId, uris.size()); in SetRemoteUri() 209 int ret = RemoteFileShare::GetDfsUrisFromLocal(uris, userId, dfsUris); in GetDfsUrisFromLocal() local 210 if (ret != 0 || dfsUris.empty()) { in GetDfsUrisFromLocal() 211 ZLOGE("Get remoteUri failed, ret = %{public}d, userId: %{public}d, uri size:%{public}zu.", in GetDfsUrisFromLocal() 212 ret, userId, uris.size()); in GetDfsUrisFromLocal()
|
/foundation/distributeddatamgr/pasteboard/framework/test/src/ |
H A D | paste_data_entry_test.cpp | 202 auto ret = decodePasteEntry.Unmarshalling(buffer); in HWTEST_F() local 204 ASSERT_EQ(ret, true); in HWTEST_F() 227 auto ret = decodePasteEntry.Unmarshalling(buffer); in HWTEST_F() local 228 ASSERT_EQ(ret, true); in HWTEST_F() 248 auto ret = decodePasteEntry.Unmarshalling(buffer); in HWTEST_F() local 249 ASSERT_EQ(ret, true); in HWTEST_F()
|
/foundation/distributeddatamgr/relational_store/test/js/rdb/unittest/src/ |
H A D | RdbstoreInsertJsunit.test.js | 134 insertPromise.then(async (ret) => { 135 expect(1).assertEqual(ret) 136 console.log(TAG + "insert first done: " + ret) 163 insertPromise.then(async (ret) => { 164 expect(1).assertEqual(ret) 165 console.log(TAG + "insert first done: " + ret)
|
/foundation/filemanagement/file_api/interfaces/kits/js/src/mod_fs/properties/ |
H A D | create_randomaccessfile.cpp | 183 int ret = uv_fs_open(nullptr, open_req.get(), fileInfo.path.get(), flags, S_IRUSR | in Sync() local 185 if (ret < 0) { in Sync() 186 NError(ret).ThrowErr(env); in Sync() 211 int ret = uv_fs_open(nullptr, open_req.get(), fileInfo->path.get(), flags, S_IRUSR | in AsyncExec() local 213 if (ret < 0) { in AsyncExec() 214 return NError(ret); in AsyncExec()
|
/foundation/filemanagement/app_file_service/frameworks/native/backup_ext/src/ |
H A D | ext_extension_stub.cpp | 223 int ret = GetBackupInfo(result); 224 if (!reply.WriteInt32(ret)) { 225 return BError(BError::Codes::EXT_BROKEN_IPC, "Failed to send out the ret").GetCode(); 244 int ret = UpdateFdSendRate(bundleName, sendRate); 245 if (!reply.WriteInt32(ret)) { 246 return BError(BError::Codes::EXT_BROKEN_IPC, "Failed to send out the ret").GetCode(); 254 int ret = User0OnBackup(); 255 if (!reply.WriteInt32(ret)) { 256 return BError(BError::Codes::EXT_BROKEN_IPC, "Failed to send out the ret").GetCode();
|
/foundation/distributedhardware/distributed_hardware_fwk/av_transport/av_trans_engine/plugin/plugins/av_trans_input/dsoftbus_input_audio/ |
H A D | dsoftbus_input_audio_plugin.cpp | 85 int32_t ret = SoftbusChannelAdapter::GetInstance().RegisterChannelListener(sessionName_, peerDevId_, this); in Prepare() local 86 if (ret != DH_AVT_SUCCESS) { in Prepare() 87 AVTRANS_LOGE("Register channel listener failed ret: %{public}d.", ret); in Prepare() 90 ret = SoftbusChannelAdapter::GetInstance().CreateChannelServer(TransName2PkgName(ownerName_), sessionName_); in Prepare() 91 if (ret != DH_AVT_SUCCESS) { in Prepare() 92 AVTRANS_LOGE("Create Session Server failed ret: %{public}d.", ret); in Prepare()
|
/foundation/graphic/graphic_2d/frameworks/bootanimation/src/ |
H A D | boot_compile_progress.cpp | 148 VsyncError ret = receiver_->Init(); in RegisterVsyncCallback() local 149 if (ret) { in RegisterVsyncCallback() 159 ret = receiver_->SetVSyncRate(fcb, CHANGE_FREQ); in RegisterVsyncCallback() 160 if (ret) { in RegisterVsyncCallback() 207 int ret = sprintf_s(info, sizeof(info), "%s %d%%", displayInfo_.c_str(), progress_); in DrawCompileProgress() local 208 if (ret == -1) { in DrawCompileProgress()
|