Home
last modified time | relevance | path

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

12345678910>>...31

/frameworks/base/graphics/java/android/renderscript/
DFieldPacker.java32 public void align(int v) { in align() argument
33 if ((v <= 0) || ((v & (v - 1)) != 0)) { in align()
34 … throw new RSIllegalArgumentException("argument must be a non-negative non-zero power of 2: " + v); in align()
37 while ((mPos & (v - 1)) != 0) { in align()
60 public void addI8(byte v) { in addI8() argument
61 mData[mPos++] = v; in addI8()
64 public void addI16(short v) { in addI16() argument
66 mData[mPos++] = (byte)(v & 0xff); in addI16()
67 mData[mPos++] = (byte)(v >> 8); in addI16()
70 public void addI32(int v) { in addI32() argument
[all …]
/frameworks/support/v4/java/android/support/v4/view/
DViewCompat.java45 public boolean canScrollHorizontally(View v, int direction); in canScrollHorizontally() argument
46 public boolean canScrollVertically(View v, int direction); in canScrollVertically() argument
47 public int getOverScrollMode(View v); in getOverScrollMode() argument
48 public void setOverScrollMode(View v, int mode); in setOverScrollMode() argument
49 public void onInitializeAccessibilityEvent(View v, AccessibilityEvent event); in onInitializeAccessibilityEvent() argument
50 public void onPopulateAccessibilityEvent(View v, AccessibilityEvent event); in onPopulateAccessibilityEvent() argument
51 public void onInitializeAccessibilityNodeInfo(View v, AccessibilityNodeInfoCompat info); in onInitializeAccessibilityNodeInfo() argument
52 public void setAccessibilityDelegate(View v, AccessibilityDelegateCompat delegate); in setAccessibilityDelegate() argument
56 public boolean canScrollHorizontally(View v, int direction) { in canScrollHorizontally() argument
59 public boolean canScrollVertically(View v, int direction) { in canScrollVertically() argument
[all …]
/frameworks/base/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 currentColor_clamp(ogles_context_t* c, GLfixed* v, const GLvoid*) { in currentColor_clamp() argument
140 memcpy(v, c->currentColorClamped.v, sizeof(vec4_t)); in currentColor_clamp()
142 static void currentNormal(ogles_context_t* c, GLfixed* v, const GLvoid*) { in currentNormal() argument
143 memcpy(v, c->currentNormal.v, sizeof(vec3_t)); in currentNormal()
145 static void currentTexCoord(ogles_context_t* c, GLfixed* v, const GLvoid*) { in currentTexCoord() argument
146 memcpy(v, c->current.texture[c->arrays.tmu].v, sizeof(vec4_t)); in currentTexCoord()
152 static void fetch2b(ogles_context_t*, GLfixed* v, const GLbyte* p) { in fetch2b() argument
153 v[0] = gglIntToFixed(p[0]); in fetch2b()
[all …]
Dlight.cpp35 static void lightVertexValidate(ogles_context_t* c, vertex_t* v);
36 static void lightVertexNop(ogles_context_t* c, vertex_t* v);
37 static void lightVertex(ogles_context_t* c, vertex_t* v);
38 static void lightVertexMaterial(ogles_context_t* c, vertex_t* v);
230 vnorm3(l.normalizedObjPosition.v, l.objPosition.v); in validate_light_mvi()
236 vnorm3(c->lighting.objViewer.v, c->lighting.objViewer.v); in validate_light_mvi()
252 vmul3(l.implicitAmbient.v, material.ambient.v, l.ambient.v); in validate_light()
253 vmul3(l.implicitDiffuse.v, material.diffuse.v, l.diffuse.v); in validate_light()
254 vmul3(l.implicitSpecular.v, material.specular.v, l.specular.v); in validate_light()
257 l.implicitSpecular.v[3] = in validate_light()
[all …]
/frameworks/base/core/java/android/webkit/
DViewManager.java120 private void requestLayout(ChildView v) { in requestLayout() argument
122 int width = mWebView.contentToViewDimension(v.width); in requestLayout()
123 int height = mWebView.contentToViewDimension(v.height); in requestLayout()
124 int x = mWebView.contentToViewX(v.x); in requestLayout()
125 int y = mWebView.contentToViewY(v.y); in requestLayout()
128 ViewGroup.LayoutParams layoutParams = v.mView.getLayoutParams(); in requestLayout()
141 v.mView.setLayoutParams(lp); in requestLayout()
143 if(v.mView instanceof SurfaceView) { in requestLayout()
145 final SurfaceView sView = (SurfaceView) v.mView; in requestLayout()
165 if (v.width > v.height) { in requestLayout()
[all …]
/frameworks/base/libs/hwui/
DMatrix.cpp79 void Matrix4::load(const float* v) { in load() argument
80 memcpy(data, v, sizeof(data)); in load()
86 void Matrix4::load(const Matrix4& v) { in load() argument
87 memcpy(data, v.data, sizeof(data)); in load()
88 mSimpleMatrix = v.mSimpleMatrix; in load()
89 mIsIdentity = v.mIsIdentity; in load()
92 void Matrix4::load(const SkMatrix& v) { in load() argument
95 data[kScaleX] = v[SkMatrix::kMScaleX]; in load()
96 data[kSkewX] = v[SkMatrix::kMSkewX]; in load()
97 data[kTranslateX] = v[SkMatrix::kMTransX]; in load()
[all …]
DVector.h43 void operator+=(const Vector2& v) {
44 x += v.x;
45 y += v.y;
48 void operator-=(const Vector2& v) {
49 x -= v.x;
50 y -= v.y;
53 void operator+=(const float v) {
54 x += v;
55 y += v;
58 void operator-=(const float v) {
[all …]
DMatrix.h53 Matrix4(const float* v) { in Matrix4() argument
54 load(v); in Matrix4()
57 Matrix4(const Matrix4& v) { in Matrix4() argument
58 load(v); in Matrix4()
61 Matrix4(const SkMatrix& v) { in Matrix4() argument
62 load(v); in Matrix4()
67 void load(const float* v);
68 void load(const Matrix4& v);
69 void load(const SkMatrix& v);
71 void loadInverse(const Matrix4& v);
[all …]
/frameworks/base/libs/rs/driver/
DrsdRuntimeMath.cpp31 static float SC_exp10(float v) { in SC_exp10() argument
32 return pow(10.f, v); in SC_exp10()
35 static float SC_fract(float v, int *iptr) { in SC_fract() argument
36 int i = (int)floor(v); in SC_fract()
38 return fmin(v - i, 0x1.fffffep-1f); in SC_fract()
41 static float SC_log2(float v) { in SC_log2() argument
42 return log10(v) / log10(2.f); in SC_log2()
50 static float SC_pown(float v, int p) {
51 return powf(v, (float)p);
54 static float SC_powr(float v, float p) {
[all …]
/frameworks/base/test-runner/src/android/test/
DTouchUtils.java109 public static void scrollToBottom(ActivityInstrumentationTestCase test, ViewGroup v) { in scrollToBottom() argument
110 scrollToBottom(test, test.getActivity(), v); in scrollToBottom()
122 ViewGroup v) { in scrollToBottom() argument
132 firstChild = v.getChildAt(0); 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
172 firstChild = v.getChildAt(0); in scrollToTop()
189 public static void dragViewToBottom(ActivityInstrumentationTestCase test, View v) { in dragViewToBottom() argument
190 dragViewToBottom(test, test.getActivity(), v, 4); in dragViewToBottom()
[all …]
/frameworks/base/tools/aidl/
DType.cpp192 Type::WriteToParcel(StatementBlock* addTo, Variable* v, Variable* parcel, int flags) in WriteToParcel() argument
201 Type::CreateFromParcel(StatementBlock* addTo, Variable* v, Variable* parcel, Variable**) in CreateFromParcel() argument
210 Type::ReadFromParcel(StatementBlock* addTo, Variable* v, Variable* parcel, Variable**) in ReadFromParcel() argument
219 Type::WriteArrayToParcel(StatementBlock* addTo, Variable* v, Variable* parcel, int flags) in WriteArrayToParcel() argument
228 Type::CreateArrayFromParcel(StatementBlock* addTo, Variable* v, in CreateArrayFromParcel() argument
238 Type::ReadArrayFromParcel(StatementBlock* addTo, Variable* v, Variable* parcel, Variable**) in ReadArrayFromParcel() argument
281 BasicType::WriteToParcel(StatementBlock* addTo, Variable* v, Variable* parcel, int flags) in WriteToParcel() argument
283 addTo->Add(new MethodCall(parcel, m_marshallMethod, 1, v)); in WriteToParcel()
287 BasicType::CreateFromParcel(StatementBlock* addTo, Variable* v, Variable* parcel, Variable**) in CreateFromParcel() argument
289 addTo->Add(new Assignment(v, new MethodCall(parcel, m_unmarshallMethod))); in CreateFromParcel()
[all …]
DType.h46 virtual void WriteToParcel(StatementBlock* addTo, Variable* v,
48 virtual void CreateFromParcel(StatementBlock* addTo, Variable* v,
50 virtual void ReadFromParcel(StatementBlock* addTo, Variable* v,
55 virtual void WriteArrayToParcel(StatementBlock* addTo, Variable* v,
57 virtual void CreateArrayFromParcel(StatementBlock* addTo, Variable* v,
59 virtual void ReadArrayFromParcel(StatementBlock* addTo, Variable* v,
89 virtual void WriteToParcel(StatementBlock* addTo, Variable* v,
91 virtual void CreateFromParcel(StatementBlock* addTo, Variable* v,
96 virtual void WriteArrayToParcel(StatementBlock* addTo, Variable* v,
98 virtual void CreateArrayFromParcel(StatementBlock* addTo, Variable* v,
[all …]
/frameworks/base/include/utils/
DTimers.h66 static inline nsecs_t s2ns(nsecs_t v) {return seconds_to_nanoseconds(v);} in s2ns() argument
67 static inline nsecs_t ms2ns(nsecs_t v) {return milliseconds_to_nanoseconds(v);} in ms2ns() argument
68 static inline nsecs_t us2ns(nsecs_t v) {return microseconds_to_nanoseconds(v);} in us2ns() argument
69 static inline nsecs_t ns2s(nsecs_t v) {return nanoseconds_to_seconds(v);} in ns2s() argument
70 static inline nsecs_t ns2ms(nsecs_t v) {return nanoseconds_to_milliseconds(v);} in ns2ms() argument
71 static inline nsecs_t ns2us(nsecs_t v) {return nanoseconds_to_microseconds(v);} in ns2us() argument
73 static inline nsecs_t seconds(nsecs_t v) { return s2ns(v); } in seconds() argument
74 static inline nsecs_t milliseconds(nsecs_t v) { return ms2ns(v); } in milliseconds() argument
75 static inline nsecs_t microseconds(nsecs_t v) { return us2ns(v); } in microseconds() argument
/frameworks/base/media/libmedia/
Dfixedfft.cpp107 void fixed_fft(int n, int32_t *v) in fixed_fft() argument
114 int32_t t = v[i]; in fixed_fft()
115 v[i] = v[r]; in fixed_fft()
116 v[r] = t; in fixed_fft()
124 int32_t x = half(v[i]); in fixed_fft()
125 int32_t y = half(v[i + p]); in fixed_fft()
126 v[i] = x + y; in fixed_fft()
127 v[i + p] = x - y; in fixed_fft()
135 int32_t x = half(v[i]); in fixed_fft()
136 int32_t y = mult(w, v[i + p]); in fixed_fft()
[all …]
/frameworks/compile/libbcc/lib/ScriptCRT/
Drs_cl.c6 convert_##typeout##2(typein##2 v) { \
7 typeout##2 r = {(typeout)v.x, (typeout)v.y}; \
11 convert_##typeout##3(typein##3 v) { \
12 typeout##3 r = {(typeout)v.x, (typeout)v.y, (typeout)v.z}; \
16 convert_##typeout##4(typein##4 v) { \
17 typeout##4 r = {(typeout)v.x, (typeout)v.y, (typeout)v.z, \
18 (typeout)v.w}; \
41 extern float2 __attribute__((overloadable)) fnc(float2 v) { \
43 r.x = fnc(v.x); \
44 r.y = fnc(v.y); \
[all …]
/frameworks/base/opengl/tests/lighting1709/src/com/android/lightingtest/
DClearActivity.java108 final float v[] = new float[9]; in onDrawFrame() local
109 ByteBuffer vbb = ByteBuffer.allocateDirect(v.length*4); in onDrawFrame()
130 v[0] = -1; v[1] =-1; v[2] = -10; in onDrawFrame()
131 v[3] = 0; v[4] = 1; v[5] = -10; in onDrawFrame()
132 v[6] = 1; v[7] =-1; v[8] = -10; in onDrawFrame()
134 v[j*3+0] -= pos[i*3+0]; in onDrawFrame()
135 v[j*3+1] -= pos[i*3+1]; in onDrawFrame()
136 v[j*3+2] -= pos[i*3+2]; in onDrawFrame()
138 vb.put(v).position(0); in onDrawFrame()
144 v[0] = -1; v[1] =-1; v[2] = -10; in onDrawFrame()
[all …]
/frameworks/base/core/jni/android/graphics/
DCamera.cpp18 Sk3DView* v = (Sk3DView*)env->GetIntField(obj, gNativeInstanceFieldID); in Camera_save() local
19 v->save(); in Camera_save()
23 Sk3DView* v = (Sk3DView*)env->GetIntField(obj, gNativeInstanceFieldID); in Camera_restore() local
24 v->restore(); in Camera_restore()
29 Sk3DView* v = (Sk3DView*)env->GetIntField(obj, gNativeInstanceFieldID); in Camera_translate() local
30 v->translate(SkFloatToScalar(dx), SkFloatToScalar(dy), SkFloatToScalar(dz)); in Camera_translate()
34 Sk3DView* v = (Sk3DView*)env->GetIntField(obj, gNativeInstanceFieldID); in Camera_rotateX() local
35 v->rotateX(SkFloatToScalar(degrees)); in Camera_rotateX()
39 Sk3DView* v = (Sk3DView*)env->GetIntField(obj, gNativeInstanceFieldID); in Camera_rotateY() local
40 v->rotateY(SkFloatToScalar(degrees)); in Camera_rotateY()
[all …]
/frameworks/compile/libbcc/tests/data/src/
Dstructs.c42 struct v {float x, y, z, w; }; argument
44 void add(struct v* result, struct v* a, struct v* b) { in add()
51 void set(struct v* v, float x, float y, float z, float w) { in set() argument
52 v->x = x; in set()
53 v->y = y; in set()
54 v->z = z; in set()
55 v->w = w; in set()
58 void print(struct v* v) { in print() argument
59 printf("(%g, %g, %g, %g)\n", v->x, v->y, v->z, v->w); in print()
63 struct v a, b, c; in testArgs()
/frameworks/base/libs/rs/
DrsStream.h94 void addF(float v) { in addF() argument
95 uint32_t uintV = *reinterpret_cast<uint32_t*> (&v); in addF()
98 void addI32(int32_t v) { in addI32() argument
100 if (mPos + sizeof(v) >= mLength) { in addI32()
103 mData[mPos++] = (uint8_t)(v & 0xff); in addI32()
104 mData[mPos++] = (uint8_t)((v >> 8) & 0xff); in addI32()
105 mData[mPos++] = (uint8_t)((v >> 16) & 0xff); in addI32()
106 mData[mPos++] = (uint8_t)((v >> 24) & 0xff); in addI32()
108 void addU32(uint32_t v) { in addU32() argument
110 if (mPos + sizeof(v) >= mLength) { in addU32()
[all …]
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/functional/
DCodecTest.java82 Log.v(TAG, e.toString()); in printCpuInfo()
89 Log.v(TAG, "getDuration - " + filePath); in getDuration()
95 Log.v(TAG, e.toString()); in getDuration()
98 Log.v(TAG, "Duration " + duration); in getDuration()
100 Log.v(TAG, "release"); in getDuration()
105 Log.v(TAG, "GetCurrentPosition - " + filePath); in getCurrentPosition()
112 Log.v(TAG, "start playback"); in getCurrentPosition()
121 Log.v(TAG, e.toString()); in getCurrentPosition()
126 Log.v(TAG, "mp currentPositon = " + currentPosition + " play duration = " + (t2-t1)); in getCurrentPosition()
140 Log.v(TAG, "seekTo " + filePath); in seekTo()
[all …]
/frameworks/support/v4/ics/android/support/v4/view/
DViewCompatICS.java29 public static boolean canScrollHorizontally(View v, int direction) { in canScrollHorizontally() argument
30 return v.canScrollHorizontally(direction); in canScrollHorizontally()
33 public static boolean canScrollVertically(View v, int direction) { in canScrollVertically() argument
34 return v.canScrollVertically(direction); in canScrollVertically()
37 public static void setAccessibilityDelegate(View v, Object delegate) { in setAccessibilityDelegate() argument
38 v.setAccessibilityDelegate((AccessibilityDelegate) delegate); in setAccessibilityDelegate()
41 public static void onPopulateAccessibilityEvent(View v, AccessibilityEvent event) { in onPopulateAccessibilityEvent() argument
42 v.onPopulateAccessibilityEvent(event); in onPopulateAccessibilityEvent()
45 public static void onInitializeAccessibilityEvent(View v, AccessibilityEvent event) { in onInitializeAccessibilityEvent() argument
46 v.onInitializeAccessibilityEvent(event); in onInitializeAccessibilityEvent()
[all …]
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/functional/mediarecorder/
DMediaRecorderTest.java72 Log.v(TAG,"startPreviewAndPrepareRecording"); in recordVideo()
75 Log.v(TAG, "setAudioSource"); in recordVideo()
80 Log.v(TAG, "output format " + outFormat); in recordVideo()
84 Log.v(TAG, "setEncoder"); in recordVideo()
90 Log.v(TAG, "setPreview"); in recordVideo()
92 Log.v(TAG, "prepare"); in recordVideo()
94 Log.v(TAG, "start"); in recordVideo()
97 Log.v(TAG, "stop"); in recordVideo()
101 Log.v("record video failed ", e.toString()); in recordVideo()
124 Log.v(TAG, "video encoder : " + videoEncoder); in recordVideoWithPara()
[all …]
/frameworks/base/services/surfaceflinger/
DTransform.h87 float v[3]; member
90 v[0] = a; v[1] = b; v[2] = c; in vec3()
92 inline float operator [] (int i) const { return v[i]; }
93 inline float& operator [] (int i) { return v[i]; }
96 float v[2]; member
99 v[0] = a; v[1] = b; in vec2()
101 inline float operator [] (int i) const { return v[i]; }
102 inline float& operator [] (int i) { return v[i]; }
105 vec3 v[3]; member
106 inline const vec3& operator [] (int i) const { return v[i]; }
[all …]

12345678910>>...31