summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndroid Merger <android-build-merger@google.com>2017-08-15 16:52:49 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2017-08-15 16:52:49 +0000
commitaaac5a8054d1488361d451b5119d017750f51853 (patch)
tree8bc2e35dcf2e497dd093d0aad66bc554d4789a0b
parent69873e37f1f68cce48bfebcffc8b76ccf4af8cdc (diff)
parent40e229f5c3e1eee52e04ffbbf7ee55cbfb0f48f9 (diff)
downloadcts-o-iot-preview-5.tar.gz
Merge "Merge "Hide mouse pointer during SurfaceViewSyncTests." into nougat-mr1-cts-dev am: b07b5561f8"android-o-iot-preview-5o-iot-preview-5
-rw-r--r--tests/tests/view/src/android/view/cts/surfacevalidator/CapturedActivity.java6
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/tests/view/src/android/view/cts/surfacevalidator/CapturedActivity.java b/tests/tests/view/src/android/view/cts/surfacevalidator/CapturedActivity.java
index 7d08fcd00bb..272c70ea523 100644
--- a/tests/tests/view/src/android/view/cts/surfacevalidator/CapturedActivity.java
+++ b/tests/tests/view/src/android/view/cts/surfacevalidator/CapturedActivity.java
@@ -38,6 +38,7 @@ import android.util.DisplayMetrics;
import android.util.Log;
import android.util.SparseArray;
import android.view.Display;
+import android.view.PointerIcon;
import android.view.View;
import android.widget.FrameLayout;
@@ -90,6 +91,9 @@ public class CapturedActivity extends Activity {
getWindow().getDecorView().setSystemUiVisibility(
View.SYSTEM_UI_FLAG_HIDE_NAVIGATION | View.SYSTEM_UI_FLAG_FULLSCREEN);
+ // Set the NULL pointer icon so that it won't obstruct the captured image.
+ getWindow().getDecorView().setPointerIcon(
+ PointerIcon.getSystemIcon(this, PointerIcon.TYPE_NULL));
mProjectionManager =
(MediaProjectionManager) getSystemService(Context.MEDIA_PROJECTION_SERVICE);
@@ -242,4 +246,4 @@ public class CapturedActivity extends Activity {
}
}
}
-} \ No newline at end of file
+}