Home
last modified time | relevance | path

Searched refs:allowType (Results 1 – 25 of 25) sorted by relevance

/ohos5.0/foundation/resourceschedule/device_standby/interfaces/kits/napi/src/
H A Dstandby_napi_module.cpp130 uint32_t allowType = 0; member
135 uint32_t allowType = 0; member
145 … asyncCallbackInfo->allowType, asyncCallbackInfo->allowInfoArray, ReasonCodeEnum::REASON_APP_API); in AddGetAllowListExecuteCB()
184 if (Common::GetUint32Value(env, argv[0], params.allowType) == nullptr) { in ParseGetAllowListParameters()
201 if (params.allowType == 0) { in ParseGetAllowListParameters()
223 asyncCallbackInfo->allowType = params.allowType; in GetExemptionListApps()
251 int32_t allowType {0}; in ParseAllowResParameters() local
257 if (!Common::GetNamedInt32Value(env, argv[0], "resourceTypes", allowType) || allowType <= 0 in ParseAllowResParameters()
258 || static_cast<uint32_t>(allowType) > MAX_ALLOW_TYPE_NUMBER) { in ParseAllowResParameters()
278 resourceRequest = new (std::nothrow) ResourceRequest(allowType, uid, in ParseAllowResParameters()
/ohos5.0/foundation/resourceschedule/device_standby/interfaces/innerkits/include/
H A Dallow_info.h28 AllowInfo(uint32_t allowType, const std::string& name, int32_t duration) :allowType_(allowType), in AllowInfo() argument
82 inline void SetAllowType(uint32_t allowType) in SetAllowType() argument
84 allowType_ = allowType; in SetAllowType()
H A Dresourcce_request.h34 ResourceRequest(uint32_t allowType, int32_t uid, const std::string& name, int32_t duration, in ResourceRequest() argument
35 … const std::string& reason, uint32_t reasonCode) : allowType_(allowType), uid_(uid), name_(name), in ResourceRequest()
69 inline void SetAllowType(uint32_t allowType) in SetAllowType() argument
71 allowType_ = allowType; in SetAllowType()
H A Dstandby_service_subscriber_stub.h43 …void OnAllowListChanged(int32_t uid, const std::string& name, uint32_t allowType, bool added) over…
H A Dstandby_service_proxy.h72 ErrCode GetAllowList(uint32_t allowType, std::vector<AllowInfo>& allowInfoList,
H A Dstandby_service_client.h86 ErrCode GetAllowList(uint32_t allowType, std::vector<AllowInfo>& allowInfoList,
/ohos5.0/foundation/resourceschedule/device_standby/services/notification/src/
H A Dstandby_state_subscriber.cpp136 uint32_t allowType, bool added) in ReportAllowListChanged() argument
139 ", name is %{public}s, allowType is %{public}d", uid, name.c_str(), allowType); in ReportAllowListChanged()
140 NotifyAllowChangedByCallback(uid, name, allowType, added); in ReportAllowListChanged()
141 NotifyAllowChangedByCommonEvent(uid, name, allowType, added); in ReportAllowListChanged()
145 uint32_t allowType, bool added) in NotifyAllowChangedByCallback() argument
153 (*iter)->OnAllowListChanged(uid, name, allowType, added); in NotifyAllowChangedByCallback()
183 uint32_t allowType, bool added) in NotifyAllowChangedByCommonEvent() argument
189 want.SetParam("resourceType", static_cast<int32_t>(allowType)); in NotifyAllowChangedByCommonEvent()
/ohos5.0/foundation/resourceschedule/device_standby/interfaces/innerkits/src/
H A Dstandby_service_subscriber_stub.cpp63 …ServiceSubscriberStub::OnAllowListChanged(int32_t uid, const std::string& name, uint32_t allowType, in OnAllowListChanged() argument
86 uint32_t allowType {0}; in HandleOnAllowListChanged() local
89 !data.ReadUint32(allowType) || !data.ReadBool(added)) { in HandleOnAllowListChanged()
93 OnAllowListChanged(uid, name, allowType, added); in HandleOnAllowListChanged()
H A Dstandby_service_client.cpp94 ErrCode StandbyServiceClient::GetAllowList(uint32_t allowType, std::vector<AllowInfo>& allowInfoArr… in GetAllowList() argument
106 return standbyServiceProxy_->GetAllowList(allowType, allowInfoArray, reasonCode); in GetAllowList()
H A Dstandby_service_proxy.cpp171 ErrCode StandbyServiceProxy::GetAllowList(uint32_t allowType, std::vector<AllowInfo>& allowInfoList, in GetAllowList() argument
181 if (!data.WriteUint32(allowType) || !data.WriteUint32(reasonCode)) { in GetAllowList()
/ohos5.0/foundation/resourceschedule/device_standby/services/core/src/
H A Dstandby_service_impl.cpp441 return allowType > 0 && allowType <= MAX_ALLOW_TYPE_NUMBER; in CheckAllowTypeInfo()
633 uint32_t allowType = resourceRequest->GetAllowType(); in UpdateRecord() local
664 auto task = [this, uid, name, allowType] () { in UpdateRecord()
698 uint32_t allowType, bool removeAll) in UnapplyAllowResInner() argument
701 "%{public}d", uid, allowType, removeAll); in UnapplyAllowResInner()
710 if ((allowType & iter->second->allowType_) == 0) { in UnapplyAllowResInner()
762 uint32_t allowType, bool added) in NotifyAllowListChanged() argument
786 if (!CheckAllowTypeInfo(allowType)) { in GetAllowList()
790 GetAllowListInner(allowType, allowInfoList, reasonCode); in GetAllowList()
873 GetAllowListInner(allowType, allowInfoList, resonCode); in GetEligiableRestrictSet()
[all …]
H A Dstandby_service.cpp218 ErrCode StandbyService::GetAllowList(uint32_t allowType, std::vector<AllowInfo>& allowInfoList, in GetAllowList() argument
225 return StandbyServiceImpl::GetInstance()->GetAllowList(allowType, allowInfoList, reasonCode); in GetAllowList()
/ohos5.0/foundation/resourceschedule/device_standby/services/notification/include/
H A Dstandby_state_subscriber.h44 … void ReportAllowListChanged(int32_t uid, const std::string& name, uint32_t allowType, bool added);
47 …void NotifyAllowChangedByCommonEvent(int32_t uid, const std::string& name, uint32_t allowType, boo…
53 …void NotifyAllowChangedByCallback(int32_t uid, const std::string& name, uint32_t allowType, bool a…
/ohos5.0/foundation/resourceschedule/device_standby/services/core/include/
H A Dstandby_service_impl.h104 ErrCode GetAllowList(uint32_t allowType, std::vector<AllowInfo>& allowInfoList,
106 ErrCode GetEligiableRestrictSet(uint32_t allowType, const std::string& strategyName,
132 void GetAllowListInner(uint32_t allowType, std::vector<AllowInfo>& allowInfoList,
141 …void UnapplyAllowResInner(int32_t uid, const std::string& name, uint32_t allowType, bool removeAl…
147 … void NotifyAllowListChanged(int32_t uid, const std::string& name, uint32_t allowType, bool added);
157 bool CheckAllowTypeInfo(uint32_t allowType);
H A Dallow_record.h37 AllowRecord(int32_t uid, int32_t pid, const std::string& name, uint32_t allowType) in AllowRecord()
38 : uid_(uid), pid_(pid), name_(name), allowType_(allowType) {} in AllowRecord()
H A Dstandby_service.h52 ErrCode GetAllowList(uint32_t allowType, std::vector<AllowInfo>& allowInfoList,
/ohos5.0/foundation/resourceschedule/work_scheduler/services/native/src/
H A Dwork_standby_state_change_callback.cpp51 uint32_t allowType, bool added) in OnAllowListChanged() argument
53 if (allowType != DevStandbyMgr::AllowType::WORK_SCHEDULER) { in OnAllowListChanged()
/ohos5.0/foundation/resourceschedule/device_standby/frameworks/src/
H A Dstandby_service_subscriber_proxy.cpp57 …erviceSubscriberProxy::OnAllowListChanged(int32_t uid, const std::string& name, uint32_t allowType, in OnAllowListChanged() argument
72 !data.WriteUint32(allowType) || !data.WriteBool(added)) { in OnAllowListChanged()
H A Dstandby_service_stub.cpp216 uint32_t allowType {0}; in HandleGetAllowList() local
218 if (!data.ReadUint32(allowType) || !data.ReadUint32(reasonCode)) { in HandleGetAllowList()
223 ErrCode result = GetAllowList(allowType, allowInfoList, reasonCode); in HandleGetAllowList()
/ohos5.0/foundation/resourceschedule/work_scheduler/services/native/include/
H A Dwork_standby_state_change_callback.h45 …void OnAllowListChanged(int32_t uid, const std::string& name, uint32_t allowType, bool added) over…
/ohos5.0/foundation/resourceschedule/device_standby/frameworks/include/
H A Dstandby_service_subscriber_proxy.h48 …void OnAllowListChanged(int32_t uid, const std::string& name, uint32_t allowType, bool added) over…
H A Distandby_service_subscriber.h48 …virtual void OnAllowListChanged(int32_t uid, const std::string& name, uint32_t allowType, bool add…
H A Distandby_service.h86 virtual ErrCode GetAllowList(uint32_t allowType, std::vector<AllowInfo>& allowInfoList,
/ohos5.0/foundation/resourceschedule/device_standby/plugins/strategy/src/
H A Dbase_network_strategy.cpp92 uint32_t allowType = static_cast<uint32_t>(message.want_->GetIntParam("allowType", 0)); in UpdateExemptionList() local
93 if ((allowType & AllowType::NETWORK) == 0) { in UpdateExemptionList()
94 STANDBYSERVICE_LOGD("allowType is not network, currentType is %{public}d", allowType); in UpdateExemptionList()
H A Drunning_lock_strategy.cpp100 uint32_t allowType = static_cast<uint32_t>(message.want_->GetIntParam("allowType", 0)); in UpdateExemptionList() local
101 if ((allowType & AllowType::RUNNING_LOCK) == 0) { in UpdateExemptionList()
102 STANDBYSERVICE_LOGD("allowType is not running lock, currentType is %{public}d", allowType); in UpdateExemptionList()