Home
last modified time | relevance | path

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

12345678910>>...35

/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/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 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/libs/hwui/
DMatrix.cpp76 void Matrix4::load(const float* v) { in load() argument
77 memcpy(data, v, sizeof(data)); in load()
83 void Matrix4::load(const Matrix4& v) { in load() argument
84 memcpy(data, v.data, sizeof(data)); in load()
85 mSimpleMatrix = v.mSimpleMatrix; in load()
86 mIsIdentity = v.mIsIdentity; in load()
89 void Matrix4::load(const SkMatrix& v) { in load() argument
92 data[kScaleX] = v[SkMatrix::kMScaleX]; in load()
93 data[kSkewX] = v[SkMatrix::kMSkewX]; in load()
94 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.h55 Matrix4(const float* v) { in Matrix4() argument
56 load(v); in Matrix4()
59 Matrix4(const Matrix4& v) { in Matrix4() argument
60 load(v); in Matrix4()
63 Matrix4(const SkMatrix& v) { in Matrix4() argument
64 load(v); in Matrix4()
69 void load(const float* v);
70 void load(const Matrix4& v);
71 void load(const SkMatrix& v);
73 void loadInverse(const Matrix4& v);
[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/support/v4/java/android/support/v4/view/
DViewCompat.java65 public boolean canScrollHorizontally(View v, int direction); in canScrollHorizontally() argument
66 public boolean canScrollVertically(View v, int direction); in canScrollVertically() argument
67 public int getOverScrollMode(View v); in getOverScrollMode() argument
68 public void setOverScrollMode(View v, int mode); in setOverScrollMode() argument
69 public void onInitializeAccessibilityEvent(View v, AccessibilityEvent event); in onInitializeAccessibilityEvent() argument
70 public void onPopulateAccessibilityEvent(View v, AccessibilityEvent event); in onPopulateAccessibilityEvent() argument
71 public void onInitializeAccessibilityNodeInfo(View v, AccessibilityNodeInfoCompat info); in onInitializeAccessibilityNodeInfo() argument
72 public void setAccessibilityDelegate(View v, AccessibilityDelegateCompat delegate); in setAccessibilityDelegate() argument
85 public boolean canScrollHorizontally(View v, int direction) { in canScrollHorizontally() argument
88 public boolean canScrollVertically(View v, int direction) { in canScrollVertically() argument
[all …]
/frameworks/base/tools/aidl/
DType.cpp228 Type::WriteToParcel(StatementBlock* addTo, Variable* v, Variable* parcel, int flags) in WriteToParcel() argument
237 Type::CreateFromParcel(StatementBlock* addTo, Variable* v, Variable* parcel, Variable**) in CreateFromParcel() argument
246 Type::ReadFromParcel(StatementBlock* addTo, Variable* v, Variable* parcel, Variable**) in ReadFromParcel() argument
255 Type::WriteArrayToParcel(StatementBlock* addTo, Variable* v, Variable* parcel, int flags) in WriteArrayToParcel() argument
264 Type::CreateArrayFromParcel(StatementBlock* addTo, Variable* v, in CreateArrayFromParcel() argument
274 Type::ReadArrayFromParcel(StatementBlock* addTo, Variable* v, Variable* parcel, Variable**) in ReadArrayFromParcel() argument
283 Type::WriteToRpcData(StatementBlock* addTo, Expression* k, Variable* v, in WriteToRpcData() argument
293 Type::CreateFromRpcData(StatementBlock* addTo, Expression* k, Variable* v, Variable* data, in CreateFromRpcData() argument
343 BasicType::WriteToParcel(StatementBlock* addTo, Variable* v, Variable* parcel, int flags) in WriteToParcel() argument
345 addTo->Add(new MethodCall(parcel, m_marshallParcel, 1, v)); in WriteToParcel()
[all …]
DType.h48 virtual void WriteToParcel(StatementBlock* addTo, Variable* v,
50 virtual void CreateFromParcel(StatementBlock* addTo, Variable* v,
52 virtual void ReadFromParcel(StatementBlock* addTo, Variable* v,
57 virtual void WriteArrayToParcel(StatementBlock* addTo, Variable* v,
59 virtual void CreateArrayFromParcel(StatementBlock* addTo, Variable* v,
61 virtual void ReadArrayFromParcel(StatementBlock* addTo, Variable* v,
64 virtual void WriteToRpcData(StatementBlock* addTo, Expression* k, Variable* v,
66 virtual void CreateFromRpcData(StatementBlock* addTo, Expression* k, Variable* v,
103 virtual void WriteToParcel(StatementBlock* addTo, Variable* v,
105 virtual void CreateFromParcel(StatementBlock* addTo, Variable* v,
[all …]
/frameworks/rs/driver/
DrsdRuntimeMath.cpp33 static float SC_exp10(float v) { in SC_exp10() argument
34 return pow(10.f, v); in SC_exp10()
37 static float SC_fract(float v, int *iptr) { in SC_fract() argument
38 int i = (int)floor(v); in SC_fract()
40 return fmin(v - i, 0x1.fffffep-1f); in SC_fract()
43 static float SC_log2(float v) { in SC_log2() argument
44 return log10(v) / log10(2.f); in SC_log2()
52 static float SC_pown(float v, int p) {
53 return powf(v, (float)p);
56 static float SC_powr(float v, float p) {
[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/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/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/native/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/rs/cpp/
DScript.h40 const void *v, size_t) const;
44 void invoke(uint32_t slot, const void *v, size_t len) const;
50 void setVar(uint32_t index, float v) const { in setVar() argument
51 setVar(index, &v, sizeof(v)); in setVar()
53 void setVar(uint32_t index, double v) const { in setVar() argument
54 setVar(index, &v, sizeof(v)); in setVar()
56 void setVar(uint32_t index, int32_t v) const { in setVar() argument
57 setVar(index, &v, sizeof(v)); in setVar()
59 void setVar(uint32_t index, int64_t v) const { in setVar() argument
60 setVar(index, &v, sizeof(v)); in setVar()
[all …]
/frameworks/native/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/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/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/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/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/functional/mediarecorder/
DMediaRecorderTest.java75 Log.v(TAG,"startPreviewAndPrepareRecording"); in recordVideo()
78 Log.v(TAG, "setAudioSource"); in recordVideo()
83 Log.v(TAG, "output format " + outFormat); in recordVideo()
87 Log.v(TAG, "setEncoder"); in recordVideo()
93 Log.v(TAG, "setPreview"); in recordVideo()
95 Log.v(TAG, "prepare"); in recordVideo()
97 Log.v(TAG, "start"); in recordVideo()
100 Log.v(TAG, "stop"); in recordVideo()
104 Log.v("record video failed ", e.toString()); in recordVideo()
134 Log.v(TAG, "video encoder : " + videoEncoder); in recordVideoWithPara()
[all …]
/frameworks/native/services/surfaceflinger/
DTransform.h88 float v[3]; member
91 v[0] = a; v[1] = b; v[2] = c; in vec3()
93 inline float operator [] (int i) const { return v[i]; }
94 inline float& operator [] (int i) { return v[i]; }
97 float v[2]; member
100 v[0] = a; v[1] = b; in vec2()
102 inline float operator [] (int i) const { return v[i]; }
103 inline float& operator [] (int i) { return v[i]; }
106 vec3 v[3]; member
107 inline const vec3& operator [] (int i) const { return v[i]; }
[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 …]

12345678910>>...35