// Path: Components/googleglass-1.6/lib/android/16/content/google-gdk/samples/ApiDemo/src/com/google/android/glass/sample/apidemo/card/CardsActivity.java
// public final class CardsActivity extends Activity {
// 
//     private CardScrollView mCardScroller;
// 
//     @Override
//     protected void onCreate(Bundle bundle) {
//         super.onCreate(bundle);
// 
//         mCardScroller = new CardScrollView(this);
//         mCardScroller.setAdapter(new CardAdapter(createCards(this)));
//         setContentView(mCardScroller);
//     }
// 
//     /**
//      * Create list of cards that showcase different type of {@link Card} API.
//      */
//     private List<Card> createCards(Context context) {
//         ArrayList<Card> cards = new ArrayList<Card>();
//         cards.add(getImagesCard(context)
//                 .setImageLayout(ImageLayout.LEFT)
//                 .setText(R.string.text_left_images_layout_card));
//         cards.add(getImagesCard(context)
//                 .setImageLayout(ImageLayout.FULL)
//                 .setText(R.string.text_full_images_layout_card));
//         return cards;
//     }
// 
//     private Card getImagesCard(Context context) {
//         Card card = new Card(context);
//         card.addImage(R.drawable.codemonkey1);
//         card.addImage(R.drawable.codemonkey2);
//         card.addImage(R.drawable.codemonkey3);
//         card.addImage(R.drawable.codemonkey4);
//         card.addImage(R.drawable.codemonkey5);
//         return card;
//     }
// 
//     @Override
//     protected void onResume() {
//         super.onResume();
//         mCardScroller.activate();
//     }
// 
//     @Override
//     protected void onPause() {
//         mCardScroller.deactivate();
//         super.onPause();
//     }
// }
// 
// Path: Components/googleglass-1.6/lib/android/16/content/google-gdk/samples/ApiDemo/src/com/google/android/glass/sample/apidemo/theming/ThemingActivity.java
// public final class ThemingActivity extends Activity {
// 
//     private CardScrollView mCardScroller;
// 
//     @Override
//     protected void onCreate(Bundle bundle) {
//         super.onCreate(bundle);
//         mCardScroller = new CardScrollView(this);
//         mCardScroller.setAdapter(new LayoutAdapter(this));
//         setContentView(mCardScroller);
//     }
// 
//     @Override
//     protected void onResume() {
//         super.onResume();
//         mCardScroller.activate();
//     }
// 
//     @Override
//     protected void onPause() {
//         mCardScroller.deactivate();
//         super.onPause();
//     }
// }


import com.google.android.glass.sample.apidemo.card.CardsActivity;
import com.google.android.glass.sample.apidemo.theming.ThemingActivity;
import com.google.android.glass.sample.apidemo.touchpad.SelectGestureDemoActivity;
import android.app.Activity;
import android.app.Instrumentation;
import android.test.ActivityInstrumentationTestCase2;
/*
 * Copyright (C) 2014 The Android Open Source Project
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package com.google.android.glass.sample.apidemo;



/**
 * Unit tests for {@link ApiDemoActivity}.
 */
public class ApiDemoActivityTest extends ActivityInstrumentationTestCase2<ApiDemoActivity> {

    private static final int MONITOR_TIMEOUT = 5 * 1000;
    private Instrumentation.ActivityMonitor mCardsActivityMonitor;
    private Instrumentation.ActivityMonitor mDetectorActivityMonitor;
    private Instrumentation.ActivityMonitor mThemingActivityMonitor;

    public ApiDemoActivityTest() {
        super(ApiDemoActivity.class);
    }

    @Override
    protected void setUp() throws Exception {
        super.setUp();
// Path: Components/googleglass-1.6/lib/android/16/content/google-gdk/samples/ApiDemo/src/com/google/android/glass/sample/apidemo/card/CardsActivity.java
// public final class CardsActivity extends Activity {
// 
//     private CardScrollView mCardScroller;
// 
//     @Override
//     protected void onCreate(Bundle bundle) {
//         super.onCreate(bundle);
// 
//         mCardScroller = new CardScrollView(this);
//         mCardScroller.setAdapter(new CardAdapter(createCards(this)));
//         setContentView(mCardScroller);
//     }
// 
//     /**
//      * Create list of cards that showcase different type of {@link Card} API.
//      */
//     private List<Card> createCards(Context context) {
//         ArrayList<Card> cards = new ArrayList<Card>();
//         cards.add(getImagesCard(context)
//                 .setImageLayout(ImageLayout.LEFT)
//                 .setText(R.string.text_left_images_layout_card));
//         cards.add(getImagesCard(context)
//                 .setImageLayout(ImageLayout.FULL)
//                 .setText(R.string.text_full_images_layout_card));
//         return cards;
//     }
// 
//     private Card getImagesCard(Context context) {
//         Card card = new Card(context);
//         card.addImage(R.drawable.codemonkey1);
//         card.addImage(R.drawable.codemonkey2);
//         card.addImage(R.drawable.codemonkey3);
//         card.addImage(R.drawable.codemonkey4);
//         card.addImage(R.drawable.codemonkey5);
//         return card;
//     }
// 
//     @Override
//     protected void onResume() {
//         super.onResume();
//         mCardScroller.activate();
//     }
// 
//     @Override
//     protected void onPause() {
//         mCardScroller.deactivate();
//         super.onPause();
//     }
// }
// 
// Path: Components/googleglass-1.6/lib/android/16/content/google-gdk/samples/ApiDemo/src/com/google/android/glass/sample/apidemo/theming/ThemingActivity.java
// public final class ThemingActivity extends Activity {
// 
//     private CardScrollView mCardScroller;
// 
//     @Override
//     protected void onCreate(Bundle bundle) {
//         super.onCreate(bundle);
//         mCardScroller = new CardScrollView(this);
//         mCardScroller.setAdapter(new LayoutAdapter(this));
//         setContentView(mCardScroller);
//     }
// 
//     @Override
//     protected void onResume() {
//         super.onResume();
//         mCardScroller.activate();
//     }
// 
//     @Override
//     protected void onPause() {
//         mCardScroller.deactivate();
//         super.onPause();
//     }
// }


// Path: Components/googleglass-1.6/lib/android/16/content/google-gdk/samples/ApiDemo/tests/src/com/google/android/glass/sample/apidemo/ApiDemoActivityTest.java
import com.google.android.glass.sample.apidemo.card.CardsActivity;
import com.google.android.glass.sample.apidemo.theming.ThemingActivity;
import com.google.android.glass.sample.apidemo.touchpad.SelectGestureDemoActivity;
import android.app.Activity;
import android.app.Instrumentation;
import android.test.ActivityInstrumentationTestCase2;

/*
 * Copyright (C) 2014 The Android Open Source Project
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package com.google.android.glass.sample.apidemo;



/**
 * Unit tests for {@link ApiDemoActivity}.
 */
public class ApiDemoActivityTest extends ActivityInstrumentationTestCase2<ApiDemoActivity> {

    private static final int MONITOR_TIMEOUT = 5 * 1000;
    private Instrumentation.ActivityMonitor mCardsActivityMonitor;
    private Instrumentation.ActivityMonitor mDetectorActivityMonitor;
    private Instrumentation.ActivityMonitor mThemingActivityMonitor;

    public ApiDemoActivityTest() {
        super(ApiDemoActivity.class);
    }

    @Override
    protected void setUp() throws Exception {
        super.setUp();
        mCardsActivityMonitor = new Instrumentation.ActivityMonitor(