Home
last modified time | relevance | path

Searched refs:app3 (Results 1 – 14 of 14) sorted by relevance

/packages/apps/Car/Settings/tests/multivalent/src/com/android/car/settings/notifications/
DRecentNotificationsAppsPreferenceControllerTest.java127 UsageEvents.Event app3 = createUsageEvent("pkg.class2", timestamp - 1000); in areEvents_showValidRecents() local
131 events.add(app3); in areEvents_showValidRecents()
140 when(mMockApplicationsState.getEntry(app3.getPackageName(), userId)).thenReturn(null); in areEvents_showValidRecents()
143 new String[] {app1.getPackageName(), app2.getPackageName(), app3.getPackageName()}, in areEvents_showValidRecents()
165 UsageEvents.Event app3 = createUsageEvent("pkg.class2", timestamp - 1000); in areEvents_showMaximumRecents() local
170 events.add(app3); in areEvents_showMaximumRecents()
182 when(mMockApplicationsState.getEntry(app3.getPackageName(), userId)).thenReturn(app3Entry); in areEvents_showMaximumRecents()
186 new String[] {app1.getPackageName(), app2.getPackageName(), app3.getPackageName(), in areEvents_showMaximumRecents()
/packages/modules/AdServices/adservices/tests/unittest/service-core/topics/src/com/android/adservices/service/topics/
DAppUpdateManagerTest.java309 String app3 = "app3"; in testReconcileUninstalledApps_contributorDeletionsToSameTopic() local
330 epoch1, Map.of(app2, List.of(topic1), app3, List.of(topic1))); in testReconcileUninstalledApps_contributorDeletionsToSameTopic()
337 mTopicsDao.persistTopicContributors(epoch1, Map.of(topic1.getTopic(), Set.of(app2, app3))); in testReconcileUninstalledApps_contributorDeletionsToSameTopic()
342 mTopicsDao.persistReturnedAppTopicsMap(epoch1, Map.of(Pair.create(app3, sdk), topic1)); in testReconcileUninstalledApps_contributorDeletionsToSameTopic()
422 String app3 = "app3"; in testDeleteAppDataFromTableByApps() local
437 mTopicsDao.persistAppClassificationTopics(epochId1, Map.of(app3, List.of(topic1))); in testDeleteAppDataFromTableByApps()
440 .isEqualTo(Set.of(app1, app2, app3)); in testDeleteAppDataFromTableByApps()
449 mTopicsDao.recordUsageHistory(epochId1, app3, EMPTY_SDK); in testDeleteAppDataFromTableByApps()
450 mTopicsDao.recordUsageHistory(epochId1, app3, sdk1); in testDeleteAppDataFromTableByApps()
454 .isEqualTo(Set.of(app1, app2, app3)); in testDeleteAppDataFromTableByApps()
[all …]
DTopicsWorkerTest.java1030 String app3 = "app3"; // unhandled installed app in testReconcileApplicationUpdate() local
1060 appInfo3.packageName = app3; in testReconcileApplicationUpdate()
1129 epochId, Map.of(topic.getTopic(), Set.of(app1, app2, app3, app4))); in testReconcileApplicationUpdate()
1211 GetTopicsResult getTopicsResult3 = topicsWorker.getTopics(app3, /* sdk */ ""); in testReconcileApplicationUpdate()
1322 String app3 = "app3"; // negative case to verify scenario of multiple contributors in testHandleAppUninstallation_handleTopTopicsWithoutContributors() local
1354 app3, List.of(topic1, topic2))); in testHandleAppUninstallation_handleTopTopicsWithoutContributors()
1369 topic1.getTopic(), Set.of(app1, app3), in testHandleAppUninstallation_handleTopTopicsWithoutContributors()
1370 topic2.getTopic(), Set.of(app1, app3))); in testHandleAppUninstallation_handleTopTopicsWithoutContributors()
1377 mTopicsDao.recordUsageHistory(epochId2, app3, sdk); in testHandleAppUninstallation_handleTopTopicsWithoutContributors()
1390 Pair.create(app3, sdk), topic2)); in testHandleAppUninstallation_handleTopTopicsWithoutContributors()
[all …]
DEpochManagerTest.java1229 String app3 = "app3"; // an app without classified topics in testComputeTopTopicsToContributorsMap() local
1235 app3, List.of()); in testComputeTopTopicsToContributorsMap()
1263 String app3 = "app3"; in testComputeTopTopicsToContributorsMap_emptyTopTopics() local
1269 app3, List.of()); in testComputeTopTopicsToContributorsMap_emptyTopTopics()
/packages/modules/StatsD/statsd/tests/
DMetricsManager_test.cpp98 string app3 = "app3"; in TEST() local
104 pkgToUids[app3] = app3Uids; in TEST()
135 pullAtomPackages->add_packages(app3); in TEST()
169 string app3 = "app3"; in TEST() local
175 pkgToUids[app3] = app3Uids; in TEST()
203 pullAtomPackages->add_packages(app3); in TEST()
223 pullAtomPackages->add_packages(app3); in TEST()
/packages/modules/HealthFitness/apk/tests/UnsupportedTestApp/src/android/healthconnect/controller/test/app3/
DMainActivity.java17 package android.healthconnect.controller.test.app3;
/packages/apps/Settings/tests/robotests/src/com/android/settings/development/graphicsdriver/
DGraphicsDriverAppPreferenceControllerTest.java319 final ApplicationInfo app3 = buildInfo(uid, APP_3, 0 /* flags */, 0 /* targetSdkVersion */); in mockPackageManager() local
322 .thenReturn(Arrays.asList(app3, app2, app1)); in mockPackageManager()
325 when(mPackageManager.getApplicationLabel(app3)).thenReturn(APP_3); in mockPackageManager()
/packages/apps/Launcher3/quickstep/tests/src/com/android/launcher3/model/
DWidgetsPredicationUpdateTaskTest.java171 AppTarget app3 = new AppTarget(new AppTargetId("app3"), "app3", "className", in widgetsRecommendationRan_shouldOnlyReturnNotAddedWidgetsInAppPredictionOrder()
179 newWidgetsPredicationTask(List.of(app5, app3, app2, app4, app1))); in widgetsRecommendationRan_shouldOnlyReturnNotAddedWidgetsInAppPredictionOrder()
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/common/
DAdPackageDenyResolverTest.java378 ApplicationInfo app3 = mockInstalledApplicationInfo(mockPackageManager, "app3", 1); in createInstalledPackagesMapForTesting() local
389 .thenReturn(List.of(app1, app2, app3, app4, app5, app21, topics1, topics2)); in createInstalledPackagesMapForTesting()
/packages/modules/AdServices/adservices/tests/unittest/service-core/appsearch/src/com/android/adservices/service/appsearch/
DAppSearchConsentManagerTest.java98 ApplicationInfo app3 = new ApplicationInfo(); in setup() local
99 app3.packageName = PACKAGE_NAME3; in setup()
100 ExtendedMockito.doReturn(List.of(app1, app2, app3)) in setup()
DAppSearchConsentStorageManagerTest.java100 ApplicationInfo app3 = new ApplicationInfo(); in setup() local
101 app3.packageName = PACKAGE_NAME3; in setup()
102 doReturn(List.of(app1, app2, app3)) in setup()
/packages/modules/AdServices/adservices/tests/unittest/service-core/topics/src/com/android/adservices/data/topics/
DTopicsDaoTest.java944 String app3 = "app3"; in testDeleteFromTableByColumn() local
956 appClassificationTopicsMap.put(app3, List.of(topic1)); in testDeleteFromTableByColumn()
964 expectedTopicsMap.put(app3, List.of(topic1)); in testDeleteFromTableByColumn()
/packages/modules/AdServices/adservices/tests/unittest/ui/src/com/android/adservices/service/consent/
DConsentManagerV2Test.java983 String app3 = AppConsentDaoFixture.APP30_PACKAGE_NAME; in runTestIsFledgeConsentRevokedForAppWithFullApiConsentAppSearchOnly() local
986 mockGetPackageUid(app3, AppConsentDaoFixture.APP30_UID); in runTestIsFledgeConsentRevokedForAppWithFullApiConsentAppSearchOnly()
990 when(mAppSearchConsentManagerMock.isConsentRevokedForApp(app3)).thenReturn(false); in runTestIsFledgeConsentRevokedForAppWithFullApiConsentAppSearchOnly()
994 assertFalse(mConsentManager.isFledgeConsentRevokedForApp(app3)); in runTestIsFledgeConsentRevokedForAppWithFullApiConsentAppSearchOnly()
1163 String app3 = AppConsentDaoFixture.APP30_PACKAGE_NAME; in runTestIsFledgeConsentRevokedForAppAfterSetFledgeUseWithFullApiConsentAppSearch() local
1166 mockGetPackageUid(app3, AppConsentDaoFixture.APP30_UID); in runTestIsFledgeConsentRevokedForAppAfterSetFledgeUseWithFullApiConsentAppSearch()
1170 when(mAppSearchConsentManagerMock.setConsentForAppIfNew(app3, false)).thenReturn(false); in runTestIsFledgeConsentRevokedForAppAfterSetFledgeUseWithFullApiConsentAppSearch()
1174 assertFalse(mConsentManager.isFledgeConsentRevokedForAppAfterSettingFledgeUse(app3)); in runTestIsFledgeConsentRevokedForAppAfterSetFledgeUseWithFullApiConsentAppSearch()
DConsentManagerTest.java1086 String app3 = AppConsentDaoFixture.APP30_PACKAGE_NAME; in runTestIsFledgeConsentRevokedForAppWithFullApiConsentAppSearchOnly() local
1089 mockGetPackageUid(app3, AppConsentDaoFixture.APP30_UID); in runTestIsFledgeConsentRevokedForAppWithFullApiConsentAppSearchOnly()
1093 when(mAppSearchConsentManagerMock.isFledgeConsentRevokedForApp(app3)).thenReturn(false); in runTestIsFledgeConsentRevokedForAppWithFullApiConsentAppSearchOnly()
1097 assertFalse(mConsentManager.isFledgeConsentRevokedForApp(app3)); in runTestIsFledgeConsentRevokedForAppWithFullApiConsentAppSearchOnly()
1267 String app3 = AppConsentDaoFixture.APP30_PACKAGE_NAME; in runTestIsFledgeConsentRevokedForAppAfterSetFledgeUseWithFullApiConsentAppSearch() local
1270 mockGetPackageUid(app3, AppConsentDaoFixture.APP30_UID); in runTestIsFledgeConsentRevokedForAppAfterSetFledgeUseWithFullApiConsentAppSearch()
1276 when(mAppSearchConsentManagerMock.isFledgeConsentRevokedForAppAfterSettingFledgeUse(app3)) in runTestIsFledgeConsentRevokedForAppAfterSetFledgeUseWithFullApiConsentAppSearch()
1281 assertFalse(mConsentManager.isFledgeConsentRevokedForAppAfterSettingFledgeUse(app3)); in runTestIsFledgeConsentRevokedForAppAfterSetFledgeUseWithFullApiConsentAppSearch()