/frameworks/opt/setupwizard/library/main/src/com/android/setupwizardlib/view/ |
D | TouchableMovementMethod.java | 52 MotionEvent lastEvent; field in TouchableMovementMethod.TouchableLinkMovementMethod 56 lastEvent = event; in onTouchEvent() 71 return lastEvent; in getLastTouchEvent()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/classifier/ |
D | ZigZagClassifier.java | 182 MotionEvent lastEvent = getLastMotionEvent(); in getAtan2LastPoint() local 185 float lastX = lastEvent.getX() - offsetX; in getAtan2LastPoint() 186 float lastY = lastEvent.getY() - offsetY; in getAtan2LastPoint() 220 MotionEvent lastEvent = motionEvents.get(motionEvents.size() - 1); in rotateMotionEvents() local 225 + lastEvent.getX() + "," in rotateMotionEvents() 226 + lastEvent.getY() + ")"); in rotateMotionEvents()
|
D | FalsingDataProvider.java | 315 MotionEvent lastEvent = mRecentMotionEvents.get(mRecentMotionEvents.size() - 1); in shouldDropEvent() 317 && lastEvent.getActionMasked() == MotionEvent.ACTION_MOVE; in shouldDropEvent() 319 event.getEventTime() - lastEvent.getEventTime() < DROP_EVENT_THRESHOLD_MS; in shouldDropEvent()
|
/frameworks/base/services/tests/voiceinteractiontests/src/com/android/server/soundtrigger_middleware/ |
D | SoundHw2CompatTest.java | 628 RecognitionEventSys lastEvent = eventCaptor.getValue(); in validateCallback_2_0() local 629 assertThat(lastEvent.halEventReceivedMillis).isGreaterThan(0); in validateCallback_2_0() 630 TestUtil.validateRecognitionEvent(lastEvent.recognitionEvent, in validateCallback_2_0() 646 PhraseRecognitionEventSys lastEvent = eventCaptor.getValue(); in validateCallback_2_0() local 647 assertThat(lastEvent.halEventReceivedMillis).isGreaterThan(0); in validateCallback_2_0() 648 TestUtil.validatePhraseRecognitionEvent(lastEvent.phraseRecognitionEvent, in validateCallback_2_0() 669 RecognitionEventSys lastEvent = eventCaptor.getValue(); in validateCallback_2_1() local 670 assertThat(lastEvent.halEventReceivedMillis).isGreaterThan(0); in validateCallback_2_1() 671 TestUtil.validateRecognitionEvent(lastEvent.recognitionEvent, in validateCallback_2_1() 686 RecognitionEventSys lastEvent = eventCaptor.getValue(); in validateCallback_2_1() local [all …]
|
D | SoundTriggerMiddlewareImplTest.java | 511 RecognitionEventSys lastEvent = eventCaptor.getValue(); in testAbortRecognition() local 512 assertEquals(12345, lastEvent.halEventReceivedMillis); in testAbortRecognition() 513 assertEquals(RecognitionStatus.ABORTED, lastEvent.recognitionEvent.status); in testAbortRecognition() 543 PhraseRecognitionEventSys lastEvent = eventCaptor.getValue(); in testAbortPhraseRecognition() local 544 assertEquals(12345, lastEvent.halEventReceivedMillis); in testAbortPhraseRecognition() 545 assertEquals(RecognitionStatus.ABORTED, lastEvent.phraseRecognitionEvent.common.status); in testAbortPhraseRecognition()
|
/frameworks/base/core/java/android/view/contentcapture/ |
D | MainContentCaptureSession.java | 431 ContentCaptureEvent lastEvent = null; in sendContentCaptureEvent() local 435 lastEvent = tmpEvent; in sendContentCaptureEvent() 439 if (lastEvent != null && lastEvent.hasComposingSpan()) { in sendContentCaptureEvent() 440 final CharSequence lastText = lastEvent.getText(); in sendContentCaptureEvent() 445 && lastEvent.hasSameComposingSpan(event) in sendContentCaptureEvent() 446 && lastEvent.hasSameSelectionSpan(event); in sendContentCaptureEvent() 450 lastEvent.mergeEvent(event); in sendContentCaptureEvent() 462 final ContentCaptureEvent lastEvent = mEvents.get(mEvents.size() - 1); in sendContentCaptureEvent() local 463 if (lastEvent.getType() == TYPE_VIEW_DISAPPEARED in sendContentCaptureEvent() 464 && event.getSessionId() == lastEvent.getSessionId()) { in sendContentCaptureEvent() [all …]
|
D | MainContentCaptureSessionV2.java | 454 ContentCaptureEvent lastEvent = null; in sendContentCaptureEvent() local 458 lastEvent = tmpEvent; in sendContentCaptureEvent() 462 if (lastEvent != null && lastEvent.hasComposingSpan()) { in sendContentCaptureEvent() 463 final CharSequence lastText = lastEvent.getText(); in sendContentCaptureEvent() 468 && lastEvent.hasSameComposingSpan(event) in sendContentCaptureEvent() 469 && lastEvent.hasSameSelectionSpan(event); in sendContentCaptureEvent() 473 lastEvent.mergeEvent(event); in sendContentCaptureEvent() 485 final ContentCaptureEvent lastEvent = mEvents.get(mEvents.size() - 1); in sendContentCaptureEvent() local 486 if (lastEvent.getType() == TYPE_VIEW_DISAPPEARED in sendContentCaptureEvent() 487 && event.getSessionId() == lastEvent.getSessionId()) { in sendContentCaptureEvent() [all …]
|
/frameworks/base/services/core/java/com/android/server/am/ |
D | AppBatteryExemptionTracker.java | 271 UidStateEventWithBattery lastEvent = null; in getBatteryUsageSince() local 273 lastEvent = event; in getBatteryUsageSince() 282 return Pair.create(batteryUsage.unmutate(), lastEvent.isStart() in getBatteryUsageSince() 283 ? lastEvent.getBatteryUsage() : BATTERY_USAGE_NONE); in getBatteryUsageSince() 360 final UidStateEventWithBattery lastEvent = dest.peekLast(); in add() local 361 final long startTs = lastEvent.getTimestamp(); in add() 367 event.update(lastEvent, new ImmutableBatteryUsage(batteryUsage)); in add() 369 event.update(lastEvent, BATTERY_USAGE_NONE); in add()
|
/frameworks/base/services/core/java/com/android/server/timezonedetector/location/ |
D | LocationTimeZoneManagerServiceState.java | 98 Builder setLastEvent(@NonNull LocationAlgorithmEvent lastEvent) { in setLastEvent() argument 99 mLastEvent = Objects.requireNonNull(lastEvent); in setLastEvent()
|
D | LocationTimeZoneManagerShellCommand.java | 254 LocationAlgorithmEvent lastEvent = state.getLastEvent(); in runDumpControllerState() local 259 LocationTimeZoneAlgorithmStatus algorithmStatus = lastEvent.getAlgorithmStatus(); in runDumpControllerState() 267 if (lastEvent.getSuggestion() != null) { in runDumpControllerState() 270 GeolocationTimeZoneSuggestion lastSuggestion = lastEvent.getSuggestion(); in runDumpControllerState() 279 for (String debugInfo : lastEvent.getDebugInfo()) { in runDumpControllerState()
|
/frameworks/base/tests/JankBench/app/src/main/java/com/android/benchmark/ui/automation/ |
D | Interaction.java | 141 MotionEvent lastEvent = MotionEvent.obtain(startTime, startTime + duration, in createInterpolatedEventList() local 143 result.add(lastEvent); in createInterpolatedEventList()
|
/frameworks/base/core/java/android/app/usage/ |
D | UsageStats.java | 490 final int lastEvent = mActivities.valueAt(index); in updateActivity() local 491 switch (lastEvent) { in updateActivity() 546 final Integer lastEvent = mForegroundServices.get(className); in updateForegroundService() local 548 if (lastEvent != null) { in updateForegroundService() 549 switch (lastEvent) { in updateForegroundService()
|
/frameworks/base/services/core/java/com/android/server/inputmethod/ |
D | HandwritingModeController.java | 170 MotionEvent lastEvent = mHandwritingBuffer.get(mHandwritingBuffer.size() - 1); in isStylusGestureOngoing() local 171 if (lastEvent.getActionMasked() == MotionEvent.ACTION_UP) { in isStylusGestureOngoing() 172 return SystemClock.uptimeMillis() - lastEvent.getEventTime() in isStylusGestureOngoing()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/ |
D | PhoneStatusBarViewTest.kt | 83 assertThat(handler.lastEvent).isEqualTo(event) in onTouchEvent_listenerNotified() 308 var lastEvent: MotionEvent? = null variable in com.android.systemui.statusbar.phone.PhoneStatusBarViewTest.TestTouchEventHandler 317 lastEvent = event in onTouchEvent()
|
/frameworks/libs/systemui/tracinglib/core/host/test/ |
D | CoroutineTracingTest.kt | 59 val lastEvent = eventCounter.get() in <lambda>() constant 62 lastEvent == FINAL_EVENT || lastEvent == 0, in <lambda>()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/util/sensors/ |
D | ProximitySensorImpl.java | 298 ThresholdSensorEvent lastEvent = mLastEvent; // Listeners can null out mLastEvent. in alertListeners() local 301 proximitySensorListener.onThresholdCrossed(lastEvent)); in alertListeners()
|
/frameworks/base/services/devicepolicy/java/com/android/server/devicepolicy/ |
D | SecurityLogMonitor.java | 440 final SecurityEvent lastEvent = mLastEvents.get(lastPos); in mergeBatchLocked() local 441 final long lastNanos = lastEvent.getTimeNanos(); in mergeBatchLocked() 452 if (lastEvent.eventEquals(curEvent)) { in mergeBatchLocked()
|
/frameworks/base/services/accessibility/java/com/android/server/accessibility/magnification/ |
D | MagnificationGesturesObserver.java | 85 List<MotionEventInfo> delayedEventQueue, MotionEvent lastEvent); in onGestureCancelled() argument
|
/frameworks/base/core/tests/coretests/src/android/widget/ |
D | TextViewActivityTest.java | 1143 final SelectionEvent lastEvent = selectionEvents.get(selectionEvents.size() - 1); in testSelectionMetricsLogger_noAbandonAfterCopy() local 1144 assertEquals(SelectionEvent.ACTION_COPY, lastEvent.getEventType()); in testSelectionMetricsLogger_noAbandonAfterCopy() 1165 SelectionEvent lastEvent; in testSelectionMetricsLogger_abandonEventIncludesEntityType() local 1168 lastEvent = selectionEvents.get(selectionEvents.size() - 1); in testSelectionMetricsLogger_abandonEventIncludesEntityType() 1169 if (lastEvent.getEventType() == SelectionEvent.ACTION_ABANDON) { in testSelectionMetricsLogger_abandonEventIncludesEntityType() 1175 assertEquals(SelectionEvent.ACTION_ABANDON, lastEvent.getEventType()); in testSelectionMetricsLogger_abandonEventIncludesEntityType() 1196 final SelectionEvent lastEvent = selectionEvents.get(selectionEvents.size() - 1); in testSelectionMetricsLogger_overtypeEventIncludesEntityType() local 1197 assertEquals(SelectionEvent.ACTION_OVERTYPE, lastEvent.getEventType()); in testSelectionMetricsLogger_overtypeEventIncludesEntityType() 1198 assertEquals(TextClassifier.TYPE_PHONE, lastEvent.getEntityType()); in testSelectionMetricsLogger_overtypeEventIncludesEntityType()
|
/frameworks/base/core/java/android/app/ |
D | AppOpsManager.java | 4012 NoteOpEvent lastEvent = getLastAccessEvent(fromUidState, toUidState, flags); in getLastAccessTime() local 4013 if (lastEvent == null) { in getLastAccessTime() 4017 return lastEvent.getNoteTime(); in getLastAccessTime() 4108 NoteOpEvent lastEvent = getLastRejectEvent(fromUidState, toUidState, flags); in getLastRejectTime() local 4109 if (lastEvent == null) { in getLastRejectTime() 4113 return lastEvent.getNoteTime(); in getLastRejectTime() 4183 NoteOpEvent lastEvent = getLastAccessEvent(fromUidState, toUidState, flags);; in getLastDuration() local 4184 if (lastEvent == null) { in getLastDuration() 4188 return lastEvent.getDuration(); in getLastDuration() 4261 NoteOpEvent lastEvent = getLastAccessEvent(fromUidState, toUidState, flags); in getLastProxyInfo() local [all …]
|
/frameworks/native/libs/input/tests/ |
D | VelocityTracker_test.cpp | 508 MotionEvent& lastEvent = events.back(); in TEST_F() local 509 lastEvent.setAction(AMOTION_EVENT_ACTION_CANCEL); in TEST_F() 510 lastEvent.setFlags(lastEvent.getFlags() | AMOTION_EVENT_FLAG_CANCELED); in TEST_F() 511 const int32_t pointerId = lastEvent.getPointerId(0); in TEST_F()
|
/frameworks/av/services/mediaresourcemanager/test/ |
D | ResourceManagerServiceTestUtils.h | 112 EventEntry lastEvent() { return mLastEvent; } in lastEvent() function
|
D | ResourceManagerService_test.cpp | 888 EXPECT_EQ(EventEntry({EventType::VIDEO_ON, kTestUid1}), mSystemCB->lastEvent()); in testBatteryStats() 904 EXPECT_EQ(EventEntry({EventType::VIDEO_ON, kTestUid2}), mSystemCB->lastEvent()); in testBatteryStats() 914 EXPECT_EQ(EventEntry({EventType::VIDEO_OFF, kTestUid1}), mSystemCB->lastEvent()); in testBatteryStats() 919 EXPECT_EQ(EventEntry({EventType::VIDEO_OFF, kTestUid2}), mSystemCB->lastEvent()); in testBatteryStats()
|
/frameworks/base/services/core/java/com/android/server/display/ |
D | HighBrightnessModeController.java | 450 final HbmEvent lastEvent = hbmEvents.peekLast(); in recalculateTimeAllowance() local 452 Math.max(windowstartTimeMillis, lastEvent.getStartTimeMillis()) in recalculateTimeAllowance()
|
/frameworks/av/services/mediaresourcemanager/fuzzer/ |
D | mediaresourcemanager_fuzzer.cpp | 125 EventEntry lastEvent() { return mLastEvent; } in lastEvent() function
|