/external/pdfium/core/fpdfapi/page/ |
D | cpdf_occontext.cpp | 25 if (const CPDF_Array* pArray = pIntent->AsArray()) { in HasIntent() local 26 for (size_t i = 0; i < pArray->size(); i++) { in HasIntent() 27 bsIntent = pArray->GetByteStringAt(i); in HasIntent() 102 RetainPtr<const CPDF_Array> pArray = pConfig->GetArrayFor("ON"); in LoadOCGStateFromConfig() local 103 if (pArray && pArray->Contains(pOCGDict)) in LoadOCGStateFromConfig() 106 pArray = pConfig->GetArrayFor("OFF"); in LoadOCGStateFromConfig() 107 if (pArray && pArray->Contains(pOCGDict)) in LoadOCGStateFromConfig() 110 pArray = pConfig->GetArrayFor("AS"); in LoadOCGStateFromConfig() 111 if (!pArray) in LoadOCGStateFromConfig() 115 for (size_t i = 0; i < pArray->size(); i++) { in LoadOCGStateFromConfig() [all …]
|
D | cpdf_allstates.cpp | 34 void CPDF_AllStates::SetLineDash(const CPDF_Array* pArray, float phase) { in SetLineDash() argument 35 std::vector<float> dashes = ReadArrayElementsToVector(pArray, pArray->size()); in SetLineDash() 68 RetainPtr<const CPDF_Array> pArray = pDash->GetArrayAt(0); in ProcessExtGS() local 69 if (!pArray) in ProcessExtGS() 72 SetLineDash(pArray.Get(), pDash->GetFloatAt(1)); in ProcessExtGS() 98 const CPDF_Array* pArray = pObject->AsArray(); in ProcessExtGS() local 99 mutable_general_state().SetBlendMode(pArray ? pArray->GetByteStringAt(0) in ProcessExtGS()
|
D | cpdf_colorspace.cpp | 131 const CPDF_Array* pArray, 165 const CPDF_Array* pArray, 199 const CPDF_Array* pArray, 228 const CPDF_Array* pArray, 262 const CPDF_Array* pArray, 285 const CPDF_Array* pArray, 524 const CPDF_Array* pArray = pObj->AsArray(); in Load() local 525 if (!pArray || pArray->IsEmpty()) in Load() 528 RetainPtr<const CPDF_Object> pFamilyObj = pArray->GetDirectObjectAt(0); in Load() 533 if (pArray->size() == 1) in Load() [all …]
|
D | cpdf_indexedcs.cpp | 32 const CPDF_Array* pArray, in v_Load() argument 34 if (pArray->size() < 4) { in v_Load() 38 RetainPtr<const CPDF_Object> pBaseObj = pArray->GetDirectObjectAt(1); in v_Load() 68 max_index_ = pArray->GetIntegerAt(2); in v_Load() 73 RetainPtr<const CPDF_Object> pTableObj = pArray->GetDirectObjectAt(3); in v_Load()
|
D | cpdf_function_unittest.cpp | 39 auto pArray = pDict->SetNewFor<CPDF_Array>("Domain"); in TEST() local 40 pArray->AppendNew<CPDF_Number>(0); in TEST() 41 pArray->AppendNew<CPDF_Number>(10); in TEST()
|
D | cpdf_shadingpattern.cpp | 64 if (const CPDF_Array* pArray = pFunc->AsArray()) { in Load() local 65 m_pFunctions.resize(std::min<size_t>(pArray->size(), 4)); in Load() 67 m_pFunctions[i] = CPDF_Function::Load(pArray->GetDirectObjectAt(i)); in Load()
|
D | cpdf_contentparser.cpp | 52 const CPDF_Array* pArray = pContent->AsArray(); in CPDF_ContentParser() local 53 if (pArray && HandlePageContentArray(pArray)) in CPDF_ContentParser() 267 bool CPDF_ContentParser::HandlePageContentArray(const CPDF_Array* pArray) { in HandlePageContentArray() argument 268 m_nStreams = fxcrt::CollectionSize<uint32_t>(*pArray); in HandlePageContentArray()
|
/external/sl4a/Common/src/org/apache/commons/codec/binary/ |
D | Base64Codec.java | 721 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/fpdfsdk/ |
D | fpdf_save.cpp | 61 CPDF_Array* pArray = pXFA->AsMutableArray(); in SaveXFADocumentData() local 62 if (!pArray) in SaveXFADocumentData() 65 int size = fxcrt::CollectionSize<int>(*pArray); in SaveXFADocumentData() 69 RetainPtr<const CPDF_Object> pPDFObj = pArray->GetObjectAt(i); in SaveXFADocumentData() 81 RetainPtr<CPDF_Object> pFormPDFObj = pArray->GetMutableObjectAt(iFormIndex); in SaveXFADocumentData() 96 pArray->GetMutableObjectAt(iDataSetsIndex); in SaveXFADocumentData() 121 int iLast = fxcrt::CollectionSize<int>(*pArray) - 2; in SaveXFADocumentData() 122 pArray->InsertNewAt<CPDF_String>(iLast, "datasets"); in SaveXFADocumentData() 123 pArray->InsertNewAt<CPDF_Reference>(iLast + 1, pPDFDocument, in SaveXFADocumentData() 141 int iLast = fxcrt::CollectionSize<int>(*pArray) - 2; in SaveXFADocumentData() [all …]
|
D | fpdf_transformpage.cpp | 53 RetainPtr<const CPDF_Array> pArray = page->GetDict()->GetArrayFor(key); in GetBoundingBox() local 54 if (!pArray) in GetBoundingBox() 57 *left = pArray->GetFloatAt(0); in GetBoundingBox() 58 *bottom = pArray->GetFloatAt(1); in GetBoundingBox() 59 *right = pArray->GetFloatAt(2); in GetBoundingBox() 60 *top = pArray->GetFloatAt(3); in GetBoundingBox() 410 RetainPtr<CPDF_Array> pArray = ToArray(pContentObj); in FPDFPage_InsertClipPath() local 411 if (pArray) { in FPDFPage_InsertClipPath() 412 pArray->InsertNewAt<CPDF_Reference>(0, pDoc, pStream->GetObjNum()); in FPDFPage_InsertClipPath()
|
D | fpdf_flatten.cpp | 139 std::vector<float> pArray(nRects); in GetMinMaxValue() local 143 pArray[i] = array[i].left; in GetMinMaxValue() 147 pArray[i] = array[i].top; in GetMinMaxValue() 151 pArray[i] = array[i].right; in GetMinMaxValue() 155 pArray[i] = array[i].bottom; in GetMinMaxValue() 159 float fRet = pArray[0]; in GetMinMaxValue() 162 fRet = std::max(fRet, pArray[i]); in GetMinMaxValue() 165 fRet = std::min(fRet, pArray[i]); in GetMinMaxValue()
|
/external/pdfium/core/fpdfapi/parser/ |
D | cpdf_dictionary.cpp | 242 const CPDF_Array* pArray = GetArrayForInternal(key); in GetRectFor() local 243 if (pArray) in GetRectFor() 244 return pArray->GetRect(); in GetRectFor() 249 const CPDF_Array* pArray = GetArrayForInternal(key); in GetMatrixFor() local 250 if (pArray) in GetMatrixFor() 251 return pArray->GetMatrix(); in GetMatrixFor() 326 auto pArray = SetNewFor<CPDF_Array>(key); in SetRectFor() local 327 pArray->AppendNew<CPDF_Number>(rect.left); in SetRectFor() 328 pArray->AppendNew<CPDF_Number>(rect.bottom); in SetRectFor() 329 pArray->AppendNew<CPDF_Number>(rect.right); in SetRectFor() [all …]
|
D | cpdf_array.cpp | 279 CPDF_ArrayLocker::CPDF_ArrayLocker(const CPDF_Array* pArray) in CPDF_ArrayLocker() argument 280 : m_pArray(pArray) { in CPDF_ArrayLocker() 284 CPDF_ArrayLocker::CPDF_ArrayLocker(RetainPtr<CPDF_Array> pArray) in CPDF_ArrayLocker() argument 285 : m_pArray(std::move(pArray)) { in CPDF_ArrayLocker() 289 CPDF_ArrayLocker::CPDF_ArrayLocker(RetainPtr<const CPDF_Array> pArray) in CPDF_ArrayLocker() argument 290 : m_pArray(std::move(pArray)) { in CPDF_ArrayLocker()
|
D | cpdf_indirect_object_holder_unittest.cpp | 85 auto pArray = mock_holder.NewIndirect<CPDF_Array>(); in TEST() local 87 mock_holder.DeleteIndirectObject(pArray->GetObjNum()); in TEST() 91 EXPECT_TRUE(pArray->IsArray()); in TEST()
|
D | fpdf_parser_utility.cpp | 146 std::vector<float> ReadArrayElementsToVector(const CPDF_Array* pArray, in ReadArrayElementsToVector() argument 148 DCHECK(pArray); in ReadArrayElementsToVector() 149 DCHECK(pArray->size() >= nCount); in ReadArrayElementsToVector() 152 ret[i] = pArray->GetFloatAt(i); in ReadArrayElementsToVector()
|
/external/pdfium/core/fpdfdoc/ |
D | cpdf_action.cpp | 154 const CPDF_Array* pArray = pFields->AsArray(); in GetAllFields() local 155 if (!pArray) in GetAllFields() 158 for (size_t i = 0; i < pArray->size(); ++i) { in GetAllFields() 159 RetainPtr<const CPDF_Object> pObj = pArray->GetDirectObjectAt(i); in GetAllFields() 187 const CPDF_Array* pArray = pNext->AsArray(); in GetSubActionsCount() local 188 return pArray ? pArray->size() : 0; in GetSubActionsCount() 199 if (const CPDF_Array* pArray = pNext->AsArray()) in GetSubAction() local 200 return CPDF_Action(pArray->GetDictAt(iIndex)); in GetSubAction()
|
D | cpdf_annot.cpp | 237 CFX_FloatRect CPDF_Annot::RectFromQuadPointsArray(const CPDF_Array* pArray, in RectFromQuadPointsArray() argument 239 DCHECK(pArray); in RectFromQuadPointsArray() 240 DCHECK(nIndex < pArray->size() / 8); in RectFromQuadPointsArray() 254 pArray->GetFloatAt(4 + nIndex * 8), pArray->GetFloatAt(5 + nIndex * 8), in RectFromQuadPointsArray() 255 pArray->GetFloatAt(2 + nIndex * 8), pArray->GetFloatAt(3 + nIndex * 8)); in RectFromQuadPointsArray() 262 RetainPtr<const CPDF_Array> pArray = pAnnotDict->GetArrayFor("QuadPoints"); in BoundingRectFromQuadPoints() local 263 size_t nQuadPointCount = pArray ? QuadPointCount(pArray.Get()) : 0; in BoundingRectFromQuadPoints() 267 ret = RectFromQuadPointsArray(pArray.Get(), 0); in BoundingRectFromQuadPoints() 269 CFX_FloatRect rect = RectFromQuadPointsArray(pArray.Get(), i); in BoundingRectFromQuadPoints() 278 RetainPtr<const CPDF_Array> pArray = pAnnotDict->GetArrayFor("QuadPoints"); in RectFromQuadPoints() local [all …]
|
D | cpdf_formfield.cpp | 456 const CPDF_Array* pArray = pValue->AsArray(); in CountSelectedItems() local 457 return pArray ? fxcrt::CollectionSize<int>(*pArray) : 0; in CountSelectedItems() 474 const CPDF_Array* pArray = pValue->AsArray(); in GetSelectedIndex() local 475 if (!pArray || index < 0) in GetSelectedIndex() 479 pArray->GetDirectObjectAt(index); in GetSelectedIndex() 561 auto pArray = m_pDict->SetNewFor<CPDF_Array>(pdfium::form_fields::kV); in SetItemSelectionSelected() local 564 pArray->AppendNew<CPDF_String>(GetOptionValue(i).AsStringView()); in SetItemSelectionSelected() 597 RetainPtr<const CPDF_Array> pArray = ToArray(GetFieldAttrInternal("Opt")); in CountOptions() local 598 return pArray ? fxcrt::CollectionSize<int>(*pArray) : 0; in CountOptions() 603 RetainPtr<const CPDF_Array> pArray = ToArray(GetFieldAttrInternal("Opt")); in GetOptionText() local [all …]
|
D | cpdf_dest.cpp | 33 CPDF_Dest::CPDF_Dest(RetainPtr<const CPDF_Array> pArray) in CPDF_Dest() argument 34 : m_pArray(std::move(pArray)) {} in CPDF_Dest() 84 RetainPtr<const CPDF_Object> pArray = m_pArray->GetDirectObjectAt(1); in GetZoomMode() local 85 if (!pArray) { in GetZoomMode() 88 ByteString mode = pArray->GetString(); in GetZoomMode()
|
D | cpdf_structelement.cpp | 118 if (const CPDF_Array* pArray = pKids->AsArray()) { in LoadKids() local 119 m_Kids.resize(pArray->size()); in LoadKids() 120 for (size_t i = 0; i < pArray->size(); ++i) { in LoadKids() 121 LoadKid(page_obj_num, pArray->GetDirectObjectAt(i), m_Kids[i]); in LoadKids()
|
D | cpdf_generateap.cpp | 606 RetainPtr<const CPDF_Array> pArray = pAnnotDict->GetArrayFor("QuadPoints"); in GenerateHighlightAP() local 607 if (pArray) { in GenerateHighlightAP() 608 size_t nQuadPointCount = CPDF_Annot::QuadPointCount(pArray.Get()); in GenerateHighlightAP() 711 RetainPtr<const CPDF_Array> pArray = pAnnotDict->GetArrayFor("QuadPoints"); in GenerateUnderlineAP() local 712 if (pArray) { in GenerateUnderlineAP() 715 size_t nQuadPointCount = CPDF_Annot::QuadPointCount(pArray.Get()); in GenerateUnderlineAP() 828 RetainPtr<const CPDF_Array> pArray = pAnnotDict->GetArrayFor("QuadPoints"); in GenerateSquigglyAP() local 829 if (pArray) { in GenerateSquigglyAP() 833 size_t nQuadPointCount = CPDF_Annot::QuadPointCount(pArray.Get()); in GenerateSquigglyAP() 878 RetainPtr<const CPDF_Array> pArray = pAnnotDict->GetArrayFor("QuadPoints"); in GenerateStrikeOutAP() local [all …]
|
/external/pdfium/fxjs/ |
D | cfx_v8.cpp | 48 void CFX_V8::PutArrayElement(v8::Local<v8::Array> pArray, in PutArrayElement() argument 51 fxv8::ReentrantPutArrayElementHelper(GetIsolate(), pArray, index, pValue); in PutArrayElement() 54 v8::Local<v8::Value> CFX_V8::GetArrayElement(v8::Local<v8::Array> pArray, in GetArrayElement() argument 56 return fxv8::ReentrantGetArrayElementHelper(GetIsolate(), pArray, index); in GetArrayElement() 59 size_t CFX_V8::GetArrayLength(v8::Local<v8::Array> pArray) { in GetArrayLength() argument 60 return fxv8::GetArrayLengthHelper(pArray); in GetArrayLength()
|
D | fxv8.cpp | 296 v8::Local<v8::Array> pArray, in ReentrantPutArrayElementHelper() argument 299 if (pArray.IsEmpty()) in ReentrantPutArrayElementHelper() 304 pArray->Set(pIsolate->GetCurrentContext(), in ReentrantPutArrayElementHelper() 310 v8::Local<v8::Array> pArray, in ReentrantGetArrayElementHelper() argument 312 if (pArray.IsEmpty()) in ReentrantGetArrayElementHelper() 317 if (!pArray in ReentrantGetArrayElementHelper() 326 size_t GetArrayLengthHelper(v8::Local<v8::Array> pArray) { in GetArrayLengthHelper() argument 327 if (pArray.IsEmpty()) in GetArrayLengthHelper() 329 return pArray->Length(); in GetArrayLengthHelper()
|
/external/pdfium/core/fpdfapi/render/ |
D | cpdf_docrenderdata.cpp | 82 const CPDF_Array* pArray = pObj->AsArray(); in CreateTransferFunc() local 83 if (pArray) { in CreateTransferFunc() 84 if (pArray->size() < 3) in CreateTransferFunc() 88 pFuncs[2 - i] = CPDF_Function::Load(pArray->GetDirectObjectAt(i)); in CreateTransferFunc() 112 if (pArray) { in CreateTransferFunc()
|
D | cpdf_rendershading.cpp | 117 RetainPtr<const CPDF_Array> pArray = pDict->GetArrayFor("Domain"); in DrawAxialShading() local 118 if (pArray) { in DrawAxialShading() 119 t_min = pArray->GetFloatAt(0); in DrawAxialShading() 120 t_max = pArray->GetFloatAt(1); in DrawAxialShading() 122 pArray = pDict->GetArrayFor("Extend"); in DrawAxialShading() 123 const bool bStartExtend = pArray && pArray->GetBooleanAt(0, false); in DrawAxialShading() 124 const bool bEndExtend = pArray && pArray->GetBooleanAt(1, false); in DrawAxialShading() 187 RetainPtr<const CPDF_Array> pArray = pDict->GetArrayFor("Domain"); in DrawRadialShading() local 188 if (pArray) { in DrawRadialShading() 189 t_min = pArray->GetFloatAt(0); in DrawRadialShading() [all …]
|