Home
last modified time | relevance | path

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

12

/frameworks/base/telecomm/java/android/telecom/
DDefaultDialerManager.java75 List<String> packageNames = getInstalledDialerApplications(context); in setDefaultDialerApplication() local
77 if (packageNames.contains(packageName)) { in setDefaultDialerApplication()
120 final List<String> packageNames = getInstalledDialerApplications(context); in getDefaultDialerApplication() local
123 if (packageNames.contains(defaultPackageName)) { in getDefaultDialerApplication()
135 if (packageNames.contains(systemDialerPackageName)) { in getDefaultDialerApplication()
160 List<String> packageNames = new ArrayList<>(); in getInstalledDialerApplications() local
164 if (activityInfo != null && !packageNames.contains(activityInfo.packageName)) { in getInstalledDialerApplications()
165 packageNames.add(activityInfo.packageName); in getInstalledDialerApplications()
171 return filterByIntent(context, packageNames, dialIntentWithTelScheme); in getInstalledDialerApplications()
203 private static List<String> filterByIntent(Context context, List<String> packageNames, in filterByIntent() argument
[all …]
/frameworks/base/core/java/android/content/pm/
DLauncherApps.java110 abstract public void onPackagesAvailable(String[] packageNames, UserHandle user, in onPackagesAvailable() argument
124 abstract public void onPackagesUnavailable(String[] packageNames, UserHandle user, in onPackagesUnavailable() argument
399 public void onPackagesAvailable(UserHandle user, String[] packageNames, boolean replacing)
402 Log.d(TAG, "onPackagesAvailable " + user.getIdentifier() + "," + packageNames);
406 callback.postOnPackagesAvailable(packageNames, user, replacing);
412 public void onPackagesUnavailable(UserHandle user, String[] packageNames, boolean replacing)
415 Log.d(TAG, "onPackagesUnavailable " + user.getIdentifier() + "," + packageNames);
419 callback.postOnPackagesUnavailable(packageNames, user, replacing);
435 String[] packageNames; field in LauncherApps.CallbackMessageHandler.CallbackInfo
463 mCallback.onPackagesAvailable(info.packageNames, info.user, info.replacing); in handleMessage()
[all …]
DIOnAppsChangedListener.aidl28 void onPackagesAvailable(in UserHandle user, in String[] packageNames, boolean replacing); in onPackagesAvailable() argument
29 void onPackagesUnavailable(in UserHandle user, in String[] packageNames, boolean replacing); in onPackagesUnavailable() argument
/frameworks/support/v4/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.java345 public String[] packageNames; field in AccessibilityServiceInfo
477 packageNames = packageNamez.split("(\\s)*,(\\s)*"); in AccessibilityServiceInfo()
534 packageNames = other.packageNames; in updateDynamicallyConfigurableProperties()
671 parcel.writeStringArray(packageNames); in writeToParcel()
685 packageNames = parcel.readStringArray(); in initFromParcel()
729 appendPackageNames(stringBuilder, packageNames); in toString()
761 private static void appendPackageNames(StringBuilder stringBuilder, String[] packageNames) { in appendPackageNames() argument
764 if (packageNames != null) { in appendPackageNames()
765 final int packageNameCount = packageNames.length; in appendPackageNames()
767 stringBuilder.append(packageNames[i]); in appendPackageNames()
/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/opt/telephony/src/java/com/android/internal/telephony/
DCarrierAppUtils.java124 String[] packageNames = new String[enabledCarrierPackages.size()]; in disableCarrierAppsUntilPrivileged() local
125 enabledCarrierPackages.toArray(packageNames); in disableCarrierAppsUntilPrivileged()
126 packageManager.grantDefaultPermissionsToEnabledCarrierApps(packageNames, userId); in disableCarrierAppsUntilPrivileged()
DSMSDispatcher.java973 String[] packageNames = pm.getPackagesForUid(Binder.getCallingUid()); in sendRawPdu() local
975 if (packageNames == null || packageNames.length == 0) { in sendRawPdu()
986 appInfo = pm.getPackageInfo(packageNames[0], PackageManager.GET_SIGNATURES); in sendRawPdu()
1555 String[] packageNames = pm.getPackagesForUid(Binder.getCallingUid()); in getSmsTracker() local
1559 if (packageNames != null && packageNames.length > 0) { in getSmsTracker()
1562 appInfo = pm.getPackageInfo(packageNames[0], PackageManager.GET_SIGNATURES); in getSmsTracker()
/frameworks/base/core/java/android/app/backup/
DIBackupManager.aidl171 boolean doCompress, in String[] packageNames); in fullBackup() argument
179 void fullTransportBackup(in String[] packageNames); in fullTransportBackup() argument
/frameworks/base/services/backup/java/com/android/server/backup/
DTrampoline.java226 boolean allIncludesSystem, boolean doCompress, String[] packageNames) in fullBackup() argument
231 allApps, allIncludesSystem, doCompress, packageNames); in fullBackup()
236 public void fullTransportBackup(String[] packageNames) throws RemoteException { in fullTransportBackup() argument
239 svc.fullTransportBackup(packageNames); in fullTransportBackup()
/frameworks/base/core/java/android/os/storage/
DStorageManager.java872 String[] packageNames = ActivityThread.getPackageManager().getPackagesForUid( in getVolumeList() local
874 if (packageNames == null || packageNames.length <= 0) { in getVolumeList()
877 packageName = packageNames[0]; in getVolumeList()
/frameworks/support/v4/java/android/support/v4/app/
DNotificationManagerCompat.java240 Set<String> packageNames = new HashSet<String>(components.length); in getEnabledListenerPackages() local
244 packageNames.add(componentName.getPackageName()); in getEnabledListenerPackages()
248 sEnabledNotificationListenerPackages = packageNames; in getEnabledListenerPackages()
/frameworks/base/services/tests/servicestests/src/com/android/server/
DMockAccessibilityService.java69 defaultInfo.packageNames = new String[] { in createDefaultInfo()
DAccessibilityManagerTest.java68 accessibilityServiceInfo.packageNames = new String[] { "foo.bar" }; in testGetAccessibilityServiceList()
/frameworks/base/services/core/java/com/android/server/pm/
DDefaultPermissionGrantPolicy.java646 public void grantDefaultPermissionsToEnabledCarrierAppsLPr(String[] packageNames, int userId) { in grantDefaultPermissionsToEnabledCarrierAppsLPr() argument
648 if (packageNames == null) { in grantDefaultPermissionsToEnabledCarrierAppsLPr()
651 for (String packageName : packageNames) { in grantDefaultPermissionsToEnabledCarrierAppsLPr()
/frameworks/base/services/core/java/com/android/server/
DAppOpsService.java250 String[] packageNames = getPackagesForUid(uidState.uid); in systemReady() local
251 if (ArrayUtils.isEmpty(packageNames)) { in systemReady()
1774 String[] packageNames = null; in getPackagesForUid() local
1776 packageNames= AppGlobals.getPackageManager().getPackagesForUid(uid); in getPackagesForUid()
1780 if (packageNames == null) { in getPackagesForUid()
1783 return packageNames; in getPackagesForUid()
DTextServicesManagerService.java272 final String[] packageNames = AppGlobals.getPackageManager().getPackagesForUid(uid); in calledFromValidUser() local
273 for (int i = 0; i < packageNames.length; ++i) { in calledFromValidUser()
275 Slog.d(TAG, "--- process name for "+ uid + " = " + packageNames[i]); in calledFromValidUser()
/frameworks/base/docs/html/guide/topics/ui/accessibility/
Dservices.jd134 android:packageNames=&quot;com.example.android.apis&quot;
149 …e/android/R.styleable.html#AccessibilityService_packageNames">{@code android:packageNames}</a></li>
174 in the accessibility service configuration files with the {@code android:packageNames} attribute as
176 android.accessibilityservice.AccessibilityServiceInfo#packageNames
177 AccessibilityServiceInfo.packageNames} member.</li>
/frameworks/base/core/tests/inputmethodtests/src/android/os/
DInputMethodTest.java621 final String[] packageNames = new String[imis.size()]; in getPackageNames() local
623 packageNames[i] = imis.get(i).getPackageName(); in getPackageNames()
625 return packageNames; in getPackageNames()
/frameworks/base/docs/html/training/accessibility/
Dservice.jd114 info.packageNames = new String[]
144 android:packageNames="com.example.android.myFirstApp, com.example.android.mySecondApp"
/frameworks/base/services/core/java/com/android/server/media/
DMediaRouterService.java479 String[] packageNames = mContext.getPackageManager().getPackagesForUid(uid); in validatePackageName() local
480 if (packageNames != null) { in validatePackageName()
481 for (String n : packageNames) { in validatePackageName()
/frameworks/base/services/core/java/com/android/server/display/
DDisplayManagerService.java1456 String[] packageNames = mContext.getPackageManager().getPackagesForUid(uid); in validatePackageName() local
1457 if (packageNames != null) { in validatePackageName()
1458 for (String n : packageNames) { in validatePackageName()
/frameworks/base/core/java/android/app/admin/
DDevicePolicyManager.java3504 List<String> packageNames) { in setPermittedAccessibilityServices() argument
3507 return mService.setPermittedAccessibilityServices(admin, packageNames); in setPermittedAccessibilityServices()
3582 … public boolean setPermittedInputMethods(@NonNull ComponentName admin, List<String> packageNames) { in setPermittedInputMethods() argument
3585 return mService.setPermittedInputMethods(admin, packageNames); in setPermittedInputMethods()
/frameworks/base/services/accessibility/java/com/android/server/accessibility/
DAccessibilityManagerService.java1117 Set<String> packageNames = service.mPackageNames; in canDispatchEventToServiceLocked() local
1121 if (packageNames.isEmpty() || packageNames.contains(packageName)) { in canDispatchEventToServiceLocked()
2020 String[] packageNames = info.packageNames; in setDynamicallyConfigurableProperties() local
2021 if (packageNames != null) { in setDynamicallyConfigurableProperties()
2022 mPackageNames.addAll(Arrays.asList(packageNames)); in setDynamicallyConfigurableProperties()

12