博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
默认设置
阅读量:6088 次
发布时间:2019-06-20

本文共 2516 字,大约阅读时间需要 8 分钟。

  hot3.png

frameworks/base/packages/SettingsProvider/res/values/defaults.xml

相关的代码

frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/DatabaseHelper.java

//wfy    private void loadSystemSettings(SQLiteDatabase db) {        SQLiteStatement stmt = null;        try {            stmt = db.compileStatement("INSERT OR IGNORE INTO system(name,value)"                    + " VALUES(?,?);");            loadBooleanSetting(stmt, Settings.System.DIM_SCREEN,                    R.bool.def_dim_screen);            loadSetting(stmt, Settings.System.SCREEN_OFF_TIMEOUT,                    SystemProperties.getInt("ro.rk.screenoff_time", mContext.getResources().getInteger(R.integer.def_screen_off_timeout)));            // Set default cdma DTMF type            loadSetting(stmt, Settings.System.DTMF_TONE_TYPE_WHEN_DIALING, 0);            // Set default hearing aid            loadSetting(stmt, Settings.System.HEARING_AID, 0);            // Set default tty mode            loadSetting(stmt, Settings.System.TTY_MODE, 0);            loadBooleanSetting(stmt, Settings.System.SCREENSHOT_BUTTON_SHOW,                    R.bool.def_screenshot_button_show);            loadSetting(stmt, Settings.System.SCREENSHOT_LOCATION,                    Settings.System.SCREENSHOT_LOCATION_INTERNAL_SD);            loadIntegerSetting(stmt, Settings.System.SCREEN_BRIGHTNESS,                    R.integer.def_screen_brightness);            loadBooleanSetting(stmt, Settings.System.SCREEN_BRIGHTNESS_MODE,                    R.bool.def_screen_brightness_automatic_mode);            loadDefaultAnimationSettings(stmt);            loadBooleanSetting(stmt, Settings.System.ACCELEROMETER_ROTATION,                    R.bool.def_accelerometer_rotation);            loadDefaultHapticSettings(stmt);            loadBooleanSetting(stmt, Settings.System.NOTIFICATION_LIGHT_PULSE,                    R.bool.def_notification_pulse);            loadUISoundEffectsSettings(stmt);            loadIntegerSetting(stmt, Settings.System.POINTER_SPEED,                    R.integer.def_pointer_speed);            /*             * IMPORTANT: Do not add any more upgrade steps here as the global,             * secure, and system settings are no longer stored in a database             * but are kept in memory and persisted to XML.             *             * See: SettingsProvider.UpgradeController#onUpgradeLocked             */        } finally {            if (stmt != null) stmt.close();        }    }

 

转载于:https://my.oschina.net/wfy94/blog/2981122

你可能感兴趣的文章
「翻译」逐步替换Sass
查看>>
H5实现全屏与F11全屏
查看>>
处理excel表的列
查看>>
C#数据采集类
查看>>
quicksort
查看>>
【BZOJ2019】nim
查看>>
LINUX内核调试过程
查看>>
【HDOJ】3553 Just a String
查看>>
Java 集合深入理解(7):ArrayList
查看>>
2019年春季学期第四周作业
查看>>
linux环境配置
查看>>
tomcat指定配置文件路径方法
查看>>
linux下查看各硬件型号
查看>>
epoll的lt和et模式的实验
查看>>
Flux OOM实例
查看>>
07-k8s-dns
查看>>
Android 中 ListView 分页加载数据
查看>>
oracle启动报错:ORA-00845: MEMORY_TARGET not supported on this system
查看>>
Go方法
查看>>
Dapper丶DapperExtention,以及AbpDapper之间的关系,
查看>>