public void insertDeskMenuSettingInfo(DeskMenuSettingInfo info) {
   final DataProvider dataProvider = mDataProvider;
   ContentValues values = new ContentValues();
   info.contentValues(values);
   dataProvider.insertDeskMenuSetting(values);
   values = null;
 }
 public void updateThemeSettingInfo(ThemeSettingInfo info) {
   final DataProvider dataProvider = mDataProvider;
   ContentValues values = new ContentValues();
   info.contentValues(values);
   dataProvider.updateThemeSetting(values);
   values = null;
 }
 public void insertGestureSettingInfo(int type, GestureSettingInfo info) {
   final DataProvider dataProvider = mDataProvider;
   ContentValues values = new ContentValues();
   info.contentValues(values);
   dataProvider.insertGestureSetting(type, values);
   values = null;
 }
 // 桌面设置
 public DesktopSettingInfo getDesktopSettingInfo() {
   final DataProvider dataProvider = mDataProvider;
   Cursor cursor = dataProvider.queryDesktopSetting();
   if (null != cursor) {
     try {
       DesktopSettingInfo info = new DesktopSettingInfo();
       boolean bOk = info.parseFromCursor(cursor);
       if (bOk) {
         return info;
       }
     } catch (SQLiteException e) {
       e.printStackTrace();
     } finally {
       cursor.close();
     }
   }
   return null;
 }
 /**
  * 查询统计
  *
  * @return 数据
  */
 Cursor queryStatistics() {
   final DataProvider dataProvider = mDataProvider;
   return dataProvider.queryStatistics();
 }
 /**
  * 更新统计
  *
  * @param key 键
  * @param value 值
  */
 void updateStatistics(final int key, final long value) {
   final DataProvider dataProvider = mDataProvider;
   dataProvider.updateStatistics(key, value);
 }
 public void cleanDeskMenuSettingInfo() {
   final DataProvider dataProvider = mDataProvider;
   dataProvider.clearTable(DeskMenuTable.TABLENAME);
 }
 public void cleanThemeSettingInfo() {
   final DataProvider dataProvider = mDataProvider;
   dataProvider.clearTable(ThemeTable.TABLENAME);
 }
 public void cleanScreenSettingInfo() {
   final DataProvider dataProvider = mDataProvider;
   dataProvider.clearTable(ScreenSettingTable.TABLENAME);
 }
 public void cleanGravitySettingInfo() {
   final DataProvider dataProvider = mDataProvider;
   dataProvider.clearTable(GravityTable.TABLENAME);
 }
 public void cleanGestureSettingInfo(int type) {
   final DataProvider dataProvider = mDataProvider;
   String whereStr = GestureTable.GESTUREID + " = " + type;
   dataProvider.clearTable(GestureTable.TABLENAME, whereStr);
   whereStr = null;
 }
 public void cleanEffectSettingInfo() {
   final DataProvider dataProvider = mDataProvider;
   dataProvider.clearTable(DynamicEffectTable.TABLENAME);
 }