Home
last modified time | relevance | path

Searched refs:getX (Results 1 – 25 of 251) sorted by relevance

1234567891011

/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/
DTouchAnimatorTest.java52 assertEquals(0f, mTestView.getX()); in testSetValueFloat()
55 assertEquals(25f, mTestView.getX()); in testSetValueFloat()
58 assertEquals(50f, mTestView.getX()); in testSetValueFloat()
68 assertEquals(0f, mTestView.getX()); in testSetValueFloat_threeValues()
71 assertEquals(10f, mTestView.getX()); in testSetValueFloat_threeValues()
74 assertEquals(20f, mTestView.getX()); in testSetValueFloat_threeValues()
77 assertEquals(35f, mTestView.getX()); in testSetValueFloat_threeValues()
80 assertEquals(50f, mTestView.getX()); in testSetValueFloat_threeValues()
107 assertEquals(0f, mTestView.getX()); in testStartDelay()
110 assertEquals(0f, mTestView.getX()); in testStartDelay()
[all …]
/frameworks/base/rs/java/android/renderscript/
DScriptIntrinsicBLAS.java278 int N = A.getType().getX(); in validateGEMV()
299 if (X.getType().getX() != expectedXDim || in validateGEMV()
300 Y.getType().getX() != expectedYDim) { in validateGEMV()
323 int N = A.getType().getX(); in SGEMV()
345 int N = A.getType().getX(); in DGEMV()
367 int N = A.getType().getX(); in CGEMV()
389 int N = A.getType().getX(); in ZGEMV()
424 int N = A.getType().getX(); in SGBMV()
459 int N = A.getType().getX(); in DGBMV()
494 int N = A.getType().getX(); in CGBMV()
[all …]
DAllocationAdapter.java44 int tx = mAdaptedAllocation.mType.getX(); in initLOD()
146 if (mAdaptedAllocation.getType().getX() <= x) { in setX()
149 if (mWindow.getX() == mAdaptedAllocation.getType().getX()) { in setX()
152 if ((mWindow.getX() + x) >= mAdaptedAllocation.getType().getX()) { in setX()
233 Type t = Type.createX(rs, a.getElement(), a.getType().getX()); in create1D()
240 Type t = Type.createXY(rs, a.getElement(), a.getType().getX(), a.getType().getY()); in create2D()
282 if ((t.getX() > at.getX()) || in createTyped()
/frameworks/rs/cpp/
DScriptIntrinsicBLAS.cpp186 int N = A->getType()->getX(); in validateGEMV()
207 if ((int)X->getType()->getX() != expectedXDim || in validateGEMV()
208 (int)Y->getType()->getX() != expectedYDim) { in validateGEMV()
217 int N = A->getType()->getX(); in SGEMV()
228 int N = A->getType()->getX(); in DGEMV()
239 int N = A->getType()->getX(); in CGEMV()
250 int N = A->getType()->getX(); in ZGEMV()
265 int N = A->getType()->getX(); in SGBMV()
281 int N = A->getType()->getX(); in DGBMV()
297 int N = A->getType()->getX(); in CGBMV()
[all …]
/frameworks/rs/support/java/src/androidx/renderscript/
DScriptIntrinsicBLAS.java285 int N = A.getType().getX();
306 if (X.getType().getX() != expectedXDim ||
307 Y.getType().getX() != expectedYDim) {
330 int N = A.getType().getX(); in SGEMV()
362 int N = A.getType().getX(); in DGEMV()
394 int N = A.getType().getX(); in CGEMV()
426 int N = A.getType().getX(); in ZGEMV()
471 int N = A.getType().getX(); in SGBMV()
516 int N = A.getType().getX(); in DGBMV()
561 int N = A.getType().getX(); in CGBMV()
[all …]
/frameworks/minikin/tests/unittest/
DMeasuredTextTest.cpp169 EXPECT_EQ(0.0f, layout.getX(0)); in TEST()
180 EXPECT_EQ(0.0f, layout.getX(0)); in TEST()
182 EXPECT_EQ(10.0f, layout.getX(1)); in TEST()
194 EXPECT_EQ(0.0f, layout.getX(0)); in TEST()
207 EXPECT_EQ(10.0f * i, layout.getX(i)) << i; in TEST()
243 EXPECT_EQ(0.0f, layout.getX(0)); in TEST()
254 EXPECT_EQ(0.0f, layout.getX(0)); in TEST()
256 EXPECT_EQ(10.0f, layout.getX(1)); in TEST()
268 EXPECT_EQ(0.0f, layout.getX(0)); in TEST()
285 EXPECT_EQ(0.0f, layout.getX(0)); in TEST()
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/classifier/brightline/
DFalsingDataProviderTest.java75 assertThat(motionEventList.get(0).getX(), is(2f)); in test_trackMotionEvents()
76 assertThat(motionEventList.get(1).getX(), is(4f)); in test_trackMotionEvents()
77 assertThat(motionEventList.get(2).getX(), is(6f)); in test_trackMotionEvents()
94 assertThat(motionEventList.get(0).getX(), is(2f)); in test_trackRecentMotionEvents()
95 assertThat(motionEventList.get(1).getX(), is(4f)); in test_trackRecentMotionEvents()
107 assertThat(motionEventList.get(0).getX(), is(4f)); in test_trackRecentMotionEvents()
108 assertThat(motionEventList.get(1).getX(), is(6f)); in test_trackRecentMotionEvents()
116 assertThat(firstRealMotionEvent.getX(), is(2f)); in test_trackRecentMotionEvents()
141 assertThat(motionEventList.get(0).getX(), is(2f)); in test_unpackMotionEvents()
142 assertThat(motionEventList.get(1).getX(), is(4f)); in test_unpackMotionEvents()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/classifier/brightline/
DFalsingDataProvider.java73 "x,y,t: " + m.getX() + "," + m.getY() + "," + m.getEventTime()); in onMotionEvent()
150 return Math.abs(mFirstRecentMotionEvent.getX() - mLastMotionEvent.getX()) > Math in isHorizontal()
160 return mLastMotionEvent.getX() > mFirstRecentMotionEvent.getX(); in isRight()
198 float lastX = mLastMotionEvent.getX() - mFirstRecentMotionEvent.getX(); in calculateAngleInternal()
DZigZagClassifier.java148 float offsetX = firstEvent.getX(); in getAtan2LastPoint()
150 float lastX = lastEvent.getX() - offsetX; in getAtan2LastPoint()
175 float offsetX = firstEvent.getX(); in rotateMotionEvents()
178 float x = motionEvent.getX() - offsetX; in rotateMotionEvents()
189 "Before: (" + firstEvent.getX() + "," + firstEvent.getY() + "), (" in rotateMotionEvents()
190 + lastEvent.getX() + "," in rotateMotionEvents()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DDoubleTapHelper.java72 mDownX = event.getX(); in onTouchEvent()
93 mActivationX = event.getX(); in onTouchEvent()
99 event.getX() - mActivationX, in onTouchEvent()
141 return Math.abs(event.getX() - mDownX) < mTouchSlop in isWithinTouchSlop()
151 return Math.abs(event.getX() - mActivationX) < mDoubleTapSlop in isWithinDoubleTapSlop()
/frameworks/compile/slang/tests/P_struct_field/
DScriptField_Outer.java.expect179 …if (mIOBuffer == null) mIOBuffer = new FieldPacker(mElement.getBytesSize() * getType().getX()/* co…
185 if (mItemArray == null) mItemArray = new Item[getType().getX() /* count */];
202 …if (mIOBuffer == null) mIOBuffer = new FieldPacker(mElement.getBytesSize() * getType().getX()/* co…
203 if (mItemArray == null) mItemArray = new Item[getType().getX() /* count */];
221 …if (mIOBuffer == null) mIOBuffer = new FieldPacker(mElement.getBytesSize() * getType().getX()/* co…
222 if (mItemArray == null) mItemArray = new Item[getType().getX() /* count */];
236 …if (mIOBuffer == null) mIOBuffer = new FieldPacker(mElement.getBytesSize() * getType().getX()/* co…
237 if (mItemArray == null) mItemArray = new Item[getType().getX() /* count */];
255 …if (mIOBuffer == null) mIOBuffer = new FieldPacker(mElement.getBytesSize() * getType().getX()/* co…
256 if (mItemArray == null) mItemArray = new Item[getType().getX() /* count */];
[all …]
DScriptField_InnerOne.java.expect122 …if (mIOBuffer == null) mIOBuffer = new FieldPacker(mElement.getBytesSize() * getType().getX()/* co…
128 if (mItemArray == null) mItemArray = new Item[getType().getX() /* count */];
145 …if (mIOBuffer == null) mIOBuffer = new FieldPacker(mElement.getBytesSize() * getType().getX()/* co…
146 if (mItemArray == null) mItemArray = new Item[getType().getX() /* count */];
160 …if (mIOBuffer == null) mIOBuffer = new FieldPacker(mElement.getBytesSize() * getType().getX()/* co…
161 if (mItemArray == null) mItemArray = new Item[getType().getX() /* count */];
175 …if (mIOBuffer == null) mIOBuffer = new FieldPacker(mElement.getBytesSize() * getType().getX()/* co…
176 if (mItemArray == null) mItemArray = new Item[getType().getX() /* count */];
220 …if (mIOBuffer != null) mIOBuffer = new FieldPacker(mElement.getBytesSize() * getType().getX()/* co…
/frameworks/rs/tests/java_api/ImageProcessing2/src/com/android/rs/image/
DFisheye.java80 mInPixelsAllocation.getType().getX(), in do_init()
85 mInPixelsAllocation.getType().getX(), in do_init()
90 mInPixelsAllocation.getType().getX(), in do_init()
95 mInPixelsAllocation.getType().getX(), in do_init()
DVignette.java102 mInPixelsAllocation.getType().getX(), in do_init()
107 mInPixelsAllocation.getType().getX(), in do_init()
112 mInPixelsAllocation.getType().getX(), in do_init()
117 mInPixelsAllocation.getType().getX(), in do_init()
/frameworks/rs/tests/java_api/ImageProcessing/src/com/android/rs/image/
DFisheye.java78 mInPixelsAllocation.getType().getX(), in do_init()
83 mInPixelsAllocation.getType().getX(), in do_init()
88 mInPixelsAllocation.getType().getX(), in do_init()
93 mInPixelsAllocation.getType().getX(), in do_init()
DVignette.java100 mInPixelsAllocation.getType().getX(), in do_init()
105 mInPixelsAllocation.getType().getX(), in do_init()
110 mInPixelsAllocation.getType().getX(), in do_init()
115 mInPixelsAllocation.getType().getX(), in do_init()
/frameworks/rs/tests/java_api/ImageProcessing_jb/src/com/android/rs/image/
DFisheye.java83 mInPixelsAllocation.getType().getX(), in do_init()
88 mInPixelsAllocation.getType().getX(), in do_init()
93 mInPixelsAllocation.getType().getX(), in do_init()
98 mInPixelsAllocation.getType().getX(), in do_init()
DVignette.java102 mInPixelsAllocation.getType().getX(), in do_init()
107 mInPixelsAllocation.getType().getX(), in do_init()
112 mInPixelsAllocation.getType().getX(), in do_init()
117 mInPixelsAllocation.getType().getX(), in do_init()
/frameworks/opt/setupwizard/library/main/src/com/android/setupwizardlib/gesture/
DConsecutiveTapsGestureDetector.java70 if (viewRect.contains((int) ev.getX(), (int) ev.getY())) { in onTouchEvent()
103 double deltaX = previousTapEvent.getX() - currentTapEvent.getX(); in isConsecutiveTap()
/frameworks/rs/tests/java_api/CannyLive/src/com/android/example/cannylive/
DViewfinderProcessor.java191 opt.setX(2, mBlurAllocation.getType().getX() - 2); in run()
195 opt.setX(3, mBlurAllocation.getType().getX() - 3); in run()
199 opt.setX(4, mBlurAllocation.getType().getX() - 4); in run()
203 opt.setX(5, mBlurAllocation.getType().getX() - 5); in run()
281 opt.setX(2, blur_alloc.getType().getX() - 2); in processImage()
285 opt.setX(3, blur_alloc.getType().getX() - 3); in processImage()
289 opt.setX(4, blur_alloc.getType().getX() - 4); in processImage()
293 opt.setX(5, blur_alloc.getType().getX() - 5); in processImage()
/frameworks/base/core/java/android/text/method/
DTouch.java100 buffer.setSpan(new DragState(event.getX(), event.getY(), in onTouchEvent()
125 if (Math.abs(event.getX() - ds[0].mX) >= slop || in onTouchEvent()
144 dx = event.getX() - ds[0].mX; in onTouchEvent()
147 dx = ds[0].mX - event.getX(); in onTouchEvent()
150 ds[0].mX = event.getX(); in onTouchEvent()
/frameworks/compile/slang/tests/P_reflection3264_divergent_support/
DScriptField_Divergent.java.expect129 …if (mIOBuffer == null) mIOBuffer = new FieldPacker(mElement.getBytesSize() * getType().getX()/* co…
135 if (mItemArray == null) mItemArray = new Item[getType().getX() /* count */];
152 …if (mIOBuffer == null) mIOBuffer = new FieldPacker(mElement.getBytesSize() * getType().getX()/* co…
153 if (mItemArray == null) mItemArray = new Item[getType().getX() /* count */];
167 …if (mIOBuffer == null) mIOBuffer = new FieldPacker(mElement.getBytesSize() * getType().getX()/* co…
168 if (mItemArray == null) mItemArray = new Item[getType().getX() /* count */];
182 …if (mIOBuffer == null) mIOBuffer = new FieldPacker(mElement.getBytesSize() * getType().getX()/* co…
183 if (mItemArray == null) mItemArray = new Item[getType().getX() /* count */];
/frameworks/compile/slang/tests/P_reflection3264_divergent/
DScriptField_Divergent.java.expect132 …if (mIOBuffer == null) mIOBuffer = new FieldPacker(mElement.getBytesSize() * getType().getX()/* co…
138 if (mItemArray == null) mItemArray = new Item[getType().getX() /* count */];
155 …if (mIOBuffer == null) mIOBuffer = new FieldPacker(mElement.getBytesSize() * getType().getX()/* co…
156 if (mItemArray == null) mItemArray = new Item[getType().getX() /* count */];
170 …if (mIOBuffer == null) mIOBuffer = new FieldPacker(mElement.getBytesSize() * getType().getX()/* co…
171 if (mItemArray == null) mItemArray = new Item[getType().getX() /* count */];
185 …if (mIOBuffer == null) mIOBuffer = new FieldPacker(mElement.getBytesSize() * getType().getX()/* co…
186 if (mItemArray == null) mItemArray = new Item[getType().getX() /* count */];
230 …if (mIOBuffer != null) mIOBuffer = new FieldPacker(mElement.getBytesSize() * getType().getX()/* co…
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/touch/
DSwipeDetector.java91 return Math.abs(ev.getX(pointerIndex) - downPos.x);
99 return ev.getX(pointerIndex) - refPoint.x;
215 mDownPos.set(ev.getX(), ev.getY()); in onTouchEvent()
232 ev.getX(newPointerIdx) - (mLastPos.x - mDownPos.x), in onTouchEvent()
234 mLastPos.set(ev.getX(newPointerIdx), ev.getY(newPointerIdx)); in onTouchEvent()
254 mLastPos.set(ev.getX(pointerIndex), ev.getY(pointerIndex)); in onTouchEvent()
/frameworks/compile/slang/tests/P_reduce_general_inputs/
DScriptC_reduce_general_inputs.java.expect173 (t0.getX() != t1.getX()) ||
237 (t0.getX() != t1.getX()) ||
305 (t0.getX() != t1.getX()) ||
373 (t0.getX() != t1.getX()) ||
441 (t0.getX() != t1.getX()) ||
509 (t0.getX() != t1.getX()) ||
573 (t0.getX() != t1.getX()) ||
637 (t0.getX() != t1.getX()) ||
705 (t0.getX() != t1.getX()) ||
773 (t0.getX() != t1.getX()) ||
[all …]

1234567891011