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.java39 VelocityTracker vt = VelocityTracker.obtain(); in testInitialCondiditions() local
40 assertNotNull(vt); in testInitialCondiditions()
41 vt.recycle(); in testInitialCondiditions()
51 VelocityTracker vt = VelocityTracker.obtain(); in testClear() local
52 drag(vt, 100, 200, 100, 200, 10, t, 300); in testClear()
53 vt.computeCurrentVelocity(1); in testClear()
54 assertFalse("Velocity should not be null", vt.getXVelocity() == 0.0f); in testClear()
55 assertFalse("Velocity should not be null", vt.getYVelocity() == 0.0f); in testClear()
56 vt.clear(); in testClear()
57 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/av/services/camera/libcameraservice/hidl/
DHidlCameraService.cpp254 HVendorTag vt; in getCameraVendorTagSections() local
255 vt.tagId = tags[i]; in getCameraVendorTagSections()
256 vt.tagName = desc->getTagName(tags[i]); in getCameraVendorTagSections()
257 vt.tagType = (HCameraMetadataType) desc->getTagType(tags[i]); in getCameraVendorTagSections()
259 tagsBySection[sectionIdx].push_back(vt); in getCameraVendorTagSections()
/frameworks/native/libs/input/tests/
DVelocityTracker_test.cpp194 VelocityTracker vt(strategy); in computeAndCheckVelocity() local
199 vt.addMovement(&event); in computeAndCheckVelocity()
202 vt.getVelocity(DEFAULT_POINTER_ID, &Vx, &Vy); in computeAndCheckVelocity()
218 VelocityTracker vt("lsq2"); in computeAndCheckQuadraticEstimate() local
221 vt.addMovement(&event); in computeAndCheckQuadraticEstimate()
224 EXPECT_TRUE(vt.getEstimator(0, &estimator)); in computeAndCheckQuadraticEstimate()
/frameworks/base/packages/SystemUI/src/com/android/systemui/
DSwipeHelper.java144 private float getVelocity(VelocityTracker vt) { in getVelocity() argument
145 return mSwipeDirection == X ? vt.getXVelocity() : in getVelocity()
146 vt.getYVelocity(); in getVelocity()
155 private float getPerpendicularVelocity(VelocityTracker vt) { in getPerpendicularVelocity() argument
156 return mSwipeDirection == X ? vt.getYVelocity() : in getPerpendicularVelocity()
157 vt.getXVelocity(); in getPerpendicularVelocity()
/frameworks/av/include/media/
DVolumeShaper.h648 std::tuple<T /* volume */, S /* position */, bool /* active */> vt = in getVolume() local
651 mLastVolume = std::get<0>(vt); in getVolume()
652 mLastXOffset = std::get<1>(vt); in getVolume()
653 const bool active = std::get<2>(vt); in getVolume()
/frameworks/ml/nn/tools/test_generator/
Dtest_generator.py158 def __init__(self, vt, dimensions, scale, zeroPoint, name="type", skipRenaming=False, argument
161 self.type = vt
170 def GetType(vt, dimensions, scale=0, zeroPoint=0, extraParams=None): argument
173 key = ",".join([vt, str(dimensions), str(scale), str(zeroPoint), str(extraParams)])
175 Type.typesMap[key] = Type(vt, dimensions, scale, zeroPoint, extraParams=extraParams)
185 def GetTypeFromString(vt, shape, extraParams=None): argument
189 return Type.GetType(vt, dimensions, scale, zeroPoint, extraParams)
/frameworks/base/core/java/android/widget/
DAbsListView.java4664 final VelocityTracker vt = mVelocityTracker;
4666 if (vt == null || activeId == INVALID_POINTER) {
4670 vt.computeCurrentVelocity(1000, mMaximumVelocity);
4671 final float yvel = -vt.getYVelocity(activeId);