[PATCH] CTS4.4 : Fix ThemeHostTest#testHoloThemes

This test case is going to capture widget which does not have focus.
But, even if the widget is not focusable, the widget that contains
focusable child view(s) can have focus, if
com.android.internal.R.bool.config_defaultInTouchMode is false.
This patch prevents the focusable child view from getting focus.

Change-Id: Ib2225359c2a51482a0a6d8e7d2f5b5f296ed92bd
Signed-off-by: Takeshi Katae <takeshi.katae.xm@kyocera.jp>
diff --git a/hostsidetests/theme/app/src/android/theme/app/HoloDeviceActivity.java b/hostsidetests/theme/app/src/android/theme/app/HoloDeviceActivity.java
index ab81dbd..b5a13d2 100644
--- a/hostsidetests/theme/app/src/android/theme/app/HoloDeviceActivity.java
+++ b/hostsidetests/theme/app/src/android/theme/app/HoloDeviceActivity.java
@@ -35,6 +35,7 @@
 import android.theme.app.ReferenceViewGroup;
 import android.util.Log;
 import android.view.View;
+import android.view.ViewGroup;
 import android.widget.CheckBox;
 import android.widget.LinearLayout;
 
@@ -99,6 +100,7 @@
         mViewGroup.measure(0, 0);
         mViewGroup.layout(0, 0, mViewGroup.getMeasuredWidth(), mViewGroup.getMeasuredHeight());
         mView.setFocusable(false);
+        mViewGroup.setDescendantFocusability(ViewGroup.FOCUS_BLOCK_DESCENDANTS);
         mName = String.format("%s_%s", theme.mName, layout.mName);
 
         final Handler handler = new Handler();