Home
last modified time | relevance | path

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

12345

/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/keyguard/data/repository/
DKeyguardTransitionRepositoryTest.kt89 val steps = mutableListOf<TransitionStep>() in <lambda>() constant
90 val job = underTest.transition(AOD, LOCKSCREEN).onEach { steps.add(it) }.launchIn(this) in <lambda>()
98 assertSteps(steps, listWithStep(BigDecimal(.1)), AOD, LOCKSCREEN) in <lambda>()
105 val steps = mutableListOf<TransitionStep>() in <lambda>() constant
106 val job = underTest.transition(AOD, LOCKSCREEN).onEach { steps.add(it) }.launchIn(this) in <lambda>()
114 val job2 = underTest.transition(LOCKSCREEN, AOD).onEach { steps.add(it) }.launchIn(this) in <lambda>()
127 assertSteps(steps.subList(0, 4), firstTransitionSteps, AOD, LOCKSCREEN) in <lambda>()
131 assertSteps(steps.subList(4, steps.size), secondTransitionSteps, LOCKSCREEN, AOD) in <lambda>()
140 val steps = mutableListOf<TransitionStep>() in <lambda>() constant
141 val job = underTest.transition(AOD, LOCKSCREEN).onEach { steps.add(it) }.launchIn(this) in <lambda>()
[all …]
/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/base/packages/SystemUI/multivalentTests/src/com/android/systemui/keyguard/domain/interactor/
DKeyguardTransitionInteractorTest.kt108 val steps = mutableListOf<TransitionStep>() in transitionCollectorsReceivesOnlyAppropriateEvents() constant
109 steps.add(TransitionStep(AOD, GONE, 0f, STARTED)) in transitionCollectorsReceivesOnlyAppropriateEvents()
110 steps.add(TransitionStep(AOD, GONE, 1f, FINISHED)) in transitionCollectorsReceivesOnlyAppropriateEvents()
111 steps.add(TransitionStep(AOD, LOCKSCREEN, 0f, STARTED)) in transitionCollectorsReceivesOnlyAppropriateEvents()
112 steps.add(TransitionStep(AOD, LOCKSCREEN, 0.5f, RUNNING)) in transitionCollectorsReceivesOnlyAppropriateEvents()
113 steps.add(TransitionStep(AOD, LOCKSCREEN, 1f, FINISHED)) in transitionCollectorsReceivesOnlyAppropriateEvents()
114 steps.add(TransitionStep(LOCKSCREEN, AOD, 0f, STARTED)) in transitionCollectorsReceivesOnlyAppropriateEvents()
115 steps.add(TransitionStep(LOCKSCREEN, AOD, 0.1f, RUNNING)) in transitionCollectorsReceivesOnlyAppropriateEvents()
116 steps.add(TransitionStep(LOCKSCREEN, AOD, 0.2f, RUNNING)) in transitionCollectorsReceivesOnlyAppropriateEvents()
118 steps.forEach { in transitionCollectorsReceivesOnlyAppropriateEvents()
[all …]
/frameworks/base/services/core/java/com/android/server/vibrator/
DRampToStepAdapter.java58 List<StepSegment> steps = convertRampToSteps(info, (RampSegment) segment); in adaptToVibrator() local
60 segments.addAll(i, steps); in adaptToVibrator()
61 int addedSegments = steps.size() - 1; in adaptToVibrator()
80 List<StepSegment> steps = new ArrayList<>(); in convertRampToSteps() local
87 steps.add(new StepSegment( in convertRampToSteps()
94 steps.add(new StepSegment(ramp.getEndAmplitude(), endFrequencyHz, duration)); in convertRampToSteps()
95 return steps; in convertRampToSteps()
DRampDownAdapter.java198 List<VibrationEffectSegment> steps = new ArrayList<>(); in createStepsDown() local
200 steps.add(new StepSegment(amplitude - i * amplitudeStep, frequency, mStepDuration)); in createStepsDown()
203 steps.add(new StepSegment(0, frequency, remainingDuration)); in createStepsDown()
204 return steps; in createStepsDown()
DStartSequentialEffectStep.java171 AbstractVibratorStep[] steps = new AbstractVibratorStep[vibratorCount]; in startVibrating() local
174 steps[i] = conductor.nextVibrateStep(vibrationStartTime, in startVibrating()
180 if (steps.length == 1) { in startVibrating()
182 return startVibrating(steps[0], nextSteps); in startVibrating()
199 for (AbstractVibratorStep step : steps) { in startVibrating()
/frameworks/base/tests/FlickerTests/test-apps/app-helpers/src/com/android/server/wm/flicker/helpers/
DGestureHelper.java103 @NonNull Tuple endPoint, int steps) { in dragWithoutRelease() argument
121 return movePointers(ptrProps, ptrCoords, new Tuple[] { endPoint }, downTime, steps); in dragWithoutRelease()
148 @NonNull Tuple endPoint1, @NonNull Tuple endPoint2, int steps) { in pinch() argument
174 downTime, steps)) { in pinch()
209 @NonNull PointerCoords[] coords, @NonNull Tuple[] endPoints, long downTime, int steps) { in movePointers() argument
216 if (steps < 1) { in movePointers()
217 steps = 1; in movePointers()
230 for (int i = 0; i < steps; i++) { in movePointers()
236 coords[j].x += (endPoints[j].x - startPoints[j].x) / steps; in movePointers()
237 coords[j].y += (endPoints[j].y - startPoints[j].y) / steps; in movePointers()
DPipAppHelper.kt65 fun dragPipWindowAwayFromEdgeWithoutRelease(wmHelper: WindowManagerStateHelper, steps: Int) { in <lambda>()
86 gestureHelper.dragWithoutRelease(initialCoord, finalCoord, steps) in <lambda>()
104 fun dragPipWindowAwayFromEdge(wmHelper: WindowManagerStateHelper, steps: Int) { in <lambda>()
124 uiDevice.drag(startX, y, endX, y, steps) in <lambda>()
148 fun pinchOpenPipWindow(wmHelper: WindowManagerStateHelper, percent: Float, steps: Int) { in <lambda>()
174 if (distIncrease.toInt() / (steps * 2) >= 1) { in <lambda>()
175 adjustedSteps = steps in <lambda>()
196 fun pinchInPipWindow(wmHelper: WindowManagerStateHelper, percent: Float, steps: Int) { in <lambda>()
222 if (distDecrease.toInt() / (steps * 2) >= 1) { in <lambda>()
223 adjustedSteps = steps in <lambda>()
/frameworks/base/services/core/java/com/android/server/display/color/
DCctEvaluator.java53 CctEvaluator(int min, int max, int[] cctRangeMinimums, int[] steps) { in CctEvaluator() argument
60 if (cctRangeMinimums.length != steps.length) { in CctEvaluator()
80 mStepsAtOffsetCcts[index] = steps[parallelArraysIndex]; in CctEvaluator()
82 || Math.abs(lastSteppedCct - cct) >= steps[parallelArraysIndex]) { in CctEvaluator()
/frameworks/base/tests/FlickerTests/FlickerService/src/com/android/server/wm/flicker/service/notification/scenarios/
DNotificationUtils.kt38 var steps = 25 in openNotification() variable
51 steps = 4 in openNotification()
56 device.swipe(x, startY, x, endY, steps) in openNotification()
/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/base/packages/SystemUI/multivalentTests/src/com/android/systemui/statusbar/notification/
DNotificationStackAppearanceIntegrationTest.kt142 val steps = 10 in <lambda>() constant
143 repeat(steps) { repetition -> in <lambda>()
144 val progress = (1f / steps) * (repetition + 1) in <lambda>()
199 val steps = 10 in <lambda>() constant
200 repeat(steps) { repetition -> in <lambda>()
201 val progress = (1f / steps) * (repetition + 1) in <lambda>()
/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/libs/binary_translation/backend/common/
Dmachine_ir_opt.cc76 unsigned steps = 0; in RemoveForwarderBlocks() local
82 ++steps; in RemoveForwarderBlocks()
83 CHECK_LT(steps, forwarder_map.size()); in RemoveForwarderBlocks()
/frameworks/base/core/tests/coretests/src/android/view/
DVelocityTest.java257 private void drag(VelocityTracker vt, int startX, int endX, int startY, int endY, int steps, in drag() argument
259 drag(vt, startX, endX, startY, endY, steps, startime, duration, new LinearInterpolator()); in drag()
266 private void drag(VelocityTracker vt, int startX, int endX, int startY, int endY, int steps, in drag() argument
269 float dt = duration / (float)steps; in drag()
272 for (int i=1; i<steps-1; i++) { in drag()
273 float ii = interpolator.getInterpolation(i / (float)steps); in drag()
/frameworks/base/apct-tests/perftests/core/src/android/widget/
DEditTextLongTextPerfTest.java107 final int steps = 100; in testEditText() local
109 for (int i = 0; i < steps; i++) { in testEditText()
110 int offset = (editText.getText().length() * i) / steps; in testEditText()
/frameworks/av/media/module/extractors/fuzzers/
DREADME.md41 This describes steps to build mp4_extractor_fuzzer binary.
70 This describes steps to build wav_extractor_fuzzer binary.
104 This describes steps to build amr_extractor_fuzzer binary.
138 This describes steps to build mkv_extractor_fuzzer binary.
172 This describes steps to build ogg_extractor_fuzzer binary.
211 This describes steps to build mpeg2ps_extractor_fuzzer and mpeg2ts_extractor_fuzzer binary.
242 This describes steps to build mp3_extractor_fuzzer binary.
271 This describes steps to build aac_extractor_fuzzer binary.
305 This describes steps to build flac_extractor_fuzzer binary.
340 This describes steps to build midi_extractor_fuzzer binary.
/frameworks/base/tests/FlickerTests/Notification/src/com/android/server/wm/flicker/notification/
DOpenAppFromNotificationWarmTest.kt91 doOpenAppAndWait(startY = 10, endY = 3 * device.displayHeight / 4, steps = 25) in openAppFromNotification()
104 doOpenAppAndWait(startY = insets.top + 100, endY = device.displayHeight / 2, steps = 4) in FlickerTestData()
107 protected fun FlickerTestData.doOpenAppAndWait(startY: Int, endY: Int, steps: Int) { in FlickerTestData()
110 device.swipe(x, startY, x, endY, steps) in FlickerTestData()
/frameworks/base/apct-tests/perftests/core/src/android/text/
DDynamicLayoutPerfTest.java122 final int steps = 10;
124 for (int i = 0; i < steps; i++) {
125 int offset = (text.length() * i) / steps;
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/keyguard/ui/viewmodel/
DLockscreenToOccludedTransitionViewModelTest.kt96 steps = in lockscreenFadeOut()
122 steps = in lockscreenTranslationY()
145 steps = in lockscreenTranslationYIsCanceled()
170 steps = in deviceEntryParentViewAlpha_shadeExpanded()
/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

12345