Searched defs:steps (Results 1 - 17 of 17) sorted by relevance

/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/support/wear/tests/src/android/support/wear/widget/util/
H A DArcSwipe.java92 private float[][] interpolate(float[] start, float[] end, int steps, boolean isClockwise) { argument
103 float[][] res = new float[steps][2];
106 for (int i = 1; i < steps + 1; i++) {
107 pathMeasure.getPosTan((pathLength * i) / (steps + 2f), res[i - 1], mPathTangent);
121 float[][] steps = interpolate(startCoordinates, endCoordinates, SWIPE_EVENT_COUNT,
123 final int delayBetweenMovements = duration / steps.length;
128 for (int i = 0; i < steps.length; i++) {
129 if (!MotionEvents.sendMovement(uiController, downEvent, steps[i])) {
/frameworks/base/cmds/uiautomator/library/core-src/com/android/uiautomator/core/
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 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...]
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 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...]
/frameworks/base/services/accessibility/java/com/android/server/accessibility/
H A DMotionEventInjector.java100 * @param gestureSteps The gesture steps to inject.
248 * @param gestureSteps The steps of the new gesture
345 List<GestureStep> steps, long startTime) {
350 for (int i = 0; i < steps.size(); i++) {
351 GestureDescription.GestureStep step = steps.get(i);
344 getMotionEventsFromGestureSteps( List<GestureStep> steps, long startTime) argument
/frameworks/layoutlib/bridge/src/android/webkit/
H A DWebView.java132 public boolean canGoBackOrForward(int steps) { argument
136 public void goBackOrForward(int steps) { argument
/frameworks/support/design/tests/src/android/support/design/widget/
H A DBottomSheetBehaviorTest.java204 float[][] steps = interpolate(start, end, STEPS);
205 int delayBetweenMovements = DURATION / steps.length;
209 for (int i = 0; i < steps.length; i++) {
217 if (!MotionEvents.sendMovement(uiController, downEvent, steps[i])) {
231 private static float[][] interpolate(float[] start, float[] end, int steps) { argument
234 float[][] res = new float[steps][2];
235 for(int i = 1; i < steps + 1; ++i) {
236 res[i - 1][0] = start[0] + (end[0] - start[0]) * (float)i / ((float)steps + 2.0F);
237 res[i - 1][1] = start[1] + (end[1] - start[1]) * (float)i / ((float)steps + 2.0F);
/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/ml/nn/runtime/
H A DExecutionPlan.cpp602 auto& steps = compound()->mSteps; local
604 this, steps.size(), std::make_shared<ModelBuilder>(), device);
605 steps.push_back(step);
/frameworks/support/v7/recyclerview/tests/src/android/support/v7/widget/
H A DBaseWrapContentTest.java238 public Scenario(Step... steps) { argument
239 Collections.addAll(mStepList, steps);
/frameworks/ml/nn/runtime/test/
H A DTestPartitioning.cpp764 const auto& steps = plan.forTest_compoundGetSteps(); local
765 ASSERT_EQ(steps.size(), size_t(3));
767 const auto& step0 = steps[0];
769 // Build a model to compare against the submodel from steps[0].
789 const auto& step1 = steps[1];
791 // Build a model to compare against the submodel from steps[1].
812 const auto& step2 = steps[2];
814 // Build a model to compare against the submodel from steps[2].
/frameworks/base/core/java/android/webkit/
H A DWebViewProvider.java153 public boolean canGoBackOrForward(int steps); argument
155 public void goBackOrForward(int steps); argument
H A DWebView.java1139 * number of steps.
1141 * @param steps the negative or positive number of steps to move the
1144 public boolean canGoBackOrForward(int steps) { argument
1146 return mProvider.canGoBackOrForward(steps);
1150 * Goes to the history item that is the number of steps away from
1154 * @param steps the number of steps to take back or forward in the back
1157 public void goBackOrForward(int steps) { argument
1159 mProvider.goBackOrForward(steps);
[all...]
/frameworks/base/core/java/android/os/
H A DBatteryStats.java876 public LevelStepTracker(int numSteps, long[] steps) { argument
879 System.arraycopy(steps, 0, mStepDurations, 0, numSteps);
1037 final long[] steps = mStepDurations;
1040 // For now we'll do a simple average across all steps.
1046 total += steps[i] & STEP_LEVEL_TIME_MASK;
1058 totalTime += steps[i+j] & STEP_LEVEL_TIME_MASK;
1079 final long[] steps = mStepDurations;
1087 long initMode = (steps[i] & STEP_LEVEL_INITIAL_MODE_MASK)
1089 long modMode = (steps[i] & STEP_LEVEL_MODIFIED_MODE_MASK)
1097 total += steps[
5930 dumpDurationSteps(PrintWriter pw, String prefix, String header, LevelStepTracker steps, boolean checkin) argument
6102 dumpDailyLevelStepSummary(PrintWriter pw, String prefix, String label, LevelStepTracker steps, StringBuilder tmpSb, int[] tmpOutInt) argument
[all...]
/frameworks/base/core/java/com/android/internal/os/
H A DBatteryStatsImpl.java9092 private void writeDailyLevelSteps(XmlSerializer out, String tag, LevelStepTracker steps, argument
9094 if (steps != null) {
9096 out.attribute(null, "n", Integer.toString(steps.mNumStepDurations));
9097 for (int i=0; i<steps.mNumStepDurations; i++) {
9100 steps.encodeEntryAt(i, tmpBuilder);
9237 LevelStepTracker steps = new LevelStepTracker(num);
9239 dit.mChargeSteps = steps;
9241 dit.mDischargeSteps = steps;
9257 steps.decodeEntryAt(i, valueAttr);
9267 steps
11160 computeTimePerLevel(long[] steps, int numSteps) argument
[all...]

Completed in 457 milliseconds