Search in sources :

Example 1 with DirectoryListBot

use of com.android.documentsui.bots.DirectoryListBot in project android_frameworks_base by ResurrectionRemix.

the class FilesJankPerfTest method setUpInLoop.

public void setUpInLoop() {
    final UiDevice device = UiDevice.getInstance(getInstrumentation());
    final Context context = getInstrumentation().getTargetContext();
    mRootsListBot = new RootsListBot(device, context, BOT_TIMEOUT);
    mDirListBot = new DirectoryListBot(device, context, BOT_TIMEOUT);
    final Intent intent = new Intent(context, FilesActivity.class);
    intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
    mActivity = getInstrumentation().startActivitySync(intent);
}
Also used : Context(android.content.Context) UiDevice(android.support.test.uiautomator.UiDevice) RootsListBot(com.android.documentsui.bots.RootsListBot) Intent(android.content.Intent) DirectoryListBot(com.android.documentsui.bots.DirectoryListBot)

Example 2 with DirectoryListBot

use of com.android.documentsui.bots.DirectoryListBot in project android_frameworks_base by DirtyUnicorns.

the class FilesJankPerfTest method setUpInLoop.

public void setUpInLoop() {
    final UiDevice device = UiDevice.getInstance(getInstrumentation());
    final Context context = getInstrumentation().getTargetContext();
    mRootsListBot = new RootsListBot(device, context, BOT_TIMEOUT);
    mDirListBot = new DirectoryListBot(device, context, BOT_TIMEOUT);
    final Intent intent = new Intent(context, FilesActivity.class);
    intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
    mActivity = getInstrumentation().startActivitySync(intent);
}
Also used : Context(android.content.Context) UiDevice(android.support.test.uiautomator.UiDevice) RootsListBot(com.android.documentsui.bots.RootsListBot) Intent(android.content.Intent) DirectoryListBot(com.android.documentsui.bots.DirectoryListBot)

Example 3 with DirectoryListBot

use of com.android.documentsui.bots.DirectoryListBot in project platform_frameworks_base by android.

the class FilesJankPerfTest method setUpInLoop.

public void setUpInLoop() {
    final UiDevice device = UiDevice.getInstance(getInstrumentation());
    final Context context = getInstrumentation().getTargetContext();
    mRootsListBot = new RootsListBot(device, context, BOT_TIMEOUT);
    mDirListBot = new DirectoryListBot(device, context, BOT_TIMEOUT);
    final Intent intent = new Intent(context, FilesActivity.class);
    intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
    mActivity = getInstrumentation().startActivitySync(intent);
}
Also used : Context(android.content.Context) UiDevice(android.support.test.uiautomator.UiDevice) RootsListBot(com.android.documentsui.bots.RootsListBot) Intent(android.content.Intent) DirectoryListBot(com.android.documentsui.bots.DirectoryListBot)

Example 4 with DirectoryListBot

use of com.android.documentsui.bots.DirectoryListBot in project android_frameworks_base by crdroidandroid.

the class FilesJankPerfTest method setUpInLoop.

public void setUpInLoop() {
    final UiDevice device = UiDevice.getInstance(getInstrumentation());
    final Context context = getInstrumentation().getTargetContext();
    mRootsListBot = new RootsListBot(device, context, BOT_TIMEOUT);
    mDirListBot = new DirectoryListBot(device, context, BOT_TIMEOUT);
    final Intent intent = new Intent(context, FilesActivity.class);
    intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
    mActivity = getInstrumentation().startActivitySync(intent);
}
Also used : Context(android.content.Context) UiDevice(android.support.test.uiautomator.UiDevice) RootsListBot(com.android.documentsui.bots.RootsListBot) Intent(android.content.Intent) DirectoryListBot(com.android.documentsui.bots.DirectoryListBot)

Example 5 with DirectoryListBot

use of com.android.documentsui.bots.DirectoryListBot in project android_frameworks_base by AOSPA.

the class FilesJankPerfTest method setUpInLoop.

public void setUpInLoop() {
    final UiDevice device = UiDevice.getInstance(getInstrumentation());
    final Context context = getInstrumentation().getTargetContext();
    mRootsListBot = new RootsListBot(device, context, BOT_TIMEOUT);
    mDirListBot = new DirectoryListBot(device, context, BOT_TIMEOUT);
    final Intent intent = new Intent(context, FilesActivity.class);
    intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
    mActivity = getInstrumentation().startActivitySync(intent);
}
Also used : Context(android.content.Context) UiDevice(android.support.test.uiautomator.UiDevice) RootsListBot(com.android.documentsui.bots.RootsListBot) Intent(android.content.Intent) DirectoryListBot(com.android.documentsui.bots.DirectoryListBot)

Aggregations

Context (android.content.Context)5 Intent (android.content.Intent)5 UiDevice (android.support.test.uiautomator.UiDevice)5 DirectoryListBot (com.android.documentsui.bots.DirectoryListBot)5 RootsListBot (com.android.documentsui.bots.RootsListBot)5