Home
last modified time | relevance | path

Searched refs:req (Results 1 – 25 of 28) 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/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/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.cpp567 NotificationRequest req; variable
568 req.SetContent(content);
569 req.SetSlotType(NotificationConstant::OTHER);
570 req.SetNotificationId(CASE_ONE);
573 req.SetNotificationUserInputHistory(style);
574 req.SetOwnerBundleName("bundleName");
575 req.SetCreatorBundleName("creatorbundlename");
576 req.SetLabel("ANS_Interface_MT_Publish_00100");
595 req.SetBigIcon(pixelMap);
596 req.SetLittleIcon(pixelMap);
[all …]
Dans_fw_module_test.cpp369 …inline std::string GenerateDistributedKey(const NotificationRequest &req, const std::string &devic… in GenerateDistributedKey() argument
376 .append(req.GetLabel()) in GenerateDistributedKey()
378 .append(ToString(req.GetNotificationId())); in GenerateDistributedKey()
382 …NotificationRequest &req, std::vector<DistributedKv::Entry> &entries, DistributedKv::Entry &outEnt… in GetRequestInDistributedEntryList() argument
384 std::string localDistributedKey = GenerateDistributedKey(req, LOCAL_DEVICE_ID); in GetRequestInDistributedEntryList()
394 bool GetRequestInNotificationList(NotificationRequest &req, in GetRequestInNotificationList() argument
398 … if (notification->GetNotificationRequest().GetNotificationId() == req.GetNotificationId() && in GetRequestInNotificationList()
399 notification->GetNotificationRequest().GetLabel() == req.GetLabel()) { in GetRequestInNotificationList()
644 NotificationRequest req(i);
645 req.SetLabel(label);
[all …]
/base/notification/distributed_notification_service/services/ans/test/unittest/
Dadvanced_notification_service_test.cpp134 sptr<NotificationRequest> req = new NotificationRequest(1); variable
135 EXPECT_NE(req, nullptr);
136 req->SetSlotType(NotificationConstant::SlotType::OTHER);
137 req->SetLabel("req's label");
145 req->SetContent(content);
146 EXPECT_EQ(advancedNotificationService_->Publish(label, req), (int)ERR_OK);
158 sptr<NotificationRequest> req = new NotificationRequest(1); variable
159 EXPECT_NE(req, nullptr);
160 req->SetSlotType(NotificationConstant::SlotType::OTHER);
161 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 …]
Dsensor_service_impl.c80 void SetSvcIdentity(IpcIo *req, const IpcIo *reply) in SetSvcIdentity() argument
83 bool ret = ReadRemoteObject(req, &sid); in SetSvcIdentity()
/base/notification/distributed_notification_service/services/test/moduletest/
Dans_module_test.cpp139 sptr<NotificationRequest> req = new NotificationRequest(2); variable
146 EXPECT_EQ((int)g_advancedNotificationService->Publish(label, req), (int)ERR_OK);
164 sptr<NotificationRequest> req = new NotificationRequest(0); variable
165 req->SetLabel(label);
174 EXPECT_EQ((int)g_advancedNotificationService->Publish(label, req), (int)ERR_OK);
210 sptr<NotificationRequest> req = new NotificationRequest(0); variable
211 req->SetLabel(label);
212 req->SetStatusBarText("text");
216 g_advancedNotificationService->Publish(label, req);
257 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/download/services/src/
Ddownload_background_notification.cpp52 NotificationRequest req(taskId); in PublishDownloadNotification() local
53 req.SetCreatorUid(uid); in PublishDownloadNotification()
54 req.SetContent(content); in PublishDownloadNotification()
55 req.SetTemplate(downloadTemplate); in PublishDownloadNotification()
56 req.SetSlotType(NotificationConstant::OTHER); in PublishDownloadNotification()
57 ErrCode errCode = NotificationHelper::PublishNotification(req); in PublishDownloadNotification()
/base/notification/distributed_notification_service/test/bechmarktest/notification_services_test/
Dnotification_service_test.cpp154 sptr<NotificationRequest> req = new (std::nothrow) NotificationRequest(1); in BENCHMARK_F() local
155 EXPECT_NE(req, nullptr); in BENCHMARK_F()
156 req->SetSlotType(NotificationConstant::SlotType::OTHER); in BENCHMARK_F()
157 req->SetLabel("req's label"); in BENCHMARK_F()
165 req->SetContent(content); in BENCHMARK_F()
168 ErrCode errCode = advancedNotificationService_->Publish(label, req); in BENCHMARK_F()
183 sptr<NotificationRequest> req = new (std::nothrow) NotificationRequest(0); in BENCHMARK_F() local
184 EXPECT_NE(req, nullptr); in BENCHMARK_F()
185 req->SetSlotType(NotificationConstant::SlotType::OTHER); in BENCHMARK_F()
186 req->SetLabel("req's label"); in BENCHMARK_F()
[all …]
/base/startup/appspawn_lite/services/src/
Dappspawn_service.c97 static int GetMessageSt(MessageSt* msgSt, IpcIo* req) in GetMessageSt() argument
99 if (msgSt == NULL || req == NULL) { in GetMessageSt()
103 char* str = ReadString(req, &len); in GetMessageSt()
113 static int Invoke(IServerProxy* iProxy, int funcId, void* origin, IpcIo* req, IpcIo* reply) in Invoke() argument
123 if (reply == NULL || funcId != ID_CALL_CREATE_SERVICE || req == NULL) { in Invoke()
131 if (GetMessageSt(&msgSt, req) != EC_SUCCESS) { in Invoke()
/base/startup/appspawn/lite/
Dappspawn_service.c84 static int GetMessageSt(MessageSt *msgSt, IpcIo *req) in GetMessageSt() argument
86 if (msgSt == NULL || req == NULL) { in GetMessageSt()
91 char* str = ReadString(req, &len); in GetMessageSt()
118 static int Invoke(IServerProxy *iProxy, int funcId, void *origin, IpcIo *req, IpcIo *reply) in Invoke() argument
128 if (reply == NULL || funcId != ID_CALL_CREATE_SERVICE || req == NULL) { in Invoke()
138 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/security/huks/services/huks_standard/huks_service/main/os_dependency/sa/sa_mgr/
Dhks_samgr_service_feature.c24 static int32 Invoke(IServerProxy *iProxy, int funcId, void *origin, IpcIo *req, IpcIo *reply);
70 static int32 Invoke(IServerProxy *iProxy, int funcId, void *origin, IpcIo *req, IpcIo *reply) in Invoke() argument
72 BuffPtr* buffRsv = IpcIoPopDataBuff(req); in Invoke()
/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);
/base/security/huks/frameworks/huks_standard/main/crypto_engine/openssl/src/
Dhks_openssl_curve25519.c262 size_t req = 0; in HksOpensslEd25519Sign() local
263 if (EVP_DigestSign(mdctx, NULL, &req, NULL, 0) <= 0) { in HksOpensslEd25519Sign()
268 if (EVP_DigestSign(mdctx, signature->data, &req, message->data, message->size) <= 0) { in HksOpensslEd25519Sign()
273 signature->size = req; in HksOpensslEd25519Sign()
/base/hiviewdfx/hievent_lite/frameworks/
Dhiview_output_event.c91 static void OutputEventRealtime(const Request *req);
93 static void OutputEvent2Flash(const Request *req);
279 static void OutputEventRealtime(const Request *req) in OutputEventRealtime() argument
289 event.type = (uint8)req->msgValue; in OutputEventRealtime()
315 static void OutputEvent2Flash(const Request *req) in OutputEvent2Flash() argument
317 Output2Flash((uint8)req->msgValue); in OutputEvent2Flash()
/base/powermgr/battery_lite/services/src/
Dbattery_device.c61 static int32_t Invoke(IServerProxy *iProxy, int funcId, void *origin, IpcIo *req, IpcIo *reply) in Invoke() argument
66 (void)req; in Invoke()
/base/usb/usb_manager/interfaces/innerkits/native/src/
Dusb_srv_client.cpp303 int32_t UsbSrvClient::PipeRequestWait(USBDevicePipe &pipe, int64_t timeOut, UsbRequest &req) in PipeRequestWait() argument
315 req.SetPipe(pipe); in PipeRequestWait()
316 req.SetClientData(clientData); in PipeRequestWait()
317 req.SetReqData(bufferData); in PipeRequestWait()
/base/security/huks/test/unittest/huks_standard_test/interface_inner_test/alg_module_test/src/
Dopenssl_ecc_helper.c336 size_t req = 0; in EcdsaSign() local
338 if (EVP_DigestSignFinal(ctx, NULL, &req) != 1) { in EcdsaSign()
343 if (EVP_DigestSignFinal(ctx, signature->data, &req) != 1) { in EcdsaSign()
347 signature->size = req; in EcdsaSign()

12