Home
last modified time | relevance | path

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

12345678910>>...59

/aosp14/frameworks/base/rs/java/android/renderscript/
H A DFieldPacker.java64 if ((v <= 0) || ((v & (v - 1)) != 0)) { in align()
75 if ((v & (v - 1)) != 0) { in subalign()
146 v = v | ((mData[--mPos] & 0xff) << 16); in subI32()
147 v = v | ((mData[--mPos] & 0xff) << 8); in subI32()
148 v = v | ((mData[--mPos] & 0xff)); in subI32()
170 v = (long)(v | (((long)x) & 0xff) << 56l); in subI64()
182 v = (long)(v | (((long)x) & 0xff) << 8l); in subI64()
184 v = (long)(v | (((long)x) & 0xff)); in subI64()
189 if ((v < 0) || (v > 0xff)) { in addU8()
197 if ((v < 0) || (v > 0xffff)) { in addU16()
[all …]
/aosp14/frameworks/base/libs/hwui/tests/unit/
H A DFatVectorTests.cpp29 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()
42 FatVector<int, 4> v; in TEST() local
47 v.push_back(i); in TEST()
53 v.push_back(i); in TEST()
66 FatVector<int, 4> v(4); in TEST() local
80 FatVector<int, 10> v; in TEST() local
84 v.resize(11); in TEST()
89 v.resize(10); in TEST()
[all …]
H A DLinearAllocatorTests.cpp94 v.push_back(0); in TEST()
95 char* initialLocation = &v[0]; in TEST()
96 v.push_back(10); in TEST()
97 v.push_back(20); in TEST()
98 v.push_back(30); in TEST()
106 char* lastLocation = &v[0]; in TEST()
107 v.push_back(40); in TEST()
108 v.push_back(50); in TEST()
109 v.push_back(60); in TEST()
110 v.push_back(70); in TEST()
[all …]
/aosp14/frameworks/base/libs/hwui/
H A DVector.h40 x += v.x;
50 x += v;
51 y += v;
55 x -= v;
56 y -= v;
69 Vector2 operator+(const Vector2& v) const { return (Vector2){x + v.x, y + v.y}; }
71 Vector2 operator-(const Vector2& v) const { return (Vector2){x - v.x, y - v.y}; }
89 float dot(const Vector2& v) const { return x * v.x + y * v.y; } in dot()
91 float cross(const Vector2& v) const { return x * v.y - y * v.x; } in cross()
103 Vector3 operator+(const Vector3& v) const { return (Vector3){x + v.x, y + v.y, z + v.z}; }
[all …]
H A DMatrix.cpp183 v.reset(); in copyTo()
227 double scale = 1.0 / (v.data[kScaleX] * ((double)v.data[kScaleY] * v.data[kPerspective2] - in loadInverse()
229 v.data[kSkewX] * ((double)v.data[kTranslateY] * v.data[kPerspective0] - in loadInverse()
231 v.data[kTranslateX] * ((double)v.data[kSkewY] * v.data[kPerspective1] - in loadInverse()
238 (v.data[kTranslateX] * v.data[kPerspective1] - v.data[kSkewX] * v.data[kPerspective2]) * in loadInverse()
241 (v.data[kSkewX] * v.data[kTranslateY] - v.data[kTranslateX] * v.data[kScaleY]) * scale; in loadInverse()
244 (v.data[kTranslateY] * v.data[kPerspective0] - v.data[kSkewY] * v.data[kPerspective2]) * in loadInverse()
250 (v.data[kTranslateX] * v.data[kSkewY] - v.data[kScaleX] * v.data[kTranslateY]) * scale; in loadInverse()
253 (v.data[kSkewY] * v.data[kPerspective1] - v.data[kScaleY] * v.data[kPerspective0]) * in loadInverse()
256 (v.data[kSkewX] * v.data[kPerspective0] - v.data[kScaleX] * v.data[kPerspective1]) * in loadInverse()
[all …]
/aosp14/frameworks/base/core/java/com/android/internal/widget/
H A DMessagingPropertyAnimator.java60 setLayoutTop(v, top); in onLayoutChange()
61 if (isFirstLayout(v)) { in onLayoutChange()
63 setTop(v, top); in onLayoutChange()
66 startTopAnimation(v, getTop(v), top, MessagingLayout.FAST_OUT_SLOW_IN); in onLayoutChange()
123 return v.getTop(); in getTop()
134 int top = getTop(v); in updateTopAndBottom()
136 v.setTop(top); in updateTopAndBottom()
147 || (MessagingLinearLayout.isGone(v) && !isHidingAnimated(v))) { in startTopAnimation()
148 setTop(v, end); in startTopAnimation()
152 setTop(v, start); in startTopAnimation()
[all …]
H A DBackgroundFallback.java103 if (v == null || v.getVisibility() != View.VISIBLE in draw()
104 || v.getAlpha() != 1f || !isOpaque(v.getBackground())) { in draw()
110 if (v.getTop() <= 0 && v.getBottom() >= height in draw()
111 && v.getLeft() <= 0 && v.getRight() >= left) { in draw()
115 if (v.getTop() <= 0 && v.getBottom() >= height in draw()
116 && v.getLeft() <= right && v.getRight() >= width) { in draw()
120 if (v.getTop() <= 0 && v.getBottom() >= top in draw()
121 && v.getLeft() <= 0 && v.getRight() >= width) { in draw()
125 if (v.getTop() <= bottom && v.getBottom() >= height in draw()
126 && v.getLeft() <= 0 && v.getRight() >= width) { in draw()
[all …]
/aosp14/frameworks/base/native/graphics/jni/fuzz/
H A Dpng_mutator.h53 V v(len); in PngMutator()
59 Append(&chunks_[idat_idx].v, v); in PngMutator()
69 v = V(it, v.end()); in PngMutator()
90 V v; in Serialize() local
114 v->resize(v->size() + 1 + rnd() % 256); in Mutate()
115 v->resize(m(v->data(), v->size(), v->size())); in Mutate()
162 m(it->v.data(), it->v.size(), it->v.size()); in Mutate()
222 out.write((const char*)v->data(), v->size());
234 V v; in Uncompress() local
250 V v; in Compress() local
[all …]
/aosp14/frameworks/base/core/java/android/util/
H A DDataUnit.java36 KILOBYTES { @Override public long toBytes(long v) { return v * 1_000; } }, in toBytes() argument
37 MEGABYTES { @Override public long toBytes(long v) { return v * 1_000_000; } }, in toBytes() argument
38 GIGABYTES { @Override public long toBytes(long v) { return v * 1_000_000_000; } }, in toBytes() argument
39 TERABYTES { @Override public long toBytes(long v) { return v * 1_000_000_000_000L; } }, in toBytes() argument
40 KIBIBYTES { @Override public long toBytes(long v) { return v * 1_024; } }, in toBytes() argument
41 MEBIBYTES { @Override public long toBytes(long v) { return v * 1_048_576; } }, in toBytes() argument
42 GIBIBYTES { @Override public long toBytes(long v) { return v * 1_073_741_824; } }, in toBytes() argument
43 TEBIBYTES { @Override public long toBytes(long v) { return v * 1_099_511_627_776L; } }; in toBytes() argument
45 public long toBytes(long v) { in toBytes() argument
/aosp14/frameworks/base/test-runner/src/android/test/
H A DTouchUtils.java144 ViewGroup v) { in scrollToBottom() argument
246 v.getLocationOnScreen(xy); in dragViewToBottom()
266 v.getLocationOnScreen(xy); in tapView()
306 v.getLocationOnScreen(xy); in touchAndCancelView()
341 v.getLocationOnScreen(xy); in clickView()
402 v.getLocationOnScreen(xy); in longClickView()
477 dragViewToTop(test, v, 4); in dragViewToTop()
489 v.getLocationOnScreen(xy); in dragViewToTop()
511 v.getLocationOnScreen(xy); in getStartLocation()
586 getStartLocation(v, gravity, xy); in dragViewBy()
[all …]
/aosp14/system/core/libutils/include/utils/
H A DTimers.h64 static CONSTEXPR inline nsecs_t s2ns(nsecs_t v) {return seconds_to_nanoseconds(v);} in s2ns() argument
65 static CONSTEXPR inline nsecs_t ms2ns(nsecs_t v) {return milliseconds_to_nanoseconds(v);} in ms2ns() argument
66 static CONSTEXPR inline nsecs_t us2ns(nsecs_t v) {return microseconds_to_nanoseconds(v);} in us2ns() argument
67 static CONSTEXPR inline nsecs_t ns2s(nsecs_t v) {return nanoseconds_to_seconds(v);} in ns2s() argument
68 static CONSTEXPR inline nsecs_t ns2ms(nsecs_t v) {return nanoseconds_to_milliseconds(v);} in ns2ms() argument
69 static CONSTEXPR inline nsecs_t ns2us(nsecs_t v) {return nanoseconds_to_microseconds(v);} in ns2us() argument
71 static CONSTEXPR inline nsecs_t seconds(nsecs_t v) { return s2ns(v); } in seconds() argument
72 static CONSTEXPR inline nsecs_t milliseconds(nsecs_t v) { return ms2ns(v); } in milliseconds() argument
73 static CONSTEXPR inline nsecs_t microseconds(nsecs_t v) { return us2ns(v); } in microseconds() argument
/aosp14/frameworks/base/errorprone/refaster/
H A DEfficientXml.java33 out.attribute(null, n, Integer.toString(v)); in beforeToString()
38 out.attribute(null, n, String.valueOf(v)); in beforeValueOf()
43 XmlUtils.writeIntAttribute(out, n, v); in beforeUtils()
53 out.attributeInt(null, n, v); in after()
70 out.attributeIntHex(null, n, v); in after()
133 XmlUtils.writeLongAttribute(out, n, v); in beforeUtils()
143 out.attributeLong(null, n, v); in after()
160 out.attributeLongHex(null, n, v); in after()
228 out.attributeFloat(null, n, v); in after()
262 out.attributeDouble(null, n, v); in after()
[all …]
/aosp14/frameworks/base/libs/hwui/jni/
H A DCamera.cpp22 v->save(); in Camera_save()
28 v->restore(); in Camera_restore()
35 v->translate(dx, dy, dz); in Camera_translate()
41 v->rotateX(degrees); in Camera_rotateX()
47 v->rotateY(degrees); in Camera_rotateY()
53 v->rotateZ(degrees); in Camera_rotateZ()
59 v->rotateX(x); in Camera_rotate()
60 v->rotateY(y); in Camera_rotate()
61 v->rotateZ(z); in Camera_rotate()
92 v->getMatrix(native_matrix); in Camera_getMatrix()
[all …]
/aosp14/frameworks/base/packages/SettingsProvider/test/src/android/provider/settings/validators/
H A DSettingsValidatorsTest.java145 assertTrue(v.validate("Ale")); in testDiscreteValueValidator()
156 assertTrue(v.validate(null)); in testDiscreteValueValidator_onNullValue_returnsTrue()
162 assertTrue(v.validate("0")); in testInclusiveIntegerRangeValidator()
163 assertTrue(v.validate("2")); in testInclusiveIntegerRangeValidator()
164 assertTrue(v.validate("5")); in testInclusiveIntegerRangeValidator()
165 assertFalse(v.validate("-1")); in testInclusiveIntegerRangeValidator()
166 assertFalse(v.validate("6")); in testInclusiveIntegerRangeValidator()
173 assertTrue(v.validate(null)); in testInclusiveIntegerRangeValidator_onNullValue_returnsTrue()
179 assertTrue(v.validate("0.0")); in testInclusiveFloatRangeValidator()
180 assertTrue(v.validate("2.0")); in testInclusiveFloatRangeValidator()
[all …]
/aosp14/frameworks/base/media/tests/EffectsTest/src/com/android/effectstest/
H A DVisualizerInstanceMT.java45 mVisualizer = v; in VisualizerInstanceMT()
60 void run(VisualizerInstance v); in run() argument
64 final VisualizerInstance v = getVisualizer(); in runOperationMt() local
65 if (v == null) return; in runOperationMt()
70 op.run(v); in runOperationMt()
79 runOperationMt(v -> v.enableDataCaptureListener(enable)); in enableDataCaptureListener()
84 final VisualizerInstance v = getVisualizer(); in getEnabled() local
85 return v != null ? v.getEnabled() : false; in getEnabled()
90 runOperationMt(v -> v.release()); in release()
106 runOperationMt(v -> v.setEnabled(enabled)); in setEnabled()
[all …]
/aosp14/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/functional/
H A DCodecTest.java81 Log.v(TAG, e.toString()); in printCpuInfo()
94 Log.v(TAG, e.toString()); in getDuration()
99 Log.v(TAG, "release"); in getDuration()
120 Log.v(TAG, e.toString()); in getCurrentPosition()
150 Log.v(TAG, e.getMessage()); in seekTo()
181 Log.v(TAG, "pause"); in setLooping()
221 Log.v(TAG, cpuinfo); in pause()
500 Log.v(TAG, e.toString()); in mediaRecorderRecord()
564 Log.v(TAG, e.toString()); in getThumbnail()
582 Log.v(TAG,e.getMessage()); in resourcesPlayback()
[all …]
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/
H A DKeyguardUserSwitcherAdapterTest.kt113 assertNotNull(v)
114 verify(v)!!.setOnClickListener(adapter)
121 assertNotNull(v)
122 verify(v)!!.setOnClickListener(adapter)
129 assertNotNull(v)
130 verify(v)!!.setOnClickListener(adapter)
137 assertNotNull(v)
145 assertNotNull(v)
153 assertNotNull(v)
161 assertNotNull(v)
[all …]
/aosp14/frameworks/base/packages/SystemUI/src/com/android/keyguard/
H A DLiftToActivateListener.java41 public boolean onHover(View v, MotionEvent event) { in onHover() argument
50 mCachedClickableState = v.isClickable(); in onHover()
51 v.setClickable(false); in onHover()
56 if ((x > v.getPaddingLeft()) && (y > v.getPaddingTop()) in onHover()
57 && (x < v.getWidth() - v.getPaddingRight()) in onHover()
58 && (y < v.getHeight() - v.getPaddingBottom())) { in onHover()
59 v.performClick(); in onHover()
61 v.setClickable(mCachedClickableState); in onHover()
67 v.onHoverEvent(event); in onHover()
/aosp14/frameworks/base/core/jni/android/opengl/
H A Dpoly_clip.cpp42 poly_clip_to_halfspace(p, q, &v->elem-(float *)v, sign, (sign)*(k)); \
62 Poly_vert *v; in poly_clip_to_halfspace() local
72 for (v= &p->vert[0], i=p->n; i>0; i--, u=v, tu=tv, v++) { in poly_clip_to_halfspace()
75 tv = sign*COORD(v, index) - v->sw*k; in poly_clip_to_halfspace()
80 vp = (float *)v; in poly_clip_to_halfspace()
88 q->vert[q->n++] = *v; in poly_clip_to_halfspace()
110 Poly_vert *v; in poly_clip_to_frustum() local
114 for (v=p1->vert, i=p1->n; i>0; i--, v++) { in poly_clip_to_frustum()
115 float sw = v->sw; in poly_clip_to_frustum()
118 if (v->sy < -sw) y0out++; /* out on top */ in poly_clip_to_frustum()
[all …]
/aosp14/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/common/bubbles/
H A DRelativeTouchListener.kt39 abstract fun onDown(v: View, ev: MotionEvent): Boolean
51 v: View,
71 v: View,
95 override fun onTouch(v: View, ev: MotionEvent): Boolean {
103 if (!onDown(v, ev)) {
112 viewPositionOnTouchDown.set(v.translationX, v.translationY)
115 v.handler.postDelayed({
116 if (v.isLongClickable) {
125 v.handler.removeCallbacksAndMessages(null)
139 v.performClick()
[all …]
/aosp14/frameworks/base/core/java/android/widget/
H A DSimpleAdapter.java129 View v; in createViewFromResource() local
133 v = convertView; in createViewFromResource()
136 bindView(position, v); in createViewFromResource()
138 return v; in createViewFromResource()
197 final View v = view.findViewById(to[i]); in bindView() local
198 if (v != null) { in bindView()
211 if (v instanceof Checkable) { in bindView()
278 public void setViewImage(ImageView v, int value) { in setViewImage() argument
279 v.setImageResource(value); in setViewImage()
303 v.setImageURI(Uri.parse(value)); in setViewImage()
[all …]
/aosp14/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/functional/mediarecorder/
H A DMediaRecorderTest.java95 Log.v(TAG, "setEncoder"); in recordVideo()
101 Log.v(TAG, "setPreview"); in recordVideo()
103 Log.v(TAG, "prepare"); in recordVideo()
105 Log.v(TAG, "start"); in recordVideo()
108 Log.v(TAG, "stop"); in recordVideo()
280 Log.v(TAG, "start"); in recordVideoFromSurface()
294 Log.v(TAG, "stop"); in recordVideoFromSurface()
368 Log.v(TAG, e.toString()); in recordVideoWithPara()
395 Log.v(TAG, "prepare"); in invalidRecordSetting()
397 Log.v(TAG, "start"); in invalidRecordSetting()
[all …]
/aosp14/frameworks/base/location/java/com/android/internal/location/altitude/
H A DS2CellIdUtils.java212 return fromFuv(face, u, v); in fromXyz()
218 int j = vToJ(v); in fromFuv()
244 double v = jToV(j); in fromFijWrap() local
300 return uToI(v); in vToJ()
372 return uShiftIntoI(v); in vShiftIntoJ()
521 return v; in createXyzTransforms()
539 return v; in createXyzTransforms()
552 return -v; in createXyzTransforms()
570 return -v; in createXyzTransforms()
583 return v; in createXyzTransforms()
[all …]
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/
H A DDessertCaseView.java320 addView(v, lp); in fillFreeList()
321 place(v, pt, false); in fillFreeList()
326 v.setAlpha(0f); in fillFreeList()
342 v.buildLayer(); in makeHardwareLayerListener()
377 v.setTag(TAG_POS, pt);
378 v.setTag(TAG_SPAN, scale);
395 if (squatter != v) {
425 v.bringToFront();
453 v.setRotation(rot);
522 addView(v);
[all …]
/aosp14/frameworks/base/media/mca/filterpacks/java/android/filterpacks/videosrc/
H A DMediaSource.java185 if (mLogVerbose) Log.v(TAG, "Preparing MediaSource"); in prepare()
198 Log.v(TAG, "Opening MediaSource"); in open()
200 Log.v(TAG, "Current URL is " + mSourceUrl); in open()
202 Log.v(TAG, "Current source is Asset!"); in open()
221 if (mLogVerbose) Log.v(TAG, "Processing new frame"); in process()
254 if (mLogVerbose) Log.v(TAG, "Starting playback"); in process()
284 if (mLogVerbose) Log.v(TAG, "Got new frame"); in process()
323 Log.v(TAG, temp); in process()
361 if (mLogVerbose) Log.v(TAG, "MediaSource closed"); in close()
379 if (mLogVerbose) Log.v(TAG, "Parameter update"); in fieldPortValueUpdated()
[all …]

12345678910>>...59