Home
last modified time | relevance | path

Searched refs:v (Results 1 – 25 of 1726) sorted by relevance

12345678910>>...70

/frameworks/base/rs/java/android/renderscript/
DFieldPacker.java59 public void align(int v) { in align() argument
60 if ((v <= 0) || ((v & (v - 1)) != 0)) { in align()
61 … throw new RSIllegalArgumentException("argument must be a non-negative non-zero power of 2: " + v); in align()
64 while ((mPos & (v - 1)) != 0) { in align()
70 public void subalign(int v) { in subalign() argument
71 if ((v & (v - 1)) != 0) { in subalign()
72 … throw new RSIllegalArgumentException("argument must be a non-negative non-zero power of 2: " + v); in subalign()
75 while ((mPos & (v - 1)) != 0) { in subalign()
106 public void addI8(byte v) { in addI8() argument
107 mData[mPos++] = v; in addI8()
[all …]
/frameworks/rs/support/java/src/androidx/renderscript/
DFieldPacker.java60 public void align(int v) { in align() argument
61 if ((v <= 0) || ((v & (v - 1)) != 0)) { in align()
62 … throw new RSIllegalArgumentException("argument must be a non-negative non-zero power of 2: " + v); in align()
65 while ((mPos & (v - 1)) != 0) { in align()
71 public void subalign(int v) { in subalign() argument
72 if ((v & (v - 1)) != 0) { in subalign()
73 … throw new RSIllegalArgumentException("argument must be a non-negative non-zero power of 2: " + v); in subalign()
76 while ((mPos & (v - 1)) != 0) { in subalign()
107 public void addI8(byte v) { in addI8() argument
108 mData[mPos++] = v; in addI8()
[all …]
/frameworks/native/libs/vr/libpdx/
Dvariant_tests.cpp130 Variant<int, bool, float> v; in TEST() local
131 ASSERT_EQ(-1, v.index()); in TEST()
132 ASSERT_FALSE(v.is<int>()); in TEST()
133 ASSERT_FALSE(v.is<bool>()); in TEST()
134 ASSERT_FALSE(v.is<float>()); in TEST()
138 Variant<int, bool, float> v; in TEST() local
139 v = 10; in TEST()
140 ASSERT_EQ(0, v.index()); in TEST()
141 ASSERT_TRUE(v.is<int>()); in TEST()
142 ASSERT_FALSE(v.is<bool>()); in TEST()
[all …]
/frameworks/base/libs/hwui/tests/unit/
DFatVectorTests.cpp26 static bool allocationIsInternal(VectorType& v) { in allocationIsInternal() argument
29 return (char*)(&v) <= (char*)(&v[0]) && (char*)(&v + 1) >= (char*)(&v[0] + v.capacity()); in allocationIsInternal()
34 std::vector<int> v; in TEST() local
36 v.push_back(i); in TEST()
37 EXPECT_FALSE(allocationIsInternal(v)); in TEST()
42 FatVector<int, 4> v; in TEST() local
43 EXPECT_EQ(4u, v.capacity()); in TEST()
47 v.push_back(i); in TEST()
48 EXPECT_TRUE(allocationIsInternal(v)); in TEST()
53 v.push_back(i); in TEST()
[all …]
/frameworks/base/packages/SystemUI/legacy/recents/src/com/android/systemui/recents/views/
DTaskViewTransform.java43 public void set(View v, Rect ltrb) {
44 v.setLeftTopRightBottom(ltrb.left, ltrb.top, ltrb.right, ltrb.bottom);
48 public Rect get(View v) {
49 mTmpRect.set(v.getLeft(), v.getTop(), v.getRight(), v.getBottom());
117 public boolean hasAlphaChangedFrom(float v) { in hasAlphaChangedFrom() argument
118 return (Float.compare(alpha, v) != 0); in hasAlphaChangedFrom()
121 public boolean hasScaleChangedFrom(float v) { in hasScaleChangedFrom() argument
122 return (Float.compare(scale, v) != 0); in hasScaleChangedFrom()
125 public boolean hasTranslationZChangedFrom(float v) { in hasTranslationZChangedFrom() argument
126 return (Float.compare(translationZ, v) != 0); in hasTranslationZChangedFrom()
[all …]
/frameworks/base/libs/hwui/
DVector.h39 void operator+=(const Vector2& v) {
40 x += v.x;
41 y += v.y;
44 void operator-=(const Vector2& v) {
45 x -= v.x;
46 y -= v.y;
49 void operator+=(const float v) {
50 x += v;
51 y += v;
54 void operator-=(const float v) {
[all …]
DMatrix.cpp150 void Matrix4::load(const float* v) { in load() argument
151 memcpy(data, v, sizeof(data)); in load()
155 void Matrix4::load(const SkMatrix& v) { in load() argument
158 data[kScaleX] = v[SkMatrix::kMScaleX]; in load()
159 data[kSkewX] = v[SkMatrix::kMSkewX]; in load()
160 data[kTranslateX] = v[SkMatrix::kMTransX]; in load()
162 data[kSkewY] = v[SkMatrix::kMSkewY]; in load()
163 data[kScaleY] = v[SkMatrix::kMScaleY]; in load()
164 data[kTranslateY] = v[SkMatrix::kMTransY]; in load()
166 data[kPerspective0] = v[SkMatrix::kMPersp0]; in load()
[all …]
/frameworks/native/opengl/libagl/
Dfp.h59 inline GLfloat addExpf(GLfloat v, int e) CONST;
60 inline GLfloat mul2f(GLfloat v) CONST;
61 inline GLfloat div2f(GLfloat v) CONST;
62 inline GLfloat absf(GLfloat v) CONST;
114 bool isZerof(GLfloat v) { in isZerof() argument
116 return v == 0; in isZerof()
122 f = v; in isZerof()
127 bool isOnef(GLfloat v) { in isOnef() argument
128 return cmpf(v, 1.0f); in isOnef()
131 int isZeroOrNegativef(GLfloat v) { in isZeroOrNegativef() argument
[all …]
Dvertex.cpp54 void perspective(ogles_context_t* c, vertex_t* v, uint32_t enables) in perspective() argument
69 const int32_t rw = gglRecip28(v->clip.w); in perspective()
71 v->window.w = rw; in perspective()
72 v->window.x = gglMulAddx(gglMulx(v->clip.x, rw, 16), m[ 0], m[12], 28); in perspective()
73 v->window.y = gglMulAddx(gglMulx(v->clip.y, rw, 16), m[ 5], m[13], 28); in perspective()
74 v->window.x = TRI_FROM_FIXED(v->window.x); in perspective()
75 v->window.y = TRI_FROM_FIXED(v->window.y); in perspective()
77 v->window.z = gglMulAddx(gglMulx(v->clip.z, rw, 16), m[10], m[14], 28); in perspective()
83 void clipFrustumPerspective(ogles_context_t* c, vertex_t* v, uint32_t enables) in clipFrustumPerspective() argument
89 uint32_t clip = v->flags & vertex_t::CLIP_ALL; in clipFrustumPerspective()
[all …]
Darray.cpp136 static void currentColor(ogles_context_t* c, GLfixed* v, const GLvoid*) { in currentColor() argument
137 memcpy(v, c->current.color.v, sizeof(vec4_t)); in currentColor()
139 static void currentNormal(ogles_context_t* c, GLfixed* v, const GLvoid*) { in currentNormal() argument
140 memcpy(v, c->currentNormal.v, sizeof(vec3_t)); in currentNormal()
142 static void currentTexCoord(ogles_context_t* c, GLfixed* v, const GLvoid*) { in currentTexCoord() argument
143 memcpy(v, c->current.texture[c->arrays.tmu].v, sizeof(vec4_t)); in currentTexCoord()
149 static void fetch2b(ogles_context_t*, GLfixed* v, const GLbyte* p) { in fetch2b() argument
150 v[0] = gglIntToFixed(p[0]); in fetch2b()
151 v[1] = gglIntToFixed(p[1]); in fetch2b()
153 static void fetch2s(ogles_context_t*, GLfixed* v, const GLshort* p) { in fetch2s() argument
[all …]
/frameworks/rs/script_api/include/
Drs_convert.rsh44 convert_float2(float2 v);
47 convert_float3(float3 v);
50 convert_float4(float4 v);
53 convert_float2(char2 v);
56 convert_float3(char3 v);
59 convert_float4(char4 v);
62 convert_float2(uchar2 v);
65 convert_float3(uchar3 v);
68 convert_float4(uchar4 v);
71 convert_float2(short2 v);
[all …]
/frameworks/rs/driver/runtime/
Drs_cl.c13 extern float __attribute__((overloadable)) fmin(float v, float v2);
14 extern float2 __attribute__((overloadable)) fmin(float2 v, float v2);
15 extern float3 __attribute__((overloadable)) fmin(float3 v, float v2);
16 extern float4 __attribute__((overloadable)) fmin(float4 v, float v2);
18 extern float __attribute__((overloadable)) fmax(float v, float v2);
19 extern float2 __attribute__((overloadable)) fmax(float2 v, float v2);
20 extern float3 __attribute__((overloadable)) fmax(float3 v, float v2);
21 extern float4 __attribute__((overloadable)) fmax(float4 v, float v2);
26 extern float2 __attribute__((overloadable)) fnc(float2 v) { \
28 r.x = fnc(v.x); \
[all …]
/frameworks/base/core/java/com/android/internal/widget/
DMessagingPropertyAnimator.java58 public void onLayoutChange(View v, int left, int top, int right, int bottom, int oldLeft, in onLayoutChange() argument
60 setLayoutTop(v, top); in onLayoutChange()
61 if (isFirstLayout(v)) { in onLayoutChange()
62 setFirstLayout(v, false /* first */); in onLayoutChange()
63 setTop(v, top); in onLayoutChange()
66 startTopAnimation(v, getTop(v), top, MessagingLayout.FAST_OUT_SLOW_IN); in onLayoutChange()
120 public static int getTop(View v) { in getTop() argument
121 Integer tag = (Integer) v.getTag(TAG_TOP); in getTop()
123 return v.getTop(); in getTop()
128 private static void setTop(View v, int value) { in setTop() argument
[all …]
/frameworks/rs/tests/java_api/VrDemo/src/com/example/android/rs/vr/loaders/
DLoaderRaw.java54 Volume v = new Volume(); in buildRSVolume() local
55 v.mDimx = Integer.parseInt(dim[0]); in buildRSVolume()
56 v.mDimy = Integer.parseInt(dim[1]); in buildRSVolume()
57 v.mDimz = Integer.parseInt(dim[2]); in buildRSVolume()
59 v.mVoxelDim[0] = Float.parseFloat(voxeldim[0]); in buildRSVolume()
60 v.mVoxelDim[1] = Float.parseFloat(voxeldim[1]); in buildRSVolume()
61 v.mVoxelDim[2] = Float.parseFloat(voxeldim[2]); in buildRSVolume()
62 Float min = Math.min(v.mVoxelDim[0], Math.min(v.mVoxelDim[1], v.mVoxelDim[2])); in buildRSVolume()
63 v.mVoxelDim[0] /= min; in buildRSVolume()
64 v.mVoxelDim[1] /= min; in buildRSVolume()
[all …]
DDroid.java64 Volume v = new Volume(); in buildRSVolume() local
65 v.mDimx = v.mDimy = v.mDimz = SIZE; in buildRSVolume()
66 v.mVoxelDim[0] = v.mVoxelDim[1] = v.mVoxelDim[2] = 1.f; in buildRSVolume()
68 v.addLook(internalLook, internalColor, internalOpacity); in buildRSVolume()
69 v.addLook(tranlLook, tranColor, tranOpacity); in buildRSVolume()
70 v.addLook(simpleLook, simpleColor, simpleOpacity); in buildRSVolume()
73 b.setX(v.mDimx).setY(v.mDimy); in buildRSVolume()
75 b.setZ(v.mDimz); in buildRSVolume()
76 b.setX(v.mDimx).setY(v.mDimy).setZ(v.mDimz); in buildRSVolume()
77 v.mVolumeAllocation = Allocation.createTyped(rs, b.create(), Allocation.USAGE_SCRIPT); in buildRSVolume()
[all …]
DMandelbulb.java57 Volume v = new Volume(); in buildRSVolume() local
58 v.mDimx = v.mDimy = v.mDimz = SIZE; in buildRSVolume()
59 v.mVoxelDim[0] = v.mVoxelDim[1] = v.mVoxelDim[2] = 1.f; in buildRSVolume()
61 v.addLook(simpleLook, simpleColor, simpleOpacity); in buildRSVolume()
62 v.addLook(tranlLook, tranColor, tranOpacity); in buildRSVolume()
65 b.setX(v.mDimx).setY(v.mDimy); in buildRSVolume()
67 b.setZ(v.mDimz); in buildRSVolume()
68 b.setX(v.mDimx).setY(v.mDimy).setZ(v.mDimz); in buildRSVolume()
69 v.mVolumeAllocation = Allocation.createTyped(rs, b.create(), Allocation.USAGE_SCRIPT); in buildRSVolume()
71 scriptC_mandelbulb.set_volume(v.mVolumeAllocation); in buildRSVolume()
[all …]
/frameworks/native/libs/math/include/math/
Dquat.h116 constexpr TQuaternion(const TVec3<A>& v, B w) : x(v.x), y(v.y), z(v.z), w(w) { } in TQuaternion() argument
120 constexpr explicit TQuaternion(const TVec4<A>& v) : x(v.x), y(v.y), z(v.z), w(v.w) { } in TQuaternion() argument
124 constexpr explicit TQuaternion(const TQuaternion<A>& v) : x(v.x), y(v.y), z(v.z), w(v.w) { } in TQuaternion() argument
147 constexpr inline quat operator"" _i(long double v) {
148 return quat(0, static_cast<float>(v), 0, 0);
150 constexpr inline quat operator"" _j(long double v) {
151 return quat(0, 0, static_cast<float>(v), 0);
153 constexpr inline quat operator"" _k(long double v) {
154 return quat(0, 0, 0, static_cast<float>(v));
157 constexpr inline quat operator"" _i(unsigned long long v) { // NOLINT
[all …]
DTVecHelpers.h62 VECTOR<T>& operator +=(const VECTOR<OTHER>& v) {
65 lhs[i] += v[i];
70 VECTOR<T>& operator -=(const VECTOR<OTHER>& v) {
73 lhs[i] -= v[i];
83 VECTOR<T>& operator +=(const VECTOR<T>& v) {
86 lhs[i] += v[i];
90 VECTOR<T>& operator -=(const VECTOR<T>& v) {
93 lhs[i] -= v[i];
143 VECTOR<T>& operator *=(const VECTOR<OTHER>& v) {
146 lhs[i] *= v[i];
[all …]
/frameworks/av/media/libeffects/dynamicsproc/dsp/
DRDsp.h58 static void fillRectangular(T &v) { in fillRectangular() argument
59 const size_t size = v.size(); in fillRectangular()
61 v[i] = 1.0; in fillRectangular()
66 static void fillTriangular(T &v, size_t overlap) { in fillTriangular() argument
67 const size_t size = v.size(); in fillTriangular()
72 v[i] = (2.0 * i + 1) / (2 * overlap); in fillTriangular()
78 v[i] = 1.0; in fillTriangular()
84 v[i] = (2.0 * (size - i) - 1) / (2 * overlap); in fillTriangular()
90 static void fillHamming(T &v, size_t overlap) { in fillHamming() argument
91 const size_t size = v.size(); in fillHamming()
[all …]
/frameworks/av/media/libaudioprocessing/
DAudioResamplerFirOps.h83 int16_t v = left ? static_cast<int16_t>(vRL) : static_cast<int16_t>(vRL>>16);
84 return static_cast<int32_t>((static_cast<int64_t>(in) * v) >> 16);
89 int32_t mulAdd(int16_t in, int16_t v, int32_t a)
95 : [in]"%r"(in), [v]"r"(v), [a]"r"(a)
99 return a + v * in;
104 int32_t mulAdd(int16_t in, int32_t v, int32_t a)
110 : [in]"%r"(in), [v]"r"(v), [a]"r"(a)
114 return a + static_cast<int32_t>((static_cast<int64_t>(v) * in) >> 16);
119 int32_t mulAdd(int32_t in, int32_t v, int32_t a)
125 : [in]"%r"(in), [v]"r"(v), [a]"r"(a)
[all …]
/frameworks/av/media/tests/benchmark/src/native/common/utils/
DTimers.h61 static inline nsecs_t s2ns(nsecs_t v) { in s2ns() argument
62 return seconds_to_nanoseconds(v); in s2ns()
64 static inline nsecs_t ms2ns(nsecs_t v) { in ms2ns() argument
65 return milliseconds_to_nanoseconds(v); in ms2ns()
67 static inline nsecs_t us2ns(nsecs_t v) { in us2ns() argument
68 return microseconds_to_nanoseconds(v); in us2ns()
70 static inline nsecs_t ns2s(nsecs_t v) { in ns2s() argument
71 return nanoseconds_to_seconds(v); in ns2s()
73 static inline nsecs_t ns2ms(nsecs_t v) { in ns2ms() argument
74 return nanoseconds_to_milliseconds(v); in ns2ms()
[all …]
/frameworks/base/core/tests/coretests/src/android/provider/
DSettingsValidatorsTest.java141 Validator v = new SettingsValidators.DiscreteValueValidator(beerTypes); in testDiscreteValueValidator() local
142 assertTrue(v.validate("Ale")); in testDiscreteValueValidator()
143 assertTrue(v.validate("American IPA")); in testDiscreteValueValidator()
144 assertTrue(v.validate("Stout")); in testDiscreteValueValidator()
145 assertFalse(v.validate("Cider")); // just juice pretending to be beer in testDiscreteValueValidator()
151 Validator v = new SettingsValidators.DiscreteValueValidator(discreteTypes); in testDiscreteValueValidator_onNullValue_returnsFalse() local
153 assertFalse(v.validate(null)); in testDiscreteValueValidator_onNullValue_returnsFalse()
158 Validator v = new SettingsValidators.InclusiveIntegerRangeValidator(0, 5); in testInclusiveIntegerRangeValidator() local
159 assertTrue(v.validate("0")); in testInclusiveIntegerRangeValidator()
160 assertTrue(v.validate("2")); in testInclusiveIntegerRangeValidator()
[all …]
/frameworks/base/test-runner/src/android/test/
DTouchUtils.java115 public static void scrollToBottom(ActivityInstrumentationTestCase test, ViewGroup v) { in scrollToBottom() argument
116 scrollToBottom(test, test.getActivity(), v); in scrollToBottom()
128 ViewGroup v) { in scrollToBottom() argument
130 ViewStateSnapshot next = new ViewStateSnapshot(v); in scrollToBottom()
134 next = new ViewStateSnapshot(v); in scrollToBottom()
150 public static void scrollToTop(ActivityInstrumentationTestCase test, ViewGroup v) { in scrollToTop() argument
151 scrollToTop(test, test.getActivity(), v); in scrollToTop()
162 public static void scrollToTop(InstrumentationTestCase test, Activity activity, ViewGroup v) { in scrollToTop() argument
164 ViewStateSnapshot next = new ViewStateSnapshot(v); in scrollToTop()
168 next = new ViewStateSnapshot(v); in scrollToTop()
[all …]
/frameworks/native/cmds/surfacereplayer/replayer/
DColor.h38 HSV(double hIn, double sIn, double vIn) : h(hIn), s(sIn), v(vIn) {} in HSV()
42 double v = 0; member
53 v += modulateFactor; in modulate()
55 v -= modulateFactor; in modulate()
58 if(v <= modulateLimit || v >= 1) { in modulate()
68 r = v; in getRGB()
69 g = v; in getRGB()
70 b = v; in getRGB()
78 double x = v * (1.0 - s); in getRGB()
79 double y = v * (1.0 - (s * f)); in getRGB()
[all …]
/frameworks/base/core/jni/android/graphics/
DCamera.cpp24 Sk3DView* v = reinterpret_cast<Sk3DView*>(viewHandle); in Camera_save() local
25 v->save(); in Camera_save()
30 Sk3DView* v = reinterpret_cast<Sk3DView*>(viewHandle); in Camera_restore() local
31 v->restore(); in Camera_restore()
37 Sk3DView* v = reinterpret_cast<Sk3DView*>(viewHandle); in Camera_translate() local
38 v->translate(dx, dy, dz); in Camera_translate()
43 Sk3DView* v = reinterpret_cast<Sk3DView*>(viewHandle); in Camera_rotateX() local
44 v->rotateX(degrees); in Camera_rotateX()
49 Sk3DView* v = reinterpret_cast<Sk3DView*>(viewHandle); in Camera_rotateY() local
50 v->rotateY(degrees); in Camera_rotateY()
[all …]

12345678910>>...70