Home
last modified time | relevance | path

Searched refs:eventIndex (Results 1 – 8 of 8) sorted by relevance

/frameworks/base/services/tests/servicestests/src/com/android/server/people/data/
DAggregateEventHistoryImplTest.java95 EventIndex eventIndex; in testQueryEventIndexForSingleEventType() local
97 eventIndex = mAggEventHistory.getEventIndex(Event.TYPE_NOTIFICATION_OPENED); in testQueryEventIndexForSingleEventType()
98 assertEquals(2, eventIndex.getActiveTimeSlots().size()); in testQueryEventIndexForSingleEventType()
100 eventIndex = mAggEventHistory.getEventIndex(Event.TYPE_SMS_OUTGOING); in testQueryEventIndexForSingleEventType()
101 assertEquals(1, eventIndex.getActiveTimeSlots().size()); in testQueryEventIndexForSingleEventType()
103 eventIndex = mAggEventHistory.getEventIndex(Event.TYPE_SHORTCUT_INVOCATION); in testQueryEventIndexForSingleEventType()
104 assertTrue(eventIndex.isEmpty()); in testQueryEventIndexForSingleEventType()
112 EventIndex eventIndex; in testQueryEventIndexForMultipleEventTypes() local
114 eventIndex = mAggEventHistory.getEventIndex(Event.SMS_EVENT_TYPES); in testQueryEventIndexForMultipleEventTypes()
115 assertEquals(2, eventIndex.getActiveTimeSlots().size()); in testQueryEventIndexForMultipleEventTypes()
[all …]
DEventHistoryImplTest.java99 EventIndex eventIndex = mEventHistory.getEventIndex(Event.ALL_EVENT_TYPES); in testNoEvents() local
100 assertTrue(eventIndex.isEmpty()); in testNoEvents()
113 EventIndex eventIndex = mEventHistory.getEventIndex(Event.ALL_EVENT_TYPES); in testMultipleEvents() local
114 assertEquals(4, eventIndex.getActiveTimeSlots().size()); in testMultipleEvents()
127 EventIndex eventIndex = mEventHistory.getEventIndex(Event.NOTIFICATION_EVENT_TYPES); in testQuerySomeEventTypes() local
128 assertEquals(2, eventIndex.getActiveTimeSlots().size()); in testQuerySomeEventTypes()
142 EventIndex eventIndex = mEventHistory.getEventIndex(Event.TYPE_SHARE_IMAGE); in testQuerySingleEventType() local
143 assertEquals(1, eventIndex.getActiveTimeSlots().size()); in testQuerySingleEventType()
/frameworks/base/core/tests/coretests/src/android/view/textclassifier/
DTextClassifierEventTest.java67 final int eventIndex = 1; in toSelectionEvent_smartSelectionMulti() local
74 expected.setEventIndex(eventIndex); in toSelectionEvent_smartSelectionMulti()
86 .setEventIndex(eventIndex) in toSelectionEvent_smartSelectionMulti()
96 final int eventIndex = 2; in toSelectionEvent_smartSelectionSingle() local
103 expected.setEventIndex(eventIndex); in toSelectionEvent_smartSelectionSingle()
115 .setEventIndex(eventIndex) in toSelectionEvent_smartSelectionSingle()
127 final int eventIndex = 3; in toSelectionEvent_resetSelection() local
135 expected.setEventIndex(eventIndex); in toSelectionEvent_resetSelection()
149 .setEventIndex(eventIndex) in toSelectionEvent_resetSelection()
159 final int eventIndex = 4; in toSelectionEvent_modifySelection() local
[all …]
/frameworks/base/services/people/java/com/android/server/people/data/
DAggregateEventHistoryImpl.java34 EventIndex eventIndex = eventHistory.getEventIndex(eventType); in getEventIndex() local
35 if (!eventIndex.isEmpty()) { in getEventIndex()
36 return eventIndex; in getEventIndex()
47 EventIndex eventIndex = eventHistory.getEventIndex(eventTypes); in getEventIndex() local
49 merged = eventIndex; in getEventIndex()
50 } else if (!eventIndex.isEmpty()) { in getEventIndex()
51 merged = EventIndex.combine(merged, eventIndex); in getEventIndex()
62 EventIndex eventIndex = eventHistory.getEventIndex(eventTypes); in queryEvents() local
63 if (eventIndex.isEmpty()) { in queryEvents()
DEventHistoryImpl.java158 EventIndex eventIndex = mEventIndexArray.get(eventType); in getEventIndex() local
159 return eventIndex != null ? new EventIndex(eventIndex) : mInjector.createEventIndex(); in getEventIndex()
167 EventIndex eventIndex = mEventIndexArray.get(eventType); in getEventIndex() local
168 if (eventIndex != null) { in getEventIndex()
169 combined = EventIndex.combine(combined, eventIndex); in getEventIndex()
207 EventIndex eventIndex = mEventIndexArray.get(event.getType()); in addEventInMemory() local
208 if (eventIndex == null) { in addEventInMemory()
209 eventIndex = mInjector.createEventIndex(); in addEventInMemory()
210 mEventIndexArray.put(event.getType(), eventIndex); in addEventInMemory() local
212 eventIndex.addEvent(event.getTimestamp()); in addEventInMemory()
/frameworks/native/libs/gui/include/gui/
DFrameTimestamps.h175 constexpr size_t eventIndex = static_cast<size_t>(event); in setDirty() local
176 static_assert(eventIndex < FrameEvents::EVENT_COUNT, "Bad index."); in setDirty()
177 mBitset.set(eventIndex); in setDirty()
182 constexpr size_t eventIndex = static_cast<size_t>(event); in isDirty() local
183 static_assert(eventIndex < FrameEvents::EVENT_COUNT, "Bad index."); in isDirty()
184 return mBitset[eventIndex]; in isDirty()
/frameworks/base/core/java/android/view/textclassifier/
DTextClassifierEvent.java588 public T setEventIndex(int eventIndex) { in setEventIndex() argument
589 mEventIndex = eventIndex; in setEventIndex()
/frameworks/base/tools/aapt2/integration-tests/CommandTests/
Dandroid-33.jarAndroidManifest.xml META-INF/ META-INF/MANIFEST.MF NOTICES/ NOTICES/libcore ...