/packages/apps/Car/Settings/tests/multivalent/src/com/android/car/settings/notifications/ |
D | RecentNotificationsAppsPreferenceControllerTest.java | 127 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/ |
D | AppUpdateManagerTest.java | 309 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 …]
|
D | TopicsWorkerTest.java | 1030 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 …]
|
D | EpochManagerTest.java | 1229 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/ |
D | MetricsManager_test.cpp | 98 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/ |
D | MainActivity.java | 17 package android.healthconnect.controller.test.app3;
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/development/graphicsdriver/ |
D | GraphicsDriverAppPreferenceControllerTest.java | 319 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/ |
D | WidgetsPredicationUpdateTaskTest.java | 171 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/ |
D | AdPackageDenyResolverTest.java | 378 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/ |
D | AppSearchConsentManagerTest.java | 98 ApplicationInfo app3 = new ApplicationInfo(); in setup() local 99 app3.packageName = PACKAGE_NAME3; in setup() 100 ExtendedMockito.doReturn(List.of(app1, app2, app3)) in setup()
|
D | AppSearchConsentStorageManagerTest.java | 100 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/ |
D | TopicsDaoTest.java | 944 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/ |
D | ConsentManagerV2Test.java | 983 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()
|
D | ConsentManagerTest.java | 1086 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()
|