Home
last modified time | relevance | path

Searched refs:eventId (Results 1 – 25 of 70) sorted by relevance

123

/frameworks/base/core/java/com/android/internal/logging/testing/
DUiEventLoggerFake.java35 public final int eventId; field in UiEventLoggerFake.FakeUiEvent
41 FakeUiEvent(int eventId, int uid, String packageName) { in FakeUiEvent() argument
42 this.eventId = eventId; in FakeUiEvent()
49 FakeUiEvent(int eventId, int uid, String packageName, InstanceId instanceId) { in FakeUiEvent() argument
50 this.eventId = eventId; in FakeUiEvent()
57 FakeUiEvent(int eventId, int uid, String packageName, InstanceId instanceId, int position) { in FakeUiEvent() argument
58 this.eventId = eventId; in FakeUiEvent()
81 public int eventId(int index) { in eventId() method in UiEventLoggerFake
82 return mLogs.get(index).eventId; in eventId()
97 final int eventId = event.getId(); in log() local
[all …]
/frameworks/base/tests/Input/src/com/android/test/input/
DInputEventAssignerTest.kt64 val eventId = assigner.processEvent(event) in testTouchGesture() constant
65 assertEquals(event.id, eventId) in testTouchGesture()
80 var eventId = assigner.processEvent(down) in testTouchDownWithMove() variable
81 assertEquals(down.id, eventId) in testTouchDownWithMove()
82 eventId = assigner.processEvent(move1) in testTouchDownWithMove()
83 assertEquals(down.id, eventId) in testTouchDownWithMove()
84 eventId = assigner.processEvent(move2) in testTouchDownWithMove()
87 assertEquals(down.id, eventId) in testTouchDownWithMove()
91 eventId = assigner.processEvent(move3) in testTouchDownWithMove()
92 assertEquals(move3.id, eventId) in testTouchDownWithMove()
[all …]
/frameworks/base/core/java/com/android/internal/util/
DStatLogger.java102 public long logDurationStat(int eventId, long start) { in logDurationStat() argument
105 if (eventId >= 0 && eventId < SIZE) { in logDurationStat()
106 mCountStats[eventId]++; in logDurationStat()
107 mDurationStats[eventId] += duration; in logDurationStat()
109 Slog.wtf(TAG, "Invalid event ID: " + eventId); in logDurationStat()
112 if (mMaxDurationStats[eventId] < duration) { in logDurationStat()
113 mMaxDurationStats[eventId] = duration; in logDurationStat()
119 if (mMaxCallsPerSecond[eventId] < mCallsPerSecond[eventId]) { in logDurationStat()
120 mMaxCallsPerSecond[eventId] = mCallsPerSecond[eventId]; in logDurationStat()
122 if (mMaxDurationPerSecond[eventId] < mDurationPerSecond[eventId]) { in logDurationStat()
[all …]
/frameworks/base/apex/jobscheduler/service/java/com/android/server/tare/
DLedger.java40 public final int eventId; field in Ledger.Transaction
47 int eventId, @Nullable String tag, long delta, long ctp) { in Transaction() argument
50 this.eventId = eventId; in Transaction()
92 final long sum = mCumulativeDeltaPerReason.get(transaction.eventId); in recordTransaction()
93 mCumulativeDeltaPerReason.put(transaction.eventId, sum + transaction.delta); in recordTransaction()
97 long get24HourSum(int eventId, final long now) { in get24HourSum() argument
107 long sum = mCumulativeDeltaPerReason.get(transaction.eventId); in get24HourSum()
116 mCumulativeDeltaPerReason.put(transaction.eventId, sum); in get24HourSum()
120 return mCumulativeDeltaPerReason.get(eventId); in get24HourSum()
142 pw.print(EconomicPolicy.eventToString(transaction.eventId)); in dump()
DEconomicPolicy.java305 static int getEventType(int eventId) { in getEventType() argument
306 return eventId & MASK_TYPE; in getEventType()
310 static String eventToString(int eventId) { in eventToString() argument
311 switch (eventId & MASK_TYPE) { in eventToString()
313 return actionToString(eventId); in eventToString()
316 return regulationToString(eventId); in eventToString()
319 return rewardToString(eventId); in eventToString()
322 return "UNKNOWN_EVENT:" + Integer.toHexString(eventId); in eventToString()
327 static String actionToString(int eventId) { in actionToString() argument
328 switch (eventId & MASK_POLICY) { in actionToString()
[all …]
DAgent.java171 final int eventId, @Nullable String tag) { in noteInstantaneousEventLocked() argument
181 final int eventType = getEventType(eventId); in noteInstantaneousEventLocked()
185 economicPolicy.getCostOfAction(eventId, userId, pkgName); in noteInstantaneousEventLocked()
188 new Ledger.Transaction(now, now, eventId, tag, in noteInstantaneousEventLocked()
194 final EconomicPolicy.Reward reward = economicPolicy.getReward(eventId); in noteInstantaneousEventLocked()
196 final long rewardSum = ledger.get24HourSum(eventId, now); in noteInstantaneousEventLocked()
200 new Ledger.Transaction(now, now, eventId, tag, rewardVal, 0), true); in noteInstantaneousEventLocked()
211 void noteOngoingEventLocked(final int userId, @NonNull final String pkgName, final int eventId, in noteOngoingEventLocked() argument
213 noteOngoingEventLocked(userId, pkgName, eventId, tag, startElapsed, true); in noteOngoingEventLocked()
218 final int eventId, @Nullable String tag, final long startElapsed, in noteOngoingEventLocked() argument
[all …]
DEconomyManagerInternal.java171 void noteInstantaneousEvent(int userId, @NonNull String pkgName, int eventId, in noteInstantaneousEvent() argument
184 void noteOngoingEventStarted(int userId, @NonNull String pkgName, int eventId, in noteOngoingEventStarted() argument
195 void noteOngoingEventStopped(int userId, @NonNull String pkgName, int eventId, in noteOngoingEventStopped() argument
/frameworks/base/telephony/java/android/telephony/
DAnomalyReporter.java90 public static void reportAnomaly(@NonNull UUID eventId, String description) { in reportAnomaly() argument
91 reportAnomaly(eventId, description, UNKNOWN_CARRIER_ID); in reportAnomaly()
107 public static void reportAnomaly(@NonNull UUID eventId, String description, int carrierId) { in reportAnomaly() argument
109 Rlog.w(TAG, "AnomalyReporter not yet initialized, dropping event=" + eventId); in reportAnomaly()
121 Rlog.w(TAG, "Unable to read device config, dropping event=" + eventId); in reportAnomaly()
128 eventId.getLeastSignificantBits(), in reportAnomaly()
129 eventId.getMostSignificantBits()); in reportAnomaly()
133 Integer count = sEvents.containsKey(eventId) ? sEvents.get(eventId) + 1 : 1; in reportAnomaly()
134 sEvents.put(eventId, count); in reportAnomaly()
143 dbgIntent.putExtra(TelephonyManager.EXTRA_ANOMALY_ID, new ParcelUuid(eventId)); in reportAnomaly()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/logging/
DQSLogger.kt99 fun logTileClick(tileSpec: String, statusBarState: Int, state: Int, eventId: Int) { in <lambda>()
105 int1 = eventId in <lambda>()
113 fun logHandleClick(tileSpec: String, eventId: Int) { in <lambda>()
119 int1 = eventId in <lambda>()
125 fun logTileSecondaryClick(tileSpec: String, statusBarState: Int, state: Int, eventId: Int) { in <lambda>()
131 int1 = eventId in <lambda>()
139 fun logHandleSecondaryClick(tileSpec: String, eventId: Int) { in <lambda>()
145 int1 = eventId in <lambda>()
151 fun logTileLongClick(tileSpec: String, statusBarState: Int, state: Int, eventId: Int) { in <lambda>()
157 int1 = eventId in <lambda>()
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/screenshot/
DTakeScreenshotServiceTest.kt174 logEvent.eventId, in <lambda>()
207 logEvent.eventId, in <lambda>()
251 logEvent.eventId, in <lambda>()
283 requestEvent.eventId in <lambda>()
294 failureEvent.eventId in <lambda>()
334 requestEvent.eventId in <lambda>()
345 failureEvent.eventId in <lambda>()
375 requestEvent.eventId in <lambda>()
386 failureEvent.eventId in <lambda>()
426 requestEvent.eventId in <lambda>()
[all …]
/frameworks/native/include/input/
DInputTransport.h96 int32_t eventId; member
116 int32_t eventId; member
180 int32_t eventId; member
189 int32_t eventId; member
197 int32_t eventId; member
207 int32_t eventId; member
215 int32_t eventId; member
352 status_t publishKeyEvent(uint32_t seq, int32_t eventId, int32_t deviceId, int32_t source,
365 status_t publishMotionEvent(uint32_t seq, int32_t eventId, int32_t deviceId, int32_t source,
383 status_t publishFocusEvent(uint32_t seq, int32_t eventId, bool hasFocus);
[all …]
/frameworks/base/telecomm/java/android/telecom/Logging/
DEventManager.java130 public String eventId; field in EventManager.Event
138 public Event(String eventId, String sessionId, long time, Object data) { in Event() argument
139 this.eventId = eventId; in Event()
212 if (requestResponsePairs.containsKey(event.eventId)) { in extractEventTimings()
216 event.eventId)) { in extractEventTimings()
217 pendingResponses.put(p.mResponse, new PendingResponse(event.eventId, in extractEventTimings()
222 PendingResponse pendingResponse = pendingResponses.remove(event.eventId); in extractEventTimings()
243 pw.print(event.eventId); in dump()
353 pw.print(event.second.eventId); in dumpEventsTimeline()
/frameworks/base/core/java/android/app/admin/
DDevicePolicyEventLogger.java57 private DevicePolicyEventLogger(int eventId) { in DevicePolicyEventLogger() argument
58 mEventId = eventId; in DevicePolicyEventLogger()
68 public static DevicePolicyEventLogger createEvent(int eventId) { in createEvent() argument
69 return new DevicePolicyEventLogger(eventId); in createEvent()
/frameworks/native/libs/input/tests/
DInputPublisherAndConsumer_test.cpp75 int32_t eventId = InputEvent::nextId(); in PublishAndConsumeKeyEvent() local
92 status = mPublisher->publishKeyEvent(seq, eventId, deviceId, source, displayId, hmac, action, in PublishAndConsumeKeyEvent()
111 EXPECT_EQ(eventId, keyEvent->getId()); in PublishAndConsumeKeyEvent()
145 int32_t eventId = InputEvent::nextId(); in PublishAndConsumeMotionEvent() local
198 status = mPublisher->publishMotionEvent(seq, eventId, deviceId, source, displayId, hmac, action, in PublishAndConsumeMotionEvent()
220 EXPECT_EQ(eventId, motionEvent->getId()); in PublishAndConsumeMotionEvent()
291 int32_t eventId = InputEvent::nextId(); in PublishAndConsumeFocusEvent() local
295 status = mPublisher->publishFocusEvent(seq, eventId, hasFocus); in PublishAndConsumeFocusEvent()
309 EXPECT_EQ(eventId, focusEvent->getId()); in PublishAndConsumeFocusEvent()
332 int32_t eventId = InputEvent::nextId(); in PublishAndConsumeCaptureEvent() local
[all …]
DStructLayout_test.cpp37 CHECK_OFFSET(InputMessage::Body::Key, eventId, 0); in TestInputMessageAlignment()
51 CHECK_OFFSET(InputMessage::Body::Motion, eventId, 0); in TestInputMessageAlignment()
85 CHECK_OFFSET(InputMessage::Body::Focus, eventId, 0); in TestInputMessageAlignment()
89 CHECK_OFFSET(InputMessage::Body::Capture, eventId, 0); in TestInputMessageAlignment()
93 CHECK_OFFSET(InputMessage::Body::Drag, eventId, 0); in TestInputMessageAlignment()
103 CHECK_OFFSET(InputMessage::Body::Timeline, eventId, 0); in TestInputMessageAlignment()
107 CHECK_OFFSET(InputMessage::Body::TouchMode, eventId, 0); in TestInputMessageAlignment()
/frameworks/native/libs/input/
DInputTransport.cpp176 msg->body.key.eventId = body.key.eventId; in getSanitizedCopy()
205 msg->body.motion.eventId = body.motion.eventId; in getSanitizedCopy()
279 msg->body.focus.eventId = body.focus.eventId; in getSanitizedCopy()
284 msg->body.capture.eventId = body.capture.eventId; in getSanitizedCopy()
289 msg->body.drag.eventId = body.drag.eventId; in getSanitizedCopy()
296 msg->body.timeline.eventId = body.timeline.eventId; in getSanitizedCopy()
301 msg->body.touchMode.eventId = body.touchMode.eventId; in getSanitizedCopy()
498 status_t InputPublisher::publishKeyEvent(uint32_t seq, int32_t eventId, int32_t deviceId, in publishKeyEvent() argument
525 msg.body.key.eventId = eventId; in publishKeyEvent()
542 uint32_t seq, int32_t eventId, int32_t deviceId, int32_t source, int32_t displayId, in publishMotionEvent() argument
[all …]
/frameworks/base/core/java/android/view/
DViewFrameInfo.java67 public void setInputEvent(int eventId) { in setInputEvent() argument
68 mInputEventId = eventId; in setInputEvent()
/frameworks/base/packages/SystemUI/src/com/android/systemui/controls/
DControlsMetricsLoggerImpl.kt48 eventId: Int, in log()
55 eventId, in log()
/frameworks/base/core/java/android/provider/
DCalendarContract.java266 long eventId, long startMs, long endMs, boolean allDay, int flags) { in startViewCalendarEventInManagedProfile() argument
270 return dpm.startViewCalendarEventInManagedProfile(eventId, startMs, in startViewCalendarEventInManagedProfile()
986 public static final Cursor query(ContentResolver cr, long eventId, String[] projection) { in query() argument
987 String[] attArgs = {Long.toString(eventId)}; in query()
1476 final long eventId = cursor.getLong(cursor.getColumnIndexOrThrow(Events._ID)); in getEntityAndIncrementCursor() local
1478 cv.put(Events._ID, eventId); in getEntityAndIncrementCursor()
1549 new String[] { Long.toString(eventId) } /* selectionArgs */, in getEntityAndIncrementCursor()
1554 new String[] { Long.toString(eventId) } /* selectionArgs */, in getEntityAndIncrementCursor()
1571 new String[] { Long.toString(eventId) } /* selectionArgs */, in getEntityAndIncrementCursor()
1576 new String[] { Long.toString(eventId) } /* selectionArgs */, in getEntityAndIncrementCursor()
[all …]
/frameworks/base/services/core/java/com/android/server/notification/
DCalendarTracker.java136 final int eventId = cursor.getInt(4); in checkEvent() local
146 availabilityToString(availability), eventId, name, owner, calendarId, in checkEvent()
157 final boolean meetsAttendee = meetsAttendee(filter, eventId, owner); in checkEvent()
182 private boolean meetsAttendee(EventInfo filter, int eventId, String email) {
185 String[] selectionArgs = { Integer.toString(eventId), email };
208 final boolean eventMeets = rowEventId == eventId && Objects.equals(rowEmail, email)
/frameworks/base/core/tests/coretests/src/com/android/internal/app/
DChooserActivityLoggerFake.java49 CallRecord(int atomId, UiEventLogger.UiEventEnum eventId, in CallRecord() argument
54 this.event = eventId; in CallRecord()
108 public void logShareStarted(int eventId, String packageName, String mimeType, in logShareStarted() argument
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/media/taptotransfer/sender/
DMediaTttSenderUiEventLoggerTest.kt27 assertThat(uiEventLoggerFake.eventId(0)).isEqualTo(state.uiEvent.id) in logSenderStateChange_eventAssociatedWithStateIsLogged()
37 assertThat(uiEventLoggerFake.eventId(0)).isEqualTo(undoEvent.id) in logUndoClicked_undoEventLogged()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/ongoingcall/
DOngoingCallLoggerTest.kt35 assertThat(uiEventLoggerFake.eventId(0)) in logChipClicked_clickEventLogged()
45 assertThat(uiEventLoggerFake.eventId(0)) in logChipVisibilityChanged_changeFromInvisibleToVisible_visibleEventLogged()
/frameworks/base/media/java/android/media/tv/
DStreamEventResponse.java54 int eventId, long nptMillis, @Nullable byte[] data) { in StreamEventResponse() argument
56 mEventId = eventId; in StreamEventResponse()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tileimpl/
DQSTileImpl.java301 final int eventId = mClickEventId++; in click() local
303 eventId); in click()
305 mHandler.obtainMessage(H.CLICK, eventId, 0, view).sendToTarget(); in click()
315 final int eventId = mClickEventId++; in secondaryClick() local
317 mState.state, eventId); in secondaryClick()
318 mHandler.obtainMessage(H.SECONDARY_CLICK, eventId, 0, view).sendToTarget(); in secondaryClick()
328 final int eventId = mClickEventId++; in longClick() local
330 eventId); in longClick()
331 mHandler.obtainMessage(H.LONG_CLICK, eventId, 0, view).sendToTarget(); in longClick()

123