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
-
-
Field Summary
Fields Modifier and Type Field and Description static int
PRESET_TYPE_BUS
static int
PRESET_TYPE_CPU
static int
PRESET_TYPE_GPU
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method and Description static PerformanceManager
getInstance()
Get the PerformanceManager instance, to request a boost.int
start(CustomParams param)
Start all boosts defined in the CustomParams instance.int
start(int presetType, int timeout)
Starts preset boosts.int
stop()
Stops all currently running boosts.
-
-
-
Field Detail
-
PRESET_TYPE_CPU
public static final int PRESET_TYPE_CPU
- See Also:
- Constant Field Values
-
PRESET_TYPE_GPU
public static final int PRESET_TYPE_GPU
- See Also:
- Constant Field Values
-
PRESET_TYPE_BUS
public static final int PRESET_TYPE_BUS
- See Also:
- Constant Field Values
-
-
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
-
-