Home
last modified time | relevance | path

Searched refs:getActiveTimeSlots (Results 1 – 7 of 7) sorted by relevance

/aosp14/frameworks/base/services/tests/servicestests/src/com/android/server/people/data/
H A DEventIndexTest.java56 assertTrue(mEventIndex.getActiveTimeSlots().isEmpty()); in testNoEvents()
71 List<Range<Long>> slots = mEventIndex.getActiveTimeSlots(); in testMultipleEvents()
84 slots = mEventIndex.getActiveTimeSlots(); in testBitmapShift()
90 slots = mEventIndex.getActiveTimeSlots(); in testBitmapShift()
96 slots = mEventIndex.getActiveTimeSlots(); in testBitmapShift()
102 slots = mEventIndex.getActiveTimeSlots(); in testBitmapShift()
108 slots = mEventIndex.getActiveTimeSlots(); in testBitmapShift()
120 List<Range<Long>> slots = mEventIndex.getActiveTimeSlots(); in testCopyConstructor()
123 List<Range<Long>> newSlots = newIndex.getActiveTimeSlots(); in testCopyConstructor()
145 List<Range<Long>> slots = combined.getActiveTimeSlots(); in combineEventIndexes()
H A DAggregateEventHistoryImplTest.java98 assertEquals(2, eventIndex.getActiveTimeSlots().size()); in testQueryEventIndexForSingleEventType()
101 assertEquals(1, eventIndex.getActiveTimeSlots().size()); in testQueryEventIndexForSingleEventType()
115 assertEquals(2, eventIndex.getActiveTimeSlots().size()); in testQueryEventIndexForMultipleEventTypes()
118 assertEquals(4, eventIndex.getActiveTimeSlots().size()); in testQueryEventIndexForMultipleEventTypes()
H A DEventHistoryImplTest.java114 assertEquals(4, eventIndex.getActiveTimeSlots().size()); in testMultipleEvents()
128 assertEquals(2, eventIndex.getActiveTimeSlots().size()); in testQuerySomeEventTypes()
143 assertEquals(1, eventIndex.getActiveTimeSlots().size()); in testQuerySingleEventType()
H A DDataManagerTest.java1673 .getActiveTimeSlots())); in getActiveSlotsForTestShortcut()
1683 .getActiveTimeSlots())); in getActiveSlotsForAppShares()
/aosp14/frameworks/base/services/tests/servicestests/src/com/android/server/people/prediction/
H A DSharesheetModelScorerTest.java169 when(mEventIndex1.getActiveTimeSlots()).thenReturn( in testComputeScore()
173 when(mEventIndex4.getActiveTimeSlots()).thenReturn( in testComputeScore()
175 when(mEventIndex5.getActiveTimeSlots()).thenReturn(List.of()); in testComputeScore()
190 when(mEventIndex6.getActiveTimeSlots()).thenReturn(List.of(TWO_DAYS_AGO)); in testComputeScore()
192 when(mEventIndex8.getActiveTimeSlots()).thenReturn(List.of()); in testComputeScore()
194 when(mEventIndex10.getActiveTimeSlots()).thenReturn(List.of()); in testComputeScore()
220 when(mEventIndex1.getActiveTimeSlots()).thenReturn( in testComputeScoreForAppShare()
224 when(mEventIndex4.getActiveTimeSlots()).thenReturn( in testComputeScoreForAppShare()
226 when(mEventIndex5.getActiveTimeSlots()).thenReturn(List.of()); in testComputeScoreForAppShare()
243 when(mEventIndex8.getActiveTimeSlots()).thenReturn(List.of()); in testComputeScoreForAppShare()
[all …]
/aosp14/frameworks/base/services/people/java/com/android/server/people/prediction/
H A DSharesheetModelScorer.java88 Event.SHARE_EVENT_TYPES).getActiveTimeSlots(); in computeScore()
99 shareEventType).getActiveTimeSlots(); in computeScore()
/aosp14/frameworks/base/services/people/java/com/android/server/people/data/
H A DEventIndex.java175 public List<Range<Long>> getActiveTimeSlots() { in getActiveTimeSlots() method in EventIndex