Searched refs:mEvents (Results 1 - 20 of 20) sorted by relevance

/frameworks/base/core/java/android/app/usage/
H A DEventList.java29 private final ArrayList<UsageEvents.Event> mEvents; field in class:EventList
35 mEvents = new ArrayList<>();
43 return mEvents.size();
50 mEvents.clear();
59 return mEvents.get(index);
69 final int size = mEvents.size();
71 if (size == 0 || event.mTimeStamp >= mEvents.get(size - 1).mTimeStamp) {
72 mEvents.add(event);
78 mEvents.add(insertIndex, event);
90 final int size = mEvents
[all...]
/frameworks/base/services/core/java/com/android/server/audio/
H A DAudioEventLogger.java29 private final LinkedList<Event> mEvents; field in class:AudioEventLogger
97 mEvents = new LinkedList<Event>();
103 if (mEvents.size() >= mMemSize) {
104 mEvents.removeFirst();
106 mEvents.add(evt);
111 for (Event evt : mEvents) {
/frameworks/support/v7/recyclerview/src/test/java/androidx/recyclerview/widget/
H A DSortedListTest.java60 List<Event> mEvents = new ArrayList<>(); field in class:SortedListTest
90 mEvents.add(new Event(TYPE.ADD, position, count));
100 mEvents.add(new Event(TYPE.REMOVE, position, count));
107 mEvents.add(new Event(TYPE.MOVE, fromPosition, toPosition));
113 mEvents.add(new Event(TYPE.CHANGE, position, count));
946 mEvents.clear();
950 assertEquals(0, mEvents.size());
959 mEvents.clear();
970 assertEquals(new Event(TYPE.REMOVE, 0, 1), mEvents.get(0));
971 assertEquals(new Event(TYPE.ADD, 0, 1), mEvents
[all...]
/frameworks/base/core/tests/coretests/src/android/metrics/
H A DMetricsReaderTest.java35 MetricsReader.Event[] mEvents; field in class:MetricsReaderTest.FakeLogReader
39 mEvents = new MetricsReader.Event[FULL_N];
41 mEvents[i] = new MetricsReader.Event(
52 for (int i = 0; i < mEvents.length; i++) {
53 events.add(mEvents[i]);
60 mEvents[i].setData(new LogMaker(MetricsEvent.METRICS_CHECKPOINT)
/frameworks/av/media/mtp/
H A DMtpDeviceInfo.cpp33 mEvents(NULL),
48 delete mEvents;
77 mEvents = packet.getAUInt16();
78 if (!mEvents) return false;
H A DMtpDeviceInfo.h34 UInt16List* mEvents; member in class:android::MtpDeviceInfo
/frameworks/base/core/java/android/animation/
H A DAnimatorSet.java87 private ArrayList<AnimationEvent> mEvents = new ArrayList<>(); field in class: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
[all...]
/frameworks/base/tests/UsageStatsTest/src/com/android/tests/usagestats/
H A DUsageLogActivity.java74 private final CircularArray<UsageEvents.Event> mEvents = new CircularArray<>(MAX_EVENTS); field in class:UsageLogActivity.Adapter
82 if (mEvents.size() == MAX_EVENTS) {
83 mEvents.popLast();
85 mEvents.addFirst(event);
96 return mEvents.size();
101 return mEvents.get(position);
/frameworks/base/core/java/android/service/autofill/
H A DFillEventHistory.java71 @Nullable List<Event> mEvents; field in class:FillEventHistory
99 return mEvents;
106 if (mEvents == null) {
107 mEvents = new ArrayList<>(1);
109 mEvents.add(event);
122 return mEvents == null ? "no events" : mEvents.toString();
133 if (mEvents == null) {
136 parcel.writeInt(mEvents.size());
138 int numEvents = mEvents
[all...]
/frameworks/native/services/surfaceflinger/
H A DMessageQueue.cpp98 mEvents = eventThread->createEventConnection();
99 mEvents->stealReceiveChannel(&mEventTube);
137 mEvents->requestNextVsync();
H A DMessageQueue.h117 sp<IDisplayEventConnection> mEvents; member in class:android::impl::final
/frameworks/base/services/core/java/com/android/server/connectivity/
H A DDefaultNetworkMetrics.java44 private final List<DefaultNetworkEvent> mEvents = new ArrayList<>(); field in class:DefaultNetworkMetrics
91 for (DefaultNetworkEvent ev : mEvents) {
94 mEvents.clear();
141 mEvents.add(ev);
/frameworks/base/tests/JankBench/app/src/main/java/com/android/benchmark/ui/automation/
H A DInteraction.java35 private List<MotionEvent> mEvents; field in class:Interaction
87 mEvents = createInterpolatedEventList(mXPositions, mYPositions, mDuration);
92 mEvents = createInterpolatedEventList(mXPositions, mYPositions, mDuration);
96 return mEvents;
/frameworks/base/services/core/java/com/android/server/trust/
H A DTrustArchive.java71 ArrayDeque<Event> mEvents = new ArrayDeque<Event>(); field in class:TrustArchive
108 if (mEvents.size() >= HISTORY_LIMIT) {
109 mEvents.removeFirst();
111 mEvents.addLast(e);
117 Iterator<Event> iter = mEvents.descendingIterator();
/frameworks/base/telecomm/java/android/telecom/Logging/
H A DEventManager.java183 private final List<Event> mEvents = new LinkedList<>(); field in class:EventManager.EventRecord
195 mEvents.add(new Event(event, sessionId, System.currentTimeMillis(), data));
200 return mEvents;
204 if (mEvents == null) {
210 for (Event event : mEvents) {
236 for (Event event : mEvents) {
/frameworks/base/services/core/java/com/android/server/display/
H A DBrightnessTracker.java121 // Lock held while accessing mEvents, is held while writing events to flash.
124 private RingBuffer<BrightnessChangeEvent> mEvents field in class:BrightnessTracker
245 events = mEvents.toArray();
378 mEvents.append(event);
423 if (mEvents.isEmpty()) {
437 Slog.e(TAG, "Failed to write change mEvents.", e);
463 mEvents.clear();
472 Slog.e(TAG, "Failed to read change mEvents.", e);
506 BrightnessChangeEvent[] toWrite = mEvents.toArray();
508 mEvents
[all...]
/frameworks/base/core/java/android/os/
H A DMessageQueue.java234 if (record != null && record.mEvents == events) {
250 record.mEvents = events;
255 record.mEvents = 0;
274 oldWatchedEvents = record.mEvents;
298 record.mEvents = newWatchedEvents;
899 public int mEvents; field in class:MessageQueue.FileDescriptorRecord
906 mEvents = events;
/frameworks/base/services/accessibility/java/com/android/server/accessibility/
H A DTouchExplorer.java1134 private final List<MotionEvent> mEvents = new ArrayList<MotionEvent>(); field in class:TouchExplorer.SendHoverEnterAndMoveDelayed
1149 mEvents.add(MotionEvent.obtain(event));
1166 final int eventCount = mEvents.size();
1168 mEvents.remove(i).recycle();
1183 if (!mEvents.isEmpty()) {
1185 sendMotionEvent(mEvents.get(0), MotionEvent.ACTION_HOVER_ENTER,
1193 final int eventCount = mEvents.size();
1195 sendMotionEvent(mEvents.get(i), MotionEvent.ACTION_HOVER_MOVE,
/frameworks/base/media/jni/
H A Dandroid_mtp_MtpDevice.cpp266 assert(deviceInfo->mEvents);
268 const size_t size = deviceInfo->mEvents->size();
277 elements[i] = static_cast<int>(deviceInfo->mEvents->at(i));
/frameworks/native/services/inputflinger/tests/
H A DInputReader_test.cpp396 List<RawEvent> mEvents;
554 mEvents.push_back(event);
562 ASSERT_EQ(size_t(0), mEvents.size())
666 if (mEvents.empty()) {
670 *buffer = *mEvents.begin();
671 mEvents.erase(mEvents.begin());

Completed in 154 milliseconds