Home
last modified time | relevance | path

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

12345

/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()
151 if (activities == null) { in isActivityCovered()
154 for (String activityName : activities) { in isActivityCovered()
166 result = prime * result + Arrays.hashCode(activities); in hashCode()
187 if (!Arrays.equals(activities, other.activities)) { in equals()
217 + 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/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/Car/Settings/tests/unit/src/com/android/car/settings/system/
DRegulatoryInfoPreferenceControllerTest.java72 List<ResolveInfo> activities = new ArrayList<>(); in hasIntent_isAvailable() local
73 activities.add(new ResolveInfo()); in hasIntent_isAvailable()
75 .thenReturn(activities); in hasIntent_isAvailable()
83 List<ResolveInfo> activities = new ArrayList<>(); in hasNoIntent_isNotAvailable() local
85 .thenReturn(activities); in hasNoIntent_isNotAvailable()
/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/apps/Settings/tests/legacy_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/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/services/Car/service/src/com/android/car/pm/
DCarAppMetadataReader.java77 ActivityInfo[] activities = pkgInfo.activities; in findDistractionOptimizedActivitiesAsUser() local
78 if (activities == null) { in findDistractionOptimizedActivitiesAsUser()
85 for (ActivityInfo activity : activities) { in findDistractionOptimizedActivitiesAsUser()
DCarPackageManagerService.java683 Set<String> activities = new ArraySet<>(); in getPackageInfoWrapperForUser() local
704 activities.addAll(activitiesForPackage); in getPackageInfoWrapperForUser()
715 activities.addAll(configActivitiesForPackage); in getPackageInfoWrapperForUser()
757 activities.addAll(Arrays.asList(doActivities)); in getPackageInfoWrapperForUser()
765 if (activities.isEmpty()) { in getPackageInfoWrapperForUser()
777 activities.removeAll(configBlocklistActivities); in getPackageInfoWrapperForUser()
784 activities.toArray(new String[activities.size()])); in getPackageInfoWrapperForUser()
897 Set<String> activities = packageToActivityMap.get(packageActivityPair[0]); in parseConfigList() local
899 if (activities == null) { in parseConfigList()
900 activities = new ArraySet<>(); in parseConfigList()
[all …]
/packages/apps/Settings/tests/componenttests/src/com/android/settings/testutils/
DUiUtils.java57 final Collection<Activity> activities = new ArrayList<>(); in waitForActivitiesInStage() local
59 activities.addAll( in waitForActivitiesInStage()
62 return activities.size() > 0; in waitForActivitiesInStage()
65 return activities.size() > 0; in waitForActivitiesInStage()
/packages/apps/Settings/src/com/android/settings/enterprise/
DEnterprisePrivacyFeatureProviderImpl.java268 final List<ResolveInfo> activities = mPm.queryIntentActivitiesAsUser(intent, 0, MY_USER_ID); in getParentalControlsIntent() local
269 if (activities.size() != 0) { in getParentalControlsIntent()
310 final List<ResolveInfo> activities = mPm.queryIntentActivities(intent, 0); in getWorkPolicyInfoIntentDO() local
311 if (activities.size() != 0) { in getWorkPolicyInfoIntentDO()
334 final List<ResolveInfo> activities = mPm.queryIntentActivitiesAsUser(intent, 0, userId); in getWorkPolicyInfoIntentPO() local
335 if (activities.size() != 0) { in getWorkPolicyInfoIntentPO()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/enterprise/
DEnterprisePrivacyFeatureProviderImpl.java268 final List<ResolveInfo> activities = mPm.queryIntentActivitiesAsUser(intent, 0, MY_USER_ID); in getParentalControlsIntent() local
269 if (activities.size() != 0) { in getParentalControlsIntent()
310 final List<ResolveInfo> activities = mPm.queryIntentActivities(intent, 0); in getWorkPolicyInfoIntentDO() local
311 if (activities.size() != 0) { in getWorkPolicyInfoIntentDO()
334 final List<ResolveInfo> activities = mPm.queryIntentActivitiesAsUser(intent, 0, userId); in getWorkPolicyInfoIntentPO() local
335 if (activities.size() != 0) { in getWorkPolicyInfoIntentPO()
/packages/apps/Settings/src/com/android/settings/applications/specialaccess/pictureinpicture/
DPictureInPictureSettings.java102 ActivityInfo[] activities) { in checkPackageHasPictureInPictureActivities() argument
110 if (activities != null) { in checkPackageHasPictureInPictureActivities()
111 for (int i = activities.length - 1; i >= 0; i--) { in checkPackageHasPictureInPictureActivities()
112 if (activities[i].supportsPictureInPicture()) { in checkPackageHasPictureInPictureActivities()
212 packageInfo.activities)) { in collectPipApps()
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/
DScreenManagerTest.java145 List<String> activities = getManagedProvisioningActivityNames(); in verifyEveryActivityIsMapped() local
147 List<String> unmappedActivities = getUnmappedOverridableActivities(activities); in verifyEveryActivityIsMapped()
152 private List<String> getUnmappedOverridableActivities(List<String> activities) { in getUnmappedOverridableActivities() argument
153 return activities in getUnmappedOverridableActivities()
178 return Arrays.stream(packageInfo.activities) in getManagedProvisioningActivityNames()
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/packageinfo/
DPackageInfoFragment.java155 packageInfo.activities != null in refreshPackages()
159 toDenyList &= (packageInfo.activities != null in refreshPackages()
198 CheckBox activities = v.findViewById(R.id.checkbox_activities); in setListener() local
205 activities.setOnClickListener(view -> mFilterActivities = ((CheckBox) view).isChecked()); in setListener()
/packages/apps/Settings/tests/robotests/src/com/android/settings/enterprise/
DEnterprisePrivacyFeatureProviderImplTest.java435 List<ResolveInfo> activities = ImmutableList.of(resolveInfo); in addWorkPolicyInfoIntent() local
438 .thenReturn(activities); in addWorkPolicyInfoIntent()
443 .thenReturn(activities); in addWorkPolicyInfoIntent()
458 List<ResolveInfo> activities = ImmutableList.of(resolveInfo); in addParentalControlsIntent() local
460 .thenReturn(activities); in addParentalControlsIntent()
462 .thenReturn(activities); in addParentalControlsIntent()
/packages/apps/Launcher3/src/com/android/launcher3/model/
DAddWorkspaceItemsTask.java136 List<LauncherActivityInfo> activities = launcherApps in execute() local
138 boolean hasActivity = activities != null && !activities.isEmpty(); in execute()
154 itemInfo = new AppInfo(app.getContext(), activities.get(0), item.user) in execute()
DPackageUpdatedTask.java266 List<LauncherActivityInfo> activities = activitiesLists.get( in execute()
269 activities == null || activities.isEmpty() in execute()
272 activities.get(0)), in execute()
DAllAppsList.java206 List<LauncherActivityInfo> activities = context.getSystemService(LauncherApps.class) in addPackage() local
209 for (LauncherActivityInfo info : activities) { in addPackage()
213 return activities; in addPackage()
/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/modules/Permission/PermissionController/src/com/android/permissioncontroller/role/model/
DAssistantRoleBehavior.java132 List<ResolveInfo> activities = userPackageManager.queryIntentActivities( in getQualifyingPackagesAsUser() local
136 int numActivities = activities.size(); in getQualifyingPackagesAsUser()
138 availableAssistants.add(activities.get(i).activityInfo.packageName); in getQualifyingPackagesAsUser()
/packages/apps/Car/Settings/src/com/android/car/settings/enterprise/
DWorkPolicyInfoPreferenceController.java102 List<ResolveInfo> activities = mPm.queryIntentActivities(mIntent, /* flags= */ 0); in updateIntent() local
103 if (activities.isEmpty()) { in updateIntent()
/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/Launcher3/src/com/android/launcher3/util/
DPackageManagerHelper.java120 List<LauncherActivityInfo> activities = mLauncherApps.getActivityList(pkg, user); in getAppLaunchIntent() local
121 return activities.isEmpty() ? null : in getAppLaunchIntent()
122 AppInfo.makeLaunchIntent(activities.get(0)); in getAppLaunchIntent()
/packages/apps/Contacts/src/com/android/contacts/editor/
DEditorIntents.java26 import com.android.contacts.activities.ContactEditorActivity;
27 import com.android.contacts.activities.ContactEditorSpringBoardActivity;

12345