/external/pdfium/core/fpdfapi/parser/ |
D | cpdf_indirect_object_holder.cpp | 34 uint32_t objnum) const { in GetIndirectObject() 35 auto it = m_IndirectObjs.find(objnum); in GetIndirectObject() 41 uint32_t objnum) { in GetOrParseIndirectObject() argument 42 if (objnum == 0 || objnum == CPDF_Object::kInvalidObjNum) in GetOrParseIndirectObject() 46 auto insert_result = m_IndirectObjs.insert(std::make_pair(objnum, nullptr)); in GetOrParseIndirectObject() 50 RetainPtr<CPDF_Object> pNewObj = ParseIndirectObject(objnum); in GetOrParseIndirectObject() 56 pNewObj->SetObjNum(objnum); in GetOrParseIndirectObject() 57 m_LastObjNum = std::max(m_LastObjNum, objnum); in GetOrParseIndirectObject() 63 uint32_t objnum) { in ParseIndirectObject() argument 78 uint32_t objnum, in ReplaceIndirectObjectIfHigherGeneration() argument [all …]
|
D | cpdf_page_object_avail_unittest.cpp | 48 CPDF_Object* GetOrParseIndirectObject(uint32_t objnum) override { in GetOrParseIndirectObject() argument 49 auto it = objects_data_.find(objnum); in GetOrParseIndirectObject() 63 void AddObject(uint32_t objnum, in AddObject() argument 69 ASSERT(objects_data_.find(objnum) == objects_data_.end()); in AddObject() 70 objects_data_[objnum] = std::move(object_data); in AddObject() 73 void SetObjectState(uint32_t objnum, ObjectState state) { in SetObjectState() argument 74 auto it = objects_data_.find(objnum); in SetObjectState() 80 CPDF_Object* GetTestObject(uint32_t objnum) { in GetTestObject() argument 81 auto it = objects_data_.find(objnum); in GetTestObject()
|
D | cpdf_indirect_object_holder.h | 30 CPDF_Object* GetIndirectObject(uint32_t objnum) const; 31 virtual CPDF_Object* GetOrParseIndirectObject(uint32_t objnum); 32 void DeleteIndirectObject(uint32_t objnum); 63 bool ReplaceIndirectObjectIfHigherGeneration(uint32_t objnum, 67 void SetLastObjNum(uint32_t objnum) { m_LastObjNum = objnum; } in SetLastObjNum() argument 77 virtual RetainPtr<CPDF_Object> ParseIndirectObject(uint32_t objnum);
|
D | cpdf_crypto_handler.h | 32 bool EncryptContent(uint32_t objnum, 42 void* DecryptStart(uint32_t objnum, uint32_t gennum); 43 ByteString Decrypt(uint32_t objnum, uint32_t gennum, const ByteString& str); 49 void PopulateKey(uint32_t objnum, uint32_t gennum, uint8_t* key); 51 uint32_t objnum, 56 void* CryptStart(uint32_t objnum, uint32_t gennum, bool bEncrypt);
|
D | cpdf_parser.cpp | 79 bool CPDF_Parser::IsValidObjectNumber(uint32_t objnum) const { in IsValidObjectNumber() 80 return objnum <= GetLastObjNum(); in IsValidObjectNumber() 83 FX_FILESIZE CPDF_Parser::GetObjectPositionOrZero(uint32_t objnum) const { in GetObjectPositionOrZero() 84 const auto* info = m_CrossRefTable->GetObjectInfo(objnum); in GetObjectPositionOrZero() 88 CPDF_Parser::ObjectType CPDF_Parser::GetObjectType(uint32_t objnum) const { in GetObjectType() 89 ASSERT(IsValidObjectNumber(objnum)); in GetObjectType() 90 const auto* info = m_CrossRefTable->GetObjectInfo(objnum); in GetObjectType() 94 bool CPDF_Parser::IsObjectFreeOrNull(uint32_t objnum) const { in IsObjectFreeOrNull() 95 switch (GetObjectType(objnum)) { in IsObjectFreeOrNull() 107 bool CPDF_Parser::IsObjectFree(uint32_t objnum) const { in IsObjectFree() [all …]
|
D | cpdf_crypto_handler.cpp | 46 uint32_t objnum, in CryptBlock() argument 59 PopulateKey(objnum, gennum, key1); in CryptBlock() 110 void* CPDF_CryptoHandler::CryptStart(uint32_t objnum, in CryptStart() argument 130 PopulateKey(objnum, gennum, key1); in CryptStart() 254 ByteString CPDF_CryptoHandler::Decrypt(uint32_t objnum, in Decrypt() argument 258 void* context = DecryptStart(objnum, gennum); in Decrypt() 264 void* CPDF_CryptoHandler::DecryptStart(uint32_t objnum, uint32_t gennum) { in DecryptStart() argument 265 return CryptStart(objnum, gennum, false); in DecryptStart() 371 bool CPDF_CryptoHandler::EncryptContent(uint32_t objnum, in EncryptContent() argument 376 CryptBlock(true, objnum, gennum, source, dest_buf, dest_size); in EncryptContent() [all …]
|
D | cpdf_parser.h | 91 RetainPtr<CPDF_Object> ParseIndirectObject(uint32_t objnum); 94 bool IsValidObjectNumber(uint32_t objnum) const; 95 FX_FILESIZE GetObjectPositionOrZero(uint32_t objnum) const; 96 bool IsObjectFreeOrNull(uint32_t objnum) const; 100 bool IsObjectFree(uint32_t objnum) const; 106 uint32_t objnum); 174 ObjectType GetObjectType(uint32_t objnum) const;
|
D | cpdf_document.cpp | 74 RetainPtr<CPDF_Object> CPDF_Document::ParseIndirectObject(uint32_t objnum) { in ParseIndirectObject() argument 75 return m_pParser ? m_pParser->ParseIndirectObject(objnum) : nullptr; in ParseIndirectObject() 221 const uint32_t objnum = m_PageList[iPage]; in GetPageDictionary() local 222 if (objnum) { in GetPageDictionary() 223 CPDF_Dictionary* result = ToDictionary(GetOrParseIndirectObject(objnum)); in GetPageDictionary() 248 uint32_t objnum, in FindPageIndex() argument 252 if (objnum == pNode->GetObjNum()) in FindPageIndex() 279 if (pKid && pKid->GetRefObjNum() == objnum) in FindPageIndex() 289 int found_index = FindPageIndex(pKid, skip_count, objnum, index, level + 1); in FindPageIndex() 296 int CPDF_Document::GetPageIndex(uint32_t objnum) { in GetPageIndex() argument [all …]
|
D | cpdf_indirect_object_holder_unittest.cpp | 22 MOCK_METHOD1(ParseIndirectObject, RetainPtr<CPDF_Object>(uint32_t objnum)); 33 [&mock_holder](uint32_t objnum) -> RetainPtr<CPDF_Object> { in TEST() argument 35 mock_holder.GetOrParseIndirectObject(objnum); in TEST() 53 ::testing::Invoke([](uint32_t objnum) -> RetainPtr<CPDF_Object> { in TEST() argument
|
D | cpdf_reference.cpp | 14 CPDF_Reference::CPDF_Reference(CPDF_IndirectObjectHolder* pDoc, uint32_t objnum) in CPDF_Reference() argument 15 : m_pObjList(pDoc), m_RefObjNum(objnum) {} in CPDF_Reference() 87 void CPDF_Reference::SetRef(CPDF_IndirectObjectHolder* pDoc, uint32_t objnum) { in SetRef() argument 89 m_RefObjNum = objnum; in SetRef()
|
D | cpdf_cross_ref_table.cpp | 107 void CPDF_CrossRefTable::ShrinkObjectMap(uint32_t objnum) { in ShrinkObjectMap() argument 108 if (objnum == 0) { in ShrinkObjectMap() 113 objects_info_.erase(objects_info_.lower_bound(objnum), objects_info_.end()); in ShrinkObjectMap() 115 if (!pdfium::ContainsKey(objects_info_, objnum - 1)) in ShrinkObjectMap() 116 objects_info_[objnum - 1].pos = 0; in ShrinkObjectMap()
|
D | cpdf_object_avail_unittest.cpp | 48 CPDF_Object* GetOrParseIndirectObject(uint32_t objnum) override { in GetOrParseIndirectObject() argument 49 auto it = objects_data_.find(objnum); in GetOrParseIndirectObject() 63 void AddObject(uint32_t objnum, in AddObject() argument 69 ASSERT(objects_data_.find(objnum) == objects_data_.end()); in AddObject() 70 objects_data_[objnum] = std::move(object_data); in AddObject() 73 void SetObjectState(uint32_t objnum, ObjectState state) { in SetObjectState() argument 74 auto it = objects_data_.find(objnum); in SetObjectState() 80 CPDF_Object* GetTestObject(uint32_t objnum) { in GetTestObject() argument 81 auto it = objects_data_.find(objnum); in GetTestObject()
|
D | cfdf_document.cpp | 45 uint32_t objnum = FXSYS_atoui(word.c_str()); in ParseStream() local 46 if (!objnum) in ParseStream() 61 ReplaceIndirectObjectIfHigherGeneration(objnum, std::move(pObj)); in ParseStream()
|
D | cpdf_encryptor.cpp | 11 CPDF_Encryptor::CPDF_Encryptor(CPDF_CryptoHandler* pHandler, int objnum) in CPDF_Encryptor() argument 12 : m_pHandler(pHandler), m_ObjNum(objnum) { in CPDF_Encryptor()
|
D | cpdf_reference.h | 43 void SetRef(CPDF_IndirectObjectHolder* pDoc, uint32_t objnum); 46 CPDF_Reference(CPDF_IndirectObjectHolder* pDoc, uint32_t objnum);
|
D | cpdf_document.h | 107 int GetPageIndex(uint32_t objnum); 160 uint32_t objnum, 163 RetainPtr<CPDF_Object> ParseIndirectObject(uint32_t objnum) override;
|
D | cpdf_object.h | 47 void SetObjNum(uint32_t objnum) { m_ObjNum = objnum; } in SetObjNum() argument
|
D | cpdf_data_avail.h | 145 uint32_t objnum, 147 RetainPtr<CPDF_Object> GetObject(uint32_t objnum, bool* pExistInFile);
|
D | cpdf_encryptor.h | 21 CPDF_Encryptor(CPDF_CryptoHandler* pHandler, int objnum);
|
D | cpdf_data_avail.cpp | 213 RetainPtr<CPDF_Object> CPDF_DataAvail::GetObject(uint32_t objnum, in GetObject() argument 225 pRet = pParser->ParseIndirectObject(objnum); in GetObject() 455 uint32_t objnum, in ParseIndirectObjectAt() argument 462 return (result && (!objnum || result->GetObjNum() == objnum)) in ParseIndirectObjectAt()
|
/external/pdfium/core/fpdfapi/edit/ |
D | cpdf_creator.cpp | 154 bool CPDF_Creator::WriteIndirectObj(uint32_t objnum, const CPDF_Object* pObj) { in WriteIndirectObj() argument 155 if (!m_Archive->WriteDWord(objnum) || !m_Archive->WriteString(" 0 obj\r\n")) in WriteIndirectObj() 160 encryptor = pdfium::MakeUnique<CPDF_Encryptor>(GetCryptoHandler(), objnum); in WriteIndirectObj() 168 bool CPDF_Creator::WriteOldIndirectObject(uint32_t objnum) { in WriteOldIndirectObject() argument 169 if (m_pParser->IsObjectFreeOrNull(objnum)) in WriteOldIndirectObject() 172 m_ObjectOffsets[objnum] = m_Archive->CurrentOffset(); in WriteOldIndirectObject() 174 bool bExistInMap = !!m_pDocument->GetIndirectObject(objnum); in WriteOldIndirectObject() 175 CPDF_Object* pObj = m_pDocument->GetOrParseIndirectObject(objnum); in WriteOldIndirectObject() 177 m_ObjectOffsets.erase(objnum); in WriteOldIndirectObject() 183 m_pDocument->DeleteIndirectObject(objnum); in WriteOldIndirectObject() [all …]
|
D | cpdf_creator.h | 68 bool WriteOldIndirectObject(uint32_t objnum); 71 bool WriteIndirectObj(uint32_t objnum, const CPDF_Object* pObj);
|
/external/pdfium/core/fpdfdoc/ |
D | cpdf_linklist.cpp | 19 uint32_t objnum = pPage->GetDict()->GetObjNum(); in GetPageLinks() local 20 if (objnum == 0) in GetPageLinks() 23 auto it = m_PageMap.find(objnum); in GetPageLinks() 28 std::vector<CPDF_Dictionary*>& page_link_list = m_PageMap[objnum]; in GetPageLinks()
|
/external/pdfium/core/fpdfapi/page/ |
D | cpdf_imageobject.cpp | 86 uint32_t objnum = pStream->GetObjNum(); in MaybePurgeCache() local 87 if (!objnum) in MaybePurgeCache() 91 pPageData->MaybePurgeImage(objnum); in MaybePurgeCache()
|
/external/u-boot/fs/zfs/ |
D | zfs.c | 1111 dnode_get(dnode_end_t *mdn, uint64_t objnum, uint8_t type, in dnode_get() argument 1125 blkid = objnum >> epbs; in dnode_get() 1126 idx = objnum & ((1 << epbs) - 1); in dnode_get() 1130 && objnum >= data->dnode_start && objnum < data->dnode_end) { in dnode_get() 1177 uint64_t objnum, version; in dnode_get_path() local 1211 err = zap_lookup(&(dnode_path->dn), ZFS_ROOT_OBJ, &objnum, data); in dnode_get_path() 1217 err = dnode_get(mdn, objnum, 0, &(dnode_path->dn), data); in dnode_get_path() 1264 err = zap_lookup(&(dnode_path->dn), cname, &objnum, data); in dnode_get_path() 1276 objnum = ZFS_DIRENT_OBJ(objnum); in dnode_get_path() 1277 err = dnode_get(mdn, objnum, 0, &(dnode_path->dn), data); in dnode_get_path() [all …]
|