/aosp12/frameworks/base/core/tests/coretests/src/android/text/ |
H A D | LayoutBidiCursorPathTest.java | 99 final int dist = (bottom - top) / 4; in testGetCursorPath_whenShiftIsPressed() local 100 bottom -= dist; in testGetCursorPath_whenShiftIsPressed() 108 expectedPath.lineTo(h1 - dist, bottom + dist); in testGetCursorPath_whenShiftIsPressed() 110 expectedPath.moveTo(h1 - dist, bottom + dist - 0.5f); in testGetCursorPath_whenShiftIsPressed() 111 expectedPath.lineTo(h1 + dist, bottom + dist - 0.5f); in testGetCursorPath_whenShiftIsPressed() 113 expectedPath.moveTo(h1 + dist, bottom + dist); in testGetCursorPath_whenShiftIsPressed() 139 top += dist; in testGetCursorPath_whenAltIsPressed() 147 expectedPath.lineTo(h1 - dist, top - dist); in testGetCursorPath_whenAltIsPressed() 149 expectedPath.moveTo(h1 - dist, top - dist + 0.5f); in testGetCursorPath_whenAltIsPressed() 150 expectedPath.lineTo(h1 + dist, top - dist + 0.5f); in testGetCursorPath_whenAltIsPressed() [all …]
|
/aosp12/build/soong/cc/libbuildversion/tests/ |
H A D | Android.bp | 9 dist: { 14 dist: { 19 dist: { 24 dist: { 29 dist: { 34 dist: { 39 dist: { 44 dist: { 52 dist: { 71 dist: {
|
/aosp12/frameworks/av/media/codecs/amrwb/enc/src/ |
H A D | gpclip.c | 63 Word16 dist, dist_min; in Gp_clip_test_isf() local 70 dist = vo_sub(isf[i], isf[i - 1]); in Gp_clip_test_isf() 71 if(dist < dist_min) in Gp_clip_test_isf() 73 dist_min = dist; in Gp_clip_test_isf() 77 dist = extract_h(L_mac(vo_L_mult(26214, mem[0]), 6554, dist_min)); in Gp_clip_test_isf() 79 if (dist > DIST_ISF_MAX) in Gp_clip_test_isf() 81 dist = DIST_ISF_MAX; in Gp_clip_test_isf() 83 mem[0] = dist; in Gp_clip_test_isf()
|
H A D | qpisf_2s.c | 453 Word32 dist_min, dist; in Sub_VQ() local 461 dist = 0; in Sub_VQ() 466 dist += (temp * temp)<<1; in Sub_VQ() 469 if(dist < dist_min) in Sub_VQ() 471 dist_min = dist; in Sub_VQ() 500 Word32 dist_min[N_SURV_MAX], dist; in VQ_stage1() local 515 dist = 0; in VQ_stage1() 519 dist += (temp * temp)<<1; in VQ_stage1() 524 if(dist < dist_min[k]) in VQ_stage1() 531 dist_min[k] = dist; in VQ_stage1()
|
/aosp12/frameworks/opt/setupwizard/tools/gradle/ |
H A D | dist-unit-tests.gradle | 2 * This script plugin is used to bundle the host test (e.g. Robolectric) results and dist it in 7 * - If a dist build is run with test (e.g. ./gradlew dist test), the build will ignore any test 9 * dist/host-test-reports for consumption by TradeFed. 12 apply plugin: 'dist' 20 // running with 'dist'. (Usually as part of a build server build) 21 task.ignoreFailures = taskGraph.hasTask(tasks.dist) 34 // Copy the test reports to dist/host-test-reports 36 tasks.dist.mustRunAfter zipTask 99 // Copy the coverage reports to dist/host-test-coverage 101 tasks.dist.mustRunAfter jacocoTask [all …]
|
H A D | dist-library-instrumentation-tests.gradle | 2 * This script plugin is used to build and dist the test APK outputs of a library with multiple 5 * Compared to the defaults of the 'dist' plugin, it does two additional things: 6 * 1. It builds the "debug" test APKs when the 'dist' task is run. 7 * 2. It dist the test APKs using the original output file name instead of hard coding 12 apply plugin: 'dist' 14 // Set the dist files to empty map, and to tell DistExtension to not include the default files, 16 dist.files = [:] 19 tasks.dist.dependsOn variant.assemble 25 dist.file output.outputFile.canonicalPath, output.outputFile.name 31 dist.file output.outputFile.canonicalPath, output.outputFile.name
|
/aosp12/build/make/core/ |
H A D | distdir.mk | 36 define dist-for-goals 53 define dist-write-file 55 $(KATI_obsolete_var dist-for-goals,Cannot be used after dist-write-file) \ 69 .KATI_READONLY := dist-for-goals dist-write-file
|
/aosp12/frameworks/av/media/codecs/amrnb/common/src/ |
H A D | q_plsf_3.cpp | 289 Word32 dist; in Vq_subvec4() local 320 dist = ((Word32) temp) * temp; in Vq_subvec4() 324 dist += ((Word32) temp) * temp; in Vq_subvec4() 328 dist += ((Word32) temp) * temp; in Vq_subvec4() 332 dist += ((Word32) temp) * temp; in Vq_subvec4() 334 if (dist < dist_min) in Vq_subvec4() 336 dist_min = dist; in Vq_subvec4() 619 Word32 dist; in Vq_subvec3() local 651 dist = ((Word32) temp) * temp; in Vq_subvec3() 661 if (dist < dist_min) in Vq_subvec3() [all …]
|
H A D | q_plsf_5.cpp | 220 Word32 dist; in Vq_subvec() local 248 dist = ((Word32)temp * temp); in Vq_subvec() 250 if (dist >= dist_min) in Vq_subvec() 257 dist += ((Word32)temp * temp); in Vq_subvec() 259 if (dist >= dist_min) in Vq_subvec() 266 dist += ((Word32)temp * temp); in Vq_subvec() 268 if (dist >= dist_min) in Vq_subvec() 275 dist += ((Word32)temp * temp); in Vq_subvec() 278 if (dist < dist_min) in Vq_subvec() 280 dist_min = dist; in Vq_subvec()
|
/aosp12/frameworks/av/media/codecs/amrnb/enc/src/ |
H A D | ton_stab.cpp | 531 Word16 dist; in check_lsp() local 545 dist = *(p_lsp++) - *(p_lsp_1++); in check_lsp() 547 if (dist < dist_min1) in check_lsp() 549 dist_min1 = dist; in check_lsp() 559 dist = *(p_lsp++) - *(p_lsp_1++); in check_lsp() 561 if (dist < dist_min2) in check_lsp() 563 dist_min2 = dist; in check_lsp()
|
/aosp12/system/extras/simpleperf/ |
H A D | Android.bp | 345 dist: { 367 dist: { 372 dist: { 377 dist: { 382 dist: { 387 dist: { 392 dist: { 404 dist: { 409 dist: { 414 dist: { [all …]
|
/aosp12/system/teeui/libteeui/src/ |
H A D | utils.cpp | 36 Color pixelLineIntersect(Point<pxs> line, pxs dist, Color c) { in pixelLineIntersect() argument 37 TEEUI_LOG << "Line: " << line << " Dist: " << dist; in pixelLineIntersect() 38 bool more_than_half = dist < 0.0; in pixelLineIntersect() 42 if (dist.abs() < kEpsilon) { in pixelLineIntersect() 45 } else if (dist.abs() >= kHalfSqrt2) { in pixelLineIntersect() 49 auto dist_vec = line * dist; in pixelLineIntersect() 96 auto dist = 0_px; in drawLinePoint() local 111 dist = (line * (px_origin - a)).abs() - width + .5_px; in drawLinePoint() 114 return pixelLineIntersect(line, dist, c); in drawLinePoint() 119 auto dist = line.length() - r; in drawCirclePoint() local [all …]
|
/aosp12/art/test/003-omnibus-opcodes/src/ |
H A D | IntMath.java | 353 static int[] intShiftTest(int value, int dist) { in intShiftTest() argument 358 results[0] = value << dist; in intShiftTest() 359 results[1] = value >> dist; in intShiftTest() 360 results[2] = value >>> dist; in intShiftTest() 362 results[3] = (((value << dist) >> dist) >>> dist) << dist; in intShiftTest() 426 static long[] longShiftTest(long value, int dist) { in longShiftTest() argument 431 results[0] = value << dist; in longShiftTest() 432 results[1] = value >> dist; in longShiftTest() 433 results[2] = value >>> dist; in longShiftTest() 435 results[3] = (((value << dist) >> dist) >>> dist) << dist; in longShiftTest()
|
/aosp12/build/make/packaging/ |
H A D | distdir.mk | 20 include $(KATI_PACKAGE_MK_DIR)/dist.mk 30 define copy-one-dist-file 41 $(eval $(call copy-one-dist-file,$(src),$(dst)))) 44 copy-one-dist-file :=
|
/aosp12/frameworks/rs/tests/java_api/RSTest_CompatLibLegacy/src/com/android/rs/test/ |
H A D | math_agree.rscript | 65 rsDebug("ULP difference", dist); 69 int2 dist; 81 rsDebug("ULP difference .x", dist.x); 82 rsDebug("ULP difference .y", dist.y); 86 int3 dist; 103 rsDebug("ULP difference .x", dist.x); 104 rsDebug("ULP difference .y", dist.y); 105 rsDebug("ULP difference .z", dist.z); 109 int4 dist; 131 rsDebug("ULP difference .x", dist.x); [all …]
|
/aosp12/frameworks/rs/tests/java_api/RSUnitTests/src/com/android/rs/unittest/ |
H A D | math_agree.rscript | 81 rsDebug("ULP difference", dist); 85 int2 dist; 97 rsDebug("ULP difference .x", dist.x); 98 rsDebug("ULP difference .y", dist.y); 102 int3 dist; 119 rsDebug("ULP difference .x", dist.x); 120 rsDebug("ULP difference .y", dist.y); 121 rsDebug("ULP difference .z", dist.z); 125 int4 dist; 147 rsDebug("ULP difference .x", dist.x); [all …]
|
/aosp12/packages/apps/Gallery2/src/com/android/gallery3d/app/ |
H A D | OrientationManager.java | 145 int dist = Math.abs(orientation - orientationHistory); 146 dist = Math.min(dist, 360 - dist); 147 changeOrientation = (dist >= 45 + ORIENTATION_HYSTERESIS);
|
/aosp12/frameworks/rs/tests/java_api/ |
H A D | Android.mk | 25 $(call dist-for-goals,RSUnbundledTests,$(my_package_zip):$(my_package_name).zip) 42 $(call dist-for-goals,RSUnbundledTests,$(my_package_zip):$(my_package_name).zip) 43 $(call dist-for-goals,RSUnbundledTests19,$(my_package_zip):$(my_package_name).zip) 63 $(call dist-for-goals,RSTests,$(my_package_zip):$(my_package_name).zip)
|
/aosp12/frameworks/rs/tests/java_api/RSUnitTests/supportlibsrc_gen/com/android/rs/unittest/ |
H A D | math_agree.rscript | 83 rsDebug("ULP difference", dist); 87 int2 dist; 99 rsDebug("ULP difference .x", dist.x); 100 rsDebug("ULP difference .y", dist.y); 104 int3 dist; 121 rsDebug("ULP difference .x", dist.x); 122 rsDebug("ULP difference .y", dist.y); 123 rsDebug("ULP difference .z", dist.z); 127 int4 dist; 149 rsDebug("ULP difference .x", dist.x); [all …]
|
/aosp12/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/pip/phone/ |
H A D | PipPinchResizingAlgorithm.java | 46 float dist = (float) Math.hypot(lastSecondPoint.x - lastPoint.x, in calculateBoundsAndAngle() local 50 float overStretchMin = minScale - dist / downDist > 0 ? minScale - dist / downDist : 0; in calculateBoundsAndAngle() 51 float overStretchMax = dist / downDist - maxScale > 0 ? dist / downDist - maxScale : 0; in calculateBoundsAndAngle() 53 Math.min(maxScale + overStretchMax * OVERRESIZE_DAMP_FACTOR, dist / downDist)); in calculateBoundsAndAngle()
|
/aosp12/packages/apps/Dialer/java/com/android/incallui/answer/impl/classifier/ |
H A D | SpeedAnglesClassifier.java | 88 private float dist; field in SpeedAnglesClassifier.Data 98 dist = 0.0f; in Data() 104 dist += previousPoint.dist(point); in addPoint() 109 new Point((float) point.timeOffsetNano / DURATION_SCALE, dist / LENGTH_SCALE); in addPoint()
|
/aosp12/art/test/107-int-math2/src/ |
H A D | Main.java | 446 static int intShiftTest(int value, int dist) { in intShiftTest() argument 448 results[0] = value << dist; in intShiftTest() 449 results[1] = value >> dist; in intShiftTest() 450 results[2] = value >>> dist; in intShiftTest() 451 results[3] = (((value << dist) >> dist) >>> dist) << dist; in intShiftTest() 501 static long longShiftTest(long value, int dist) { in longShiftTest() argument 503 results[0] = value << dist; in longShiftTest() 504 results[1] = value >> dist; in longShiftTest() 505 results[2] = value >>> dist; in longShiftTest() 506 results[3] = (((value << dist) >> dist) >>> dist) << dist; in longShiftTest()
|
/aosp12/frameworks/rs/tests/java_api/RsNbody/src/com/example/android/rs/nbody_gl/ |
H A D | nbody.rscript | 61 float dist = distance(mass.xyz, in.xyz); 62 dist = mad(dist * dist, dist, espSqr); 64 float invDistCubed = 1 / (dist);
|
/aosp12/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/ |
H A D | MoreKeysDetector.java | 47 final int dist = key.squaredDistanceToEdge(touchX, touchY); in detectHitKey() local 48 if (dist < nearestDist) { in detectHitKey() 50 nearestDist = dist; in detectHitKey()
|
/aosp12/frameworks/base/core/java/android/text/ |
H A D | Layout.java | 1905 dest.lineTo(h1 - dist, bottom + dist); in getCursorPath() 1907 dest.lineTo(h1 + dist, bottom + dist); in getCursorPath() 1910 dest.lineTo(h1 - dist, bottom + dist); in getCursorPath() 1912 dest.moveTo(h1 - dist, bottom + dist - 0.5f); in getCursorPath() 1915 dest.moveTo(h1 + dist, bottom + dist); in getCursorPath() 1921 dest.lineTo(h1 - dist, top - dist); in getCursorPath() 1923 dest.lineTo(h1 + dist, top - dist); in getCursorPath() 1926 dest.lineTo(h1 - dist, top - dist); in getCursorPath() 1928 dest.moveTo(h1 - dist, top - dist + 0.5f); in getCursorPath() 1929 dest.lineTo(h1 + dist, top - dist + 0.5f); in getCursorPath() [all …]
|