/base/print/print_fwk/services/print_service/src/ |
D | print_security_guard_manager.cpp | 22 void PrintSecurityGuardManager::receiveBaseInfo(const std::string jobId, const std::string callPkg, in receiveBaseInfo() argument 25 …PRINT_HILOGI("receiveBaseInfo start jobId:%{public}s, callPkg:%{public}s", jobId.c_str(), callPkg.… in receiveBaseInfo() 27 securityMap_.insert(std::make_pair(jobId, securityGuard)); in receiveBaseInfo() 30 void PrintSecurityGuardManager::receiveJobStateUpdate(const std::string jobId, const PrinterInfo &p… in receiveJobStateUpdate() argument 33 …PRINT_HILOGI("receiveJobStateUpdate jobId:%{public}s, state:%{public}d", jobId.c_str(), printJob.G… in receiveJobStateUpdate() 34 auto it = securityMap_.find(jobId); in receiveJobStateUpdate() 44 clearSecurityMap(jobId); in receiveJobStateUpdate() 47 void PrintSecurityGuardManager::clearSecurityMap(const std::string jobId) in clearSecurityMap() argument 49 securityMap_.erase(jobId); in clearSecurityMap()
|
D | print_service_ability.cpp | 249 std::string jobId = GetPrintJobId(); in CallSpooler() local 252 printJob->SetJobId(jobId); in CallSpooler() 256 want.SetParam(LAUNCH_PARAMETER_JOB_ID, jobId); in CallSpooler() 258 BuildAdapterParam(adapterParam, want, jobId); in CallSpooler() 273 printJobList_.insert(std::make_pair(jobId, printJob)); in CallSpooler() 274 taskId = jobId; in CallSpooler() 277 securityGuardManager_.receiveBaseInfo(jobId, callerPkg, fileList); in CallSpooler() 306 std::string jobId = GetPrintJobId(); in CallSpooler() local 309 printJob->SetJobId(jobId); in CallSpooler() 313 want.SetParam(LAUNCH_PARAMETER_JOB_ID, jobId); in CallSpooler() [all …]
|
D | print_callback_proxy.cpp | 102 bool PrintCallbackProxy::OnCallbackAdapterLayout(const std::string &jobId, const PrintAttributes &o… in OnCallbackAdapterLayout() argument 115 data.WriteString(jobId); in OnCallbackAdapterLayout() 129 bool PrintCallbackProxy::onCallbackAdapterJobStateChanged(const std::string jobId, const uint32_t s… in onCallbackAdapterJobStateChanged() argument 142 data.WriteString(jobId); in onCallbackAdapterJobStateChanged()
|
/base/print/print_fwk/frameworks/innerkitsimpl/print_impl/src/ |
D | iprint_adapter_inner.cpp | 21 void PrintDocumentInnerAdapter::onStartLayoutWrite(const std::string &jobId, const PrintAttributes … in onStartLayoutWrite() argument 25 PRINT_HILOGI("onStartLayoutWrite jobId:%{public}s", jobId.c_str()); in onStartLayoutWrite() 29 writeResultCallback(jobId, PRINT_JOB_CREATE_FILE_COMPLETED_SUCCESS); in onStartLayoutWrite() 32 void PrintDocumentInnerAdapter::onJobStateChanged(const std::string &jobId, uint32_t state) in onJobStateChanged() argument 34 PRINT_HILOGI("onJobStateChanged jobId:%{public}s state:%{public}d", jobId.c_str(), state); in onJobStateChanged()
|
D | print_callback.cpp | 232 std::string jobId = NapiPrintUtils::GetStringFromValueUtf8(env, args[0]); in PrintAdapterAfterCallFun() local 235 …PrintManagerClient::GetInstance()->UpdatePrintJobState(jobId, PRINT_JOB_CREATE_FILE_COMPLETED, rep… in PrintAdapterAfterCallFun() 236 … PRINT_HILOGI("from js return jobId:%{public}s, replyState:%{public}d", jobId.c_str(), replyState); in PrintAdapterAfterCallFun() 242 callbackValues[0] = NapiPrintUtils::CreateStringUtf8(cbParam->env, cbParam->jobId); in PrintAdapterAfterCallFun() 282 callbackValues[0] = NapiPrintUtils::CreateStringUtf8(cbParam->env, cbParam->jobId); in PrintAdapterJobStateChangedAfterCallFun() 395 bool PrintCallback::OnCallbackAdapterLayout(const std::string &jobId, const PrintAttributes &oldAtt… in OnCallbackAdapterLayout() argument 399 jobId.c_str(), newAttrs.GetCopyNumber()); in OnCallbackAdapterLayout() 402 …adapter_->onStartLayoutWrite(jobId, oldAttrs, newAttrs, fd, [](std::string jobId, uint32_t state) { in OnCallbackAdapterLayout() argument 403 …PRINT_HILOGI("onStartLayoutWrite write over, jobId:%{public}s state: %{public}d", jobId.c_str(), s… in OnCallbackAdapterLayout() 404 …PrintManagerClient::GetInstance()->UpdatePrintJobState(jobId, PRINT_JOB_CREATE_FILE_COMPLETED, sta… in OnCallbackAdapterLayout() [all …]
|
D | print_callback_stub.cpp | 97 std::string jobId = data.ReadString(); in HandlePrintAdapterJobEvent() local 106 …"PrintCallbackStub HandlePrintAdapterJobEvent jobId:%{public}s, fd:%{public}d", jobId.c_str(), fd); in HandlePrintAdapterJobEvent() 107 bool result = OnCallbackAdapterLayout(jobId, *oldAttrs, *newAttrs, fd); in HandlePrintAdapterJobEvent() 116 std::string jobId = data.ReadString(); in HandlePrintAdapterJobChangedEvent() local 121 jobId.c_str(), subState); in HandlePrintAdapterJobChangedEvent() 122 bool result = onCallbackAdapterJobStateChanged(jobId, state, subState); in HandlePrintAdapterJobChangedEvent()
|
D | iprint_adapter.cpp | 20 void PrintDocumentAdapter::onStartLayoutWrite(const std::string &jobId, const PrintAttributes &oldA… in onStartLayoutWrite() argument 26 void PrintDocumentAdapter::onJobStateChanged(const std::string &jobId, uint32_t state) in onJobStateChanged() argument
|
/base/web/webview/test/unittest/ohos_adapter/print_manager_adapter_impl_test/ |
D | print_manager_adapter_impl_test.cpp | 60 void OnStartLayoutWrite(const std::string& jobId, const PrintAttributesAdapter& oldAttrs, in OnStartLayoutWrite() argument 64 void OnJobStateChanged(const std::string& jobId, uint32_t state) override {} in OnJobStateChanged() argument 88 std::string jobId = "abc"; variable 96 documentAdapter.onStartLayoutWrite(jobId, oldAttrs, newAttrs, fd, writeResultCallback); 97 documentAdapter.onJobStateChanged(jobId, state); 99 documentAdapter.onStartLayoutWrite(jobId, oldAttrs, newAttrs, fd, writeResultCallback); 100 documentAdapter.onJobStateChanged(jobId, state);
|
/base/print/print_fwk/interfaces/kits/jskits/ |
D | @ohos.print.d.ts | 67 …onStartLayoutWrite(jobId: string, oldAttrs: PrintAttributes, newAttrs: PrintAttributes, fd: number, 68 writeResultCallback: (jobId: string, writeResult: PrintFileCreatedInfoCode) => void): void; 79 onJobStateChanged(jobId: string, state: PrintAdapterListeningState): void; 256 jobId: string; // job id property 444 function cancelPrintJob(jobId: string, callback: AsyncCallback<boolean>): void; 445 function cancelPrintJob(jobId: string): Promise<boolean>; 598 …function updatePrintJobState(jobId: string, state: PrintJobState, subState: PrintJobSubState, call… 599 …function updatePrintJobState(jobId: string, state: PrintJobState, subState: PrintJobSubState): Pro… 637 function queryPrintJobById(jobId: string, callback: AsyncCallback<PrintJob>): void; 638 function queryPrintJobById(jobId: string): Promise<PrintJob>; [all …]
|
/base/print/print_fwk/services/print_service/include/ |
D | print_security_guard_manager.h | 28 void receiveBaseInfo(const std::string jobId, const std::string callerPkg, 30 …void receiveJobStateUpdate(const std::string jobId, const PrinterInfo &printerInfo, const PrintJob… 34 void clearSecurityMap(const std::string jobId);
|
D | print_service_ability.h | 66 int32_t CancelPrintJob(const std::string &jobId) override; 71 … int32_t UpdatePrintJobState(const std::string &jobId, uint32_t state, uint32_t subState) override; 89 int32_t StartGetPrintFile(const std::string &jobId, const PrintAttributes &printAttributes, 91 int32_t NotifyPrintService(const std::string &jobId, const std::string &type) override; 125 …void notifyAdapterJobChanged(const std::string jobId, const uint32_t state, const uint32_t subStat… 127 int32_t CheckAndSendQueuePrintJob(const std::string &jobId, uint32_t state, uint32_t subState); 128 void UpdateQueuedJobList(const std::string &jobId, const std::shared_ptr<PrintJob> &printJob); 129 void StartPrintJobCB(const std::string &jobId, const std::shared_ptr<PrintJob> &printJob); 132 … const std::shared_ptr<AdapterParam> &adapterParam, AAFwk::Want &want, const std::string &jobId); 135 int32_t AdapterGetFileCallBack(const std::string &jobId, uint32_t state, uint32_t subState);
|
D | print_callback_proxy.h | 31 bool OnCallbackAdapterLayout(const std::string &jobId, const PrintAttributes &oldAttrs, 33 bool onCallbackAdapterJobStateChanged(const std::string jobId, const uint32_t state,
|
/base/print/print_fwk/frameworks/innerkitsimpl/print_impl/include/ |
D | iprint_adapter.h | 25 virtual void onStartLayoutWrite(const std::string &jobId, const PrintAttributes &oldAttrs, 30 virtual void onJobStateChanged(const std::string &jobId, uint32_t state);
|
D | iprint_adapter_inner.h | 24 void onStartLayoutWrite(const std::string &jobId, const PrintAttributes &oldAttrs, 29 void onJobStateChanged(const std::string &jobId, uint32_t state) override;
|
D | print_callback.h | 39 std::string jobId; member 59 bool OnCallbackAdapterLayout(const std::string &jobId, const PrintAttributes &oldAttrs, 61 bool onCallbackAdapterJobStateChanged(const std::string jobId, const uint32_t state,
|
D | iprint_callback.h | 32 virtual bool OnCallbackAdapterLayout(const std::string &jobId, const PrintAttributes &oldAttrs, 34 virtual bool onCallbackAdapterJobStateChanged(const std::string jobId, const uint32_t state,
|
D | iprint_service.h | 45 virtual int32_t CancelPrintJob(const std::string &jobId) = 0; 50 …virtual int32_t UpdatePrintJobState(const std::string &jobId, uint32_t state, uint32_t subState) =… 67 …virtual int32_t StartGetPrintFile(const std::string &jobId, const PrintAttributes &printAttributes, 69 virtual int32_t NotifyPrintService(const std::string &jobId, const std::string &type) = 0;
|
D | print_service_proxy.h | 39 int32_t CancelPrintJob(const std::string &jobId) override; 44 … int32_t UpdatePrintJobState(const std::string &jobId, uint32_t state, uint32_t subState) override; 61 int32_t StartGetPrintFile(const std::string &jobId, const PrintAttributes &printAttributes, 63 int32_t NotifyPrintService(const std::string &jobId, const std::string &type) override;
|
/base/hiviewdfx/hilog/services/hilogd/ |
D | log_persister.cpp | 117 m_startMsg.jobId, m_startMsg.fileNum, fileSuffix); in InitFileRotator() 148 if (CheckRegistered(m_startMsg.jobId, path)) { in Init() 194 …string fileName = std::string(".") + AUXILLARY_PERSISTER_PREFIX + std::to_string(m_startMsg.jobId); in PrepareUncompressedFile() 374 response.jobId = m_startMsg.jobId; in FillInfo() 414 … if (logPersister->m_startMsg.jobId == id || logPersister->m_startMsg.filePath == logPath) { in CheckRegistered() 428 if (logPersister->m_startMsg.jobId == id) { in GetLogPersisterById() 454 if (logPersister->m_startMsg.jobId == obj->m_startMsg.jobId) { in DeregisterLogPersister()
|
D | service_controller.cpp | 546 if (rqst.jobId && (rqst.jobId < JOB_ID_MIN || rqst.jobId == JOB_ID_MAX)) { in CheckPersistStartRqst() 568 msg.jobId = rqst.jobId; in PersistStartRqst2Msg() 569 if (msg.jobId == 0) { in PersistStartRqst2Msg() 570 msg.jobId = isKmsgType ? DEFAULT_PERSIST_KMSG_JOB_ID : DEFAULT_PERSIST_NORMAL_JOB_ID; in PersistStartRqst2Msg() 627 PersistStartRsp rsp = { msg.jobId }; in HandlePersistStartRqst() 637 if (rqst.jobId == 0 && resultList.empty()) { in HandlePersistStopRqst() 642 uint32_t jobId = it->jobId; in HandlePersistStopRqst() local 643 if (rqst.jobId == 0 || rqst.jobId == jobId) { in HandlePersistStopRqst() 644 (void)LogPersister::Kill(jobId); in HandlePersistStopRqst() 645 rsp.jobId[rsp.jobNum] = jobId; in HandlePersistStopRqst() [all …]
|
/base/print/print_fwk/test/unittest/fwk_inner_napi_test/mock/ |
D | mock_print_callback_stub.h | 41 bool OnCallbackAdapterLayout(const std::string &jobId, const PrintAttributes &oldAttrs, in OnCallbackAdapterLayout() argument 46 bool onCallbackAdapterJobStateChanged(const std::string jobId, const uint32_t state, in onCallbackAdapterJobStateChanged() argument
|
/base/web/webview/ohos_adapter/print_manager_adapter/src/ |
D | print_manager_adapter_impl.cpp | 144 void PrintDocumentAdapterImpl::onStartLayoutWrite(const std::string& jobId, in onStartLayoutWrite() argument 152 …jobId, ConvertPrintingParameters(oldAttrs), ConvertPrintingParameters(newAttrs), fd, writeResultCa… in onStartLayoutWrite() 155 void PrintDocumentAdapterImpl::onJobStateChanged(const std::string& jobId, uint32_t state) in onJobStateChanged() argument 160 cb_->OnJobStateChanged(jobId, state); in onJobStateChanged()
|
/base/hiviewdfx/hilog/frameworks/libhilog/include/ |
D | hilog_cmd.h | 119 uint32_t jobId; member 127 uint32_t jobId; member 131 uint32_t jobId; member 136 uint32_t jobId[MAX_JOBS]; member
|
/base/web/webview/ohos_adapter/print_manager_adapter/include/ |
D | print_manager_adapter_impl.h | 34 void onStartLayoutWrite(const std::string& jobId, const OHOS::Print::PrintAttributes& oldAttrs, 38 void onJobStateChanged(const std::string& jobId, uint32_t state) override;
|
/base/web/webview/ohos_adapter/interfaces/ |
D | print_manager_adapter.h | 60 … virtual void OnStartLayoutWrite(const std::string& jobId, const PrintAttributesAdapter& oldAttrs, 64 virtual void OnJobStateChanged(const std::string& jobId, uint32_t state) = 0;
|