/frameworks/base/core/tests/coretests/src/android/view/ |
D | VelocityTest.java | 39 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/ |
D | rsg_generator.c | 42 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/ |
D | HidlCameraService.cpp | 283 HVendorTag vt; in getCameraVendorTagSections() local 284 vt.tagId = tags[i]; in getCameraVendorTagSections() 285 vt.tagName = desc->getTagName(tags[i]); in getCameraVendorTagSections() 286 vt.tagType = (HCameraMetadataType) desc->getTagType(tags[i]); in getCameraVendorTagSections() 288 tagsBySection[sectionIdx].push_back(vt); in getCameraVendorTagSections()
|
/frameworks/native/libs/input/tests/ |
D | VelocityTracker_test.cpp | 196 VelocityTracker vt(strategy); in computeAndCheckVelocity() local 201 vt.addMovement(&event); in computeAndCheckVelocity() 204 vt.getVelocity(DEFAULT_POINTER_ID, &Vx, &Vy); in computeAndCheckVelocity() 220 VelocityTracker vt("lsq2"); in computeAndCheckQuadraticEstimate() local 223 vt.addMovement(&event); in computeAndCheckQuadraticEstimate() 226 EXPECT_TRUE(vt.getEstimator(0, &estimator)); in computeAndCheckQuadraticEstimate()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/ |
D | SwipeHelper.java | 163 private float getVelocity(VelocityTracker vt) { in getVelocity() argument 164 return mSwipeDirection == X ? vt.getXVelocity() : in getVelocity() 165 vt.getYVelocity(); in getVelocity() 174 private float getPerpendicularVelocity(VelocityTracker vt) { in getPerpendicularVelocity() argument 175 return mSwipeDirection == X ? vt.getYVelocity() : in getPerpendicularVelocity() 176 vt.getXVelocity(); in getPerpendicularVelocity()
|
/frameworks/av/include/media/ |
D | VolumeShaper.h | 648 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/ |
D | test_generator.py | 158 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/ |
D | AbsListView.java | 4645 final VelocityTracker vt = mVelocityTracker; 4647 if (vt == null || activeId == INVALID_POINTER) { 4651 vt.computeCurrentVelocity(1000, mMaximumVelocity); 4652 final float yvel = -vt.getYVelocity(activeId);
|