Home
last modified time | relevance | path

Searched refs:f (Results 1 – 25 of 1054) sorted by relevance

12345678910>>...43

/frameworks/rs/tests/java_api/CannyLive/src/com/android/example/cannylive/
Dcanny.rs270 int dir = (int)(4 * native_atan2pi((float)sum_v, (float)sum_h) + 8.5f);
368 float2 cs[] = {{1.0f,0.0f},
369 … {0.9999619f,0.008726535f},{0.9998477f,0.017452406f},{0.99965733f,0.026176948f},
370 … {0.99939084f,0.034899496f},{0.99904823f,0.043619387f},{0.9986295f,0.052335955f},
371 … {0.9981348f,0.06104854f},{0.9975641f,0.06975647f},{0.9969173f,0.0784591f},
372 … {0.9961947f,0.087155744f},{0.9953962f,0.09584575f},{0.9945219f,0.104528464f},
373 … {0.9935719f,0.11320321f},{0.99254614f,0.12186934f},{0.9914449f,0.13052619f},
374 … {0.99026805f,0.1391731f},{0.9890159f,0.14780942f},{0.98768836f,0.15643446f},
375 … {0.9862856f,0.1650476f},{0.9848077f,0.17364818f},{0.9832549f,0.18223552f},
376 … {0.98162717f,0.190809f},{0.9799247f,0.19936794f},{0.9781476f,0.20791169f},
[all …]
/frameworks/ml/nn/tools/test_generator/tests/P_backward_compatibility_float/
Dstdout.txt.expect58 static float cell_clip_param_init[] = {0.0f};
60 static float proj_clip_param_init[] = {0.0f};
83f, 3.0f}}, {1, {-0.45018822f, -0.02338299f, -0.0870589f, -0.34550029f, 0.04266912f, -0.15680569f, …
92f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f}}, {1,…
/frameworks/ml/nn/tools/test_generator/tests/P_vts_backward_compatibility_float/
Dstdout.txt.expect20 .scale = 0.0f,
29 .scale = 0.0f,
38 .scale = 0.0f,
47 .scale = 0.0f,
56 .scale = 0.0f,
65 .scale = 0.0f,
74 .scale = 0.0f,
83 .scale = 0.0f,
92 .scale = 0.0f,
101 .scale = 0.0f,
[all …]
/frameworks/rs/
Drsg_generator.c24 void printFileHeader(FILE *f) { in printFileHeader() argument
25 fprintf(f, "/*\n"); in printFileHeader()
26 fprintf(f, " * Copyright (C) 2015 The Android Open Source Project\n"); in printFileHeader()
27 fprintf(f, " *\n"); in printFileHeader()
28 fprintf(f, " * Licensed under the Apache License, Version 2.0 (the \"License\");\n"); in printFileHeader()
29 fprintf(f, " * you may not use this file except in compliance with the License.\n"); in printFileHeader()
30 fprintf(f, " * You may obtain a copy of the License at\n"); in printFileHeader()
31 fprintf(f, " *\n"); in printFileHeader()
32 fprintf(f, " * http://www.apache.org/licenses/LICENSE-2.0\n"); in printFileHeader()
33 fprintf(f, " *\n"); in printFileHeader()
[all …]
/frameworks/rs/tests/java_api/ImageProcessing/src/com/android/rs/image/
DConvolve5x5.java47 float f[] = new float[25]; in createTest() local
60 f[0] = -1.f; f[1] = -3.f; f[2] = -4.f; f[3] = -3.f; f[4] = -1.f; in createTest()
61 f[5] = -3.f; f[6] = 0.f; f[7] = 6.f; f[8] = 0.f; f[9] = -3.f; in createTest()
62 f[10]= -4.f; f[11]= 6.f; f[12]= 20.f; f[13]= 6.f; f[14]= -4.f; in createTest()
63 f[15]= -3.f; f[16]= 0.f; f[17]= 6.f; f[18]= 0.f; f[19]= -3.f; in createTest()
64 f[20]= -1.f; f[21]= -3.f; f[22]= -4.f; f[23]= -3.f; f[24]= -1.f; in createTest()
68 mIntrinsic.setCoefficients(f); in createTest()
72 mScript.set_gCoeffs(f); in createTest()
/frameworks/rs/tests/java_api/VrDemo/src/com/example/android/rs/vr/engine/
Dbugdroid.rs25 static float sigmoid(float f) {
26 return (float) (1 / (1 + exp(f / 2)));
116 float3 p1 = { size * 0.5f, size * 0.5f, size * 0.3f };
117 float3 p2 = { size * 0.5f, size * 0.5f, size * 0.65f };
118 float radius = size * 0.22f;
120 p2.z = size * 0.4f;
122 float3 normal = { 0.0f, 0.0f, 1.0f };
123 v -= circle(p1, radius*0.9f, normal, size * 0.05f, 144, img);
125 float armOffset = 0.27f;
127 float3 p1 = { size * (0.5f - armOffset), size * 0.5f, size * 0.4f };
[all …]
/frameworks/rs/tests/java_api/RSUnitTests/supportlibsrc_gen/com/android/rs/unittest/
Dclamp.rs24 float2 src2 = { 2.0f, 2.0f};
25 float2 min2 = { 0.5f, -3.0f};
26 float2 max2 = { 1.0f, 9.0f};
29 _RS_ASSERT(res2.x == 1.0f);
30 _RS_ASSERT(res2.y == 2.0f);
33 float3 src3 = { 2.0f, 2.0f, 1.0f};
34 float3 min3 = { 0.5f, -3.0f, 3.0f};
35 float3 max3 = { 1.0f, 9.0f, 4.0f};
38 _RS_ASSERT(res3.x == 1.0f);
39 _RS_ASSERT(res3.y == 2.0f);
[all …]
Dfp_mad.rs32 data_f4[i] = (data_f4[i] * 0.02f +
33 data_f4[i+1] * 0.04f +
34 data_f4[i+2] * 0.05f +
35 data_f4[i+3] * 0.1f +
36 data_f4[i+4] * 0.2f +
37 data_f4[i+5] * 0.2f +
38 data_f4[i+6] * 0.1f +
39 data_f4[i+7] * 0.05f +
40 data_f4[i+8] * 0.04f +
41 data_f4[i+9] * 0.02f + 1.f);
[all …]
/frameworks/rs/tests/java_api/RSUnitTests/src/com/android/rs/unittest/
Dclamp.rs22 float2 src2 = { 2.0f, 2.0f};
23 float2 min2 = { 0.5f, -3.0f};
24 float2 max2 = { 1.0f, 9.0f};
27 _RS_ASSERT(res2.x == 1.0f);
28 _RS_ASSERT(res2.y == 2.0f);
31 float3 src3 = { 2.0f, 2.0f, 1.0f};
32 float3 min3 = { 0.5f, -3.0f, 3.0f};
33 float3 max3 = { 1.0f, 9.0f, 4.0f};
36 _RS_ASSERT(res3.x == 1.0f);
37 _RS_ASSERT(res3.y == 2.0f);
[all …]
Dfp_mad.rs30 data_f4[i] = (data_f4[i] * 0.02f +
31 data_f4[i+1] * 0.04f +
32 data_f4[i+2] * 0.05f +
33 data_f4[i+3] * 0.1f +
34 data_f4[i+4] * 0.2f +
35 data_f4[i+5] * 0.2f +
36 data_f4[i+6] * 0.1f +
37 data_f4[i+7] * 0.05f +
38 data_f4[i+8] * 0.04f +
39 data_f4[i+9] * 0.02f + 1.f);
[all …]
/frameworks/rs/tests/java_api/RSTest_CompatLibLegacy/src/com/android/rs/test/
Dclamp.rs6 float2 src2 = { 2.0f, 2.0f};
7 float2 min2 = { 0.5f, -3.0f};
8 float2 max2 = { 1.0f, 9.0f};
11 _RS_ASSERT(res2.x == 1.0f);
12 _RS_ASSERT(res2.y == 2.0f);
15 float3 src3 = { 2.0f, 2.0f, 1.0f};
16 float3 min3 = { 0.5f, -3.0f, 3.0f};
17 float3 max3 = { 1.0f, 9.0f, 4.0f};
20 _RS_ASSERT(res3.x == 1.0f);
21 _RS_ASSERT(res3.y == 2.0f);
[all …]
Dfp_mad.rs14 data_f4[i] = (data_f4[i] * 0.02f +
15 data_f4[i+1] * 0.04f +
16 data_f4[i+2] * 0.05f +
17 data_f4[i+3] * 0.1f +
18 data_f4[i+4] * 0.2f +
19 data_f4[i+5] * 0.2f +
20 data_f4[i+6] * 0.1f +
21 data_f4[i+7] * 0.05f +
22 data_f4[i+8] * 0.04f +
23 data_f4[i+9] * 0.02f + 1.f);
[all …]
/frameworks/rs/tests/java_api/ImageProcessing2/src/com/android/rs/image/
DConvolve5x5.java37 return (v2 * p) + (v1 * (1.f-p)); in blend()
41 float f[] = new float[25]; in updateMatrix() local
42 final float f125 = 1.f / 25.f; in updateMatrix()
43 float cf1 = blend(f125, -1.f, str); in updateMatrix()
44 float cf2 = blend(f125, -3.f, str); in updateMatrix()
45 float cf3 = blend(f125, -4.f, str); in updateMatrix()
46 float cf4 = blend(f125, 6.f, str); in updateMatrix()
47 float cf5 = blend(f125, 20.f, str); in updateMatrix()
48 float cf6 = blend(f125, 0.f, str); in updateMatrix()
49 f[0] = cf1; f[1] = cf2; f[2] = cf3; f[3] = cf2; f[4] = cf1; in updateMatrix()
[all …]
DConvolve3x3.java37 return (v2 * p) + (v1 * (1.f-p)); in blend()
41 float f[] = new float[9]; in updateMatrix() local
42 float cf1 = blend(1.f / 9.f, 0.f, str); in updateMatrix()
43 float cf2 = blend(1.f / 9.f, -1.f, str); in updateMatrix()
44 float cf3 = blend(1.f / 9.f, 5.f, str); in updateMatrix()
45 f[0] = cf1; f[1] = cf2; f[2] = cf1; in updateMatrix()
46 f[3] = cf2; f[4] = cf3; f[5] = cf2; in updateMatrix()
47 f[6] = cf1; f[7] = cf2; f[8] = cf1; in updateMatrix()
48 return f; in updateMatrix()
55 float f[] = updateMatrix(1.f); in createTest() local
[all …]
/frameworks/rs/tests/java_api/ImageProcessing_jb/src/com/android/rs/image/
DConvolve5x5.java44 return (v2 * p) + (v1 * (1.f-p)); in blend()
48 float f[] = new float[25]; in updateMatrix() local
49 final float f125 = 1.f / 25.f; in updateMatrix()
50 float cf1 = blend(f125, -1.f, str); in updateMatrix()
51 float cf2 = blend(f125, -3.f, str); in updateMatrix()
52 float cf3 = blend(f125, -4.f, str); in updateMatrix()
53 float cf4 = blend(f125, 6.f, str); in updateMatrix()
54 float cf5 = blend(f125, 20.f, str); in updateMatrix()
55 float cf6 = blend(f125, 0.f, str); in updateMatrix()
56 f[0] = cf1; f[1] = cf2; f[2] = cf3; f[3] = cf2; f[4] = cf1; in updateMatrix()
[all …]
/frameworks/ml/nn/tools/test_generator/tests/P_variation/
Dstdout.txt.expect32 …static float op2_init[] = {1.0f, 2.0f, 3.0f, 4.0f, 5.0f, 6.0f, 7.0f, 8.0f, 8.0f, 7.0f, 6.0f, 5.0f,…
34 static float op3_init[] = {-200.0f};
65 {{0, {1.0f, 2.0f, 3.0f, 4.0f, 5.0f, 6.0f, 7.0f, 8.0f}}},
74 {{0, {204.0f, 120.0f, 94.0f, 104.0f, 70.0f, 164.0f, 23.0f, 112.0f}}},
105 …static float op2_init[] = {1.0f, 2.0f, 3.0f, 4.0f, 5.0f, 6.0f, 7.0f, 8.0f, 8.0f, 7.0f, 6.0f, 5.0f,…
107 static float op3_init[] = {-200.0f};
140 {{0, {1.0f, 2.0f, 3.0f, 4.0f, 5.0f, 6.0f, 7.0f, 8.0f}}},
149 {{0, {204.0f, 120.0f, 94.0f, 104.0f, 70.0f, 164.0f, 23.0f, 112.0f}}},
169 OperandType type4(Type::TENSOR_QUANT8_ASYMM, {1, 2, 2, 2}, 0.5f, 128);
170 OperandType type5(Type::TENSOR_QUANT8_ASYMM, {2, 2, 2, 2}, 0.25f, 128);
[all …]
/frameworks/rs/tests/java_api/RsTest_16/src/com/android/rs/test/
Dfp_mad.rs14 data_f4[i] = (data_f4[i] * 0.02f +
15 data_f4[i+1] * 0.04f +
16 data_f4[i+2] * 0.05f +
17 data_f4[i+3] * 0.1f +
18 data_f4[i+4] * 0.2f +
19 data_f4[i+5] * 0.2f +
20 data_f4[i+6] * 0.1f +
21 data_f4[i+7] * 0.05f +
22 data_f4[i+8] * 0.04f +
23 data_f4[i+9] * 0.02f + 1.f);
[all …]
/frameworks/rs/tests/java_api/RsTest_14/src/com/android/rs/test/
Dfp_mad.rs14 data_f4[i] = (data_f4[i] * 0.02f +
15 data_f4[i+1] * 0.04f +
16 data_f4[i+2] * 0.05f +
17 data_f4[i+3] * 0.1f +
18 data_f4[i+4] * 0.2f +
19 data_f4[i+5] * 0.2f +
20 data_f4[i+6] * 0.1f +
21 data_f4[i+7] * 0.05f +
22 data_f4[i+8] * 0.04f +
23 data_f4[i+9] * 0.02f + 1.f);
[all …]
/frameworks/rs/tests/java_api/RsTest_11/src/com/android/rs/test/
Dfp_mad.rs14 data_f4[i] = (data_f4[i] * 0.02f +
15 data_f4[i+1] * 0.04f +
16 data_f4[i+2] * 0.05f +
17 data_f4[i+3] * 0.1f +
18 data_f4[i+4] * 0.2f +
19 data_f4[i+5] * 0.2f +
20 data_f4[i+6] * 0.1f +
21 data_f4[i+7] * 0.05f +
22 data_f4[i+8] * 0.04f +
23 data_f4[i+9] * 0.02f + 1.f);
[all …]
/frameworks/base/core/tests/benchmarks/src/android/util/
DFloatMathBenchmark.java24 float f = 0.0f; in timeFloatMathCeil() local
26 f += FloatMath.ceil(100.123f); in timeFloatMathCeil()
28 return f; in timeFloatMathCeil()
33 float f = 0.0f; in timeFloatMathCeil_math() local
35 f += (float) Math.ceil(100.123f); in timeFloatMathCeil_math()
37 return f; in timeFloatMathCeil_math()
42 float f = 0.0f; in timeFloatMathCos() local
44 f += FloatMath.cos(100.123f); in timeFloatMathCos()
46 return f; in timeFloatMathCos()
51 float f = 0.0f; in timeFloatMathExp() local
[all …]
/frameworks/ml/nn/tools/test_generator/tests/P_naming/
Dstdout.txt.expect32 …static float op2_init[] = {1.0f, 2.0f, 3.0f, 4.0f, 5.0f, 6.0f, 7.0f, 8.0f, 8.0f, 7.0f, 6.0f, 5.0f,…
34 static float op3_init[] = {-200.0f};
65 {{0, {1.0f, 2.0f, 3.0f, 4.0f, 5.0f, 6.0f, 7.0f, 8.0f}}},
74 {{0, {204.0f, 120.0f, 94.0f, 104.0f, 70.0f, 164.0f, 23.0f, 112.0f}}},
105 …static float op2_init[] = {1.0f, 2.0f, 3.0f, 4.0f, 5.0f, 6.0f, 7.0f, 8.0f, 8.0f, 7.0f, 6.0f, 5.0f,…
107 static float op3_init[] = {-200.0f};
140 {{0, {1.0f, 2.0f, 3.0f, 4.0f, 5.0f, 6.0f, 7.0f, 8.0f}}},
149 {{0, {204.0f, 120.0f, 94.0f, 104.0f, 70.0f, 164.0f, 23.0f, 112.0f}}},
169 OperandType type4(Type::TENSOR_QUANT8_ASYMM, {1, 2, 2, 2}, 0.5f, 128);
170 OperandType type5(Type::TENSOR_QUANT8_ASYMM, {2, 2, 2, 2}, 0.25f, 128);
[all …]
/frameworks/ml/nn/tools/test_generator/tests/P_implicit_variation/
Dstdout.txt.expect32 …static float op2_init[] = {1.0f, 2.0f, 3.0f, 4.0f, 5.0f, 6.0f, 7.0f, 8.0f, 8.0f, 7.0f, 6.0f, 5.0f,…
34 static float op3_init[] = {-200.0f};
65 {{0, {1.0f, 2.0f, 3.0f, 4.0f, 5.0f, 6.0f, 7.0f, 8.0f}}},
74 {{0, {204.0f, 120.0f, 94.0f, 104.0f, 70.0f, 164.0f, 23.0f, 112.0f}}},
105 …static float op2_init[] = {1.0f, 2.0f, 3.0f, 4.0f, 5.0f, 6.0f, 7.0f, 8.0f, 8.0f, 7.0f, 6.0f, 5.0f,…
107 static float op3_init[] = {-200.0f};
140 {{0, {1.0f, 2.0f, 3.0f, 4.0f, 5.0f, 6.0f, 7.0f, 8.0f}}},
149 {{0, {204.0f, 120.0f, 94.0f, 104.0f, 70.0f, 164.0f, 23.0f, 112.0f}}},
169 OperandType type4(Type::TENSOR_QUANT8_ASYMM, {1, 2, 2, 2}, 0.5f, 128);
170 OperandType type5(Type::TENSOR_QUANT8_ASYMM, {2, 2, 2, 2}, 0.25f, 128);
[all …]
/frameworks/ml/nn/tools/test_generator/tests/P_vts_variation/
Dstdout.txt.expect20 .scale = 0.0f,
29 .scale = 0.0f,
38 .scale = 0.0f,
47 .scale = 0.0f,
56 .scale = 0.0f,
65 .scale = 0.0f,
74 .scale = 0.0f,
83 .scale = 0.0f,
92 .scale = 0.0f,
135 {{0, {1.0f, 2.0f, 3.0f, 4.0f, 5.0f, 6.0f, 7.0f, 8.0f}}},
[all …]
/frameworks/ml/nn/tools/test_generator/tests/P_vts_implicit_variation/
Dstdout.txt.expect20 .scale = 0.0f,
29 .scale = 0.0f,
38 .scale = 0.0f,
47 .scale = 0.0f,
56 .scale = 0.0f,
65 .scale = 0.0f,
74 .scale = 0.0f,
83 .scale = 0.0f,
92 .scale = 0.0f,
135 {{0, {1.0f, 2.0f, 3.0f, 4.0f, 5.0f, 6.0f, 7.0f, 8.0f}}},
[all …]
/frameworks/ml/nn/tools/test_generator/tests/P_vts_naming/
Dstdout.txt.expect20 .scale = 0.0f,
29 .scale = 0.0f,
38 .scale = 0.0f,
47 .scale = 0.0f,
56 .scale = 0.0f,
65 .scale = 0.0f,
74 .scale = 0.0f,
83 .scale = 0.0f,
92 .scale = 0.0f,
135 {{0, {1.0f, 2.0f, 3.0f, 4.0f, 5.0f, 6.0f, 7.0f, 8.0f}}},
[all …]

12345678910>>...43