Home
last modified time | relevance | path

Searched refs:packageNames (Results 1 – 25 of 53) sorted by relevance

123

/frameworks/base/telecomm/java/android/telecom/
DDefaultDialerManager.java76 List<String> packageNames = getInstalledDialerApplications(context); in setDefaultDialerApplication() local
78 if (packageNames.contains(packageName)) { in setDefaultDialerApplication()
121 final List<String> packageNames = getInstalledDialerApplications(context); in getDefaultDialerApplication() local
124 if (packageNames.contains(defaultPackageName)) { in getDefaultDialerApplication()
136 if (packageNames.contains(systemDialerPackageName)) { in getDefaultDialerApplication()
162 List<String> packageNames = new ArrayList<>(); in getInstalledDialerApplications() local
166 if (activityInfo != null && !packageNames.contains(activityInfo.packageName)) { in getInstalledDialerApplications()
167 packageNames.add(activityInfo.packageName); in getInstalledDialerApplications()
173 return filterByIntent(context, packageNames, dialIntentWithTelScheme); in getInstalledDialerApplications()
209 private static List<String> filterByIntent(Context context, List<String> packageNames, in filterByIntent() argument
[all …]
/frameworks/base/core/java/android/content/pm/
DLauncherApps.java126 abstract public void onPackagesAvailable(String[] packageNames, UserHandle user, in onPackagesAvailable() argument
140 abstract public void onPackagesUnavailable(String[] packageNames, UserHandle user, in onPackagesUnavailable() argument
152 public void onPackagesSuspended(String[] packageNames, UserHandle user) { in onPackagesSuspended() argument
164 public void onPackagesUnsuspended(String[] packageNames, UserHandle user) { in onPackagesUnsuspended() argument
880 public void onPackagesAvailable(UserHandle user, String[] packageNames, boolean replacing)
883 Log.d(TAG, "onPackagesAvailable " + user.getIdentifier() + "," + packageNames);
887 callback.postOnPackagesAvailable(packageNames, user, replacing);
893 public void onPackagesUnavailable(UserHandle user, String[] packageNames, boolean replacing)
896 Log.d(TAG, "onPackagesUnavailable " + user.getIdentifier() + "," + packageNames);
900 callback.postOnPackagesUnavailable(packageNames, user, replacing);
[all …]
DIOnAppsChangedListener.aidl29 void onPackagesAvailable(in UserHandle user, in String[] packageNames, boolean replacing); in onPackagesAvailable() argument
30 void onPackagesUnavailable(in UserHandle user, in String[] packageNames, boolean replacing); in onPackagesUnavailable() argument
31 void onPackagesSuspended(in UserHandle user, in String[] packageNames); in onPackagesSuspended() argument
32 void onPackagesUnsuspended(in UserHandle user, in String[] packageNames); in onPackagesUnsuspended() argument
DIPackageManager.aidl273 String[] setPackagesSuspendedAsUser(in String[] packageNames, boolean suspended, int userId); in setPackagesSuspendedAsUser() argument
556 void grantDefaultPermissionsToEnabledCarrierApps(in String[] packageNames, int userId); in grantDefaultPermissionsToEnabledCarrierApps() argument
/frameworks/support/customtabs/src/android/support/customtabs/
DCustomTabsClient.java98 List<String> packageNames = packages == null ? new ArrayList<String>() : packages; in getPackageName() local
105 packageNames = new ArrayList<String>(packageNames.size() + 1); in getPackageName()
106 packageNames.add(packageName); in getPackageName()
107 if (packages != null) packageNames.addAll(packages); in getPackageName()
112 for (String packageName : packageNames) { in getPackageName()
/frameworks/support/core-utils/java/android/support/v4/content/
DPermissionChecker.java99 String[] packageNames = context.getPackageManager().getPackagesForUid(uid); in checkPermission() local
100 if (packageNames == null || packageNames.length <= 0) { in checkPermission()
103 packageName = packageNames[0]; in checkPermission()
/frameworks/base/core/java/android/accessibilityservice/
DAccessibilityServiceInfo.java363 public String[] packageNames; field in AccessibilityServiceInfo
495 packageNames = packageNamez.split("(\\s)*,(\\s)*"); in AccessibilityServiceInfo()
560 packageNames = other.packageNames; in updateDynamicallyConfigurableProperties()
707 parcel.writeStringArray(packageNames); in writeToParcel()
721 packageNames = parcel.readStringArray(); in initFromParcel()
765 appendPackageNames(stringBuilder, packageNames); in toString()
797 private static void appendPackageNames(StringBuilder stringBuilder, String[] packageNames) { in appendPackageNames() argument
800 if (packageNames != null) { in appendPackageNames()
801 final int packageNameCount = packageNames.length; in appendPackageNames()
803 stringBuilder.append(packageNames[i]); in appendPackageNames()
/frameworks/base/services/tests/servicestests/src/com/android/server/storage/
DDiskStatsFileLoggerTest.java119 JSONArray packageNames = output.getJSONArray(DiskStatsFileLogger.PACKAGE_NAMES_KEY); in testAppsReported() local
120 assertThat(packageNames.length()).isEqualTo(2); in testAppsReported()
130 for (int i = 0; i < packageNames.length(); i++) { in testAppsReported()
131 AppSizeGrouping app = new AppSizeGrouping(packageNames.getString(i), in testAppsReported()
180 JSONArray packageNames = output.getJSONArray(DiskStatsFileLogger.PACKAGE_NAMES_KEY); in testDuplicatePackageNameIsMergedAcrossMultipleUsers() local
181 assertThat(packageNames.length()).isEqualTo(1); in testDuplicatePackageNameIsMergedAcrossMultipleUsers()
182 assertThat(packageNames.getString(0)).isEqualTo("com.test.app"); in testDuplicatePackageNameIsMergedAcrossMultipleUsers()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/net/
DUidDetailProvider.java146 final String[] packageNames = pm.getPackagesForUid(uid); in buildUidDetail() local
147 final int length = packageNames != null ? packageNames.length : 0; in buildUidDetail()
153 final ApplicationInfo info = ipm.getApplicationInfo(packageNames[0], in buildUidDetail()
164 final String packageName = packageNames[i]; in buildUidDetail()
/frameworks/base/test-runner/src/android/test/suitebuilder/
DTestSuiteBuilder.java99 public TestSuiteBuilder includePackages(String... packageNames) { in includePackages() argument
100 testGrouping.addPackagesRecursive(packageNames); in includePackages()
110 public TestSuiteBuilder excludePackages(String... packageNames) { in excludePackages() argument
111 testGrouping.removePackagesRecursive(packageNames); in excludePackages()
DTestGrouping.java115 public TestGrouping addPackagesRecursive(String... packageNames) { in addPackagesRecursive() argument
116 for (String packageName : packageNames) { in addPackagesRecursive()
137 public TestGrouping removePackagesRecursive(String... packageNames) { in removePackagesRecursive() argument
138 for (String packageName : packageNames) { in removePackagesRecursive()
/frameworks/base/packages/SystemUI/src/com/android/systemui/tv/pip/
DPipManager.java181 String[] packageNames = intent.getStringArrayExtra(Intent.EXTRA_PACKAGES);
184 if (packageNames != null && packageNames.length > 0
186 handleMediaResourceGranted(packageNames);
478 private void handleMediaResourceGranted(String[] packageNames) { in handleMediaResourceGranted() argument
480 mLastPackagesResourceGranted = packageNames; in handleMediaResourceGranted()
485 for (String newPackageName : packageNames) { in handleMediaResourceGranted()
493 mLastPackagesResourceGranted = packageNames; in handleMediaResourceGranted()
/frameworks/base/core/java/android/app/backup/
DIBackupManager.aidl172 boolean doCompress, in String[] packageNames); in fullBackup() argument
180 void fullTransportBackup(in String[] packageNames); in fullTransportBackup() argument
/frameworks/base/services/backup/java/com/android/server/backup/
DTrampoline.java229 boolean allIncludesSystem, boolean doCompress, String[] packageNames) in fullBackup() argument
234 allApps, allIncludesSystem, doCompress, packageNames); in fullBackup()
239 public void fullTransportBackup(String[] packageNames) throws RemoteException { in fullTransportBackup() argument
242 svc.fullTransportBackup(packageNames); in fullTransportBackup()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/car/
DCarNavigationBarController.java163 private void initFacetFilterMaps(int id, String[] packageNames, String[] categories) { in initFacetFilterMaps() argument
169 mFacetPackages.add(packageNames); in initFacetFilterMaps()
170 for (int i = 0; i < packageNames.length; i++) { in initFacetFilterMaps()
171 mFacetPackageMap.put(packageNames[i], id); in initFacetFilterMaps()
/frameworks/base/telephony/java/com/android/internal/telephony/
DCarrierAppUtils.java235 String[] packageNames = new String[enabledCarrierPackages.size()]; in disableCarrierAppsUntilPrivileged() local
236 enabledCarrierPackages.toArray(packageNames); in disableCarrierAppsUntilPrivileged()
237 packageManager.grantDefaultPermissionsToEnabledCarrierApps(packageNames, userId); in disableCarrierAppsUntilPrivileged()
/frameworks/base/services/core/java/com/android/server/accounts/
DAccountManagerBackupHelper.java177 final String[] packageNames = packageManager.getPackagesForUid(uid); in backupAccountAccessPermissions() local
178 if (packageNames == null) { in backupAccountAccessPermissions()
182 for (String packageName : packageNames) { in backupAccountAccessPermissions()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DSMSDispatcher.java969 String[] packageNames = pm.getPackagesForUid(Binder.getCallingUid()); in sendRawPdu() local
971 if (packageNames == null || packageNames.length == 0) { in sendRawPdu()
982 appInfo = pm.getPackageInfo(packageNames[0], PackageManager.GET_SIGNATURES); in sendRawPdu()
1565 String[] packageNames = pm.getPackagesForUid(Binder.getCallingUid()); in getSmsTracker() local
1569 if (packageNames != null && packageNames.length > 0) { in getSmsTracker()
1572 appInfo = pm.getPackageInfo(packageNames[0], PackageManager.GET_SIGNATURES); in getSmsTracker()
/frameworks/support/compat/java/android/support/v4/app/
DNotificationManagerCompat.java322 Set<String> packageNames = new HashSet<String>(components.length); in getEnabledListenerPackages() local
326 packageNames.add(componentName.getPackageName()); in getEnabledListenerPackages()
329 sEnabledNotificationListenerPackages = packageNames; in getEnabledListenerPackages()
/frameworks/base/services/tests/servicestests/src/com/android/server/
DAccessibilityManagerTest.java82 accessibilityServiceInfo.packageNames = new String[] { "foo.bar" }; in testGetAccessibilityServiceList()
DMockAccessibilityService.java69 defaultInfo.packageNames = new String[] { in createDefaultInfo()
/frameworks/base/services/core/java/com/android/server/vr/
DVrManagerService.java271 public void update(Collection<String> packageNames) { in update() argument
293 if (!packageNames.contains(pkg)) { in update()
300 for (String pkg : packageNames) { in update()
310 allowed.addAll(packageNames); in update()
/frameworks/base/core/java/android/os/storage/
DStorageManager.java969 String[] packageNames = ActivityThread.getPackageManager().getPackagesForUid( in getVolumeList() local
971 if (packageNames == null || packageNames.length <= 0) { in getVolumeList()
974 packageName = packageNames[0]; in getVolumeList()
/frameworks/base/core/java/android/app/admin/
DDevicePolicyManager.java4051 public String[] setPackagesSuspended(@NonNull ComponentName admin, String[] packageNames, in setPackagesSuspended() argument
4056 return mService.setPackagesSuspended(admin, packageNames, suspended); in setPackagesSuspended()
4061 return packageNames; in setPackagesSuspended()
4744 List<String> packageNames) { in setPermittedAccessibilityServices() argument
4748 return mService.setPermittedAccessibilityServices(admin, packageNames); in setPermittedAccessibilityServices()
4845 … public boolean setPermittedInputMethods(@NonNull ComponentName admin, List<String> packageNames) { in setPermittedInputMethods() argument
4849 return mService.setPermittedInputMethods(admin, packageNames); in setPermittedInputMethods()
4960 @NonNull List<String> packageNames) { in setKeepUninstalledPackages() argument
4964 mService.setKeepUninstalledPackages(admin, packageNames); in setKeepUninstalledPackages()
/frameworks/base/services/core/java/com/android/server/am/
DRecentTasks.java260 final Set<String> packageNames = Sets.newHashSet(packages); in onPackagesSuspendedChanged() local
264 && packageNames.contains(tr.realActivity.getPackageName()) in onPackagesSuspendedChanged()

123