Home
last modified time | relevance | path

Searched refs:mEvents (Results 1 – 25 of 33) sorted by relevance

12

/frameworks/base/services/people/java/com/android/server/people/data/
DEventList.java30 private final List<Event> mEvents = new ArrayList<>(); field in EventList
38 if (index < mEvents.size() in add()
39 && mEvents.get(index).getTimestamp() == event.getTimestamp() in add()
43 mEvents.add(index, event); in add()
67 if (fromIndex == mEvents.size()) { in queryEvents()
76 Event e = mEvents.get(i); in queryEvents()
85 mEvents.clear(); in clear()
93 return CollectionUtils.copyOf(mEvents); in getAllEvents()
108 int eventsSize = mEvents.size(); in removeOldEvents()
110 mEvents.clear(); in removeOldEvents()
[all …]
/frameworks/base/core/java/android/app/usage/
DEventList.java29 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()
89 return mEvents.remove(index); in remove()
[all …]
/frameworks/base/packages/BackupEncryption/src/com/android/server/backup/encryption/keys/
DTertiaryKeyRotationWindowedCount.java53 private ArrayList<Long> mEvents; field in TertiaryKeyRotationWindowedCount
66 mEvents = new ArrayList<>(); in TertiaryKeyRotationWindowedCount()
76 mEvents.add(mClock.millis()); in record()
88 return mEvents.size(); in getCount()
95 for (long event : mEvents) { in compact()
100 mEvents = compacted; in compact()
114 mEvents.add(dis.readLong()); in loadFromFile()
127 for (long event : mEvents) { in saveToFile()
/frameworks/base/core/java/android/animation/
DAnimatorSet.java87 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/services/voiceinteraction/java/com/android/server/soundtrigger/
DSoundTriggerLogger.java32 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/services/core/java/com/android/server/audio/
DAudioEventLogger.java29 private final LinkedList<Event> mEvents; field in AudioEventLogger
126 mEvents = new LinkedList<Event>(); in AudioEventLogger()
132 if (mEvents.size() >= mMemSize) { in log()
133 mEvents.removeFirst(); in log()
135 mEvents.add(evt); in log()
140 for (Event evt : mEvents) { in dump()
/frameworks/base/core/java/android/view/contentcapture/
DMainContentCaptureSession.java141 private ArrayList<ContentCaptureEvent> mEvents; field in MainContentCaptureSession
310 + ", binder=" + binder + ", events=" + (mEvents == null ? 0 : mEvents.size())); in onSessionStarted()
341 if (mEvents == null) { in sendEvent()
345 mEvents = new ArrayList<>(maxBufferSize); in sendEvent()
362 for (int index = mEvents.size() - 1; index >= 0; index--) { in sendEvent()
363 final ContentCaptureEvent tmpEvent = mEvents.get(index); in sendEvent()
391 if (!mEvents.isEmpty() && eventType == TYPE_VIEW_DISAPPEARED) { in sendEvent()
392 final ContentCaptureEvent lastEvent = mEvents.get(mEvents.size() - 1); in sendEvent()
405 mEvents.add(event); in sendEvent()
413 final int numberEvents = mEvents.size(); in sendEvent()
[all …]
/frameworks/base/core/tests/coretests/src/android/metrics/
DMetricsReaderTest.java37 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/
DUsageLogActivity.java75 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/
DMtpDeviceInfo.cpp33 mEvents(NULL), in MtpDeviceInfo()
48 delete mEvents; in ~MtpDeviceInfo()
77 mEvents = packet.getAUInt16(); in read()
78 if (!mEvents) return false; in read()
DMtpDeviceInfo.h34 UInt16List* mEvents; variable
/frameworks/base/core/java/android/service/autofill/
DFillEventHistory.java71 @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/base/services/accessibility/java/com/android/server/accessibility/gestures/
DGestureManifold.java110 private List<MotionEvent> mEvents = new ArrayList<>(); field in GestureManifold
238 mEvents.add(MotionEvent.obtainNoHistory(rawEvent)); in onMotionEvent()
264 if (mEvents != null) { in clear()
265 while (mEvents.size() > 0) { in clear()
266 mEvents.remove(0).recycle(); in clear()
354 new AccessibilityGestureEvent(gestureId, event.getDisplayId(), mEvents); in onGestureCompleted()
363 new AccessibilityGestureEvent(gestureId, event.getDisplayId(), mEvents); in onGestureCompleted()
371 new AccessibilityGestureEvent(gestureId, event.getDisplayId(), mEvents); in onGestureCompleted()
423 while (mEvents.size() > 0) { in setSendMotionEventsEnabled()
424 mEvents.remove(0).recycle(); in setSendMotionEventsEnabled()
[all …]
/frameworks/base/services/core/java/com/android/server/trust/
DTrustArchive.java71 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/tests/servicestests/src/com/android/server/accessibility/
DAccessibilityInputFilterTest.java106 List<InputEvent> mEvents = new ArrayList<>(); field in AccessibilityInputFilterTest.EventCaptor
110 mEvents.add(event.copy()); in onMotionEvent()
115 mEvents.add(event.copy()); in onKeyEvent()
133 mEvents.clear(); in clear()
238 assertEquals(1, mCaptor1.mEvents.size()); in testInputEvent_shouldDispatchToCorrespondingEventHandlers()
239 assertEquals(1, mCaptor2.mEvents.size()); in testInputEvent_shouldDispatchToCorrespondingEventHandlers()
254 assertEquals(2, mCaptor1.mEvents.size()); in testInputEvent_shouldClearEventsForAllEventHandlers()
259 assertEquals(1, mCaptor1.mEvents.size()); in testInputEvent_shouldClearEventsForAllEventHandlers()
/frameworks/native/services/inputflinger/
DInputClassifier.cpp124 : mEvents(MAX_EVENTS), mService(service) { in MotionClassifier()
129 mEvents.push(ClassifierEvent::createHalResetEvent()); in MotionClassifier()
175 ClassifierEvent event = mEvents.pop(); in processEvents()
217 bool eventAdded = mEvents.push(std::move(event)); in enqueueEvent()
227 mEvents.push(ClassifierEvent::createExitEvent()); in requestExit()
282 mEvents.clear(); in reset()
283 mEvents.push(ClassifierEvent::createHalResetEvent()); in reset()
293 mEvents.erase([deviceId](const ClassifierEvent& event) { in reset()
314 mEvents.size(), MAX_EVENTS); in dump()
/frameworks/base/apct-tests/perftests/autofill/src/android/view/autofill/
DMyAutofillCallback.java47 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/
DInteraction.java35 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/services/core/java/com/android/server/connectivity/
DDefaultNetworkMetrics.java46 private final List<DefaultNetworkEvent> mEvents = new ArrayList<>(); field in DefaultNetworkMetrics
98 for (DefaultNetworkEvent ev : mEvents) { in flushEvents()
101 mEvents.clear(); in flushEvents()
156 mEvents.add(ev); in logCurrentDefaultNetwork()
/frameworks/base/services/core/java/com/android/server/display/
DHighBrightnessModeController.java99 private LinkedList<HbmEvent> mEvents = new LinkedList<>(); field in HighBrightnessModeController
201 mEvents.addFirst(new HbmEvent(mRunningStartTimeMillis, currentTime)); in onBrightnessChanged()
205 Slog.d(TAG, "New HBM event: " + mEvents.getFirst()); in onBrightnessChanged()
282 for (HbmEvent event : mEvents) { in dumpLocal()
343 Iterator<HbmEvent> it = mEvents.iterator(); in calculateRemainingTime()
384 } else if (!mIsTimeAvailable && mEvents.size() > 0) { in recalculateTimeAllowance()
389 final HbmEvent lastEvent = mEvents.getLast(); in recalculateTimeAllowance()
414 + ", events: " + mEvents); in recalculateTimeAllowance()
DBrightnessTracker.java144 private RingBuffer<BrightnessChangeEvent> mEvents field in BrightnessTracker
282 events = mEvents.toArray(); in getEvents()
427 mEvents.append(event); in handleBrightnessChanged()
472 if (mEvents.isEmpty()) { in writeEvents()
512 mEvents.clear(); in readEvents()
554 BrightnessChangeEvent[] toWrite = mEvents.toArray(); in writeEventsLocked()
556 mEvents.clear(); in writeEventsLocked()
564 mEvents.append(toWrite[i]); in writeEventsLocked()
721 mEvents.append(event); in readEventsLocked()
728 mEvents = new RingBuffer<>(BrightnessChangeEvent.class, MAX_EVENTS); in readEventsLocked()
[all …]
/frameworks/base/telecomm/java/android/telecom/Logging/
DEventManager.java183 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/
DMessageQueue.java241 if (record != null && record.mEvents == events) { in updateOnFileDescriptorEventListenerLocked()
257 record.mEvents = events; in updateOnFileDescriptorEventListenerLocked()
262 record.mEvents = 0; in updateOnFileDescriptorEventListenerLocked()
282 oldWatchedEvents = record.mEvents; in dispatchEvents()
306 record.mEvents = newWatchedEvents; in dispatchEvents()
1033 public int mEvents; field in MessageQueue.FileDescriptorRecord
1040 mEvents = events; in FileDescriptorRecord()
/frameworks/base/media/jni/soundpool/tests/
Dsoundpool_stress.cpp70 return mEvents[soundID] > 0; in getNumberEvents()
101 ++mEvents[event.mArg1]; in callback()
107 std::map<int32_t /* soundID */, int32_t /* count */> mEvents; member in __anonbcb8f30a0111::CallbackManager
/frameworks/base/core/tests/coretests/src/android/hardware/input/
DInputDeviceSensorManagerTest.java117 private final BlockingQueue<SensorEvent> mEvents = new LinkedBlockingQueue<>(); field in InputDeviceSensorManagerTest.InputTestSensorEventListener
124 return mEvents.poll(5, TimeUnit.SECONDS); in waitForSensorEvent()
135 mEvents.put(event); in onSensorChanged()

12