/foundation/resourceschedule/resource_schedule_service/ressched_executor/services/resschedexeservice/src/ |
H A D | res_sched_exe_service.cpp | 63 int32_t ret = Security::AccessToken::AccessTokenKit::VerifyAccessToken(tokenId, DUMP_PERMISSION); in AllowDump() local 64 if (ret != Security::AccessToken::PermissionState::PERMISSION_GRANTED) { in AllowDump() 80 std::string ret = Str16ToStr8(arg); in Dump() 81 RSSEXE_LOGI("arg: %{public}s.", ret.c_str()); in Dump() 82 return ret; in Dump()
|
/foundation/communication/dsoftbus/tests/sdk/transmission/trans_channel/qos/ |
H A D | trans_qos_stat_server_test.cpp | 118 int32_t ret; in HWTEST_F() local 120 ret = CreateSessionServer(UDP_TEST_PKG_NAME, UDP_TEST_SESSION_NAME, &g_hasQosCb); in HWTEST_F() 122 ret = CreateSessionServer(UDP_TEST_PKG_NAME, UDP_TEST_SESSION_NAME, &g_noQosCb); in HWTEST_F() 124 EXPECT_EQ(ret, SOFTBUS_OK); in HWTEST_F() 125 if (ret == SOFTBUS_OK) { in HWTEST_F()
|
/foundation/communication/netmanager_ext/services/netfirewallmanager/src/ |
H A D | netfirewall_intercept_recorder.cpp | 62 int32_t ret = NetFirewallDbHelper::GetInstance().QueryInterceptRecord(userId, requestParam, info); in GetInterceptRecords() local 63 if (ret < 0) { in GetInterceptRecords() 112 int32_t ret = FIREWALL_SUCCESS; in UnRegisterInterceptCallback() local 114 ret = NetsysController::GetInstance().UnRegisterNetFirewallCallback(callback_); in UnRegisterInterceptCallback() 118 return ret; in UnRegisterInterceptCallback()
|
/foundation/communication/netmanager_ext/frameworks/native/mdnsclient/src/ |
H A D | mdns_client_resume.cpp | 59 auto ret = DelayedSingleton<MDnsClient>::GetInstance()->RegisterService(value, key); in ReRegisterService() local 60 if (ret != NETMANAGER_EXT_SUCCESS) { in ReRegisterService() 78 auto ret = DelayedSingleton<MDnsClient>::GetInstance()->StartDiscoverService(value, key); in RestartDiscoverService() local 79 if (ret != NETMANAGER_EXT_SUCCESS) { in RestartDiscoverService() 80 NETMGR_EXT_LOG_E("RestartDiscoverService error, errorCode: %{public}d", ret); in RestartDiscoverService()
|
/foundation/communication/wifi/wifi/services/wifi_standard/wifi_framework/wifi_manage/wifi_controller/ |
H A D | multi_sta_state_machine.cpp | 172 ErrCode ret = WifiServiceScheduler::GetInstance().AutoStartWifi2Service(mid, pMultiStaStateMachine->ifaceName); in HandleStartInIdleState() local 173 if (ret != WIFI_OPT_SUCCESS) { in HandleStartInIdleState() 203 ErrCode ret = WIFI_OPT_FAILED; in ExecuteStateMsg() local 206 ret = WifiServiceScheduler::GetInstance().AutoStopWifi2Service(mid); in ExecuteStateMsg() 207 if (ret != WIFI_OPT_SUCCESS) { in ExecuteStateMsg()
|
/foundation/distributedhardware/device_manager/services/implementation/src/dependency/commonevent/ |
H A D | dm_common_event_manager.cpp | 116 int32_t ret = samgrProxy->UnSubscribeSystemAbility(COMMON_EVENT_SERVICE_ID, statusChangeListener_); in UnsubscribeServiceEvent() local 117 if (ret != ERR_OK) { in UnsubscribeServiceEvent() 118 LOGE("failed to unsubscribe system ability COMMON_EVENT_SERVICE_ID ret:%{public}d", ret); in UnsubscribeServiceEvent() 144 int32_t ret = pthread_setname_np(dealThread.native_handle(), DEAL_THREAD); in OnReceiveEvent() local 145 if (ret != DM_OK) { in OnReceiveEvent()
|
/foundation/distributedhardware/distributed_camera/services/channel/src/ |
H A D | dcamera_softbus_latency.cpp | 57 int32_t ret = StartTimeSync(DCAMERA_PKG_NAME.c_str(), devId.c_str(), LOW_ACCURACY, NORMAL_PERIOD, in StartSoftbusTimeSync() local 59 if (ret != DCAMERA_OK) { in StartSoftbusTimeSync() 87 int32_t ret = StopTimeSync(DCAMERA_PKG_NAME.c_str(), devId.c_str()); in StopSoftbusTimeSync() local 88 if (ret != DCAMERA_OK) { in StopSoftbusTimeSync() 89 DHLOGE("DCameraSoftbusLatency:: StopSoftbusTimeSync failed ret:%{public}d", ret); in StopSoftbusTimeSync()
|
/foundation/distributedhardware/device_manager/services/service/src/publishcommonevent/ |
H A D | dm_screen_common_event.cpp | 123 int32_t ret = samgrProxy->UnSubscribeSystemAbility(COMMON_EVENT_SERVICE_ID, statusChangeListener_); in UnsubscribeScreenCommonEvent() local 124 if (ret != ERR_OK) { in UnsubscribeScreenCommonEvent() 125 LOGE("failed to unsubscribe system ability COMMON_EVENT_SERVICE_ID ret:%{public}d", ret); in UnsubscribeScreenCommonEvent() 147 int32_t ret = pthread_setname_np(dealThread.native_handle(), DEAL_THREAD); in OnReceiveEvent() local 148 if (ret != DM_OK) { in OnReceiveEvent()
|
H A D | dm_data_share_common_event.cpp | 124 int32_t ret = samgrProxy->UnSubscribeSystemAbility(COMMON_EVENT_SERVICE_ID, statusChangeListener_); in UnsubscribeDataShareCommonEvent() local 125 if (ret != ERR_OK) { in UnsubscribeDataShareCommonEvent() 126 LOGE("failed to unsubscribe system ability COMMON_EVENT_SERVICE_ID ret:%{public}d", ret); in UnsubscribeDataShareCommonEvent() 148 int32_t ret = pthread_setname_np(dealThread.native_handle(), DEAL_THREAD); in OnReceiveEvent() local 149 if (ret != DM_OK) { in OnReceiveEvent()
|
/foundation/filemanagement/file_api/interfaces/kits/js/src/mod_fileio/properties/ |
H A D | hash.cpp | 94 int ret = EIO; in Async() 97 tie(ret, res) = HashFile::HashWithMD5(fpath); in Async() 99 tie(ret, res) = HashFile::HashWithSHA1(fpath); in Async() 101 tie(ret, res) = HashFile::HashWithSHA256(fpath); in Async() 103 return UniError(ret); in Async()
|
/foundation/communication/dsoftbus/components/nstackx/fillp/src/public/include/ |
H A D | hlist.h | 124 struct HlistNode *ret = FILLP_NULL_PTR; in HlistPopHead() local 129 ret = HLIST_FIRST(list); in HlistPopHead() 130 if (ret) { in HlistPopHead() 131 HlistDelete(list, ret); in HlistPopHead() 133 return ret; in HlistPopHead()
|
/foundation/communication/dsoftbus/components/nstackx/fillp/src/public/src/ |
H A D | check_gso_support.c | 102 FILLP_INT ret; in CheckGSOSupport() local 121 ret = bind(fd, (struct sockaddr *)&sa, len); in CheckGSOSupport() 122 if (ret) { in CheckGSOSupport() 127 ret = getsockname(fd, (struct sockaddr *)&sa, &len); in CheckGSOSupport() 128 if (ret) { in CheckGSOSupport()
|
/third_party/ffmpeg/libavcodec/ |
H A D | librsvgdec.c | 39 int ret; in librsvg_decode_frame() local 69 if ((ret = ff_set_dimensions(avctx, dimensions.width, dimensions.height))) in librsvg_decode_frame() 70 return ret; in librsvg_decode_frame() 73 if ((ret = ff_get_buffer(avctx, frame, 0))) in librsvg_decode_frame() 74 return ret; in librsvg_decode_frame()
|
H A D | hcom.c | 88 int ret, n = 0; in hcom_decode() local 94 if ((ret = ff_get_buffer(avctx, frame, 0)) < 0) in hcom_decode() 95 return ret; in hcom_decode() 97 if ((ret = init_get_bits8(&gb, pkt->data, pkt->size)) < 0) in hcom_decode() 98 return ret; in hcom_decode()
|
H A D | imx.c | 54 int ret, x, y; in imx_decode_frame() local 58 if ((ret = ff_reget_buffer(avctx, frame, 0)) < 0) in imx_decode_frame() 59 return ret; in imx_decode_frame() 156 if ((ret = av_frame_ref(rframe, frame)) < 0) in imx_decode_frame() 157 return ret; in imx_decode_frame()
|
H A D | aasc.c | 87 int compr, i, stride, psize, ret; in aasc_decode_frame() local 94 if ((ret = ff_reget_buffer(avctx, s->frame, 0)) < 0) in aasc_decode_frame() 95 return ret; in aasc_decode_frame() 136 if ((ret = av_frame_ref(rframe, s->frame)) < 0) in aasc_decode_frame() 137 return ret; in aasc_decode_frame()
|
H A D | zerocodec.c | 40 int i, j, zret, ret; in zerocodec_decode_frame() local 63 if ((ret = ff_get_buffer(avctx, pic, AV_GET_BUFFER_FLAG_REF)) < 0) in zerocodec_decode_frame() 64 return ret; in zerocodec_decode_frame() 96 if ((ret = av_frame_ref(zc->previous_frame, pic)) < 0) in zerocodec_decode_frame() 97 return ret; in zerocodec_decode_frame()
|
H A D | qoidec.c | 35 int ret, buf_size = avpkt->size; in qoi_decode_frame() local 58 if ((ret = ff_set_dimensions(avctx, width, height)) < 0) in qoi_decode_frame() 59 return ret; in qoi_decode_frame() 67 if ((ret = ff_thread_get_buffer(avctx, p, 0)) < 0) in qoi_decode_frame() 68 return ret; in qoi_decode_frame()
|
H A D | vima.c | 127 int ret, chan; in decode_frame() local 133 if ((ret = init_get_bits8(&gb, pkt->data, pkt->size)) < 0) in decode_frame() 134 return ret; in decode_frame() 159 if ((ret = ff_get_buffer(avctx, frame, 0)) < 0) in decode_frame() 160 return ret; in decode_frame()
|
H A D | wnv1.c | 62 int i, j, ret, shift; in decode_frame() local 70 if ((ret = ff_get_buffer(avctx, p, 0)) < 0) in decode_frame() 71 return ret; in decode_frame() 74 if ((ret = init_get_bits8(&gb, buf + 8, buf_size - 8)) < 0) in decode_frame() 75 return ret; in decode_frame()
|
H A D | msrle.c | 92 int ret; in msrle_decode_frame() local 97 if ((ret = ff_reget_buffer(avctx, s->frame, 0)) < 0) in msrle_decode_frame() 98 return ret; in msrle_decode_frame() 136 if ((ret = av_frame_ref(rframe, s->frame)) < 0) in msrle_decode_frame() 137 return ret; in msrle_decode_frame()
|
/third_party/f2fs-tools/fsck/ |
H A D | defrag.c | 18 int ret, type; in migrate_block() local 23 ret = dev_read_block(raw, from); in migrate_block() 24 ASSERT(ret >= 0); in migrate_block() 27 ret = dev_write_block(raw, to); in migrate_block() 28 ASSERT(ret >= 0); in migrate_block()
|
/third_party/ffmpeg/libavfilter/ |
H A D | f_perms.c | 79 int ret; in filter_frame() local 99 if ((ret = av_frame_make_writable(frame)) < 0) in filter_frame() 100 return ret; in filter_frame() 107 ret = ff_filter_frame(ctx->outputs[0], out); in filter_frame() 111 return ret; in filter_frame()
|
H A D | f_latency.c | 75 int ret; in activate() local 77 ret = ff_inlink_consume_frame(inlink, &frame); in activate() 78 if (ret < 0) in activate() 79 return ret; in activate() 80 if (ret > 0) in activate()
|
H A D | fifo.c | 100 int ret = 0; in request_frame() local 103 if ((ret = ff_request_frame(outlink->src->inputs[0])) < 0) in request_frame() 104 return ret; in request_frame() 108 ret = ff_filter_frame(outlink, s->root.next->frame); in request_frame() 110 return ret; in request_frame()
|