Searched defs:v2 (Results 1 - 25 of 43) sorted by relevance

12

/frameworks/base/libs/androidfw/tests/
H A DTypeWrappers_test.cpp57 Res_value v2; local
58 memset(&v2, 0, sizeof(v2));
59 t.header.size += sizeof(v2);
73 memcpy(p, &v2, sizeof(v2));
74 p += sizeof(v2);
/frameworks/base/tools/split-select/
H A DAbi.cpp24 static Vector<Variant> buildVariants(Variant v1, Variant v2) { argument
27 v.add(v2);
31 static Vector<Variant> buildVariants(Variant v1, Variant v2, Variant v3) { argument
34 v.add(v2);
/frameworks/rs/tests/java_api/RsTest/src/com/android/rs/test/
H A DUT_bug_char.java39 private byte min(byte v1, byte v2) { argument
40 return v1 < v2 ? v1 : v2;
43 private byte[] min(byte[] v1, byte[] v2) { argument
44 assert v1.length == v2.length;
47 rv[i] = min(v1[i], v2[i]);
H A DUT_math_agree.java181 private float min(float v1, float v2) { argument
182 return v1 < v2 ? v1 : v2;
185 private float[] min(float[] v1, float[] v2) { argument
186 assert v1.length == v2.length;
189 rv[i] = min(v1[i], v2[i]);
193 private byte min(byte v1, byte v2) { argument
194 return v1 < v2 ? v1 : v2;
197 private byte[] min(byte[] v1, byte[] v2) { argument
205 min(short v1, short v2) argument
209 min(short[] v1, short[] v2) argument
217 min(int v1, int v2) argument
221 min(int[] v1, int[] v2) argument
229 min(long v1, long v2) argument
233 min(long[] v1, long[] v2) argument
243 max(float v1, float v2) argument
247 max(float[] v1, float[] v2) argument
255 max(byte v1, byte v2) argument
259 max(byte[] v1, byte[] v2) argument
267 max(short v1, short v2) argument
271 max(short[] v1, short[] v2) argument
279 max(int v1, int v2) argument
283 max(int[] v1, int[] v2) argument
291 max(long v1, long v2) argument
295 max(long[] v1, long[] v2) argument
305 fmin(float v1, float v2) argument
309 fmin(float[] v1, float[] v2) argument
313 fmin(float[] v1, float v2) argument
321 fmax(float v1, float v2) argument
325 fmax(float[] v1, float[] v2) argument
329 fmax(float[] v1, float v2) argument
[all...]
/frameworks/rs/tests/java_api/RSTest_CompatLib/src/com/android/rs/test/
H A DUT_bug_char.java40 private byte min(byte v1, byte v2) { argument
41 return v1 < v2 ? v1 : v2;
43 private byte[] min(byte[] v1, byte[] v2) { argument
44 assert v1.length == v2.length;
47 rv[i] = min(v1[i], v2[i]);
H A DUT_math_agree.java149 private float min(float v1, float v2) { argument
150 return v1 < v2 ? v1 : v2;
152 private float[] min(float[] v1, float[] v2) { argument
153 assert v1.length == v2.length;
156 rv[i] = min(v1[i], v2[i]);
159 private byte min(byte v1, byte v2) { argument
160 return v1 < v2 ? v1 : v2;
162 private byte[] min(byte[] v1, byte[] v2) { argument
169 min(short v1, short v2) argument
172 min(short[] v1, short[] v2) argument
179 min(int v1, int v2) argument
182 min(int[] v1, int[] v2) argument
189 min(long v1, long v2) argument
192 min(long[] v1, long[] v2) argument
202 max(float v1, float v2) argument
205 max(float[] v1, float[] v2) argument
212 max(byte v1, byte v2) argument
215 max(byte[] v1, byte[] v2) argument
222 max(short v1, short v2) argument
225 max(short[] v1, short[] v2) argument
232 max(int v1, int v2) argument
235 max(int[] v1, int[] v2) argument
242 max(long v1, long v2) argument
245 max(long[] v1, long[] v2) argument
255 fmin(float v1, float v2) argument
258 fmin(float[] v1, float[] v2) argument
261 fmin(float[] v1, float v2) argument
269 fmax(float v1, float v2) argument
272 fmax(float[] v1, float[] v2) argument
275 fmax(float[] v1, float v2) argument
[all...]
/frameworks/rs/tests/java_api/RSTest_CompatLibLegacy/src/com/android/rs/test/
H A DUT_bug_char.java40 private byte min(byte v1, byte v2) { argument
41 return v1 < v2 ? v1 : v2;
43 private byte[] min(byte[] v1, byte[] v2) { argument
44 assert v1.length == v2.length;
47 rv[i] = min(v1[i], v2[i]);
H A DUT_math_agree.java149 private float min(float v1, float v2) { argument
150 return v1 < v2 ? v1 : v2;
152 private float[] min(float[] v1, float[] v2) { argument
153 assert v1.length == v2.length;
156 rv[i] = min(v1[i], v2[i]);
159 private byte min(byte v1, byte v2) { argument
160 return v1 < v2 ? v1 : v2;
162 private byte[] min(byte[] v1, byte[] v2) { argument
169 min(short v1, short v2) argument
172 min(short[] v1, short[] v2) argument
179 min(int v1, int v2) argument
182 min(int[] v1, int[] v2) argument
189 min(long v1, long v2) argument
192 min(long[] v1, long[] v2) argument
202 max(float v1, float v2) argument
205 max(float[] v1, float[] v2) argument
212 max(byte v1, byte v2) argument
215 max(byte[] v1, byte[] v2) argument
222 max(short v1, short v2) argument
225 max(short[] v1, short[] v2) argument
232 max(int v1, int v2) argument
235 max(int[] v1, int[] v2) argument
242 max(long v1, long v2) argument
245 max(long[] v1, long[] v2) argument
255 fmin(float v1, float v2) argument
258 fmin(float[] v1, float[] v2) argument
261 fmin(float[] v1, float v2) argument
269 fmax(float v1, float v2) argument
272 fmax(float[] v1, float[] v2) argument
275 fmax(float[] v1, float v2) argument
[all...]
/frameworks/rs/tests/java_api/ImageProcessing2/src/com/android/rs/image/
H A DConvolve3x3.java36 private float blend(float v1, float v2, float p) { argument
37 return (v2 * p) + (v1 * (1.f-p));
H A DConvolve5x5.java36 private float blend(float v1, float v2, float p) { argument
37 return (v2 * p) + (v1 * (1.f-p));
/frameworks/rs/tests/java_api/ImageProcessing_jb/src/com/android/rs/image/
H A DConvolve3x3.java43 private float blend(float v1, float v2, float p) { argument
44 return (v2 * p) + (v1 * (1.f-p));
H A DConvolve5x5.java43 private float blend(float v1, float v2, float p) { argument
44 return (v2 * p) + (v1 * (1.f-p));
/frameworks/av/media/libstagefright/codecs/m4v_h263/dec/src/
H A Dconceal.cpp151 uint8 *y1, *y2, *u1, *u2, *v1, *v2; local
168 v2 = prevFrame + size + (size >> 2) + chrstart;
191 oscl_memcpy(v1, v2, B_SIZE);
193 v2 += width_C;
194 oscl_memcpy(v1, v2, B_SIZE);
196 v2 += width_C;
/frameworks/base/libs/hwui/utils/
H A DMathUtils.h90 inline static float lerp(float v1, float v2, float t) { argument
91 return v1 + ((v2 - v1) * t);
/frameworks/base/tests/ActivityTests/src/com/google/android/test/activity/
H A DArrayMapTests.java111 private static boolean compare(Object v1, Object v2) { argument
113 return v2 == null;
115 if (v2 == null) {
118 return v1.equals(v2);
/frameworks/native/libs/vr/libpdx/
H A Dvariant_tests.cpp213 Variant<std::string> v2; local
217 v2 = v1;
218 ASSERT_TRUE(v2.is<std::string>());
219 EXPECT_EQ("test", std::get<std::string>(v2));
616 Variant<int, bool, float, int> v2; local
618 EXPECT_EQ(0, v2.index_of<int>());
619 EXPECT_EQ(1, v2.index_of<bool>());
620 EXPECT_EQ(2, v2.index_of<float>());
/frameworks/rs/driver/runtime/arch/
H A Dgeneric.c118 extern float __attribute__((overloadable)) fmax(float v1, float v2) { argument
119 return v1 > v2 ? v1 : v2;
122 extern float2 __attribute__((overloadable)) fmax(float2 v1, float2 v2) { argument
124 r.x = v1.x > v2.x ? v1.x : v2.x;
125 r.y = v1.y > v2.y ? v1.y : v2.y;
129 extern float3 __attribute__((overloadable)) fmax(float3 v1, float3 v2) { argument
131 r.x = v1.x > v2
137 fmax(float4 v1, float4 v2) argument
146 fmax(float2 v1, float v2) argument
153 fmax(float3 v1, float v2) argument
161 fmax(float4 v1, float v2) argument
170 fmin(float v1, float v2) argument
178 fmin(float2 v1, float2 v2) argument
185 fmin(float3 v1, float3 v2) argument
193 fmin(float4 v1, float4 v2) argument
202 fmin(float2 v1, float v2) argument
209 fmin(float3 v1, float v2) argument
217 fmin(float4 v1, float v2) argument
231 max(char v1, char v2) argument
235 max(char2 v1, char2 v2) argument
242 max(char3 v1, char3 v2) argument
250 max(char4 v1, char4 v2) argument
259 max(short v1, short v2) argument
263 max(short2 v1, short2 v2) argument
270 max(short3 v1, short3 v2) argument
278 max(short4 v1, short4 v2) argument
287 max(int v1, int v2) argument
291 max(int2 v1, int2 v2) argument
298 max(int3 v1, int3 v2) argument
306 max(int4 v1, int4 v2) argument
315 max(uchar v1, uchar v2) argument
319 max(uchar2 v1, uchar2 v2) argument
326 max(uchar3 v1, uchar3 v2) argument
334 max(uchar4 v1, uchar4 v2) argument
343 max(ushort v1, ushort v2) argument
347 max(ushort2 v1, ushort2 v2) argument
354 max(ushort3 v1, ushort3 v2) argument
362 max(ushort4 v1, ushort4 v2) argument
371 max(uint v1, uint v2) argument
375 max(uint2 v1, uint2 v2) argument
382 max(uint3 v1, uint3 v2) argument
390 max(uint4 v1, uint4 v2) argument
399 max(float v1, float v2) argument
403 max(float2 v1, float2 v2) argument
407 max(float2 v1, float v2) argument
411 max(float3 v1, float3 v2) argument
415 max(float3 v1, float v2) argument
419 max(float4 v1, float4 v2) argument
423 max(float4 v1, float v2) argument
432 min(int8_t v1, int8_t v2) argument
436 min(char2 v1, char2 v2) argument
443 min(char3 v1, char3 v2) argument
451 min(char4 v1, char4 v2) argument
460 min(int16_t v1, int16_t v2) argument
464 min(short2 v1, short2 v2) argument
471 min(short3 v1, short3 v2) argument
479 min(short4 v1, short4 v2) argument
488 min(int32_t v1, int32_t v2) argument
492 min(int2 v1, int2 v2) argument
499 min(int3 v1, int3 v2) argument
507 min(int4 v1, int4 v2) argument
516 min(uchar v1, uchar v2) argument
520 min(uchar2 v1, uchar2 v2) argument
527 min(uchar3 v1, uchar3 v2) argument
535 min(uchar4 v1, uchar4 v2) argument
544 min(ushort v1, ushort v2) argument
548 min(ushort2 v1, ushort2 v2) argument
555 min(ushort3 v1, ushort3 v2) argument
563 min(ushort4 v1, ushort4 v2) argument
572 min(uint v1, uint v2) argument
576 min(uint2 v1, uint2 v2) argument
583 min(uint3 v1, uint3 v2) argument
591 min(uint4 v1, uint4 v2) argument
600 min(float v1, float v2) argument
604 min(float2 v1, float2 v2) argument
608 min(float2 v1, float v2) argument
612 min(float3 v1, float3 v2) argument
616 min(float3 v1, float v2) argument
620 min(float4 v1, float4 v2) argument
624 min(float4 v1, float v2) argument
[all...]
/frameworks/rs/tests/java_api/VrDemo/src/com/example/android/rs/vr/engine/
H A DQuaternion.java53 public void set(double[] v1, double[] v2) { argument
55 double[] vec2 = normal(v2);
61 public static double calcAngle(double[] v1, double[] v2) { argument
63 double[] vec2 = normal(v2);
67 public static double[] calcAxis(double[] v1, double[] v2) { argument
69 double[] vec2 = normal(v2);
121 double v2 = v[2];
123 double s = x[1] * v0 + x[2] * v1 + x[3] * v2;
125 double n0 = 2 * (x[0] * (v0 * x[0] - (x[2] * v2 - x[3] * v1)) + s * x[1]) - v0;
126 double n1 = 2 * (x[0] * (v1 * x[0] - (x[3] * v0 - x[1] * v2))
[all...]
/frameworks/base/core/tests/coretests/src/android/widget/
H A DRemoteViewsTest.java278 private void verifyViewTree(View v1, View v2, String... texts) { argument
280 verifyViewTreeRecur(v1, v2, expectedTexts);
285 private void verifyViewTreeRecur(View v1, View v2, ArrayList<String> expectedTexts) { argument
286 assertEquals(v1.getClass(), v2.getClass());
290 assertEquals(text, ((TextView) v2).getText().toString());
295 ViewGroup vg2 = (ViewGroup) v2;
/frameworks/base/libs/hwui/
H A DPatch.cpp120 float v2 = std::max(0.0f, stepY - vOffset) / bitmapHeight; local
124 generateRow(xDivs, xCount, vertex, y1, y2, v1, v2, stretchX, rescaleX,
148 float y1, float y2, float v1, float v2, float stretchX, float rescaleX,
172 generateQuad(vertex, x1, y1, x2, y2, u1, v1, u2, v2, quadCount);
183 generateQuad(vertex, x1, y1, x2, y2, u1, v1, 1.0f, v2, quadCount);
188 float u1, float v1, float u2, float v2, uint32_t& quadCount) {
202 PATCH_LOGD(" right, bottom = %.2f, %.2f\t\tu2, v2 = %.8f, %.8f", x2, y2, u2, v2);
212 mUvMapper.map(u1, v1, u2, v2);
216 TextureVertex::set(vertex++, x1, y2, u1, v2);
147 generateRow(const int32_t* xDivs, uint32_t xCount, TextureVertex*& vertex, float y1, float y2, float v1, float v2, float stretchX, float rescaleX, float width, float bitmapWidth, uint32_t& quadCount) argument
187 generateQuad(TextureVertex*& vertex, float x1, float y1, float x2, float y2, float u1, float v1, float u2, float v2, uint32_t& quadCount) argument
[all...]
/frameworks/base/libs/hwui/renderstate/
H A DOffscreenBufferPool.cpp88 const float v2 = (viewportHeight - r->bottom) * texY; local
92 TextureVertex::set(mesh++, r->left, r->bottom, u1, v2);
93 TextureVertex::set(mesh++, r->right, r->bottom, u2, v2);
/frameworks/native/services/surfaceflinger/
H A DTransform.cpp73 const float v2 = A[2][i]; local
74 D[0][i] = v0*B[0][0] + v1*B[0][1] + v2*B[0][2];
75 D[1][i] = v0*B[1][0] + v1*B[1][1] + v2*B[1][2];
76 D[2][i] = v0*B[2][0] + v1*B[2][1] + v2*B[2][2];
/frameworks/rs/cpu_ref/
H A DrsCpuIntrinsic3DLUT.cpp126 uint4 v2 = (v + 0x7f) >> (int4)8; local
128 uchar4 ret = convert_uchar4(v2);
145 ALOGE("v2 %08x %08x %08x %08x", v2.x, v2.y, v2.z, v2.w);
/frameworks/base/libs/hwui/font/
H A DCacheTexture.h162 float x2, float y2, float u2, float v2,
166 TextureVertex::set(mesh++, x2, y2, u2, v2);
161 addQuad(float x1, float y1, float u1, float v1, float x2, float y2, float u2, float v2, float x3, float y3, float u3, float v3, float x4, float y4, float u4, float v4) argument
H A DFont.cpp168 float v2 = glyph->mBitmapMaxV; local
170 mState->appendMeshQuad(nPenX, nPenY, u1, v2,
171 nPenX + width, nPenY, u2, v2,
197 float v2 = glyph->mBitmapMaxV; local
200 p[0].x(), p[0].y(), u1, v2,
201 p[1].x(), p[1].y(), u2, v2,
263 const float v2 = glyph->mBitmapMaxV; local
267 position->y() + destination[0].y(), u1, v2,
269 position->y() + destination[1].y(), u2, v2,

Completed in 4956 milliseconds

12