Home
last modified time | relevance | path

Searched refs:req (Results 1 – 25 of 37) sorted by relevance

12

/base/powermgr/powermgr_lite/services/src/power/small/
Dpower_manage_feature_impl.c25 typedef int32_t (*InvokeFunc)(IServerProxy *iProxy, void *origin, IpcIo *req, IpcIo *reply);
26 static int32_t AcquireInvoke(IServerProxy *iProxy, void *origin, IpcIo *req, IpcIo *reply);
27 static int32_t ReleaseInvoke(IServerProxy *iProxy, void *origin, IpcIo *req, IpcIo *reply);
28 static int32_t IsAnyHoldingInvoke(IServerProxy *iProxy, void *origin, IpcIo *req, IpcIo *reply);
29 static int32_t SuspendInvoke(IServerProxy *iProxy, void *origin, IpcIo *req, IpcIo *reply);
30 static int32_t WakeupInvoke(IServerProxy *iProxy, void *origin, IpcIo *req, IpcIo *reply);
31 static int32_t FeatureInvoke(IServerProxy *iProxy, int32_t funcId, void *origin, IpcIo *req, IpcIo …
55 static int32_t FeatureInvoke(IServerProxy *iProxy, int32_t funcId, void *origin, IpcIo *req, IpcIo … in FeatureInvoke() argument
57 if ((iProxy == NULL) || (req == NULL)) { in FeatureInvoke()
62 …cId >= 0 && funcId < POWERMANAGE_FUNCID_BUTT) ? g_invokeFuncs[funcId](iProxy, origin, req, reply) : in FeatureInvoke()
[all …]
/base/security/dlp_permission_service/interfaces/inner_api/dlp_fuse/src/
Dfuse_daemon.cpp63 static void FuseDaemonLookup(fuse_req_t req, fuse_ino_t parent, const char* name) in FuseDaemonLookup() argument
67 fuse_reply_err(req, ENOENT); in FuseDaemonLookup()
74 fuse_reply_err(req, ENOENT); in FuseDaemonLookup()
83 fuse_reply_entry(req, &fep); in FuseDaemonLookup()
91 fuse_reply_err(req, ENOENT); in FuseDaemonLookup()
96 fuse_reply_entry(req, &fep); in FuseDaemonLookup()
105 static void FuseDaemonGetattr(fuse_req_t req, fuse_ino_t ino, struct fuse_file_info* fi) in FuseDaemonGetattr() argument
111 fuse_reply_attr(req, fileStat, DEFAULT_ATTR_TIMEOUT); in FuseDaemonGetattr()
118 fuse_reply_err(req, ENOENT); in FuseDaemonGetattr()
123 fuse_reply_attr(req, &fileStat, DEFAULT_ATTR_TIMEOUT); in FuseDaemonGetattr()
[all …]
/base/powermgr/battery_lite/services/src/small/
Dbattery_feature_impl.c19 typedef int32_t (*InvokeFunc)(IServerProxy *iProxy, void *origin, IpcIo *req, IpcIo *reply);
20 static int32_t FeatureInvoke(IServerProxy *iProxy, int32_t funcId, void *origin, IpcIo *req, IpcIo …
22 static int32_t BatterySocInvoke(IServerProxy *iProxy, void *origin, IpcIo *req, IpcIo *reply);
23 static int32_t ChargingStatusInvoke(IServerProxy *iProxy, void *origin, IpcIo *req, IpcIo *reply);
24 static int32_t HealthStatusInvoke(IServerProxy *iProxy, void *origin, IpcIo *req, IpcIo *reply);
25 static int32_t PluggedTypeInvoke(IServerProxy *iProxy, void *origin, IpcIo *req, IpcIo *reply);
26 static int32_t VoltageInvoke(IServerProxy *iProxy, void *origin, IpcIo *req, IpcIo *reply);
27 static int32_t TechnologyInvoke(IServerProxy *iProxy, void *origin, IpcIo *req, IpcIo *reply);
28 static int32_t BatteryTemperatureInvoke(IServerProxy *iProxy, void *origin, IpcIo *req, IpcIo *repl…
54 static int32_t FeatureInvoke(IServerProxy *iProxy, int32_t funcId, void *origin, IpcIo *req, IpcIo … in FeatureInvoke() argument
[all …]
/base/security/dlp_permission_service/interfaces/inner_api/dlp_fuse/test/unittest/src/
Dfuse_mock.cpp42 typedef int (*FuseReplyErrT)(fuse_req_t req, int err);
43 typedef int (*FuseReplyEntryT)(fuse_req_t req, const struct fuse_entry_param *e);
44 typedef int (*FuseReplyAttrT)(fuse_req_t req, const struct stat *attr, double attr_timeout);
45 typedef int (*FuseReplyOpenT)(fuse_req_t req, const struct fuse_file_info *f);
46 typedef int (*FuseReplyBufT)(fuse_req_t req, const char *buf, size_t size);
47 typedef int (*FuseReplyWriteT)(fuse_req_t req, size_t count);
48 typedef size_t (*FuseAddDirentryT)(fuse_req_t req, char *buf, size_t bufsize,
167 int fuse_reply_err(fuse_req_t req, int err) in fuse_reply_err() argument
172 return (*reinterpret_cast<FuseReplyErrT>(rawFunc))(req, err); in fuse_reply_err()
181 return (*func)(req, err); in fuse_reply_err()
[all …]
Dfuse_daemon_test.cpp47 static int FuseReplyErrMock(fuse_req_t req, int err) in FuseReplyErrMock() argument
49 (void)req; in FuseReplyErrMock()
54 static int FuseReplyOpenMock(fuse_req_t req, const struct fuse_file_info *f) in FuseReplyOpenMock() argument
56 (void)req; in FuseReplyOpenMock()
61 int FuseReplyEntryMock(fuse_req_t req, const struct fuse_entry_param *e) in FuseReplyEntryMock() argument
63 (void)req; in FuseReplyEntryMock()
68 int FuseReplyAttrMock(fuse_req_t req, const struct stat *attr, double attr_timeout) in FuseReplyAttrMock() argument
70 (void)req; in FuseReplyAttrMock()
77 size_t FuseAddDirentryMockCurDirFail(fuse_req_t req, char *buf, size_t bufsize, in FuseAddDirentryMockCurDirFail() argument
80 (void)req; in FuseAddDirentryMockCurDirFail()
[all …]
/base/security/permission_lite/services/pms/src/
Dpms_server_internal.c65 static int32 Invoke(IServerProxy *iProxy, int funcId, void *origin, IpcIo *req, IpcIo *reply);
124 static void ReplyCheckPermission(const void *origin, IpcIo *req, IpcIo *reply, InnerPermLiteApi* ap… in ReplyCheckPermission() argument
132 ReadInt64(req, &uid); in ReplyCheckPermission()
133 char *permName = (char *)ReadString(req, &permLen); in ReplyCheckPermission()
139 static void ReplyGrantPermission(const void *origin, IpcIo *req, IpcIo *reply, InnerPermLiteApi* ap… in ReplyGrantPermission() argument
146 char *identifier = (char *)ReadString(req, &idLen); in ReplyGrantPermission()
147 char *permName = (char *)ReadString(req, &permLen); in ReplyGrantPermission()
153 static void ReplyRevokePermission(const void *origin, IpcIo *req, IpcIo *reply, InnerPermLiteApi* a… in ReplyRevokePermission() argument
160 char *identifier = (char *)ReadString(req, &idLen); in ReplyRevokePermission()
161 char *permName = (char *)ReadString(req, &permLen); in ReplyRevokePermission()
[all …]
Dpms_server.c56 static int32 Invoke(IServerProxy *iProxy, int funcId, void *origin, IpcIo *req, IpcIo *reply);
111 static void ReplyCheckSelfPermission(const void *origin, IpcIo *req, IpcIo *reply, PermLiteApi* api) in ReplyCheckSelfPermission() argument
118 char *permName = (char *)ReadString(req, &permLen); in ReplyCheckSelfPermission()
124 static void ReplyQueryPermission(const void *origin, IpcIo *req, IpcIo *reply) in ReplyQueryPermission() argument
131 char *identifier = (char *)ReadString(req, &idLen); in ReplyQueryPermission()
146 static int32 Invoke(IServerProxy *iProxy, int funcId, void *origin, IpcIo *req, IpcIo *reply) in Invoke() argument
151 ReplyCheckSelfPermission(origin, req, reply, api); in Invoke()
154 ReplyQueryPermission(origin, req, reply); in Invoke()
/base/notification/distributed_notification_service/frameworks/test/moduletest/
Dans_innerkits_module_publish_test.cpp582 NotificationRequest req; variable
583 req.SetContent(content);
584 req.SetSlotType(NotificationConstant::OTHER);
585 req.SetNotificationId(CASE_ONE);
588 req.SetNotificationUserInputHistory(style);
589 req.SetOwnerBundleName("bundleName");
590 req.SetCreatorBundleName("creatorbundlename");
591 req.SetLabel("ANS_Interface_MT_Publish_00100");
610 req.SetBigIcon(pixelMap);
611 req.SetLittleIcon(pixelMap);
[all …]
Dans_fw_module_test.cpp367 …inline std::string GenerateDistributedKey(const NotificationRequest &req, const std::string &devic… in GenerateDistributedKey() argument
374 .append(req.GetLabel()) in GenerateDistributedKey()
376 .append(ToString(req.GetNotificationId())); in GenerateDistributedKey()
380 …NotificationRequest &req, std::vector<DistributedKv::Entry> &entries, DistributedKv::Entry &outEnt… in GetRequestInDistributedEntryList() argument
382 std::string localDistributedKey = GenerateDistributedKey(req, LOCAL_DEVICE_ID); in GetRequestInDistributedEntryList()
392 bool GetRequestInNotificationList(NotificationRequest &req, in GetRequestInNotificationList() argument
396 … if (notification->GetNotificationRequest().GetNotificationId() == req.GetNotificationId() && in GetRequestInNotificationList()
397 notification->GetNotificationRequest().GetLabel() == req.GetLabel()) { in GetRequestInNotificationList()
642 NotificationRequest req(i);
643 req.SetLabel(label);
[all …]
/base/notification/distributed_notification_service/services/ans/test/unittest/
Dadvanced_notification_service_test.cpp140 sptr<NotificationRequest> req = new NotificationRequest(1); variable
141 EXPECT_NE(req, nullptr);
142 req->SetSlotType(NotificationConstant::SlotType::OTHER);
143 req->SetLabel("req's label");
151 req->SetContent(content);
152 EXPECT_EQ(advancedNotificationService_->Publish(label, req), (int)ERR_OK);
165 sptr<NotificationRequest> req = new NotificationRequest(1); variable
166 EXPECT_NE(req, nullptr);
167 req->SetSlotType(NotificationConstant::SlotType::OTHER);
168 req->SetLabel("req's label");
[all …]
/base/sensors/sensor_lite/services/include/
Dsensor_service_impl.h46 typedef int32 (*InvokeFunc)(SensorFeatureApi *defaultApi, IpcIo *req, IpcIo *reply);
47 int32_t GetAllSensorsInvoke(SensorFeatureApi *defaultApi, IpcIo *req, IpcIo *reply);
48 int32_t ActivateSensorInvoke(SensorFeatureApi *defaultApi, IpcIo *req, IpcIo *reply);
49 int32_t DeactivateSensorInvoke(SensorFeatureApi *defaultApi, IpcIo *req, IpcIo *reply);
50 int32_t SetBatchInvoke(SensorFeatureApi *defaultApi, IpcIo *req, IpcIo *reply);
51 int32_t SubscribeSensorInvoke(SensorFeatureApi *defaultApi, IpcIo *req, IpcIo *reply);
52 int32_t UnsubscribeSensorInvoke(SensorFeatureApi *defaultApi, IpcIo *req, IpcIo *reply);
53 int32_t SetModeInvoke(SensorFeatureApi *defaultApi, IpcIo *req, IpcIo *reply);
54 int32_t SetOptionInvoke(SensorFeatureApi *defaultApi, IpcIo *req, IpcIo *reply);
55 void SetSvcIdentity(IpcIo *req, const IpcIo *reply);
/base/sensors/sensor_lite/services/src/
Dsensor_service.c24 int32_t GetAllSensorsInvoke(SensorFeatureApi *defaultApi, IpcIo *req, IpcIo *reply) in GetAllSensorsInvoke() argument
48 int32_t ActivateSensorInvoke(SensorFeatureApi *defaultApi, IpcIo *req, IpcIo *reply) in ActivateSensorInvoke() argument
53 ReadInt32(req, &sensorId); in ActivateSensorInvoke()
66 int32_t DeactivateSensorInvoke(SensorFeatureApi *defaultApi, IpcIo *req, IpcIo *reply) in DeactivateSensorInvoke() argument
71 ReadInt32(req, &sensorId); in DeactivateSensorInvoke()
84 int32_t SetBatchInvoke(SensorFeatureApi *defaultApi, IpcIo *req, IpcIo *reply) in SetBatchInvoke() argument
89 ReadInt32(req, &sensorId); in SetBatchInvoke()
91 ReadInt64(req, &updateInterval); in SetBatchInvoke()
93 ReadInt64(req, &maxDelay); in SetBatchInvoke()
106 int32_t SubscribeSensorInvoke(SensorFeatureApi *defaultApi, IpcIo *req, IpcIo *reply) in SubscribeSensorInvoke() argument
[all …]
/base/notification/distributed_notification_service/services/test/moduletest/
Dans_module_test.cpp145 sptr<NotificationRequest> req = new NotificationRequest(2); variable
152 EXPECT_EQ((int)g_advancedNotificationService->Publish(label, req), (int)ERR_OK);
170 sptr<NotificationRequest> req = new NotificationRequest(0); variable
171 req->SetLabel(label);
180 EXPECT_EQ((int)g_advancedNotificationService->Publish(label, req), (int)ERR_OK);
216 sptr<NotificationRequest> req = new NotificationRequest(0); variable
217 req->SetLabel(label);
218 req->SetStatusBarText("text");
222 g_advancedNotificationService->Publish(label, req);
264 sptr<NotificationRequest> req = new NotificationRequest(0); variable
[all …]
/base/powermgr/powermgr_lite/services/src/screensaver/small/
Dscreen_saver_feature_impl.c25 static int32_t FeatureInvoke(IServerProxy *iProxy, int32_t funcId, void *origin, IpcIo *req, IpcIo …
41 static int32_t SetStateInvoke(IServerProxy *iProxy, void *origin, IpcIo *req, IpcIo *reply) in SetStateInvoke() argument
48 ReadBool(req, &enable); in SetStateInvoke()
54 static int32_t FeatureInvoke(IServerProxy *iProxy, int32_t funcId, void *origin, IpcIo *req, IpcIo … in FeatureInvoke() argument
56 if ((iProxy == NULL) || (req == NULL)) { in FeatureInvoke()
64 ret = SetStateInvoke(iProxy, origin, req, reply); in FeatureInvoke()
/base/request/request/services/service/rust/src/c_wrapper/source/
Dbackground_notification.cpp46 NotificationRequest req(msg.taskId); in RequestBackgroundNotify() local
47 req.SetCreatorUid(msg.uid); in RequestBackgroundNotify()
48 req.SetContent(content); in RequestBackgroundNotify()
49 req.SetTemplate(requestTemplate); in RequestBackgroundNotify()
50 req.SetSlotType(NotificationConstant::OTHER); in RequestBackgroundNotify()
51 OHOS::ErrCode errCode = NotificationHelper::PublishNotification(req); in RequestBackgroundNotify()
/base/security/device_security_level/services/sa/lite/
Ddslm_ipc_process.c50 static int32_t DslmGetRequestFromParcel(IpcIo *req, DeviceIdentify *identity, in DslmGetRequestFromParcel() argument
53 ReadUint32(req, &identity->length); in DslmGetRequestFromParcel()
54 uint32_t *dataRead = ReadBuffer(req, DEVICE_ID_MAX_LEN); in DslmGetRequestFromParcel()
66 ReadUint64(req, &option->challenge); in DslmGetRequestFromParcel()
67 ReadUint32(req, &option->timeout); in DslmGetRequestFromParcel()
71 ReadUint32(req, &option->extra); in DslmGetRequestFromParcel()
72 ReadUint32(req, cookie); in DslmGetRequestFromParcel()
152 int32_t DslmProcessGetDeviceSecurityLevel(IUnknown *iUnknown, IpcIo *req, IpcIo *reply) in DslmProcessGetDeviceSecurityLevel() argument
158 int32_t ret = DslmGetRequestFromParcel(req, &identity, &option, &cookie); in DslmProcessGetDeviceSecurityLevel()
Ddslm_service_feature.c27 static int32 Invoke(IServerProxy *iProxy, int funcId, void *origin, IpcIo *req, IpcIo *reply);
68 static int32 Invoke(IServerProxy *iProxy, int funcId, void *origin, IpcIo *req, IpcIo *reply) in Invoke() argument
73 return api->DslmGetDeviceSecurityLevel((IUnknown *)iProxy, req, reply); in Invoke()
Ddslm_ipc_process.h25 int32_t DslmProcessGetDeviceSecurityLevel(IUnknown *iUnknown, IpcIo *req, IpcIo *reply);
Ddslm_service.h37 int32_t (*DslmGetDeviceSecurityLevel)(IUnknown *iUnknown, IpcIo *req, IpcIo *reply);
/base/notification/distributed_notification_service/test/bechmarktest/notification_services_test/
Dnotification_service_test.cpp190 sptr<NotificationRequest> req = new (std::nothrow) NotificationRequest(1); in BENCHMARK_F() local
191 EXPECT_NE(req, nullptr); in BENCHMARK_F()
192 req->SetSlotType(NotificationConstant::SlotType::OTHER); in BENCHMARK_F()
193 req->SetLabel("req's label"); in BENCHMARK_F()
194 req->SetCreatorUid(100); in BENCHMARK_F()
202 req->SetContent(content); in BENCHMARK_F()
205 ErrCode errCode = advancedNotificationService_->Publish(label, req); in BENCHMARK_F()
221 sptr<NotificationRequest> req = new (std::nothrow) NotificationRequest(0); in BENCHMARK_F() local
222 EXPECT_NE(req, nullptr); in BENCHMARK_F()
223 req->SetSlotType(NotificationConstant::SlotType::OTHER); in BENCHMARK_F()
[all …]
/base/security/huks/services/huks_standard/huks_service/main/os_dependency/sa/sa_mgr/
Dhks_samgr_service_feature.c29 static int32 Invoke(IServerProxy *iProxy, int funcId, void *origin, IpcIo *req, IpcIo *reply);
96 static int32_t ReadSrcDataFromReq(IpcIo *req, struct HksBlob *srcData) in ReadSrcDataFromReq() argument
100 bool ipcRet = ReadUint32(req, &buffSize); in ReadSrcDataFromReq()
109 const uint8_t *tmpUint8Array = ReadBuffer(req, srcData->size); in ReadSrcDataFromReq()
122 static int32_t Invoke(IServerProxy *iProxy, int funcId, void *origin, IpcIo *req, IpcIo *reply) in Invoke() argument
137 bool ipcRet = ReadUint32(req, &outSize); in Invoke()
156 ret = ReadSrcDataFromReq(req, &srcData); in Invoke()
/base/startup/appspawn/lite/
Dappspawn_service.c81 static int GetMessageSt(MessageSt *msgSt, IpcIo *req) in GetMessageSt() argument
83 if (msgSt == NULL || req == NULL) { in GetMessageSt()
88 char* str = ReadString(req, &len); in GetMessageSt()
115 static int Invoke(IServerProxy *iProxy, int funcId, void *origin, IpcIo *req, IpcIo *reply) in Invoke() argument
125 if (reply == NULL || funcId != ID_CALL_CREATE_SERVICE || req == NULL) { in Invoke()
135 if (GetMessageSt(&client.message, req) != EC_SUCCESS) { in Invoke()
/base/security/device_auth/frameworks/src/lite/
Dipc_dev_auth_stub.c157 static int32_t DevAuthRequestCall(void *origin, IpcIo *req, IpcIo *reply) in DevAuthRequestCall() argument
166 ret = GetMethodId(req, &methodId); in DevAuthRequestCall()
176 ret = DecodeCallRequest(req, reqParams, MAX_REQUEST_PARAMS_NUM, &reqParamNum); in DevAuthRequestCall()
181 WithObject(methodId, req, &reqParams[reqParamNum], &reqParamNum); in DevAuthRequestCall()
187 int32_t (*callCtx)(void *origin, IpcIo *req, IpcIo *reply);
193 int32_t OnRemoteInvoke(IServerProxy *iProxy, int32_t reqId, void *origin, IpcIo *req, IpcIo *reply) in OnRemoteInvoke() argument
197 int32_t (*callCtx)(void *origin, IpcIo *req, IpcIo *reply) = NULL; in OnRemoteInvoke()
215 ret = callCtx(origin, req, &replyTmp); in OnRemoteInvoke()
/base/hiviewdfx/hilog_lite/frameworks/mini/
Dhiview_output_log.c76 static void OutputLogRealtime(const Request *req);
78 static void OutputLog2TextFile(const Request *req);
80 static void OutputLog2BinFile(const Request *req);
208 static void OutputLogRealtime(const Request *req) in OutputLogRealtime() argument
214 (void)req; in OutputLogRealtime()
236 static void OutputLog2TextFile(const Request *req) in OutputLog2TextFile() argument
278 if (req != NULL && req->msgValue == SYNC_FILE) { in OutputLog2TextFile()
283 static void OutputLog2BinFile(const Request *req) in OutputLog2BinFile() argument
340 if (req != NULL && req->msgValue == SYNC_FILE) { in OutputLog2BinFile()
/base/security/device_auth/frameworks/inc/lite/
Dipc_dev_auth_stub.h44 int32_t OnRemoteInvoke(IServerProxy *iProxy, int32_t reqId, void *origin, IpcIo *req, IpcIo *reply);

12