Home
last modified time | relevance | path

Searched refs:PackageData (Results 1 – 12 of 12) sorted by relevance

/frameworks/base/services/robotests/backup/src/com/android/server/backup/testing/
DPackageData.java27 public class PackageData { class
28 public static final PackageData PM_PACKAGE = new PmPackageData();
30 public static PackageData keyValuePackage(int identifier) { in keyValuePackage()
34 public static PackageData fullBackupPackage(int identifier) { in fullBackupPackage()
39 public static PackageData androidPackage(int identifier) { in androidPackage()
50 private PackageData( in PackageData() method in PackageData
81 public PackageData backupNotAllowed() { in backupNotAllowed()
82 return new PackageData( in backupNotAllowed()
86 public PackageData stopped() { in stopped()
87 return new PackageData(packageName, agentName, backupStatus, true, false, uid); in stopped()
[all …]
/frameworks/base/services/people/java/com/android/server/people/data/
DUserData.java53 private Map<String, PackageData> mPackageDataMap = new ArrayMap<>();
71 void forAllPackages(@NonNull Consumer<PackageData> consumer) { in forAllPackages()
72 for (PackageData packageData : mPackageDataMap.values()) { in forAllPackages()
92 Map<String, PackageData> packageDataMap = PackageData.packagesDataFromDisk( in loadUserData()
103 PackageData getOrCreatePackageData(String packageName) { in getOrCreatePackageData()
112 PackageData getPackageData(@NonNull String packageName) { in getPackageData()
118 PackageData packageData = mPackageDataMap.remove(packageName); in deletePackageData()
129 PackageData getDefaultDialer() { in getDefaultDialer()
138 PackageData getDefaultSmsApp() { in getDefaultSmsApp()
146 for (PackageData packageData : mPackageDataMap.values()) { in getBackupPayload()
[all …]
DUsageStatsQueryHelper.java43 private final Function<String, PackageData> mPackageDataGetter;
50 void onEvent(PackageData packageData, ConversationInfo conversationInfo, Event event); in onEvent()
59 Function<String, PackageData> packageDataGetter, EventListener eventListener) { in UsageStatsQueryHelper()
86 PackageData packageData = mPackageDataGetter.apply(packageName); in querySince()
192 private void onInAppConversationEnded(@NonNull PackageData packageData, in onInAppConversationEnded()
207 private void addEventByShortcutId(PackageData packageData, String shortcutId, Event event) { in addEventByShortcutId()
219 private void addEventByLocusId(PackageData packageData, LocusId locusId, Event event) { in addEventByLocusId()
DPackageData.java41 public class PackageData { class
60 PackageData(@NonNull String packageName, @UserIdInt int userId, in PackageData() method in PackageData
83 static Map<String, PackageData> packagesDataFromDisk(@UserIdInt int userId, in packagesDataFromDisk()
88 Map<String, PackageData> results = new ArrayMap<>(); in packagesDataFromDisk()
94 PackageData packageData = new PackageData(packageDir.getName(), userId, in packagesDataFromDisk()
DDataManager.java199 void forPackagesInProfile(@UserIdInt int callingUserId, Consumer<PackageData> consumer) { in forPackagesInProfile()
211 public PackageData getPackage(@NonNull String packageName, @UserIdInt int userId) { in getPackage()
247 PackageData packageData = userData.getPackageData(packageName); in getConversation()
260 PackageData packageData = userData.getPackageData(packageName); in getConversationInfo()
408 final PackageData packageData = getPackage(packageName, userId); in getLastInteraction()
471 final PackageData packageData = getPackage(packageName, userId); in getConversationStoreOrThrow()
506 PackageData packageData = userData.getOrCreatePackageData(appTarget.getPackageName()); in reportShareTargetEvent()
796 private PackageData getPackageIfConversationExists(StatusBarNotification sbn, in getPackageIfConversationExists()
803 PackageData packageData = getPackage(sbn.getPackageName(), in getPackageIfConversationExists()
896 PackageData packageData = userData.getOrCreatePackageData(shortcutInfo.getPackage()); in addOrUpdateConversationInfo()
[all …]
/frameworks/base/services/people/java/com/android/server/people/prediction/
DShareTargetPredictor.java50 import com.android.server.people.data.PackageData;
186 PackageData packageData = getDataManager().getPackage(packageName, userId); in getDirectShareTargets()
206 PackageData packageData = getDataManager().getPackage(target.getPackageName(), in getAppShareTargets()
/frameworks/base/services/robotests/backup/src/com/android/server/backup/keyvalue/
DKeyValueBackupTaskTest.java31 import static com.android.server.backup.testing.PackageData.PM_PACKAGE;
32 import static com.android.server.backup.testing.PackageData.fullBackupPackage;
33 import static com.android.server.backup.testing.PackageData.keyValuePackage;
119 import com.android.server.backup.testing.PackageData;
185 private static final PackageData PACKAGE_1 = keyValuePackage(1);
186 private static final PackageData PACKAGE_2 = keyValuePackage(2);
673 PackageData packageData = fullBackupPackage(1); in testRunTask_whenPackageDoesFullBackup()
690 PackageData packageData = fullBackupPackage(1); in testRunTask_whenFirstPackageDoesFullBackup_callsTransportForSecondPackage()
1995 final PackageData packageData = PM_PACKAGE; in testRunTask_whenTransportReturnsErrorForPm_updatesFilesAndCleansUp()
2597 private Path getStateFile(TransportData transport, PackageData packageData) { in getStateFile()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/people/data/
DPackageDataTest.java55 private PackageData mPackageData;
62 mPackageData = new PackageData( in setUp()
DUsageStatsQueryHelperTest.java347 private static class TestPackageData extends PackageData {
DDataManagerTest.java1044 PackageData packageData = mDataManager.getPackage(TEST_PKG_NAME, USER_ID_PRIMARY); in testConversationLastEventTimestampUpdate()
1926 Function<String, PackageData> packageDataGetter, in TestUsageStatsQueryHelper()
1980 Function<String, PackageData> packageDataGetter, in createUsageStatsQueryHelper()
/frameworks/base/services/tests/servicestests/src/com/android/server/people/prediction/
DShareTargetPredictorTest.java54 import com.android.server.people.data.PackageData;
92 @Mock private PackageData mPackageData1;
93 @Mock private PackageData mPackageData2;
/frameworks/base/services/
Dart-wear-profile16996 …ataManager$UsageStatsQueryRunnable;ILjava/lang/String;)Lcom/android/server/people/data/PackageData;
16999 …eStatsQueryRunnable;->lambda$new$0(ILjava/lang/String;)Lcom/android/server/people/data/PackageData;
17004 …on/StatusBarNotification;Ljava/util/function/Consumer;)Lcom/android/server/people/data/PackageData;
17008 …ople/data/DataManager;->getPackage(Ljava/lang/String;I)Lcom/android/server/people/data/PackageData;
17009 …on/StatusBarNotification;Ljava/util/function/Consumer;)Lcom/android/server/people/data/PackageData;
17019 PLcom/android/server/people/data/PackageData;->packagesDataFromDisk(ILjava/util/function/Predicate;…
17030 …ople/data/UserData;->getPackageData(Ljava/lang/String;)Lcom/android/server/people/data/PackageData;