Home
last modified time | relevance | path

Searched refs:area (Results 1 – 25 of 32) sorted by relevance

12

/cts/tests/tests/text/src/android/text/cts/
DLayoutGetRangeForRectTest.java112 RectF area = new RectF( in character_anyOverlap() local
118 area, mGraphemeClusterSegmentFinder, Layout.INCLUSION_STRATEGY_ANY_OVERLAP); in character_anyOverlap()
128 RectF area = new RectF( in character_anyOverlap_multiLine() local
134 area, mGraphemeClusterSegmentFinder, Layout.INCLUSION_STRATEGY_ANY_OVERLAP); in character_anyOverlap_multiLine()
144 RectF area = new RectF(14f, mLineCenters[0] - 1f, 26f, mLineCenters[0] + 1f); in character_containsCenter() local
146 area, mGraphemeClusterSegmentFinder, Layout.INCLUSION_STRATEGY_CONTAINS_CENTER); in character_containsCenter()
158 RectF area = new RectF(6f, mLineCenters[0] - 1f, 34f, mLineCenters[0] + 1f); in character_containsCenter_partialCharacterButNotCenter() local
160 area, mGraphemeClusterSegmentFinder, Layout.INCLUSION_STRATEGY_CONTAINS_CENTER); in character_containsCenter_partialCharacterButNotCenter()
171 RectF area = new RectF(94f, mLineCenters[1] - 1f, 103f, mLineCenters[1] + 1f); in character_containsCenter_rtl() local
173 area, mGraphemeClusterSegmentFinder, Layout.INCLUSION_STRATEGY_CONTAINS_CENTER); in character_containsCenter_rtl()
[all …]
/cts/tests/tests/uirendering/src/android/uirendering/cts/bitmapverifiers/
DRegionVerifier.java47 Rect area = subRegionVerifier.region.getBounds(); in verify() local
49 subRegionVerifier.verifier, area); in verify()
52 Rect area = new Rect(); in verify() local
53 while (iter.next(area)) { in verify()
55 subRegionVerifier.verifier, area); in verify()
68 public RegionVerifier addVerifier(Rect area, BitmapVerifier verifier) { in addVerifier() argument
69 return addVerifier(new Region(area), verifier); in addVerifier()
72 public RegionVerifier addVerifier(Region area, BitmapVerifier verifier) { in addVerifier() argument
73 mRegionVerifiers.add(new SubRegionVerifiers(area, verifier)); in addVerifier()
/cts/tests/tests/media/common/src/android/media/cts/
DCodecUtils.java130 CodecImage image, Rect area, int y, int u, int v); in fillImageRectWithYUV() argument
132 public static void fillImageRectWithYUV(Image image, Rect area, int y, int u, int v) { in fillImageRectWithYUV() argument
133 fillImageRectWithYUV(ImageWrapper.createFromImage(image), area, y, u, v); in fillImageRectWithYUV() local
136 public native static long[] getRawStats(CodecImage image, Rect area); in getRawStats() argument
138 public static long[] getRawStats(Image image, Rect area) { in getRawStats() argument
139 return getRawStats(ImageWrapper.createFromImage(image), area); in getRawStats()
142 public native static float[] getYUVStats(CodecImage image, Rect area); in getYUVStats() argument
144 public static float[] getYUVStats(Image image, Rect area) { in getYUVStats() argument
145 return getYUVStats(ImageWrapper.createFromImage(image), area); in getYUVStats()
/cts/tests/tests/widget/src/android/widget/cts/
DTextViewHandwritingGestureTest.java205 RectF area = new RectF( in performSelectGesture_character() local
210 performSelectGesture(area, HandwritingGesture.GRANULARITY_CHARACTER); in performSelectGesture_character()
222 RectF area = new RectF( in previewSelectGesture_character() local
227 previewSelectGesture(area, HandwritingGesture.GRANULARITY_CHARACTER); in previewSelectGesture_character()
241 RectF area = new RectF( in performSelectGesture_word() local
246 performSelectGesture(area, HandwritingGesture.GRANULARITY_WORD); in performSelectGesture_word()
260 RectF area = new RectF( in previewSelectGesture_word() local
265 previewSelectGesture(area, HandwritingGesture.GRANULARITY_WORD); in previewSelectGesture_word()
281 RectF area = new RectF( in performSelectGesture_betweenWords_shouldFallback() local
286 performSelectGesture(area, HandwritingGesture.GRANULARITY_WORD); in performSelectGesture_betweenWords_shouldFallback()
[all …]
/cts/tests/tests/telephony/current/src/android/telephony/cts/
DSmsCbLocationTest.java44 SmsCbLocation area = new SmsCbLocation(PLMN, LAC, CID); in testIsInLocationArea() local
45 assertTrue(cbLocation.isInLocationArea(area)); in testIsInLocationArea()
/cts/apps/CameraITS/utils/
Dvideo_processing_utils.py97 area = size_to_area(size)
98 if area > largest_area:
99 largest_area = area
137 area = size_to_area(size)
138 if smallest_area > area >= min_area:
139 smallest_area = area
Dzoom_capture_utils.py192 area = cv2.contourArea(contour)
193 if area > min_area * _CONTOUR_AREA_LOGGING_THRESH: # skip tiny contours
195 area, min_area, len(contour), min_circle_pts)
196 if area > min_area and len(contour) >= min_circle_pts:
200 circlish = round((math.pi * radius**2) / area, 4)
207 logging.debug('circle found: r: %.2f, area: %.2f\n', radius, area)
208 circles.append([shape['ctx'], shape['cty'], radius, circlish, area])
Dpreview_processing_utils.py69 area = size_to_area(size)
70 if smallest_area > area >= _AREA_720P_VIDEO:
71 smallest_area = area
74 if area > largest_area:
75 largest_area = area
Dopencv_processing_utils.py515 area = cv2.contourArea(contour)
517 if (area > min_circle_area and num_pts >= CIRCLE_MIN_PTS):
521 circlish = (math.pi * radius**2) / area
717 area = cv2.contourArea(contour)
719 if (area > min_area and num_pts >= 4):
721 squarish = (shape['width'] * shape['height']) / area
803 area = cv2.contourArea(contour)
804 if area < square_area_min:
811 area = cv2.contourArea(contour)
812 areas.append(area)
[all …]
Dlow_light_utils.py101 area = w * h
102 if area > max_area:
103 max_area = area
/cts/tests/tests/media/common/jni/
Dcodec-utils-jni.cpp182 static std::unique_ptr<NativeImage> getNativeImage(JNIEnv *env, jobject image, jobject area = NULL)… in getNativeImage() argument
197 if (area == NULL) { in getNativeImage()
199 area = cropRect; in getNativeImage()
202 img->crop.left = env->GetIntField(area, gFields.fieldLeft); in getNativeImage()
203 img->crop.top = env->GetIntField(area, gFields.fieldTop); in getNativeImage()
204 img->crop.right = env->GetIntField(area, gFields.fieldRight); in getNativeImage()
205 img->crop.bottom = env->GetIntField(area, gFields.fieldBottom); in getNativeImage()
370 jclass /*clazz*/, jobject image, jobject area, jint y, jint u, jint v) in Java_android_media_cts_CodecUtils_fillImageRectWithYUV() argument
372 auto img = getNativeImage(env, image, area); in Java_android_media_cts_CodecUtils_fillImageRectWithYUV()
501 jclass /*clazz*/, jobject image, jobject area) in Java_android_media_cts_CodecUtils_getRawStats() argument
[all …]
/cts/tests/framework/base/windowmanager/jetpack/src/android/server/wm/jetpack/area/
DExtensionRearDisplayPresentationTest.java17 package android.server.wm.jetpack.area;
26 import static androidx.window.extensions.area.WindowAreaComponent.SESSION_STATE_ACTIVE;
27 import static androidx.window.extensions.area.WindowAreaComponent.SESSION_STATE_CONTENT_VISIBLE;
28 import static androidx.window.extensions.area.WindowAreaComponent.SESSION_STATE_INACTIVE;
61 import androidx.window.extensions.area.ExtensionWindowAreaPresentation;
62 import androidx.window.extensions.area.ExtensionWindowAreaStatus;
63 import androidx.window.extensions.area.WindowAreaComponent;
64 import androidx.window.extensions.area.WindowAreaComponent.WindowAreaStatus;
DExtensionRearDisplayPresentationKeyguardTest.java17 package android.server.wm.jetpack.area;
22 import static androidx.window.extensions.area.WindowAreaComponent.SESSION_STATE_ACTIVE;
23 import static androidx.window.extensions.area.WindowAreaComponent.SESSION_STATE_CONTENT_VISIBLE;
24 import static androidx.window.extensions.area.WindowAreaComponent.SESSION_STATE_INACTIVE;
51 import androidx.window.extensions.area.ExtensionWindowAreaPresentation;
52 import androidx.window.extensions.area.ExtensionWindowAreaStatus;
53 import androidx.window.extensions.area.WindowAreaComponent;
DTestPresentationView.java17 package android.server.wm.jetpack.area;
DExtensionRearDisplayTest.java17 package android.server.wm.jetpack.area;
54 import androidx.window.extensions.area.WindowAreaComponent;
55 import androidx.window.extensions.area.WindowAreaComponent.WindowAreaSessionState;
56 import androidx.window.extensions.area.WindowAreaComponent.WindowAreaStatus;
/cts/tests/framework/base/windowmanager/jetpack/src/android/server/wm/jetpack/utils/
DTestRearDisplayCrashingActivity.java23 import androidx.window.extensions.area.WindowAreaComponent;
DWindowExtensionTestRule.java24 import androidx.window.extensions.area.WindowAreaComponent;
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/sixdof/Utils/Path/
DReferencePath.java140 float area = 0.5f * Math.abs((part1 - part2)); in validateAreaCovered() local
141 if (area <= MINIMUM_AREA_OF_TRIANGLE) { in validateAreaCovered()
/cts/tests/tests/media/decoder/src/android/media/decoder/cts/
DImageReaderDecoderTest.java610 Rect area = new Rect(pos - step, pos, crop.width() / 2, crop.height() + 2 * step - pos); in validateSwirl() local
611 if (area.isEmpty()) { in validateSwirl()
614 area.offset(crop.left, crop.top); in validateSwirl()
615 area.intersect(crop); in validateSwirl()
617 long[] oneStat = CodecUtils.getRawStats(image, area); in validateSwirl()
618 if (VERBOSE) Log.v(TAG, "area=" + area + ", layer=" + layer + ", last=" in validateSwirl()
633 area.offset(crop.centerX() - area.left, 2 * (crop.centerY() - area.centerY())); in validateSwirl()
/cts/tests/tests/car/src/android/car/cts/
DCarPropertyValueTest.java134 for (int area : cfg.getAreaIds()) { in testGetPropertyAreaId()
135 expectedAreaIds.add(area); in testGetPropertyAreaId()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/camera/its/
DItsUtils.java208 int area = sizes[i].getWidth() * sizes[i].getHeight(); in getMaxSize() local
209 if (area > maxArea || in getMaxSize()
210 (area == maxArea && sizes[i].getWidth() > maxSize.getWidth())) { in getMaxSize()
212 maxArea = area; in getMaxSize()
/cts/tests/pdf/module/src/android/graphics/pdf/cts/module/
DUtils.java437 int area = 0; in calculateArea() local
445 area += rectArea; in calculateArea()
448 return area; in calculateArea()
/cts/tests/inputmethod/src/android/view/inputmethod/cts/
DTextBoundsInfoMethodTest.java966 TextBoundsInfo textBoundsInfo, RectF area, SegmentFinder segmentFinder, in assertGetRangeForRect() argument
969 textBoundsInfo.getRangeForRect(area, segmentFinder, textInclusionStrategy); in assertGetRangeForRect()
973 private static void assertGetRangeForRectIsNull(TextBoundsInfo textBoundsInfo, RectF area, in assertGetRangeForRectIsNull() argument
976 textBoundsInfo.getRangeForRect(area, segmentFinder, textInclusionStrategy); in assertGetRangeForRectIsNull()
/cts/tests/tests/graphics/src/android/graphics/cts/
DRegionTest.java115 private void verifyPointsInsideRegion(int[][] area) { in verifyPointsInsideRegion() argument
116 for (int i = 0; i < area.length; i ++) { in verifyPointsInsideRegion()
117 assertTrue(mRegion.contains(area[i][0], area[i][1])); in verifyPointsInsideRegion()
121 private void verifyPointsOutsideRegion(int[][] area) { in verifyPointsOutsideRegion() argument
122 for (int i = 0; i < area.length; i ++) { in verifyPointsOutsideRegion()
123 assertFalse(mRegion.contains(area[i][0], area[i][1])); in verifyPointsOutsideRegion()
/cts/tests/framework/base/windowmanager/jetpack/src/android/server/wm/jetpack/extensions/util/
DExtensionsUtil.java38 import androidx.window.extensions.area.WindowAreaComponent;

12