Home
last modified time | relevance | path

Searched refs:GetInteger (Results 1 – 25 of 69) sorted by relevance

123

/external/pdfium/testing/libfuzzer/
Dpdf_codec_fax_fuzzer.cc11 static int GetInteger(const uint8_t* data) { in GetInteger() function
20 int width = GetInteger(data); in LLVMFuzzerTestOneInput()
21 int height = GetInteger(data + 4); in LLVMFuzzerTestOneInput()
22 int K = GetInteger(data + 8); in LLVMFuzzerTestOneInput()
23 int Columns = GetInteger(data + 12); in LLVMFuzzerTestOneInput()
24 int Rows = GetInteger(data + 16); in LLVMFuzzerTestOneInput()
Dpdf_codec_jbig2_fuzzer.cc17 static uint32_t GetInteger(const uint8_t* data) { in GetInteger() function
26 uint32_t width = GetInteger(data); in LLVMFuzzerTestOneInput()
27 uint32_t height = GetInteger(data + 4); in LLVMFuzzerTestOneInput()
/external/pdfium/core/fpdfapi/page/
Dcpdf_allstates.cpp55 static_cast<CFX_GraphStateData::LineCap>(pObject->GetInteger())); in ProcessExtGS()
59 static_cast<CFX_GraphStateData::LineJoin>(pObject->GetInteger())); in ProcessExtGS()
120 m_GeneralState.SetStrokeOP(!!pObject->GetInteger()); in ProcessExtGS()
122 m_GeneralState.SetFillOP(!!pObject->GetInteger()); in ProcessExtGS()
125 m_GeneralState.SetFillOP(!!pObject->GetInteger()); in ProcessExtGS()
128 m_GeneralState.SetOPMode(pObject->GetInteger()); in ProcessExtGS()
154 m_GeneralState.SetStrokeAdjust(!!pObject->GetInteger()); in ProcessExtGS()
157 m_GeneralState.SetAlphaSource(!!pObject->GetInteger()); in ProcessExtGS()
160 m_GeneralState.SetTextKnockout(!!pObject->GetInteger()); in ProcessExtGS()
/external/pdfium/core/fpdfdoc/
Dcpdf_nametree_unittest.cpp100 EXPECT_EQ(100, pObj->AsNumber()->GetInteger()); in TEST()
151 EXPECT_EQ(444, nameTree.LookupValue(L"4.txt")->GetInteger()); in TEST()
157 EXPECT_EQ(666, nameTree.LookupValue(L"6.txt")->GetInteger()); in TEST()
163 EXPECT_EQ(99, nameTree.LookupValue(L"99.txt")->GetInteger()); in TEST()
169 EXPECT_EQ(-5, nameTree.LookupValue(L"0.txt")->GetInteger()); in TEST()
237 EXPECT_EQ(999, nameTree.LookupValue(L"9.txt")->GetInteger()); in TEST()
248 EXPECT_EQ(222, nameTree.LookupValue(L"2.txt")->GetInteger()); in TEST()
261 EXPECT_EQ(111, nameTree.LookupValue(L"1.txt")->GetInteger()); in TEST()
273 EXPECT_EQ(333, nameTree.LookupValue(L"3.txt")->GetInteger()); in TEST()
286 EXPECT_EQ(555, nameTree.LookupValue(L"5.txt")->GetInteger()); in TEST()
Dcpdf_dest.cpp50 return pPage->GetInteger(); in GetPageIndex()
65 return pPage->GetInteger(); in GetPageObjNum()
Dcpdf_formfield.cpp106 uint32_t flags = ff_attr ? ff_attr->GetInteger() : 0; in SyncFieldFlags()
289 return pObj ? pObj->GetInteger() : 0; in GetFieldFlags()
408 return pObj->GetInteger(); in GetMaxLen()
443 return pValue->GetInteger(); in GetSelectedIndex()
509 return (pValue->GetInteger() == index); in IsItemSelected()
798 return pObj ? pObj->GetInteger() : 0; in GetTopVisibleIndex()
823 if (pObj->GetInteger() == iOptIndex) in IsOptionSelected()
/external/pdfium/core/fpdfapi/parser/
Dcpdf_array_unittest.cpp149 EXPECT_EQ(elem_obj->GetInteger(), elem_obj1->GetInteger()); in TEST()
155 EXPECT_EQ(elem_obj->GetInteger(), elem_obj2->GetInteger()); in TEST()
165 EXPECT_EQ(elems[i][j], elem_obj1->GetInteger()); in TEST()
182 EXPECT_EQ(elems[index++], it->AsNumber()->GetInteger()); in TEST()
Dcpdf_reference.cpp33 int CPDF_Reference::GetInteger() const { in GetInteger() function in CPDF_Reference
35 return obj ? obj->GetInteger() : 0; in GetInteger()
Dcpdf_dictionary.cpp112 return p ? p->GetInteger() : 0; in GetIntegerFor()
117 return p ? p->GetInteger() : def; in GetIntegerFor()
128 return ToBoolean(p) ? p->GetInteger() != 0 : bDefault; in GetBooleanFor()
Dcpdf_boolean.cpp29 int CPDF_Boolean::GetInteger() const { in GetInteger() function in CPDF_Boolean
Dcpdf_boolean.h26 int GetInteger() const override;
Dcpdf_number.h29 int GetInteger() const override;
Dcpdf_reference.h29 int GetInteger() const override;
Dcpdf_number.cpp35 int CPDF_Number::GetInteger() const { in GetInteger() function in CPDF_Number
Dcpdf_object_unittest.cpp115 return obj1->GetInteger() == obj2->GetInteger(); in Equal()
118 obj1->GetInteger() == obj2->GetInteger(); in Equal()
231 TEST_F(PDFObjectsTest, GetInteger) { in TEST_F() argument
235 EXPECT_EQ(direct_obj_results[i], m_DirectObjs[i]->GetInteger()); in TEST_F()
240 EXPECT_EQ(indirect_obj_results[i], m_RefObjs[i]->GetInteger()); in TEST_F()
Dcpdf_object.cpp54 int CPDF_Object::GetInteger() const { in GetInteger() function in CPDF_Object
Dcpdf_linearized_header.cpp34 const int raw_value = pNum->GetInteger(); in IsValidNumericDictionaryValue()
Dcpdf_object.h63 virtual int GetInteger() const;
/external/pdfium/xfa/fxfa/parser/
Dcxfa_font.cpp96 return JSObject()->GetInteger(XFA_Attribute::LineThrough); in GetLineThrough()
100 return JSObject()->GetInteger(XFA_Attribute::Underline); in GetUnderline()
/external/libbrillo/policy/
Ddevice_policy_impl.cc131 if (!dict_value.GetInteger("hours", &hours) || hours < 0 || hours > 23) { in DecodeWeeklyTimeFromValue()
137 if (!dict_value.GetInteger("minutes", &minutes) || minutes < 0 || in DecodeWeeklyTimeFromValue()
549 if (!day_percentage_pair->GetInteger("days", &days) || in GetDeviceUpdateStagingSchedule()
550 !day_percentage_pair->GetInteger("percentage", &percentage)) in GetDeviceUpdateStagingSchedule()
/external/libchrome/base/
Dvalues_unittest.cc751 ASSERT_FALSE(mixed_list->GetInteger(0, &int_value)); in TEST()
757 ASSERT_FALSE(mixed_list->GetInteger(2, &int_value)); in TEST()
764 ASSERT_TRUE(mixed_list->GetInteger(1, &int_value)); in TEST()
1671 EXPECT_FALSE(main_dict.GetInteger("bool", nullptr)); in TEST()
1672 EXPECT_TRUE(main_dict.GetInteger("int", nullptr)); in TEST()
1673 EXPECT_FALSE(main_dict.GetInteger("double", nullptr)); in TEST()
1674 EXPECT_FALSE(main_dict.GetInteger("string", nullptr)); in TEST()
1675 EXPECT_FALSE(main_dict.GetInteger("binary", nullptr)); in TEST()
1676 EXPECT_FALSE(main_dict.GetInteger("dict", nullptr)); in TEST()
1677 EXPECT_FALSE(main_dict.GetInteger("list", nullptr)); in TEST()
[all …]
/external/pdfium/xfa/fxfa/
Dcxfa_textparser.cpp314 return wsValue.GetInteger(); in CountTabs()
373 return wsValue.GetInteger(); in GetHorScale()
382 return wsValue.GetInteger(); in GetHorScale()
398 return wsValue.GetInteger(); in GetVerScale()
/external/libchrome/mojo/public/interfaces/bindings/tests/
Dsample_interfaces.mojom29 GetInteger() => (int64 data, [MinVersion=2] Enum type);
/external/libchrome/base/test/
Dgtest_util.cc101 if (!test->GetInteger("line", &test_data.line)) in ReadTestNamesFromFile()
/external/pdfium/fpdfsdk/
Dfpdf_structtree.cpp91 return p && p->IsNumber() ? p->GetInteger() : -1; in FPDF_StructElement_GetMarkedContentID()

123