/frameworks/base/services/people/java/com/android/server/people/data/ |
D | EventList.java | 30 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/ |
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() 89 return mEvents.remove(index); in remove() [all …]
|
/frameworks/base/packages/BackupEncryption/src/com/android/server/backup/encryption/keys/ |
D | TertiaryKeyRotationWindowedCount.java | 53 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/ |
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/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/services/core/java/com/android/server/audio/ |
D | AudioEventLogger.java | 29 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/ |
D | MainContentCaptureSession.java | 141 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/ |
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/base/services/accessibility/java/com/android/server/accessibility/gestures/ |
D | GestureManifold.java | 110 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/ |
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/tests/servicestests/src/com/android/server/accessibility/ |
D | AccessibilityInputFilterTest.java | 106 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/ |
D | InputClassifier.cpp | 124 : 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/ |
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/services/core/java/com/android/server/connectivity/ |
D | DefaultNetworkMetrics.java | 46 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/ |
D | HighBrightnessModeController.java | 99 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()
|
D | BrightnessTracker.java | 144 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/ |
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 | 241 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/ |
D | soundpool_stress.cpp | 70 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/ |
D | InputDeviceSensorManagerTest.java | 117 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()
|