// Path: driver/src/com/leandog/brazenhead/exceptions/IsNotAListViewItem.java
// @SuppressWarnings("unused")
// public class IsNotAListViewItem extends Exception {
//     private static final long serialVersionUID = 1L;
//     private final View theView;
// 
//     public IsNotAListViewItem(final View theView) {
//         this.theView = theView;
//     }
// 
// }
// 
// Path: driver/src/com/robotium/solo/BrazenheadSleeper.java
// public class BrazenheadSleeper extends Sleeper {
//     
//     @Override
//     public void sleep() {
//         super.sleep();
//     }
//     
//     @Override
//     public void sleepMini() {
//         super.sleepMini();
//     }
// }


import android.app.Instrumentation;
import android.view.*;
import android.widget.*;
import com.leandog.brazenhead.exceptions.IsNotAListViewItem;
import com.robotium.solo.BrazenheadSleeper;
import com.robotium.solo.Solo;
        }

        assertWasAListItem(foundListItem, theParent);
        return foundListItem;
    }

    private View theParentOf(final View view) {
        return (View) view.getParent();
    }

    private void waitForText(final String itemText, final Solo solo) throws Exception {
        if (!solo.waitForText(itemText)) {
            throw new Exception(String.format("A View with text \"%s\" was not found", itemText));
        }
    }

    private boolean atTheRootViewFor(View theParent) {
        return theParent != null && !(theParent instanceof AbsListView);
    }

    private void assertWasAListItem(View foundListItem, View theParent) throws IsNotAListViewItem {
        if (theParent == null) {
            throw new IsNotAListViewItem(foundListItem);
        }
    }

    private void setTheSelection(final int itemIndex, final int listIndex) {
        instrumentation.runOnMainSync(new Runnable() {

            @Override
// Path: driver/src/com/leandog/brazenhead/exceptions/IsNotAListViewItem.java
// @SuppressWarnings("unused")
// public class IsNotAListViewItem extends Exception {
//     private static final long serialVersionUID = 1L;
//     private final View theView;
// 
//     public IsNotAListViewItem(final View theView) {
//         this.theView = theView;
//     }
// 
// }
// 
// Path: driver/src/com/robotium/solo/BrazenheadSleeper.java
// public class BrazenheadSleeper extends Sleeper {
//     
//     @Override
//     public void sleep() {
//         super.sleep();
//     }
//     
//     @Override
//     public void sleepMini() {
//         super.sleepMini();
//     }
// }


// Path: driver/src/com/leandog/brazenhead/ListItemFinder.java
import android.app.Instrumentation;
import android.view.*;
import android.widget.*;
import com.leandog.brazenhead.exceptions.IsNotAListViewItem;
import com.robotium.solo.BrazenheadSleeper;
import com.robotium.solo.Solo;

        }

        assertWasAListItem(foundListItem, theParent);
        return foundListItem;
    }

    private View theParentOf(final View view) {
        return (View) view.getParent();
    }

    private void waitForText(final String itemText, final Solo solo) throws Exception {
        if (!solo.waitForText(itemText)) {
            throw new Exception(String.format("A View with text \"%s\" was not found", itemText));
        }
    }

    private boolean atTheRootViewFor(View theParent) {
        return theParent != null && !(theParent instanceof AbsListView);
    }

    private void assertWasAListItem(View foundListItem, View theParent) throws IsNotAListViewItem {
        if (theParent == null) {
            throw new IsNotAListViewItem(foundListItem);
        }
    }

    private void setTheSelection(final int itemIndex, final int listIndex) {
        instrumentation.runOnMainSync(new Runnable() {

            @Override
            public void run() {