/frameworks/base/core/tests/coretests/src/android/text/ |
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() 138 final int dist = (bottom - top) / 4; in testGetCursorPath_whenAltIsPressed() local 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() [all …]
|
/frameworks/av/media/codecs/amrwb/enc/src/ |
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()
|
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()
|
/frameworks/opt/setupwizard/tools/gradle/ |
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
|
D | dist-unit-tests.gradle | 2 * This script plugin is used to bundle the host test (e.g. Robolectric) results and dist it in 5 * - If a non-dist build is run with test, it will run the normal unit tests, failing the build if 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' 15 // If unit tests are run as part of the build, dist the test XML reports to host-test-reports/*.zip 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 [all …]
|
/frameworks/av/media/codecs/amrnb/enc/src/ |
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()
|
/frameworks/av/media/codecs/amrnb/common/src/ |
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() 655 dist += ((Word32) temp) * temp; in Vq_subvec3() [all …]
|
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()
|
/frameworks/rs/tests/java_api/ |
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)
|
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/pip/phone/ |
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()
|
/frameworks/rs/tests/java_api/RSTest_CompatLibLegacy/src/com/android/rs/test/ |
D | math_agree.rscript | 59 int dist = float_dist(actual, expected); 65 rsDebug("ULP difference", dist); 69 int2 dist; 70 dist.x = float_dist(actual.x, expected.x); 71 dist.y = float_dist(actual.y, expected.y); 81 rsDebug("ULP difference .x", dist.x); 82 rsDebug("ULP difference .y", dist.y); 86 int3 dist; 87 dist.x = float_dist(actual.x, expected.x); 88 dist.y = float_dist(actual.y, expected.y); [all …]
|
/frameworks/rs/tests/java_api/RSUnitTests/src/com/android/rs/unittest/ |
D | math_agree.rscript | 75 int dist = float_dist(actual, expected); 81 rsDebug("ULP difference", dist); 85 int2 dist; 86 dist.x = float_dist(actual.x, expected.x); 87 dist.y = float_dist(actual.y, expected.y); 97 rsDebug("ULP difference .x", dist.x); 98 rsDebug("ULP difference .y", dist.y); 102 int3 dist; 103 dist.x = float_dist(actual.x, expected.x); 104 dist.y = float_dist(actual.y, expected.y); [all …]
|
/frameworks/rs/tests/java_api/RsNbody/src/com/example/android/rs/nbody_gl/ |
D | nbody.rscript | 61 float dist = distance(mass.xyz, in.xyz); 62 dist = mad(dist * dist, dist, espSqr); 64 float invDistCubed = 1 / (dist);
|
/frameworks/rs/tests/java_api/RSUnitTests/supportlibsrc_gen/com/android/rs/unittest/ |
D | math_agree.rscript | 77 int dist = float_dist(actual, expected); 83 rsDebug("ULP difference", dist); 87 int2 dist; 88 dist.x = float_dist(actual.x, expected.x); 89 dist.y = float_dist(actual.y, expected.y); 99 rsDebug("ULP difference .x", dist.x); 100 rsDebug("ULP difference .y", dist.y); 104 int3 dist; 105 dist.x = float_dist(actual.x, expected.x); 106 dist.y = float_dist(actual.y, expected.y); [all …]
|
/frameworks/rs/tests/java_api/ImageProcessing/src/com/android/rs/image/ |
D | artistic1.rscript | 50 float dist = dot(xyDist, xyDist) * 1.4f; 51 float pdist = native_powr(dist, 2.7f * 0.5f); 52 //float pdist = powr(dist, 2.7f * 0.5f); 55 v1 = mix(v1, v2, dist * 2.f);
|
/frameworks/rs/tests/java_api/ImageProcessing2/src/com/android/rs/image/ |
D | artistic1.rscript | 50 float dist = dot(xyDist, xyDist) * 1.4f; 51 float pdist = native_powr(dist, 2.7f * 0.5f); 52 //float pdist = powr(dist, 2.7f * 0.5f); 55 v1 = mix(v1, v2, dist * 2.f);
|
/frameworks/rs/tests/java_api/ImageProcessing_jb/src/com/android/rs/image/ |
D | artistic1.rscript | 50 float dist = dot(xyDist, xyDist) * 1.4f; 51 float pdist = native_powr(dist, 2.7f * 0.5f); 52 //float pdist = powr(dist, 2.7f * 0.5f); 55 v1 = mix(v1, v2, dist * 2.f);
|
/frameworks/base/core/java/android/text/ |
D | Layout.java | 1632 float dist = Math.abs(horizontal.get(low) - horiz); in getOffsetForHorizontal() local 1636 if (other < dist) { in getOffsetForHorizontal() 1637 dist = other; in getOffsetForHorizontal() 1642 if (dist < bestdist) { in getOffsetForHorizontal() 1643 bestdist = dist; in getOffsetForHorizontal() 1649 float dist = Math.abs(horizontal.get(here) - horiz); in getOffsetForHorizontal() local 1651 if (dist < bestdist) { in getOffsetForHorizontal() 1652 bestdist = dist; in getOffsetForHorizontal() 1657 float dist = Math.abs(horizontal.get(max) - horiz); in getOffsetForHorizontal() local 1659 if (dist <= bestdist) { in getOffsetForHorizontal() [all …]
|
/frameworks/base/libs/hwui/jni/ |
D | PathMeasure.cpp | 91 …static jboolean getPosTan(JNIEnv* env, jobject clazz, jlong pairHandle, jfloat dist, jfloatArray p… in getPosTan() argument 97 if (!pair->fMeasure.getPosTan(dist, (SkPoint*)posPtr, (SkVector*)tanPtr)) { in getPosTan() 110 static jboolean getMatrix(JNIEnv* env, jobject clazz, jlong pairHandle, jfloat dist, in getMatrix() argument 114 bool result = pair->fMeasure.getMatrix(dist, matrix, (SkPathMeasure::MatrixFlags)flags); in getMatrix()
|
/frameworks/base/ |
D | StubLibraries.bp | 228 dist: { 242 dist: { 252 dist: { 270 dist: { 280 dist: { 287 dist: { 316 dist: { 321 // Legacy dist path 342 dist: { 358 dist: { [all …]
|
/frameworks/base/cmds/idmap2/libidmap2/ |
D | FileUtils.cpp | 58 std::uniform_int_distribution<int> dist(0, kCharLastIndex); in RandomStringForPath() local 60 out_rand[i] = kChars[dist(rd) % (kCharLastIndex)]; in RandomStringForPath()
|
/frameworks/av/services/camera/libcameraservice/tests/ |
D | DistortionMapperComp.py | 17 dist = np.array([0.1, -0.003, 0.02, 0.01, 0.004]) variable 29 expCoords = cv2.undistortPoints(rawCoords2, K, dist, P = K)
|
/frameworks/minikin/tests/stresstest/ |
D | MultithreadTest.cpp | 47 std::uniform_int_distribution<uint16_t> dist('A', 'Z'); in generateTestText() local 56 text.emplace_back(dist(*mt)); in generateTestText()
|
/frameworks/base/libs/WindowManager/Shell/tests/flicker/src/com/android/wm/shell/flicker/bubble/ |
D | DismissBubbleScreen.kt | 62 val dist = Point((displaySize.widthPixels / 2), displaySize.heightPixels) in <lambda>() constant 65 showBubble?.run { drag(dist, 1000) } ?: error("Show bubble not found") in <lambda>()
|
/frameworks/native/libs/vr/libpdx_uds/ |
D | client_channel_tests.cpp | 135 std::uniform_int_distribution<TestProtocol::DataType> dist{ in TEST_F() local 154 [&dist, &gen]() { return dist(gen); }); in TEST_F()
|