Home
last modified time | relevance | path

Searched refs:activityName (Results 1 – 14 of 14) sorted by relevance

/platform_testing/libraries/flicker/src/com/android/server/wm/traces/parser/windowmanager/
DWaitForValidActivityState.kt27 val activityName: ComponentName?, constant in com.android.server.wm.traces.parser.windowmanager.WaitForValidActivityState
37 constructor(activityName: ComponentName) : this(
38 activityName,
39 windowName = activityName.toWindowName(),
46 activityName = builder.activityName,
55 if (activityName != null) { in toString()
56 sb.append(" activity=").append(activityName.toActivityName()) in toString()
73 class Builder constructor(internal var activityName: ComponentName? = null) { variable in com.android.server.wm.traces.parser.windowmanager.WaitForValidActivityState.Builder
74 internal var windowName: String? = activityName?.toWindowName()
DWindowManagerStateHelper.kt198 val activityName = activity.toActivityName() in waitForActivityState() constant
199 return waitFor("state of $activityName to be $activityState") { in waitForActivityState()
200 it.wmState.hasActivityState(activityName, activityState) in waitForActivityState()
236 val activityName = activity.toActivityName() in waitForVisibleWindow() constant
238 return waitFor("$activityName to exist") { in waitForVisibleWindow()
239 val containsActivity = it.wmState.containsActivity(activityName) in waitForVisibleWindow()
241 val activityVisible = containsActivity && it.wmState.isActivityVisible(activityName) in waitForVisibleWindow()
259 val activityName = activity.toActivityName() in waitForActivityRemoved() constant
261 return waitFor("$activityName to be removed") { in waitForActivityRemoved()
262 val containsActivity = it.wmState.containsActivity(activityName) in waitForActivityRemoved()
[all …]
/platform_testing/libraries/app-helpers/interfaces/auto/src/android/platform/helpers/
DIAutoSUWHelper.java40 private final String activityName; field in IAutoSUWHelper.ActivityType
42 ActivityType(String activityName) { in ActivityType() argument
43 this.activityName = activityName; in ActivityType()
47 return activityName; in getActivityName()
/platform_testing/libraries/flicker/src/com/android/server/wm/traces/common/windowmanager/
DWindowManagerState.kt155 fun getTaskDisplayArea(activityName: String): DisplayArea? { in <lambda>()
156 val result = displays.mapNotNull { it.getTaskDisplayArea(activityName) } in <lambda>()
251 fun getStackByActivity(activityName: String): ActivityTask? { in <lambda>()
254 stack.containsActivity(activityName) in <lambda>()
286 fun getStackIndexByActivity(activityName: String): Int { in <lambda>()
290 if (stack.containsActivity(activityName)) return i in <lambda>()
303 fun containsActivity(activityName: String): Boolean = in <lambda>()
304 rootTasks.any { it.containsActivity(activityName) } in <lambda>()
307 for (activityName in activityNames) { in <lambda>() method
309 if (stack.containsActivity(activityName)) return false in <lambda>()
[all …]
/platform_testing/tests/perf/PerformanceAppTest/src/com/android/performanceapp/tests/
DAppLaunchTests.java152 for (String activityName : mActivityList) { in testAppLaunchPerformance()
154 if (activityName.startsWith(URL_PREFIX)) { in testAppLaunchPerformance()
155 intent = new Intent(Intent.ACTION_VIEW, Uri.parse(activityName)); in testAppLaunchPerformance()
159 mDispatcher != null ? mDispatcher : activityName); in testAppLaunchPerformance()
166 intent.putExtra("ACTIVITY_NAME", activityName); in testAppLaunchPerformance()
208 if (!activityName.startsWith(URL_PREFIX)) { in testAppLaunchPerformance()
209 fileName = String.format("%s-%d-%d", activityName, count, processId); in testAppLaunchPerformance()
211 fileName = String.format("%s-%d-%d", Uri.parse(activityName).getHost(), in testAppLaunchPerformance()
230 if (!activityName.startsWith(URL_PREFIX)) { in testAppLaunchPerformance()
231 registerTraceFileNames(activityName, fileName); in testAppLaunchPerformance()
[all …]
/platform_testing/tests/jank/uibench/src/com/android/uibench/janktests/
DUiBenchJankTestsHelper.java76 public void launchActivity(String activityName, Bundle extras, String verifyText) { in launchActivity() argument
78 String.format("%s.%s", PACKAGE_NAME, activityName)); in launchActivity()
90 Assert.assertNotNull(String.format("Issue in opening %s", activityName), in launchActivity()
94 public void launchActivity(String activityName, String verifyText) { in launchActivity() argument
95 launchActivity(activityName, null, verifyText); in launchActivity()
98 public void launchActivityAndAssert(String activityName, String verifyText) { in launchActivityAndAssert() argument
99 launchActivity(activityName, verifyText); in launchActivityAndAssert()
101 Assert.assertNotNull(activityName + " isn't found", mContents); in launchActivityAndAssert()
/platform_testing/libraries/flicker/src/com/android/server/wm/traces/common/windowmanager/windows/
DDisplayArea.kt37 fun containsActivity(activityName: String): Boolean { in containsActivity()
41 activities.any { it.title == activityName } in containsActivity()
DDisplayContent.kt77 fun containsActivity(activityName: String): Boolean = in <lambda>()
78 rootTasks.any { it.containsActivity(activityName) } in <lambda>()
80 fun getTaskDisplayArea(activityName: String): DisplayArea? { in <lambda>()
82 .filter { it.containsActivity(activityName) } in <lambda>()
DActivityTask.kt90 fun getActivity(activityName: String): Activity? { in <lambda>()
91 return getActivity { activity -> activity.title == activityName } in <lambda>()
94 fun containsActivity(activityName: String) = getActivity(activityName) != null in <lambda>()
/platform_testing/tests/microbenchmarks/uibench/src/com/android/uibench/microbenchmark/
DUiBenchJankHelper.java82 void launchActivity(String activityName, Bundle extras, String verifyText) { in launchActivity() argument
84 new ComponentName(PACKAGE_NAME, String.format("%s.%s", PACKAGE_NAME, activityName)); in launchActivity()
96 Assert.assertNotNull(String.format("Issue in opening %s", activityName), expectedTextCmp); in launchActivity()
99 void launchActivity(String activityName, String verifyText) { in launchActivity() argument
100 launchActivity(activityName, null, verifyText); in launchActivity()
103 void launchActivityAndAssert(String activityName, String verifyText) { in launchActivityAndAssert() argument
104 launchActivity(activityName, verifyText); in launchActivityAndAssert()
107 Assert.assertNotNull(activityName + " isn't found", mContents); in launchActivityAndAssert()
276 String activityName, in openLeanbackActivity() argument
281 launchActivity(activityName, extrasBundle, expectedText); in openLeanbackActivity()
DIUiBenchJankHelper.java63 String activityName, in openLeanbackActivity() argument
/platform_testing/libraries/flicker/src/com/android/server/wm/flicker/helpers/
DStandardAppHelper.kt58 val activityName: String = component.toActivityName() constant
126 val activityName = component.toActivityName() in waitForActivityDestroyed() constant
127 wmHelper.waitFor("state of $activityName to be ${WindowManagerState.STATE_DESTROYED}") { in waitForActivityDestroyed()
128 !it.wmState.containsActivity(activityName) || in waitForActivityDestroyed()
129 it.wmState.hasActivityState(activityName, WindowManagerState.STATE_DESTROYED) in waitForActivityDestroyed()
/platform_testing/libraries/flicker/src/com/android/server/wm/flicker/traces/windowmanager/
DWindowManagerStateSubject.kt378 val activityName = activity.toActivityName() in <lambda>() constant
379 check("Activity=$activityName must exist.") in <lambda>()
380 .that(wmState.containsActivity(activityName)).isTrue() in <lambda>()
394 val activityName = activity.toActivityName() in <lambda>() constant
395 check("Activity=$activityName must NOT exist.") in <lambda>()
396 .that(wmState.containsActivity(activityName)).isFalse() in <lambda>()
571 val activityName = activity.toActivityName() in <lambda>() constant
572 check("Activity=$activityName must exist.") in <lambda>()
573 .that(wmState.containsActivity(activityName)).isTrue() in <lambda>()
578 check("Activity=$activityName must ${if (visible) "" else " NOT"} be visible.") in <lambda>()
[all …]
/platform_testing/libraries/system-helpers/activity-helper/src/android/system/helpers/
DActivityHelper.java73 public int getTaskIdForActivity(String pkgName, String activityName) { in getTaskIdForActivity() argument
77 String.format("taskId=(\\d+): %s/%s", pkgName, activityName)); in getTaskIdForActivity()
82 taskId, pkgName, activityName)); in getTaskIdForActivity()