Home
last modified time | relevance | path

Searched refs:packageData (Results 1 – 10 of 10) sorted by relevance

/frameworks/base/services/people/java/com/android/server/people/data/
DUsageStatsQueryHelper.java50 void onEvent(PackageData packageData, ConversationInfo conversationInfo, Event event); in onEvent() argument
86 PackageData packageData = mPackageDataGetter.apply(packageName); in querySince() local
87 if (packageData == null) { in querySince()
92 addEventByShortcutId(packageData, e.getShortcutId(), in querySince()
96 onInAppConversationEnded(packageData, e); in querySince()
99 if (packageData.getConversationStore().getConversationByLocusId(locusId) in querySince()
110 onInAppConversationEnded(packageData, e); in querySince()
192 private void onInAppConversationEnded(@NonNull PackageData packageData, in onInAppConversationEnded() argument
204 addEventByLocusId(packageData, new LocusId(startEvent.getLocusId()), event); in onInAppConversationEnded()
207 private void addEventByShortcutId(PackageData packageData, String shortcutId, Event event) { in addEventByShortcutId() argument
[all …]
DDataManager.java247 PackageData packageData = userData.getPackageData(packageName); in getConversation() local
249 if (packageData != null) { in getConversation()
250 ConversationInfo conversationInfo = packageData.getConversationInfo(shortcutId); in getConversation()
260 PackageData packageData = userData.getPackageData(packageName); in getConversationInfo() local
262 if (packageData != null) { in getConversationInfo()
263 return packageData.getConversationInfo(shortcutId); in getConversationInfo()
309 forPackagesInProfile(callingUserId, packageData -> { in getRecentConversations()
310 packageData.forAllConversations(conversationInfo -> { in getRecentConversations()
315 ConversationChannel channel = getConversationChannel(packageData.getPackageName(), in getRecentConversations()
316 packageData.getUserId(), shortcutId, conversationInfo); in getRecentConversations()
[all …]
DUserData.java72 for (PackageData packageData : mPackageDataMap.values()) { in forAllPackages()
73 consumer.accept(packageData); in forAllPackages()
118 PackageData packageData = mPackageDataMap.remove(packageName); in deletePackageData() local
119 if (packageData != null) { in deletePackageData()
120 packageData.onDestroy(); in deletePackageData()
146 for (PackageData packageData : mPackageDataMap.values()) { in getBackupPayload()
149 packageData.getConversationStore().getBackupPayload(); in getBackupPayload()
152 out.writeUTF(packageData.getPackageName()); in getBackupPayload()
DPackageData.java94 PackageData packageData = new PackageData(packageDir.getName(), userId, in packagesDataFromDisk() local
97 packageData.loadFromDisk(); in packagesDataFromDisk()
98 results.put(packageDir.getName(), packageData); in packagesDataFromDisk() local
/frameworks/base/services/people/java/com/android/server/people/prediction/
DShareTargetPredictor.java186 PackageData packageData = getDataManager().getPackage(packageName, userId); in getDirectShareTargets() local
190 if (packageData != null) { in getDirectShareTargets()
192 conversationInfo = packageData.getConversationInfo(shortcutId); in getDirectShareTargets()
194 eventHistory = packageData.getEventHistory(shortcutId); in getDirectShareTargets()
206 PackageData packageData = getDataManager().getPackage(target.getPackageName(), in getAppShareTargets() local
209 packageData == null ? null in getAppShareTargets()
210 : packageData.getClassLevelEventHistory(target.getClassName()), null)); in getAppShareTargets()
/frameworks/base/services/robotests/backup/src/com/android/server/backup/keyvalue/
DKeyValueBackupTaskTest.java673 PackageData packageData = fullBackupPackage(1); in testRunTask_whenPackageDoesFullBackup() local
674 AgentMock agentMock = setUpAgentWithData(packageData); in testRunTask_whenPackageDoesFullBackup()
675 KeyValueBackupTask task = createKeyValueBackupTask(transportMock, packageData); in testRunTask_whenPackageDoesFullBackup()
681 verify(mObserver).onResult(packageData.packageName, ERROR_BACKUP_NOT_ALLOWED); in testRunTask_whenPackageDoesFullBackup()
690 PackageData packageData = fullBackupPackage(1); in testRunTask_whenFirstPackageDoesFullBackup_callsTransportForSecondPackage() local
691 setUpAgentsWithData(packageData, PACKAGE_2); in testRunTask_whenFirstPackageDoesFullBackup_callsTransportForSecondPackage()
692 KeyValueBackupTask task = createKeyValueBackupTask(transportMock, packageData, PACKAGE_2); in testRunTask_whenFirstPackageDoesFullBackup_callsTransportForSecondPackage()
1995 final PackageData packageData = PM_PACKAGE; in testRunTask_whenTransportReturnsErrorForPm_updatesFilesAndCleansUp() local
1998 argThat(packageInfo(packageData)), any(), anyInt())) in testRunTask_whenTransportReturnsErrorForPm_updatesFilesAndCleansUp()
2005 KeyValueBackupTask task = createKeyValueBackupTask(transportMock, packageData); in testRunTask_whenTransportReturnsErrorForPm_updatesFilesAndCleansUp()
[all …]
/frameworks/base/services/core/java/com/android/server/signedconfig/
DSignedConfigService.java66 Uri packageData = intent.getData(); in handlePackageBroadcast() local
67 String packageName = packageData == null ? null : packageData.getSchemeSpecificPart(); in handlePackageBroadcast()
/frameworks/base/services/core/java/com/android/server/compat/
DPlatformCompat.java576 final Uri packageData = intent.getData(); in registerPackageReceiver()
577 if (packageData == null) { in registerPackageReceiver()
580 final String packageName = packageData.getSchemeSpecificPart(); in registerPackageReceiver()
/frameworks/base/services/tests/servicestests/src/com/android/server/people/data/
DDataManagerTest.java1044 PackageData packageData = mDataManager.getPackage(TEST_PKG_NAME, USER_ID_PRIMARY); in testConversationLastEventTimestampUpdate() local
1046 packageData.getConversationStore().getConversation(TEST_SHORTCUT_ID); in testConversationLastEventTimestampUpdate()
1049 mInjector.mUsageStatsQueryHelper.mEventListener.onEvent(packageData, conversationInfo, in testConversationLastEventTimestampUpdate()
1052 packageData.getConversationStore().getConversation(TEST_SHORTCUT_ID); in testConversationLastEventTimestampUpdate()
1663 packageData -> packageData.forAllConversations(conversations::add));
1669 mDataManager.forPackagesInProfile(USER_ID_PRIMARY, packageData -> in getActiveSlotsForTestShortcut()
1671 packageData.getEventHistory(TEST_SHORTCUT_ID) in getActiveSlotsForTestShortcut()
1679 mDataManager.forPackagesInProfile(USER_ID_PRIMARY, packageData -> in getActiveSlotsForAppShares()
1681 packageData.getClassLevelEventHistory(TEST_CLASS_NAME) in getActiveSlotsForAppShares()
/frameworks/base/services/core/java/com/android/server/
DVpnManagerService.java732 final Uri packageData = intent.getData();
734 packageData != null ? packageData.getSchemeSpecificPart() : null;