Exclude 2 test cases in "LockTask UI" due to Overview button not support in automotive device.

Test case "Enable Home button" and "Enable Overview button" expect to press or hide Overview button.
But Overview button not support in automotive device.

Bug: 114001959
Test:
     Step 1. Launch CtsVerifier.
     Step 2. Go to "Device Owner Tests", tap the "SET UP DEVICE OWNER" and setup the device owner.
     Step 3. Tap the "Check device owner" check whether the device owner setup successfully.
     Step 4. Tap the "LockTask UI" and start the sub-cases: Enable Home button, Enable Overview button.
             (1) sub-case "Enable Home button" require that the Overview button is hidden and the Overview gesture (swipe-up) does not work.
             (2) sub-case "Enable Overview button" require that press the Overview button or perform the Overview gesture (swipe up)
                 and verify the Overview view can be opened.

Change-Id: Iea850eaad4fa3ac13ee728623fe30a078fc4b6b5
Signed-off-by: fanzha3x <fanx.zhang@intel.com>
diff --git a/apps/CtsVerifier/src/com/android/cts/verifier/managedprovisioning/LockTaskUiTestActivity.java b/apps/CtsVerifier/src/com/android/cts/verifier/managedprovisioning/LockTaskUiTestActivity.java
index b04ec47..dd61238 100644
--- a/apps/CtsVerifier/src/com/android/cts/verifier/managedprovisioning/LockTaskUiTestActivity.java
+++ b/apps/CtsVerifier/src/com/android/cts/verifier/managedprovisioning/LockTaskUiTestActivity.java
@@ -36,6 +36,7 @@
 import android.content.Context;
 import android.content.Intent;
 import android.content.IntentFilter;
+import android.content.pm.PackageManager;
 import android.database.DataSetObserver;
 import android.os.AsyncTask;
 import android.os.Bundle;
@@ -143,17 +144,21 @@
                 R.string.device_owner_lock_task_ui_notifications_test,
                 R.string.device_owner_lock_task_ui_notifications_test_info));
 
-        adapter.add(createSetLockTaskFeaturesTest(
-                TEST_ID_HOME,
-                LOCK_TASK_FEATURE_HOME,
-                R.string.device_owner_lock_task_ui_home_test,
-                R.string.device_owner_lock_task_ui_home_test_info));
+        if (!getPackageManager().hasSystemFeature(PackageManager.FEATURE_AUTOMOTIVE)) {
+            adapter.add(createSetLockTaskFeaturesTest(
+                    TEST_ID_HOME,
+                    LOCK_TASK_FEATURE_HOME,
+                    R.string.device_owner_lock_task_ui_home_test,
+                    R.string.device_owner_lock_task_ui_home_test_info));
+        }
 
-        adapter.add(createSetLockTaskFeaturesTest(
-                TEST_ID_RECENTS,
-                LOCK_TASK_FEATURE_HOME | LOCK_TASK_FEATURE_OVERVIEW,
-                R.string.device_owner_lock_task_ui_recents_test,
-                R.string.device_owner_lock_task_ui_recents_test_info));
+        if (!getPackageManager().hasSystemFeature(PackageManager.FEATURE_AUTOMOTIVE)) {
+            adapter.add(createSetLockTaskFeaturesTest(
+                    TEST_ID_RECENTS,
+                    LOCK_TASK_FEATURE_HOME | LOCK_TASK_FEATURE_OVERVIEW,
+                    R.string.device_owner_lock_task_ui_recents_test,
+                    R.string.device_owner_lock_task_ui_recents_test_info));
+        }
 
         adapter.add(createSetLockTaskFeaturesTest(
                 TEST_ID_GLOBAL_ACTIONS,