/aosp12/frameworks/base/core/tests/coretests/src/android/view/textclassifier/ |
H A D | TextClassifierEventTest.java | 67 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 115 .setEventIndex(eventIndex) in toSelectionEvent_smartSelectionSingle() 127 final int eventIndex = 3; in toSelectionEvent_resetSelection() local 149 .setEventIndex(eventIndex) in toSelectionEvent_resetSelection() 159 final int eventIndex = 4; in toSelectionEvent_modifySelection() local 182 final int eventIndex = 5; in toSelectionEvent_copyAction() local 204 final int eventIndex = 6; in toSelectionEvent_selectionDismissed() local [all …]
|
/aosp12/frameworks/base/services/tests/servicestests/src/com/android/server/people/data/ |
H A D | AggregateEventHistoryImplTest.java | 95 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() 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() 117 eventIndex = mAggEventHistory.getEventIndex(Event.ALL_EVENT_TYPES); in testQueryEventIndexForMultipleEventTypes() [all …]
|
H A D | EventHistoryImplTest.java | 99 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()
|
/aosp12/frameworks/base/services/people/java/com/android/server/people/data/ |
H A D | AggregateEventHistoryImpl.java | 34 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()
|
H A D | EventHistoryImpl.java | 158 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()
|
/aosp12/system/chre/chpp/common/ |
H A D | wifi_utils.c | 36 if (chre->eventIndex != gExpectedIndex) { in chppCheckWifiScanEventNotification() 37 CHPP_LOGE("Unexpected scan index %" PRIu8 " exp %" PRIu8, chre->eventIndex, in chppCheckWifiScanEventNotification() 41 if (chre->eventIndex == 0) { in chppCheckWifiScanEventNotification()
|
H A D | wifi_convert.c | 109 out->eventIndex = in->eventIndex; in chppWifiConvertScanEventFromChre() 375 out->eventIndex = in->eventIndex; in chppWifiConvertScanEventToChre()
|
/aosp12/frameworks/native/libs/gui/include/gui/ |
H A D | FrameTimestamps.h | 188 constexpr size_t eventIndex = static_cast<size_t>(event); in setDirty() local 189 static_assert(eventIndex < FrameEvents::EVENT_COUNT, "Bad index."); in setDirty() 190 mBitset.set(eventIndex); in setDirty() 195 constexpr size_t eventIndex = static_cast<size_t>(event); in isDirty() local 196 static_assert(eventIndex < FrameEvents::EVENT_COUNT, "Bad index."); in isDirty() 197 return mBitset[eventIndex]; in isDirty()
|
/aosp12/system/chre/pal/util/ |
H A D | wifi_scan_cache.c | 126 gWifiCacheState.event.eventIndex = 0; in chreWifiScanCacheDispatchAll() 131 uint8_t eventIndex = 0; in chreWifiScanCacheDispatchAll() local 137 gWifiCacheState.event.eventIndex = eventIndex++; in chreWifiScanCacheDispatchAll()
|
/aosp12/system/chre/chpp/test/ |
H A D | wifi_convert_test.cpp | 83 EXPECT_EQ(chppEvent->eventIndex, chreEvent.eventIndex); in validateScanEvent() 94 EXPECT_EQ(backEvent->eventIndex, chreEvent.eventIndex); in validateScanEvent() 349 .eventIndex = 0, in TEST() 386 .eventIndex = 2, in TEST() 444 .eventIndex = 1, in TEST()
|
/aosp12/system/chre/pal/util/tests/ |
H A D | wifi_scan_cache_test.cc | 110 EXPECT_EQ(event->eventIndex, gExpectedWifiScanEvent->eventIndex); in chreWifiScanEventCallback() 111 gExpectedWifiScanEvent->eventIndex++; in chreWifiScanEventCallback() 194 gExpectedWifiScanEvent->eventIndex = 0; in testCacheDispatch()
|
/aosp12/system/chre/pal/tests/src/ |
H A D | wifi_pal_impl_test.cc | 166 EXPECT_EQ(event.eventIndex, static_cast<uint8_t>(lastEventIndex_ + 1)); in validateWifiScanEvent() 221 lastEventIndex_ = event->eventIndex; in TEST_F()
|
/aosp12/system/chre/apps/test/chqts/src/general_test/ |
H A D | basic_wifi_test.cc | 497 if (mNextExpectedIndex != eventData->eventIndex) { in validateWifiScanEvent() 500 mNextExpectedIndex, eventData->eventIndex); in validateWifiScanEvent() 505 if (eventData->eventIndex == 0) { in validateWifiScanEvent()
|
/aosp12/system/chre/chre_api/legacy/v1_1/chre/ |
H A D | wifi.h | 389 uint8_t eventIndex; member
|
/aosp12/system/chre/chpp/include/chpp/common/ |
H A D | wifi_types.h | 119 uint8_t eventIndex; member
|
/aosp12/system/chre/chre_api/include/chre_api/chre/ |
H A D | wifi.h | 595 uint8_t eventIndex; member
|
/aosp12/system/chre/chre_api/legacy/v1_2/chre/ |
H A D | wifi.h | 537 uint8_t eventIndex; member
|
/aosp12/system/chre/chre_api/legacy/v1_3/chre/ |
H A D | wifi.h | 537 uint8_t eventIndex; member
|
/aosp12/system/chre/chre_api/legacy/v1_4/chre/ |
H A D | wifi.h | 537 uint8_t eventIndex; member
|
/aosp12/frameworks/base/core/java/android/view/textclassifier/ |
H A D | TextClassifierEvent.java | 588 public T setEventIndex(int eventIndex) { in setEventIndex() argument 589 mEventIndex = eventIndex; in setEventIndex()
|
/aosp12/system/chre/apps/test/common/chre_stress_test/src/ |
H A D | chre_stress_test_manager.cc | 314 if (event->eventIndex == 0) { in handleWifiScanEvent()
|