Lines Matching defs:stmt
431 SQLiteStatement stmt = null;
437 stmt = db.compileStatement("INSERT INTO system(name,value)"
439 loadDefaultAnimationSettings(stmt);
443 if (stmt != null) stmt.close();
480 SQLiteStatement stmt = null;
482 stmt = db.compileStatement("INSERT OR IGNORE INTO secure(name,value)"
484 loadSecure35Settings(stmt);
488 if (stmt != null) stmt.close();
523 SQLiteStatement stmt = null;
525 stmt = db.compileStatement("INSERT OR IGNORE INTO system(name,value)"
527 loadStringSetting(stmt, Settings.System.AIRPLANE_MODE_TOGGLEABLE_RADIOS,
532 if (stmt != null) stmt.close();
562 SQLiteStatement stmt = null;
568 stmt = db.compileStatement("INSERT INTO system(name,value)"
570 loadDefaultAnimationSettings(stmt);
574 if (stmt != null) stmt.close();
584 SQLiteStatement stmt = null;
588 stmt = db.compileStatement("INSERT INTO system(name,value)"
590 loadDefaultHapticSettings(stmt);
594 if (stmt != null) stmt.close();
604 SQLiteStatement stmt = null;
606 stmt = db.compileStatement("INSERT INTO system(name,value)"
608 loadBooleanSetting(stmt, Settings.System.NOTIFICATION_LIGHT_PULSE,
613 if (stmt != null) stmt.close();
623 SQLiteStatement stmt = null;
625 stmt = db.compileStatement("INSERT OR IGNORE INTO system(name,value)"
627 loadSetting(stmt, Settings.System.VOLUME_BLUETOOTH_SCO,
632 if (stmt != null) stmt.close();
711 SQLiteStatement stmt = null;
713 stmt = db.compileStatement("INSERT INTO system(name,value)"
715 loadUISoundEffectsSettings(stmt);
719 if (stmt != null) stmt.close();
752 SQLiteStatement stmt = null;
754 stmt = db.compileStatement("INSERT INTO system(name,value)"
756 loadBooleanSetting(stmt, Settings.System.VIBRATE_IN_SILENT,
761 if (stmt != null) stmt.close();
797 SQLiteStatement stmt = null;
799 stmt = db.compileStatement("INSERT INTO system(name,value)"
801 loadSetting(stmt, Global.SET_INSTALL_LOCATION, 0);
802 loadSetting(stmt, Global.DEFAULT_INSTALL_LOCATION,
807 if (stmt != null) stmt.close();
817 SQLiteStatement stmt = null;
821 stmt = db.compileStatement("INSERT OR IGNORE INTO system(name,value)"
823 loadStringSetting(stmt, Settings.System.AIRPLANE_MODE_TOGGLEABLE_RADIOS,
828 if (stmt != null) stmt.close();
842 SQLiteStatement stmt = null;
844 stmt = db.compileStatement("INSERT INTO secure(name,value)"
846 loadBooleanSetting(stmt, Settings.Secure.ACCESSIBILITY_SCRIPT_INJECTION,
848 stmt.close();
849 stmt = db.compileStatement("INSERT INTO secure(name,value)"
851 loadStringSetting(stmt, Settings.Secure.ACCESSIBILITY_WEB_CONTENT_KEY_BINDINGS,
856 if (stmt != null) stmt.close();
865 SQLiteStatement stmt = null;
867 stmt = db.compileStatement("INSERT INTO system(name,value)" + " VALUES(?,?);");
868 loadSetting(stmt, Settings.System.AUTO_TIME_ZONE,
873 if (stmt != null) stmt.close();
881 SQLiteStatement stmt = null;
883 stmt = db.compileStatement("INSERT INTO system(name,value)"
885 loadBooleanSetting(stmt, Settings.System.USER_ROTATION,
890 if (stmt != null) stmt.close();
942 SQLiteStatement stmt = null;
944 stmt = db.compileStatement("INSERT INTO secure(name,value)"
946 loadIntegerSetting(stmt, Settings.Secure.LONG_PRESS_TIMEOUT,
948 stmt.close();
952 if (stmt != null) stmt.close();
964 SQLiteStatement stmt = null;
970 stmt = db.compileStatement("INSERT INTO system(name,value)"
972 loadDefaultAnimationSettings(stmt);
976 if (stmt != null) stmt.close();
1009 SQLiteStatement stmt = null;
1011 stmt = db.compileStatement("INSERT INTO secure(name,value)"
1013 loadBooleanSetting(stmt, Settings.Secure.TOUCH_EXPLORATION_ENABLED,
1015 stmt.close();
1019 if (stmt != null) stmt.close();
1065 SQLiteStatement stmt = null;
1067 stmt = db.compileStatement("INSERT INTO secure(name,value)"
1069 loadBooleanSetting(stmt, Settings.Secure.ACCESSIBILITY_SPEAK_PASSWORD,
1074 if (stmt != null) stmt.close();
1082 SQLiteStatement stmt = null;
1084 stmt = db.compileStatement("INSERT OR REPLACE INTO system(name,value)"
1086 loadBooleanSetting(stmt, Settings.System.VIBRATE_IN_SILENT,
1091 if (stmt != null) stmt.close();
1104 SQLiteStatement stmt = null;
1106 stmt = db.compileStatement("INSERT INTO secure(name,value) VALUES(?,?);");
1107 loadStringSetting(stmt, Settings.Secure.ACCESSIBILITY_SCREEN_READER_URL,
1112 if (stmt != null) stmt.close();
1118 SQLiteStatement stmt = null;
1126 stmt = db.compileStatement("INSERT INTO system(name,value)"
1128 loadBooleanSetting(stmt, Settings.System.LOCKSCREEN_DISABLED,
1135 if (stmt != null) stmt.close();
1166 SQLiteStatement stmt = null;
1168 stmt = db.compileStatement("INSERT OR REPLACE INTO secure(name,value)"
1170 loadStringSetting(stmt, Settings.Secure.ACCESSIBILITY_SCREEN_READER_URL,
1175 if (stmt != null) stmt.close();
1208 SQLiteStatement stmt = null;
1211 stmt = db.compileStatement("INSERT OR REPLACE INTO secure(name,value)"
1213 loadSetting(stmt,
1219 if (stmt != null) stmt.close();
1231 SQLiteStatement stmt = null;
1233 stmt = db.compileStatement("INSERT OR REPLACE INTO secure(name,value)"
1235 loadBooleanSetting(stmt, Settings.Secure.SCREENSAVER_ENABLED,
1237 loadBooleanSetting(stmt, Settings.Secure.SCREENSAVER_ACTIVATE_ON_DOCK,
1239 loadBooleanSetting(stmt, Settings.Secure.SCREENSAVER_ACTIVATE_ON_SLEEP,
1241 loadStringSetting(stmt, Settings.Secure.SCREENSAVER_COMPONENTS,
1243 loadStringSetting(stmt, Settings.Secure.SCREENSAVER_DEFAULT_COMPONENT,
1249 if (stmt != null) stmt.close();
1257 SQLiteStatement stmt = null;
1259 stmt = db.compileStatement("INSERT OR REPLACE INTO secure(name,value)"
1261 loadBooleanSetting(stmt, Settings.Global.PACKAGE_VERIFIER_ENABLE,
1266 if (stmt != null) stmt.close();
1276 SQLiteStatement stmt = null;
1291 if (stmt != null) stmt.close();
1302 SQLiteStatement stmt = null;
1304 stmt = db.compileStatement("INSERT INTO secure(name,value) VALUES(?,?);");
1305 loadBooleanSetting(stmt,
1308 stmt.close();
1309 stmt = db.compileStatement("INSERT INTO secure(name,value) VALUES(?,?);");
1310 loadFractionSetting(stmt, Settings.Secure.ACCESSIBILITY_DISPLAY_MAGNIFICATION_SCALE,
1312 stmt.close();
1313 stmt = db.compileStatement("INSERT INTO secure(name,value) VALUES(?,?);");
1314 loadBooleanSetting(stmt,
1321 if (stmt != null) stmt.close();
1329 SQLiteStatement stmt = null;
1345 if (stmt != null) stmt.close();
1521 SQLiteStatement stmt = null;
1523 stmt = db.compileStatement("INSERT OR IGNORE INTO secure(name,value)"
1531 loadSetting(stmt, Settings.Secure.USER_SETUP_COMPLETE,
1535 loadBooleanSetting(stmt, Settings.Secure.USER_SETUP_COMPLETE,
1539 if (stmt != null) stmt.close();
1569 SQLiteStatement stmt = null;
1571 stmt = db.compileStatement("INSERT OR REPLACE INTO global(name,value)"
1573 loadStringSetting(stmt, Settings.Global.WIRELESS_CHARGING_STARTED_SOUND,
1578 if (stmt != null) stmt.close();
1606 SQLiteStatement stmt = null;
1608 stmt = db.compileStatement("INSERT OR REPLACE INTO global(name,value)"
1610 loadIntegerSetting(stmt, Settings.Global.LOW_BATTERY_SOUND_TIMEOUT,
1615 if (stmt != null) stmt.close();
1635 SQLiteStatement stmt = null;
1637 stmt = db.compileStatement("INSERT OR REPLACE INTO global(name,value)"
1639 loadIntegerSetting(stmt, Global.HEADS_UP_NOTIFICATIONS_ENABLED,
1644 if (stmt != null) stmt.close();
1653 SQLiteStatement stmt = null;
1655 stmt = db.compileStatement("INSERT OR IGNORE INTO global(name,value)"
1657 loadSetting(stmt, Settings.Global.DEVICE_NAME, getDefaultDeviceName());
1661 if (stmt != null) stmt.close();
1669 SQLiteStatement stmt = null;
1683 stmt = db.compileStatement("INSERT OR IGNORE INTO secure(name,value)"
1685 loadBooleanSetting(stmt, Settings.Secure.INSTALL_NON_MARKET_APPS,
1691 if (stmt != null) stmt.close();
1698 SQLiteStatement stmt = null;
1700 stmt = db.compileStatement("INSERT OR REPLACE INTO secure(name,value)"
1702 loadBooleanSetting(stmt, Settings.Secure.WAKE_GESTURE_ENABLED,
1707 if (stmt != null) stmt.close();
1720 SQLiteStatement stmt = null;
1722 stmt = db.compileStatement("INSERT OR IGNORE INTO secure(name,value)"
1724 loadIntegerSetting(stmt, Settings.Secure.LOCK_SCREEN_SHOW_NOTIFICATIONS,
1731 loadSetting(stmt, Settings.Secure.LOCK_SCREEN_SHOW_NOTIFICATIONS, oldShow);
1741 if (stmt != null) stmt.close();
1750 SQLiteStatement stmt = null;
1752 stmt = db.compileStatement("INSERT OR REPLACE INTO global(name,value)"
1754 loadStringSetting(stmt, Settings.Global.TRUSTED_SOUND,
1759 if (stmt != null) stmt.close();
1770 SQLiteStatement stmt = null;
1772 stmt = db.compileStatement("INSERT OR REPLACE INTO system(name,value)"
1774 loadBooleanSetting(stmt, Settings.System.SCREEN_BRIGHTNESS_MODE,
1779 if (stmt != null) stmt.close();
1786 SQLiteStatement stmt = null;
1788 stmt = db.compileStatement("INSERT OR IGNORE INTO secure(name,value)"
1790 loadBooleanSetting(stmt, Secure.LOCK_SCREEN_ALLOW_PRIVATE_NOTIFICATIONS,
1795 if (stmt != null) stmt.close();
1805 SQLiteStatement stmt = null;
1807 stmt = db.compileStatement("UPDATE system SET value = ? " +
1809 stmt.bindString(1, Settings.System.SIP_ADDRESS_ONLY);
1810 stmt.bindString(2, Settings.System.SIP_CALL_OPTIONS);
1811 stmt.bindString(3, Settings.System.SIP_ASK_ME_EACH_TIME);
1812 stmt.execute();
1816 if (stmt != null) stmt.close();
1825 SQLiteStatement stmt = null;
1827 stmt = db.compileStatement("INSERT OR REPLACE INTO global(name,value)"
1829 loadSetting(stmt, Settings.Global.MODE_RINGER, AudioManager.RINGER_MODE_NORMAL);
1833 if (stmt != null) stmt.close();
1845 SQLiteStatement stmt = null;
1847 stmt = db.compileStatement("UPDATE global SET value = ? "
1849 stmt.bindString(1, getDefaultDeviceName()); // new default device name
1850 stmt.bindString(2, Settings.Global.DEVICE_NAME);
1851 stmt.bindString(3, getOldDefaultDeviceName()); // old default device name
1852 stmt.execute();
1856 if (stmt != null) stmt.close();
1864 SQLiteStatement stmt = null;
1866 stmt = db.compileStatement("INSERT OR IGNORE INTO secure(name,value)"
1868 loadIntegerSetting(stmt, Settings.Secure.SLEEP_TIMEOUT,
1873 if (stmt != null) stmt.close();
1883 SQLiteStatement stmt = null;
1885 stmt = db.compileStatement("INSERT OR IGNORE INTO global(name,value)"
1887 loadBooleanSetting(stmt, Global.THEATER_MODE_ON,
1892 if (stmt != null) stmt.close();
1901 SQLiteStatement stmt = null;
1903 stmt = db.compileStatement("INSERT OR IGNORE INTO global(name,value)"
1905 loadSetting(stmt, Settings.Global.ENHANCED_4G_MODE_ENABLED,
1910 if (stmt != null) stmt.close();
1934 SQLiteStatement stmt = null;
1936 stmt = db.compileStatement("INSERT OR REPLACE INTO system(name,value)"
1938 loadSetting(stmt, Settings.System.HIDE_ROTATION_LOCK_TOGGLE_FOR_ACCESSIBILITY, 0);
1942 if (stmt != null) stmt.close();
2091 SQLiteStatement stmt = null;
2095 stmt = db.compileStatement("INSERT OR REPLACE INTO system(name,value)"
2099 loadSetting(stmt, Settings.System.SCREEN_OFF_TIMEOUT,
2102 if (stmt != null) stmt.close();
2120 SQLiteStatement stmt = null;
2122 stmt = db.compileStatement("INSERT OR REPLACE INTO system(name,value)"
2124 loadSetting(stmt, Settings.System.VIBRATE_ON, vibrateSetting);
2126 if (stmt != null)
2127 stmt.close();
2134 SQLiteStatement stmt = null;
2136 stmt = db.compileStatement("INSERT OR REPLACE INTO system(name,value)"
2138 loadIntegerSetting(stmt, Settings.System.SCREEN_OFF_TIMEOUT,
2143 if (stmt != null)
2144 stmt.close();
2255 SQLiteStatement stmt = null;
2257 stmt = db.compileStatement("INSERT OR IGNORE INTO system(name,value)"
2260 loadSetting(stmt, Settings.System.VOLUME_MUSIC,
2262 loadSetting(stmt, Settings.System.VOLUME_RING,
2264 loadSetting(stmt, Settings.System.VOLUME_SYSTEM,
2267 stmt,
2270 loadSetting(stmt, Settings.System.VOLUME_ALARM,
2273 stmt,
2277 stmt,
2294 loadSetting(stmt, Settings.System.MODE_RINGER_STREAMS_AFFECTED,
2297 loadSetting(stmt, Settings.System.MUTE_STREAMS_AFFECTED,
2300 if (stmt != null) stmt.close();
2311 SQLiteStatement stmt = null;
2313 stmt = db.compileStatement("INSERT OR IGNORE INTO system(name,value)"
2323 loadSetting(stmt, Settings.System.VIBRATE_ON, vibrate);
2325 if (stmt != null) stmt.close();
2337 SQLiteStatement stmt = null;
2339 stmt = db.compileStatement("INSERT OR IGNORE INTO system(name,value)"
2341 loadSetting(stmt, Settings.System.VIBRATE_WHEN_RINGING, vibrateWhenRinging ? 1 : 0);
2343 if (stmt != null) stmt.close();
2357 SQLiteStatement stmt = null;
2359 stmt = db.compileStatement("INSERT OR IGNORE INTO system(name,value)"
2362 loadBooleanSetting(stmt, Settings.System.DIM_SCREEN,
2364 loadIntegerSetting(stmt, Settings.System.SCREEN_OFF_TIMEOUT,
2368 loadSetting(stmt, Settings.System.DTMF_TONE_TYPE_WHEN_DIALING, 0);
2371 loadSetting(stmt, Settings.System.HEARING_AID, 0);
2374 loadSetting(stmt, Settings.System.TTY_MODE, 0);
2376 loadIntegerSetting(stmt, Settings.System.SCREEN_BRIGHTNESS,
2379 loadBooleanSetting(stmt, Settings.System.SCREEN_BRIGHTNESS_MODE,
2382 loadDefaultAnimationSettings(stmt);
2384 loadBooleanSetting(stmt, Settings.System.ACCELEROMETER_ROTATION,
2387 loadDefaultHapticSettings(stmt);
2389 loadBooleanSetting(stmt, Settings.System.NOTIFICATION_LIGHT_PULSE,
2392 loadUISoundEffectsSettings(stmt);
2394 loadIntegerSetting(stmt, Settings.System.POINTER_SPEED,
2405 if (stmt != null) stmt.close();
2409 private void loadUISoundEffectsSettings(SQLiteStatement stmt) {
2410 loadBooleanSetting(stmt, Settings.System.DTMF_TONE_WHEN_DIALING,
2412 loadBooleanSetting(stmt, Settings.System.SOUND_EFFECTS_ENABLED,
2414 loadBooleanSetting(stmt, Settings.System.HAPTIC_FEEDBACK_ENABLED,
2417 loadIntegerSetting(stmt, Settings.System.LOCKSCREEN_SOUNDS_ENABLED,
2421 private void loadDefaultAnimationSettings(SQLiteStatement stmt) {
2422 loadFractionSetting(stmt, Settings.System.WINDOW_ANIMATION_SCALE,
2424 loadFractionSetting(stmt, Settings.System.TRANSITION_ANIMATION_SCALE,
2428 private void loadDefaultHapticSettings(SQLiteStatement stmt) {
2429 loadBooleanSetting(stmt, Settings.System.HAPTIC_FEEDBACK_ENABLED,
2434 SQLiteStatement stmt = null;
2436 stmt = db.compileStatement("INSERT OR IGNORE INTO secure(name,value)"
2439 loadStringSetting(stmt, Settings.Secure.LOCATION_PROVIDERS_ALLOWED,
2444 loadSetting(stmt, Settings.Secure.WIFI_WATCHDOG_WATCH_LIST, wifiWatchList);
2449 //loadSetting(stmt, Settings.Secure.ADB_ENABLED, 0);
2452 loadSetting(stmt, Settings.Secure.ALLOW_MOCK_LOCATION,
2455 loadSecure35Settings(stmt);
2457 loadBooleanSetting(stmt, Settings.Secure.MOUNT_PLAY_NOTIFICATION_SND,
2460 loadBooleanSetting(stmt, Settings.Secure.MOUNT_UMS_AUTOSTART,
2463 loadBooleanSetting(stmt, Settings.Secure.MOUNT_UMS_PROMPT,
2466 loadBooleanSetting(stmt, Settings.Secure.MOUNT_UMS_NOTIFY_ENABLED,
2469 loadBooleanSetting(stmt, Settings.Secure.ACCESSIBILITY_SCRIPT_INJECTION,
2472 loadStringSetting(stmt, Settings.Secure.ACCESSIBILITY_WEB_CONTENT_KEY_BINDINGS,
2475 loadIntegerSetting(stmt, Settings.Secure.LONG_PRESS_TIMEOUT,
2478 loadBooleanSetting(stmt, Settings.Secure.TOUCH_EXPLORATION_ENABLED,
2481 loadBooleanSetting(stmt, Settings.Secure.ACCESSIBILITY_SPEAK_PASSWORD,
2484 loadStringSetting(stmt, Settings.Secure.ACCESSIBILITY_SCREEN_READER_URL,
2488 loadSetting(stmt, Settings.System.LOCKSCREEN_DISABLED, "1");
2490 loadBooleanSetting(stmt, Settings.System.LOCKSCREEN_DISABLED,
2494 loadBooleanSetting(stmt, Settings.Secure.SCREENSAVER_ENABLED,
2496 loadBooleanSetting(stmt, Settings.Secure.SCREENSAVER_ACTIVATE_ON_DOCK,
2498 loadBooleanSetting(stmt, Settings.Secure.SCREENSAVER_ACTIVATE_ON_SLEEP,
2500 loadStringSetting(stmt, Settings.Secure.SCREENSAVER_COMPONENTS,
2502 loadStringSetting(stmt, Settings.Secure.SCREENSAVER_DEFAULT_COMPONENT,
2505 loadBooleanSetting(stmt, Settings.Secure.ACCESSIBILITY_DISPLAY_MAGNIFICATION_ENABLED,
2508 loadFractionSetting(stmt, Settings.Secure.ACCESSIBILITY_DISPLAY_MAGNIFICATION_SCALE,
2511 loadBooleanSetting(stmt,
2515 loadBooleanSetting(stmt, Settings.Secure.USER_SETUP_COMPLETE,
2518 loadStringSetting(stmt, Settings.Secure.IMMERSIVE_MODE_CONFIRMATIONS,
2521 loadBooleanSetting(stmt, Settings.Secure.INSTALL_NON_MARKET_APPS,
2524 loadBooleanSetting(stmt, Settings.Secure.WAKE_GESTURE_ENABLED,
2527 loadIntegerSetting(stmt, Secure.LOCK_SCREEN_SHOW_NOTIFICATIONS,
2530 loadBooleanSetting(stmt, Secure.LOCK_SCREEN_ALLOW_PRIVATE_NOTIFICATIONS,
2533 loadIntegerSetting(stmt, Settings.Secure.SLEEP_TIMEOUT,
2544 if (stmt != null) stmt.close();
2548 private void loadSecure35Settings(SQLiteStatement stmt) {
2549 loadBooleanSetting(stmt, Settings.Secure.BACKUP_ENABLED,
2552 loadStringSetting(stmt, Settings.Secure.BACKUP_TRANSPORT,
2557 SQLiteStatement stmt = null;
2559 stmt = db.compileStatement("INSERT OR IGNORE INTO global(name,value)"
2563 loadBooleanSetting(stmt, Settings.Global.AIRPLANE_MODE_ON,
2566 loadBooleanSetting(stmt, Settings.Global.THEATER_MODE_ON,
2569 loadStringSetting(stmt, Settings.Global.AIRPLANE_MODE_RADIOS,
2572 loadStringSetting(stmt, Settings.Global.AIRPLANE_MODE_TOGGLEABLE_RADIOS,
2575 loadBooleanSetting(stmt, Settings.Global.ASSISTED_GPS_ENABLED,
2578 loadBooleanSetting(stmt, Settings.Global.AUTO_TIME,
2581 loadBooleanSetting(stmt, Settings.Global.AUTO_TIME_ZONE,
2584 loadSetting(stmt, Settings.Global.STAY_ON_WHILE_PLUGGED_IN,
2589 loadIntegerSetting(stmt, Settings.Global.WIFI_SLEEP_POLICY,
2592 loadSetting(stmt, Settings.Global.MODE_RINGER,
2596 loadBooleanSetting(stmt, Settings.Global.PACKAGE_VERIFIER_ENABLE,
2599 loadBooleanSetting(stmt, Settings.Global.WIFI_ON,
2602 loadBooleanSetting(stmt, Settings.Global.WIFI_NETWORKS_AVAILABLE_NOTIFICATION_ON,
2605 loadBooleanSetting(stmt, Settings.Global.BLUETOOTH_ON,
2609 loadSetting(stmt, Settings.Global.CDMA_CELL_BROADCAST_SMS,
2613 loadSetting(stmt, Settings.Global.DATA_ROAMING,
2618 loadBooleanSetting(stmt, Settings.Global.DEVICE_PROVISIONED,
2624 loadSetting(stmt, Settings.Global.DOWNLOAD_MAX_BYTES_OVER_MOBILE,
2631 loadSetting(stmt, Settings.Global.DOWNLOAD_RECOMMENDED_MAX_BYTES_OVER_MOBILE,
2636 loadSetting(stmt, Settings.Global.MOBILE_DATA,
2641 loadBooleanSetting(stmt, Settings.Global.NETSTATS_ENABLED,
2644 loadBooleanSetting(stmt, Settings.Global.USB_MASS_STORAGE_ENABLED,
2647 loadIntegerSetting(stmt, Settings.Global.WIFI_MAX_DHCP_RETRY_COUNT,
2650 loadBooleanSetting(stmt, Settings.Global.WIFI_DISPLAY_ON,
2653 loadStringSetting(stmt, Settings.Global.LOCK_SOUND,
2655 loadStringSetting(stmt, Settings.Global.UNLOCK_SOUND,
2657 loadStringSetting(stmt, Settings.Global.TRUSTED_SOUND,
2659 loadIntegerSetting(stmt, Settings.Global.POWER_SOUNDS_ENABLED,
2661 loadStringSetting(stmt, Settings.Global.LOW_BATTERY_SOUND,
2663 loadIntegerSetting(stmt, Settings.Global.DOCK_SOUNDS_ENABLED,
2665 loadStringSetting(stmt, Settings.Global.DESK_DOCK_SOUND,
2667 loadStringSetting(stmt, Settings.Global.DESK_UNDOCK_SOUND,
2669 loadStringSetting(stmt, Settings.Global.CAR_DOCK_SOUND,
2671 loadStringSetting(stmt, Settings.Global.CAR_UNDOCK_SOUND,
2673 loadStringSetting(stmt, Settings.Global.WIRELESS_CHARGING_STARTED_SOUND,
2676 loadIntegerSetting(stmt, Settings.Global.DOCK_AUDIO_MEDIA_ENABLED,
2679 loadSetting(stmt, Settings.Global.SET_INSTALL_LOCATION, 0);
2680 loadSetting(stmt, Settings.Global.DEFAULT_INSTALL_LOCATION,
2684 loadSetting(stmt, Settings.Global.EMERGENCY_TONE, 0);
2687 loadSetting(stmt, Settings.Global.CALL_AUTO_RETRY, 0);
2693 loadSetting(stmt, Settings.Global.PREFERRED_NETWORK_MODE, type);
2699 loadSetting(stmt, Settings.Global.CDMA_SUBSCRIPTION_MODE, type);
2701 loadIntegerSetting(stmt, Settings.Global.LOW_BATTERY_SOUND_TIMEOUT,
2704 loadIntegerSetting(stmt
2707 loadIntegerSetting(stmt, Global.HEADS_UP_NOTIFICATIONS_ENABLED,
2710 loadSetting(stmt, Settings.Global.DEVICE_NAME, getDefaultDeviceName());
2712 loadSetting(stmt, Settings.Global.ENHANCED_4G_MODE_ENABLED,
2723 if (stmt != null) stmt.close();
2727 private void loadSetting(SQLiteStatement stmt, String key, Object value) {
2728 stmt.bindString(1, key);
2729 stmt.bindString(2, value.toString());
2730 stmt.execute();
2733 private void loadStringSetting(SQLiteStatement stmt, String key, int resid) {
2734 loadSetting(stmt, key, mContext.getResources().getString(resid));
2737 private void loadBooleanSetting(SQLiteStatement stmt, String key, int resid) {
2738 loadSetting(stmt, key,
2742 private void loadIntegerSetting(SQLiteStatement stmt, String key, int resid) {
2743 loadSetting(stmt, key,
2747 private void loadFractionSetting(SQLiteStatement stmt, String key, int resid, int base) {
2748 loadSetting(stmt, key,