/base/notification/distributed_notification_service/services/ans/test/unittest/advanced_notification_service_test/ |
H A D | advanced_notification_service_publish_test.cpp | 203 sptr<NotificationRequest> req = new NotificationRequest(1); in HWTEST_F() local 204 EXPECT_NE(req, nullptr); in HWTEST_F() 205 req->SetSlotType(NotificationConstant::SlotType::OTHER); in HWTEST_F() 206 req->SetLabel("req's label"); in HWTEST_F() 207 req->SetCreatorUid(1); in HWTEST_F() 215 req->SetContent(content); in HWTEST_F() 216 ASSERT_EQ(advancedNotificationService_->Publish(label, req), (int)ERR_OK); in HWTEST_F() 230 sptr<NotificationRequest> req = new NotificationRequest(1); in HWTEST_F() local 231 EXPECT_NE(req, nullpt in HWTEST_F() 265 sptr<NotificationRequest> req = new NotificationRequest(1); HWTEST_F() local 293 sptr<NotificationRequest> req = new NotificationRequest(); HWTEST_F() local 321 sptr<NotificationRequest> req = new NotificationRequest(); HWTEST_F() local 350 sptr<NotificationRequest> req = new NotificationRequest(); HWTEST_F() local 378 sptr<NotificationRequest> req = new NotificationRequest(); HWTEST_F() local 405 sptr<NotificationRequest> req = new NotificationRequest(); HWTEST_F() local 432 sptr<NotificationRequest> req = new NotificationRequest(); HWTEST_F() local 459 sptr<NotificationRequest> req = new NotificationRequest(); HWTEST_F() local 486 sptr<NotificationRequest> req = new NotificationRequest(); HWTEST_F() local 513 sptr<NotificationRequest> req = new NotificationRequest(); HWTEST_F() local 540 sptr<NotificationRequest> req = new NotificationRequest(); HWTEST_F() local 569 sptr<NotificationRequest> req = new NotificationRequest(); HWTEST_F() local 600 sptr<NotificationRequest> req = new NotificationRequest(1); HWTEST_F() local 624 sptr<NotificationRequest> req = new NotificationRequest(1); HWTEST_F() local 631 sptr<NotificationRequest> req = new NotificationRequest(2); HWTEST_F() local 661 sptr<NotificationRequest> req = new NotificationRequest(1); HWTEST_F() local 678 sptr<NotificationRequest> req = new NotificationRequest(notificationId); HWTEST_F() local 701 sptr<NotificationRequest> req = new NotificationRequest(1); HWTEST_F() local 735 sptr<NotificationRequest> req = new NotificationRequest(1); HWTEST_F() local 769 sptr<NotificationRequest> req = new NotificationRequest(1); HWTEST_F() local 799 sptr<NotificationRequest> req = new NotificationRequest(1); HWTEST_F() local 826 sptr<NotificationRequest> req = new NotificationRequest(1); HWTEST_F() local 861 sptr<NotificationRequest> req = new NotificationRequest(); HWTEST_F() local 892 sptr<NotificationRequest> req = new NotificationRequest(); HWTEST_F() local 927 sptr<NotificationRequest> req = new NotificationRequest(notificationId); HWTEST_F() local 949 sptr<NotificationRequest> req = new NotificationRequest(); HWTEST_F() local 980 sptr<NotificationRequest> req = new (std::nothrow) NotificationRequest(1); HWTEST_F() local 1008 sptr<NotificationRequest> req = new (std::nothrow) NotificationRequest(1); HWTEST_F() local 1044 sptr<NotificationRequest> req = new (std::nothrow) NotificationRequest(1); HWTEST_F() local 1079 sptr<NotificationRequest> req = new (std::nothrow) NotificationRequest(1); HWTEST_F() local 1115 sptr<NotificationRequest> req = new (std::nothrow) NotificationRequest(1); HWTEST_F() local 1149 sptr<NotificationRequest> req = new NotificationRequest(1); HWTEST_F() local 1179 sptr<NotificationRequest> req = new NotificationRequest(); HWTEST_F() local 1216 sptr<NotificationRequest> req = new NotificationRequest(); HWTEST_F() local 1233 sptr<NotificationRequest> req = new NotificationRequest(); HWTEST_F() local 1250 sptr<NotificationRequest> req = new NotificationRequest(1); HWTEST_F() local 1267 sptr<NotificationRequest> req = new NotificationRequest(1); HWTEST_F() local 1344 sptr<NotificationRequest> req = new NotificationRequest(); HWTEST_F() local 1359 sptr<NotificationRequest> req = new NotificationRequest(); HWTEST_F() local 1374 sptr<NotificationRequest> req = new (std::nothrow) NotificationRequest(); HWTEST_F() local 1430 sptr<NotificationRequest> req = new NotificationRequest(1); HWTEST_F() local 1462 sptr<NotificationRequest> req = new NotificationRequest(1); HWTEST_F() local [all...] |
/base/powermgr/powermgr_lite/services/src/power/small/ |
H A 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 *reply); 55 static int32_t FeatureInvoke(IServerProxy *iProxy, int32_t funcId, void *origin, IpcIo *req, IpcIo *reply) in FeatureInvoke() argument 57 if ((iProxy == NULL) || (req == NULL)) { in FeatureInvoke() 62 return (funcId >= 0 && funcId < POWERMANAGE_FUNCID_BUTT) ? g_invokeFuncs[funcId](iProxy, origin, req, repl in FeatureInvoke() 66 AcquireInvoke(IServerProxy *iProxy, void *origin, IpcIo *req, IpcIo *reply) AcquireInvoke() argument 78 ReleaseInvoke(IServerProxy *iProxy, void *origin, IpcIo *req, IpcIo *reply) ReleaseInvoke() argument 88 IsAnyHoldingInvoke(IServerProxy *iProxy, void *origin, IpcIo *req, IpcIo *reply) IsAnyHoldingInvoke() argument 95 SuspendInvoke(IServerProxy *iProxy, void *origin, IpcIo *req, IpcIo *reply) SuspendInvoke() argument 107 WakeupInvoke(IServerProxy *iProxy, void *origin, IpcIo *req, IpcIo *reply) WakeupInvoke() argument [all...] |
/base/security/dlp_permission_service/interfaces/inner_api/dlp_fuse/src/ |
H A D | fuse_daemon.cpp | 62 static void FuseDaemonLookup(fuse_req_t req, fuse_ino_t parent, const char* name) in FuseDaemonLookup() argument 66 fuse_reply_err(req, ENOENT); in FuseDaemonLookup() 73 fuse_reply_err(req, ENOENT); in FuseDaemonLookup() 82 fuse_reply_entry(req, &fep); in FuseDaemonLookup() 90 fuse_reply_err(req, ENOENT); in FuseDaemonLookup() 95 fuse_reply_entry(req, &fep); in FuseDaemonLookup() 104 static void FuseDaemonGetattr(fuse_req_t req, fuse_ino_t ino, struct fuse_file_info* fi) in FuseDaemonGetattr() argument 110 fuse_reply_attr(req, fileStat, DEFAULT_ATTR_TIMEOUT); in FuseDaemonGetattr() 117 fuse_reply_err(req, ENOENT); in FuseDaemonGetattr() 122 fuse_reply_attr(req, in FuseDaemonGetattr() 126 FuseDaemonOpen(fuse_req_t req, fuse_ino_t ino, struct fuse_file_info* fi) FuseDaemonOpen() argument 154 GetValidFileNode(fuse_req_t req, fuse_ino_t ino) GetValidFileNode() argument 168 FuseDaemonRead(fuse_req_t req, fuse_ino_t ino, size_t size, off_t offset, struct fuse_file_info* fi) FuseDaemonRead() argument 209 FuseDaemonWrite( fuse_req_t req, fuse_ino_t ino, const char* buf, size_t size, off_t off, struct fuse_file_info* fi) FuseDaemonWrite() argument 238 FuseDaemonForget(fuse_req_t req, fuse_ino_t ino, uint64_t nlookup) FuseDaemonForget() argument 310 FuseDaemonReadDir(fuse_req_t req, fuse_ino_t ino, size_t size, off_t off, struct fuse_file_info *fi) FuseDaemonReadDir() argument 358 FuseDaemonUpdateTime(fuse_req_t req, int toSet, DlpLinkFile* dlpLink) FuseDaemonUpdateTime() argument 382 FuseDaemonSetAttr(fuse_req_t req, fuse_ino_t ino, struct stat *attr, int toSet, struct fuse_file_info *fi) FuseDaemonSetAttr() argument [all...] |
/base/powermgr/battery_lite/services/src/small/ |
H A 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 *reply); 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 *reply); 54 static int32_t FeatureInvoke(IServerProxy *iProxy, int32_t funcId, void *origin, IpcIo *req, IpcI argument 63 BatterySocInvoke(IServerProxy *iProxy, void *origin, IpcIo *req, IpcIo *reply) BatterySocInvoke() argument 73 ChargingStatusInvoke(IServerProxy *iProxy, void *origin, IpcIo *req, IpcIo *reply) ChargingStatusInvoke() argument 83 HealthStatusInvoke(IServerProxy *iProxy, void *origin, IpcIo *req, IpcIo *reply) HealthStatusInvoke() argument 93 PluggedTypeInvoke(IServerProxy *iProxy, void *origin, IpcIo *req, IpcIo *reply) PluggedTypeInvoke() argument 103 VoltageInvoke(IServerProxy *iProxy, void *origin, IpcIo *req, IpcIo *reply) VoltageInvoke() argument 113 TechnologyInvoke(IServerProxy *iProxy, void *origin, IpcIo *req, IpcIo *reply) TechnologyInvoke() argument 124 BatteryTemperatureInvoke(IServerProxy *iProxy, void *origin, IpcIo *req, IpcIo *reply) BatteryTemperatureInvoke() argument [all...] |
/base/sensors/sensor_lite/services/include/ |
H A 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, cons [all...] |
/base/security/dlp_permission_service/interfaces/inner_api/dlp_fuse/test/unittest/src/ |
H A D | fuse_daemon_test.cpp | 51 static int FuseReplyErrMock(fuse_req_t req, int err) in FuseReplyErrMock() argument 53 (void)req; in FuseReplyErrMock() 58 static int FuseReplyOpenMock(fuse_req_t req, const struct fuse_file_info *f) in FuseReplyOpenMock() argument 60 (void)req; in FuseReplyOpenMock() 65 int FuseReplyEntryMock(fuse_req_t req, const struct fuse_entry_param *e) in FuseReplyEntryMock() argument 67 (void)req; in FuseReplyEntryMock() 72 int FuseReplyAttrMock(fuse_req_t req, const struct stat *attr, double attr_timeout) in FuseReplyAttrMock() argument 74 (void)req; in FuseReplyAttrMock() 81 size_t FuseAddDirentryMockCurDirFail(fuse_req_t req, char *buf, size_t bufsize, in FuseAddDirentryMockCurDirFail() argument 84 (void)req; in FuseAddDirentryMockCurDirFail() 93 FuseAddDirentryMockUpperDirFail(fuse_req_t req, char *buf, size_t bufsize, const char *name, const struct stat *stbuf, off_t off) FuseAddDirentryMockUpperDirFail() argument 107 FuseAddDirentryMockTestFileFail(fuse_req_t req, char *buf, size_t bufsize, const char *name, const struct stat *stbuf, off_t off) FuseAddDirentryMockTestFileFail() argument 121 FuseReplyBufMock(fuse_req_t req, const char *buf, size_t size) FuseReplyBufMock() argument 189 fuse_req_t req = nullptr; HWTEST_F() local 247 fuse_req_t req = nullptr; HWTEST_F() local 279 fuse_req_t req = nullptr; HWTEST_F() local 335 fuse_req req; HWTEST_F() local 376 fuse_req req; HWTEST_F() local 422 fuse_req_t req = nullptr; HWTEST_F() local 485 fuse_req_t req = nullptr; HWTEST_F() local 515 fuse_req_t req = nullptr; HWTEST_F() local 563 fuse_req_t req = nullptr; HWTEST_F() local 590 fuse_req_t req = nullptr; HWTEST_F() local 617 fuse_req_t req = nullptr; HWTEST_F() local 649 fuse_req_t req = nullptr; HWTEST_F() local 683 fuse_req_t req = nullptr; HWTEST_F() local 715 fuse_req_t req = nullptr; HWTEST_F() local 771 fuse_req_t req = nullptr; HWTEST_F() local [all...] |
H A D | fuse_mock.cpp | 37 typedef int (*FuseReplyErrT)(fuse_req_t req, int err); 38 typedef int (*FuseReplyEntryT)(fuse_req_t req, const struct fuse_entry_param *e); 39 typedef int (*FuseReplyAttrT)(fuse_req_t req, const struct stat *attr, double attr_timeout); 40 typedef int (*FuseReplyOpenT)(fuse_req_t req, const struct fuse_file_info *f); 41 typedef int (*FuseReplyBufT)(fuse_req_t req, const char *buf, size_t size); 42 typedef int (*FuseReplyWriteT)(fuse_req_t req, size_t count); 43 typedef size_t (*FuseAddDirentryT)(fuse_req_t req, char *buf, size_t bufsize, 162 int fuse_reply_err(fuse_req_t req, int err) in fuse_reply_err() argument 167 return (*reinterpret_cast<FuseReplyErrT>(rawFunc))(req, err); in fuse_reply_err() 176 return (*func)(req, er in fuse_reply_err() 179 fuse_reply_entry(fuse_req_t req, const struct fuse_entry_param *e) fuse_reply_entry() argument 196 fuse_reply_attr(fuse_req_t req, const struct stat *attr, double attr_timeout) fuse_reply_attr() argument 213 fuse_reply_open(fuse_req_t req, const struct fuse_file_info *f) fuse_reply_open() argument 230 fuse_reply_buf(fuse_req_t req, const char *buf, size_t size) fuse_reply_buf() argument 247 fuse_reply_write(fuse_req_t req, size_t count) fuse_reply_write() argument 264 fuse_add_direntry(fuse_req_t req, char *buf, size_t bufsize, const char *name, const struct stat *stbuf, off_t off) fuse_add_direntry() argument [all...] |
/base/security/permission_lite/services/pms/src/ |
H A 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* api)
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* api)
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* api)
in ReplyRevokePermission() argument 160 char *identifier = (char *)ReadString(req, &idLen);
in ReplyRevokePermission() 161 char *permName = (char *)ReadString(req, in ReplyRevokePermission() 167 ReplyGrantRuntimePermission(const void *origin, IpcIo *req, IpcIo *reply, InnerPermLiteApi* api) ReplyGrantRuntimePermission() argument 181 ReplyRevokeRuntimePermission(const void *origin, IpcIo *req, IpcIo *reply, InnerPermLiteApi* api) ReplyRevokeRuntimePermission() argument 195 ReplyUpdatePermissionFlags(const void *origin, IpcIo *req, IpcIo *reply, const InnerPermLiteApi *api) ReplyUpdatePermissionFlags() argument 212 Invoke(IServerProxy *iProxy, int funcId, void *origin, IpcIo *req, IpcIo *reply) Invoke() argument [all...] |
H A D | pms_server.c | 56 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/ |
H A D | ans_innerkits_module_publish_test.cpp | 657 NotificationRequest req; in HWTEST_F() local 658 req.SetContent(content); in HWTEST_F() 659 req.SetSlotType(NotificationConstant::OTHER); in HWTEST_F() 660 req.SetNotificationId(CASE_ONE); in HWTEST_F() 663 req.SetNotificationUserInputHistory(style); in HWTEST_F() 664 req.SetOwnerBundleName("bundleName"); in HWTEST_F() 665 req.SetCreatorBundleName("creatorbundlename"); in HWTEST_F() 666 req.SetLabel("ANS_Interface_MT_Publish_00100"); in HWTEST_F() 685 req.SetBigIcon(pixelMap); in HWTEST_F() 686 req in HWTEST_F() 755 NotificationRequest req; HWTEST_F() local 808 NotificationRequest req; HWTEST_F() local 862 NotificationRequest req; HWTEST_F() local 901 NotificationRequest req; HWTEST_F() local 940 NotificationRequest req; HWTEST_F() local 980 NotificationRequest req; HWTEST_F() local 1014 NotificationRequest req; HWTEST_F() local 1057 NotificationRequest req; HWTEST_F() local 1106 NotificationRequest req; HWTEST_F() local 1139 NotificationRequest req; HWTEST_F() local 1171 NotificationRequest req; HWTEST_F() local 1205 NotificationRequest req; HWTEST_F() local 1288 NotificationRequest req; HWTEST_F() local 1372 NotificationRequest req; HWTEST_F() local 1395 NotificationRequest req; HWTEST_F() local 1480 NotificationRequest req; HWTEST_F() local 1514 NotificationRequest req; HWTEST_F() local 1543 NotificationRequest req; HWTEST_F() local 1579 NotificationRequest req; HWTEST_F() local 1648 NotificationRequest req; HWTEST_F() local 1684 NotificationRequest req; HWTEST_F() local 1724 NotificationRequest req; HWTEST_F() local [all...] |
H A D | ans_fw_module_test.cpp | 374 inline std::string GenerateDistributedKey(const NotificationRequest &req, const std::string &deviceId) in GenerateDistributedKey() argument 381 .append(req.GetLabel()) in GenerateDistributedKey() 383 .append(ToString(req.GetNotificationId())); in GenerateDistributedKey() 387 NotificationRequest &req, std::vector<DistributedKv::Entry> &entries, DistributedKv::Entry &outEntry) in GetRequestInDistributedEntryList() 389 std::string localDistributedKey = GenerateDistributedKey(req, LOCAL_DEVICE_ID); in GetRequestInDistributedEntryList() 399 bool GetRequestInNotificationList(NotificationRequest &req, in GetRequestInNotificationList() argument 403 if (notification->GetNotificationRequest().GetNotificationId() == req.GetNotificationId() && in GetRequestInNotificationList() 404 notification->GetNotificationRequest().GetLabel() == req.GetLabel()) { in GetRequestInNotificationList() 649 NotificationRequest req(i); in HWTEST_F() 650 req in HWTEST_F() 386 GetRequestInDistributedEntryList( NotificationRequest &req, std::vector<DistributedKv::Entry> &entries, DistributedKv::Entry &outEntry) GetRequestInDistributedEntryList() argument 1244 NotificationRequest req; HWTEST_F() local 1276 NotificationRequest req; HWTEST_F() local 1308 NotificationRequest req; HWTEST_F() local [all...] |
/base/sensors/sensor_lite/services/src/ |
H A D | sensor_service.c | 24 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, IpcI argument 125 UnsubscribeSensorInvoke(SensorFeatureApi *defaultApi, IpcIo *req, IpcIo *reply) UnsubscribeSensorInvoke() argument 143 SetModeInvoke(SensorFeatureApi *defaultApi, IpcIo *req, IpcIo *reply) SetModeInvoke() argument 163 SetOptionInvoke(SensorFeatureApi *defaultApi, IpcIo *req, IpcIo *reply) SetOptionInvoke() argument 194 Invoke(IServerProxy *iProxy, int funcId, void *origin, IpcIo *req, IpcIo *reply) Invoke() argument [all...] |
/base/powermgr/powermgr_lite/services/src/screensaver/small/ |
H A D | screen_saver_feature_impl.c | 25 static int32_t FeatureInvoke(IServerProxy *iProxy, int32_t funcId, void *origin, IpcIo *req, IpcIo *reply); 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 *reply) in FeatureInvoke() argument 56 if ((iProxy == NULL) || (req == NULL)) { in FeatureInvoke() 64 ret = SetStateInvoke(iProxy, origin, req, reply); in FeatureInvoke()
|
/base/notification/distributed_notification_service/services/test/moduletest/ |
H A D | ans_module_test.cpp | 147 sptr<NotificationRequest> req = new NotificationRequest(0); in HWTEST_F() local 148 req->SetLabel(label); in HWTEST_F() 157 EXPECT_EQ((int)g_advancedNotificationService->Publish(label, req), (int)ERR_OK); in HWTEST_F() 195 sptr<NotificationRequest> req = new NotificationRequest(0); in HWTEST_F() local 196 req->SetLabel(label); in HWTEST_F() 197 req->SetStatusBarText("text"); in HWTEST_F() 198 req->SetSlotType(NotificationConstant::SlotType::CONTENT_INFORMATION); in HWTEST_F() 202 req->SetContent(content2); in HWTEST_F() 205 g_advancedNotificationService->Publish(label, req); in HWTEST_F() 252 sptr<NotificationRequest> req in HWTEST_F() local 294 sptr<NotificationRequest> req = new NotificationRequest(0); HWTEST_F() local 350 sptr<NotificationRequest> req = new NotificationRequest(0); HWTEST_F() local 393 sptr<NotificationRequest> req = new NotificationRequest(0); HWTEST_F() local 435 sptr<NotificationRequest> req = new NotificationRequest(0); HWTEST_F() local 477 sptr<NotificationRequest> req = new NotificationRequest(0); HWTEST_F() local 519 sptr<NotificationRequest> req = new NotificationRequest(0); HWTEST_F() local 561 sptr<NotificationRequest> req = new NotificationRequest(0); HWTEST_F() local 614 sptr<NotificationRequest> req = new NotificationRequest(0); HWTEST_F() local 659 sptr<NotificationRequest> req = new NotificationRequest(0); HWTEST_F() local 712 sptr<NotificationRequest> req = new NotificationRequest(0); HWTEST_F() local 762 sptr<NotificationRequest> req = new NotificationRequest(0); HWTEST_F() local 810 sptr<NotificationRequest> req = new NotificationRequest(0); HWTEST_F() local 854 sptr<NotificationRequest> req = new NotificationRequest(0); HWTEST_F() local 898 sptr<NotificationRequest> req = new NotificationRequest(0); HWTEST_F() local 952 sptr<NotificationRequest> req = new NotificationRequest(0); HWTEST_F() local 997 sptr<NotificationRequest> req = new NotificationRequest(0); HWTEST_F() local 1039 sptr<NotificationRequest> req = new NotificationRequest(0); HWTEST_F() local 1081 sptr<NotificationRequest> req = new NotificationRequest(0); HWTEST_F() local 1123 sptr<NotificationRequest> req = new NotificationRequest(0); HWTEST_F() local 1295 sptr<NotificationRequest> req = new NotificationRequest(0); HWTEST_F() local 1356 sptr<NotificationRequest> req = new NotificationRequest(0); HWTEST_F() local 1410 sptr<NotificationRequest> req = new NotificationRequest(0); HWTEST_F() local 1480 sptr<NotificationRequest> req = new NotificationRequest(0); HWTEST_F() local 1527 sptr<NotificationRequest> req = new NotificationRequest(0); HWTEST_F() local 1568 sptr<NotificationRequest> req = new NotificationRequest(0); HWTEST_F() local 1608 sptr<NotificationRequest> req = new NotificationRequest(0); HWTEST_F() local 1648 sptr<NotificationRequest> req = new NotificationRequest(0); HWTEST_F() local 1717 sptr<NotificationRequest> req = new NotificationRequest(0); HWTEST_F() local 1757 sptr<NotificationRequest> req = new NotificationRequest(0); HWTEST_F() local 1806 sptr<NotificationRequest> req = new NotificationRequest(0); HWTEST_F() local 1915 sptr<NotificationRequest> req = new NotificationRequest(0); HWTEST_F() local 1976 sptr<NotificationRequest> req = new NotificationRequest(0); HWTEST_F() local 2038 sptr<NotificationRequest> req = new NotificationRequest(0); HWTEST_F() local 2099 sptr<NotificationRequest> req = new NotificationRequest(0); HWTEST_F() local 2161 sptr<NotificationRequest> req = new NotificationRequest(0); HWTEST_F() local 2206 sptr<NotificationRequest> req = new NotificationRequest(0); HWTEST_F() local 2282 sptr<NotificationRequest> req = new NotificationRequest(0); HWTEST_F() local 2332 sptr<NotificationRequest> req = new NotificationRequest(0); HWTEST_F() local 2401 sptr<NotificationRequest> req = new NotificationRequest(0); HWTEST_F() local 2441 sptr<NotificationRequest> req = new NotificationRequest(0); HWTEST_F() local 2479 sptr<NotificationRequest> req = new NotificationRequest(0); HWTEST_F() local 2534 sptr<NotificationRequest> req = new NotificationRequest(0); HWTEST_F() local 2590 sptr<NotificationRequest> req = new NotificationRequest(0); HWTEST_F() local 2633 sptr<NotificationRequest> req = new NotificationRequest(0); HWTEST_F() local 2685 sptr<NotificationRequest> req = new NotificationRequest(0); HWTEST_F() local 2727 sptr<NotificationRequest> req = new NotificationRequest(0); HWTEST_F() local 2775 sptr<NotificationRequest> req = new NotificationRequest(0); HWTEST_F() local 2823 sptr<NotificationRequest> req = new NotificationRequest(0); HWTEST_F() local [all...] |
/base/security/device_security_level/services/sa/lite/small/ |
H A D | dslm_ipc_process.c | 54 static int32_t DslmGetRequestFromParcel(IpcIo *req, DeviceIdentify *identity, in DslmGetRequestFromParcel() argument 57 ReadUint32(req, &identity->length); in DslmGetRequestFromParcel() 58 uint32_t *dataRead = ReadBuffer(req, DEVICE_ID_MAX_LEN); in DslmGetRequestFromParcel() 70 ReadUint64(req, &option->challenge); in DslmGetRequestFromParcel() 71 ReadUint32(req, &option->timeout); in DslmGetRequestFromParcel() 75 ReadUint32(req, &option->extra); in DslmGetRequestFromParcel() 76 ReadUint32(req, cookie); in DslmGetRequestFromParcel() 156 int32_t DslmProcessGetDeviceSecurityLevel(IUnknown *iUnknown, IpcIo *req, IpcIo *reply) in DslmProcessGetDeviceSecurityLevel() argument 162 int32_t ret = DslmGetRequestFromParcel(req, &identity, &option, &cookie); in DslmProcessGetDeviceSecurityLevel()
|
H A D | dslm_service_feature.c | 27 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()
|
H A D | dslm_ipc_process.h | 25 int32_t DslmProcessGetDeviceSecurityLevel(IUnknown *iUnknown, IpcIo *req, IpcIo *reply);
|
/base/security/device_security_level/services/sa/lite/mini/ |
H A D | dslm_inner_process.c | 137 int32_t DslmProcessGetDeviceSecurityLevel(IUnknown *iUnknown, DslmAsyncCallParams *req, in DslmProcessGetDeviceSecurityLevel() argument 140 if (req == NULL || callback == NULL) { in DslmProcessGetDeviceSecurityLevel() 146 DslmPushRemoteStub(owner, req->cookie, req->identity, callback); in DslmProcessGetDeviceSecurityLevel() 147 int32_t ret = OnRequestDeviceSecLevelInfo(req->identity, req->option, owner, req->cookie, ProcessCallback); in DslmProcessGetDeviceSecurityLevel() 150 SetRemoteStubStatus(req->identity, callback, ret); in DslmProcessGetDeviceSecurityLevel() 151 DslmRemoteStubListNode *item = DslmPopRemoteStub(owner, req->cookie); in DslmProcessGetDeviceSecurityLevel()
|
/base/notification/distributed_notification_service/test/bechmarktest/notification_services_test/ |
H A D | notification_service_test.cpp | 196 sptr<NotificationRequest> req = new (std::nothrow) NotificationRequest(1);
in BENCHMARK_F() local 197 EXPECT_NE(req, nullptr);
in BENCHMARK_F() 198 req->SetSlotType(NotificationConstant::SlotType::OTHER);
in BENCHMARK_F() 199 req->SetLabel("req's label");
in BENCHMARK_F() 200 req->SetCreatorUid(100);
in BENCHMARK_F() 208 req->SetContent(content);
in BENCHMARK_F() 211 ErrCode errCode = advancedNotificationService_->Publish(label, req);
in BENCHMARK_F() 227 sptr<NotificationRequest> req = new (std::nothrow) NotificationRequest(0);
in BENCHMARK_F() local 228 EXPECT_NE(req, nullpt in BENCHMARK_F() [all...] |
/base/security/huks/services/huks_standard/huks_service/main/os_dependency/sa/sa_mgr/ |
H A D | hks_samgr_service_feature.c | 29 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/hiviewdfx/hiview/plugins/event_store/event_export/task/expire/ |
H A D | event_delete_handler.cpp | 31 bool EventDeleteHandler::HandleRequest(RequestPtr req) in HandleRequest() argument 33 auto delReq = BaseRequest::DownCastTo<EventDelRequest>(req); in HandleRequest()
|
H A D | event_scan_handler.cpp | 76 bool EventScanHandler::HandleRequest(RequestPtr req) in HandleRequest() argument 78 auto scanReq = BaseRequest::DownCastTo<EventScanRequest>(req); in HandleRequest()
|
/base/startup/appspawn/lite/ |
H A D | appspawn_service.c | 94 static int GetMessageSt(MessageSt *msgSt, IpcIo *req) in GetMessageSt() argument 96 if (msgSt == NULL || req == NULL) { in GetMessageSt() 101 char* str = ReadString(req, &len); 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() 147 if (GetMessageSt(&client.message, req) != EC_SUCCESS) { in Invoke()
|
/base/security/device_auth/frameworks/src/lite/ |
H A D | ipc_dev_auth_stub.c | 163 static int32_t DevAuthRequestCall(void *origin, IpcIo *req, IpcIo *reply) in DevAuthRequestCall() argument 172 ret = GetMethodId(req, &methodId); in DevAuthRequestCall() 181 ret = DecodeCallRequest(req, reqParams, MAX_REQUEST_PARAMS_NUM, &reqParamNum); in DevAuthRequestCall() 186 WithObject(methodId, req, &reqParams[reqParamNum], &reqParamNum); in DevAuthRequestCall() 192 int32_t (*callCtx)(void *origin, IpcIo *req, IpcIo *reply); 198 int32_t OnRemoteInvoke(IServerProxy *iProxy, int32_t reqId, void *origin, IpcIo *req, IpcIo *reply) in OnRemoteInvoke() argument 202 int32_t (*callCtx)(void *origin, IpcIo *req, IpcIo *reply) = NULL; in OnRemoteInvoke() 220 ret = callCtx(origin, req, &replyTmp); in OnRemoteInvoke()
|
/base/hiviewdfx/hilog_lite/frameworks/mini/ |
H A D | hiview_output_log.c | 77 static void OutputLogRealtime(const Request *req); 79 static void OutputLog2TextFile(const Request *req); 81 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 ! in OutputLog2BinFile() [all...] |