Home
last modified time | relevance | path

Searched refs:pageSize (Results 1 – 16 of 16) sorted by relevance

/base/hiviewdfx/hiview/base/event_store/utility/writer/
Dsys_event_doc_writer.cpp84 uint32_t pageSize = 0; in Write() local
85 if (int ret = reader.ReadPageSize(pageSize); ret != DOC_STORE_SUCCESS) { in Write()
91 if (pageSize == 0 || pageSize < contentSize) { in Write()
92 …HIVIEW_LOGD("the current page is full, page=%{public}u, content=%{public}u", pageSize, contentSize… in Write()
97 if (auto remainSize = GetCurrPageRemainSize(fileSize, pageSize); remainSize < contentSize) { in Write()
105 uint32_t SysEventDocWriter::GetCurrPageRemainSize(int fileSize, uint32_t pageSize) in GetCurrPageRemainSize() argument
107 return (pageSize - ((static_cast<uint32_t>(fileSize) - HEADER_SIZE) % pageSize)); in GetCurrPageRemainSize()
146 uint32_t pageSize = EventStoreConfig::GetInstance().GetPageSize(sysEvent->eventType_); in WriteHeader() local
147 if (pageSize == 0) { in WriteHeader()
151 pageSize = contentSize > (pageSize * NUM_OF_BYTES_IN_KB) ? 0 : pageSize; in WriteHeader()
[all …]
/base/print/print_fwk/frameworks/helper/src/
Dprint_page_size_helper.cpp26 napi_value PrintPageSizeHelper::MakeJsObject(napi_env env, const PrintPageSize &pageSize) in MakeJsObject() argument
31 NapiPrintUtils::SetStringPropertyUtf8(env, jsObj, PARAM_PAGESIZE_ID, pageSize.GetId()); in MakeJsObject()
32 NapiPrintUtils::SetStringPropertyUtf8(env, jsObj, PARAM_PAGESIZE_NAME, pageSize.GetName()); in MakeJsObject()
33 NapiPrintUtils::SetUint32Property(env, jsObj, PARAM_PAGESIZE_WIDTH, pageSize.GetWidth()); in MakeJsObject()
34 NapiPrintUtils::SetUint32Property(env, jsObj, PARAM_PAGESIZE_HEIGHT, pageSize.GetHeight()); in MakeJsObject()
Dprint_job_helper.cpp227 PrintPageSize pageSize; in CreatePageSize() local
228 job.GetPageSize(pageSize); in CreatePageSize()
229 napi_value jsPageSize = PrintPageSizeHelper::MakeJsObject(env, pageSize); in CreatePageSize()
/base/print/print_fwk/frameworks/helper/include/
Dprint_page_size_helper.h26 static napi_value MakeJsObject(napi_env env, const PrintPageSize &pageSize);
/base/print/print_fwk/test/unittest/fwk_inner_napi_test/
Dprint_job_test.cpp282 OHOS::Print::PrintPageSize pageSize, getPageSize; variable
283 pageSize.SetId("pgid-1234");
284 job.SetPageSize(pageSize);
443 OHOS::Print::PrintPageSize pageSize; variable
461 OHOS::Print::PrintPageSize pageSize; variable
Dprint_page_size_test.cpp62 auto pageSize = OHOS::Print::PrintPageSize::GetPageSize(ISO_A3); variable
63 EXPECT_EQ((uint32_t)0, pageSize.GetWidth());
/base/hiviewdfx/hiview/base/event_store/config/src/
Devent_store_config.cpp64 .pageSize = ParseUint32(node, KEY_PAGE_SIZE), in Init()
96 return Contain(eventType) ? configMap_[eventType].pageSize : 0; in GetPageSize()
/base/hiviewdfx/hiview/base/event_store/config/include/
Devent_store_config.h40 uint32_t pageSize; member
/base/hiviewdfx/hiview/base/event_store/utility/writer/include/
Dsys_event_doc_writer.h38 uint32_t GetCurrPageRemainSize(int fileSize, uint32_t pageSize);
/base/hiviewdfx/hiview/base/event_store/include/
Dbase_def.h77 uint8_t pageSize = 0; member
/base/hiviewdfx/hiview/base/event_store/utility/reader/
Dsys_event_doc_reader.cpp120 pageSize_ = header.pageSize * NUM_OF_BYTES_IN_KB; in Read()
221 int SysEventDocReader::ReadPageSize(uint32_t& pageSize) in ReadPageSize() argument
227 pageSize = header.pageSize * NUM_OF_BYTES_IN_KB; in ReadPageSize()
/base/print/print_fwk/frameworks/innerkitsimpl/src/
Dprint_job.cpp138 void PrintJob::SetPageSize(const PrintPageSize &pageSize) in SetPageSize() argument
140 pageSize_ = pageSize; in SetPageSize()
238 void PrintJob::GetPageSize(PrintPageSize &pageSize) const in GetPageSize()
240 pageSize = pageSize_; in GetPageSize()
/base/hiviewdfx/hiview/base/event_store/utility/reader/include/
Dsys_event_doc_reader.h33 int ReadPageSize(uint32_t& pageSize);
/base/print/print_fwk/interfaces/kits/jskits/
D@ohos.print.d.ts112 pageSize: Array<PrintPageSize>; // the page size list supported by the printer property
136 pageSize: PrintPageSize; // the selected page size property
/base/print/print_fwk/frameworks/innerkitsimpl/include/
Dprint_job.h57 void SetPageSize(const PrintPageSize &pageSize);
/base/print/print_fwk/services/src/
Dprint_cups_client.cpp675 PrintPageSize pageSize; in GetMedieSize() local
676 jobInfo.GetPageSize(pageSize); in GetMedieSize()
677 return pageSize.GetName(); in GetMedieSize()