/foundation/resourceschedule/device_standby/interfaces/innerkits/include/ |
H A D | allow_info.h | 28 AllowInfo(uint32_t allowType, const std::string& name, int32_t duration) :allowType_(allowType), in AllowInfo() argument 80 * @param allowType represents allow type. 82 inline void SetAllowType(uint32_t allowType) in SetAllowType() argument 84 allowType_ = allowType; in SetAllowType()
|
H A 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() 67 * @param allowType represents allow type. 69 inline void SetAllowType(uint32_t allowType) in SetAllowType() argument 71 allowType_ = allowType; in SetAllowType()
|
H A D | standby_service_subscriber_stub.h | 43 void OnAllowListChanged(int32_t uid, const std::string& name, uint32_t allowType, bool added) override;
|
H A D | standby_service_client.h | 81 * @param allowType the allow type to be retrieved. 86 ErrCode GetAllowList(uint32_t allowType, std::vector<AllowInfo>& allowInfoList,
|
H A D | standby_service_proxy.h | 67 * @param allowType the allow type to be retrieved. 72 ErrCode GetAllowList(uint32_t allowType, std::vector<AllowInfo>& allowInfoList, 105 * @param allowType the allow type to be retrieved.
|
/foundation/resourceschedule/device_standby/interfaces/kits/napi/src/ |
H A 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() 183 // argv[0]: allowType in ParseGetAllowListParameters() 184 if (Common::GetUint32Value(env, argv[0], params.allowType) == nullptr) { in ParseGetAllowListParameters() 185 STANDBYSERVICE_LOGE("ParseParameters failed, allowType is nullptr."); in ParseGetAllowListParameters() 201 if (params.allowType == 0) { in ParseGetAllowListParameters() 223 asyncCallbackInfo->allowType = params.allowType; in GetExemptionListApps() 251 int32_t allowType { in ParseAllowResParameters() [all...] |
/foundation/resourceschedule/device_standby/services/notification/src/ |
H A D | standby_state_subscriber.cpp | 135 uint32_t allowType, bool added) in ReportAllowListChanged() 138 ", name is %{public}s, allowType is %{public}d", uid, name.c_str(), allowType); in ReportAllowListChanged() 139 NotifyAllowChangedByCallback(uid, name, allowType, added); in ReportAllowListChanged() 140 NotifyAllowChangedByCommonEvent(uid, name, allowType, added); in ReportAllowListChanged() 144 uint32_t allowType, bool added) in NotifyAllowChangedByCallback() 152 (*iter)->OnAllowListChanged(uid, name, allowType, added); in NotifyAllowChangedByCallback() 175 uint32_t allowType, bool added) in NotifyAllowChangedByCommonEvent() 181 want.SetParam("resourceType", static_cast<int32_t>(allowType)); in NotifyAllowChangedByCommonEvent() 134 ReportAllowListChanged(int32_t uid, const std::string& name, uint32_t allowType, bool added) ReportAllowListChanged() argument 143 NotifyAllowChangedByCallback(int32_t uid, const std::string& name, uint32_t allowType, bool added) NotifyAllowChangedByCallback() argument 174 NotifyAllowChangedByCommonEvent(int32_t uid, const std::string& name, uint32_t allowType, bool added) NotifyAllowChangedByCommonEvent() argument
|
/foundation/resourceschedule/device_standby/interfaces/innerkits/src/ |
H A D | standby_service_subscriber_stub.cpp | 63 void StandbyServiceSubscriberStub::OnAllowListChanged(int32_t uid, const std::string& name, uint32_t allowType, in OnAllowListChanged() argument 86 uint32_t allowType {0}; in HandleOnAllowListChanged() 89 !data.ReadUint32(allowType) || !data.ReadBool(added)) { in HandleOnAllowListChanged() 93 OnAllowListChanged(uid, name, allowType, added); in HandleOnAllowListChanged()
|
H A D | standby_service_client.cpp | 94 ErrCode StandbyServiceClient::GetAllowList(uint32_t allowType, std::vector<AllowInfo>& allowInfoArray, in GetAllowList() argument 106 return standbyServiceProxy_->GetAllowList(allowType, allowInfoArray, reasonCode); in GetAllowList()
|
H A D | standby_service_proxy.cpp | 171 ErrCode StandbyServiceProxy::GetAllowList(uint32_t allowType, std::vector<AllowInfo>& allowInfoList, in GetAllowList() argument 181 if (!data.WriteUint32(allowType) || !data.WriteUint32(reasonCode)) { in GetAllowList()
|
/foundation/resourceschedule/device_standby/services/notification/include/ |
H A D | standby_state_subscriber.h | 45 void ReportAllowListChanged(int32_t uid, const std::string& name, uint32_t allowType, bool added); 48 void NotifyAllowChangedByCommonEvent(int32_t uid, const std::string& name, uint32_t allowType, bool added); 54 void NotifyAllowChangedByCallback(int32_t uid, const std::string& name, uint32_t allowType, bool added);
|
/foundation/resourceschedule/device_standby/services/core/include/ |
H A 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()
|
H A D | standby_service_impl.h | 105 ErrCode GetAllowList(uint32_t allowType, std::vector<AllowInfo>& allowInfoList, 107 ErrCode GetEligiableRestrictSet(uint32_t allowType, const std::string& strategyName, 133 void GetAllowListInner(uint32_t allowType, std::vector<AllowInfo>& allowInfoList, 146 void UnapplyAllowResInner(int32_t uid, const std::string& name, uint32_t allowType, bool removeAll); 152 void NotifyAllowListChanged(int32_t uid, const std::string& name, uint32_t allowType, bool added); 162 bool CheckAllowTypeInfo(uint32_t allowType);
|
H A D | standby_service.h | 53 ErrCode GetAllowList(uint32_t allowType, std::vector<AllowInfo>& allowInfoList,
|
/foundation/resourceschedule/device_standby/services/core/src/ |
H A D | standby_service_impl.cpp | 428 bool StandbyServiceImpl::CheckAllowTypeInfo(uint32_t allowType) in CheckAllowTypeInfo() argument 430 return allowType > 0 && allowType <= MAX_ALLOW_TYPE_NUMBER; in CheckAllowTypeInfo() 440 int allowType = resetAll ? MAX_ALLOW_TYPE_NUMBER : (MAX_ALLOW_TYPE_NUMBER ^ AllowType::TIMER ^ in RemoveAppAllowRecord() local 442 this->UnapplyAllowResInner(uid, bundleName, allowType, true); in RemoveAppAllowRecord() 580 STANDBYSERVICE_LOGI("apply res inner, uid: %{public}d, name: %{public}s, allowType: %{public}u,"\ in ApplyAllowResInner() 622 uint32_t allowType = resourceRequest->GetAllowType(); in UpdateRecord() local 628 uint32_t allowNumber = allowType & (1 << allowTypeIndex); in UpdateRecord() 653 auto task = [this, uid, name, allowType] () { in UpdateRecord() 654 this->UnapplyAllowResInner(uid, name, allowType, fals in UpdateRecord() 686 UnapplyAllowResInner(int32_t uid, const std::string& name, uint32_t allowType, bool removeAll) UnapplyAllowResInner() argument 749 NotifyAllowListChanged(int32_t uid, const std::string& name, uint32_t allowType, bool added) NotifyAllowListChanged() argument 761 GetAllowList(uint32_t allowType, std::vector<AllowInfo>& allowInfoList, uint32_t reasonCode) GetAllowList() argument 782 GetAllowListInner(uint32_t allowType, std::vector<AllowInfo>& allowInfoList, uint32_t reasonCode) GetAllowListInner() argument 851 GetEligiableRestrictSet(uint32_t allowType, const std::string& strategyName, uint32_t resonCode, std::set<std::string>& restrictSet) GetEligiableRestrictSet() argument 1364 uint32_t allowType = static_cast<uint32_t>(std::atoi(argsInStr[DUMP_FIFTH_PARAM].c_str())); DumpModifyAllowList() local 1371 uint32_t allowType = static_cast<uint32_t>(std::atoi(argsInStr[DUMP_FIFTH_PARAM].c_str())); DumpModifyAllowList() local 1377 uint32_t allowType = static_cast<uint32_t>(std::atoi(argsInStr[DUMP_THIRD_PARAM].c_str())); DumpModifyAllowList() local [all...] |
H A D | standby_service.cpp | 221 ErrCode StandbyService::GetAllowList(uint32_t allowType, std::vector<AllowInfo>& allowInfoList, in GetAllowList() argument 228 return StandbyServiceImpl::GetInstance()->GetAllowList(allowType, allowInfoList, reasonCode); in GetAllowList()
|
/foundation/resourceschedule/device_standby/frameworks/src/ |
H A D | standby_service_subscriber_proxy.cpp | 57 void StandbyServiceSubscriberProxy::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 D | standby_service_stub.cpp | 216 uint32_t allowType {0}; in HandleGetAllowList() 218 if (!data.ReadUint32(allowType) || !data.ReadUint32(reasonCode)) { in HandleGetAllowList() 223 ErrCode result = GetAllowList(allowType, allowInfoList, reasonCode); in HandleGetAllowList()
|
/foundation/resourceschedule/work_scheduler/services/native/include/ |
H A D | work_standby_state_change_callback.h | 42 * @param allowType allowType mean strategy type, such as WORK_SCHEDULER. 45 void OnAllowListChanged(int32_t uid, const std::string& name, uint32_t allowType, bool added) override;
|
/foundation/resourceschedule/work_scheduler/services/native/src/ |
H A D | work_standby_state_change_callback.cpp | 41 uint32_t allowType, bool added) in OnAllowListChanged() 40 OnAllowListChanged(int32_t uid, const std::string& name, uint32_t allowType, bool added) OnAllowListChanged() argument
|
/foundation/resourceschedule/device_standby/frameworks/include/ |
H A D | standby_service_subscriber_proxy.h | 45 * @param allowType The change of the chang. 48 void OnAllowListChanged(int32_t uid, const std::string& name, uint32_t allowType, bool added) override;
|
H A D | istandby_service_subscriber.h | 45 * @param allowType The change of the chang. 48 virtual void OnAllowListChanged(int32_t uid, const std::string& name, uint32_t allowType, bool added) = 0;
|
H A D | istandby_service.h | 81 * @param allowType the allow type to be retrieved. 86 virtual ErrCode GetAllowList(uint32_t allowType, std::vector<AllowInfo>& allowInfoList,
|
/foundation/resourceschedule/device_standby/plugins/strategy/src/ |
H A D | base_network_strategy.cpp | 92 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 D | running_lock_strategy.cpp | 100 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()
|