Home
last modified time | relevance | path

Searched refs:Rectangle_i (Results 1 – 21 of 21) sorted by relevance

/packages/providers/MediaProvider/pdf/framework/libs/pdfClient/
Drect.h37 struct Rectangle_i { struct
82 inline bool operator==(const Rectangle_i& lhs, const Rectangle_i& rhs) {
87 inline bool operator!=(const Rectangle_i& lhs, const Rectangle_i& rhs) {
92 inline bool IsEmpty(const Rectangle_i& rect) { in IsEmpty()
107 Rectangle_i IntRect(const int x1, const int y1, const int x2, const int y2);
110 Rectangle_i IntRect(const Point_i& p1, const Point_i& p2);
113 Rectangle_i IntRectWithSize(const int left, const int top, const int width, const int height);
116 Rectangle_i OuterIntRect(const Rectangle_d& input);
123 Rectangle_i Intersect(const Rectangle_i& lhs, const Rectangle_i& rhs);
127 Rectangle_i Union(const Rectangle_i& lhs, const Rectangle_i& rhs);
Dpage.h79 std::vector<Rectangle_i> rect;
98 Rectangle_i Dimensions() const;
110 Rectangle_i ApplyPageTransform(const Rectangle_d& input) const;
111 Rectangle_i ApplyPageTransform(const Rectangle_i& input) const;
143 int BoundsOfMatchesUtf8(std::string_view utf8, std::vector<Rectangle_i>* rects,
149 int GetTextBounds(const int start_index, const int stop_index, std::vector<Rectangle_i>* rects);
164 int GetLinksUtf8(std::vector<Rectangle_i>* rects, std::vector<int>* link_to_rect,
210 void NotifyInvalidRect(Rectangle_i rect);
217 Rectangle_i ConsumeInvalidRect();
283 Rectangle_i GetCharBounds(int char_index);
[all …]
Drect.cc32 Rectangle_i IntRect(const int x1, const int y1, const int x2, const int y2) { in IntRect()
33 Rectangle_i output; in IntRect()
41 Rectangle_i IntRect(const Point_i& p1, const Point_i& p2) { in IntRect()
45 Rectangle_i IntRectWithSize(const int left, const int top, const int width, const int height) { in IntRectWithSize()
46 return Rectangle_i{left, top, left + width, top + height}; in IntRectWithSize()
49 Rectangle_i OuterIntRect(const Rectangle_d& input) { in OuterIntRect()
62 Rectangle_i Intersect(const Rectangle_i& lhs, const Rectangle_i& rhs) { in Intersect()
63 Rectangle_i output; in Intersect()
86 Rectangle_i Union(const Rectangle_i& lhs, const Rectangle_i& rhs) { in Union()
87 Rectangle_i output; in Union()
Dpage_test.cc36 using ::pdfClient::Rectangle_i;
72 Rectangle_i expected = Rectangle_i{100, 592, 200, 692}; in TEST()
90 Rectangle_i expected = Rectangle_i{100, 292, 500, 692}; in TEST()
110 Rectangle_i expected = Rectangle_i{100, 292, 500, 692}; in TEST()
139 page->NotifyInvalidRect(pdfClient::Rectangle_i{100, 200, 0, 500}); in TEST()
140 page->NotifyInvalidRect(pdfClient::Rectangle_i{100, 400, 500, 0}); in TEST()
164 Rectangle_i expected = Rectangle_i{0, 0, 0, 0}; in TEST()
Dpage.cc50 static const Rectangle_i kEmptyIntRectangle = IntRect(0, 0, 0, 0);
76 Rectangle_i Page::Dimensions() const { in Dimensions()
115 Rectangle_i Page::ApplyPageTransform(const Rectangle_d& input) const { in ApplyPageTransform()
119 Rectangle_i Page::ApplyPageTransform(const Rectangle_i& input) const { in ApplyPageTransform()
126 Rectangle_i output = IntRect(output1, output2); in ApplyPageTransform()
181 int Page::BoundsOfMatchesUtf8(std::string_view utf8, vector<Rectangle_i>* rects, in BoundsOfMatchesUtf8()
205 int Page::GetTextBounds(const int start_index, const int stop_index, vector<Rectangle_i>* rects) { in GetTextBounds()
266 int Page::GetLinksUtf8(vector<Rectangle_i>* rects, vector<int>* link_to_rect, in GetLinksUtf8()
282 vector<Rectangle_i> goto_link_rects; in GetGotoLinks()
283 Rectangle_i rect = GetRect(link); in GetGotoLinks()
[all …]
Dform_filing_click_test.cc37 using pdfClient::Rectangle_i;
58 bool RectCoversArea(const Rectangle_i& rect, int left, int top, int right, int bottom) { in RectCoversArea()
84 Rectangle_i expected = Rectangle_i{135, 30, 155, 50}; in TEST()
139 Rectangle_i expected = Rectangle_i{135, 70, 155, 90}; in TEST()
183 Rectangle_i invalid_rect = page_zero->ConsumeInvalidRect(); in TEST()
200 Rectangle_i expected = Rectangle_i{75, 180, 225, 240}; in TEST()
250 Rectangle_i invalid_rect = page_zero->ConsumeInvalidRect(); in TEST()
268 Rectangle_i expected = Rectangle_i{85, 180, 105, 200}; in TEST()
324 Rectangle_i expected = Rectangle_i{85, 230, 105, 250}; in TEST()
371 Rectangle_i invalid_rect = page_zero->ConsumeInvalidRect(); in TEST()
Djni_conversion.h35 using pdfClient::Rectangle_i;
65 jobject ToJavaRect(JNIEnv* env, const Rectangle_i& r);
68 jobject ToJavaRects(JNIEnv* env, const vector<Rectangle_i>& rects);
71 jobject ToJavaDimensions(JNIEnv* env, const Rectangle_i& r);
77 jobject ToJavaMatchRects(JNIEnv* env, const std::vector<Rectangle_i>& rects,
85 const SelectionBoundary& stop, const vector<Rectangle_i>& rects,
89 jobject ToJavaLinkRects(JNIEnv* env, const std::vector<Rectangle_i>& rects,
Dtext_test.cc36 using ::pdfClient::Rectangle_i;
56 int Area(const Rectangle_i& rect) { in Area()
60 int NumRectsForMatch(std::span<const Rectangle_i> rects, std::span<const int> match_to_rect, in NumRectsForMatch()
146 Rectangle_i page_rect = page->Dimensions(); in TEST()
148 std::vector<Rectangle_i> gd_bounds; in TEST()
165 Rectangle_i copy = gd_bounds[i]; in TEST()
175 std::vector<Rectangle_i> g_bounds; in TEST()
177 std::vector<Rectangle_i> d_bounds; in TEST()
Dform_filing_textfield_test.cc39 using pdfClient::Rectangle_i;
104 Rectangle_i expected = Rectangle_i{100, 70, 200, 100}; in TEST()
171 Rectangle_i expected = Rectangle_i{100, 170, 200, 200}; in TEST()
223 Rectangle_i expected = Rectangle_i{100, 225, 200, 250}; in TEST()
254 Rectangle_i expected = Rectangle_i{100, 40, 200, 100}; in TEST()
Dform_filing_combo_test.cc38 using pdfClient::Rectangle_i;
101 Rectangle_i expected = Rectangle_i{100, 70, 200, 100}; in TEST()
162 Rectangle_i expected = Rectangle_i{100, 170, 200, 200}; in TEST()
228 Rectangle_i expected = Rectangle_i{100, 220, 200, 250}; in TEST()
Dform_filing_listbox_test.cc38 using pdfClient::Rectangle_i;
88 Rectangle_i expected = Rectangle_i{100, 70, 200, 100}; in TEST()
163 Rectangle_i expected = Rectangle_i{100, 320, 200, 400}; in TEST()
247 Rectangle_i expected = Rectangle_i{100, 170, 200, 300}; in TEST()
Dlinks_test.cc34 using pdfClient::Rectangle_i;
41 int Area(const Rectangle_i& rect) { in Area()
61 std::vector<Rectangle_i> rects; in TEST()
Dform_widget_info.h48 Rectangle_i widget_rect() const;
49 void set_widget_rect(Rectangle_i widget_rect);
72 Rectangle_i widget_rect_;
Djni_conversion.cc25 using pdfClient::Rectangle_i;
181 jobject ToJavaRect(JNIEnv* env, const Rectangle_i& r) { in ToJavaRect()
187 jobject ToJavaRectF(JNIEnv* env, const Rectangle_i& r) { in ToJavaRectF()
194 jobject ToJavaRects(JNIEnv* env, const vector<Rectangle_i>& rects) { in ToJavaRects()
198 jobject ToJavaDimensions(JNIEnv* env, const Rectangle_i& r) { in ToJavaDimensions()
208 jobject ToJavaMatchRects(JNIEnv* env, const vector<Rectangle_i>& rects, in ToJavaMatchRects()
235 const SelectionBoundary& stop, const vector<Rectangle_i>& rects, in ToJavaSelection()
252 jobject ToJavaLinkRects(JNIEnv* env, const vector<Rectangle_i>& rects, in ToJavaLinkRects()
Dform_widget_info.cc28 const Rectangle_i kDefaultRect = IntRect(-1, -1, -1, -1);
72 Rectangle_i FormWidgetInfo::widget_rect() const { in widget_rect()
76 void FormWidgetInfo::set_widget_rect(Rectangle_i widget_rect) { in set_widget_rect()
Dpdf_document_jni.cc49 using pdfClient::Rectangle_i;
125 Rectangle_i dimensions = page->Dimensions(); in Java_android_graphics_pdf_PdfDocumentProxy_getPageDimensions()
228 vector<Rectangle_i> rects; in Java_android_graphics_pdf_PdfDocumentProxy_searchPageText()
264 vector<Rectangle_i> rects; in Java_android_graphics_pdf_PdfDocumentProxy_selectPageText()
276 vector<Rectangle_i> rects; in Java_android_graphics_pdf_PdfDocumentProxy_getPageLinks()
393 vector<Rectangle_i> invalid_rects; in Java_android_graphics_pdf_PdfDocumentProxy_clickOnPage()
419 vector<Rectangle_i> invalid_rects; in Java_android_graphics_pdf_PdfDocumentProxy_setFormFieldText()
442 vector<Rectangle_i> invalid_rects; in Java_android_graphics_pdf_PdfDocumentProxy_setFormFieldSelectedIndices()
Dform_filler.cc92 static const Rectangle_i kDefaultAnnotationRect = IntRect(-1, -1, -1, -1);
337 Rectangle_i rect = GetAnnotationRect(annotation); in GetFormFieldType()
343 Rectangle_i FormFiller::GetAnnotationRect(FPDF_ANNOTATION annotation) { in GetAnnotationRect()
351 return Rectangle_i{ in GetAnnotationRect()
442 Rectangle_i rect = GetAnnotationRect(annotation); in SetFormFocus()
455 Rectangle_i rect = IntRect(left, top, right, bottom); in Invalidate()
Dform_filing_general_test.cc36 using pdfClient::Rectangle_i;
67 Rectangle_i expected = Rectangle_i{-1, -1, -1, -1}; in TEST()
Ddocument.h96 void NotifyInvalidRect(FPDF_PAGE page, Rectangle_i rect);
Dform_filler.h106 Rectangle_i GetAnnotationRect(FPDF_ANNOTATION annotation);
Ddocument.cc125 void Document::NotifyInvalidRect(FPDF_PAGE page, Rectangle_i rect) { in NotifyInvalidRect()