Home
last modified time | relevance | path

Searched refs:tracker (Results 1 – 25 of 40) sorted by relevance

12

/packages/apps/Email/tests/src/com/android/emailcommon/utility/
DEmailAsyncTaskTests.java30 final EmailAsyncTask.Tracker tracker = new EmailAsyncTask.Tracker(); in testAll() local
33 assertEquals(0, tracker.getTaskCountForTest()); in testAll()
36 final MyTask task1 = new MyTask(tracker); in testAll()
37 assertEquals(1, tracker.getTaskCountForTest()); in testAll()
39 final MyTask task2 = new MyTask(tracker); in testAll()
40 assertEquals(2, tracker.getTaskCountForTest()); in testAll()
42 final MyTask task3 = new MyTask(tracker); in testAll()
43 assertEquals(3, tracker.getTaskCountForTest()); in testAll()
45 final MyTask task4 = new MyTask(tracker); in testAll()
46 assertEquals(4, tracker.getTaskCountForTest()); in testAll()
[all …]
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/services/
DAbstractCopyJobTest.java180 TestCopyJobProcessTracker<CopyJob.FileCountProgressTracker> tracker = in runCopyProgressForFileCountTest() local
188 tracker.getProcessTracker().start(); in runCopyProgressForFileCountTest()
189 tracker.assertProgressTrackStarted(); in runCopyProgressForFileCountTest()
190 tracker.assertStartedProgressEquals(0); in runCopyProgressForFileCountTest()
191 tracker.assertStartedRemainingTimeEquals(-1); in runCopyProgressForFileCountTest()
194 IntStream.range(0, 2).forEach(__ -> tracker.getProcessTracker().onDocumentCompleted()); in runCopyProgressForFileCountTest()
195 tracker.updateProgressAndRemainingTime(1000); in runCopyProgressForFileCountTest()
196 tracker.assertProgressEquals(0.2); in runCopyProgressForFileCountTest()
197 tracker.assertNoRemainingTime(); in runCopyProgressForFileCountTest()
200 IntStream.range(2, 4).forEach(__ -> tracker.getProcessTracker().onDocumentCompleted()); in runCopyProgressForFileCountTest()
[all …]
/packages/apps/Messaging/tests/src/com/android/messaging/datamodel/action/
DActionServiceSystemTest.java58 final ResultTracker tracker = (ResultTracker) data; in onActionSucceeded() local
59 tracker.completionResult = result; in onActionSucceeded()
60 synchronized(tracker) { in onActionSucceeded()
61 tracker.notifyAll(); in onActionSucceeded()
70 final ResultTracker tracker = (ResultTracker) data; in onActionFailed() local
71 tracker.completionResult = result; in onActionFailed()
72 synchronized(tracker) { in onActionFailed()
73 tracker.notifyAll(); in onActionFailed()
82 final ResultTracker tracker = (ResultTracker) data; in onActionExecuted() local
83 tracker.executionResult = result; in onActionExecuted()
[all …]
DActionServiceTest.java61 final ResultTracker tracker = (ResultTracker) data; in onActionSucceeded() local
62 tracker.completionResult = result; in onActionSucceeded()
63 synchronized(tracker) { in onActionSucceeded()
64 tracker.notifyAll(); in onActionSucceeded()
76 final ResultTracker tracker = (ResultTracker) data; in onActionFailed() local
77 tracker.completionResult = result; in onActionFailed()
78 synchronized(tracker) { in onActionFailed()
79 tracker.notifyAll(); in onActionFailed()
88 final ResultTracker tracker = new ResultTracker(); in testChatServiceCreatesIntentAndExecutesAction() local
90 final TestChatActionMonitor monitor = new TestChatActionMonitor(null, tracker, this, this); in testChatServiceCreatesIntentAndExecutesAction()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/internal/
DTimerHandler.java86 public void startKeyRepeatTimerOf(@Nonnull final PointerTracker tracker, final int repeatCount, in startKeyRepeatTimerOf() argument
88 final Key key = tracker.getKey(); in startKeyRepeatTimerOf()
93 obtainMessage(MSG_REPEAT_KEY, key.getCode(), repeatCount, tracker), delay); in startKeyRepeatTimerOf()
96 private void cancelKeyRepeatTimerOf(final PointerTracker tracker) { in cancelKeyRepeatTimerOf() argument
97 removeMessages(MSG_REPEAT_KEY, tracker); in cancelKeyRepeatTimerOf()
110 public void startLongPressTimerOf(@Nonnull final PointerTracker tracker, final int delay) { in startLongPressTimerOf() argument
111 final Key key = tracker.getKey(); in startLongPressTimerOf()
119 sendMessageDelayed(obtainMessage(messageId, tracker), delay); in startLongPressTimerOf()
123 public void cancelLongPressTimersOf(@Nonnull final PointerTracker tracker) { in cancelLongPressTimersOf() argument
124 removeMessages(MSG_LONGPRESS_KEY, tracker); in cancelLongPressTimersOf()
[all …]
DTimerProxy.java43 public void startKeyRepeatTimerOf(@Nonnull PointerTracker tracker, int repeatCount, int delay); in startKeyRepeatTimerOf() argument
52 public void startLongPressTimerOf(@Nonnull PointerTracker tracker, int delay); in startLongPressTimerOf() argument
58 public void cancelLongPressTimersOf(@Nonnull PointerTracker tracker); in cancelLongPressTimersOf() argument
69 public void cancelKeyTimersOf(@Nonnull PointerTracker tracker); in cancelKeyTimersOf() argument
91 public void startUpdateBatchInputTimer(@Nonnull PointerTracker tracker); in startUpdateBatchInputTimer() argument
97 public void cancelUpdateBatchInputTimer(@Nonnull PointerTracker tracker); in cancelUpdateBatchInputTimer() argument
110 public void startKeyRepeatTimerOf(@Nonnull PointerTracker tracker, int repeatCount, in startKeyRepeatTimerOf() argument
113 public void startLongPressTimerOf(@Nonnull PointerTracker tracker, int delay) {} in startLongPressTimerOf() argument
115 public void cancelLongPressTimersOf(@Nonnull PointerTracker tracker) {} in cancelLongPressTimersOf() argument
119 public void cancelKeyTimersOf(@Nonnull PointerTracker tracker) {} in cancelKeyTimersOf() argument
[all …]
DGestureTrailsDrawingPreview.java157 public void setPreviewPosition(final PointerTracker tracker) { in setPreviewPosition() argument
163 trail = mGestureTrails.get(tracker.mPointerId); in setPreviewPosition()
166 mGestureTrails.put(tracker.mPointerId, trail); in setPreviewPosition()
169 trail.addStroke(tracker.getGestureStrokeDrawingPoints(), tracker.getDownTime()); in setPreviewPosition()
DDrawingProxy.java49 public MoreKeysPanel showMoreKeysKeyboard(@Nonnull Key key, @Nonnull PointerTracker tracker); in showMoreKeysKeyboard() argument
65 public void showSlidingKeyInputPreview(@Nullable PointerTracker tracker); in showSlidingKeyInputPreview() argument
73 public void showGestureTrail(@Nonnull PointerTracker tracker, boolean showsFloatingPreviewText); in showGestureTrail() argument
DSlidingKeyInputDrawingPreview.java100 public void setPreviewPosition(final PointerTracker tracker) { in setPreviewPosition() argument
101 tracker.getDownCoordinates(mPreviewFrom); in setPreviewPosition()
102 tracker.getLastCoordinates(mPreviewTo); in setPreviewPosition()
DNonDistinctMultitouchHelper.java105 final long downTime, final long eventTime, final PointerTracker tracker, in injectMotionEvent() argument
110 tracker.processMotionEvent(me, keyDetector); in injectMotionEvent()
DGestureFloatingTextDrawingPreview.java128 public void setPreviewPosition(final PointerTracker tracker) { in setPreviewPosition() argument
132 tracker.getLastCoordinates(mLastPointerCoords); in setPreviewPosition()
DAbstractDrawingPreview.java83 public abstract void setPreviewPosition(@Nonnull final PointerTracker tracker); in setPreviewPosition() argument
/packages/services/Telephony/testapps/EmbmsTestStreamingApp/src/com/android/phone/testapps/embmsfrontend/
DEmbmsTestStreamingApp.java115 StreamingServiceTracker tracker = mStreamingServiceTrackerById.get(serviceId); in getView() local
117 result.setText(tracker == null ? "" : tracker.toString()); in getView()
124 StreamingServiceTracker tracker = mStreamingServiceTrackerById.get(serviceId); in getDropDownView() local
126 result.setText(tracker.toString()); in getDropDownView()
184 StreamingServiceTracker tracker = mStreamingServiceTrackerById.get(serviceId); in onCreate()
186 setStreamStateDisplay(String.valueOf(tracker.getState())); in onCreate()
187 setUriDisplay(tracker.getUri()); in onCreate()
211 StreamingServiceTracker tracker = new StreamingServiceTracker(this, serviceInfo); in onCreate() local
212 if (tracker.startStreaming(mStreamingManager)) { in onCreate()
213 mStreamingServiceTrackerById.put(serviceInfo.getServiceId(), tracker); in onCreate() local
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/
DRecentsActivityTracker.java97 public synchronized void schedule(RecentsActivityTracker tracker) { in schedule() argument
98 mPendingTracker = new WeakReference<>(tracker); in schedule()
115 RecentsActivityTracker tracker = mPendingTracker.get(); in initIfPending() local
116 if (tracker != null) { in initIfPending()
117 if (!tracker.init(activity, alreadyOnHome)) { in initIfPending()
125 public synchronized boolean clearReference(RecentsActivityTracker tracker) { in clearReference() argument
126 if (mPendingTracker.get() == tracker) { in clearReference()
/packages/apps/UnifiedEmail/src/org/apache/commons/io/
DFileCleaningTracker.java203 Tracker tracker = null; in run() local
206 tracker = (Tracker) q.remove(); in run()
210 if (tracker != null) { in run()
211 tracker.delete(); in run()
212 tracker.clear(); in run()
213 trackers.remove(tracker); in run()
/packages/apps/Settings/src/com/android/settings/password/
DChooseLockGeneric.java794 final RemovalTracker tracker = new RemovalTracker(); in removeAllBiometricsForUserAndFinish() local
795 removeAllFingerprintForUserAndFinish(userId, tracker); in removeAllBiometricsForUserAndFinish()
796 removeAllFaceForUserAndFinish(userId, tracker); in removeAllBiometricsForUserAndFinish()
812 RemovalTracker tracker) { in removeAllFingerprintForUserAndFinish() argument
835 tracker); in removeAllFingerprintForUserAndFinish()
842 removeManagedProfileFingerprintsAndFinishIfNecessary(userId, tracker); in removeAllFingerprintForUserAndFinish()
849 tracker.onFingerprintDone(); in removeAllFingerprintForUserAndFinish()
854 RemovalTracker tracker) { in removeManagedProfileFingerprintsAndFinishIfNecessary() argument
867 removeAllFingerprintForUserAndFinish(userInfo.id, tracker); in removeManagedProfileFingerprintsAndFinishIfNecessary()
874 tracker.onFingerprintDone(); in removeManagedProfileFingerprintsAndFinishIfNecessary()
[all …]
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/password/
DChooseLockGeneric.java783 final RemovalTracker tracker = new RemovalTracker(); in removeAllBiometricsForUserAndFinish() local
784 removeAllFingerprintForUserAndFinish(userId, tracker); in removeAllBiometricsForUserAndFinish()
785 removeAllFaceForUserAndFinish(userId, tracker); in removeAllBiometricsForUserAndFinish()
801 RemovalTracker tracker) { in removeAllFingerprintForUserAndFinish() argument
824 tracker); in removeAllFingerprintForUserAndFinish()
831 removeManagedProfileFingerprintsAndFinishIfNecessary(userId, tracker); in removeAllFingerprintForUserAndFinish()
838 tracker.onFingerprintDone(); in removeAllFingerprintForUserAndFinish()
843 RemovalTracker tracker) { in removeManagedProfileFingerprintsAndFinishIfNecessary() argument
856 removeAllFingerprintForUserAndFinish(userInfo.id, tracker); in removeManagedProfileFingerprintsAndFinishIfNecessary()
863 tracker.onFingerprintDone(); in removeManagedProfileFingerprintsAndFinishIfNecessary()
[all …]
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/
DMainKeyboardView.java524 public void showSlidingKeyInputPreview(@Nullable final PointerTracker tracker) { in showSlidingKeyInputPreview() argument
526 if (tracker != null) { in showSlidingKeyInputPreview()
527 mSlidingKeyInputDrawingPreview.setPreviewPosition(tracker); in showSlidingKeyInputPreview()
558 public void showGestureTrail(@Nonnull final PointerTracker tracker, in showGestureTrail() argument
562 mGestureFloatingTextDrawingPreview.setPreviewPosition(tracker); in showGestureTrail()
564 mGestureTrailsDrawingPreview.setPreviewPosition(tracker); in showGestureTrail()
597 @Nonnull final PointerTracker tracker) { in showMoreKeysKeyboard() argument
628 tracker.getLastCoordinates(lastCoords); in showMoreKeysKeyboard()
716 final PointerTracker tracker = PointerTracker.getPointerTracker(id); in processMotionEvent() local
719 if (isShowingMoreKeysPanel() && !tracker.isShowingMoreKeysPanel() in processMotionEvent()
[all …]
DPointerTracker.java189 final PointerTracker tracker = new PointerTracker(i); in getPointerTracker() local
190 trackers.add(tracker); in getPointerTracker()
215 final PointerTracker tracker = sTrackers.get(i); in setKeyDetector() local
216 tracker.setKeyDetectorInner(keyDetector); in setKeyDetector()
224 final PointerTracker tracker = sTrackers.get(i); in setReleasedKeyGraphicsToAllKeys() local
225 tracker.setReleasedKeyGraphics(tracker.getKey(), true /* withAnimation */); in setReleasedKeyGraphicsToAllKeys()
232 final PointerTracker tracker = sTrackers.get(i); in dismissAllMoreKeysPanels() local
233 tracker.dismissMoreKeysPanel(); in dismissAllMoreKeysPanels()
593 final PointerTracker tracker = getPointerTracker(id); in processMotionEvent() local
594 tracker.onMoveEvent(x, y, eventTime, me); in processMotionEvent()
/packages/apps/TV/src/com/android/tv/analytics/
DSendChannelStatusRunnable.java41 Context context, Tracker tracker, ChannelDataManager channelDataManager) { in startChannelStatusRecurringRunner() argument
44 new SendChannelStatusRunnable(channelDataManager, tracker); in startChannelStatusRecurringRunner()
85 private SendChannelStatusRunnable(ChannelDataManager channelDataManager, Tracker tracker) { in SendChannelStatusRunnable() argument
87 mTracker = tracker; in SendChannelStatusRunnable()
DSendConfigInfoRunnable.java28 public SendConfigInfoRunnable(Tracker tracker, TvInputManagerHelper tvInputManagerHelper) { in SendConfigInfoRunnable() argument
29 this.mTracker = tracker; in SendConfigInfoRunnable()
/packages/apps/Launcher3/src/com/android/launcher3/touch/
DSwipeDetector.java78 abstract float getVelocity(VelocityTracker tracker, boolean isRtl); in getVelocity() argument
98 float getVelocity(VelocityTracker tracker, boolean isRtl) {
99 return tracker.getYVelocity();
132 float getVelocity(VelocityTracker tracker, boolean isRtl) {
133 float velocity = tracker.getXVelocity();
/packages/apps/TV/tests/tunerscripts/
Dusbtuner-test.sh99 tracker=$(adb shell getprop tv_use_tracker | tr -d '[[:space:]]')
104 if [ "${tracker}" == "" ]; then
107 adb shell setprop tv_use_tracker ${tracker}
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/accessibility/
DMainKeyboardAccessibilityDelegate.java266 final PointerTracker tracker = PointerTracker.getPointerTracker(HOVER_EVENT_POINTER_ID); in performLongClickOn() local
273 tracker.processMotionEvent(downEvent, mKeyDetector); in performLongClickOn()
276 tracker.onLongPressed(); in performLongClickOn()
281 if (tracker.isInOperation()) { in performLongClickOn()
/packages/apps/Email/emailcommon/src/com/android/emailcommon/utility/
DEmailAsyncTask.java144 public EmailAsyncTask(Tracker tracker) { in EmailAsyncTask() argument
145 mTracker = tracker; in EmailAsyncTask()

12