Home
last modified time | relevance | path

Searched refs:req (Results 1 – 25 of 29) 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) || (origin == 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/services/permission_lite/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
131 int64_t uid = IpcIoPopInt64(req); in ReplyCheckPermission()
132 char *permName = (char *)IpcIoPopString(req, &permLen); in ReplyCheckPermission()
138 static void ReplyGrantPermission(const void *origin, IpcIo *req, IpcIo *reply, InnerPermLiteApi* ap… in ReplyGrantPermission() argument
145 char *identifier = (char *)IpcIoPopString(req, &idLen); in ReplyGrantPermission()
146 char *permName = (char *)IpcIoPopString(req, &permLen); in ReplyGrantPermission()
152 static void ReplyRevokePermission(const void *origin, IpcIo *req, IpcIo *reply, InnerPermLiteApi* a… in ReplyRevokePermission() argument
159 char *identifier = (char *)IpcIoPopString(req, &idLen); in ReplyRevokePermission()
160 char *permName = (char *)IpcIoPopString(req, &permLen); in ReplyRevokePermission()
[all …]
Dpms_server.c56 static int32 Invoke(IServerProxy *iProxy, int funcId, void *origin, IpcIo *req, IpcIo *reply);
118 static void ReplyCheckSelfPermission(const void *origin, IpcIo *req, IpcIo *reply, PermLiteApi* api) in ReplyCheckSelfPermission() argument
125 char *permName = (char *)IpcIoPopString(req, &permLen); in ReplyCheckSelfPermission()
131 static void ReplyQueryPermission(const void *origin, IpcIo *req, IpcIo *reply) in ReplyQueryPermission() argument
138 char *identifier = (char *)IpcIoPopString(req, &idLen); in ReplyQueryPermission()
161 static int32 Invoke(IServerProxy *iProxy, int funcId, void *origin, IpcIo *req, IpcIo *reply) in Invoke() argument
166 ReplyCheckSelfPermission(origin, req, reply, api); in Invoke()
169 ReplyQueryPermission(origin, req, reply); in Invoke()
/base/notification/ans_standard/services/ans/test/unittest/
Dadvanced_notification_service_test.cpp132 sptr<NotificationRequest> req = new NotificationRequest(1); variable
133 EXPECT_NE(req, nullptr);
134 req->SetSlotType(NotificationConstant::SlotType::OTHER);
135 req->SetLabel("req's label");
143 req->SetContent(content);
144 EXPECT_EQ(advancedNotificationService_->Publish(label, req), (int)ERR_OK);
156 sptr<NotificationRequest> req = new NotificationRequest(1); variable
157 EXPECT_NE(req, nullptr);
158 req->SetSlotType(NotificationConstant::SlotType::OTHER);
159 req->SetLabel("req's label");
[all …]
/base/notification/ans_standard/frameworks/ans/test/moduletest/
Dans_innerkits_module_publish_test.cpp566 NotificationRequest req; variable
567 req.SetContent(content);
568 req.SetSlotType(NotificationConstant::OTHER);
569 req.SetNotificationId(CASE_ONE);
572 req.SetNotificationUserInputHistory(style);
573 req.SetOwnerBundleName("bundleName");
574 req.SetCreatorBundleName("creatorbundlename");
575 req.SetLabel("ANS_Interface_MT_Publish_00100");
579 req.SetPublicNotification(requestPtr);
598 req.SetBigIcon(pixelMap);
[all …]
Dans_fw_module_test.cpp376 …inline std::string GenerateDistributedKey(const NotificationRequest &req, const std::string &devic… in GenerateDistributedKey() argument
383 .append(req.GetLabel()) in GenerateDistributedKey()
385 .append(ToString(req.GetNotificationId())); in GenerateDistributedKey()
389 …NotificationRequest &req, std::vector<DistributedKv::Entry> &entries, DistributedKv::Entry &outEnt… in GetRequestInDistributedEntryList() argument
391 std::string localDistributedKey = GenerateDistributedKey(req, LOCAL_DEVICE_ID); in GetRequestInDistributedEntryList()
401 bool GetRequestInNotificationList(NotificationRequest &req, in GetRequestInNotificationList() argument
405 … if (notification->GetNotificationRequest().GetNotificationId() == req.GetNotificationId() && in GetRequestInNotificationList()
406 notification->GetNotificationRequest().GetLabel() == req.GetLabel()) { in GetRequestInNotificationList()
654 NotificationRequest req(i);
655 req.SetLabel(label);
[all …]
/base/sensors/sensor_lite/services/src/
Dsensor_service.c24 int32_t GetAllSensorsInvoke(SensorFeatureApi *defaultApi, IpcIo *req, IpcIo *reply) in GetAllSensorsInvoke() argument
51 int32_t ActivateSensorInvoke(SensorFeatureApi *defaultApi, IpcIo *req, IpcIo *reply) in ActivateSensorInvoke() argument
55 int32_t sensorId = IpcIoPopInt32(req); in ActivateSensorInvoke()
68 int32_t DeactivateSensorInvoke(SensorFeatureApi *defaultApi, IpcIo *req, IpcIo *reply) in DeactivateSensorInvoke() argument
72 int32_t sensorId = IpcIoPopInt32(req); in DeactivateSensorInvoke()
85 int32_t SetBatchInvoke(SensorFeatureApi *defaultApi, IpcIo *req, IpcIo *reply) in SetBatchInvoke() argument
89 int32_t sensorId = IpcIoPopInt32(req); in SetBatchInvoke()
90 int64_t updateInterval = IpcIoPopInt64(req); in SetBatchInvoke()
91 int64_t maxDelay = IpcIoPopInt64(req); in SetBatchInvoke()
104 int32_t SubscribeSensorInvoke(SensorFeatureApi *defaultApi, IpcIo *req, IpcIo *reply) in SubscribeSensorInvoke() argument
[all …]
Dsensor_service_impl.c88 void SetSvcIdentity(IpcIo *req, const IpcIo *reply) in SetSvcIdentity() argument
90 SvcIdentity *sid = IpcIoPopSvc(req); in SetSvcIdentity()
/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/notification/ans_standard/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
47 bool enable = IpcIoPopBool(req); in SetStateInvoke()
53 static int32_t FeatureInvoke(IServerProxy *iProxy, int32_t funcId, void *origin, IpcIo *req, IpcIo … in FeatureInvoke() argument
55 if ((iProxy == NULL) || (origin == NULL) || (req == NULL)) { in FeatureInvoke()
63 ret = SetStateInvoke(iProxy, origin, req, reply); in FeatureInvoke()
/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()
104 char* str = IpcIoPopString(req, &len); in GetMessageSt()
112 BuffPtr* dataPtr = IpcIoPopDataBuff(req); in GetMessageSt()
128 static int Invoke(IServerProxy* iProxy, int funcId, void* origin, IpcIo* req, IpcIo* reply) in Invoke() argument
138 if (reply == NULL || funcId != ID_CALL_CREATE_SERVICE || req == NULL) { in Invoke()
146 if (GetMessageSt(&msgSt, req) != EC_SUCCESS) { in Invoke()
/base/security/deviceauth/frameworks/src/lite/
Dipc_dev_auth_stub.c181 static int32_t DevAuthRequestCall(void *origin, IpcIo *req, IpcIo *reply) in DevAuthRequestCall() argument
190 ret = GetMethodId(req, &methodId); in DevAuthRequestCall()
200 ret = DecodeCallRequest(req, reqParams, MAX_REQUEST_PARAMS_NUM, &reqParamNum); in DevAuthRequestCall()
205 WithObject(methodId, req, &reqParams[reqParamNum], &reqParamNum); in DevAuthRequestCall()
211 int32_t (*callCtx)(void *origin, IpcIo *req, IpcIo *reply);
217 int32_t OnRemoteRequest(IServerProxy *iProxy, int32_t reqId, void *origin, IpcIo *req, IpcIo *reply) in OnRemoteRequest() argument
221 int32_t (*callCtx)(void *origin, IpcIo *req, IpcIo *reply) = NULL; in OnRemoteRequest()
239 ret = callCtx(origin, req, &replyTmp); in OnRemoteRequest()
/base/security/huks/services/huks_standard/huks_service/main/os_dependency/sa/sa_mgr/
Dhks_samgr_service_feature.c23 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.c75 static void OutputLogRealtime(const Request *req);
77 static void OutputLog2TextFile(const Request *req);
79 static void OutputLog2BinFile(const Request *req);
207 static void OutputLogRealtime(const Request *req) in OutputLogRealtime() argument
213 (void)req; in OutputLogRealtime()
235 static void OutputLog2TextFile(const Request *req) in OutputLog2TextFile() argument
277 if (req != NULL && req->msgValue == SYNC_FILE) { in OutputLog2TextFile()
282 static void OutputLog2BinFile(const Request *req) in OutputLog2BinFile() argument
339 if (req != NULL && req->msgValue == SYNC_FILE) { in OutputLog2BinFile()
/base/compileruntime/js_worker_module/jsapi/worker/
Dworker.h101 static void HostOnMessage(const uv_async_t* req);
102 static void HostOnError(const uv_async_t* req);
103 static void WorkerOnMessage(const uv_async_t* req);
246 static void HandleDebuggerTask(const uv_async_t* req);
/base/security/deviceauth/frameworks/inc/lite/
Dipc_dev_auth_stub.h44 int32_t OnRemoteRequest(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.c279 size_t req = 0; in HksOpensslEd25519Sign() local
280 if (EVP_DigestSign(mdctx, NULL, &req, NULL, 0) <= 0) { in HksOpensslEd25519Sign()
285 if (EVP_DigestSign(mdctx, signature->data, &req, message->data, message->size) <= 0) { in HksOpensslEd25519Sign()
290 signature->size = req; in HksOpensslEd25519Sign()
/base/security/access_token/frameworks/com.ohos.permissionmanager/permissionmanager/src/main/ets/GrantAbility/pages/
DdialogPlus.ets40 permissionList.forEach((req, idx) => {
41 if(req == permission) {
/base/hiviewdfx/hievent_lite/frameworks/
Dhiview_output_event.c88 static void OutputEventRealtime(const Request *req);
90 static void OutputEvent2Flash(const Request *req);
276 static void OutputEventRealtime(const Request *req) in OutputEventRealtime() argument
286 event.type = (uint8)req->msgValue; in OutputEventRealtime()
316 static void OutputEvent2Flash(const Request *req) in OutputEvent2Flash() argument
318 Output2Flash((uint8)req->msgValue); in OutputEvent2Flash()
/base/usb/usb_manager/interfaces/kits/js/napi/include/
Dusb_async_context.h105 UsbRequest req; member
/base/usb/usb_manager/interfaces/innerkits/native/src/
Dusb_srv_client.cpp294 int32_t UsbSrvClient::PipeRequestWait(USBDevicePipe &pipe, int64_t timeOut, UsbRequest &req) in PipeRequestWait() argument
307 req.SetPipe(pipe); in PipeRequestWait()
308 req.SetClientData(clientData); in PipeRequestWait()
309 req.SetReqData(bufferData); in PipeRequestWait()
/base/security/huks/interfaces/innerkits/huks_standard/test/moduletest/src/
Dopenssl_ecc_helper.c334 size_t req = 0; in EcdsaSign() local
336 if (EVP_DigestSignFinal(ctx, NULL, &req) != 1) { in EcdsaSign()
341 if (EVP_DigestSignFinal(ctx, signature->data, &req) != 1) { in EcdsaSign()
345 signature->size = req; in EcdsaSign()
/base/usb/usb_manager/interfaces/innerkits/native/include/
Dusb_srv_client.h65 int32_t PipeRequestWait(USBDevicePipe &pip, int64_t timeOut, UsbRequest &req);

12