Searched refs:steps (Results 1 - 25 of 28) sorted by relevance

12

/frameworks/base/services/tests/servicestests/src/com/android/server/accessibility/
H A DGestureDescriptionTest.java147 List<GestureStep> steps = MotionEventGenerator
151 assertThat(steps.get(0), allOf(numStartsOfStroke(1), numEndsOfStroke(0), isAtTime(start),
153 assertThat(steps.get(1), allOf(numTouchPointsIs(1), noStartsOrEnds(),
155 assertThat(steps.get(2), allOf(numTouchPointsIs(1), isAtTime(start + deltaT * 2)));
156 assertThat(steps.get(3), allOf(numTouchPointsIs(1), isAtTime(start + deltaT * 3)));
157 assertThat(steps.get(4), allOf(numTouchPointsIs(1), isAtTime(start + deltaT * 4)));
159 assertThat(steps.get(5), allOf(numTouchPointsIs(3), numStartsOfStroke(2),
164 assertThat(steps.get(6), allOf(numTouchPointsIs(3), isAtTime(start + deltaT * 1)));
165 assertThat(steps.get(7), allOf(noStartsOrEnds(), isAtTime(start + deltaT * 2)));
166 assertThat(steps
[all...]
/frameworks/base/cmds/uiautomator/library/core-src/com/android/uiautomator/core/
H A DUiObject.java188 * The number of steps specified in your input parameter can influence the
193 * @param steps usually 40 steps. You can increase or decrease the steps to change the speed.
198 public boolean dragTo(UiObject destObj, int steps) throws UiObjectNotFoundException { argument
202 dstRect.centerX(), dstRect.centerY(), steps, true);
207 * The number of steps specified in your input parameter can influence the
213 * @param steps usually 40 steps. You can increase or decrease the steps t
218 dragTo(int destX, int destY, int steps) argument
240 swipeUp(int steps) argument
268 swipeDown(int steps) argument
296 swipeLeft(int steps) argument
323 swipeRight(int steps) argument
927 pinchOut(int percent, int steps) argument
965 pinchIn(int percent, int steps) argument
1003 performTwoPointerGesture(Point startPoint1, Point startPoint2, Point endPoint1, Point endPoint2, int steps) argument
[all...]
H A DUiScrollable.java34 // More steps slows the swipe and prevents contents from being flung too far
372 * Performs a forward fling with the default number of fling steps (5).
388 * Performs a forward scroll with the default number of scroll steps (55).
410 * @param steps number of steps. Use this to control the speed of the scroll action
414 public boolean scrollForward(int steps) throws UiObjectNotFoundException { argument
415 Tracer.trace(steps);
447 return getInteractionController().scrollSwipe(downX, downY, upX, upY, steps);
452 * steps (5). If the swipe direction is set to vertical,
467 * Performs a backward scroll with the default number of scroll steps (5
493 scrollBackward(int steps) argument
541 scrollToBeginning(int maxSwipes, int steps) argument
593 scrollToEnd(int maxSwipes, int steps) argument
[all...]
H A DUiDevice.java418 * Performs a swipe from one coordinate to another using the number of steps
420 * per step. So for a 100 steps, the swipe will take about 1/2 second to complete.
426 * @param steps is the number of move steps sent to the system
430 public boolean swipe(int startX, int startY, int endX, int endY, int steps) { argument
431 Tracer.trace(startX, startY, endX, endY, steps);
433 .swipe(startX, startY, endX, endY, steps);
438 * the smoothness and speed of the swipe by specifying the number of steps.
440 * steps, the swipe will take around 0.5 seconds to complete.
446 * @param steps i
451 drag(int startX, int startY, int endX, int endY, int steps) argument
[all...]
H A DInteractionController.java343 * @param steps
347 final int steps) {
349 + upY + ", " + steps +")");
354 swipe(downX, downY, upX, upY, steps);
419 * @param steps
422 public boolean swipe(int downX, int downY, int upX, int upY, int steps) { argument
423 return swipe(downX, downY, upX, upY, steps, false /*drag*/);
432 * @param steps
436 public boolean swipe(int downX, int downY, int upX, int upY, int steps, boolean drag) { argument
438 int swipeSteps = steps;
346 scrollSwipe(final int downX, final int downY, final int upX, final int upY, final int steps) argument
[all...]
/frameworks/support/wear/src/androidTest/java/androidx/wear/widget/util/
H A DArcSwipe.java93 private float[][] interpolate(float[] start, float[] end, int steps, boolean isClockwise) { argument
104 float[][] res = new float[steps][2];
107 for (int i = 1; i < steps + 1; i++) {
108 pathMeasure.getPosTan((pathLength * i) / (steps + 2f), res[i - 1], mPathTangent);
122 float[][] steps = interpolate(startCoordinates, endCoordinates, SWIPE_EVENT_COUNT,
124 final int delayBetweenMovements = duration / steps.length;
129 for (int i = 0; i < steps.length; i++) {
130 if (!MotionEvents.sendMovement(uiController, downEvent, steps[i])) {
/frameworks/rs/tests/java_api/ImageProcessing/src/com/android/rs/image/
H A DHistogram.java37 int steps = (h + step - 1) / step;
42 mScript.set_gSteps(steps);
45 tb.setX(256).setY(steps);
/frameworks/rs/tests/java_api/ImageProcessing_jb/src/com/android/rs/image/
H A DHistogram.java43 int steps = (h + step - 1) / step;
48 mScript.set_gSteps(steps);
51 tb.setX(256).setY(steps);
/frameworks/base/apct-tests/perftests/core/src/android/text/
H A DDynamicLayoutPerfTest.java120 final int steps = 10;
122 for (int i = 0; i < steps; i++) {
123 int offset = (text.length() * i) / steps;
/frameworks/base/apct-tests/perftests/core/src/android/widget/
H A DEditTextLongTextPerfTest.java113 final int steps = 100;
115 for (int i = 0; i < steps; i++) {
116 int offset = (editText.getText().length() * i) / steps;
/frameworks/base/core/tests/coretests/src/android/view/
H A DVelocityTest.java119 // 100px, 2 steps, 100ms => 1000px/s
136 drag(vt, 100, 200, 100, 200, 10, t, 400); // 10 steps over 400ms
141 drag(vt, 100, 200, 100, 200, 20, t, 400); // 20 steps over 400ms
237 private void drag(VelocityTracker vt, int startX, int endX, int startY, int endY, int steps, argument
239 drag(vt, startX, endX, startY, endY, steps, startime, duration, new LinearInterpolator());
246 private void drag(VelocityTracker vt, int startX, int endX, int startY, int endY, int steps, argument
249 float dt = duration / (float)steps;
252 for (int i=1; i<steps-1; i++) {
253 float ii = interpolator.getInterpolation(i / (float)steps);
/frameworks/layoutlib/bridge/src/android/webkit/
H A DWebView.java132 public boolean canGoBackOrForward(int steps) { argument
136 public void goBackOrForward(int steps) { argument
/frameworks/ml/nn/runtime/test/
H A DTestPartitioning.cpp896 const auto& steps = plan.forTest_compoundGetSteps(); local
897 ASSERT_EQ(steps.size(), size_t(3));
899 const auto& step0 = steps[0];
901 // Build a model to compare against the submodel from steps[0].
923 const auto& step1 = steps[1];
925 // Build a model to compare against the submodel from steps[1].
948 const auto& step2 = steps[2];
950 // Build a model to compare against the submodel from steps[2].
1048 const auto& steps = plan.forTest_compoundGetSteps(); local
1049 ASSERT_EQ(steps
[all...]
H A DTestPartitioningRandom.cpp975 const auto& steps = plan.forTest_compoundGetSteps(); local
977 for (const auto& step : steps) {
980 std::cout << "plan: compound, " << steps.size() << " steps over "
982 for (unsigned i = 0; i < steps.size(); i++) {
984 << ModelStats(steps[i]->getSubModel()) << std::endl;
/frameworks/rs/tests/java_api/SSHealingBrush/src/rs/example/android/com/healingbrush/
H A 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++) {
H A DHealing.java159 int steps = (int) Math.hypot(mRoiBounds.width(), mRoiBounds.height()); // match RS Single source
160 Log.v(TAG, "Healing_orig :steps = " + steps);
161 for (int i = 0; i < steps; i++) {
/frameworks/base/core/tests/coretests/src/android/widget/espresso/
H A DDragAction.java308 float[][] steps = interpolate(startCoordinates, endCoordinates);
309 final int delayBetweenMovements = DRAG_DURATION / steps.length;
317 for (int i = 0; i < steps.length; i++) {
318 if (!MotionEvents.sendMovement(uiController, downEvent, steps[i])) {
/frameworks/rs/tests/java_api/HealingBrush/src/rs/example/android/com/healingbrush/
H A DHealing.java115 int steps = (int) Math.sqrt(area);
117 for (int i = 0; i < steps; i++) {
/frameworks/av/media/libaudioprocessing/
H A DAudioResamplerFirGen.h25 * generates a sine wave at equal steps.
27 * As most of our functions use sine or cosine at equal steps,
89 * generates a series of sine generators, phase offset by fixed steps.
445 * We use the basic recursion to incorporate the cosine steps into real sequence x[n]:
452 * The summation contains the frequency steps we want multiplied by the source
514 * @param steps is the number of steps to take (sampling) between frequency start and end
525 double fstart, double fend, int steps, double &firMin, double &firMax) {
528 double wstep = (wend - wstart)/steps;
536 for (int i=1; i<steps;
524 testFir(const T* coef, int L, int halfNumCoef, double fstart, double fend, int steps, double &firMin, double &firMax) argument
[all...]
/frameworks/base/services/accessibility/java/com/android/server/accessibility/
H A DMotionEventInjector.java99 * @param gestureSteps The gesture steps to inject.
228 * @param gestureSteps The steps of the new gesture
332 List<GestureStep> steps, long startTime) {
337 for (int i = 0; i < steps.size(); i++) {
338 GestureDescription.GestureStep step = steps.get(i);
331 getMotionEventsFromGestureSteps( List<GestureStep> steps, long startTime) argument
/frameworks/base/core/java/android/webkit/
H A DWebViewProvider.java154 public boolean canGoBackOrForward(int steps); argument
156 public void goBackOrForward(int steps); argument
H A DWebView.java1198 * number of steps.
1200 * @param steps the negative or positive number of steps to move the
1203 public boolean canGoBackOrForward(int steps) { argument
1205 return mProvider.canGoBackOrForward(steps);
1209 * Goes to the history item that is the number of steps away from
1213 * @param steps the number of steps to take back or forward in the back
1216 public void goBackOrForward(int steps) { argument
1218 mProvider.goBackOrForward(steps);
[all...]
/frameworks/base/core/java/android/os/
H A DBatteryStats.java1045 public LevelStepTracker(int numSteps, long[] steps) { argument
1048 System.arraycopy(steps, 0, mStepDurations, 0, numSteps);
1206 final long[] steps = mStepDurations;
1209 // For now we'll do a simple average across all steps.
1215 total += steps[i] & STEP_LEVEL_TIME_MASK;
1227 totalTime += steps[i+j] & STEP_LEVEL_TIME_MASK;
1248 final long[] steps = mStepDurations;
1256 long initMode = (steps[i] & STEP_LEVEL_INITIAL_MODE_MASK)
1258 long modMode = (steps[i] & STEP_LEVEL_MODIFIED_MODE_MASK)
1266 total += steps[
6513 dumpDurationSteps(PrintWriter pw, String prefix, String header, LevelStepTracker steps, boolean checkin) argument
6594 dumpDurationSteps(ProtoOutputStream proto, long fieldId, LevelStepTracker steps) argument
6739 dumpDailyLevelStepSummary(PrintWriter pw, String prefix, String label, LevelStepTracker steps, StringBuilder tmpSb, int[] tmpOutInt) argument
[all...]
/frameworks/support/v7/recyclerview/src/androidTest/java/androidx/recyclerview/widget/
H A DBaseWrapContentTest.java241 public Scenario(Step... steps) { argument
242 Collections.addAll(mStepList, steps);
/frameworks/ml/nn/runtime/
H A DExecutionPlan.cpp706 auto& steps = compound()->mSteps; local
707 auto step = std::make_shared<ExecutionStep>(this, steps.size(), device);
708 steps.push_back(step);

Completed in 613 milliseconds

12