Enable launching glmark2 in Android to heat GPU as one of thermal tests. Signed-off-by: Hongbo Zhang <hongbo.zh...@linaro.org> --- include/thermal_functions.sh | 10 ++++++++++ 1 file changed, 10 insertions(+)
diff --git a/include/thermal_functions.sh b/include/thermal_functions.sh index df7adfe..8a4d627 100644 --- a/include/thermal_functions.sh +++ b/include/thermal_functions.sh @@ -243,6 +243,11 @@ GPU_HEAT_BIN=/usr/bin/glmark2 gpu_pid=0 start_glmark2() { + if [ -n "$ANDROID" ]; then + am start org.linaro.glmark2/.Glmark2Activity + return + fi + if [ -x $GPU_HEAT_BIN ]; then $GPU_HEAT_BIN & gpu_pid=$(pidof $GPU_HEAT_BIN) @@ -265,6 +270,11 @@ start_glmark2() { } kill_glmark2() { + if [ -n "$ANDROID" ]; then + am kill org.linaro.glmark2 + return + fi + if [ "$gpu_pid" != 0 ]; then kill -9 $gpu_pid fi -- 1.8.0 _______________________________________________ linaro-dev mailing list linaro-dev@lists.linaro.org http://lists.linaro.org/mailman/listinfo/linaro-dev