Home
last modified time | relevance | path

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

12

/base/startup/init/interfaces/innerkits/fd_holder/
Dfd_holder.c165 char **fdList = SplitStringExt(fdBuffer, " ", &fdCount, MAX_HOLD_FDS); in ServiceGetFd() local
166 BEGET_ERROR_CHECK(fdList != NULL, return NULL, "Cannot get fd list"); in ServiceGetFd()
169 BEGET_ERROR_CHECK(fds != NULL, FreeStringVector(fdList, fdCount); in ServiceGetFd()
177 fds[i] = (int)strtol(fdList[i], NULL, DECIMAL_BASE); in ServiceGetFd()
179 break, "Failed to convert \' %s \' to fd number", fdList[i]); in ServiceGetFd()
188 FreeStringVector(fdList, fdCount); in ServiceGetFd()
/base/web/webview/ohos_adapter/print_manager_adapter/src/
Dprint_manager_adapter_impl.cpp32 …const std::vector<std::string>& fileList, const std::vector<uint32_t>& fdList, std::string& taskId) in StartPrint() argument
34 …int32_t ret = OHOS::Print::PrintManagerClient::GetInstance()->StartPrint(fileList, fdList, taskId); in StartPrint()
/base/web/webview/ohos_adapter/interfaces/
Dprint_manager_adapter.h31 const std::vector<uint32_t>& fdList,
/base/print/print_fwk/frameworks/innerkitsimpl/src/
Dprint_job.cpp85 void PrintJob::SetFdList(const std::vector<uint32_t> &fdList) in SetFdList() argument
88 fdList_.assign(fdList.begin(), fdList.end()); in SetFdList()
198 void PrintJob::GetFdList(std::vector<uint32_t> &fdList) const in GetFdList()
200 fdList.clear(); in GetFdList()
201 fdList.assign(fdList_.begin(), fdList_.end()); in GetFdList()
Dprint_service_proxy.cpp40 const std::vector<uint32_t> &fdList, std::string &taskId) in StartPrint() argument
55 data.WriteBool(fdList.size() > 0); in StartPrint()
56 if (!fdList.empty()) { in StartPrint()
57 data.WriteInt32(fdList.size()); in StartPrint()
58 for (auto fd : fdList) { in StartPrint()
71 …iceProxy::StartPrint(const std::vector<std::string> &fileList, const std::vector<uint32_t> &fdList, in StartPrint() argument
87 data.WriteBool(fdList.size() > 0); in StartPrint()
88 if (!fdList.empty()) { in StartPrint()
89 data.WriteInt32(fdList.size()); in StartPrint()
90 for (auto fd : fdList) { in StartPrint()
Dprint_manager_client.cpp91 const std::vector<uint32_t> &fdList, std::string &taskId) in StartPrint() argument
96 ret = printServiceProxy_->StartPrint(fileList, fdList, taskId); in StartPrint()
102 …erClient::StartPrint(const std::vector<std::string> &fileList, const std::vector<uint32_t> &fdList, in StartPrint() argument
108 ret = printServiceProxy_->StartPrint(fileList, fdList, taskId, token); in StartPrint()
/base/web/webview/ohos_adapter/print_manager_adapter/include/
Dprint_manager_adapter_impl.h30 const std::vector<uint32_t>& fdList,
/base/print/print_fwk/test/unittest/service_test/
Dprint_service_ability_test.cpp75 void InitFdList(std::vector<uint32_t> &fdList);
184 void PrintServiceAbilityTest::InitFdList(std::vector<uint32_t> &fdList) in InitFdList() argument
186 fdList.emplace_back(FDLIST_TEST_ONE); in InitFdList()
187 fdList.emplace_back(FDLIST_TEST_TWO); in InitFdList()
188 fdList.emplace_back(FDLIST_TEST_THREE); in InitFdList()
317 std::vector<uint32_t> fdList = {}; in CreateServiceWithoutEvent() local
318 InitFdList(fdList); in CreateServiceWithoutEvent()
320 EXPECT_EQ(service->StartPrint(fileList, fdList, taskId), E_PRINT_NONE); in CreateServiceWithoutEvent()
376 std::vector<uint32_t> fdList = {}; variable
378 int result = PrintServiceAbility::GetInstance()->StartPrint(fileList, fdList, taskId);
[all …]
/base/print/print_fwk/frameworks/innerkitsimpl/include/
Diprint_service.h35 const std::vector<uint32_t> &fdList, std::string &taskId) = 0;
36 …l int32_t StartPrint(const std::vector<std::string> &fileList, const std::vector<uint32_t> &fdList,
Dprint_service_proxy.h29 const std::vector<uint32_t> &fdList, std::string &taskId) override;
31 … int32_t StartPrint(const std::vector<std::string> &fileList, const std::vector<uint32_t> &fdList,
Dprint_manager_client.h43 const std::vector<uint32_t> &fdList, std::string &taskId);
45 … int32_t StartPrint(const std::vector<std::string> &fileList, const std::vector<uint32_t> &fdList,
Dprint_job.h73 void GetFdList(std::vector<uint32_t> &fdList) const;
/base/print/print_fwk/services/src/
Dprint_service_ability.cpp196 void PrintServiceAbility::BuildFDParam(const std::vector<uint32_t> &fdList, AAFwk::Want &want) in BuildFDParam() argument
198 if (fdList.empty()) { in BuildFDParam()
202 … sptr<AAFwk::IArray> ao = new (std::nothrow) AAFwk::Array(fdList.size(), AAFwk::g_IID_IWantParams); in BuildFDParam()
208 for (auto fd : fdList) { in BuildFDParam()
220 const std::vector<uint32_t> &fdList, std::string &taskId) in StartPrint() argument
229 if (fileList.empty() && fdList.empty()) { in StartPrint()
238 printJob->SetFdList(fdList); in StartPrint()
245 BuildFDParam(fdList, want); in StartPrint()
268 …eAbility::StartPrint(const std::vector<std::string> &fileList, const std::vector<uint32_t> &fdList, in StartPrint() argument
278 if ((fileList.empty() && fdList.empty()) || token == nullptr) { in StartPrint()
[all …]
Dprint_service_stub.cpp84 std::vector<uint32_t> fdList; in OnStartPrint() local
102 fdList.emplace_back(fd); in OnStartPrint()
110 ret = StartPrint(fileList, fdList, result); in OnStartPrint()
112 ret = StartPrint(fileList, fdList, result, token); in OnStartPrint()
Dprint_cups_client.cpp341 int num_files = jobParams->fdList.size(); in StartCupsJob()
353 if ((fp = cupsFileOpenFd(jobParams->fdList[i], "rb")) == NULL) { in StartCupsJob()
622 jobInfo.GetFdList(params->fdList); in BuildJobParameters()
/base/print/print_fwk/services/include/
Dprint_service_ability.h49 const std::vector<uint32_t> &fdList, std::string &taskId) override;
50 … int32_t StartPrint(const std::vector<std::string> &fileList, const std::vector<uint32_t> &fdList,
98 void BuildFDParam(const std::vector<uint32_t> &fdList, AAFwk::Want &want);
Dprint_cups_client.h86 std::vector<uint32_t> fdList; member
/base/print/print_fwk/frameworks/helper/src/
Dprint_job_helper.cpp203 std::vector<uint32_t> fdList; in CreateFdList() local
204 job.GetFdList(fdList); in CreateFdList()
205 uint32_t arrFilesLength = fdList.size(); in CreateFdList()
209 PRINT_CALL_BASE(env, napi_create_uint32(env, fdList[i], &value), false); in CreateFdList()
/base/hiviewdfx/hidumper/services/native/src/
Ddump_manager_service.cpp177 std::vector<std::string> fdList = DumpCommonUtils::GetSubNodes(taskPath, true); in GetFileDescriptorNums() local
178 return fdList.size(); in GetFileDescriptorNums()
239 std::vector<std::string> fdList = DumpCommonUtils::GetSubNodes(taskPath, true); in CountFdNums() local
241 for (const auto &each : fdList) { in CountFdNums()
/base/web/webview/test/unittest/ohos_adapter_helper/
Dohos_adapter_helper_test.cpp120 std::vector<uint32_t> fdList = {1}; variable
122 int32_t ret = printAdapter.StartPrint(fileList, fdList, taskId);
/base/msdp/device_status/services/native/include/
Dstream_server.h50 void Multicast(const std::vector<int32_t>& fdList, NetPacket& pkt);
/base/print/print_fwk/test/unittest/service_test/mock/
Dmock_print_service.h27 const std::vector<uint32_t> &fdList, std::string &taskId) override in StartPrint() argument
32 …const std::vector<uint32_t> &fdList, std::string &taskId, const sptr<IRemoteObject> &token) overri… in StartPrint() argument
/base/msdp/device_status/services/native/src/
Dstream_server.cpp87 void StreamServer::Multicast(const std::vector<int32_t>& fdList, NetPacket& pkt) in Multicast() argument
89 for (const auto &item : fdList) { in Multicast()
/base/print/print_fwk/test/unittest/fwk_inner_napi_test/
Dprint_service_proxy_test.cpp70 const std::vector<uint32_t> &fdList, std::string &taskId) { in __anonef490dd60102() argument
75 EXPECT_EQ(testFdList.size(), fdList.size()); in __anonef490dd60102()
77 EXPECT_NE(testFdList[index], fdList[index]); in __anonef490dd60102()
110 const std::vector<uint32_t> &fdList, std::string &taskId) { in __anonef490dd60302() argument
115 EXPECT_EQ(testFdList.size(), fdList.size()); in __anonef490dd60302()
117 EXPECT_EQ(testFdList[index], fdList[index]); in __anonef490dd60302()
/base/print/print_fwk/interfaces/kits/jskits/
D@ohos.print.d.ts129 fdList: Array<number>; // document fd list to be printed property

12