/base/notification/distributed_notification_service/interfaces/inner_api/ |
H A D | notification_helper.h | 49 static ErrCode AddNotificationSlot(const NotificationSlot &slot); 57 static ErrCode AddSlotByType(const NotificationConstant::SlotType &slotType); 65 static ErrCode AddNotificationSlots(const std::vector<NotificationSlot> &slots); 74 static ErrCode RemoveNotificationSlot(const NotificationConstant::SlotType &slotType); 81 static ErrCode RemoveAllSlots(); 90 static ErrCode UpdateNotificationSlots( 101 static ErrCode GetNotificationSlot(const NotificationConstant::SlotType &slotType, sptr<NotificationSlot> &slot); 108 static ErrCode GetNotificationSlots(std::vector<sptr<NotificationSlot>> &slots); 117 static ErrCode GetNotificationSlotNumAsBundle(const NotificationBundleOption &bundleOption, uint64_t &num); 126 static ErrCode GetNotificationSlotsForBundl [all...] |
/base/account/os_account/frameworks/osaccount/core/include/ |
H A D | os_account.h | 29 ErrCode CreateOsAccount(const std::string &name, const OsAccountType &type, OsAccountInfo &osAccountInfo); 30 ErrCode CreateOsAccount(const std::string &localName, const std::string &shortName, const OsAccountType &type, 32 ErrCode CreateOsAccountWithFullInfo(OsAccountInfo &osAccountInfo, const CreateOsAccountOptions &options = {}); 33 ErrCode UpdateOsAccountWithFullInfo(OsAccountInfo &osAccountInfo); 34 ErrCode CreateOsAccountForDomain(const OsAccountType &type, const DomainAccountInfo &domainInfo, 36 ErrCode RemoveOsAccount(const int id); 37 ErrCode IsOsAccountExists(const int id, bool &isOsAccountExists); 38 ErrCode IsOsAccountActived(const int id, bool &isOsAccountActived); 39 ErrCode IsOsAccountConstraintEnable(const int id, const std::string &constraint, bool &isConstraintEnable); 40 ErrCode CheckOsAccountConstraintEnable [all...] |
H A D | ios_account.h | 35 virtual ErrCode CreateOsAccount( 37 virtual ErrCode CreateOsAccount(const std::string &localName, const std::string &shortName, 39 virtual ErrCode CreateOsAccountWithFullInfo(OsAccountInfo &osAccountInfo, 41 virtual ErrCode UpdateOsAccountWithFullInfo(OsAccountInfo &osAccountInfo) = 0; 42 virtual ErrCode CreateOsAccountForDomain(const OsAccountType &type, const DomainAccountInfo &domainInfo, 44 virtual ErrCode RemoveOsAccount(const int id) = 0; 45 virtual ErrCode IsOsAccountExists(const int id, bool &isOsAccountExists) = 0; 46 virtual ErrCode IsOsAccountActived(const int id, bool &isOsAccountActived) = 0; 47 virtual ErrCode IsOsAccountConstraintEnable( 49 virtual ErrCode CheckOsAccountConstraintEnable [all...] |
H A D | os_account_proxy.h | 29 ErrCode CreateOsAccount( 31 ErrCode CreateOsAccount(const std::string &localName, const std::string &shortName, const OsAccountType &type, 33 ErrCode CreateOsAccountWithFullInfo(OsAccountInfo &osAccountInfo, 35 ErrCode UpdateOsAccountWithFullInfo(OsAccountInfo &osAccountInfo) override; 36 ErrCode CreateOsAccountForDomain(const OsAccountType &type, const DomainAccountInfo &domainInfo, 38 ErrCode RemoveOsAccount(const int id) override; 39 ErrCode IsOsAccountExists(const int id, bool &isOsAccountExists) override; 40 ErrCode IsOsAccountActived(const int id, bool &isOsAccountActived) override; 41 ErrCode IsOsAccountConstraintEnable( 43 ErrCode CheckOsAccountConstraintEnable [all...] |
/base/powermgr/power_manager/utils/shell/include/ |
H A D | power_shell_command.h | 35 ErrCode CreateCommandMap() override; 36 ErrCode CreateMessageMap() override; 37 ErrCode init() override; 38 ErrCode RunAsHelpCommand(); 39 ErrCode RunAsDumpCommand(); 40 ErrCode RunAsSetModeCommand(); 41 ErrCode RunAsWakeupCommand(); 42 ErrCode RunAsSuspendCommand(); 43 ErrCode RunAsHibernateCommand(); 44 ErrCode RunAsQueryLockComman [all...] |
/base/account/os_account/interfaces/innerkits/osaccount/native/include/ |
H A D | os_account_manager.h | 58 static ErrCode CreateOsAccount(const std::string &name, const OsAccountType &type, OsAccountInfo &osAccountInfo); 69 static ErrCode CreateOsAccount(const std::string& localName, const std::string& shortName, 83 static ErrCode CreateOsAccount(const std::string& localName, const std::string& shortName, 92 static ErrCode CreateOsAccountWithFullInfo(OsAccountInfo &osAccountInfo, 101 static ErrCode UpdateOsAccountWithFullInfo(OsAccountInfo &osAccountInfo); 111 static ErrCode CreateOsAccountForDomain(const OsAccountType &type, const DomainAccountInfo &domainInfo, 120 static ErrCode RemoveOsAccount(const int id); 128 static ErrCode IsOsAccountExists(const int id, bool &isOsAccountExists); 137 static ErrCode IsOsAccountActived(const int id, bool &isOsAccountActived); 146 static ErrCode IsOsAccountConstraintEnabl [all...] |
/base/account/os_account/services/accountmgr/include/osaccount/ |
H A D | os_account_stub.h | 27 using MessageProcFunction = ErrCode (*)(OsAccountStub *ptr, MessageParcel &data, MessageParcel &reply); 38 ErrCode ProcCreateOsAccount(MessageParcel &data, MessageParcel &reply); 39 ErrCode ProcCreateOsAccountWithShortName(MessageParcel &data, MessageParcel &reply); 40 ErrCode ProcCreateOsAccountWithFullInfo(MessageParcel &data, MessageParcel &reply); 41 ErrCode ProcUpdateOsAccountWithFullInfo(MessageParcel &data, MessageParcel &reply); 42 ErrCode ProcCreateOsAccountForDomain(MessageParcel &data, MessageParcel &reply); 43 ErrCode ProcRemoveOsAccount(MessageParcel &data, MessageParcel &reply); 44 ErrCode ProcSetOsAccountName(MessageParcel &data, MessageParcel &reply); 45 ErrCode ProcSetOsAccountConstraints(MessageParcel &data, MessageParcel &reply); 46 ErrCode ProcSetOsAccountProfilePhot [all...] |
H A D | iinner_os_account.h | 31 virtual ErrCode CreateOsAccount( 33 virtual ErrCode CreateOsAccount(const std::string &localName, const std::string &shortName, 35 virtual ErrCode CreateOsAccountWithFullInfo(OsAccountInfo &osAccountInfo, 37 virtual ErrCode UpdateOsAccountWithFullInfo(OsAccountInfo &osAccountInfo) = 0; 38 virtual ErrCode CreateOsAccountForDomain(const OsAccountType &type, const DomainAccountInfo &domainInfo, 40 virtual ErrCode RemoveOsAccount(const int id) = 0; 41 virtual ErrCode IsOsAccountExists(const int id, bool &isOsAccountExits) = 0; 42 virtual ErrCode IsOsAccountActived(const int id, bool &isOsAccountActived) = 0; 43 virtual ErrCode IsOsAccountConstraintEnable( 45 virtual ErrCode IsOsAccountVerifie [all...] |
H A D | os_account_manager_service.h | 34 ErrCode CreateOsAccount( 36 ErrCode CreateOsAccount(const std::string &localName, const std::string &shortName, 38 ErrCode CreateOsAccountForDomain(const OsAccountType &type, const DomainAccountInfo &domainInfo, 41 ErrCode CreateOsAccountWithFullInfo(OsAccountInfo &osAccountInfo, 43 ErrCode UpdateOsAccountWithFullInfo(OsAccountInfo &osAccountInfo) override; 45 ErrCode RemoveOsAccount(const int id) override; 47 ErrCode IsOsAccountExists(const int id, bool &isOsAccountExists) override; 48 ErrCode IsOsAccountActived(const int id, bool &isOsAccountActived) override; 50 ErrCode IsOsAccountConstraintEnable( 52 ErrCode CheckOsAccountConstraintEnable [all...] |
H A D | ios_account_control.h | 30 virtual ErrCode GetOsAccountConfig(OsAccountConfig &config) = 0; 31 virtual ErrCode GetOsAccountList(std::vector<OsAccountInfo> &osAccountList) = 0; 32 virtual ErrCode GetOsAccountIdList(std::vector<int32_t> &idList) = 0; 33 virtual ErrCode GetOsAccountInfoById(const int id, OsAccountInfo &osAccountInfo) = 0; 34 virtual ErrCode GetConstraintsByType(const OsAccountType type, std::vector<std::string> &constraints) = 0; 35 virtual ErrCode InsertOsAccount(OsAccountInfo &osAccountInfo) = 0; 36 virtual ErrCode DelOsAccount(const int id) = 0; 37 virtual ErrCode UpdateOsAccount(OsAccountInfo &osAccountInfo) = 0; 38 virtual ErrCode GetAccountIndexFromFile(Json &accountIndexJson) = 0; 39 virtual ErrCode GetSerialNumbe [all...] |
H A D | iinner_os_account_manager.h | 36 ErrCode CreateOsAccount( 38 ErrCode CreateOsAccount(const std::string &localName, const std::string &shortName, 40 ErrCode CreateOsAccountWithFullInfo(OsAccountInfo &osAccountInfo, 42 ErrCode UpdateOsAccountWithFullInfo(OsAccountInfo &osAccountInfo) override; 43 ErrCode CreateOsAccountForDomain(const OsAccountType &type, const DomainAccountInfo &domainInfo, 45 ErrCode RemoveOsAccount(const int id) override; 46 ErrCode IsOsAccountExists(const int id, bool &isOsAccountExits) override; 47 ErrCode IsOsAccountActived(const int id, bool &isOsAccountActived) override; 48 ErrCode IsOsAccountConstraintEnable( 50 ErrCode IsOsAccountVerifie [all...] |
H A D | os_account_control_file_manager.h | 42 ErrCode GetOsAccountConfig(OsAccountConfig &config) override; 43 ErrCode GetOsAccountList(std::vector<OsAccountInfo> &osAccountList) override; 44 ErrCode GetOsAccountIdList(std::vector<int32_t> &idList) override; 45 ErrCode GetOsAccountInfoById(const int id, OsAccountInfo &osAccountInfo) override; 46 ErrCode GetConstraintsByType(const OsAccountType type, std::vector<std::string> &constraints) override; 47 ErrCode InsertOsAccount(OsAccountInfo &osAccountInfo) override; 48 ErrCode DelOsAccount(const int id) override; 49 ErrCode UpdateOsAccount(OsAccountInfo &osAccountInfo) override; 50 ErrCode GetAccountIndexFromFile(Json &accountIndexJson) override; 51 ErrCode GetSerialNumbe [all...] |
/base/web/webview/interfaces/kits/cj/include/ |
H A D | web_errors.h | 25 constexpr ErrCode NWEB_ERROR = -1; 26 constexpr ErrCode NO_ERROR = 0; 28 constexpr ErrCode PARAM_CHECK_ERROR = 401; 29 constexpr ErrCode INIT_ERROR = 17100001; 30 constexpr ErrCode INVALID_URL = 17100002; 31 constexpr ErrCode INVALID_RESOURCE = 17100003; 32 constexpr ErrCode FUNCTION_NOT_ENABLE = 17100004; 33 constexpr ErrCode INVALID_COOKIE_VALUE = 17100005; 34 constexpr ErrCode CAN_NOT_REGISTER_MESSAGE_EVENT = 17100006; 35 constexpr ErrCode CANNOT_DEL_JAVA_SCRIPT_PROX [all...] |
/base/web/webview/interfaces/kits/napi/common/ |
H A D | web_errors.h | 38 constexpr ErrCode NWEB_ERROR = -1; 39 constexpr ErrCode NO_ERROR = 0; 41 constexpr ErrCode PARAM_CHECK_ERROR = 401; 42 constexpr ErrCode INIT_ERROR = 17100001; 43 constexpr ErrCode INVALID_URL = 17100002; 44 constexpr ErrCode INVALID_RESOURCE = 17100003; 45 constexpr ErrCode FUNCTION_NOT_ENABLE = 17100004; 46 constexpr ErrCode INVALID_COOKIE_VALUE = 17100005; 47 constexpr ErrCode CAN_NOT_REGISTER_MESSAGE_EVENT = 17100006; 48 constexpr ErrCode CANNOT_DEL_JAVA_SCRIPT_PROX [all...] |
/base/notification/distributed_notification_service/frameworks/core/include/ |
H A D | ans_manager_stub.h | 56 virtual ErrCode Publish(const std::string &label, const sptr<NotificationRequest> ¬ification) override; 67 virtual ErrCode PublishNotificationForIndirectProxy(const sptr<NotificationRequest> ¬ification) override; 77 virtual ErrCode Cancel(int32_t notificationId, const std::string &label, int32_t instanceKey) override; 85 virtual ErrCode CancelAll(int32_t instanceKey) override; 97 virtual ErrCode CancelAsBundle( 109 virtual ErrCode CancelAsBundle(const sptr<NotificationBundleOption> &bundleOption, int32_t notificationId) override; 121 virtual ErrCode CancelAsBundle( 130 virtual ErrCode AddSlotByType(NotificationConstant::SlotType slotType) override; 138 virtual ErrCode AddSlots(const std::vector<sptr<NotificationSlot>> &slots) override; 147 virtual ErrCode RemoveSlotByTyp [all...] |
H A D | ans_notification.h | 48 ErrCode AddNotificationSlot(const NotificationSlot &slot); 56 ErrCode AddSlotByType(const NotificationConstant::SlotType &slotType); 64 ErrCode AddNotificationSlots(const std::vector<NotificationSlot> &slots); 73 ErrCode RemoveNotificationSlot(const NotificationConstant::SlotType &slotType); 80 ErrCode RemoveAllSlots(); 90 ErrCode GetNotificationSlot(const NotificationConstant::SlotType &slotType, sptr<NotificationSlot> &slot); 98 ErrCode GetNotificationSlots(std::vector<sptr<NotificationSlot>> &slots); 107 ErrCode GetNotificationSlotNumAsBundle(const NotificationBundleOption &bundleOption, uint64_t &num); 116 ErrCode GetNotificationSlotFlagsAsBundle(const NotificationBundleOption &bundleOption, uint32_t &slotFlags); 125 ErrCode SetNotificationSlotFlagsAsBundl [all...] |
H A D | ans_manager_proxy.h | 43 ErrCode Publish(const std::string &label, const sptr<NotificationRequest> ¬ification) override; 54 ErrCode PublishNotificationForIndirectProxy(const sptr<NotificationRequest> ¬ification) override; 64 ErrCode Cancel(int32_t notificationId, const std::string &label, int32_t instanceKey) override; 72 ErrCode CancelAll(int32_t instanceKey) override; 84 ErrCode CancelAsBundle(int32_t notificationId, const std::string &representativeBundle, int32_t userId) override; 95 ErrCode CancelAsBundle(const sptr<NotificationBundleOption> &bundleOption, int32_t notificationId) override; 107 ErrCode CancelAsBundle( 116 ErrCode AddSlotByType(NotificationConstant::SlotType slotType) override; 124 ErrCode AddSlots(const std::vector<sptr<NotificationSlot>> &slots) override; 133 ErrCode RemoveSlotByTyp [all...] |
H A D | ans_manager_interface.h | 55 virtual ErrCode Publish(const std::string &label, const sptr<NotificationRequest> ¬ification) = 0; 66 virtual ErrCode PublishNotificationForIndirectProxy(const sptr<NotificationRequest> ¬ification) = 0; 76 virtual ErrCode Cancel(int notificationId, const std::string &label, int32_t instanceKey) = 0; 84 virtual ErrCode CancelAll(int32_t instanceKey) = 0; 96 virtual ErrCode CancelAsBundle( 108 virtual ErrCode CancelAsBundle(const sptr<NotificationBundleOption> &bundleOption, int32_t notificationId) = 0; 120 virtual ErrCode CancelAsBundle( 129 virtual ErrCode AddSlotByType(NotificationConstant::SlotType slotType) = 0; 137 virtual ErrCode AddSlots(const std::vector<sptr<NotificationSlot>> &slots) = 0; 146 virtual ErrCode RemoveSlotByTyp [all...] |
/base/notification/distributed_notification_service/frameworks/core/src/ |
H A D | ans_manager_stub_invalid.cpp | 29 ErrCode AnsManagerStub::Publish(const std::string &label, const sptr<NotificationRequest> ¬ification) in Publish() 35 ErrCode AnsManagerStub::PublishNotificationForIndirectProxy(const sptr<NotificationRequest> ¬ification) in PublishNotificationForIndirectProxy() 41 ErrCode AnsManagerStub::Cancel(int notificationId, const std::string &label, int32_t instanceKey) in Cancel() 47 ErrCode AnsManagerStub::CancelAll(int32_t instanceKey) in CancelAll() 53 ErrCode AnsManagerStub::CancelAsBundle(int32_t notificationId, const std::string &representativeBundle, int32_t userId) in CancelAsBundle() 59 ErrCode AnsManagerStub::CancelAsBundle(const sptr<NotificationBundleOption> &bundleOption, int32_t notificationId) in CancelAsBundle() 65 ErrCode AnsManagerStub::CancelAsBundle( in CancelAsBundle() 72 ErrCode AnsManagerStub::AddSlotByType(NotificationConstant::SlotType slotType) in AddSlotByType() 78 ErrCode AnsManagerStub::AddSlots(const std::vector<sptr<NotificationSlot>> &slots) in AddSlots() 84 ErrCode AnsManagerStu [all...] |
/base/account/os_account/services/accountmgr/test/unittest/os_account/mock/ |
H A D | mock_os_account_control_file_manager.h | 35 MOCK_METHOD1(GetOsAccountConfig, ErrCode(OsAccountConfig &config)); 36 MOCK_METHOD1(GetOsAccountIdList, ErrCode(std::vector<int32_t> &idList)); 37 MOCK_METHOD1(GetOsAccountList, ErrCode(std::vector<OsAccountInfo> &osAccountList)); 38 MOCK_METHOD2(GetConstraintsByType, ErrCode(const OsAccountType type, std::vector<std::string> &constraints)); 39 MOCK_METHOD2(GetOsAccountInfoById, ErrCode(const int id, OsAccountInfo &osAccountInfo)); 40 MOCK_METHOD1(GetSerialNumber, ErrCode(int64_t &serialNumber)); 41 MOCK_METHOD1(GetAllowCreateId, ErrCode(int &id)); 42 MOCK_METHOD1(InsertOsAccount, ErrCode(OsAccountInfo &osAccountInfo)); 43 MOCK_METHOD3(UpdateBaseOAConstraints, ErrCode(const std::string& idStr, 45 MOCK_METHOD1(UpdateOsAccount, ErrCode(OsAccountInf [all...] |
/base/account/os_account/services/accountmgr/include/appaccount/ |
H A D | app_account_stub.h | 26 using MessageProcFunction = ErrCode(*)( 38 ErrCode ProcAddAccount(uint32_t code, MessageParcel &data, MessageParcel &reply); 39 ErrCode ProcAddAccountImplicitly(uint32_t code, MessageParcel &data, MessageParcel &reply); 40 ErrCode ProcCreateAccount(uint32_t code, MessageParcel &data, MessageParcel &reply); 41 ErrCode ProcCreateAccountImplicitly(uint32_t code, MessageParcel &data, MessageParcel &reply); 42 ErrCode ProcDeleteAccount(uint32_t code, MessageParcel &data, MessageParcel &reply); 43 ErrCode ProcGetAccountExtraInfo(uint32_t code, MessageParcel &data, MessageParcel &reply); 44 ErrCode ProcSetAccountExtraInfo(uint32_t code, MessageParcel &data, MessageParcel &reply); 45 ErrCode ProcSetAppAccess(uint32_t code, MessageParcel &data, MessageParcel &reply); 46 ErrCode ProcCheckAppAcces [all...] |
/base/account/os_account/services/accountmgr/include/domain_account/ |
H A D | domain_account_stub.h | 28 using DomainAccountStubFunc = ErrCode (*)(DomainAccountStub *ptr, MessageParcel &data, MessageParcel &reply);
35 ErrCode CheckPermission(DomainAccountInterfaceCode code, int32_t uid);
36 ErrCode ProcRegisterPlugin(MessageParcel &data, MessageParcel &reply);
37 ErrCode ProcUnregisterPlugin(MessageParcel &data, MessageParcel &reply);
38 ErrCode ProcAuth(MessageParcel &data, MessageParcel &reply);
39 ErrCode ProcAuthUser(MessageParcel &data, MessageParcel &reply);
40 ErrCode ProcAuthWithPopup(MessageParcel &data, MessageParcel &reply);
41 ErrCode ProcGetAccountStatus(MessageParcel &data, MessageParcel &reply);
42 ErrCode ProcHasDomainAccount(MessageParcel &data, MessageParcel &reply);
43 ErrCode ProcUpdateAccountToke [all...] |
H A D | domain_account_manager_service.h | 29 ErrCode RegisterPlugin(const sptr<IDomainAccountPlugin> &plugin) override;
30 ErrCode UnregisterPlugin() override;
31 ErrCode HasDomainAccount(
33 ErrCode GetAccountStatus(const DomainAccountInfo &info, DomainAccountStatus &status) override;
34 ErrCode RegisterAccountStatusListener(const sptr<IDomainAccountCallback> &listener) override;
35 ErrCode UnregisterAccountStatusListener(const sptr<IDomainAccountCallback> &listener) override;
36 ErrCode Auth(const DomainAccountInfo &info, const std::vector<uint8_t> &password,
38 ErrCode AuthUser(int32_t userId, const std::vector<uint8_t> &password,
40 ErrCode AuthWithPopup(int32_t userId, const sptr<IDomainAccountCallback> &callback) override;
41 ErrCode UpdateAccountToke [all...] |
/base/account/os_account/interfaces/innerkits/appaccount/native/include/ |
H A D | app_account_manager.h | 58 static ErrCode AddAccount(const std::string &name, const std::string &extraInfo = ""); 68 static ErrCode AddAccountImplicitly(const std::string &owner, const std::string &authType, 80 static ErrCode CreateAccount(const std::string &name, const CreateAccountOptions &options); 88 static ErrCode CreateAccountImplicitly(const std::string &owner, const CreateAccountImplicitlyOptions &options, 98 static ErrCode DeleteAccount(const std::string &name); 106 static ErrCode GetAccountExtraInfo(const std::string &name, std::string &extraInfo); 117 static ErrCode SetAccountExtraInfo(const std::string &name, const std::string &extraInfo); 126 static ErrCode EnableAppAccess(const std::string &name, const std::string &authorizedApp); 136 static ErrCode DisableAppAccess(const std::string &name, const std::string &authorizedApp); 146 static ErrCode SetAppAcces [all...] |
/base/notification/distributed_notification_service/frameworks/ans/src/ |
H A D | notification_helper.cpp | 22 ErrCode NotificationHelper::AddNotificationSlot(const NotificationSlot &slot) in AddNotificationSlot() 27 ErrCode NotificationHelper::AddSlotByType(const NotificationConstant::SlotType &slotType) in AddSlotByType() 32 ErrCode NotificationHelper::AddNotificationSlots(const std::vector<NotificationSlot> &slots) in AddNotificationSlots() 37 ErrCode NotificationHelper::RemoveNotificationSlot(const NotificationConstant::SlotType &slotType) in RemoveNotificationSlot() 42 ErrCode NotificationHelper::RemoveAllSlots() in RemoveAllSlots() 47 ErrCode NotificationHelper::GetNotificationSlot( in GetNotificationSlot() 53 ErrCode NotificationHelper::GetNotificationSlots(std::vector<sptr<NotificationSlot>> &slots) in GetNotificationSlots() 58 ErrCode NotificationHelper::GetNotificationSlotNumAsBundle(const NotificationBundleOption &bundleOption, uint64_t &num) in GetNotificationSlotNumAsBundle() 63 ErrCode NotificationHelper::GetNotificationSlotFlagsAsBundle(const NotificationBundleOption &bundleOption, in GetNotificationSlotFlagsAsBundle() 69 ErrCode NotificationHelpe [all...] |