/frameworks/base/services/tests/servicestests/src/com/android/server/people/data/ |
D | DataManagerTest.java | 136 private DataManager mDataManager; field in DataManagerTest 210 mDataManager = new DataManager(mContext, mInjector); in setUp() 211 mDataManager.initialize(); in setUp() 232 mDataManager.onUserUnlocked(USER_ID_PRIMARY); in testAccessConversationFromTheSameProfileGroup() 233 mDataManager.onUserUnlocked(USER_ID_PRIMARY_MANAGED); in testAccessConversationFromTheSameProfileGroup() 234 mDataManager.onUserUnlocked(USER_ID_SECONDARY); in testAccessConversationFromTheSameProfileGroup() 236 mDataManager.addOrUpdateConversationInfo( in testAccessConversationFromTheSameProfileGroup() 239 mDataManager.addOrUpdateConversationInfo( in testAccessConversationFromTheSameProfileGroup() 242 mDataManager.addOrUpdateConversationInfo( in testAccessConversationFromTheSameProfileGroup() 265 mDataManager.onUserUnlocked(USER_ID_PRIMARY); in testAccessConversationForUnlockedUsersOnly() [all …]
|
/frameworks/base/services/people/java/com/android/server/people/ |
D | PeopleService.java | 49 private final DataManager mDataManager; field in PeopleService 59 mDataManager = new DataManager(context); in PeopleService() 65 mDataManager.initialize(); in onBootPhase() 76 mDataManager.onUserUnlocked(user.getUserIdentifier()); in onUserUnlocked() 81 mDataManager.onUserStopping(user.getUserIdentifier()); in onUserStopping() 92 mSessions.put(sessionId, new SessionInfo(context, mDataManager, sessionId.getUserId())); in onCreatePredictionSession() 146 mDataManager.pruneDataForUser(userId, signal); in pruneDataForUser() 152 return mDataManager.getBackupPayload(userId); in getBackupPayload() 157 mDataManager.restore(userId, payload); in restore()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/people/prediction/ |
D | SharesheetModelScorerTest.java | 85 private DataManager mDataManager; field in SharesheetModelScorerTest 249 Event.TYPE_SHARE_TEXT, 20, NOW, mDataManager, USER_ID); in testComputeScoreForAppShare() local 272 when(mDataManager.queryAppUsageStats(anyInt(), anyLong(), anyLong(), anySet())) in testComputeScoreForAppShare_promoteFrequentlyChosenApps() 281 Event.TYPE_SHARE_TEXT, 20, NOW, mDataManager, USER_ID); in testComputeScoreForAppShare_promoteFrequentlyChosenApps() local 283 verify(mDataManager, times(1)).queryAppUsageStats(anyInt(), anyLong(), anyLong(), in testComputeScoreForAppShare_promoteFrequentlyChosenApps() 305 when(mDataManager.queryAppUsageStats(anyInt(), anyLong(), anyLong(), anySet())) in testComputeScoreForAppShare_promoteFrequentlyUsedApps() 314 Event.TYPE_SHARE_TEXT, 20, NOW, mDataManager, USER_ID); in testComputeScoreForAppShare_promoteFrequentlyUsedApps() local 316 verify(mDataManager, times(1)).queryAppUsageStats(anyInt(), anyLong(), anyLong(), in testComputeScoreForAppShare_promoteFrequentlyUsedApps() 343 when(mDataManager.queryAppUsageStats(anyInt(), anyLong(), anyLong(), anySet())) in testComputeScoreForAppShare_skipPromoteFrequentlyUsedAppsWhenReachesLimit() 352 Event.TYPE_SHARE_TEXT, 4, NOW, mDataManager, USER_ID); in testComputeScoreForAppShare_skipPromoteFrequentlyUsedAppsWhenReachesLimit() local [all …]
|
D | ShareTargetPredictorTest.java | 76 @Mock private DataManager mDataManager; field in ShareTargetPredictorTest 102 when(mDataManager.getShareShortcuts(any(), anyInt())).thenReturn(mShareShortcuts); in setUp() 103 when(mDataManager.getPackage(PACKAGE_1, USER_ID)).thenReturn(mPackageData1); in setUp() 104 when(mDataManager.getPackage(PACKAGE_2, USER_ID)).thenReturn(mPackageData2); in setUp() 115 predictionContext, mUpdatePredictionsMethod, mDataManager, USER_ID); in setUp() 243 predictionContext, mUpdatePredictionsMethod, mDataManager, USER_ID); in testPredictTargets_nullIntentFilter() 249 verify(mDataManager, never()).getShareShortcuts(any(), anyInt()); in testPredictTargets_nullIntentFilter() 315 when(mDataManager.getPackage(PACKAGE_3, USER_ID)).thenReturn(null); in testSortTargets() 352 predictionContext, mUpdatePredictionsMethod, mDataManager, USER_ID); in testSortTargets_nullIntentFilter() 375 verify(mDataManager, never()).getPackage(any(), anyInt()); in testSortTargets_nullIntentFilter()
|
/frameworks/base/services/people/java/com/android/server/people/prediction/ |
D | AppTargetPredictor.java | 57 private final DataManager mDataManager; field in AppTargetPredictor 66 mDataManager = dataManager; in AppTargetPredictor() 132 return mDataManager; in getDataManager()
|