/frameworks/base/core/java/android/app/usage/ |
D | EventList.java | 29 private final ArrayList<UsageEvents.Event> mEvents; field in EventList 35 mEvents = new ArrayList<>(); in EventList() 43 return mEvents.size(); in size() 50 mEvents.clear(); in clear() 59 return mEvents.get(index); in get() 69 final int size = mEvents.size(); in insert() 71 if (size == 0 || event.mTimeStamp >= mEvents.get(size - 1).mTimeStamp) { in insert() 72 mEvents.add(event); in insert() 78 mEvents.add(insertIndex, event); in insert() 90 final int size = mEvents.size(); in firstIndexOnOrAfter() [all …]
|
/frameworks/base/services/core/java/com/android/server/audio/ |
D | AudioEventLogger.java | 29 private final LinkedList<Event> mEvents; field in AudioEventLogger 97 mEvents = new LinkedList<Event>(); in AudioEventLogger() 103 if (mEvents.size() >= mMemSize) { in log() 104 mEvents.removeFirst(); in log() 106 mEvents.add(evt); in log() 111 for (Event evt : mEvents) { in dump()
|
/frameworks/base/telephony/java/android/telephony/ims/ |
D | RcsEventQueryResultDescriptor.java | 33 private final List<RcsEventDescriptor> mEvents; field in RcsEventQueryResultDescriptor 39 mEvents = events; in RcsEventQueryResultDescriptor() 43 List<RcsEvent> rcsEvents = mEvents.stream() in getRcsEventQueryResult() 52 mEvents = new LinkedList<>(); in RcsEventQueryResultDescriptor() 53 in.readList(mEvents, null); in RcsEventQueryResultDescriptor() 77 dest.writeList(mEvents); in writeToParcel()
|
D | RcsEventQueryResult.java | 30 private List<RcsEvent> mEvents; field in RcsEventQueryResult 42 mEvents = events; in RcsEventQueryResult() 60 return mEvents; in getEvents()
|
/frameworks/base/services/voiceinteraction/java/com/android/server/soundtrigger/ |
D | SoundTriggerLogger.java | 32 private final LinkedList<Event> mEvents; field in SoundTriggerLogger 110 mEvents = new LinkedList<Event>(); in SoundTriggerLogger() 120 if (mEvents.size() >= mMemSize) { in log() 121 mEvents.removeFirst(); in log() 123 mEvents.add(evt); in log() 132 for (Event evt : mEvents) { in dump()
|
/frameworks/base/core/java/android/view/contentcapture/ |
D | MainContentCaptureSession.java | 130 private ArrayList<ContentCaptureEvent> mEvents; field in MainContentCaptureSession 278 + ", binder=" + binder + ", events=" + (mEvents == null ? 0 : mEvents.size())); in onSessionStarted() 307 if (mEvents == null) { in sendEvent() 311 mEvents = new ArrayList<>(maxBufferSize); in sendEvent() 317 if (!mEvents.isEmpty() && eventType == TYPE_VIEW_TEXT_CHANGED) { in sendEvent() 318 final ContentCaptureEvent lastEvent = mEvents.get(mEvents.size() - 1); in sendEvent() 332 if (!mEvents.isEmpty() && eventType == TYPE_VIEW_DISAPPEARED) { in sendEvent() 333 final ContentCaptureEvent lastEvent = mEvents.get(mEvents.size() - 1); in sendEvent() 346 mEvents.add(event); in sendEvent() 349 final int numberEvents = mEvents.size(); in sendEvent() [all …]
|
/frameworks/base/core/java/android/animation/ |
D | AnimatorSet.java | 87 private ArrayList<AnimationEvent> mEvents = new ArrayList<>(); field in AnimatorSet 451 handleAnimationEvents(mLastEventId, mEvents.size() - 1, zeroScalePlayTime); 475 mLastEventId = mLastEventId == -1 ? mEvents.size() : mLastEventId; 478 AnimationEvent event = mEvents.get(mLastEventId); 494 while (mLastEventId < mEvents.size() - 1) { 498 AnimationEvent event = mEvents.get(mLastEventId); 793 for (int i = mEvents.size() - 1; i >= 0; i--) { 794 if (mEvents.get(i).mEvent == AnimationEvent.ANIMATION_DELAY_ENDED) { 795 mEvents.get(i).mNode.mAnimation.skipToEndValue(true); 799 for (int i = 0; i < mEvents.size(); i++) { [all …]
|
/frameworks/base/core/tests/coretests/src/android/metrics/ |
D | MetricsReaderTest.java | 37 MetricsReader.Event[] mEvents; field in MetricsReaderTest.FakeLogReader 41 mEvents = new MetricsReader.Event[FULL_N]; in FakeLogReader() 43 mEvents[i] = new MetricsReader.Event( in FakeLogReader() 54 for (int i = 0; i < mEvents.length; i++) { in readEvents() 55 events.add(mEvents[i]); in readEvents() 62 mEvents[i].setData(new LogMaker(MetricsEvent.METRICS_CHECKPOINT) in writeCheckpoint()
|
/frameworks/base/tests/UsageStatsTest/src/com/android/tests/usagestats/ |
D | UsageLogActivity.java | 75 private final CircularArray<UsageEvents.Event> mEvents = new CircularArray<>(MAX_EVENTS); field in UsageLogActivity.Adapter 83 if (mEvents.size() == MAX_EVENTS) { in update() 84 mEvents.popLast(); in update() 86 mEvents.addFirst(event); in update() 97 return mEvents.size(); in getCount() 102 return mEvents.get(position); in getItem()
|
/frameworks/av/media/mtp/ |
D | MtpDeviceInfo.cpp | 33 mEvents(NULL), in MtpDeviceInfo() 48 delete mEvents; in ~MtpDeviceInfo() 77 mEvents = packet.getAUInt16(); in read() 78 if (!mEvents) return false; in read()
|
D | MtpDeviceInfo.h | 34 UInt16List* mEvents; variable
|
/frameworks/base/core/java/android/service/autofill/ |
D | FillEventHistory.java | 71 @Nullable List<Event> mEvents; field in FillEventHistory 99 return mEvents; in getEvents() 106 if (mEvents == null) { in addEvent() 107 mEvents = new ArrayList<>(1); in addEvent() 109 mEvents.add(event); in addEvent() 122 return mEvents == null ? "no events" : mEvents.toString(); in toString() 133 if (mEvents == null) { in writeToParcel() 136 parcel.writeInt(mEvents.size()); in writeToParcel() 138 int numEvents = mEvents.size(); in writeToParcel() 140 Event event = mEvents.get(i); in writeToParcel()
|
/frameworks/native/services/surfaceflinger/Scheduler/ |
D | MessageQueue.cpp | 99 mEvents = eventThread->createEventConnection(std::move(resyncCallback)); in setEventThread() 100 mEvents->stealReceiveChannel(&mEventTube); in setEventThread() 110 mEvents = connection; in setEventConnection() 111 mEvents->stealReceiveChannel(&mEventTube); in setEventConnection() 149 mEvents->requestNextVsync(); in invalidate()
|
D | MessageQueue.h | 119 sp<EventThreadConnection> mEvents; variable
|
/frameworks/base/services/tests/servicestests/src/com/android/server/accessibility/ |
D | AccessibilityInputFilterTest.java | 92 List<InputEvent> mEvents = new ArrayList<>(); field in AccessibilityInputFilterTest.EventCaptor 96 mEvents.add(event.copy()); in onMotionEvent() 101 mEvents.add(event.copy()); in onKeyEvent() 119 mEvents.clear(); in clear() 218 assertEquals(1, mCaptor1.mEvents.size()); in testInputEvent_shouldDispatchToCorrespondingEventHandlers() 219 assertEquals(1, mCaptor2.mEvents.size()); in testInputEvent_shouldDispatchToCorrespondingEventHandlers() 234 assertEquals(2, mCaptor1.mEvents.size()); in testInputEvent_shouldClearEventsForAllEventHandlers() 239 assertEquals(1, mCaptor1.mEvents.size()); in testInputEvent_shouldClearEventsForAllEventHandlers()
|
D | TouchExplorerTest.java | 83 List<MotionEvent> mEvents = new ArrayList<>(); field in TouchExplorerTest.EventCaptor 87 mEvents.add(0, event.copy()); in onMotionEvent() 258 return ((EventCaptor) mCaptor).mEvents; in getCapturedEvents()
|
/frameworks/native/services/inputflinger/ |
D | InputClassifier.cpp | 145 mDeathRecipient(deathRecipient), mEvents(MAX_EVENTS) { in MotionClassifier() 181 mEvents.push(ClassifierEvent::createHalResetEvent()); in init() 234 ClassifierEvent event = mEvents.pop(); in callInputClassifierHal() 276 bool eventAdded = mEvents.push(std::move(event)); in enqueueEvent() 286 mEvents.push(ClassifierEvent::createExitEvent()); in requestExit() 335 mEvents.clear(); in reset() 336 mEvents.push(ClassifierEvent::createHalResetEvent()); in reset() 346 mEvents.erase([deviceId](const ClassifierEvent& event) { in reset() 367 mEvents.size(), MAX_EVENTS); in dump()
|
/frameworks/base/services/core/java/com/android/server/trust/ |
D | TrustArchive.java | 71 ArrayDeque<Event> mEvents = new ArrayDeque<Event>(); field in TrustArchive 108 if (mEvents.size() >= HISTORY_LIMIT) { in addEvent() 109 mEvents.removeFirst(); in addEvent() 111 mEvents.addLast(e); in addEvent() 117 Iterator<Event> iter = mEvents.descendingIterator(); in dump()
|
/frameworks/base/services/core/java/com/android/server/connectivity/ |
D | DefaultNetworkMetrics.java | 44 private final List<DefaultNetworkEvent> mEvents = new ArrayList<>(); field in DefaultNetworkMetrics 91 for (DefaultNetworkEvent ev : mEvents) { in flushEvents() 94 mEvents.clear(); in flushEvents() 141 mEvents.add(ev); in logCurrentDefaultNetwork()
|
/frameworks/base/apct-tests/perftests/autofill/src/android/view/autofill/ |
D | MyAutofillCallback.java | 47 private final BlockingQueue<MyEvent> mEvents = new LinkedBlockingQueue<>(2); field in MyAutofillCallback 54 offered = mEvents.offer(new MyEvent(view, event), TIMEOUT_MS, TimeUnit.MILLISECONDS); in onAutofillEvent() 71 myEvent = mEvents.poll(TIMEOUT_MS, TimeUnit.MILLISECONDS); in expectEvent()
|
/frameworks/base/tests/JankBench/app/src/main/java/com/android/benchmark/ui/automation/ |
D | Interaction.java | 35 private List<MotionEvent> mEvents; field in Interaction 87 mEvents = createInterpolatedEventList(mXPositions, mYPositions, mDuration); in getEvents() 92 mEvents = createInterpolatedEventList(mXPositions, mYPositions, mDuration); in getEvents() 96 return mEvents; in getEvents()
|
/frameworks/base/telecomm/java/android/telecom/Logging/ |
D | EventManager.java | 183 private final List<Event> mEvents = Collections.synchronizedList(new LinkedList<>()); field in EventManager.EventRecord 195 mEvents.add(new Event(event, sessionId, System.currentTimeMillis(), data)); in addEvent() 200 return new LinkedList<>(mEvents); in getEvents() 204 if (mEvents == null) { in extractEventTimings() 210 synchronized (mEvents) { in extractEventTimings() 211 for (Event event : mEvents) { in extractEventTimings()
|
/frameworks/base/core/java/android/os/ |
D | MessageQueue.java | 242 if (record != null && record.mEvents == events) { in updateOnFileDescriptorEventListenerLocked() 258 record.mEvents = events; in updateOnFileDescriptorEventListenerLocked() 263 record.mEvents = 0; in updateOnFileDescriptorEventListenerLocked() 283 oldWatchedEvents = record.mEvents; in dispatchEvents() 307 record.mEvents = newWatchedEvents; in dispatchEvents() 912 public int mEvents; field in MessageQueue.FileDescriptorRecord 919 mEvents = events; in FileDescriptorRecord()
|
/frameworks/base/services/core/java/com/android/server/display/ |
D | BrightnessTracker.java | 138 private RingBuffer<BrightnessChangeEvent> mEvents field in BrightnessTracker 265 events = mEvents.toArray(); in getEvents() 405 mEvents.append(event); in handleBrightnessChanged() 450 if (mEvents.isEmpty()) { in writeEvents() 490 mEvents.clear(); in readEvents() 533 BrightnessChangeEvent[] toWrite = mEvents.toArray(); in writeEventsLocked() 535 mEvents.clear(); in writeEventsLocked() 543 mEvents.append(toWrite[i]); in writeEventsLocked() 695 mEvents.append(event); in readEventsLocked() 702 mEvents = new RingBuffer<>(BrightnessChangeEvent.class, MAX_EVENTS); in readEventsLocked() [all …]
|
/frameworks/base/services/accessibility/java/com/android/server/accessibility/ |
D | TouchExplorer.java | 1165 private final List<MotionEvent> mEvents = new ArrayList<MotionEvent>(); field in TouchExplorer.SendHoverEnterAndMoveDelayed 1180 mEvents.add(MotionEvent.obtain(event)); in addEvent() 1197 final int eventCount = mEvents.size(); in clear() 1199 mEvents.remove(i).recycle(); in clear() 1214 if (!mEvents.isEmpty()) { in run() 1216 sendMotionEvent(mEvents.get(0), MotionEvent.ACTION_HOVER_ENTER, in run() 1224 final int eventCount = mEvents.size(); in run() 1226 sendMotionEvent(mEvents.get(i), MotionEvent.ACTION_HOVER_MOVE, in run()
|