Searched refs:getActiveTimeSlots (Results 1 – 7 of 7) sorted by relevance
/frameworks/base/services/tests/servicestests/src/com/android/server/people/data/ |
D | EventIndexTest.java | 56 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()
|
D | AggregateEventHistoryImplTest.java | 98 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()
|
D | EventHistoryImplTest.java | 114 assertEquals(4, eventIndex.getActiveTimeSlots().size()); in testMultipleEvents() 128 assertEquals(2, eventIndex.getActiveTimeSlots().size()); in testQuerySomeEventTypes() 143 assertEquals(1, eventIndex.getActiveTimeSlots().size()); in testQuerySingleEventType()
|
D | DataManagerTest.java | 831 .getActiveTimeSlots())); in getActiveSlotsForTestShortcut() 841 .getActiveTimeSlots())); in getActiveSlotsForAppShares()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/people/prediction/ |
D | SharesheetModelScorerTest.java | 168 when(mEventIndex1.getActiveTimeSlots()).thenReturn( in testComputeScore() 170 when(mEventIndex2.getActiveTimeSlots()).thenReturn(List.of(TWO_DAYS_AGO, TWELVE_DAYS_AGO)); in testComputeScore() 171 when(mEventIndex3.getActiveTimeSlots()).thenReturn(List.of(FIVE_DAYS_AGO, TWENTY_DAYS_AGO)); in testComputeScore() 172 when(mEventIndex4.getActiveTimeSlots()).thenReturn( in testComputeScore() 174 when(mEventIndex5.getActiveTimeSlots()).thenReturn(List.of()); in testComputeScore() 189 when(mEventIndex6.getActiveTimeSlots()).thenReturn(List.of(TWO_DAYS_AGO)); in testComputeScore() 190 when(mEventIndex7.getActiveTimeSlots()).thenReturn(List.of(TWO_DAYS_AGO, TWELVE_DAYS_AGO)); in testComputeScore() 191 when(mEventIndex8.getActiveTimeSlots()).thenReturn(List.of()); in testComputeScore() 192 when(mEventIndex9.getActiveTimeSlots()).thenReturn(List.of(EIGHT_DAYS_AGO)); in testComputeScore() 193 when(mEventIndex10.getActiveTimeSlots()).thenReturn(List.of()); in testComputeScore() [all …]
|
/frameworks/base/services/people/java/com/android/server/people/prediction/ |
D | SharesheetModelScorer.java | 91 Event.SHARE_EVENT_TYPES).getActiveTimeSlots(); in computeScore() 102 shareEventType).getActiveTimeSlots(); in computeScore()
|
/frameworks/base/services/people/java/com/android/server/people/data/ |
D | EventIndex.java | 175 public List<Range<Long>> getActiveTimeSlots() { in getActiveTimeSlots() method in EventIndex
|