Home
last modified time | relevance | path

Searched refs:vt (Results 1 – 8 of 8) sorted by relevance

/frameworks/base/core/tests/coretests/src/android/view/
DVelocityTest.java38 VelocityTracker vt = VelocityTracker.obtain(); in testInitialCondiditions() local
39 assertNotNull(vt); in testInitialCondiditions()
40 vt.recycle(); in testInitialCondiditions()
50 VelocityTracker vt = VelocityTracker.obtain(); in testClear() local
51 drag(vt, 100, 200, 100, 200, 10, t, 300); in testClear()
52 vt.computeCurrentVelocity(1); in testClear()
53 assertFalse("Velocity should not be null", vt.getXVelocity() == 0.0f); in testClear()
54 assertFalse("Velocity should not be null", vt.getYVelocity() == 0.0f); in testClear()
55 vt.clear(); in testClear()
56 vt.computeCurrentVelocity(1); in testClear()
[all …]
/frameworks/rs/
Drsg_generator.c42 void printVarType(FILE *f, const VarType *vt) { in printVarType() argument
44 if (vt->isConst) { in printVarType()
48 switch (vt->type) { in printVarType()
53 fprintf(f, "int%i_t", vt->bits); in printVarType()
56 fprintf(f, "uint%i_t", vt->bits); in printVarType()
59 if (vt->bits == 32) in printVarType()
65 fprintf(f, "%s", vt->typeName); in printVarType()
69 if (vt->ptrLevel) { in printVarType()
71 for (ct=0; ct < vt->ptrLevel; ct++) { in printVarType()
77 void printVarTypeAndName(FILE *f, const VarType *vt) { in printVarTypeAndName() argument
[all …]
/frameworks/support/samples/SupportAnimationDemos/src/com/example/android/support/animation/
DSpringActivity.java60 public VelocityTracker vt; in onCreate()
77 vt = VelocityTracker.obtain(); in onCreate()
78 vt.clear(); in onCreate()
81 vt.addMovement(motionEvent); in onCreate()
90 vt.computeCurrentVelocity(1000); in onCreate()
91 float velocity = vt.getYVelocity(); in onCreate()
94 vt.recycle(); in onCreate()
/frameworks/ml/nn/tools/test_generator/
Dtest_generator.py139 def __init__(self, vt = None, shape = None): argument
140 self.__vt = vt
142 if vt is None or shape is None:
204 def __init__(self, name, vt): argument
206 self.type = vt
214 def __init__(self, name, vt): argument
215 Value.__init__(self, name, vt)
218 "model->addOperand(&" + vt.get_name() + ")")
243 def __init__(self, name, vt, shape, increase_next_number=True): argument
244 Operand.__init__(self, name, Type(vt, shape))
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/
DSwipeHelper.java146 private float getVelocity(VelocityTracker vt) { in getVelocity() argument
147 return mSwipeDirection == X ? vt.getXVelocity() : in getVelocity()
148 vt.getYVelocity(); in getVelocity()
157 private float getPerpendicularVelocity(VelocityTracker vt) { in getPerpendicularVelocity() argument
158 return mSwipeDirection == X ? vt.getYVelocity() : in getPerpendicularVelocity()
159 vt.getXVelocity(); in getPerpendicularVelocity()
/frameworks/av/include/media/
DVolumeShaper.h646 std::tuple<T /* volume */, S /* position */, bool /* active */> vt = in getVolume() local
649 mLastVolume = std::get<0>(vt); in getVolume()
650 mLastXOffset = std::get<1>(vt); in getVolume()
651 const bool active = std::get<2>(vt); in getVolume()
/frameworks/base/core/java/com/android/internal/app/
DChooserActivity.java1714 final int vt = mChooserRowAdapter.getItemViewType(pos); in onChanged() local
1715 if (vt != mCachedViewType) { in onChanged()
1723 if (vt >= 0) { in onChanged()
1724 mCachedViewType = vt; in onChanged()
/frameworks/base/core/java/android/widget/
DAbsListView.java4584 final VelocityTracker vt = mVelocityTracker;
4586 if (vt == null || activeId == INVALID_POINTER) {
4590 vt.computeCurrentVelocity(1000, mMaximumVelocity);
4591 final float yvel = -vt.getYVelocity(activeId);