Home
last modified time | relevance | path

Searched refs:AddNew (Results 1 – 25 of 53) sorted by relevance

123

/external/pdfium/core/fpdfapi/parser/
Dfpdf_parser_decode_unittest.cpp23 decoders->AddNew<CPDF_Name>("FlateEncode"); in TEST()
29 decoders->AddNew<CPDF_Name>("FooBar"); in TEST()
35 decoders->AddNew<CPDF_Name>("AHx"); in TEST()
36 decoders->AddNew<CPDF_Name>("LZWDecode"); in TEST()
42 decoders->AddNew<CPDF_Name>("ASCII85Decode"); in TEST()
43 decoders->AddNew<CPDF_Name>("ASCII85Decode"); in TEST()
49 decoders->AddNew<CPDF_Name>("ASCII85Decode"); in TEST()
50 decoders->AddNew<CPDF_Name>("A85"); in TEST()
51 decoders->AddNew<CPDF_Name>("RunLengthDecode"); in TEST()
52 decoders->AddNew<CPDF_Name>("FlateDecode"); in TEST()
[all …]
Dcpdf_document_unittest.cpp58 zeroToTwo->AddNew<CPDF_Reference>( in CPDF_TestDocumentForPages()
60 zeroToTwo->AddNew<CPDF_Reference>( in CPDF_TestDocumentForPages()
62 zeroToTwo->AddNew<CPDF_Reference>( in CPDF_TestDocumentForPages()
68 zeroToThree->AddNew<CPDF_Reference>(this, branch1->GetObjNum()); in CPDF_TestDocumentForPages()
69 zeroToThree->AddNew<CPDF_Reference>( in CPDF_TestDocumentForPages()
75 fourFive->AddNew<CPDF_Reference>( in CPDF_TestDocumentForPages()
77 fourFive->AddNew<CPDF_Reference>( in CPDF_TestDocumentForPages()
82 justSix->AddNew<CPDF_Reference>( in CPDF_TestDocumentForPages()
87 allPages->AddNew<CPDF_Reference>(this, branch2->GetObjNum()); in CPDF_TestDocumentForPages()
88 allPages->AddNew<CPDF_Reference>(this, branch3->GetObjNum()); in CPDF_TestDocumentForPages()
[all …]
Dcpdf_dictionary.cpp261 pArray->AddNew<CPDF_Number>(rect.left); in SetRectFor()
262 pArray->AddNew<CPDF_Number>(rect.bottom); in SetRectFor()
263 pArray->AddNew<CPDF_Number>(rect.right); in SetRectFor()
264 pArray->AddNew<CPDF_Number>(rect.top); in SetRectFor()
270 pArray->AddNew<CPDF_Number>(matrix.a); in SetMatrixFor()
271 pArray->AddNew<CPDF_Number>(matrix.b); in SetMatrixFor()
272 pArray->AddNew<CPDF_Number>(matrix.c); in SetMatrixFor()
273 pArray->AddNew<CPDF_Number>(matrix.d); in SetMatrixFor()
274 pArray->AddNew<CPDF_Number>(matrix.e); in SetMatrixFor()
275 pArray->AddNew<CPDF_Number>(matrix.f); in SetMatrixFor()
Dcpdf_array_unittest.cpp18 arr->AddNew<CPDF_Boolean>(true); in TEST()
19 arr->AddNew<CPDF_Boolean>(false); in TEST()
20 arr->AddNew<CPDF_Number>(100); in TEST()
21 arr->AddNew<CPDF_Number>(0); in TEST()
41 arr->AddNew<CPDF_Number>(elems[i]); in TEST()
60 arr->AddNew<CPDF_Number>(elems[i]); in TEST()
71 arr->AddNew<CPDF_Number>(elems[i]); in TEST()
Dcpdf_object_unittest.cpp421 arr->AddNew<CPDF_Number>(elems[i][j]); in TEST()
441 arr->AddNew<CPDF_Number>(elems[i][j]); in TEST()
556 vals[i] = arr->AddNew<CPDF_Array>(); in TEST()
578 vals[i] = arr->AddNew<CPDF_Dictionary>(); in TEST()
618 arr->AddNew<CPDF_Stream>(std::move(data), data_size, vals[i]); in TEST()
647 arr_val->AddNew<CPDF_Number>(1); in TEST()
648 arr_val->AddNew<CPDF_Number>(2); in TEST()
699 arr->AddNew<CPDF_Number>(vals[i]); in TEST()
710 arr->AddNew<CPDF_Number>(vals[i]); in TEST()
724 string_array->AddNew<CPDF_String>(val, false); in TEST()
[all …]
Dcpdf_object_walker_unittest.cpp106 root_array->AddNew<CPDF_Null>(); in TEST()
107 root_array->AddNew<CPDF_Null>(); in TEST()
Dcpdf_array.h64 typename std::enable_if<!CanInternStrings<T>::value, T*>::type AddNew( in AddNew() function
70 typename std::enable_if<CanInternStrings<T>::value, T*>::type AddNew( in AddNew() function
/external/pdfium/core/fpdfapi/render/
Dcpdf_docrenderdata_unittest.cpp78 domain_array->AddNew<CPDF_Number>(0); in CreateType0FunctionStream()
79 domain_array->AddNew<CPDF_Number>(1); in CreateType0FunctionStream()
82 range_array->AddNew<CPDF_Number>(0); in CreateType0FunctionStream()
83 range_array->AddNew<CPDF_Number>(0.5f); in CreateType0FunctionStream()
86 size_array->AddNew<CPDF_Number>(4); in CreateType0FunctionStream()
104 domain_array->AddNew<CPDF_Number>(0); in CreateType2FunctionDict()
105 domain_array->AddNew<CPDF_Number>(1); in CreateType2FunctionDict()
108 c0_array->AddNew<CPDF_Number>(0.1f); in CreateType2FunctionDict()
109 c0_array->AddNew<CPDF_Number>(0.2f); in CreateType2FunctionDict()
110 c0_array->AddNew<CPDF_Number>(0.8f); in CreateType2FunctionDict()
[all …]
/external/pdfium/core/fpdfapi/page/
Dcpdf_docpagedata.cpp52 pWidthArray->AddNew<CPDF_Number>(first + static_cast<int>(widths.size()) - in InsertWidthArrayImpl()
54 pWidthArray->AddNew<CPDF_Number>(widths[0]); in InsertWidthArrayImpl()
57 CPDF_Array* pWidthArray1 = pWidthArray->AddNew<CPDF_Array>(); in InsertWidthArrayImpl()
59 pWidthArray1->AddNew<CPDF_Number>(w); in InsertWidthArrayImpl()
476 pWidths->AddNew<CPDF_Number>(char_width); in AddFont()
484 pWidths->AddNew<CPDF_Number>(char_width); in AddFont()
493 pWidths->AddNew<CPDF_Number>(char_width); in AddFont()
510 pBBox->AddNew<CPDF_Number>(bbox.left); in AddFont()
511 pBBox->AddNew<CPDF_Number>(bbox.bottom); in AddFont()
512 pBBox->AddNew<CPDF_Number>(bbox.right); in AddFont()
[all …]
Dcpdf_image.cpp108 pDecode->AddNew<CPDF_Number>(1); in InitJPEG()
109 pDecode->AddNew<CPDF_Number>(0); in InitJPEG()
197 pArray->AddNew<CPDF_Number>(1); in SetImage()
198 pArray->AddNew<CPDF_Number>(0); in SetImage()
202 pCS->AddNew<CPDF_Name>("Indexed"); in SetImage()
203 pCS->AddNew<CPDF_Name>("DeviceRGB"); in SetImage()
204 pCS->AddNew<CPDF_Number>(1); in SetImage()
217 pCS->AddNew<CPDF_String>(ct, true); in SetImage()
226 pCS->AddNew<CPDF_Name>("Indexed"); in SetImage()
227 pCS->AddNew<CPDF_Name>("DeviceRGB"); in SetImage()
[all …]
/external/pdfium/core/fpdfdoc/
Dcpdf_dest_unittest.cpp24 array->AddNew<CPDF_Number>(0); // Page Index. in TEST()
25 array->AddNew<CPDF_Name>("XYZ"); in TEST()
26 array->AddNew<CPDF_Number>(4); // X in TEST()
36 array->AddNew<CPDF_Number>(5); // Y in TEST()
37 array->AddNew<CPDF_Number>(6); // Zoom. in TEST()
Dcpdf_nametree_unittest.cpp16 pNames->AddNew<CPDF_String>(key, false); in AddNameKeyValue()
17 pNames->AddNew<CPDF_Number>(value); in AddNameKeyValue()
32 pLimits->AddNew<CPDF_String>(least, false); in AddLimitsArray()
33 pLimits->AddNew<CPDF_String>(greatest, false); in AddLimitsArray()
47 CPDF_Dictionary* pKid1 = pKids->AddNew<CPDF_Dictionary>(); in FillNameTreeDict()
52 CPDF_Dictionary* pKid2 = pKids->AddNew<CPDF_Dictionary>(); in FillNameTreeDict()
53 CPDF_Dictionary* pKid3 = pKids->AddNew<CPDF_Dictionary>(); in FillNameTreeDict()
57 CPDF_Dictionary* pKid4 = pKids->AddNew<CPDF_Dictionary>(); in FillNameTreeDict()
58 CPDF_Dictionary* pKid5 = pKids->AddNew<CPDF_Dictionary>(); in FillNameTreeDict()
88 pNames->AddNew<CPDF_String>(ByteString(buf), true); in TEST()
[all …]
Dcpdf_annot_unittest.cpp21 array->AddNew<CPDF_Number>(point); in CreateQuadPointArrayFromVector()
127 array->AddNew<CPDF_Number>(0); in TEST()
131 array->AddNew<CPDF_Number>(0); in TEST()
135 array->AddNew<CPDF_Number>(0); in TEST()
/external/pigweed/pw_kvs/
Dentry_cache_test.cc48 TEST_F(EmptyEntryCache, AddNew) { in TEST_F() argument
49 EntryMetadata metadata = entries_.AddNew(kDescriptor, 5); in TEST_F()
59 EntryMetadata metadata = entries_.AddNew(kDescriptor, 100); in TEST_F()
70 EntryMetadata metadata = entries_.AddNew(kDescriptor, 100); in TEST_F()
170 entries_.AddNew(kDescriptor, 1); in TEST_F()
182 entries_.AddNew(kDescriptor, 99); in TEST_F()
190 entries_.AddNew(kDescriptor, 99); in TEST_F()
265 auto entry = entries_.AddNew(kDescriptor, address); in InitializedEntryCache()
271 entries_.AddNew({.key_hash = Hash(kCollision1), in InitializedEntryCache()
277 entries_.AddNew({.key_hash = Hash("delorted"), in InitializedEntryCache()
Dentry_cache.cc120 EntryMetadata EntryCache::AddNew(const KeyDescriptor& descriptor, in AddNew() function in pw::kvs::internal::EntryCache
144 AddNew(descriptor, address); in AddNewOrUpdateExisting()
/external/pdfium/fpdfsdk/
Dfpdf_edittext.cpp296 widthsArray->AddNew<CPDF_Number>(static_cast<int>(width)); in LoadSimpleFont()
303 widthsArray->AddNew<CPDF_Number>(0); in LoadSimpleFont()
384 oneW->AddNew<CPDF_Number>(w); in LoadCompositeFont()
385 widthsArray->AddNew<CPDF_Number>(ch); in LoadCompositeFont()
395 widthsArray->AddNew<CPDF_Number>(ch); in LoadCompositeFont()
406 widthsArray->AddNew<CPDF_Number>(ch); in LoadCompositeFont()
407 widthsArray->AddNew<CPDF_Number>(w); in LoadCompositeFont()
412 widthsArray->AddNew<CPDF_Number>(ch); in LoadCompositeFont()
414 curWidthArray->AddNew<CPDF_Number>(w); in LoadCompositeFont()
415 curWidthArray->AddNew<CPDF_Number>(next_w); in LoadCompositeFont()
[all …]
Dfpdf_doc_unittest.cpp220 array->AddNew<CPDF_Number>(0); // Page Index. in TEST_F()
221 array->AddNew<CPDF_Name>("XYZ"); in TEST_F()
222 array->AddNew<CPDF_Number>(4); // X in TEST_F()
223 array->AddNew<CPDF_Number>(5); // Y in TEST_F()
224 array->AddNew<CPDF_Number>(6); // Zoom. in TEST_F()
Dfpdf_transformpage.cpp246 pContentArray->AddNew<CPDF_Reference>(pDoc, pEndStream->GetObjNum()); in FPDFPage_TransFormWithClip()
249 pContentArray->AddNew<CPDF_Reference>(pDoc, pStream->GetObjNum()); in FPDFPage_TransFormWithClip()
250 pContentArray->AddNew<CPDF_Reference>(pDoc, pContentObj->GetObjNum()); in FPDFPage_TransFormWithClip()
251 pContentArray->AddNew<CPDF_Reference>(pDoc, pEndStream->GetObjNum()); in FPDFPage_TransFormWithClip()
420 pContentArray->AddNew<CPDF_Reference>(pDoc, pStream->GetObjNum()); in FPDFPage_InsertClipPath()
421 pContentArray->AddNew<CPDF_Reference>(pDoc, pContentObj->GetObjNum()); in FPDFPage_InsertClipPath()
Dfpdf_annot.cpp192 array->AddNew<CPDF_Number>(quad_points->x1); in AppendQuadPoints()
193 array->AddNew<CPDF_Number>(quad_points->y1); in AppendQuadPoints()
194 array->AddNew<CPDF_Number>(quad_points->x2); in AppendQuadPoints()
195 array->AddNew<CPDF_Number>(quad_points->y2); in AppendQuadPoints()
196 array->AddNew<CPDF_Number>(quad_points->x3); in AppendQuadPoints()
197 array->AddNew<CPDF_Number>(quad_points->y3); in AppendQuadPoints()
198 array->AddNew<CPDF_Number>(quad_points->x4); in AppendQuadPoints()
199 array->AddNew<CPDF_Number>(quad_points->y4); in AppendQuadPoints()
564 pColor->AddNew<CPDF_Number>(R / 255.f); in FPDFAnnot_SetColor()
565 pColor->AddNew<CPDF_Number>(G / 255.f); in FPDFAnnot_SetColor()
[all …]
Dfpdf_editpage.cpp658 pRectArray->AddNew<CPDF_Number>(rect.left); in FPDFPage_TransformAnnots()
659 pRectArray->AddNew<CPDF_Number>(rect.bottom); in FPDFPage_TransformAnnots()
660 pRectArray->AddNew<CPDF_Number>(rect.right); in FPDFPage_TransformAnnots()
661 pRectArray->AddNew<CPDF_Number>(rect.top); in FPDFPage_TransformAnnots()
/external/pdfium/core/fpdfapi/edit/
Dcpdf_pagecontentmanager.cpp70 new_contents_array->AddNew<CPDF_Reference>(doc_.Get(), in AddStream()
72 new_contents_array->AddNew<CPDF_Reference>(doc_.Get(), in AddStream()
85 contents_array_->AddNew<CPDF_Reference>(doc_.Get(), in AddStream()
/external/pdfium/testing/fuzzers/
Dpdf_hint_table_fuzzer.cc79 hint_info->AddNew<CPDF_Number>(GetData(&data32, &data, &size)); in LLVMFuzzerTestOneInput()
81 hint_info->AddNew<CPDF_Number>(GetData(&data32, &data, &size)); in LLVMFuzzerTestOneInput()
/external/lzma/CPP/7zip/Archive/Common/
DCoderMixer2.cpp330 CCoderST &c2 = _coders.AddNew(); in AddCoder()
457 _binderStreams.AddNew(); in GetInStream()
562 _binderStreams.AddNew(); in GetOutStream()
922 RINOK(_streamBinders.AddNew().CreateEvents()); in SetBindInfo()
932 CCoderMT &c2 = _coders.AddNew(); in AddCoder()
990 coderInfo.InStreams.AddNew(); in Init()
994 coderInfo.OutStreams.AddNew(); in Init()
/external/lzma/CPP/7zip/Common/
DUniqBlocks.cpp37 Bufs.AddNew().CopyFrom(data, size); in AddUniq()
/external/pdfium/core/fpdfapi/font/
Dcpdf_fontencoding.cpp1718 pDiff->AddNew<CPDF_Number>(static_cast<int>(i)); in Realize()
1719 pDiff->AddNew<CPDF_Name>(PDF_AdobeNameFromUnicode(m_Unicodes[i])); in Realize()

123