Home
last modified time | relevance | path

Searched refs:getMostRecentActiveTimeSlot (Results 1 – 5 of 5) sorted by relevance

/frameworks/base/services/tests/servicestests/src/com/android/server/people/prediction/
DSharesheetModelScorerTest.java176 when(mEventIndex1.getMostRecentActiveTimeSlot()).thenReturn(WITHIN_ONE_DAY); in testComputeScore()
177 when(mEventIndex2.getMostRecentActiveTimeSlot()).thenReturn(TWO_DAYS_AGO); in testComputeScore()
178 when(mEventIndex3.getMostRecentActiveTimeSlot()).thenReturn(FIVE_DAYS_AGO); in testComputeScore()
179 when(mEventIndex4.getMostRecentActiveTimeSlot()).thenReturn(EIGHT_DAYS_AGO); in testComputeScore()
180 when(mEventIndex5.getMostRecentActiveTimeSlot()).thenReturn(null); in testComputeScore()
227 when(mEventIndex1.getMostRecentActiveTimeSlot()).thenReturn(WITHIN_ONE_DAY); in testComputeScoreForAppShare()
228 when(mEventIndex2.getMostRecentActiveTimeSlot()).thenReturn(TWO_DAYS_AGO); in testComputeScoreForAppShare()
229 when(mEventIndex3.getMostRecentActiveTimeSlot()).thenReturn(FIVE_DAYS_AGO); in testComputeScoreForAppShare()
230 when(mEventIndex4.getMostRecentActiveTimeSlot()).thenReturn(EIGHT_DAYS_AGO); in testComputeScoreForAppShare()
231 when(mEventIndex5.getMostRecentActiveTimeSlot()).thenReturn(null); in testComputeScoreForAppShare()
[all …]
DShareTargetPredictorTest.java139 when(mEventIndex1.getMostRecentActiveTimeSlot()).thenReturn(new Range<>(1L, 2L)); in testPredictTargets()
140 when(mEventIndex2.getMostRecentActiveTimeSlot()).thenReturn(new Range<>(2L, 3L)); in testPredictTargets()
141 when(mEventIndex3.getMostRecentActiveTimeSlot()).thenReturn(new Range<>(3L, 4L)); in testPredictTargets()
201 when(mEventIndex1.getMostRecentActiveTimeSlot()).thenReturn(new Range<>(1L, 2L)); in testPredictTargets_reachTargetsLimit()
202 when(mEventIndex2.getMostRecentActiveTimeSlot()).thenReturn(new Range<>(2L, 3L)); in testPredictTargets_reachTargetsLimit()
203 when(mEventIndex3.getMostRecentActiveTimeSlot()).thenReturn(new Range<>(3L, 4L)); in testPredictTargets_reachTargetsLimit()
204 when(mEventIndex4.getMostRecentActiveTimeSlot()).thenReturn(new Range<>(4L, 5L)); in testPredictTargets_reachTargetsLimit()
205 when(mEventIndex5.getMostRecentActiveTimeSlot()).thenReturn(new Range<>(5L, 6L)); in testPredictTargets_reachTargetsLimit()
206 when(mEventIndex6.getMostRecentActiveTimeSlot()).thenReturn(new Range<>(6L, 7L)); in testPredictTargets_reachTargetsLimit()
325 when(mEventIndex1.getMostRecentActiveTimeSlot()).thenReturn(new Range<>(1L, 2L)); in testSortTargets()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/people/data/
DEventIndexTest.java55 assertNull(mEventIndex.getMostRecentActiveTimeSlot()); in testNoEvents()
67 Range<Long> mostRecentSlot = mEventIndex.getMostRecentActiveTimeSlot(); in testMultipleEvents()
/frameworks/base/services/people/java/com/android/server/people/prediction/
DSharesheetModelScorer.java113 Event.SHARE_EVENT_TYPES).getMostRecentActiveTimeSlot(); in computeScore()
/frameworks/base/services/people/java/com/android/server/people/data/
DEventIndex.java151 public Range<Long> getMostRecentActiveTimeSlot() { in getMostRecentActiveTimeSlot() method in EventIndex