Home
last modified time | relevance | path

Searched refs:rects (Results 1 – 13 of 13) sorted by relevance

/packages/providers/MediaProvider/pdf/framework/libs/pdfClient/
Dlinks_test.cc61 std::vector<Rectangle_i> rects; in TEST() local
64 page->GetLinksUtf8(&rects, &link_to_rect, &urls); in TEST()
66 EXPECT_EQ(1, rects.size()); in TEST()
67 EXPECT_GT(Area(rects[0]), 0); in TEST()
Djni_conversion.cc194 jobject ToJavaRects(JNIEnv* env, const vector<Rectangle_i>& rects) { in ToJavaRects() argument
195 return ToJavaList(env, rects, &ToJavaRect); in ToJavaRects()
208 jobject ToJavaMatchRects(JNIEnv* env, const vector<Rectangle_i>& rects, in ToJavaMatchRects() argument
218 if (rects.empty()) { in ToJavaMatchRects()
221 jobject java_rects = ToJavaList(env, rects, &ToJavaRect); in ToJavaMatchRects()
235 const SelectionBoundary& stop, const vector<Rectangle_i>& rects, in ToJavaSelection() argument
243 if (rects.empty()) { in ToJavaSelection()
247 jobject java_rects = ToJavaList(env, rects, &ToJavaRect); in ToJavaSelection()
252 jobject ToJavaLinkRects(JNIEnv* env, const vector<Rectangle_i>& rects, in ToJavaLinkRects() argument
262 if (rects.empty()) { in ToJavaLinkRects()
[all …]
Dpage.cc181 int Page::BoundsOfMatchesUtf8(std::string_view utf8, vector<Rectangle_i>* rects, in BoundsOfMatchesUtf8() argument
189 int num_rects_for_match = GetTextBounds(start, stop, rects); in BoundsOfMatchesUtf8()
205 int Page::GetTextBounds(const int start_index, const int stop_index, vector<Rectangle_i>* rects) { in GetTextBounds() argument
223 rects->push_back(ApplyPageTransform(rect)); in GetTextBounds()
231 rects->push_back(ApplyPageTransform(rect)); in GetTextBounds()
266 int Page::GetLinksUtf8(vector<Rectangle_i>* rects, vector<int>* link_to_rect, in GetLinksUtf8() argument
268 return GetAnnotatedLinksUtf8(rects, link_to_rect, urls) + in GetLinksUtf8()
269 GetInferredLinksUtf8(rects, link_to_rect, urls); in GetLinksUtf8()
619 int Page::GetAnnotatedLinksUtf8(vector<Rectangle_i>* rects, vector<int>* link_to_rect, in GetAnnotatedLinksUtf8() argument
635 link_to_rect->push_back(rects->size()); in GetAnnotatedLinksUtf8()
[all …]
Djni_conversion.h68 jobject ToJavaRects(JNIEnv* env, const vector<Rectangle_i>& rects);
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,
Dpage.h143 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,
290 int GetAnnotatedLinksUtf8(std::vector<Rectangle_i>* rects, std::vector<int>* link_to_rect,
295 int GetInferredLinksUtf8(std::vector<Rectangle_i>* rects, std::vector<int>* link_to_rect,
Dpdf_document_jni.cc228 vector<Rectangle_i> rects; in Java_android_graphics_pdf_PdfDocumentProxy_searchPageText() local
231 page->BoundsOfMatchesUtf8(query_native, &rects, &match_to_rect, &char_indexes); in Java_android_graphics_pdf_PdfDocumentProxy_searchPageText()
232 jobject match_rects = convert::ToJavaMatchRects(env, rects, match_to_rect, char_indexes); in Java_android_graphics_pdf_PdfDocumentProxy_searchPageText()
264 vector<Rectangle_i> rects; in Java_android_graphics_pdf_PdfDocumentProxy_selectPageText() local
265 page->GetTextBounds(native_start.index, native_stop.index, &rects); in Java_android_graphics_pdf_PdfDocumentProxy_selectPageText()
267 return convert::ToJavaSelection(env, pageNum, native_start, native_stop, rects, text); in Java_android_graphics_pdf_PdfDocumentProxy_selectPageText()
276 vector<Rectangle_i> rects; in Java_android_graphics_pdf_PdfDocumentProxy_getPageLinks() local
279 page->GetLinksUtf8(&rects, &link_to_rect, &urls); in Java_android_graphics_pdf_PdfDocumentProxy_getPageLinks()
281 return convert::ToJavaLinkRects(env, rects, link_to_rect, urls); in Java_android_graphics_pdf_PdfDocumentProxy_getPageLinks()
Dtext_test.cc60 int NumRectsForMatch(std::span<const Rectangle_i> rects, std::span<const int> match_to_rect, in NumRectsForMatch() argument
66 return rects.size() - match_to_rect[match]; in NumRectsForMatch()
/packages/providers/MediaProvider/pdf/framework/java/android/graphics/pdf/models/jni/
DMatchRects.java58 public MatchRects(@NonNull List<Rect> rects, @NonNull List<Integer> matchToRect, in MatchRects() argument
60 super(rects, matchToRect); in MatchRects()
61 this.mRects = Preconditions.checkNotNull(rects, "rects cannot be null"); in MatchRects()
DLinkRects.java57 public LinkRects(@NonNull List<Rect> rects, @NonNull List<Integer> linkToRect, in LinkRects() argument
59 super(rects, linkToRect); in LinkRects()
60 this.mRects = Preconditions.checkNotNull(rects, "rects cannot be null"); in LinkRects()
DPageSelection.java52 List<Rect> rects, String text) { in PageSelection() argument
56 this.mBounds = rects; in PageSelection()
/packages/apps/Launcher3/src/com/android/launcher3/util/rects/
DRects.kt17 package com.android.launcher3.util.rects
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/views/
DDesktopTaskView.kt35 import com.android.launcher3.util.rects.set in <lambda>()
DTaskView.kt80 import com.android.launcher3.util.rects.set in <lambda>()