Home
last modified time | relevance | path

Searched refs:FX_Alloc (Results 1 – 25 of 76) sorted by relevance

1234

/external/pdfium/core/fxcrt/
Dfx_memory_unittest.cpp24 EXPECT_DEATH_IF_SUPPORTED((void)FX_Alloc(int, kMaxIntAlloc), ""); in TEST()
26 int* ptr = FX_Alloc(int, 1); in TEST()
36 EXPECT_DEATH_IF_SUPPORTED(ptr = FX_Alloc(int, kOverflowIntAlloc), "") << ptr; in TEST()
38 ptr = FX_Alloc(int, 1); in TEST()
56 int* ptr = FX_Alloc(int, 1); in TEST()
68 ptr = FX_Alloc(int, 1); in TEST()
Dcfx_blockbuffer.cpp33 m_BlockArray.emplace_back(FX_Alloc(wchar_t, kAllocStep)); in GetAvailableBlock()
42 m_BlockArray.emplace_back(FX_Alloc(wchar_t, kAllocStep)); in InitBuffer()
53 m_BlockArray.emplace_back(FX_Alloc(wchar_t, kAllocStep)); in SetTextChar()
Dcfx_memorystream.cpp119 m_Blocks.push_back(FX_Alloc(uint8_t, m_nTotalSize)); in WriteBlock()
155 FX_Alloc(uint8_t, std::max(nInitSize, static_cast<size_t>(4096)))); in EstimateSize()
195 m_Blocks[iCount++] = FX_Alloc(uint8_t, m_nGrowSize); in ExpandBlocks()
Dcfx_fixedbufgrow.h19 m_pGrowData.reset(FX_Alloc(DataType, data_size)); in CFX_FixedBufGrow()
Dcfx_binarybuf.cpp60 : FX_Alloc(uint8_t, m_AllocSize)); in ExpandBuf()
/external/pdfium/fxbarcode/common/
DBC_CommonByteArray.cpp35 m_bytes = FX_Alloc(uint8_t, size); in CBC_CommonByteArray()
41 m_bytes = FX_Alloc(uint8_t, size); in CBC_CommonByteArray()
70 uint8_t* newArray = FX_Alloc(uint8_t, capacity); in Reserve()
86 m_bytes = FX_Alloc(uint8_t, count); in Set()
95 m_bytes = FX_Alloc(uint8_t, count); in Set()
/external/pdfium/core/fxcodec/jbig2/
DJBig2_BitStream_unittest.cpp15 std::unique_ptr<uint8_t, FxFreeDeleter> data(FX_Alloc(uint8_t, 1)); in TEST()
40 std::unique_ptr<uint8_t, FxFreeDeleter> data(FX_Alloc(uint8_t, 1)); in TEST()
69 std::unique_ptr<uint8_t, FxFreeDeleter> data(FX_Alloc(uint8_t, 1)); in TEST()
85 std::unique_ptr<uint8_t, FxFreeDeleter> data(FX_Alloc(uint8_t, 1)); in TEST()
102 std::unique_ptr<uint8_t, FxFreeDeleter> data(FX_Alloc(uint8_t, 5)); in TEST()
/external/pdfium/third_party/agg23/
Dagg_array.h114 m_array = FX_Alloc(T, full_cap); in capacity()
129 T* data = FX_Alloc(T, new_size); in resize()
139 m_size(0), m_capacity(cap + extra_tail), m_array(FX_Alloc(T, m_capacity)) {} in pod_array()
143 m_array(v.m_capacity ? FX_Alloc(T, v.m_capacity) : 0) in pod_array()
316 m_blocks(v.m_max_blocks ? FX_Alloc(T*, v.m_max_blocks) : 0), in pod_deque()
321 m_blocks[i] = FX_Alloc(T, block_size); in pod_deque()
342 T** new_blocks = FX_Alloc(T*, m_max_blocks + m_block_ptr_inc); in allocate_block()
350 m_blocks[nb] = FX_Alloc(T, block_size); in allocate_block()
472 int8u** new_blocks = FX_Alloc(int8u*, m_max_blocks + m_block_ptr_inc); in allocate_block()
480 m_blocks[m_num_blocks] = m_buf_ptr = FX_Alloc(int8u, size); in allocate_block()
Dagg_scanline_u.h61 m_covers = FX_Alloc( cover_type , max_len); in reset()
62 m_spans = FX_Alloc( span , max_len); in reset()
Dagg_path_storage.cpp70 FX_Alloc( float, block_size * 2 + in allocate_block()
Dagg_rendering_buffer.h75 m_rows = FX_Alloc(int8u*, m_max_height = height); in attach()
/external/pdfium/core/fxcodec/codec/
Dfx_codec_flate.cpp60 z_stream* p = FX_Alloc(z_stream, 1); in FlateInit()
532 FX_Alloc(uint8_t, guess_size + 1)); in FlateUncompress()
546 cur_buf = FX_Alloc(uint8_t, buf_size + 1); in FlateUncompress()
558 uint8_t* result_buf = FX_Alloc(uint8_t, dest_size); in FlateUncompress()
652 m_pScanline = FX_Alloc(uint8_t, m_Pitch); in Create()
673 m_pLastLine = FX_Alloc(uint8_t, m_PredictPitch); in Create()
674 m_pPredictRaw = FX_Alloc(uint8_t, m_PredictPitch + 1); in Create()
675 m_pPredictBuffer = FX_Alloc(uint8_t, m_PredictPitch); in Create()
792 *dest_buf = FX_Alloc(uint8_t, *dest_size + 1); in FlateOrLZWDecode()
818 *dest_buf = FX_Alloc(uint8_t, *dest_size); in Encode()
[all …]
Dfx_codec.cpp1396 *dest_buf = FX_Alloc(uint8_t, 3); in RunLengthEncode()
1408 *dest_buf = FX_Alloc(uint8_t, est_size); in RunLengthEncode()
1483 *dest_buf = FX_Alloc(uint8_t, est_size); in A85Encode()
1650 m_pScanline = FX_Alloc(uint8_t, m_Pitch); in Create()
/external/pdfium/core/fxge/
Dcfx_graphstatedata.cpp36 m_DashArray = FX_Alloc(float, m_DashCount); in Copy()
51 m_DashArray = FX_Alloc(float, count); in SetDashCount()
/external/pdfium/core/fpdfapi/parser/
Dcpdf_stream_acc.cpp40 pSrcData = m_pSrcData = FX_Alloc(uint8_t, dwSrcSize); in LoadAllData()
92 std::unique_ptr<uint8_t, FxFreeDeleter> p(FX_Alloc(uint8_t, m_dwSize)); in DetachData()
Dcpdf_crypto_handler.cpp125 AESCryptContext* pContext = FX_Alloc(AESCryptContext, 1); in CryptStart()
151 AESCryptContext* pContext = FX_Alloc(AESCryptContext, 1); in CryptStart()
163 CRYPT_rc4_context* pContext = FX_Alloc(CRYPT_rc4_context, 1); in CryptStart()
411 m_pAESContext.reset(FX_Alloc(CRYPT_aes_context, 1)); in CPDF_CryptoHandler()
Dfpdf_parser_decode.cpp113 *dest_buf = FX_Alloc(uint8_t, zcount * 4 + space_for_non_zeroes); in A85Decode()
173 *dest_buf = FX_Alloc(uint8_t, i / 2 + 1); in HexDecode()
225 *dest_buf = FX_Alloc(uint8_t, *dest_size); in RunLengthDecode()
/external/pdfium/fpdfsdk/
Dfpdf_sysfontinfo.cpp84 char* buffer = FX_Alloc(char, size); in GetFaceName()
204 FX_Alloc(FPDF_SYSFONTINFO_DEFAULT, 1); in FPDF_GetDefaultSystemFontInfo()
/external/pdfium/core/fxge/android/
Dcfpf_skiapathfont.cpp24 m_pPath = FX_Alloc(char, iSize + 1); in SetPath()
Dcfpf_skiafontdescriptor.cpp29 m_pFamily = FX_Alloc(char, iSize + 1); in SetFamily()
/external/pdfium/core/fpdfapi/edit/
Dcpdf_encryptor.cpp24 m_pData = FX_Alloc(uint8_t, m_dwSize); in CPDF_Encryptor()
/external/pdfium/core/fxge/dib/
Dcfx_imagestretcher.cpp163 m_pScanline.reset(FX_Alloc(uint8_t, (size / 8 + 3) / 4 * 4)); in StartQuickStretch()
165 m_pMaskScanline.reset(FX_Alloc(uint8_t, (m_ClipRect.Width() + 3) / 4 * 4)); in StartQuickStretch()
/external/pdfium/core/fxcrt/css/
Dcfx_csstextbuf.cpp46 m_pBuffer = FX_Alloc(wchar_t, iDesiredSize); in ExpandBuf()
/external/pdfium/core/fpdfdoc/
Dcpdf_filespec_unittest.cpp200 std::unique_ptr<uint8_t, FxFreeDeleter> buf(FX_Alloc(uint8_t, buf_len)); in TEST()
237 std::unique_ptr<uint8_t, FxFreeDeleter> buf(FX_Alloc(uint8_t, 6)); in TEST()
/external/pdfium/core/fpdfapi/page/
Dcpdf_stitchfunc.cpp61 m_pBounds = FX_Alloc(float, nSubs + 1); in v_Init()

1234