com.samsung.sdk.sperf

Class PerformanceManager

  • java.lang.Object
    • com.samsung.sdk.sperf.PerformanceManager


  • public class PerformanceManager
    extends java.lang.Object
    This class starts and stops resource control.
    Since:
    v1.0.0
    • Method Detail

      • getInstance

        public static PerformanceManager getInstance()
        Get the PerformanceManager instance, to request a boost.
        Returns:
        0: success -1: fail
      • start

        public int start(CustomParams param)
        Start all boosts defined in the CustomParams instance.
        Returns:
        0: success -1: fail
      • start

        public int start(int presetType,
                         int timeout)
        Starts preset boosts.
        Parameters:
        presetType - Preset ID defined in PerformanceManager. Multiple presets can be called using the OR operation.
        timeout - Duration to boost after this module is called, in milliseconds.
        Returns:
        0: success -1: fail
      • stop

        public int stop()
        Stops all currently running boosts.
        Returns:
        0: success -1: fail