Lines Matching defs:ret
80 bool ret = SystemAbility::Publish(this);
81 if (!ret) {
179 int32_t ret = 0;
183 ret = DeviceManagerAgent::GetInstance()->OnDeviceP2POnline(deviceInfo);
184 if (ret != NO_ERROR) {
185 LOGE("OpenP2PConnection failed, ret = %{public}d", ret);
187 ret = ConnectionDetector::RepeatGetConnectionStatus(targetDir, networkId);
188 LOGI("RepeatGetConnectionStatus end, ret = %{public}d", ret);
191 if (ret == FileManagement::ERR_BAD_VALUE) {
197 return ret;
204 int32_t ret = DeviceManagerAgent::GetInstance()->OnDeviceP2POffline(deviceInfo);
205 LOGI("Close P2P Connection result %d", ret);
206 return ret;
218 int32_t ret = 0;
219 ret = DeviceManagerAgent::GetInstance()->OnDeviceP2POnline(deviceInfo);
220 if (ret != NO_ERROR) {
221 LOGE("OpenP2PConnection failed, ret = %{public}d", ret);
223 ret = ConnectionDetector::RepeatGetConnectionStatus(targetDir, networkId);
224 LOGI("RepeatGetConnectionStatus first time, ret = %{public}d", ret);
226 ret = ConnectionDetector::RepeatGetConnectionStatus(targetDir, networkId);
227 if (ret != NO_ERROR) {
228 LOGI("RepeatGetConnectionStatus third times, ret = %{public}d", ret);
230 ret = ConnectionDetector::RepeatGetConnectionStatus(targetDir, networkId);
232 return ret;
244 int32_t ret = CloseP2PConnection(deviceInfo);
245 if (ret != NO_ERROR) {
256 int32_t ret = NO_ERROR;
257 ret = ConnectionCount(deviceInfo);
258 if (ret != NO_ERROR) {
260 return ret;
266 return ret;
269 ret = deviceManager->MountDfsDocs(networkId, deviceId);
270 if (ret != NO_ERROR) {
273 return ret;
307 int32_t ret = ConnectionAndMount(deviceInfo, networkId, callingTokenId);
308 if (ret != NO_ERROR) {
313 return ret;
348 int32_t ret = CleanUp(deviceInfo, networkId, callingTokenId);
349 if (ret != NO_ERROR) {
381 auto ret = requestSendFileBlock->GetValue();
382 LOGI("RequestSendFile end, ret is %{public}d", ret);
383 return ret;
409 auto ret = GetRealPath(srcUri, dstUri, physicalPath, info, daemon);
410 if (ret != E_OK) {
411 LOGE("GetRealPath failed, ret = %{public}d", ret);
412 return ret;
426 LOGE("CreateSessionServer failed, ret = %{public}d", ret);
435 ret = Copy(srcUri, physicalPath, daemon, sessionName);
436 if (ret != E_OK) {
437 LOGE("Remote copy failed,ret = %{public}d", ret);
439 return ret;
441 return ret;
464 auto ret = daemon->GetRemoteCopyInfo(srcUri, isSrcFile, isSrcDir);
465 if (ret != E_OK) {
466 LOGE("GetRemoteCopyInfo failed, ret = %{public}d", ret);
483 ret = SandboxHelper::GetPhysicalPath(dstUri, std::to_string(hapTokenInfo.userID), physicalPath);
484 if (ret != E_OK) {
485 LOGE("invalid uri, ret = %{public}d", ret);
492 ret = CheckCopyRule(physicalPath, dstUri, hapTokenInfo, isSrcFile, info);
493 if (ret != E_OK) {
494 LOGE("CheckCopyRule failed, ret = %{public}d", ret);
615 auto ret = daemon->RequestSendFile(srcUri, dstPath, localDeviceInfo.networkId, sessionName);
616 if (ret != E_OK) {
617 LOGE("RequestSendFile failed, ret = %{public}d", ret);
620 RadarReporter::REQUEST_SEND_FILE_ERROR, RadarReporter::PACKAGE_NAME, ret);
693 int32_t ret = deviceManager->OnDeviceP2POffline(deviceInfo);
694 LOGI("Close P2P Connection result %d", ret);