下面列出了android.provider.Settings.Global#putInt ( ) 实例代码,或者点击链接到github查看源代码,也可以在右侧发表评论。
@VisibleForTesting
protected void putGlobalSetting(String key, int value) {
Global.putInt(mContext.getContentResolver(), key, value);
}
void writeBooleanSetting(String key, boolean value) {
ContentResolver cr = getContext().getContentResolver();
Global.putInt(cr, key, toInt(value));
}
@VisibleForTesting
protected void setZenModeSetting(int zen) {
Global.putInt(mContext.getContentResolver(), Global.ZEN_MODE, zen);
showZenUpgradeNotification(zen);
}
public void setValue(int value) {
Global.putInt(mContext.getContentResolver(), mSettingName, value);
}
public void setValue(int value) {
Global.putInt(mContext.getContentResolver(), mSettingName, value);
}