private void RaiseCpuLevel(float timestamp)
 {
     ++m_PerfControl.CpuLevel;
     m_LastChangeTimeStamp        = timestamp;
     m_LastCpuLevelRaiseTimeStamp = timestamp;
     APLog.Debug("Auto Perf Level: raise CPU level to {0}", m_PerfControl.CpuLevel);
 }
        private bool AllowRaiseLevels()
        {
            float tempLevel = m_ThermalStats.ThermalMetrics.TemperatureLevel;

            if (tempLevel < 0.0f)
            {
                return(true); // temperature level not supported, allow changing levels anyway
            }
            // raise CPU/GPU levels only as long as device is reasonably cool
            if (tempLevel < MaxTemperatureLevel)
            {
                return(true);
            }

            APLog.Debug("Auto Perf Level: cannot raise performance level, current temperature level ({0}) exceeds {1}", tempLevel, MaxTemperatureLevel);
            return(false);
        }
 private void LowerGpuLevel(float timestamp)
 {
     --m_PerfControl.GpuLevel;
     m_LastChangeTimeStamp = timestamp;
     APLog.Debug("Auto Perf Level: lower GPU level to {0}", m_PerfControl.GpuLevel);
 }