1
0
mirror of https://github.com/ARM-software/workload-automation.git synced 2025-09-25 06:32:41 +01:00
This commit is contained in:
jumana-arm
2016-12-02 07:42:42 +00:00
committed by GitHub
16 changed files with 24 additions and 3 deletions

View File

@@ -16,6 +16,7 @@
package com.arm.wlauto.uiauto.adobereader;
import android.os.Bundle;
import android.util.Log;
// Import the uiautomator libraries
import com.android.uiautomator.core.UiObject;
@@ -52,6 +53,7 @@ public class UiAutomation extends UxPerfUiAutomation {
String[] searchStrings =
parameters.getString("search_string_list").replace("0space0", " ").split("0newline0");
Log.d("UX_PERF", "applaunch_end " + System.currentTimeMillis());
setScreenOrientation(ScreenOrientation.NATURAL);
dismissWelcomeView();

View File

@@ -17,6 +17,7 @@ package com.arm.wlauto.uiauto.googlephotos;
import android.os.Bundle;
import android.graphics.Rect;
import android.util.Log;
// Import the uiautomator libraries
import com.android.uiautomator.core.UiObject;
@@ -50,6 +51,7 @@ public class UiAutomation extends UxPerfUiAutomation {
packageID = packageName + ":id/";
sleep(5); // Pause while splash screen loads
Log.d("UX_PERF", "applaunch_end " + System.currentTimeMillis());
setScreenOrientation(ScreenOrientation.NATURAL);
dismissWelcomeView();
closePromotionPopUp();

View File

@@ -16,6 +16,7 @@
package com.arm.wlauto.uiauto.googleplaybooks;
import android.os.Bundle;
import android.util.Log;
// Import the uiautomator libraries
import com.android.uiautomator.core.UiObject;
@@ -62,6 +63,7 @@ public class UiAutomation extends UxPerfUiAutomation {
String noteText = "This is a test note";
String account = parameters.getString("account");
Log.d("UX_PERF", "applaunch_end " + System.currentTimeMillis());
setScreenOrientation(ScreenOrientation.NATURAL);
chooseAccount(account);

View File

@@ -22,6 +22,7 @@ import java.util.Map;
import android.graphics.Rect;
import android.os.Bundle;
import android.os.SystemClock;
import android.util.Log;
// Import the uiautomator libraries
import com.android.uiautomator.core.Configurator;
@@ -57,6 +58,7 @@ public class UiAutomation extends UxPerfUiAutomation {
boolean doTextEntry = Boolean.parseBoolean(parameters.getString("do_text_entry"));
String workingDirectoryName = parameters.getString("workdir_name");
Log.d("UX_PERF", "applaunch_end " + System.currentTimeMillis());
setScreenOrientation(ScreenOrientation.NATURAL);
changeAckTimeout(100);
// UI automation begins here

View File

@@ -16,6 +16,7 @@
package com.arm.wlauto.uiauto.skype;
import android.os.Bundle;
import android.util.Log;
// Import the uiautomator libraries
import com.android.uiautomator.core.UiObject;
@@ -55,6 +56,7 @@ public class UiAutomation extends UxPerfUiAutomation {
String callType = parameters.getString("action");
String resultsFile = parameters.getString("results_file");
Log.d("UX_PERF", "applaunch_end " + System.currentTimeMillis());
setScreenOrientation(ScreenOrientation.NATURAL);
UiWatcher infoPopUpWatcher = createInfoPopUpWatcher();

View File

@@ -17,6 +17,7 @@ package com.arm.wlauto.uiauto.youtube;
import android.os.Bundle;
import android.os.SystemClock;
import android.util.Log;
// Import the uiautomator libraries
import com.android.uiautomator.core.UiObject;
@@ -54,6 +55,7 @@ public class UiAutomation extends UxPerfUiAutomation {
searchTerm = searchTerm.replace("0space0", " ");
}
Log.d("UX_PERF", "applaunch_end " + System.currentTimeMillis());
setScreenOrientation(ScreenOrientation.NATURAL);
clearFirstRunDialogues();