/foundation/resourceschedule/device_standby/interfaces/innerkits/include/ |
D | allow_info.h | 28 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()
|
D | resourcce_request.h | 34 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()
|
D | standby_service_subscriber_stub.h | 43 …void OnAllowListChanged(int32_t uid, const std::string& name, uint32_t allowType, bool added) over…
|
D | standby_service_client.h | 77 ErrCode GetAllowList(uint32_t allowType, std::vector<AllowInfo>& allowInfoList,
|
/foundation/resourceschedule/device_standby/interfaces/kits/napi/src/ |
D | standby_napi_module.cpp | 130 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()
|
/foundation/resourceschedule/device_standby/interfaces/innerkits/src/ |
D | standby_service_subscriber_stub.cpp | 61 …ServiceSubscriberStub::OnAllowListChanged(int32_t uid, const std::string& name, uint32_t allowType, in OnAllowListChanged() argument 81 uint32_t allowType {0}; in HandleOnAllowListChanged() local 84 !data.ReadUint32(allowType) || !data.ReadBool(added)) { in HandleOnAllowListChanged() 88 OnAllowListChanged(uid, name, allowType, added); in HandleOnAllowListChanged()
|
D | standby_service_client.cpp | 94 ErrCode StandbyServiceClient::GetAllowList(uint32_t allowType, std::vector<AllowInfo>& allowInfoArr… in GetAllowList() argument 106 return standbyServiceProxy_->GetAllowList(allowType, allowInfoArray, reasonCode); in GetAllowList()
|
/foundation/resourceschedule/device_standby/services/notification/src/ |
D | standby_state_subscriber.cpp | 133 uint32_t allowType, bool added) in ReportAllowListChanged() argument 136 ", name is %{public}s, allowType is %{public}d", uid, name.c_str(), allowType); in ReportAllowListChanged() 137 NotifyAllowChangedByCallback(uid, name, allowType, added); in ReportAllowListChanged() 138 NotifyAllowChangedByCommonEvent(uid, name, allowType, added); in ReportAllowListChanged() 142 uint32_t allowType, bool added) in NotifyAllowChangedByCallback() argument 150 (*iter)->OnAllowListChanged(uid, name, allowType, added); in NotifyAllowChangedByCallback() 155 uint32_t allowType, bool added) in NotifyAllowChangedByCommonEvent() argument 161 want.SetParam("resourceType", static_cast<int32_t>(allowType)); in NotifyAllowChangedByCommonEvent()
|
/foundation/resourceschedule/device_standby/services/notification/include/ |
D | standby_state_subscriber.h | 44 … void ReportAllowListChanged(int32_t uid, const std::string& name, uint32_t allowType, bool added); 51 …void NotifyAllowChangedByCallback(int32_t uid, const std::string& name, uint32_t allowType, bool a… 52 …void NotifyAllowChangedByCommonEvent(int32_t uid, const std::string& name, uint32_t allowType, boo…
|
/foundation/resourceschedule/device_standby/services/core/src/ |
D | standby_service_impl.cpp | 436 bool StandbyServiceImpl::CheckAllowTypeInfo(uint32_t allowType) in CheckAllowTypeInfo() argument 438 return allowType > 0 && allowType <= MAX_ALLOW_TYPE_NUMBER; in CheckAllowTypeInfo() 448 int allowType = resetAll ? MAX_ALLOW_TYPE_NUMBER : (MAX_ALLOW_TYPE_NUMBER ^ AllowType::TIMER ^ in RemoveAppAllowRecord() local 450 this->UnapplyAllowResInner(uid, bundleName, allowType, true); in RemoveAppAllowRecord() 616 uint32_t allowType = resourceRequest->GetAllowType(); in UpdateRecord() local 622 uint32_t allowNumber = allowType & (1 << allowTypeIndex); in UpdateRecord() 647 auto task = [this, uid, name, allowType] () { in UpdateRecord() 648 this->UnapplyAllowResInner(uid, name, allowType, false); in UpdateRecord() 674 uint32_t allowType, bool removeAll) in UnapplyAllowResInner() argument 677 "%{public}d", uid, allowType, removeAll); in UnapplyAllowResInner() [all …]
|
D | standby_service.cpp | 213 ErrCode StandbyService::GetAllowList(uint32_t allowType, std::vector<AllowInfo>& allowInfoList, in GetAllowList() argument 220 return StandbyServiceImpl::GetInstance()->GetAllowList(allowType, allowInfoList, reasonCode); in GetAllowList()
|
/foundation/resourceschedule/device_standby/services/core/include/ |
D | allow_record.h | 37 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()
|
D | standby_service_impl.h | 74 ErrCode GetAllowList(uint32_t allowType, std::vector<AllowInfo>& allowInfoList, 76 ErrCode GetEligiableRestrictSet(uint32_t allowType, const std::string& strategyName, 100 void GetAllowListInner(uint32_t allowType, std::vector<AllowInfo>& allowInfoList, 109 …void UnapplyAllowResInner(int32_t uid, const std::string& name, uint32_t allowType, bool removeAl… 115 … void NotifyAllowListChanged(int32_t uid, const std::string& name, uint32_t allowType, bool added); 125 bool CheckAllowTypeInfo(uint32_t allowType);
|
D | standby_service.h | 53 ErrCode GetAllowList(uint32_t allowType, std::vector<AllowInfo>& allowInfoList,
|
/foundation/resourceschedule/device_standby/frameworks/src/ |
D | standby_service_subscriber_proxy.cpp | 57 …erviceSubscriberProxy::OnAllowListChanged(int32_t uid, const std::string& name, uint32_t allowType, in OnAllowListChanged() argument 72 !data.WriteUint32(allowType) || !data.WriteBool(added)) { in OnAllowListChanged()
|
D | standby_service_stub.cpp | 206 uint32_t allowType {0}; in HandleGetAllowList() local 208 if (!data.ReadUint32(allowType) || !data.ReadUint32(reasonCode)) { in HandleGetAllowList() 213 ErrCode result = GetAllowList(allowType, allowInfoList, reasonCode); in HandleGetAllowList()
|
D | standby_service_proxy.cpp | 167 ErrCode StandbyServiceProxy::GetAllowList(uint32_t allowType, std::vector<AllowInfo>& allowInfoList, in GetAllowList() argument 177 if (!data.WriteUint32(allowType) || !data.WriteUint32(reasonCode)) { in GetAllowList()
|
/foundation/resourceschedule/device_standby/frameworks/include/ |
D | standby_service_subscriber_proxy.h | 48 …void OnAllowListChanged(int32_t uid, const std::string& name, uint32_t allowType, bool added) over…
|
D | istandby_service_subscriber.h | 48 …virtual void OnAllowListChanged(int32_t uid, const std::string& name, uint32_t allowType, bool add…
|
D | standby_service_proxy.h | 72 ErrCode GetAllowList(uint32_t allowType, std::vector<AllowInfo>& allowInfoList,
|
D | istandby_service.h | 85 virtual ErrCode GetAllowList(uint32_t allowType, std::vector<AllowInfo>& allowInfoList,
|
/foundation/resourceschedule/work_scheduler/services/native/include/ |
D | work_standby_state_change_callback.h | 45 …void OnAllowListChanged(int32_t uid, const std::string& name, uint32_t allowType, bool added) over…
|
/foundation/resourceschedule/work_scheduler/services/native/src/ |
D | work_standby_state_change_callback.cpp | 42 uint32_t allowType, bool added) in OnAllowListChanged() argument
|
/foundation/resourceschedule/device_standby/plugins/strategy/src/ |
D | base_network_strategy.cpp | 89 uint32_t allowType = static_cast<uint32_t>(message.want_->GetIntParam("allowType", 0)); in UpdateExemptionList() local 90 if ((allowType & AllowType::NETWORK) == 0) { in UpdateExemptionList() 91 STANDBYSERVICE_LOGD("allowType is not network, currentType is %{public}d", allowType); in UpdateExemptionList()
|
D | running_lock_strategy.cpp | 93 uint32_t allowType = static_cast<uint32_t>(message.want_->GetIntParam("allowType", 0)); in UpdateExemptionList() local 94 if ((allowType & AllowType::RUNNING_LOCK) == 0) { in UpdateExemptionList() 95 STANDBYSERVICE_LOGD("allowType is not running lock, currentType is %{public}d", allowType); in UpdateExemptionList()
|