Ejemplo n.º 1
0
 @Override
 public void reset() {
   clearValue(KEY_CPU_GOV_SETTING);
   clearValue(KEY_CPU_GOV_SET_ON_BOOT);
   clearValue(KEY_CPU_MAX_FREQ);
   clearValue(KEY_CPU_MIN_FREQ);
   clearValue(KEY_CPU_MAX_SUSPEND_FREQ);
   clearValue(KEY_CPU_MIN_SUSPEND_FREQ);
   clearValue(KEY_CPU_FREQ_SET_ON_BOOT);
   clearValue(KEY_CPU_VOLT_SET_ON_BOOT);
   CpuVoltageSetting cpuVoltSetting = new CpuVoltageSetting(mContext);
   cpuVoltSetting.reset();
 }
Ejemplo n.º 2
0
 @Override
 public void setOnBoot() {
   String value;
   if (loadGovernorSetOnBoot()) {
     value = loadScalingGovernor();
     if (!Misc.isNullOfEmpty(value)) {
       setScalingGovernor(value);
       CpuGovernorSetting cpuGovSetting = new CpuGovernorSetting(mContext, value);
       cpuGovSetting.setOnBoot();
     }
   }
   if (loadFreqSetOnBoot()) {
     value = loadScalingMaxFreq();
     if (!Misc.isNullOfEmpty(value)) {
       setScalingMaxFreq(value);
     }
     value = loadScalingMinFreq();
     if (!Misc.isNullOfEmpty(value)) {
       setScalingMinFreq(value);
     }
     if (isEnableSuspendFreq()) {
       value = loadScalingMaxSuspendFreq();
       if (!Misc.isNullOfEmpty(value)) {
         setScalingMaxSuspendFreq(value);
       }
       value = loadScalingMinSuspendFreq();
       if (!Misc.isNullOfEmpty(value)) {
         setScalingMinSuspendFreq(value);
       }
     }
   }
   if (loadVoltSetOnBoot()) {
     CpuVoltageSetting cpuVoltSetting = new CpuVoltageSetting(mContext);
     cpuVoltSetting.setOnBoot();
   }
 }