public synchronized void updateIconsForPkg(String packageName,UserHandleCompat user){
  removeIconsForPkg(packageName,user);
  try {
    PackageInfo info=mPackageManager.getPackageInfo(packageName,PackageManager.GET_UNINSTALLED_PACKAGES);
    long userSerial=mUserManager.getSerialNumberForUser(user);
    for (    LauncherActivityInfoCompat app : mLauncherApps.getActivityList(packageName,user)) {
      addIconToDBAndMemCache(app,info,userSerial);
    }
  }
 catch (  NameNotFoundException e) {
    Log.d(TAG,"Package not found",e);
    return;
  }
}

public synchronized void updateIconsForPkg ( String packageName , UserHandleCompat user ) { removeIconsForPkg ( packageName , user ) ; try { PackageInfo info = mPackageManager . getPackageInfo ( packageName , PackageManager . GET_UNINSTALLED_PACKAGES ) ; long userSerial = mUserManager . getSerialNumberForUser ( user ) ; for ( LauncherActivityInfoCompat app : mLauncherApps . getActivityList ( packageName , user ) ) { addIconToDBAndMemCache ( app , info , userSerial ) ; } } catch ( NameNotFoundException e ) { Log . d ( TAG , "Package not found" , e ) ; return ; } }
updates the entries related to the given package in memory and persistent db .
