Home
last modified time | relevance | path

Searched refs:addEvent (Results 1 – 25 of 59) sorted by relevance

123

/frameworks/base/services/tests/servicestests/src/com/android/server/people/data/
DEventHistoryImplTest.java108 mEventHistory.addEvent(E1); in testMultipleEvents()
109 mEventHistory.addEvent(E2); in testMultipleEvents()
110 mEventHistory.addEvent(E3); in testMultipleEvents()
111 mEventHistory.addEvent(E4); in testMultipleEvents()
122 mEventHistory.addEvent(E1); in testQuerySomeEventTypes()
123 mEventHistory.addEvent(E2); in testQuerySomeEventTypes()
124 mEventHistory.addEvent(E3); in testQuerySomeEventTypes()
125 mEventHistory.addEvent(E4); in testQuerySomeEventTypes()
137 mEventHistory.addEvent(E1); in testQuerySingleEventType()
138 mEventHistory.addEvent(E2); in testQuerySingleEventType()
[all …]
DEventIndexTest.java61 mEventIndex.addEvent(timestamp("01-06 05:26")); in testMultipleEvents()
62 mEventIndex.addEvent(timestamp("01-27 18:41")); in testMultipleEvents()
63 mEventIndex.addEvent(timestamp("01-30 03:06")); in testMultipleEvents()
64 mEventIndex.addEvent(timestamp("01-30 18:14")); in testMultipleEvents()
81 mEventIndex.addEvent(CURRENT_TIMESTAMP); in testBitmapShift()
115 mEventIndex.addEvent(timestamp("01-06 05:26")); in testCopyConstructor()
116 mEventIndex.addEvent(timestamp("01-27 18:41")); in testCopyConstructor()
117 mEventIndex.addEvent(timestamp("01-30 03:06")); in testCopyConstructor()
118 mEventIndex.addEvent(timestamp("01-30 18:14")); in testCopyConstructor()
135 a.addEvent(mInjector.mCurrentTimeMillis); in combineEventIndexes()
[all …]
DPackageDataTest.java85 .addEvent(mE1); in testGetEventHistory()
87 .addEvent(mE2); in testGetEventHistory()
102 .addEvent(mE1); in testGetEventHistoryDefaultDialerAndSmsApp()
103 eventStore.getOrCreateEventHistory(EventStore.CATEGORY_CALL, PHONE_NUMBER).addEvent(mE3); in testGetEventHistoryDefaultDialerAndSmsApp()
104 eventStore.getOrCreateEventHistory(EventStore.CATEGORY_SMS, PHONE_NUMBER).addEvent(mE4); in testGetEventHistoryDefaultDialerAndSmsApp()
120 .addEvent(mE1); in testGetEventHistoryNotDefaultDialerOrSmsApp()
121 eventStore.getOrCreateEventHistory(EventStore.CATEGORY_CALL, PHONE_NUMBER).addEvent(mE3); in testGetEventHistoryNotDefaultDialerOrSmsApp()
122 eventStore.getOrCreateEventHistory(EventStore.CATEGORY_SMS, PHONE_NUMBER).addEvent(mE4); in testGetEventHistoryNotDefaultDialerOrSmsApp()
138 .addEvent(mE1); in testDeleteConversationData()
140 .addEvent(mE2); in testDeleteConversationData()
[all …]
DAggregateEventHistoryImplTest.java74 mEventHistory1.addEvent(E1); in setUp()
75 mEventHistory1.addEvent(E2); in setUp()
78 mEventHistory2.addEvent(E3); in setUp()
79 mEventHistory2.addEvent(E4); in setUp()
/frameworks/base/services/core/java/com/android/server/trust/
DTrustArchive.java75 addEvent(new Event(TYPE_GRANT_TRUST, userId, agent, message, duration, in logGrantTrust()
80 addEvent(new Event(TYPE_REVOKE_TRUST, userId, agent, null, 0, 0, false)); in logRevokeTrust()
84 addEvent(new Event(TYPE_TRUST_TIMEOUT, userId, agent, null, 0, 0, false)); in logTrustTimeout()
88 addEvent(new Event(TYPE_AGENT_DIED, userId, agent, null, 0, 0, false)); in logAgentDied()
92 addEvent(new Event(TYPE_AGENT_CONNECTED, userId, agent, null, 0, 0, false)); in logAgentConnected()
96 addEvent(new Event(TYPE_AGENT_STOPPED, userId, agent, null, 0, 0, false)); in logAgentStopped()
100 addEvent(new Event(TYPE_MANAGING_TRUST, userId, agent, null, 0, 0, managing)); in logManagingTrust()
104 addEvent(new Event(TYPE_POLICY_CHANGED, UserHandle.USER_ALL, null, null, 0, 0, false)); in logDevicePolicyChanged()
107 private void addEvent(Event e) { in addEvent() method in TrustArchive
/frameworks/opt/telephony/src/java/com/android/internal/telephony/metrics/
DInProgressSmsSession.java91 public void addEvent(SmsSessionEventBuilder builder) { in addEvent() method in InProgressSmsSession
92 addEvent(SystemClock.elapsedRealtime(), builder); in addEvent()
101 public synchronized void addEvent(long timestamp, SmsSessionEventBuilder builder) { in addEvent() method in InProgressSmsSession
DInProgressCallSession.java75 public void addEvent(CallSessionEventBuilder builder) { in addEvent() method in InProgressCallSession
76 addEvent(SystemClock.elapsedRealtime(), builder); in addEvent()
85 synchronized public void addEvent(long timestamp, CallSessionEventBuilder builder) { in addEvent() method in InProgressCallSession
DTelephonyMetrics.java1035 callSession.addEvent(timestamp, eventBuilder); in annotateInProgressCallSession()
1050 smsSession.addEvent(timestamp, eventBuilder); in annotateInProgressSmsSession()
1071 callSession.addEvent(callSession.startElapsedTimeMs, new CallSessionEventBuilder( in startNewCallSessionIfNeeded()
1078 callSession.addEvent(callSession.startElapsedTimeMs, new CallSessionEventBuilder( in startNewCallSessionIfNeeded()
1085 callSession.addEvent(callSession.startElapsedTimeMs, new CallSessionEventBuilder( in startNewCallSessionIfNeeded()
1122 smsSession.addEvent(smsSession.startElapsedTimeMs, new SmsSessionEventBuilder( in startNewSmsSession()
1129 smsSession.addEvent(smsSession.startElapsedTimeMs, new SmsSessionEventBuilder( in startNewSmsSession()
1136 smsSession.addEvent(smsSession.startElapsedTimeMs, new SmsSessionEventBuilder( in startNewSmsSession()
1572 callSession.addEvent( in writeRilCallList()
1693 callSession.addEvent(callSession.startElapsedTimeMs, in writeRilDial()
[all …]
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/metrics/
DInProgressCallSessionTest.java60 mCallSession.addEvent(builder); in testAddEvent()
75 mCallSession.addEvent(builder); in testEventDropped()
91 mCallSession.addEvent(builder); in testAddCallQualityEvent()
129 mCallSession.addEvent(builder); in testAddCallQualitySummaryEvent()
DInProgressSmsSessionTest.java55 mSmsSession.addEvent(builder); in testAddEvent()
68 mSmsSession.addEvent(builder); in testEventDropped()
/frameworks/base/services/core/java/com/android/server/am/
DAppBatteryExemptionTracker.java134 boolean addEvent = false; in onStateChange()
148 addEvent = true; in onStateChange()
163 addEvent = true; in onStateChange()
172 if (addEvent) { in onStateChange()
178 pkg.addEvent(start, now, batteryUsage, stateTypeIndex); in onStateChange()
243 void addEvent(boolean start, long now, ImmutableBatteryUsage batteryUsage, int eventType) { in addEvent() method in AppBatteryExemptionTracker.UidBatteryStates
245 addEvent(start, new UidStateEventWithBattery(start, now, batteryUsage, null), in addEvent()
255 addEvent(start, new UidStateEventWithBattery(start, now, in addEvent()
DAppMediaSessionTracker.java107 pkg.addEvent(true, now); in handleMediaSessionChanged()
130 pkg.addEvent(false, now); in handleMediaSessionChanged()
149 pkg.addEvent(false, now); in handleMediaSessionChanged()
DBaseAppStateDurationsTracker.java65 uidStateDurations.addEvent(procState < PROCESS_STATE_FOREGROUND_SERVICE, in onUidProcStateChanged()
239 void addEvent(boolean active, long now) { in addEvent() method in BaseAppStateDurationsTracker.SimplePackageDurations
240 addEvent(active, new BaseTimeEvent(now), DEFAULT_INDEX); in addEvent()
/frameworks/base/tests/MotionPrediction/src/test/motionprediction/
DDrawingView.kt64 private fun addEvent(event: MotionEvent) { in addEvent() method
77 addEvent(event) in onTouchEvent()
/frameworks/base/services/people/java/com/android/server/people/data/
DCallLogQueryHelper.java92 if (addEvent(phoneNumber, date, durationSeconds, callType)) { in querySince()
107 private boolean addEvent(String phoneNumber, long date, long durationSeconds, int callType) { in addEvent() method in CallLogQueryHelper
DSmsQueryHelper.java96 if (address != null && addEvent(address, date, type)) { in querySince()
111 private boolean addEvent(String phoneNumber, long date, int type) { in addEvent() method in SmsQueryHelper
DMmsQueryHelper.java98 if (address != null && addEvent(address, date, msgBox)) { in querySince()
143 private boolean addEvent(String phoneNumber, long date, int msgBox) { in addEvent() method in MmsQueryHelper
DUsageStatsQueryHelper.java215 eventHistory.addEvent(event); in addEventByShortcutId()
227 eventHistory.addEvent(event); in addEventByLocusId()
/frameworks/native/services/sensorservice/
DRecentEventLogger.h39 void addEvent(const sensors_event_t& event);
/frameworks/base/media/java/android/media/
DSubtitleTrack.java403 private boolean addEvent(Cue cue, long timeMs) { in addEvent() method in SubtitleTrack.CueList
432 if (!addEvent(cue, cue.mStartTimeMs)) { in add()
440 addEvent(cue, timeMs); in add()
446 addEvent(cue, cue.mEndTimeMs); in add()
/frameworks/base/core/java/android/view/contentcapture/
DMainContentCaptureSession.java419 boolean addEvent = true; in sendContentCaptureEvent()
448 addEvent = false; in sendContentCaptureEvent()
451 addEvent = false; in sendContentCaptureEvent()
453 if (!addEvent && sVerbose) { in sendContentCaptureEvent()
470 addEvent = false; in sendContentCaptureEvent()
474 if (addEvent) { in sendContentCaptureEvent()
DMainContentCaptureSessionV2.java442 boolean addEvent = true; in sendContentCaptureEvent()
471 addEvent = false; in sendContentCaptureEvent()
474 addEvent = false; in sendContentCaptureEvent()
476 if (!addEvent && sVerbose) { in sendContentCaptureEvent()
493 addEvent = false; in sendContentCaptureEvent()
497 if (addEvent) { in sendContentCaptureEvent()
/frameworks/base/services/autofill/java/com/android/server/autofill/
DAutofillManagerServiceImpl.java848 mEventHistory.addEvent( in setAuthenticationSelected()
863 mEventHistory.addEvent( in logDatasetAuthenticationSelected()
877 mEventHistory.addEvent(new Event(Event.TYPE_SAVE_SHOWN, null, clientState, null, in logSaveShown()
890 mEventHistory.addEvent( in logDatasetSelected()
904 mEventHistory.addEvent( in logDatasetShown()
931 mEventHistory.addEvent( in logViewEntered()
944 mAugmentedAutofillEventHistory.addEvent( in logAugmentedAutofillAuthenticationSelected()
957 mAugmentedAutofillEventHistory.addEvent( in logAugmentedAutofillSelected()
971 mAugmentedAutofillEventHistory.addEvent( in logAugmentedAutofillShown()
1054 mEventHistory.addEvent(new Event(Event.TYPE_CONTEXT_COMMITTED, null, in logContextCommittedLocked()
/frameworks/base/core/java/android/net/metrics/
DConnectStats.java63 boolean addEvent(int errno, int latencyMs, String ipAddr) { in addEvent() method in ConnectStats
/frameworks/base/services/accessibility/java/com/android/server/accessibility/gestures/
DTouchExplorer.java512 mSendHoverEnterAndMoveDelayed.addEvent(event, mState.getLastReceivedEvent()); in onGestureCancelled()
581 mSendHoverEnterAndMoveDelayed.addEvent(event, rawEvent); in handleActionDown()
587 mSendHoverEnterAndMoveDelayed.addEvent(event, rawEvent); in handleActionDown()
706 mSendHoverEnterAndMoveDelayed.addEvent(event, rawEvent); in handleActionMoveStateTouchInteracting()
717 mSendHoverEnterAndMoveDelayed.addEvent(event, rawEvent); in handleActionMoveStateTouchInteracting()
1539 addEvent(event, rawEvent); in post()
1545 public void addEvent(MotionEvent event, MotionEvent rawEvent) { in addEvent() method in TouchExplorer.SendHoverEnterAndMoveDelayed

123