Lines Matching refs:cn

212         public boolean filterItem(ItemInfo parent, ItemInfo info, ComponentName cn);  in filterItem()  argument
287 ComponentName cn = si.getTargetComponent(); in setPackageState()
288 if (si.isPromise() && (cn != null) in setPackageState()
289 && installInfo.packageName.equals(cn.getPackageName())) { in setPackageState()
341 ComponentName cn = si.getTargetComponent(); in updateSessionDisplayInfo()
342 if (si.isPromise() && (cn != null) in updateSessionDisplayInfo()
343 && packageName.equals(cn.getPackageName())) { in updateSessionDisplayInfo()
1051 public boolean filterItem(ItemInfo parent, ItemInfo info, ComponentName cn) { in getItemsByPackageName()
1052 return cn.getPackageName().equals(pn) && info.user.equals(user); in getItemsByPackageName()
1855 ComponentName cn = intent.getComponent(); in loadWorkspace() local
1856 if (cn != null && cn.getPackageName() != null) { in loadWorkspace()
1858 cn.getPackageName(), user); in loadWorkspace()
1860 launcherApps.isActivityEnabledForProfile(cn, user); in loadWorkspace()
1862 targetPackage = cn.getPackageName(); in loadWorkspace()
1880 cn.getPackageName()); in loadWorkspace()
1893 "Invalid component removed: " + cn, true); in loadWorkspace()
1905 "package not yet restored: " + cn, true); in loadWorkspace()
1909 … } else if (installingPkgs.containsKey(cn.getPackageName())) { in loadWorkspace()
1923 cn = intent.getComponent(); in loadWorkspace()
1932 … "Unrestored package removed: " + cn, true); in loadWorkspace()
1938 "Unrestored package removed: " + cn, true); in loadWorkspace()
1943 manager, cn.getPackageName())) { in loadWorkspace()
1950 Launcher.addDumpLog(TAG, "Invalid package: " + cn in loadWorkspace()
1957 pkgs.add(cn.getPackageName()); in loadWorkspace()
1965 "Invalid package removed: " + cn, true); in loadWorkspace()
1969 } else if (cn == null) { in loadWorkspace()
2059 ComponentName cn = info.getTargetComponent(); in loadWorkspace() local
2060 if (cn != null) { in loadWorkspace()
2061 … Integer progress = installingPkgs.get(cn.getPackageName()); in loadWorkspace()
2907 ComponentName cn = si.getTargetComponent();
2908 if (cn != null && updatedPackages.contains(cn.getPackageName())) {
3147 ComponentName cn = si.getTargetComponent();
3148 if (cn != null && pkgFilter.matches(cn.getPackageName())) {
3149 AppInfo appInfo = addedOrUpdatedApps.get(cn);
3157 … .setComponent(cn).addCategory(Intent.CATEGORY_LAUNCHER),
3162 cn.getPackageName());
3164 cn = intent.getComponent();
3165 appInfo = addedOrUpdatedApps.get(cn);
3285 for (ComponentName cn : removedComponents) {
3286 deleteItemsFromDatabase(context, getItemInfoForComponentName(cn, mUser));
3370 public static boolean isValidPackageActivity(Context context, ComponentName cn,
3372 if (cn == null) {
3376 if (!launcherApps.isPackageEnabledForProfile(cn.getPackageName(), user)) {
3379 return launcherApps.isActivityEnabledForProfile(cn, user);
3510 ComponentName cn = info.getTargetComponent();
3511 if (cn != null && f.filterItem(null, info, cn)) {
3517 ComponentName cn = s.getTargetComponent();
3518 if (cn != null && f.filterItem(info, s, cn)) {
3524 ComponentName cn = info.providerName;
3525 if (cn != null && f.filterItem(null, info, cn)) {
3537 public boolean filterItem(ItemInfo parent, ItemInfo info, ComponentName cn) {
3539 return cn.equals(cname);
3541 return cn.equals(cname) && info.user.equals(user);