Home
last modified time | relevance | path

Searched refs:pArray (Results 1 – 25 of 83) sorted by relevance

1234

/external/pdfium/core/fpdfapi/page/
Dcpdf_occontext.cpp16 int32_t FindGroup(const CPDF_Array* pArray, const CPDF_Dictionary* pGroupDict) { in FindGroup() argument
17 if (!pArray || !pGroupDict) in FindGroup()
20 for (size_t i = 0; i < pArray->size(); i++) { in FindGroup()
21 if (pArray->GetDictAt(i) == pGroupDict) in FindGroup()
35 if (const CPDF_Array* pArray = pIntent->AsArray()) { in HasIntent() local
36 for (size_t i = 0; i < pArray->size(); i++) { in HasIntent()
37 bsIntent = pArray->GetStringAt(i); in HasIntent()
110 CPDF_Array* pArray = pConfig->GetArrayFor("ON"); in LoadOCGStateFromConfig() local
111 if (pArray) { in LoadOCGStateFromConfig()
112 if (FindGroup(pArray, pOCGDict) >= 0) in LoadOCGStateFromConfig()
[all …]
Dcpdf_allstates.cpp39 void CPDF_AllStates::SetLineDash(const CPDF_Array* pArray, in SetLineDash() argument
42 std::vector<float> dashes = ReadArrayElementsToVector(pArray, pArray->size()); in SetLineDash()
77 CPDF_Array* pArray = pDash->GetArrayAt(0); in ProcessExtGS() local
78 if (!pArray) in ProcessExtGS()
81 SetLineDash(pArray, pDash->GetNumberAt(1), 1.0f); in ProcessExtGS()
105 CPDF_Array* pArray = pObject->AsArray(); in ProcessExtGS() local
106 m_GeneralState.SetBlendMode(pArray ? pArray->GetStringAt(0) in ProcessExtGS()
Dcpdf_colorspace.cpp118 const CPDF_Array* pArray,
153 const CPDF_Array* pArray,
190 const CPDF_Array* pArray,
221 const CPDF_Array* pArray,
254 const CPDF_Array* pArray,
282 const CPDF_Array* pArray,
309 const CPDF_Array* pArray,
516 const CPDF_Array* pArray = pObj->AsArray(); in Load() local
517 if (!pArray || pArray->IsEmpty()) in Load()
520 const CPDF_Object* pFamilyObj = pArray->GetDirectObjectAt(0); in Load()
[all …]
Dcpdf_shadingpattern.cpp59 if (const CPDF_Array* pArray = pFunc->AsArray()) { in Load() local
60 m_pFunctions.resize(std::min<size_t>(pArray->size(), 4)); in Load()
62 m_pFunctions[i] = CPDF_Function::Load(pArray->GetDirectObjectAt(i)); in Load()
Dcpdf_contentparser.cpp46 CPDF_Array* pArray = pContent->AsArray(); in CPDF_ContentParser() local
47 if (pArray && HandlePageContentArray(pArray)) in CPDF_ContentParser()
239 bool CPDF_ContentParser::HandlePageContentArray(CPDF_Array* pArray) { in HandlePageContentArray() argument
240 m_nStreams = pArray->size(); in HandlePageContentArray()
Dcpdf_docpagedata.cpp303 const CPDF_Array* pArray = pCSObj->AsArray(); in GetColorSpaceInternal() local
304 if (!pArray || pArray->IsEmpty()) in GetColorSpaceInternal()
307 if (pArray->size() == 1) { in GetColorSpaceInternal()
308 return GetColorSpaceInternal(pArray->GetDirectObjectAt(0), pResources, in GetColorSpaceInternal()
317 CPDF_ColorSpace::Load(GetDocument(), pArray, pVisited); in GetColorSpaceInternal()
635 CPDF_Array* pArray = pEncodingDict->SetNewFor<CPDF_Array>("Differences"); in CalculateEncodingDict() local
636 pArray->AddNew<CPDF_Number>(128); in CalculateEncodingDict()
641 pArray->AddNew<CPDF_Name>(name.IsEmpty() ? ".notdef" : name); in CalculateEncodingDict()
709 CPDF_Array* pArray = pBaseDict->SetNewFor<CPDF_Array>("DescendantFonts"); in ProcessbCJK() local
710 pArray->AddNew<CPDF_Reference>(GetDocument(), pFontDict->GetObjNum()); in ProcessbCJK()
Dcpdf_patterncs.cpp23 const CPDF_Array* pArray, in v_Load() argument
25 const CPDF_Object* pBaseCS = pArray->GetDirectObjectAt(1); in v_Load()
/external/sl4a/Common/src/org/apache/commons/codec/binary/
DBase64Codec.java721 public byte[] decode(String pArray) { in decode() argument
722 return decode(StringUtils.getBytesUtf8(pArray)); in decode()
732 public byte[] decode(byte[] pArray) { in decode() argument
734 if (pArray == null || pArray.length == 0) { in decode()
735 return pArray; in decode()
737 long len = (pArray.length * 3) / 4; in decode()
740 decode(pArray, 0, pArray.length); in decode()
741 decode(pArray, 0, -1); // Notify decoder of EOF. in decode()
916 public String encodeToString(byte[] pArray) { in encodeToString() argument
917 return StringUtils.newStringUtf8(encode(pArray)); in encodeToString()
[all …]
/external/pdfium/core/fpdfdoc/
Dcpdf_formfield.cpp422 const CPDF_Array* pArray = pValue->AsArray(); in CountSelectedItems() local
423 return pArray ? pArray->size() : 0; in CountSelectedItems()
440 const CPDF_Array* pArray = pValue->AsArray(); in GetSelectedIndex() local
441 if (!pArray || index < 0) in GetSelectedIndex()
444 const CPDF_Object* elementValue = pArray->GetDirectObjectAt(index); in GetSelectedIndex()
497 const CPDF_Array* pArray = pValue->AsArray(); in IsItemSelected() local
498 if (!pArray) in IsItemSelected()
503 const CPDF_Object* pDirectObj = pArray->GetDirectObjectAt(i); in IsItemSelected()
548 CPDF_Array* pArray = m_pDict->SetNewFor<CPDF_Array>(pdfium::form_fields::kV); in SetItemSelectionSelected() local
551 pArray->AddNew<CPDF_String>(GetOptionValue(i)); in SetItemSelectionSelected()
[all …]
Dcpdf_action.cpp68 if (const CPDF_Array* pArray = pDest->AsArray()) in GetDest() local
69 return CPDF_Dest(pArray); in GetDest()
141 } else if (const CPDF_Array* pArray = pFields->AsArray()) { in GetAllFields() local
142 for (size_t i = 0; i < pArray->size(); ++i) { in GetAllFields()
143 const CPDF_Object* pObj = pArray->GetDirectObjectAt(i); in GetAllFields()
172 const CPDF_Array* pArray = pNext->AsArray(); in GetSubActionsCount() local
173 return pArray ? pArray->size() : 0; in GetSubActionsCount()
181 if (const CPDF_Array* pArray = ToArray(pNext)) in GetSubAction() local
182 return CPDF_Action(pArray->GetDictAt(iIndex)); in GetSubAction()
Dcpdf_annot.cpp211 CFX_FloatRect CPDF_Annot::RectFromQuadPointsArray(const CPDF_Array* pArray, in RectFromQuadPointsArray() argument
213 ASSERT(pArray); in RectFromQuadPointsArray()
214 ASSERT(nIndex < pArray->size() / 8); in RectFromQuadPointsArray()
228 pArray->GetNumberAt(4 + nIndex * 8), pArray->GetNumberAt(5 + nIndex * 8), in RectFromQuadPointsArray()
229 pArray->GetNumberAt(2 + nIndex * 8), pArray->GetNumberAt(3 + nIndex * 8)); in RectFromQuadPointsArray()
236 const CPDF_Array* pArray = pAnnotDict->GetArrayFor("QuadPoints"); in BoundingRectFromQuadPoints() local
237 size_t nQuadPointCount = pArray ? QuadPointCount(pArray) : 0; in BoundingRectFromQuadPoints()
241 ret = RectFromQuadPointsArray(pArray, 0); in BoundingRectFromQuadPoints()
243 CFX_FloatRect rect = RectFromQuadPointsArray(pArray, i); in BoundingRectFromQuadPoints()
252 const CPDF_Array* pArray = pAnnotDict->GetArrayFor("QuadPoints"); in RectFromQuadPoints() local
[all …]
Dcpdf_dest.cpp35 CPDF_Dest::CPDF_Dest(const CPDF_Array* pArray) : m_pArray(pArray) {} in CPDF_Dest() argument
62 const CPDF_Object* pArray = m_pArray->GetDirectObjectAt(1); in GetZoomMode() local
63 if (!pArray) in GetZoomMode()
66 ByteString mode = pArray->GetString(); in GetZoomMode()
Dcpdf_structelement.cpp82 if (const CPDF_Array* pArray = pKids->AsArray()) { in LoadKids() local
83 m_Kids.resize(pArray->size()); in LoadKids()
84 for (uint32_t i = 0; i < pArray->size(); i++) { in LoadKids()
85 const CPDF_Object* pKid = pArray->GetDirectObjectAt(i); in LoadKids()
Dcpvt_generateap.cpp617 CPDF_Array* pArray = pAnnotDict->GetArrayFor("QuadPoints"); in GenerateHighlightAP() local
618 if (pArray) { in GenerateHighlightAP()
619 size_t nQuadPointCount = CPDF_Annot::QuadPointCount(pArray); in GenerateHighlightAP()
724 CPDF_Array* pArray = pAnnotDict->GetArrayFor("QuadPoints"); in GenerateUnderlineAP() local
725 if (pArray) { in GenerateUnderlineAP()
728 size_t nQuadPointCount = CPDF_Annot::QuadPointCount(pArray); in GenerateUnderlineAP()
841 CPDF_Array* pArray = pAnnotDict->GetArrayFor("QuadPoints"); in GenerateSquigglyAP() local
842 if (pArray) { in GenerateSquigglyAP()
846 size_t nQuadPointCount = CPDF_Annot::QuadPointCount(pArray); in GenerateSquigglyAP()
891 CPDF_Array* pArray = pAnnotDict->GetArrayFor("QuadPoints"); in GenerateStrikeOutAP() local
[all …]
Dcpdf_link.cpp34 if (CPDF_Array* pArray = pDest->AsArray()) in GetDest() local
35 return CPDF_Dest(pArray); in GetDest()
/external/pdfium/fpdfsdk/
Dfpdf_save.cpp67 CPDF_Array* pArray = pXFA->AsArray(); in SaveXFADocumentData() local
68 if (!pArray) in SaveXFADocumentData()
71 int size = pArray->size(); in SaveXFADocumentData()
75 const CPDF_Object* pPDFObj = pArray->GetObjectAt(i); in SaveXFADocumentData()
87 CPDF_Object* pFormPDFObj = pArray->GetObjectAt(iFormIndex); in SaveXFADocumentData()
101 CPDF_Object* pDataSetsPDFObj = pArray->GetObjectAt(iDataSetsIndex); in SaveXFADocumentData()
126 int iLast = pArray->size() - 2; in SaveXFADocumentData()
127 pArray->InsertNewAt<CPDF_String>(iLast, "datasets", false); in SaveXFADocumentData()
128 pArray->InsertNewAt<CPDF_Reference>(iLast + 1, pPDFDocument, in SaveXFADocumentData()
146 int iLast = pArray->size() - 2; in SaveXFADocumentData()
[all …]
Dfpdf_transformpage.cpp51 CPDF_Array* pArray = page->GetDict()->GetArrayFor(key); in GetBoundingBox() local
52 if (!pArray) in GetBoundingBox()
55 *left = pArray->GetNumberAt(0); in GetBoundingBox()
56 *bottom = pArray->GetNumberAt(1); in GetBoundingBox()
57 *right = pArray->GetNumberAt(2); in GetBoundingBox()
58 *top = pArray->GetNumberAt(3); in GetBoundingBox()
416 if (CPDF_Array* pArray = ToArray(pContentObj)) { in FPDFPage_InsertClipPath() local
417 pArray->InsertNewAt<CPDF_Reference>(0, pDoc, pStream->GetObjNum()); in FPDFPage_InsertClipPath()
Dfpdf_flatten.cpp128 std::vector<float> pArray(nRects); in GetMinMaxValue() local
132 pArray[i] = array[i].left; in GetMinMaxValue()
136 pArray[i] = array[i].top; in GetMinMaxValue()
140 pArray[i] = array[i].right; in GetMinMaxValue()
144 pArray[i] = array[i].bottom; in GetMinMaxValue()
151 float fRet = pArray[0]; in GetMinMaxValue()
154 fRet = std::max(fRet, pArray[i]); in GetMinMaxValue()
157 fRet = std::min(fRet, pArray[i]); in GetMinMaxValue()
Dfpdf_doc.cpp373 const CPDF_Array* pArray = in FPDFLink_CountQuadPoints() local
375 return pArray ? static_cast<int>(pArray->size() / 8) : 0; in FPDFLink_CountQuadPoints()
389 const CPDF_Array* pArray = GetQuadPointsArrayFromDictionary(pLinkDict); in FPDFLink_GetQuadPoints() local
390 if (!pArray) in FPDFLink_GetQuadPoints()
393 return GetQuadPointsAtIndex(pArray, static_cast<size_t>(quad_index), in FPDFLink_GetQuadPoints()
/external/pdfium/core/fpdfapi/parser/
Dcpdf_dictionary.cpp181 const CPDF_Array* pArray = GetArrayFor(key); in GetRectFor() local
182 if (pArray) in GetRectFor()
183 rect = pArray->GetRect(); in GetRectFor()
189 const CPDF_Array* pArray = GetArrayFor(key); in GetMatrixFor() local
190 if (pArray) in GetMatrixFor()
191 matrix = pArray->GetMatrix(); in GetMatrixFor()
260 CPDF_Array* pArray = SetNewFor<CPDF_Array>(key); in SetRectFor() local
261 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()
[all …]
Dfpdf_parser_utility.cpp156 std::vector<float> ReadArrayElementsToVector(const CPDF_Array* pArray, in ReadArrayElementsToVector() argument
158 ASSERT(pArray); in ReadArrayElementsToVector()
159 ASSERT(pArray->size() >= nCount); in ReadArrayElementsToVector()
162 ret[i] = pArray->GetNumberAt(i); in ReadArrayElementsToVector()
/external/pdfium/core/fpdfapi/render/
Dcpdf_docrenderdata.cpp66 const CPDF_Array* pArray = pObj->AsArray(); in CreateTransferFunc() local
67 if (pArray) { in CreateTransferFunc()
68 if (pArray->size() < 3) in CreateTransferFunc()
72 pFuncs[2 - i] = CPDF_Function::Load(pArray->GetDirectObjectAt(i)); in CreateTransferFunc()
94 if (pArray) { in CreateTransferFunc()
Dcpdf_rendershading.cpp108 const CPDF_Array* pArray = pDict->GetArrayFor("Domain"); in DrawAxialShading() local
109 if (pArray) { in DrawAxialShading()
110 t_min = pArray->GetNumberAt(0); in DrawAxialShading()
111 t_max = pArray->GetNumberAt(1); in DrawAxialShading()
113 pArray = pDict->GetArrayFor("Extend"); in DrawAxialShading()
114 const bool bStartExtend = pArray && pArray->GetBooleanAt(0, false); in DrawAxialShading()
115 const bool bEndExtend = pArray && pArray->GetBooleanAt(1, false); in DrawAxialShading()
178 const CPDF_Array* pArray = pDict->GetArrayFor("Domain"); in DrawRadialShading() local
179 if (pArray) { in DrawRadialShading()
180 t_min = pArray->GetNumberAt(0); in DrawRadialShading()
[all …]
/external/pdfium/fxjs/
Dcfx_v8.cpp70 bool CFX_V8::PutArrayElement(v8::Local<v8::Array> pArray, in PutArrayElement() argument
74 if (pArray.IsEmpty()) in PutArrayElement()
76 return pArray->Set(m_pIsolate->GetCurrentContext(), index, pValue).IsJust(); in PutArrayElement()
79 v8::Local<v8::Value> CFX_V8::GetArrayElement(v8::Local<v8::Array> pArray, in GetArrayElement() argument
81 if (pArray.IsEmpty()) in GetArrayElement()
84 if (!pArray->Get(m_pIsolate->GetCurrentContext(), index).ToLocal(&val)) in GetArrayElement()
89 unsigned CFX_V8::GetArrayLength(v8::Local<v8::Array> pArray) { in GetArrayLength() argument
90 if (pArray.IsEmpty()) in GetArrayLength()
92 return pArray->Length(); in GetArrayLength()
Dcfx_v8.h44 unsigned GetArrayLength(v8::Local<v8::Array> pArray);
45 v8::Local<v8::Value> GetArrayElement(v8::Local<v8::Array> pArray,
47 bool PutArrayElement(v8::Local<v8::Array> pArray,

1234