/base/powermgr/powermgr_lite/services/src/power/small/ |
D | power_manage_feature_impl.c | 25 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/ |
D | battery_feature_impl.c | 19 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/ |
D | pms_server_internal.c | 65 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 …]
|
D | pms_server.c | 56 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/ |
D | advanced_notification_service_test.cpp | 132 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/ |
D | ans_innerkits_module_publish_test.cpp | 566 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 …]
|
D | ans_fw_module_test.cpp | 376 …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/ |
D | sensor_service.c | 24 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 …]
|
D | sensor_service_impl.c | 88 void SetSvcIdentity(IpcIo *req, const IpcIo *reply) in SetSvcIdentity() argument 90 SvcIdentity *sid = IpcIoPopSvc(req); in SetSvcIdentity()
|
/base/sensors/sensor_lite/services/include/ |
D | sensor_service_impl.h | 46 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/ |
D | ans_module_test.cpp | 139 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/ |
D | screen_saver_feature_impl.c | 25 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/ |
D | appspawn_service.c | 97 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/ |
D | ipc_dev_auth_stub.c | 181 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/ |
D | hks_samgr_service_feature.c | 23 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/ |
D | hiview_output_log.c | 75 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/ |
D | worker.h | 101 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/ |
D | ipc_dev_auth_stub.h | 44 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/ |
D | hks_openssl_curve25519.c | 279 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/ |
D | dialogPlus.ets | 40 permissionList.forEach((req, idx) => { 41 if(req == permission) {
|
/base/hiviewdfx/hievent_lite/frameworks/ |
D | hiview_output_event.c | 88 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/ |
D | usb_async_context.h | 105 UsbRequest req; member
|
/base/usb/usb_manager/interfaces/innerkits/native/src/ |
D | usb_srv_client.cpp | 294 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/ |
D | openssl_ecc_helper.c | 334 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/ |
D | usb_srv_client.h | 65 int32_t PipeRequestWait(USBDevicePipe &pip, int64_t timeOut, UsbRequest &req);
|