Home
last modified time | relevance | path

Searched refs:lastEvent (Results 1 – 11 of 11) sorted by relevance

/frameworks/opt/setupwizard/library/main/src/com/android/setupwizardlib/view/
DTouchableMovementMethod.java52 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/brightline/
DZigZagClassifier.java168 MotionEvent lastEvent = getLastMotionEvent(); in getAtan2LastPoint() local
171 float lastX = lastEvent.getX() - offsetX; in getAtan2LastPoint()
172 float lastY = lastEvent.getY() - offsetY; in getAtan2LastPoint()
206 MotionEvent lastEvent = motionEvents.get(motionEvents.size() - 1); in rotateMotionEvents() local
211 + lastEvent.getX() + "," in rotateMotionEvents()
212 + lastEvent.getY() + ")"); in rotateMotionEvents()
/frameworks/base/core/java/android/view/contentcapture/
DMainContentCaptureSession.java335 final ContentCaptureEvent lastEvent = mEvents.get(mEvents.size() - 1); in sendEvent() local
338 if (lastEvent.getType() == TYPE_VIEW_TEXT_CHANGED in sendEvent()
339 && lastEvent.getId().equals(event.getId())) { in sendEvent()
344 lastEvent.mergeEvent(event); in sendEvent()
350 final ContentCaptureEvent lastEvent = mEvents.get(mEvents.size() - 1); in sendEvent() local
351 if (lastEvent.getType() == TYPE_VIEW_DISAPPEARED in sendEvent()
352 && event.getSessionId() == lastEvent.getSessionId()) { in sendEvent()
355 + lastEvent.getSessionId()); in sendEvent()
357 lastEvent.mergeEvent(event); in sendEvent()
/frameworks/base/core/java/android/app/usage/
DUsageStats.java445 final int lastEvent = mActivities.valueAt(index); in updateActivity() local
446 switch (lastEvent) { in updateActivity()
501 final Integer lastEvent = mForegroundServices.get(className); in updateForegroundService() local
503 if (lastEvent != null) { in updateForegroundService()
504 switch (lastEvent) { in updateForegroundService()
/frameworks/base/tests/JankBench/app/src/main/java/com/android/benchmark/ui/automation/
DInteraction.java141 MotionEvent lastEvent = MotionEvent.obtain(startTime, startTime + duration, in createInterpolatedEventList() local
143 result.add(lastEvent); in createInterpolatedEventList()
/frameworks/base/tests/net/java/com/android/server/connectivity/
DNetdEventListenerServiceTest.java148 String lastEvent = events4[events4.length - 1]; in testWakeupEventLogging() local
149 assertStringContains(lastEvent, "WakeupEvent"); in testWakeupEventLogging()
150 assertStringContains(lastEvent, "wlan0"); in testWakeupEventLogging()
151 assertStringContains(lastEvent, "uid: " + uid); in testWakeupEventLogging()
/frameworks/base/services/devicepolicy/java/com/android/server/devicepolicy/
DSecurityLogMonitor.java348 final SecurityEvent lastEvent = mLastEvents.get(lastPos); in mergeBatchLocked() local
349 final long lastNanos = lastEvent.getTimeNanos(); in mergeBatchLocked()
361 if (lastEvent.eventEquals(curEvent)) { in mergeBatchLocked()
/frameworks/base/core/java/android/app/
DAppOpsManager.java3257 NoteOpEvent lastEvent = getLastAccessEvent(fromUidState, toUidState, flags); in getLastAccessTime() local
3258 if (lastEvent == null) { in getLastAccessTime()
3262 return lastEvent.getNoteTime(); in getLastAccessTime()
3353 NoteOpEvent lastEvent = getLastRejectEvent(fromUidState, toUidState, flags); in getLastRejectTime() local
3354 if (lastEvent == null) { in getLastRejectTime()
3358 return lastEvent.getNoteTime(); in getLastRejectTime()
3428 NoteOpEvent lastEvent = getLastAccessEvent(fromUidState, toUidState, flags);; in getLastDuration() local
3429 if (lastEvent == null) { in getLastDuration()
3433 return lastEvent.getDuration(); in getLastDuration()
3506 NoteOpEvent lastEvent = getLastAccessEvent(fromUidState, toUidState, flags); in getLastProxyInfo() local
[all …]
/frameworks/av/services/mediaresourcemanager/test/
DResourceManagerService_test.cpp110 EventEntry lastEvent() { return mLastEvent; } in lastEvent() function
818 EXPECT_EQ(EventEntry({EventType::VIDEO_ON, kTestUid1}), mSystemCB->lastEvent()); in testBatteryStats()
829 EXPECT_EQ(EventEntry({EventType::VIDEO_ON, kTestUid2}), mSystemCB->lastEvent()); in testBatteryStats()
839 EXPECT_EQ(EventEntry({EventType::VIDEO_OFF, kTestUid1}), mSystemCB->lastEvent()); in testBatteryStats()
844 EXPECT_EQ(EventEntry({EventType::VIDEO_OFF, kTestUid2}), mSystemCB->lastEvent()); in testBatteryStats()
/frameworks/base/core/tests/coretests/src/android/widget/
DTextViewActivityTest.java1118 final SelectionEvent lastEvent = selectionEvents.get(selectionEvents.size() - 1); in testSelectionMetricsLogger_noAbandonAfterCopy() local
1119 assertEquals(SelectionEvent.ACTION_COPY, lastEvent.getEventType()); in testSelectionMetricsLogger_noAbandonAfterCopy()
1141 SelectionEvent lastEvent; in testSelectionMetricsLogger_abandonEventIncludesEntityType() local
1144 lastEvent = selectionEvents.get(selectionEvents.size() - 1); in testSelectionMetricsLogger_abandonEventIncludesEntityType()
1145 if (lastEvent.getEventType() == SelectionEvent.ACTION_ABANDON) { in testSelectionMetricsLogger_abandonEventIncludesEntityType()
1151 assertEquals(SelectionEvent.ACTION_ABANDON, lastEvent.getEventType()); in testSelectionMetricsLogger_abandonEventIncludesEntityType()
1173 final SelectionEvent lastEvent = selectionEvents.get(selectionEvents.size() - 1); in testSelectionMetricsLogger_overtypeEventIncludesEntityType() local
1174 assertEquals(SelectionEvent.ACTION_OVERTYPE, lastEvent.getEventType()); in testSelectionMetricsLogger_overtypeEventIncludesEntityType()
1175 assertEquals(TextClassifier.TYPE_PHONE, lastEvent.getEntityType()); in testSelectionMetricsLogger_overtypeEventIncludesEntityType()
DEditorCursorDragTest.java770 MotionEventInfo lastEvent = events[events.length - 1]; in simulateDrag() local
771 float[] upCoords = lastEvent.getCoordinates(tv); in simulateDrag()