private void migrateCMSettingsForUser(int userId){
synchronized (this) {
    if (LOCAL_LOGV)     Log.d(TAG,"CM settings will be migrated for user id: " + userId);
    int rowsMigrated=migrateCMSettingsForTable(userId,CMDatabaseHelper.CMTableNames.TABLE_SYSTEM,CMSettings.System.LEGACY_SYSTEM_SETTINGS);
    if (LOCAL_LOGV)     Log.d(TAG,"Migrated " + rowsMigrated + " to CM system table");
    rowsMigrated=migrateCMSettingsForTable(userId,CMDatabaseHelper.CMTableNames.TABLE_SECURE,CMSettings.Secure.LEGACY_SECURE_SETTINGS);
    if (LOCAL_LOGV)     Log.d(TAG,"Migrated " + rowsMigrated + " to CM secure table");
    rowsMigrated=migrateCMSettingsForTable(userId,CMDatabaseHelper.CMTableNames.TABLE_GLOBAL,CMSettings.Global.LEGACY_GLOBAL_SETTINGS);
    if (LOCAL_LOGV)     Log.d(TAG,"Migrated " + rowsMigrated + " to CM global table");
  }
}

private void migrateCMSettingsForUser ( int userId ) { synchronized ( this ) { if ( LOCAL_LOGV ) Log . d ( TAG , "CM settings will be migrated for user id: " + userId ) ; int rowsMigrated = migrateCMSettingsForTable ( userId , CMDatabaseHelper . CMTableNames . TABLE_SYSTEM , CMSettings . System . LEGACY_SYSTEM_SETTINGS ) ; if ( LOCAL_LOGV ) Log . d ( TAG , "Migrated " + rowsMigrated + " to CM system table" ) ; rowsMigrated = migrateCMSettingsForTable ( userId , CMDatabaseHelper . CMTableNames . TABLE_SECURE , CMSettings . Secure . LEGACY_SECURE_SETTINGS ) ; if ( LOCAL_LOGV ) Log . d ( TAG , "Migrated " + rowsMigrated + " to CM secure table" ) ; rowsMigrated = migrateCMSettingsForTable ( userId , CMDatabaseHelper . CMTableNames . TABLE_GLOBAL , CMSettings . Global . LEGACY_GLOBAL_SETTINGS ) ; if ( LOCAL_LOGV ) Log . d ( TAG , "Migrated " + rowsMigrated + " to CM global table" ) ; } }
migrates cm settings for a specific user .
