Home
last modified time | relevance | path

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

123456

/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/
DNetworkSuggestionNominatorTest.java128 String[] packageNames = {}; in testSelectNetworkSuggestionForNoMatch() local
137 packageNames, autojoin, shareWithUser, priorityGroup); in testSelectNetworkSuggestionForNoMatch()
171 String[] packageNames = {TEST_PACKAGE}; in testSelectNetworkSuggestionForOneMatch() local
179 packageNames, autojoin, shareWithUser, priorityGroup); in testSelectNetworkSuggestionForOneMatch()
211 String[] packageNames = {TEST_PACKAGE}; in testSelectNetworkSuggestionForOneMatchWithInsecureEnterpriseSuggestion() local
220 packageNames, autojoin, shareWithUser, priorityGroup); in testSelectNetworkSuggestionForOneMatchWithInsecureEnterpriseSuggestion()
259 String[] packageNames = {TEST_PACKAGE, TEST_PACKAGE}; in testSelectNetworkSuggestionForMultipleMatch() local
268 packageNames, autojoin, shareWithUser, priorityGroup); in testSelectNetworkSuggestionForMultipleMatch()
305 String[] packageNames = {TEST_PACKAGE, TEST_PACKAGE}; in testSelectNetworkSuggestionForMultipleMatchHighPriorityWins() local
314 packageNames, autojoin, shareWithUser, priorityGroup); in testSelectNetworkSuggestionForMultipleMatchHighPriorityWins()
[all …]
/packages/modules/AdServices/adservices/framework/java/android/adservices/common/
DAppInstallFilters.java119 JSONArray packageNames = new JSONArray(); in toJson() local
121 packageNames.put(packageName); in toJson()
123 toReturn.put(PACKAGE_NAMES_FIELD_NAME, packageNames); in toJson()
137 Set<String> packageNames = new HashSet<>(); in fromJson() local
141 packageNames.add((String) packageName); in fromJson()
147 return new Builder().setPackageNames(packageNames).build(); in fromJson()
194 public Builder setPackageNames(@NonNull Set<String> packageNames) { in setPackageNames() argument
195 Objects.requireNonNull(packageNames); in setPackageNames()
196 mPackageNames = packageNames; in setPackageNames()
/packages/apps/Launcher3/src/com/android/launcher3/model/
DModelLauncherCallbacks.kt62 vararg packageNames: String, in onPackagesAvailable()
66 taskExecutor.accept(PackageUpdatedTask(OP_UPDATE, user, *packageNames)) in onPackagesAvailable()
69 override fun onPackagesSuspended(vararg packageNames: String, user: UserHandle) { in onPackagesSuspended()
70 taskExecutor.accept(PackageUpdatedTask(OP_SUSPEND, user, *packageNames)) in onPackagesSuspended()
74 packageNames: Array<String>, in onPackagesUnavailable()
79 taskExecutor.accept(PackageUpdatedTask(OP_UNAVAILABLE, user, *packageNames)) in onPackagesUnavailable()
83 override fun onPackagesUnsuspended(vararg packageNames: String, user: UserHandle) { in onPackagesUnsuspended()
84 taskExecutor.accept(PackageUpdatedTask(OP_UNSUSPEND, user, *packageNames)) in onPackagesUnsuspended()
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/module/
DDefaultPackageStatusNotifier.java104 public void onPackagesAvailable(String[] packageNames, UserHandle userHandle, in onPackagesAvailable() argument
106 for (String packageName : packageNames) { in onPackagesAvailable()
115 public void onPackagesUnavailable(String[] packageNames, UserHandle userHandle, in onPackagesUnavailable() argument
117 for (String packageName : packageNames) { in onPackagesUnavailable()
125 public void onPackagesSuspended(String[] packageNames, UserHandle user) { in onPackagesSuspended() argument
126 for (String packageName : packageNames) { in onPackagesSuspended()
134 public void onPackagesUnsuspended(String[] packageNames, UserHandle user) { in onPackagesUnsuspended() argument
135 for (String packageName : packageNames) { in onPackagesUnsuspended()
/packages/modules/Permission/PermissionController/role-controller/java/com/android/role/controller/behavior/v35/
DWalletRoleBehavior.java107 Set<String> packageNames = resolvePackageNames(QuickAccessWalletService.SERVICE_INTERFACE, in getQualifyingPackageNamesInternal() local
110 packageNames.addAll(getQualifyingApduServicesAsUser(packageName, false, user, in getQualifyingPackageNamesInternal()
112 packageNames.addAll(getQualifyingApduServicesAsUser(packageName, true, user, in getQualifyingPackageNamesInternal()
115 return packageNames; in getQualifyingPackageNamesInternal()
126 Set<String> packageNames = new ArraySet<>(); in resolvePackageNames() local
133 packageNames.add(serviceInfo.packageName); in resolvePackageNames()
135 return packageNames; in resolvePackageNames()
149 Set<String> packageNames = new ArraySet<>(); in getQualifyingApduServicesAsUser() local
165 packageNames.add(resolveInfo.serviceInfo.packageName); in getQualifyingApduServicesAsUser()
168 return packageNames; in getQualifyingApduServicesAsUser()
/packages/apps/Settings/src/com/android/settings/datausage/
DAppDataUsageAppSettingsController.kt39 private var packageNames: Iterable<String> = emptyList() in <lambda>() variable
48 fun init(packageNames: Iterable<String>, userId: Int) { in <lambda>()
49 this.packageNames = packageNames in <lambda>()
68 packageNames.map { packageName -> in <lambda>()
/packages/services/Car/tests/RailwayReferenceApp/src/com/google/android/car/networking/railway/
DConfigurationUpdater.java51 public void updateNetworkConfiguration(String packageNames, in updateNetworkConfiguration() argument
60 interfaceName, networkCapabilitiesText, packageNames)) in updateNetworkConfiguration()
78 String packageNames) throws PackageManager.NameNotFoundException { in getCapabilities() argument
94 if (!Strings.isNullOrEmpty(packageNames)) { in getCapabilities()
96 UidToPackageNameConverter.convertToUids(mApplicationContext, packageNames)); in getCapabilities()
/packages/modules/HealthFitness/service/java/com/android/server/healthconnect/permission/
DFirstGrantTimeManager.java171 final String[] packageNames = mPackageManager.getPackagesForUid(uid); in updateFirstGrantTimesFromPermissionState() local
172 if (packageNames == null) { in updateFirstGrantTimesFromPermissionState()
179 if (!checkSupportPermissionsUsageIntent(packageNames, user)) { in updateFirstGrantTimesFromPermissionState()
180 logIfInDebugMode("Cannot find health intent declaration in ", packageNames[0]); in updateFirstGrantTimesFromPermissionState()
185 updateFirstGrantTimesFromPermissionState(uid, user, packageNames); in updateFirstGrantTimesFromPermissionState()
189 () -> updateFirstGrantTimesFromPermissionState(uid, user, packageNames)); in updateFirstGrantTimesFromPermissionState()
206 int uid, UserHandle user, String[] packageNames) { in updateFirstGrantTimesFromPermissionState() argument
216 packageNames, user, getUserContext(user)); in updateFirstGrantTimesFromPermissionState()
227 () -> removeAppsFromPriorityList(packageNames)); in updateFirstGrantTimesFromPermissionState()
249 packageNames, user, getUserContext(user))); in updateFirstGrantTimesFromPermissionState()
[all …]
/packages/modules/Permission/PermissionController/role-controller/java/com/android/role/controller/behavior/
DAssistantRoleBehavior.java64 List<String> packageNames = roleManager.getRoleHoldersAsUser(role.getName(), user); in onRoleAddedAsUser() local
65 if (packageNames.isEmpty()) { in onRoleAddedAsUser()
100 Set<String> packageNames = new ArraySet<>(); in getQualifyingPackagesInternal() local
124 packageNames.add(serviceInfo.packageName); in getQualifyingPackagesInternal()
145 packageNames.add(activityInfo.packageName); in getQualifyingPackagesInternal()
148 return new ArrayList<>(packageNames); in getQualifyingPackagesInternal()
DBrowserRoleBehavior.java100 List<String> packageNames = getQualifyingPackagesAsUserInternal(packageName, false, in isPackageQualifiedAsUser() local
102 return !packageNames.isEmpty(); in isPackageQualifiedAsUser()
122 ArraySet<String> packageNames = new ArraySet<>(); in getQualifyingPackagesAsUserInternal() local
130 packageNames.add(resolveInfo.activityInfo.packageName); in getQualifyingPackagesAsUserInternal()
132 return new ArrayList<>(packageNames); in getQualifyingPackagesAsUserInternal()
DEmergencyRoleBehavior.java54 List<String> packageNames = role.getQualifyingPackagesAsUser(user, context); in getFallbackHolderAsUser() local
56 int packageNamesSize = packageNames.size(); in getFallbackHolderAsUser()
58 String packageName = packageNames.get(i); in getFallbackHolderAsUser()
/packages/apps/Launcher3/quickstep/src/com/android/launcher3/model/
DWellbeingModel.java200 private boolean updateActions(String[] packageNames) { in updateActions() argument
201 if (packageNames.length == 0) { in updateActions()
206 packageNames) + "]"); in updateActions()
221 params.putStringArray(EXTRA_PACKAGES, packageNames); in updateActions()
230 Arrays.stream(packageNames).forEach(mPackageToActionId::remove); in updateActions()
270 String[] packageNames = TextUtils.isEmpty(packageName) in updateActionsWithRetry() local
278 if (updateActions(packageNames)) { in updateActionsWithRetry()
/packages/modules/AppSearch/service/java/com/android/server/appsearch/external/localstorage/visibilitystore/
DVisibilityStoreMigrationHelperFromV1.java125 String[] packageNames = visibilityDocumentV1.getPackageNames(); in toVisibilityDocumentsV2() local
127 if (packageNames.length == sha256Certs.length) { in toVisibilityDocumentsV2()
128 for (int j = 0; j < packageNames.length; j++) { in toVisibilityDocumentsV2()
130 new PackageIdentifier(packageNames[j], sha256Certs[j])); in toVisibilityDocumentsV2()
/packages/modules/HealthFitness/tests/unittests/src/com/android/server/healthconnect/permission/
DFirstGrantTimeUnitTest.java195 String[] packageNames = {"package.name"}; in testOnPermissionsChangedCalledWhileDeviceIsLocked_getGrantTimeNotNullAfterUnlock() local
196 when(mPackageManager.getPackagesForUid(uid)).thenReturn(packageNames); in testOnPermissionsChangedCalledWhileDeviceIsLocked_getGrantTimeNotNullAfterUnlock()
197 when(mTracker.supportsPermissionUsageIntent(eq(packageNames[0]), ArgumentMatchers.any())) in testOnPermissionsChangedCalledWhileDeviceIsLocked_getGrantTimeNotNullAfterUnlock()
219 String[] packageNames = {"package.name"}; in testOnPermissionsChangedCalled_withHealthPermissionsUid_expectBackgroundTaskAdded() local
220 when(mPackageManager.getPackagesForUid(uid)).thenReturn(packageNames); in testOnPermissionsChangedCalled_withHealthPermissionsUid_expectBackgroundTaskAdded()
221 when(mTracker.supportsPermissionUsageIntent(eq(packageNames[0]), ArgumentMatchers.any())) in testOnPermissionsChangedCalled_withHealthPermissionsUid_expectBackgroundTaskAdded()
237 String[] packageNames = {"package.name"}; in testOnPermissionsChangedCalled_withNoHealthPermissionsUid_expectNoBackgroundTaskAdded() local
238 when(mPackageManager.getPackagesForUid(uid)).thenReturn(packageNames); in testOnPermissionsChangedCalled_withNoHealthPermissionsUid_expectNoBackgroundTaskAdded()
239 when(mTracker.supportsPermissionUsageIntent(eq(packageNames[0]), ArgumentMatchers.any())) in testOnPermissionsChangedCalled_withNoHealthPermissionsUid_expectNoBackgroundTaskAdded()
/packages/modules/Connectivity/service/src/com/android/server/connectivity/
DSatelliteAccessController.java124 private Set<Integer> updateSatelliteNetworkFallbackUidListCache(List<String> packageNames, in updateSatelliteNetworkFallbackUidListCache() argument
130 for (String packageName : packageNames) { in updateSatelliteNetworkFallbackUidListCache()
177 final List<String> packageNames = in onRoleSmsChanged() local
184 Log.i(TAG, "currentUser : role_sms_packages: " + userId + " : " + packageNames); in onRoleSmsChanged()
186 updateSatelliteNetworkFallbackUidListCache(packageNames, userHandle); in onRoleSmsChanged()
/packages/providers/TvProvider/src/com/android/providers/tv/
DBootCompletedReceiver.java94 List<String> packageNames = new ArrayList<>(); in deleteRowsOfUninstalledPackagesInternal() local
100 packageNames.add(packageName); in deleteRowsOfUninstalledPackagesInternal()
105 Log.d(TAG, "Packages found from rows:" + packageNames); in deleteRowsOfUninstalledPackagesInternal()
108 for (String packageName : packageNames) { in deleteRowsOfUninstalledPackagesInternal()
/packages/apps/Launcher3/go/quickstep/src/com/android/launcher3/model/
DAppShareabilityManager.java173 List<String> packageNames = new ArrayList<>(); in updateCache() local
175 packageNames.add(packageName); in updateCache()
181 packageNames.add(installedApps.get(i).getApplicationInfo().packageName); in updateCache()
185 mShareChecker.checkApps(packageNames, this, callback); in updateCache()
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/data/
DBroadcastReceiverLiveData.kt74 val packageNames = in <lambda>() constant
102 "Detected ${intentAction.substringAfterLast(".")}s: $packageNames" in <lambda>()
106 postValue(packageNames) in <lambda>()
DPermGroupLiveData.kt109 val packageNames = in <lambda>() constant
111 packageNames.add(groupInfo.packageName) in <lambda>()
117 setSourcesToDifference(packageNames, packageLiveDatas, getLiveData) in <lambda>()
/packages/apps/Settings/src/com/android/settings/applications/
DDefaultAppsPreferenceController.java88 final List<String> packageNames = mRoleManager.getRoleHolders(roleName); in getDefaultAppLabel() local
89 if (packageNames.isEmpty()) { in getDefaultAppLabel()
92 final String packageName = packageNames.get(0); in getDefaultAppLabel()
/packages/modules/AppSearch/testing/appsindexertests/src/com/android/server/appsearch/appsindexer/
DAppsUtilTest.java69 List<String> packageNames = new ArrayList<>(); in testBuildAppsFromPackageInfos_ReturnsNonNullList() local
71 packageNames.add(resultApps.get(i).getPackageName()); in testBuildAppsFromPackageInfos_ReturnsNonNullList()
73 assertThat(packageNames) in testBuildAppsFromPackageInfos_ReturnsNonNullList()
/packages/apps/Settings/src/com/android/settings/fuelgauge/batteryusage/
DAppOptModeSharedPreferencesUtils.kt56 packageNames: List<String>, in <lambda>()
66 packageNames, in <lambda>()
105 packageNames: List<String>, in <lambda>()
115 val packageName = packageNames[i] in <lambda>()
/packages/modules/Permission/service/java/com/android/role/
DRoleUserState.java281 ArraySet<String> packageNames = mRoles.get(roleName); in getRoleHolders() local
282 if (packageNames == null) { in getRoleHolders()
285 return new ArraySet<>(packageNames); in getRoleHolders()
323 ArraySet<String> packageNames = mRoles.valueAt(i); in setRoleNames() local
324 if (!packageNames.isEmpty()) { in setRoleNames()
326 + " role: " + roleName + ", holders: " + packageNames); in setRoleNames()
/packages/apps/SecureElement/src/com/android/se/security/
DAccessControlEnforcer.java395 String[] packageNames) { in isNfcEventAllowed() argument
397 return internal_isNfcEventAllowed(aid, packageNames); in isNfcEventAllowed()
402 boolean[] ret = new boolean[packageNames.length]; in isNfcEventAllowed()
411 String[] packageNames) { in internal_isNfcEventAllowed() argument
413 boolean[] nfcEventFlags = new boolean[packageNames.length]; in internal_isNfcEventAllowed()
414 for (String packageName : packageNames) { in internal_isNfcEventAllowed()
/packages/modules/AdServices/sdksandbox/tests/unittest/src/com/android/server/sdksandbox/helpers/
DPackageManagerHelperUnitTest.java123 List<String> packageNames = mPackageManagerHelper.getPackageNamesForUid(mClientAppUid); in testGetPackageNamesForUid() local
124 assertThat(packageNames.size()).isEqualTo(1); in testGetPackageNamesForUid()
125 assertThat(packageNames.get(0)).isEqualTo(TEST_PACKAGE); in testGetPackageNamesForUid()

123456