Home
last modified time | relevance | path

Searched refs:app1 (Results 1 – 25 of 28) sorted by relevance

12

/packages/modules/AdServices/adservices/tests/unittest/service-core/topics/src/com/android/adservices/service/topics/
DAppUpdateManagerTest.java104 String app1 = "app1"; in testReconcileUninstalledApps() local
109 appInfo1.packageName = app1; in testReconcileUninstalledApps()
122 appClassificationTopicsMap1.put(app1, Collections.singletonList(topic1)); in testReconcileUninstalledApps()
128 .containsExactly(app1, app2); in testReconcileUninstalledApps()
133 mTopicsDao.recordUsageHistory(epochId1, app1, EMPTY_SDK); in testReconcileUninstalledApps()
134 mTopicsDao.recordUsageHistory(epochId1, app1, sdk1); in testReconcileUninstalledApps()
140 .containsExactly(app1, app2); in testReconcileUninstalledApps()
143 mTopicsDao.recordAppUsageHistory(epochId1, app1); in testReconcileUninstalledApps()
147 assertThat(mTopicsDao.retrieveAppUsageMap(epochId1).keySet()).containsExactly(app1, app2); in testReconcileUninstalledApps()
151 callerCanLearnMap.put(topic1, new HashSet<>(Arrays.asList(app1, app2, sdk1))); in testReconcileUninstalledApps()
[all …]
DTopicsWorkerTest.java1028 String app1 = "app1"; // regular app in testReconcileApplicationUpdate() local
1058 appInfo1.packageName = app1; in testReconcileApplicationUpdate()
1102 returnedAppSdkTopicsMap1.put(Pair.create(app1, sdk), currentTopic1); in testReconcileApplicationUpdate()
1118 mTopicsDao.recordAppUsageHistory(epochId, app1); in testReconcileApplicationUpdate()
1122 mTopicsDao.recordUsageHistory(epochId, app1, sdk); in testReconcileApplicationUpdate()
1129 epochId, Map.of(topic.getTopic(), Set.of(app1, app2, app3, app4))); in testReconcileApplicationUpdate()
1173 GetTopicsResult getTopicsResult1 = topicsWorker.getTopics(app1, sdk); in testReconcileApplicationUpdate()
1320 String app1 = "app1"; // app to uninstall at Epoch4 in testHandleAppUninstallation_handleTopTopicsWithoutContributors() local
1347 app1, List.of(topic1, topic2), in testHandleAppUninstallation_handleTopTopicsWithoutContributors()
1353 app1, List.of(topic1, topic2), in testHandleAppUninstallation_handleTopTopicsWithoutContributors()
[all …]
DCacheManagerTest.java1568 String app1 = "app1"; in testGetTopicsInEpochRange() local
1571 Pair<String, String> app1Sdk = Pair.create(app1, sdk); in testGetTopicsInEpochRange()
1594 /* epochLowerBound */ 1, /* epochUpperBound */ 3, app1, sdk)) in testGetTopicsInEpochRange()
1600 /* epochLowerBound */ 2, /* epochUpperBound */ 3, app1, sdk)) in testGetTopicsInEpochRange()
1749 final String app1 = "app1"; in testClearAllTopicsData() local
1762 for (String app : new String[] {app1, app2}) { in testClearAllTopicsData()
1774 epochId, Map.of(app1, List.of(topic1, topic2), app2, List.of(topic1, topic2))); in testClearAllTopicsData()
1776 mTopicsDao.persistCallerCanLearnTopics(epochId, Map.of(topic1, Set.of(app1, sdk1))); in testClearAllTopicsData()
1811 for (String app : new String[] {app1, app2}) { in testClearAllTopicsData()
DEpochManagerTest.java1227 String app1 = "app1"; in testComputeTopTopicsToContributorsMap() local
1233 app1, List.of(topic1, topic3), in testComputeTopTopicsToContributorsMap()
1241 topic1.getTopic(), Set.of(app1, app2), in testComputeTopTopicsToContributorsMap()
1261 String app1 = "app1"; in testComputeTopTopicsToContributorsMap_emptyTopTopics() local
1267 app1, List.of(topic1, topic3), in testComputeTopTopicsToContributorsMap_emptyTopTopics()
1293 String app1 = "app1"; in testComputeTopTopicsToContributorsMap_paddedTopics() local
1298 app1, List.of(topic1, topic3), in testComputeTopTopicsToContributorsMap_paddedTopics()
1312 topic1.getTopic(), Set.of(app1, app2), in testComputeTopTopicsToContributorsMap_paddedTopics()
1314 topic3.getTopic(), Set.of(app1, app2), in testComputeTopTopicsToContributorsMap_paddedTopics()
/packages/modules/Permission/tests/cts/permissionpolicy/src/android/permissionpolicy/cts/
DRestrictedStoragePermissionSharedUidTest.java202 public @NonNull TestApp app1; field in RestrictedStoragePermissionSharedUidTest
232 app1.install(); in checkExceptedStorageStateForAppsSharingUid()
235 int targetSDK = min(app1.getTargetSDK(), app2.getTargetSDK()); in checkExceptedStorageStateForAppsSharingUid()
236 boolean isRestricted = app1.isRestricted && app2.isRestricted; in checkExceptedStorageStateForAppsSharingUid()
238 app1.hasRequestedLegacyExternalStorage || app2.hasRequestedLegacyExternalStorage; in checkExceptedStorageStateForAppsSharingUid()
255 app1.assertStoragePermGranted(expectedState != DENIED); in checkExceptedStorageStateForAppsSharingUid()
259 app1.assertHasNotIsolatedStorage(expectedState == NON_ISOLATED); in checkExceptedStorageStateForAppsSharingUid()
266 app1.uninstall(); in uninstallAllTestPackages()
/packages/apps/Car/Settings/tests/multivalent/src/com/android/car/settings/notifications/
DRecentNotificationsAppsPreferenceControllerTest.java125 UsageEvents.Event app1 = createUsageEvent("a", timestamp); in areEvents_showValidRecents() local
129 events.add(app1); in areEvents_showValidRecents()
138 when(mMockApplicationsState.getEntry(app1.getPackageName(), userId)).thenReturn(app1Entry); in areEvents_showValidRecents()
143 new String[] {app1.getPackageName(), app2.getPackageName(), app3.getPackageName()}, in areEvents_showValidRecents()
153 .getEntry(eq(app1.getPackageName()), anyInt()); in areEvents_showValidRecents()
163 UsageEvents.Event app1 = createUsageEvent("a", timestamp); in areEvents_showMaximumRecents() local
168 events.add(app1); in areEvents_showMaximumRecents()
180 when(mMockApplicationsState.getEntry(app1.getPackageName(), userId)).thenReturn(app1Entry); in areEvents_showMaximumRecents()
186 new String[] {app1.getPackageName(), app2.getPackageName(), app3.getPackageName(), in areEvents_showMaximumRecents()
196 .getEntry(eq(app1.getPackageName()), anyInt()); in areEvents_showMaximumRecents()
/packages/modules/AdServices/adservices/tests/unittest/service-core/topics/src/com/android/adservices/data/topics/
DTopicsDaoTest.java92 String app1 = "app1"; in testPersistAndGetAppClassificationTopics() local
101 appClassificationTopicsMap1.put(app1, Arrays.asList(topic1, topic2)); in testPersistAndGetAppClassificationTopics()
107 appClassificationTopicsMap2.put(app1, Collections.singletonList(topic1)); in testPersistAndGetAppClassificationTopics()
116 expectedTopicsMap1.put(app1, Arrays.asList(topic1, topic2)); in testPersistAndGetAppClassificationTopics()
118 expectedTopicsMap2.put(app1, Collections.singletonList(topic1)); in testPersistAndGetAppClassificationTopics()
858 String app1 = "app1"; in testDeleteAllTopicsTables() local
871 for (String app : new String[] {app1, app2}) { in testDeleteAllTopicsTables()
890 app1, in testDeleteAllTopicsTables()
895 mTopicsDao.persistCallerCanLearnTopics(epochId, Map.of(topic1, Set.of(app1, sdk1))); in testDeleteAllTopicsTables()
932 mTopicsDao.persistTopicContributors(epochId1, Map.of(topic1.getTopic(), Set.of(app1))); in testDeleteAllTopicsTables()
[all …]
/packages/modules/AppSearch/testing/appsindexertests/src/com/android/server/appsearch/appsindexer/
DAppSearchHelperTest.java370 MobileApplication app1 = createFakeMobileApplication(1); in test_sameApp_notIndexed() local
374 ImmutableList.of(app0, app1), in test_sameApp_notIndexed()
384 ImmutableList.of(app0, app1), in test_sameApp_notIndexed()
398 MobileApplication app1 = createFakeMobileApplication(1); in test_appDifferent_reIndexed() local
402 ImmutableList.of(app0, app1), in test_appDifferent_reIndexed()
411 app1 = in test_appDifferent_reIndexed()
422 ImmutableList.of(app1), in test_appDifferent_reIndexed()
434 MobileApplication app1 = createFakeMobileApplication(1); in test_appNew_indexed() local
438 ImmutableList.of(app0, app1), in test_appNew_indexed()
448 ImmutableList.of(app0, app1, app2), in test_appNew_indexed()
[all …]
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/util/
DAppPairsController.java246 WorkspaceItemInfo app1 = appPairIcon.getInfo().getFirstApp(); in launchAppPair() local
248 ComponentKey app1Key = new ComponentKey(app1.getTargetComponent(), app1.user); in launchAppPair()
264 task1Intent = app1.intent; in launchAppPair()
268 AppPairsController.convertRankToStagePosition(app1.rank), in launchAppPair()
269 app1, in launchAppPair()
284 AppPairsController.convertRankToSnapPosition(app1.rank), callback); in launchAppPair()
394 ItemInfo app1 = itemInfos.get(0); in handleAppPairLaunchInApp()
404 : app1; in handleAppPairLaunchInApp()
459 ItemInfo app1 = itemInfos.get(0); in handleAppPairLaunchInApp()
463 ItemInfo appToLaunch = task1IsOnScreen ? app2 : app1; in handleAppPairLaunchInApp()
/packages/apps/Car/Launcher/libs/appgrid/lib/src/com/android/car/carlauncher/datasources/
DAppOrderDataSource.kt180 Comparator<AppOrderInfo> { app1, app2 -> in getSavedAppOrderComparator() method
183 appOrderMap.contains(app1) && appOrderMap.contains(app2) -> { in getSavedAppOrderComparator()
185 appOrderMap[app1]!! - appOrderMap[app2]!! in getSavedAppOrderComparator()
188 appOrderMap.contains(app1) -> -1 in getSavedAppOrderComparator()
191 else -> app1.displayName.compareTo(app2.displayName) in getSavedAppOrderComparator()
/packages/modules/StatsD/statsd/tests/
DMetricsManager_test.cpp94 string app1 = "app1"; in TEST() local
102 pkgToUids[app1] = app1Uids; in TEST()
126 config.add_allowed_log_source(app1); in TEST()
134 pullAtomPackages->add_packages(app1); in TEST()
147 EXPECT_THAT(metricsManager.mAllowedPkg, ElementsAre(app1)); in TEST()
165 string app1 = "app1"; in TEST() local
173 pkgToUids[app1] = app1Uids; in TEST()
196 config.add_allowed_log_source(app1); in TEST()
202 pullAtomPackages->add_packages(app1); in TEST()
222 pullAtomPackages->add_packages(app1); in TEST()
/packages/apps/Settings/tests/robotests/src/com/android/settings/applications/
DApplicationFeatureProviderImplTest.java265 final ResolveInfo app1 = createResolveInfo(APP_1); in testFindPersistentPreferredActivities() local
268 .thenReturn(app1); in testFindPersistentPreferredActivities()
270 .thenReturn(app1); in testFindPersistentPreferredActivities()
276 .thenReturn(app1); in testFindPersistentPreferredActivities()
282 new ApplicationInfo(app1.activityInfo.applicationInfo))); in testFindPersistentPreferredActivities()
285 new ApplicationInfo(app1.activityInfo.applicationInfo))); in testFindPersistentPreferredActivities()
/packages/apps/Launcher3/src/com/android/launcher3/util/
DPackageManagerHelper.java192 public static boolean isSameAppForMultiInstance(@NonNull ItemInfo app1, in isSameAppForMultiInstance() argument
194 return app1.getTargetPackage().equals(app2.getTargetPackage()) in isSameAppForMultiInstance()
195 && app1.user.equals(app2.user); in isSameAppForMultiInstance()
/packages/apps/Launcher3/src/com/android/launcher3/model/data/
DAppPairInfo.kt103 val app1: CharSequence? = getFirstApp().title in <lambda>() constant
105 title = context.getString(R.string.app_pair_default_title, app1, app2) in <lambda>()
/packages/apps/Launcher3/src/com/android/launcher3/touch/
DItemClickHandler.java166 WorkspaceItemInfo app1 = info.getFirstApp(); in onClickAppPairIcon() local
169 if (app1.isDisabled() && app2.isDisabled()) { in onClickAppPairIcon()
174 } else if ((app1.isDisabled() && handleDisabledItemClicked(app1, launcher)) in onClickAppPairIcon()
/packages/modules/adb/test_device_apks/test_app1/src/adb/test/app1/
DMainActivity.java17 package adb.test.app1;
DOwnProcessActivity.java17 package adb.test.app1;
/packages/apps/Launcher3/src/com/android/launcher3/apppairs/
DAppPairIcon.java171 CharSequence app1 = getInfo().getFirstApp().title; in updateAccessibilityTitle() local
173 String a11yTitle = getContext().getString(R.string.app_pair_name_format, app1, app2); in updateAccessibilityTitle()
/packages/modules/AdServices/sdksandbox/tests/hostsidetests/app/src/com/android/sdksandbox/shared/app1/
DSdkSandboxTestSharedActivity.java17 package com.android.sdksandbox.shared.app1;
/packages/apps/Settings/tests/robotests/src/com/android/settings/development/graphicsdriver/
DGraphicsDriverAppPreferenceControllerTest.java316 final ApplicationInfo app1 = buildInfo(uid, APP_1, 0 /* flags */, 0 /* targetSdkVersion */); in mockPackageManager() local
322 .thenReturn(Arrays.asList(app3, app2, app1)); in mockPackageManager()
323 when(mPackageManager.getApplicationLabel(app1)).thenReturn(APP_1); in mockPackageManager()
/packages/apps/Settings/tests/robotests/src/com/android/settings/notification/modes/
DZenModeAppsLinkPreferenceControllerTest.java203 ApplicationsState.AppEntry app1 = createAppEntry("app1", mContext.getUserId()); in testGetAppsBypassingDnd() local
205 List<ApplicationsState.AppEntry> allApps = List.of(app1, app2); in testGetAppsBypassingDnd()
210 assertThat(mController.getAppsBypassingDndSortedByName(allApps)).containsExactly(app1); in testGetAppsBypassingDnd()
/packages/apps/Launcher3/quickstep/tests/src/com/android/launcher3/model/
DWidgetsPredicationUpdateTaskTest.java167 AppTarget app1 = new AppTarget(new AppTargetId("app1"), "app1", "provider1", 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.java376 ApplicationInfo app1 = mockInstalledApplicationInfo(mockPackageManager, "app1", 20); 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.java94 ApplicationInfo app1 = new ApplicationInfo(); in setup() local
95 app1.packageName = PACKAGE_NAME1; in setup()
100 ExtendedMockito.doReturn(List.of(app1, app2, app3)) in setup()
DAppSearchConsentStorageManagerTest.java96 ApplicationInfo app1 = new ApplicationInfo(); in setup() local
97 app1.packageName = PACKAGE_NAME1; in setup()
102 doReturn(List.of(app1, app2, app3)) in setup()

12