/packages/modules/AdServices/adservices/tests/unittest/service-core/topics/src/com/android/adservices/service/topics/ |
D | AppUpdateManagerTest.java | 105 String app2 = "app2"; in testReconcileUninstalledApps() local 123 appClassificationTopicsMap1.put(app2, Collections.singletonList(topic1)); in testReconcileUninstalledApps() 128 .containsExactly(app1, app2); in testReconcileUninstalledApps() 135 mTopicsDao.recordUsageHistory(epochId1, app2, EMPTY_SDK); in testReconcileUninstalledApps() 136 mTopicsDao.recordUsageHistory(epochId1, app2, sdk1); in testReconcileUninstalledApps() 140 .containsExactly(app1, app2); in testReconcileUninstalledApps() 144 mTopicsDao.recordAppUsageHistory(epochId1, app2); 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() 159 .containsAtLeast(app1, app2); in testReconcileUninstalledApps() [all …]
|
D | TopicsWorkerTest.java | 1029 String app2 = "app2"; // unhandled uninstalled app in testReconcileApplicationUpdate() local 1107 returnedAppSdkTopicsMap2.put(Pair.create(app2, sdk), currentTopic2); in testReconcileApplicationUpdate() 1119 mTopicsDao.recordAppUsageHistory(epochId, app2); in testReconcileApplicationUpdate() 1123 mTopicsDao.recordUsageHistory(epochId, app2, sdk); in testReconcileApplicationUpdate() 1129 epochId, Map.of(topic.getTopic(), Set.of(app1, app2, app3, app4))); in testReconcileApplicationUpdate() 1192 assertThat((topicsWorker.getTopics(app2, sdk))).isEqualTo(emptyGetTopicsResult); in testReconcileApplicationUpdate() 1321 String app2 = "app2"; // positive case to verify the removal of the returned topic in testHandleAppUninstallation_handleTopTopicsWithoutContributors() local 1348 app2, List.of(topic1, topic3), in testHandleAppUninstallation_handleTopTopicsWithoutContributors() 1363 topic1.getTopic(), Set.of(app1, app2, app4), in testHandleAppUninstallation_handleTopTopicsWithoutContributors() 1365 topic3.getTopic(), Set.of(app2, app4))); in testHandleAppUninstallation_handleTopTopicsWithoutContributors() [all …]
|
D | EpochManagerTest.java | 1228 String app2 = "app2"; in testComputeTopTopicsToContributorsMap() local 1234 app2, List.of(topic1, topic2, topic3), in testComputeTopTopicsToContributorsMap() 1241 topic1.getTopic(), Set.of(app1, app2), in testComputeTopTopicsToContributorsMap() 1242 topic2.getTopic(), Set.of(app2)); in testComputeTopTopicsToContributorsMap() 1262 String app2 = "app2"; in testComputeTopTopicsToContributorsMap_emptyTopTopics() local 1268 app2, List.of(topic1, topic2, topic3), in testComputeTopTopicsToContributorsMap_emptyTopTopics() 1294 String app2 = "app2"; in testComputeTopTopicsToContributorsMap_paddedTopics() local 1299 app2, List.of(topic1, topic2, topic3)); in testComputeTopTopicsToContributorsMap_paddedTopics() 1312 topic1.getTopic(), Set.of(app1, app2), in testComputeTopTopicsToContributorsMap_paddedTopics() 1313 topic2.getTopic(), Set.of(app2), in testComputeTopTopicsToContributorsMap_paddedTopics() [all …]
|
D | CacheManagerTest.java | 1569 String app2 = "app2"; in testGetTopicsInEpochRange() local 1572 Pair<String, String> app2Sdk = Pair.create(app2, sdk); in testGetTopicsInEpochRange() 1606 /* epochLowerBound */ 1, /* epochUpperBound */ 3, app2, sdk)) in testGetTopicsInEpochRange() 1750 final String app2 = "app2"; 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() 1777 mTopicsDao.persistCallerCanLearnTopics(epochId, Map.of(topic2, Set.of(app2, sdk2))); in testClearAllTopicsData() 1811 for (String app : new String[] {app1, app2}) { in testClearAllTopicsData()
|
/packages/modules/Permission/tests/cts/permissionpolicy/src/android/permissionpolicy/cts/ |
D | RestrictedStoragePermissionSharedUidTest.java | 209 public @NonNull TestApp app2; field in RestrictedStoragePermissionSharedUidTest 233 app2.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() 256 app2.assertStoragePermGranted(expectedState != DENIED); in checkExceptedStorageStateForAppsSharingUid() 260 app2.assertHasNotIsolatedStorage(expectedState == NON_ISOLATED); in checkExceptedStorageStateForAppsSharingUid() 267 app2.uninstall(); in uninstallAllTestPackages()
|
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/util/ |
D | AppPairsController.java | 247 WorkspaceItemInfo app2 = appPairIcon.getInfo().getSecondApp(); in launchAppPair() local 249 ComponentKey app2Key = new ComponentKey(app2.getTargetComponent(), app2.user); in launchAppPair() 275 mSplitSelectStateController.setSecondTask(foundTask2, app2); in launchAppPair() 278 app2.intent, app2.user, app2); in launchAppPair() 395 ItemInfo app2 = itemInfos.get(1); in handleAppPairLaunchInApp() 403 ? app2 in handleAppPairLaunchInApp() 460 ItemInfo app2 = itemInfos.get(1); in handleAppPairLaunchInApp() 463 ItemInfo appToLaunch = task1IsOnScreen ? app2 : app1; in handleAppPairLaunchInApp()
|
/packages/apps/Car/Settings/tests/multivalent/src/com/android/car/settings/notifications/ |
D | RecentNotificationsAppsPreferenceControllerTest.java | 126 UsageEvents.Event app2 = createUsageEvent("com.android.settings", timestamp); in areEvents_showValidRecents() local 130 events.add(app2); in areEvents_showValidRecents() 139 when(mMockApplicationsState.getEntry(app2.getPackageName(), userId)).thenReturn(app2Entry); in areEvents_showValidRecents() 143 new String[] {app1.getPackageName(), app2.getPackageName(), app3.getPackageName()}, in areEvents_showValidRecents() 164 UsageEvents.Event app2 = createUsageEvent("com.android.settings", timestamp); in areEvents_showMaximumRecents() local 169 events.add(app2); in areEvents_showMaximumRecents() 181 when(mMockApplicationsState.getEntry(app2.getPackageName(), userId)).thenReturn(app2Entry); in areEvents_showMaximumRecents() 186 new String[] {app1.getPackageName(), app2.getPackageName(), app3.getPackageName(), in areEvents_showMaximumRecents()
|
/packages/apps/Car/Launcher/libs/appgrid/lib/src/com/android/car/carlauncher/datasources/ |
D | AppOrderDataSource.kt | 180 Comparator<AppOrderInfo> { app1, app2 -> in getSavedAppOrderComparator() method 183 appOrderMap.contains(app1) && appOrderMap.contains(app2) -> { in getSavedAppOrderComparator() 185 appOrderMap[app1]!! - appOrderMap[app2]!! in getSavedAppOrderComparator() 189 appOrderMap.contains(app2) -> 1 in getSavedAppOrderComparator() 191 else -> app1.displayName.compareTo(app2.displayName) in getSavedAppOrderComparator()
|
/packages/modules/StatsD/statsd/tests/ |
D | MetricsManager_test.cpp | 96 string app2 = "app2"; in TEST() local 103 pkgToUids[app2] = app2Uids; in TEST() 139 pullAtomPackages->add_packages(app2); in TEST() 167 string app2 = "app2"; in TEST() local 174 pkgToUids[app2] = app2Uids; in TEST() 207 pullAtomPackages->add_packages(app2); in TEST() 216 newConfig.add_allowed_log_source(app2); in TEST() 227 pullAtomPackages->add_packages(app2); in TEST() 234 EXPECT_THAT(metricsManager.mAllowedPkg, ElementsAre(app2)); in TEST()
|
/packages/modules/AdServices/adservices/tests/unittest/service-core/topics/src/com/android/adservices/data/topics/ |
D | TopicsDaoTest.java | 93 String app2 = "app2"; in testPersistAndGetAppClassificationTopics() local 104 appClassificationTopicsMap1.put(app2, Collections.singletonList(topic1)); in testPersistAndGetAppClassificationTopics() 117 expectedTopicsMap1.put(app2, Collections.singletonList(topic1)); in testPersistAndGetAppClassificationTopics() 859 String app2 = "app2"; in testDeleteAllTopicsTables() local 871 for (String app : new String[] {app1, app2}) { in testDeleteAllTopicsTables() 892 app2, in testDeleteAllTopicsTables() 896 mTopicsDao.persistCallerCanLearnTopics(epochId, Map.of(topic2, Set.of(app2, sdk2))); in testDeleteAllTopicsTables() 943 String app2 = "app2"; in testDeleteFromTableByColumn() local 955 appClassificationTopicsMap.put(app2, List.of(topic1)); in testDeleteFromTableByColumn() 963 expectedTopicsMap.put(app2, List.of(topic1)); in testDeleteFromTableByColumn() [all …]
|
/packages/apps/Launcher3/src/com/android/launcher3/util/ |
D | PackageManagerHelper.java | 193 @NonNull ItemInfo app2) { 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/ |
D | AppPairInfo.kt | 104 val app2: CharSequence? = getSecondApp().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/ |
D | ItemClickHandler.java | 167 WorkspaceItemInfo app2 = info.getSecondApp(); in onClickAppPairIcon() local 169 if (app1.isDisabled() && app2.isDisabled()) { in onClickAppPairIcon() 175 || (app2.isDisabled() && handleDisabledItemClicked(app2, launcher))) { in onClickAppPairIcon()
|
/packages/modules/HealthFitness/tests/cts/TestApp2/src/android/healthconnect/cts/app2/ |
D | MainActivity.java | 17 package android.healthconnect.cts.app2;
|
/packages/modules/AdServices/sdksandbox/tests/hostsidetests/app/src/com/android/sdksandbox/app2/ |
D | SdkSandboxEmptyActivity.java | 17 package com.android.sdksandbox.app2;
|
D | SdkSandboxTestActivity2.java | 17 package com.android.sdksandbox.app2;
|
/packages/modules/HealthFitness/apk/tests/TestApp2/src/android/healthconnect/controller/test/app2/ |
D | MainActivity.java | 17 package android.healthconnect.controller.test.app2;
|
/packages/modules/AdServices/sdksandbox/tests/hostsidetests/app/src/com/android/sdksandbox/shared/app2/ |
D | SdkSandboxEmptyActivity.java | 17 package com.android.sdksandbox.shared.app2;
|
/packages/modules/AdServices/sdksandbox/tests/cts/hostside/app/src/com/android/sdksandbox/cts/app2/ |
D | TestActivity.java | 17 package com.android.sdksandbox.cts.app2;
|
/packages/modules/adb/test_device_apks/test_app2/src/adb/test/app2/ |
D | MainActivity.java | 17 package adb.test.app2;
|
/packages/apps/Launcher3/src/com/android/launcher3/apppairs/ |
D | AppPairIcon.java | 172 CharSequence app2 = getInfo().getSecondApp().title; in updateAccessibilityTitle() local 173 String a11yTitle = getContext().getString(R.string.app_pair_name_format, app1, app2); in updateAccessibilityTitle()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/development/graphicsdriver/ |
D | GraphicsDriverAppPreferenceControllerTest.java | 317 final ApplicationInfo app2 = in mockPackageManager() local 322 .thenReturn(Arrays.asList(app3, app2, app1)); in mockPackageManager() 324 when(mPackageManager.getApplicationLabel(app2)).thenReturn(APP_2); in mockPackageManager()
|
/packages/modules/Connectivity/tests/cts/hostside/app2/src/com/android/cts/net/hostside/app2/ |
D | RemoteSocketFactoryService.java | 17 package com.android.cts.net.hostside.app2;
|
D | TetheringHelperService.java | 17 package com.android.cts.net.hostside.app2;
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/applications/ |
D | ApplicationFeatureProviderImplTest.java | 266 final ResolveInfo app2 = createResolveInfo(APP_2); in testFindPersistentPreferredActivities() local 274 .thenReturn(app2); in testFindPersistentPreferredActivities() 287 new ApplicationInfo(app2.activityInfo.applicationInfo))); in testFindPersistentPreferredActivities()
|