Home
last modified time | relevance | path

Searched refs:pkgs (Results 1 – 25 of 34) sorted by relevance

12

/packages/apps/Settings/src/com/android/settings/display/
DThemePreferenceController.java81 String[] pkgs = getAvailableThemes(false /* currentThemeOnly */); in updateState() local
82 CharSequence[] labels = new CharSequence[pkgs.length]; in updateState()
83 for (int i = 0; i < pkgs.length; i++) { in updateState()
85 labels[i] = mPackageManager.getApplicationInfo(pkgs[i], 0) in updateState()
88 labels[i] = pkgs[i]; in updateState()
92 pref.setEntryValues(pkgs); in updateState()
96 for (int i = 0; i < pkgs.length; i++) { in updateState()
97 if (TextUtils.equals(pkgs[i], theme)) { in updateState()
154 List<String> pkgs; in getAvailableThemes() local
157 pkgs = new ArrayList<>(infos.size()); in getAvailableThemes()
[all …]
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/display/
DThemePreferenceController.java81 String[] pkgs = getAvailableThemes(false /* currentThemeOnly */); in updateState() local
82 CharSequence[] labels = new CharSequence[pkgs.length]; in updateState()
83 for (int i = 0; i < pkgs.length; i++) { in updateState()
85 labels[i] = mPackageManager.getApplicationInfo(pkgs[i], 0) in updateState()
88 labels[i] = pkgs[i]; in updateState()
92 pref.setEntryValues(pkgs); in updateState()
96 for (int i = 0; i < pkgs.length; i++) { in updateState()
97 if (TextUtils.equals(pkgs[i], theme)) { in updateState()
154 List<String> pkgs; in getAvailableThemes() local
157 pkgs = new ArrayList<>(infos.size()); in getAvailableThemes()
[all …]
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/development/
DOverlayCategoryPreferenceController.java151 final List<String> pkgs = new ArrayList<>(); in updateState() local
158 pkgs.add(selectedPkg); in updateState()
162 pkgs.add(overlayInfo.packageName); in updateState()
170 selectedPkg = pkgs.get(pkgs.size() - 1); in updateState()
176 mPreference.setEntryValues(pkgs.toArray(new String[pkgs.size()])); in updateState()
DAppPicker.java101 List<ApplicationInfo> pkgs = context.getPackageManager().getInstalledApplications(0); in AppListAdapter() local
102 for (int i=0; i<pkgs.size(); i++) { in AppListAdapter()
103 ApplicationInfo ai = pkgs.get(i); in AppListAdapter()
/packages/apps/Settings/src/com/android/settings/development/
DOverlayCategoryPreferenceController.java151 final List<String> pkgs = new ArrayList<>(); in updateState() local
158 pkgs.add(selectedPkg); in updateState()
162 pkgs.add(overlayInfo.packageName); in updateState()
170 selectedPkg = pkgs.get(pkgs.size() - 1); in updateState()
176 mPreference.setEntryValues(pkgs.toArray(new String[pkgs.size()])); in updateState()
DAppPicker.java101 List<ApplicationInfo> pkgs = context.getPackageManager().getInstalledApplications(0); in AppListAdapter() local
102 for (int i=0; i<pkgs.size(); i++) { in AppListAdapter()
103 ApplicationInfo ai = pkgs.get(i); in AppListAdapter()
/packages/apps/Settings/tests/robotests/src/com/android/settings/datausage/
DAppPrefLoaderTest.java53 final ArraySet<String> pkgs = new ArraySet<>(2); in setUp() local
54 pkgs.add("pkg0"); in setUp()
55 pkgs.add("pkg1"); in setUp()
56 mLoader = new AppPrefLoader(RuntimeEnvironment.application, pkgs, mPackageManager); in setUp()
/packages/apps/Settings/src/com/android/settings/webview/
DWebViewUpdateServiceWrapper.java64 List<ApplicationInfo> pkgs = new ArrayList<>(); in getValidWebViewApplicationInfos() local
67 pkgs.add(context.getPackageManager().getApplicationInfo( in getValidWebViewApplicationInfos()
72 return pkgs; in getValidWebViewApplicationInfos()
/packages/apps/PermissionController/src/com/android/packageinstaller/permission/data/
DNonSensitivePackagesLiveData.java66 ArrayList<ApplicationInfo> pkgs = new ArrayList<>(); in NonSensitivePackagesLiveData()
88 pkgs.add(appInfo); in NonSensitivePackagesLiveData()
97 postValue(pkgs); in NonSensitivePackagesLiveData()
DPerUserUidToSensitivityLiveData.java112 List<PackageInfo> pkgs = pm.getInstalledPackages(PackageManager.GET_PERMISSIONS); in loadValueInBackground() local
120 int numPkgs = pkgs.size(); in loadValueInBackground()
122 PackageInfo pkg = pkgs.get(pkgNum); in loadValueInBackground()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/webview/
DWebViewUpdateServiceWrapper.java64 List<ApplicationInfo> pkgs = new ArrayList<>(); in getValidWebViewApplicationInfos() local
67 pkgs.add(context.getPackageManager().getApplicationInfo( in getValidWebViewApplicationInfos()
72 return pkgs; in getValidWebViewApplicationInfos()
/packages/apps/PermissionController/src/com/android/packageinstaller/permission/service/
DBackupHelper.java252 @NonNull ArrayList<BackupPackageState> pkgs) throws IOException { in writePkgsAsXml() argument
268 int numPkgs = pkgs.size(); in writePkgsAsXml()
270 BackupPackageState packageState = pkgs.get(i); in writePkgsAsXml()
309 List<PackageInfo> pkgs = mContext.getPackageManager().getInstalledPackages( in writeState() local
313 int numPkgs = pkgs.size(); in writeState()
316 pkgs.get(i)); in writeState()
/packages/apps/Settings/src/com/android/settings/applications/specialaccess/zenaccess/
DZenAccessController.java70 final List<PackageInfo> pkgs = list.getList(); in getPackagesRequestingNotificationPolicyAccess() local
71 if (pkgs != null) { in getPackagesRequestingNotificationPolicyAccess()
72 for (PackageInfo info : pkgs) { in getPackagesRequestingNotificationPolicyAccess()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/applications/specialaccess/zenaccess/
DZenAccessController.java70 final List<PackageInfo> pkgs = list.getList(); in getPackagesRequestingNotificationPolicyAccess() local
71 if (pkgs != null) { in getPackagesRequestingNotificationPolicyAccess()
72 for (PackageInfo info : pkgs) { in getPackagesRequestingNotificationPolicyAccess()
/packages/modules/CellBroadcastService/src/com/android/cellbroadcastservice/
DCdmaServiceCategoryProgramHandler.java140 String[] pkgs = mContext.getResources().getStringArray( in handleServiceCategoryProgramData() local
142 mReceiverCount.addAndGet(pkgs.length); in handleServiceCategoryProgramData()
143 for (String pkg : pkgs) { in handleServiceCategoryProgramData()
DCellBroadcastHandler.java525 String[] pkgs = mContext.getResources().getStringArray( in broadcastMessage() local
527 if (pkgs != null) { in broadcastMessage()
528 mReceiverCount.addAndGet(pkgs.length); in broadcastMessage()
529 for (String pkg : pkgs) { in broadcastMessage()
/packages/apps/Settings/src/com/android/settings/applications/appops/
DAppOpsState.java549 List<AppOpsManager.PackageOps> pkgs; in buildState() local
551 pkgs = mAppOps.getOpsForPackage(uid, packageName, tpl.ops); in buildState()
553 pkgs = mAppOps.getPackagesForOps(tpl.ops); in buildState()
556 if (pkgs != null) { in buildState()
557 for (int i=0; i<pkgs.size(); i++) { in buildState()
558 AppOpsManager.PackageOps pkgOps = pkgs.get(i); in buildState()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/applications/appops/
DAppOpsState.java549 List<AppOpsManager.PackageOps> pkgs; in buildState() local
551 pkgs = mAppOps.getOpsForPackage(uid, packageName, tpl.ops); in buildState()
553 pkgs = mAppOps.getPackagesForOps(tpl.ops); in buildState()
556 if (pkgs != null) { in buildState()
557 for (int i=0; i<pkgs.size(); i++) { in buildState()
558 AppOpsManager.PackageOps pkgOps = pkgs.get(i); in buildState()
/packages/apps/Settings/src/com/android/settings/datausage/
DAppPrefLoader.java33 public AppPrefLoader(Context prefContext, ArraySet<String> pkgs, PackageManager pm) { in AppPrefLoader() argument
35 mPackages = pkgs; in AppPrefLoader()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/datausage/
DAppPrefLoader.java33 public AppPrefLoader(Context prefContext, ArraySet<String> pkgs, PackageManager pm) { in AppPrefLoader() argument
35 mPackages = pkgs; in AppPrefLoader()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/applications/
DAppStateAppOpsBridge.java161 String[] pkgs = mIPackageManager.getAppOpPermissionPackages(permission); in getEntries() local
162 if (pkgs != null) { in getEntries()
163 packagesSet.addAll(Arrays.asList(pkgs)); in getEntries()
/packages/apps/Settings/src/com/android/settings/applications/
DAppStateAppOpsBridge.java161 String[] pkgs = mIPackageManager.getAppOpPermissionPackages(permission); in getEntries() local
162 if (pkgs != null) { in getEntries()
163 packagesSet.addAll(Arrays.asList(pkgs)); in getEntries()
/packages/apps/Settings/tests/robotests/src/com/android/settings/testutils/shadow/
DShadowRestrictedLockUtilsInternal.java116 public static void setRestrictedPkgs(String... pkgs) { in setRestrictedPkgs() argument
117 sRestrictedPkgs = pkgs; in setRestrictedPkgs()
/packages/apps/PermissionController/src/com/android/packageinstaller/permission/ui/handheld/
DAdjustUserSensitiveFragment.java368 ArrayList<ApplicationInfo> pkgs = getNonSensitivePackagesLiveData().getValue(); in setAllowOverrideUserSensitive() local
369 int numPkgs = pkgs.size(); in setAllowOverrideUserSensitive()
371 overrides.add(String.valueOf(pkgs.get(i).uid)); in setAllowOverrideUserSensitive()
/packages/apps/Nfc/src/com/android/nfc/
DP2pLinkManager.java561 String[] pkgs = mPackageManager.getPackagesForUid(foregroundUids.get(0)); in prepareMessageToSend() local
562 if (pkgs != null && pkgs.length >= 1) { in prepareMessageToSend()
563 if (!generatePlayLink || beamDefaultDisabled(pkgs[0])) { in prepareMessageToSend()
568 mMessageToSend = createDefaultNdef(pkgs[0]); in prepareMessageToSend()

12