Home
last modified time | relevance | path

Searched refs:steps (Results 1 – 25 of 38) sorted by relevance

12

/frameworks/base/services/tests/servicestests/src/com/android/server/accessibility/
DGestureDescriptionTest.java147 List<GestureStep> steps = MotionEventGenerator in testPathsWithOverlappingTiming_produceCorrectSteps() local
151 assertThat(steps.get(0), allOf(numStartsOfStroke(1), numEndsOfStroke(0), isAtTime(start), in testPathsWithOverlappingTiming_produceCorrectSteps()
153 assertThat(steps.get(1), allOf(numTouchPointsIs(1), noStartsOrEnds(), in testPathsWithOverlappingTiming_produceCorrectSteps()
155 assertThat(steps.get(2), allOf(numTouchPointsIs(1), isAtTime(start + deltaT * 2))); in testPathsWithOverlappingTiming_produceCorrectSteps()
156 assertThat(steps.get(3), allOf(numTouchPointsIs(1), isAtTime(start + deltaT * 3))); in testPathsWithOverlappingTiming_produceCorrectSteps()
157 assertThat(steps.get(4), allOf(numTouchPointsIs(1), isAtTime(start + deltaT * 4))); in testPathsWithOverlappingTiming_produceCorrectSteps()
159 assertThat(steps.get(5), allOf(numTouchPointsIs(3), numStartsOfStroke(2), in testPathsWithOverlappingTiming_produceCorrectSteps()
164 assertThat(steps.get(6), allOf(numTouchPointsIs(3), isAtTime(start + deltaT * 1))); in testPathsWithOverlappingTiming_produceCorrectSteps()
165 assertThat(steps.get(7), allOf(noStartsOrEnds(), isAtTime(start + deltaT * 2))); in testPathsWithOverlappingTiming_produceCorrectSteps()
166 assertThat(steps.get(8), allOf(numTouchPointsIs(3), isAtTime(start + deltaT * 3))); in testPathsWithOverlappingTiming_produceCorrectSteps()
[all …]
/frameworks/base/cmds/uiautomator/library/core-src/com/android/uiautomator/core/
DUiObject.java198 public boolean dragTo(UiObject destObj, int steps) throws UiObjectNotFoundException { in dragTo() argument
202 dstRect.centerX(), dstRect.centerY(), steps, true); in dragTo()
218 public boolean dragTo(int destX, int destY, int steps) throws UiObjectNotFoundException { in dragTo() argument
221 steps, true); in dragTo()
240 public boolean swipeUp(int steps) throws UiObjectNotFoundException { in swipeUp() argument
241 Tracer.trace(steps); in swipeUp()
247 steps); in swipeUp()
268 public boolean swipeDown(int steps) throws UiObjectNotFoundException { in swipeDown() argument
269 Tracer.trace(steps); in swipeDown()
275 rect.bottom - SWIPE_MARGIN_LIMIT, steps); in swipeDown()
[all …]
DUiScrollable.java414 public boolean scrollForward(int steps) throws UiObjectNotFoundException { in scrollForward() argument
415 Tracer.trace(steps); in scrollForward()
447 return getInteractionController().scrollSwipe(downX, downY, upX, upY, steps); in scrollForward()
493 public boolean scrollBackward(int steps) throws UiObjectNotFoundException { in scrollBackward() argument
494 Tracer.trace(steps); in scrollBackward()
528 return getInteractionController().scrollSwipe(downX, downY, upX, upY, steps); in scrollBackward()
541 public boolean scrollToBeginning(int maxSwipes, int steps) throws UiObjectNotFoundException { in scrollToBeginning() argument
542 Tracer.trace(maxSwipes, steps); in scrollToBeginning()
546 if(!scrollBackward(steps)) { in scrollToBeginning()
593 public boolean scrollToEnd(int maxSwipes, int steps) throws UiObjectNotFoundException { in scrollToEnd() argument
[all …]
DUiDevice.java430 public boolean swipe(int startX, int startY, int endX, int endY, int steps) { in swipe() argument
431 Tracer.trace(startX, startY, endX, endY, steps); in swipe()
433 .swipe(startX, startY, endX, endY, steps); in swipe()
451 public boolean drag(int startX, int startY, int endX, int endY, int steps) { in drag() argument
452 Tracer.trace(startX, startY, endX, endY, steps); in drag()
454 .swipe(startX, startY, endX, endY, steps, true); in drag()
DInteractionController.java347 final int steps) {
349 + upY + ", " + steps +")");
354 swipe(downX, downY, upX, upY, steps);
422 public boolean swipe(int downX, int downY, int upX, int upY, int steps) {
423 return swipe(downX, downY, upX, upY, steps, false /*drag*/);
436 public boolean swipe(int downX, int downY, int upX, int upY, int steps, boolean drag) {
438 int swipeSteps = steps;
/frameworks/rs/tests/java_api/ImageProcessing/src/com/android/rs/image/
DHistogram.java37 int steps = (h + step - 1) / step; in createTest() local
42 mScript.set_gSteps(steps); in createTest()
45 tb.setX(256).setY(steps); in createTest()
/frameworks/rs/tests/java_api/ImageProcessing_jb/src/com/android/rs/image/
DHistogram.java43 int steps = (h + step - 1) / step; in createTest() local
48 mScript.set_gSteps(steps); in createTest()
51 tb.setX(256).setY(steps); in createTest()
/frameworks/base/core/tests/coretests/src/android/view/
DVelocityTest.java238 private void drag(VelocityTracker vt, int startX, int endX, int startY, int endY, int steps, in drag() argument
240 drag(vt, startX, endX, startY, endY, steps, startime, duration, new LinearInterpolator()); in drag()
247 private void drag(VelocityTracker vt, int startX, int endX, int startY, int endY, int steps, in drag() argument
250 float dt = duration / (float)steps; in drag()
253 for (int i=1; i<steps-1; i++) { in drag()
254 float ii = interpolator.getInterpolation(i / (float)steps); in drag()
/frameworks/base/apct-tests/perftests/core/src/android/widget/
DEditTextLongTextPerfTest.java106 final int steps = 100; in testEditText() local
108 for (int i = 0; i < steps; i++) { in testEditText()
109 int offset = (editText.getText().length() * i) / steps; in testEditText()
/frameworks/base/apct-tests/perftests/core/src/android/text/
DDynamicLayoutPerfTest.java121 final int steps = 10;
123 for (int i = 0; i < steps; i++) {
124 int offset = (text.length() * i) / steps;
/frameworks/layoutlib/bridge/src/android/webkit/
DWebView.java132 public boolean canGoBackOrForward(int steps) { in canGoBackOrForward() argument
136 public void goBackOrForward(int steps) { in goBackOrForward() argument
/frameworks/rs/tests/java_api/SSHealingBrush/src/rs/example/android/com/healingbrush/
Dhealing.rs135 int steps = (int)hypot((float)width, (float)height);
136 rsDebug("find_region.rs:steps = ", steps);
145 for (int i = 0; i < steps; i++) {
DHealing.java159 … int steps = (int) Math.hypot(mRoiBounds.width(), mRoiBounds.height()); // match RS Single source in heal_orig() local
160 Log.v(TAG, "Healing_orig :steps = " + steps); in heal_orig()
161 for (int i = 0; i < steps; i++) { in heal_orig()
/frameworks/base/startop/view_compiler/
DREADME.md41 To add a new DEX file test, follow these steps:
53 you can skip all of steps 2 and 3 above, and simplify steps 1 and 4.
/frameworks/base/core/tests/coretests/src/android/widget/espresso/
DDragAction.java311 float[][] steps = interpolate(startCoordinates, endCoordinates); in sendLinearDrag() local
312 final int delayBetweenMovements = DRAG_DURATION / steps.length; in sendLinearDrag()
320 for (int i = 0; i < steps.length; i++) { in sendLinearDrag()
321 if (!MotionEvents.sendMovement(uiController, downEvent, steps[i])) { in sendLinearDrag()
/frameworks/rs/tests/java_api/HealingBrush/src/rs/example/android/com/healingbrush/
DHealing.java115 int steps = (int) Math.sqrt(area); in heal() local
117 for (int i = 0; i < steps; i++) { in heal()
/frameworks/native/opengl/tests/testViewport/
DREADME1 Repro steps:
/frameworks/native/opengl/tests/testPauseResume/
DREADME1 Repro steps:
/frameworks/av/media/libaudioprocessing/
DAudioResamplerFirGen.h525 double fstart, double fend, int steps, double &firMin, double &firMax) {
528 double wstep = (wend - wstart)/steps;
536 for (int i=1; i<steps; ++i) {
/frameworks/base/services/accessibility/java/com/android/server/accessibility/
DMotionEventInjector.java341 List<GestureStep> steps, long startTime) { in getMotionEventsFromGestureSteps() argument
346 for (int i = 0; i < steps.size(); i++) { in getMotionEventsFromGestureSteps()
347 GestureDescription.GestureStep step = steps.get(i); in getMotionEventsFromGestureSteps()
/frameworks/base/core/java/android/webkit/
DWebViewProvider.java155 public boolean canGoBackOrForward(int steps); in canGoBackOrForward() argument
157 public void goBackOrForward(int steps); in goBackOrForward() argument
DWebView.java965 public boolean canGoBackOrForward(int steps) { in canGoBackOrForward() argument
967 return mProvider.canGoBackOrForward(steps); in canGoBackOrForward()
978 public void goBackOrForward(int steps) { in goBackOrForward() argument
980 mProvider.goBackOrForward(steps); in goBackOrForward()
/frameworks/ml/nn/runtime/test/
DTestPartitioning.cpp1423 const auto& steps = plan.forTest_compoundGetSteps(); in TEST_F() local
1424 ASSERT_EQ(steps.size(), size_t(3)); in TEST_F()
1426 const auto& step0 = steps[0]; in TEST_F()
1448 const auto& step1 = steps[1]; in TEST_F()
1470 const auto& step2 = steps[2]; in TEST_F()
1565 const auto& steps = plan.forTest_compoundGetSteps(); in TEST_F() local
1566 ASSERT_EQ(steps.size(), size_t(2)); in TEST_F()
1577 compare(steps[0], &model0, devices[0], in TEST_F()
1594 compare(steps[1], &model1, devices[1], RemapVectorType{}, // modelInputs in TEST_F()
1797 const auto& steps = plan.forTest_compoundGetSteps(); in getTransformedCacheTokenSingle() local
[all …]
DTestPartitioningRandom.cpp1144 const auto& steps = plan.forTest_compoundGetSteps(); in TEST_P() local
1146 for (const auto& step : steps) { in TEST_P()
1149 std::cout << "plan: compound, " << steps.size() << " steps over " in TEST_P()
1151 for (unsigned i = 0; i < steps.size(); i++) { in TEST_P()
1152 std::cout << "Step " << i << ": " << ModelStats(steps[i]->getSubModel()) in TEST_P()
1153 << ", device = " << steps[i]->getDevice()->getName() << std::endl; in TEST_P()
/frameworks/base/core/java/android/os/
DBatteryStats.java1110 public LevelStepTracker(int numSteps, long[] steps) { in LevelStepTracker() argument
1113 System.arraycopy(steps, 0, mStepDurations, 0, numSteps); in LevelStepTracker()
1271 final long[] steps = mStepDurations; in computeTimePerLevel() local
1280 total += steps[i] & STEP_LEVEL_TIME_MASK; in computeTimePerLevel()
1313 final long[] steps = mStepDurations; in computeTimeEstimate() local
1321 long initMode = (steps[i] & STEP_LEVEL_INITIAL_MODE_MASK) in computeTimeEstimate()
1323 long modMode = (steps[i] & STEP_LEVEL_MODIFIED_MODE_MASK) in computeTimeEstimate()
1331 total += steps[i] & STEP_LEVEL_TIME_MASK; in computeTimeEstimate()
1352 final long[] steps = mStepDurations; in addLevelSteps() local
1355 System.arraycopy(steps, 0, steps, 1, steps.length-1); in addLevelSteps()
[all …]

12