Home
last modified time | relevance | path

Searched refs:activities (Results 1 – 25 of 92) sorted by relevance

1234

/packages/services/Car/car-lib/src/android/car/content/pm/
DAppBlockingPackageInfo.java81 public final String[] activities; field in AppBlockingPackageInfo
86 @Nullable String[] activities) { in AppBlockingPackageInfo() argument
95 this.activities = activities; in AppBlockingPackageInfo()
105 activities = in.createStringArray(); in AppBlockingPackageInfo()
121 dest.writeStringArray(activities); in writeToParcel()
148 if (activities == null) { in isActivityCovered()
151 for (String activityName : activities) { in isActivityCovered()
163 result = prime * result + Arrays.hashCode(activities); in hashCode()
184 if (!Arrays.equals(activities, other.activities)) { in equals()
212 + Arrays.toString(activities) + "]"; in toString()
/packages/apps/DocumentsUI/src/com/android/documentsui/files/
DLauncherActivity.java69 ActivityManager activities = (ActivityManager) getSystemService(Context.ACTIVITY_SERVICE); in launch() local
71 Intent intent = findTask(activities); in launch()
79 clearTask(activities); in launch()
86 private @Nullable Intent findTask(ActivityManager activities) { in findTask() argument
87 List<AppTask> tasks = activities.getAppTasks(); in findTask()
129 private void clearTask(ActivityManager activities) { in clearTask() argument
130 List<AppTask> tasks = activities.getAppTasks(); in clearTask()
/packages/apps/Launcher3/quickstep/tests/src/com/android/quickstep/
DAppPredictionsUITests.java63 List<LauncherActivityInfo> activities = LauncherAppsCompat.getInstance(mTargetContext) in setUp() local
65 mSampleApp1 = activities.get(0); in setUp()
66 mSampleApp2 = activities.get(1); in setUp()
67 mSampleApp3 = activities.get(2); in setUp()
148 private void sendPredictionUpdate(LauncherActivityInfo... activities) { in sendPredictionUpdate() argument
150 List<AppTarget> targets = new ArrayList<>(activities.length); in sendPredictionUpdate()
151 for (LauncherActivityInfo info : activities) { in sendPredictionUpdate()
/packages/apps/Launcher3/src/com/android/launcher3/
DSessionCommitReceiver.java93 List<LauncherActivityInfo> activities = LauncherAppsCompat.getInstance(context) in queuePromiseAppIconAddition() local
95 if (activities == null || activities.isEmpty()) { in queuePromiseAppIconAddition()
103 List<LauncherActivityInfo> activities = LauncherAppsCompat.getInstance(context) in queueAppIconAddition() local
105 if (activities == null || activities.isEmpty()) { in queueAppIconAddition()
109 queueAppIconAddition(context, packageName, activities.get(0).getLabel(), null, user); in queueAppIconAddition()
/packages/apps/Settings/tests/robotests/src/com/android/settings/deviceinfo/
DRegulatoryInfoPreferenceControllerTest.java68 final List<ResolveInfo> activities = new ArrayList<>(); in isAvailable_hasIntent_returnTrue() local
69 activities.add(new ResolveInfo()); in isAvailable_hasIntent_returnTrue()
71 .thenReturn(activities); in isAvailable_hasIntent_returnTrue()
78 final List<ResolveInfo> activities = new ArrayList<>(); in isAvailable_hasNoIntent_returnFalse() local
80 .thenReturn(activities); in isAvailable_hasNoIntent_returnFalse()
/packages/apps/Settings/tests/robotests/src/com/android/settings/applications/specialaccess/pictureinpicture/
DPictureInPictureDetailsTest.java94 ActivityInfo[] activities = null; in checkPackageHasPictureInPictureActivities() local
96 activities = new ActivityInfo[resizeableActivityState.length]; in checkPackageHasPictureInPictureActivities()
97 for (int i = 0; i < activities.length; i++) { in checkPackageHasPictureInPictureActivities()
98 activities[i] = new MockActivityInfo(resizeableActivityState[i]); in checkPackageHasPictureInPictureActivities()
102 activities); in checkPackageHasPictureInPictureActivities()
/packages/services/Car/service/src/com/android/car/pm/
DCarPackageManagerService.java676 Set<String> activities = new ArraySet<>(); in generateActivityWhitelistAsUser() local
696 activities.addAll(activitiesForPackage); in generateActivityWhitelistAsUser()
709 activities.addAll(configActivitiesForPackage); in generateActivityWhitelistAsUser()
751 activities.addAll(Arrays.asList(doActivities)); in generateActivityWhitelistAsUser()
759 if (activities.isEmpty()) { in generateActivityWhitelistAsUser()
771 activities.removeAll(configBlacklistActivities); in generateActivityWhitelistAsUser()
778 activities.toArray(new String[activities.size()])); in generateActivityWhitelistAsUser()
810 Set<String> activities = packageToActivityMap.get(packageActivityPair[0]); in parseConfigList() local
812 if (activities == null) { in parseConfigList()
813 activities = new ArraySet<>(); in parseConfigList()
[all …]
DCarAppMetadataReader.java73 ActivityInfo[] activities = pkgInfo.activities; in findDistractionOptimizedActivitiesAsUser() local
74 if (activities == null) { in findDistractionOptimizedActivitiesAsUser()
81 for (ActivityInfo activity : activities) { in findDistractionOptimizedActivitiesAsUser()
/packages/apps/Tag/src/com/android/apps/tag/record/
DRecordUtils.java68 List<ResolveInfo> activities = pm.queryIntentActivities(intent, flags); in getViewsForIntent() local
69 int numActivities = activities.size(); in getViewsForIntent()
70 if (numActivities == 0 || (numActivities == 1 && !activities.get(0).activityInfo.enabled)) { in getViewsForIntent()
75 return buildActivityView(activity, activities.get(0), pm, inflater, parent, listener, in getViewsForIntent()
85 for (ResolveInfo resolveInfo : activities) { in getViewsForIntent()
/packages/apps/Settings/tests/unit/src/com/android/settings/backup/
DBackupIntentTest.java56 List<ResolveInfo> activities = pm.queryIntentActivities(intent, 0); in testPrivacySettingsIntentResolvesToOnlyOneActivity() local
57 assertThat(activities).isNotNull(); in testPrivacySettingsIntentResolvesToOnlyOneActivity()
58 assertThat(activities.size()).isEqualTo(1); in testPrivacySettingsIntentResolvesToOnlyOneActivity()
59 assertThat(activities.get(0).activityInfo.getComponentName().getClassName()). in testPrivacySettingsIntentResolvesToOnlyOneActivity()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/applications/specialaccess/pictureinpicture/
DPictureInPictureSettings.java104 ActivityInfo[] activities) { in checkPackageHasPictureInPictureActivities() argument
112 if (activities != null) { in checkPackageHasPictureInPictureActivities()
113 for (int i = activities.length - 1; i >= 0; i--) { in checkPackageHasPictureInPictureActivities()
114 if (activities[i].supportsPictureInPicture()) { in checkPackageHasPictureInPictureActivities()
214 packageInfo.activities)) { in collectPipApps()
/packages/apps/Settings/src/com/android/settings/applications/specialaccess/pictureinpicture/
DPictureInPictureSettings.java104 ActivityInfo[] activities) { in checkPackageHasPictureInPictureActivities() argument
112 if (activities != null) { in checkPackageHasPictureInPictureActivities()
113 for (int i = activities.length - 1; i >= 0; i--) { in checkPackageHasPictureInPictureActivities()
114 if (activities[i].supportsPictureInPicture()) { in checkPackageHasPictureInPictureActivities()
214 packageInfo.activities)) { in collectPipApps()
/packages/apps/Settings/src/com/android/settings/enterprise/
DEnterprisePrivacyFeatureProviderImpl.java284 final List<ResolveInfo> activities = mPm.queryIntentActivities(intent, 0); in getWorkPolicyInfoIntentDO() local
285 if (activities.size() != 0) { in getWorkPolicyInfoIntentDO()
308 final List<ResolveInfo> activities = mPm.queryIntentActivitiesAsUser(intent, 0, userId); in getWorkPolicyInfoIntentPO() local
309 if (activities.size() != 0) { in getWorkPolicyInfoIntentPO()
/packages/apps/Settings/tests/unit/src/com/android/settings/core/
DSettingsGatewayTest.java99 final List<ActivityInfo> activities = Arrays.asList(pi.activities); in publicFragmentMustAppearInSettingsGateway() local
101 for (ActivityInfo activity : activities) { in publicFragmentMustAppearInSettingsGateway()
/packages/apps/Launcher3/src/com/android/launcher3/model/
DAddWorkspaceItemsTask.java125 List<LauncherActivityInfo> activities = launcherApps in execute() local
127 boolean hasActivity = activities != null && !activities.isEmpty(); in execute()
141 itemInfo = new AppInfo(app.getContext(), activities.get(0), item.user) in execute()
/packages/apps/PermissionController/src/com/android/packageinstaller/role/model/
DAssistantRoleBehavior.java134 List<ResolveInfo> activities = userPackageManager.queryIntentActivities( in getQualifyingPackagesAsUser() local
138 int numActivities = activities.size(); in getQualifyingPackagesAsUser()
140 availableAssistants.add(activities.get(i).activityInfo.packageName); in getQualifyingPackagesAsUser()
DPreferredActivity.java91 List<ComponentName> activities = mActivity.getQualifyingComponentsAsUser( in configure() local
93 packageManager.replacePreferredActivity(intentFilter, match, activities, in configure()
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/module/
DDefaultExploreIntentChecker.java72 … List<ResolveInfo> activities = pm.queryIntentActivities(actionViewIntent, /* flags */ 0); in doInBackground() local
74 Intent result = activities.isEmpty() ? null : actionViewIntent; in doInBackground()
/packages/apps/Launcher3/src/com/android/launcher3/util/
DPackageManagerHelper.java96 List<LauncherActivityInfo> activities = mLauncherApps.getActivityList(pkg, user); in getAppLaunchIntent() local
97 return activities.isEmpty() ? null : in getAppLaunchIntent()
98 AppInfo.makeLaunchIntent(activities.get(0)); in getAppLaunchIntent()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/shortcut/
DCreateShortcutPreferenceController.java189 final List<ResolveInfo> activities = mPackageManager.queryIntentActivities(SHORTCUT_PROBE, in queryShortcuts() local
192 if (activities == null) { in queryShortcuts()
195 for (ResolveInfo info : activities) { in queryShortcuts()
/packages/apps/Settings/tests/unit/src/com/android/settings/password/
DSetupChooseLockGenericTest.java91 Collection<Activity> activities = ActivityLifecycleMonitorRegistry.getInstance() in getCurrentActivity() local
93 activity[0] = activities.iterator().next(); in getCurrentActivity()
/packages/apps/Settings/src/com/android/settings/shortcut/
DCreateShortcutPreferenceController.java174 final List<ResolveInfo> activities = mPackageManager.queryIntentActivities(SHORTCUT_PROBE, in queryShortcuts() local
177 if (activities == null) { in queryShortcuts()
180 for (ResolveInfo info : activities) { in queryShortcuts()
/packages/apps/Contacts/src/com/android/contacts/editor/
DEditorIntents.java26 import com.android.contacts.activities.ContactEditorActivity;
27 import com.android.contacts.activities.ContactEditorSpringBoardActivity;
/packages/apps/Launcher3/src/com/android/launcher3/compat/
DLauncherAppsCompatVO.java82 List<LauncherActivityInfo> activities = in getCustomShortcutActivityList() local
84 for (LauncherActivityInfo activityInfo : activities) { in getCustomShortcutActivityList()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/device/apps/specialaccess/
DPictureInPicture.java94 if (packageInfo.activities == null) { in checkPackageHasPipActivities()
97 for (ActivityInfo info : packageInfo.activities) { in checkPackageHasPipActivities()

1234