Home
last modified time | relevance | path

Searched full:caller (Results 1 – 25 of 295) sorted by relevance

12345678910>>...12

/base/notification/eventhandler/interfaces/inner_api/
Devent_handler.h124 * @param caller Caller info of the event, default is caller's file, func and line.
127 … bool SendEvent(uint32_t innerEventId, int64_t param, int64_t delayTime, const Caller &caller = {})
129 return SendEvent(InnerEvent::Get(innerEventId, param, caller), delayTime);
138 * @param caller Caller info of the event, default is caller's file, func and line.
142 Priority priority = Priority::LOW, const Caller &caller = {})
144 return SendEvent(InnerEvent::Get(innerEventId, 0, caller), delayTime, priority);
152 * @param caller Caller info of the event, default is caller's file, func and line.
155 inline bool SendEvent(uint32_t innerEventId, Priority priority, const Caller &caller = {})
157 return SendEvent(InnerEvent::Get(innerEventId, 0, caller), 0, priority);
166 * @param caller Caller info of the event, default is caller's file, func and line.
[all …]
Dinner_event.h42 struct Caller { struct
48 Caller(std::string file = __builtin_FILE(), int line = __builtin_LINE(),
52 Caller() {} in Caller() function
63 … std::string caller("[" + file_.substr(split + 1) + "(" + func_ + ":" + std::to_string(line_) + in ToString()
65 return caller; in ToString()
100 * @param caller Caller info of the event, default is caller's file, func and line.
103 static Pointer Get(uint32_t innerEventId, int64_t param = 0, const Caller &caller = {});
110 * @param caller Caller info of the event, default is caller's file, func and line.
113 static Pointer Get(const EventId &innerEventId, int64_t param = 0, const Caller &caller = {});
121 * @param caller Caller info of the event, default is caller's file, func and line.
[all …]
/base/security/security_component_manager/
Dhisysevent.yaml18 CALLER_PID: {type: INT32, desc: caller pid}
19 CALLER_UID: {type: INT32, desc: caller uid}
20 CALLER_BUNDLE_NAME: {type: STRING, desc: caller bundle name}
28 CALLER_PID: {type: INT32, desc: caller pid}
29 CALLER_UID: {type: INT32, desc: caller uid}
30 CALLER_BUNDLE_NAME: {type: STRING, desc: caller bundle name}
35 CALLER_PID: {type: INT32, desc: caller pid}
36 CALLER_UID: {type: INT32, desc: caller uid}
37 CALLER_BUNDLE_NAME: {type: STRING, desc: caller bundle name}
44 CALLER_PID: {type: INT32, desc: caller pid}
[all …]
/base/security/security_component_manager/services/security_component_service/sa/sa_main/
Dsec_comp_service.cpp152 bool SecCompService::GetCallerInfo(SecCompCallerInfo& caller) in GetCallerInfo() argument
158 SC_LOG_ERROR(LABEL, "Get caller tokenId invalid"); in GetCallerInfo()
162 SC_LOG_ERROR(LABEL, "caller pid is not in foreground"); in GetCallerInfo()
165 caller.tokenId = tokenId; in GetCallerInfo()
166 caller.pid = pid; in GetCallerInfo()
167 caller.uid = uid; in GetCallerInfo()
172 SecCompCallerInfo& caller, nlohmann::json& jsonRes) in ParseParams() argument
174 if (!GetCallerInfo(caller)) { in ParseParams()
175 SC_LOG_ERROR(LABEL, "Check caller failed"); in ParseParams()
191 SecCompCallerInfo caller; in RegisterSecurityComponent() local
[all …]
Dsec_comp_manager.cpp321 int32_t SecCompManager::AddSecurityComponentProcess(const SecCompCallerInfo& caller) in AddSecurityComponentProcess() argument
331 auto iter = componentMap_.find(caller.pid); in AddSecurityComponentProcess()
335 newProcess.tokenId = caller.tokenId; in AddSecurityComponentProcess()
336 componentMap_[caller.pid] = newProcess; in AddSecurityComponentProcess()
340 SecCompEnhanceAdapter::AddSecurityComponentProcess(caller.pid); in AddSecurityComponentProcess()
345 const nlohmann::json& jsonComponent, const SecCompCallerInfo& caller, int32_t& scId) in RegisterSecurityComponent() argument
347 SC_LOG_DEBUG(LABEL, "PID: %{public}d, register security component", caller.pid); in RegisterSecurityComponent()
348 if (malicious_.IsInMaliciousAppList(caller.pid, caller.uid)) { in RegisterSecurityComponent()
368 SecCompEnhanceAdapter::CheckComponentInfoEnhance(caller.pid, component, jsonComponent); in RegisterSecurityComponent()
372 malicious_.AddAppToMaliciousAppList(caller.pid); in RegisterSecurityComponent()
[all …]
Dsec_comp_manager.h56 const SecCompCallerInfo& caller, int32_t& scId);
58 const SecCompCallerInfo& caller);
59 int32_t UnregisterSecurityComponent(int32_t scId, const SecCompCallerInfo& caller);
61 const SecCompCallerInfo& caller, SecCompClickEvent& clickInfo,
70 int32_t AddSecurityComponentProcess(const SecCompCallerInfo& caller);
81 const nlohmann::json& jsonComponent, const SecCompCallerInfo& caller);
/base/hiviewdfx/hiview/framework/native/unified_collection/decorator/
Dtrace_decorator.cpp26 "Caller FailCall OverCall TotalCall AvgLatency(us) MaxLatency(us) TotalTimeSpent(us)";
30 "Caller TraceFile TimeSpent(us) RawSize(b) UsedSize(b) TimeStamp(us)";
35 CollectResult<std::vector<std::string>> TraceDecorator::DumpTrace(UCollect::TraceCaller &caller) in DumpTrace() argument
37 auto task = [this, &caller] { return traceCollector_->DumpTrace(caller); }; in DumpTrace()
38 return Invoke(task, traceStatWrapper_, caller); in DumpTrace()
41 …sult<std::vector<std::string>> TraceDecorator::DumpTraceWithDuration(UCollect::TraceCaller &caller, in DumpTraceWithDuration() argument
44 …auto task = [this, &caller, &timeLimit] { return traceCollector_->DumpTraceWithDuration(caller, ti… in DumpTraceWithDuration()
45 return Invoke(task, traceStatWrapper_, caller); in DumpTraceWithDuration()
97 …atWrapper::UpdateTraceStatInfo(uint64_t startTime, uint64_t endTime, UCollect::TraceCaller& caller, in UpdateTraceStatInfo() argument
104 if (CallerMap.find(caller) != CallerMap.end()) { in UpdateTraceStatInfo()
[all …]
/base/hiviewdfx/hiview/test/unittest/unified_collection/utility/
Dtrace_collector_test.cpp53 UCollect::TraceCaller caller = UCollect::TraceCaller::XPERF; variable
57 std::cout << "caller : " << caller << std::endl;
58 CollectResult<std::vector<std::string>> resultDumpTrace = collector->DumpTrace(caller);
76 UCollect::TraceCaller caller = UCollect::TraceCaller::XPOWER; variable
80 std::cout << "caller : " << caller << std::endl;
81 CollectResult<std::vector<std::string>> resultDumpTrace = collector->DumpTrace(caller);
100 UCollect::TraceCaller caller = UCollect::TraceCaller::RELIABILITY; variable
103 std::cout << "caller : " << caller << std::endl;
104 CollectResult<std::vector<std::string>> resultDumpTrace = collector->DumpTrace(caller);
147 UCollect::TraceCaller caller = UCollect::TraceCaller::BETACLUB; variable
[all …]
/base/security/certificate_manager/services/cert_manager_standard/cert_manager_engine/main/core/src/
Dcert_manager_check.c103 CM_LOG_E("set cert status: caller is not system app"); in CmServiceSetCertStatusCheck()
192 if (*callerUserId == 0) { /* caller is sa */ in CmCheckUserIdAndUpdateContext()
194 CM_LOG_E("caller is sa, input userId %u is invalid", inputUserId); in CmCheckUserIdAndUpdateContext()
197 CM_LOG_D("update caller userId from %u to %u", *callerUserId, inputUserId); in CmCheckUserIdAndUpdateContext()
202 /* caller is hap */ in CmCheckUserIdAndUpdateContext()
204 CM_LOG_E("caller is hap, input userId %u is not supported", inputUserId); in CmCheckUserIdAndUpdateContext()
248 CM_LOG_E("install app cert: caller is not system app"); in CmServiceInstallAppCertCheck()
275 CM_LOG_E("caller userid is not producer"); in checkCallerAndUri()
280 CM_LOG_E("caller uid is not producer"); in checkCallerAndUri()
308 CM_LOG_E("uninstall app cert: caller is not system app"); in CmServiceUninstallAppCertCheck()
[all …]
/base/hiviewdfx/hiview/framework/native/unified_collection/collector/
Dtrace_collector_impl.cpp50 UCollect::TraceCaller &caller, uint32_t timeLimit) in DumpTraceWithDuration() argument
53 return StartDumpTrace(caller, INT32_MAX); in DumpTraceWithDuration()
55 return StartDumpTrace(caller, static_cast<int32_t>(timeLimit)); in DumpTraceWithDuration()
58 CollectResult<std::vector<std::string>> TraceCollectorImpl::DumpTrace(UCollect::TraceCaller &caller) in DumpTrace() argument
60 return StartDumpTrace(caller, FULL_TRACE_DURATION); in DumpTrace()
63 …tResult<std::vector<std::string>> TraceCollectorImpl::StartDumpTrace(UCollect::TraceCaller &caller, in StartDumpTrace() argument
66 HIVIEW_LOGI("trace caller is %{public}s.", EnumToString(caller).c_str()); in StartDumpTrace()
74 …std::shared_ptr<TraceFlowController> controlPolicy = std::make_shared<TraceFlowController>(caller); in StartDumpTrace()
95 if (caller == UCollect::TraceCaller::DEVELOP) { in StartDumpTrace()
98 std::vector<std::string> outputFiles = GetUnifiedFiles(traceRetInfo, caller); in StartDumpTrace()
/base/hiviewdfx/hiview/framework/native/unified_collection/decorator/include/
Dtrace_decorator.h29 std::string caller; member
45 std::string caller; member
56 str.append(caller).append(" ") in ToString()
68 std::string caller; member
78 str.append(caller).append(" ") in ToString()
90 void UpdateTraceStatInfo(uint64_t startTime, uint64_t endTime, UCollect::TraceCaller& caller,
98 void UpdateTrafficInfo(const std::string& caller, uint64_t latency,
111 … virtual CollectResult<std::vector<std::string>> DumpTrace(UCollect::TraceCaller &caller) override;
112 …irtual CollectResult<std::vector<std::string>> DumpTraceWithDuration(UCollect::TraceCaller &caller,
121 …<typename T> auto Invoke(T task, TraceStatWrapper& traceStatWrapper, UCollect::TraceCaller& caller) in Invoke() argument
[all …]
/base/notification/eventhandler/frameworks/eventhandler/src/
Dinner_event.cpp112 InnerEvent::Pointer InnerEvent::Get(uint32_t innerEventId, int64_t param, const Caller &caller) in Get() argument
118 event->caller_ = caller; in Get()
119 …HILOGD("innerEventId is %{public}u, caller is %{public}s", innerEventId, caller.ToString().c_str()… in Get()
124 …nerEvent::Pointer InnerEvent::Get(const EventId &innerEventId, int64_t param, const Caller &caller) in Get() argument
130 event->caller_ = caller; in Get()
132 HILOGD("innerEventId is %{public}u, caller is %{public}s", in Get()
134 caller.ToString().c_str()); in Get()
136 HILOGD("innerEventId is %{public}s, caller is %{public}s", in Get()
138 caller.ToString().c_str()); in Get()
144 …t::Pointer InnerEvent::Get(const Callback &callback, const std::string &name, const Caller &caller) in Get() argument
[all …]
/base/hiviewdfx/hiview/framework/native/unified_collection/collector/utils/
Dtrace_utils.cpp254 std::shared_ptr<CleanPolicy> GetCleanPolicy(int type, UCollect::TraceCaller &caller) in GetCleanPolicy() argument
257 if (caller == UCollect::TraceCaller::APP) { in GetCleanPolicy()
264 if (caller == UCollect::TraceCaller::XPERF) { in GetCleanPolicy()
268 if (caller == UCollect::TraceCaller::RELIABILITY) { in GetCleanPolicy()
272 if (caller == UCollect::TraceCaller::APP) { in GetCleanPolicy()
278 void FileRemove(UCollect::TraceCaller &caller) in FileRemove() argument
280 std::shared_ptr<CleanPolicy> shareCleaner = GetCleanPolicy(SHARE, caller); in FileRemove()
281 std::shared_ptr<CleanPolicy> specialCleaner = GetCleanPolicy(SPECIAL, caller); in FileRemove()
282 switch (caller) { in FileRemove()
329 const std::string EnumToString(UCollect::TraceCaller &caller) in EnumToString() argument
[all …]
/base/security/security_guard/
Dhisysevent.yaml18 CALLER_PID: {type: INT32, desc: caller pid}
24 CALLER_PID: {type: INT32, desc: caller pid}
31 CALLER_PID: {type: INT32, desc: caller pid}
38 CALLER_PID: {type: INT32, desc: caller pid}
44 CALLER_PID: {type: INT32, desc: caller pid}
51 CALLER_PID: {type: INT32, desc: caller pid}
/base/security/certificate_manager/test/unittest/src/
Dcm_finish_test.cpp300 * @tc.desc: Test CmFinish normal case: caller is producer, rsa sign verify, pss sha256
312 * @tc.desc: Test CmFinish normal case: caller is producer, ecc sign verify, sha256
324 * @tc.desc: Test CmFinish abnormal case: caller is producer, rsa sign verify(sign invalid)
336 * @tc.desc: Test CmFinish abnormal case: caller is producer, ecc sign verify(sign invalid)
348 * @tc.desc: Test CmFinish normal case: normal case: caller is producer, max times + 1(first fail)
361 * @tc.desc: 1000 times normal case: caller is producer, ecc sign verify
375 * @tc.desc: 1000 times normal case: caller is producer, rsa sign verify
389 * @tc.desc: Test CmFinish normal case: caller is producer, rsa sign verify, pss, sha512
401 * @tc.desc: Test CmFinish normal case: caller is producer, rsa sign verify, pss, sha384
414 * @tc.desc: Test CmFinish normal case: caller is producer, rsa sign verify, pss, sha224
[all …]
/base/security/asset/
Dhisysevent.yaml20 CALLER: {type: STRING, desc: caller info}
28 CALLER: {type: STRING, desc: caller info}
/base/time/time_service/
Dhisysevent.yaml36 CALLER_UID: {type: INT32, desc: caller uid}
37 CALLER_NAME: {type: STRING, desc: caller bundle name or process name}
47 CALLER_UID: {type: INT32, desc: caller uid}
48 CALLER_NAME: {type: STRING, desc: caller bundle or process name}
55 CALLER_UID: {type: INT32, desc: caller uid}
56 CALLER_NAME: {type: STRING, desc: caller bundle name or process name}
/base/telephony/core_service/services/sim/include/
Dicc_dialling_numbers_cache.h47 int recordIndex, bool isDel, const AppExecFwk::InnerEvent::Pointer &caller);
48 …AllDiallingNumberFiles(int fileId, int extensionEf, const AppExecFwk::InnerEvent::Pointer &caller);
58 …void SendUpdateResult(const AppExecFwk::InnerEvent::Pointer &caller, const std::shared_ptr<void> &…
59 void SendBackResult(const AppExecFwk::InnerEvent::Pointer &caller,
64 void SendExceptionResult(const AppExecFwk::InnerEvent::Pointer &caller, int errCode);
66 … int fileId, int index, std::shared_ptr<void> pobj, const AppExecFwk::InnerEvent::Pointer &caller);
68 int eventId, int fileId, const AppExecFwk::InnerEvent::Pointer &caller);
/base/security/security_guard/oem_property/hos/
Dsecurity_guard_model.cfg18 "caller": ["security_guard"],
136 "caller": ["security_guard"],
196 "caller": ["security_guard"],
244 "caller": ["security_guard"]
259 "caller": ["security_guard"]
271 "caller": ["security_guard"]
283 "caller": ["security_guard"],
299 "caller": ["security_guard"],
315 "caller": ["security_guard"]
/base/hiviewdfx/hiview/framework/native/unified_collection/collector/inner_include/
Dtrace_utils.h45 void FileRemove(UCollect::TraceCaller &caller);
48 const std::string EnumToString(UCollect::TraceCaller &caller);
49 std::vector<std::string> GetUnifiedFiles(Hitrace::TraceRetInfo ret, UCollect::TraceCaller &caller);
51 …vector<std::string> GetUnifiedShareFiles(Hitrace::TraceRetInfo ret, UCollect::TraceCaller &caller);
53 UCollect::TraceCaller &caller);
Dtrace_collector_impl.h30 … virtual CollectResult<std::vector<std::string>> DumpTrace(UCollect::TraceCaller &caller) override;
32 UCollect::TraceCaller &caller, uint32_t timeLimit) override;
36 …CollectResult<std::vector<std::string>> StartDumpTrace(UCollect::TraceCaller &caller, int32_t time…
/base/telephony/core_service/services/sim/src/
Dicc_dialling_numbers_cache.cpp98 SendBackResult(fd->callerCache->caller, diallingNumberList, fd->exception); in ProcessObtainPbrDetailsDone()
124 SendBackResult(fd->callerCache->caller, diallingNumberList, fd->exception); in ProcessObtainAdnDetailsDone()
156 SendUpdateResult(fd->callerCache->caller, fd->exception); in ProcessChangeDiallingNumbersDone()
179 bool isDel, const AppExecFwk::InnerEvent::Pointer &caller) in UpdateDiallingNumberToIcc() argument
185 SendExceptionResult(caller, LOADER_ERROR); in UpdateDiallingNumberToIcc()
197 SendExceptionResult(caller, LOADER_ERROR); in UpdateDiallingNumberToIcc()
213 … BuildCallerInfo(MSG_SIM_CHANGE_DIALLING_NUMBERS_DONE, fileId, index, diallingNumberInfor, caller); in UpdateDiallingNumberToIcc()
272 int fileId, int extFileId, const AppExecFwk::InnerEvent::Pointer &caller) in ObtainAllDiallingNumberFiles() argument
277 if (result != nullptr && caller != nullptr) { in ObtainAllDiallingNumberFiles()
280 SendBackResult(caller, result, object); in ObtainAllDiallingNumberFiles()
[all …]
/base/hiviewdfx/hiview/utility/common_utils/include/
Dcalc_fingerprint.h34 * The caller can pass a char hash_str[41] to get the hash string
43 * The caller can pass a char hash[41] to get the hash
52 * The caller can pass a char hash_str[41] to get the hash string
61 * The caller can pass a char hash[41] to get the hash string
/base/notification/distributed_notification_service/services/ans/include/
Daccess_token_helper.h28 * @brief Verifies that the caller has the specified permission.
30 * @param tokenCaller The AccessTokenID of caller.
32 * @return Returns true if the caller has the specified permission, false otherwise.
/base/security/security_component_manager/interfaces/inner_api/security_component/include/
Dsec_comp_enhance_adapter.h84 virtual bool EnhanceDataPreprocess(const uintptr_t caller, std::string& componentInfo) = 0;
85 …virtual bool EnhanceDataPreprocess(const uintptr_t caller, int32_t scId, std::string& componentInf…
87 virtual bool EnhanceClientSerialize(const uintptr_t caller,
89 virtual bool EnhanceClientDeserialize(const uintptr_t caller, MessageParcel& input,
93 virtual void RegisterScIdEnhance(const uintptr_t caller, int32_t scId) = 0;
95 virtual void UnregisterScIdEnhance(const uintptr_t caller, int32_t scId) = 0;

12345678910>>...12