Home
last modified time | relevance | path

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

/cts/hostsidetests/services/activitymanager/src/android/server/cts/
DActivityManagerTestBase.java82 protected static String getAmStartCmd(final String activityName) { in getAmStartCmd() argument
83 return "am start -n " + getActivityComponentName(activityName); in getAmStartCmd()
86 protected static String getAmStartCmdOverHome(final String activityName) { in getAmStartCmdOverHome() argument
87 return "am start --activity-task-on-home -n " + getActivityComponentName(activityName); in getAmStartCmdOverHome()
90 static String getActivityComponentName(final String activityName) { in getActivityComponentName() argument
91 return "android.server.app/." + activityName; in getActivityComponentName()
94 static String getWindowName(final String activityName) { in getWindowName() argument
95 return "android.server.app/android.server.app." + activityName; in getWindowName()
147 protected void launchActivityInStack(String activityName, int stackId) throws Exception { in launchActivityInStack() argument
148 executeShellCommand(getAmStartCmd(activityName) + " --stack " + stackId); in launchActivityInStack()
[all …]
DActivityManagerReplaceWindowTests.java50 final String activityName = in testReplaceWindow_Dock() local
52 final String windowName = getWindowName(activityName); in testReplaceWindow_Dock()
53 final String amStartCmd = getAmStartCmd(activityName); in testReplaceWindow_Dock()
62 if (SLOW_CREATE_ACTIVITY_NAME.equals(activityName)) { in testReplaceWindow_Dock()
67 final String oldToken = getWindowToken(windowName, activityName, true); in testReplaceWindow_Dock()
70 final int taskId = getActivityTaskId(activityName); in testReplaceWindow_Dock()
78 final String newToken = getWindowToken(windowName, activityName, false); in testReplaceWindow_Dock()
84 private String getWindowToken(String windowName, String activityName, boolean visibleOnly) in getWindowToken() argument
86 mAmWmState.computeState(mDevice, visibleOnly, new String[] {activityName}); in getWindowToken()
88 mAmWmState.assertVisibility(activityName, true); in getWindowToken()
DActivityManagerManifestLayoutTests.java87 final String activityName = "BottomRightLayoutActivity"; in testMinimalSize() local
92 launchActivityInStack(activityName, stackId); in testMinimalSize()
93 resizeActivityTask(activityName, 0, 0, 1, 1); in testMinimalSize()
95 launchActivityInDockStack(activityName); in testMinimalSize()
98 getDisplayAndWindowState(activityName, false); in testMinimalSize()
115 final String activityName = (vGravity == GRAVITY_VER_TOP ? "Top" : "Bottom") in testLayout() local
119 launchActivityInStack(activityName, FREEFORM_WORKSPACE_STACK_ID); in testLayout()
121 getDisplayAndWindowState(activityName, true); in testLayout()
142 private void getDisplayAndWindowState(String activityName, boolean checkFocus) in getDisplayAndWindowState() argument
144 final String windowName = getWindowName(activityName); in getDisplayAndWindowState()
[all …]
DDisplaySizeTest.java142 private void startActivity(String packageName, String activityName) in startActivity() argument
144 mDevice.executeShellCommand(getStartCommand(packageName, activityName)); in startActivity()
147 private void startOtherActivityOnTop(String packageName, String activityName) in startOtherActivityOnTop() argument
149 final String startCmd = getStartCommand(packageName, activityName) in startOtherActivityOnTop()
154 private String getStartCommand(String packageName, String activityName) { in getStartCommand() argument
155 return String.format(AM_START_COMMAND, packageName, packageName, activityName); in getStartCommand()
DActivityAndWindowManagersState.java272 void assertFocusedActivity(String msg, String activityName) throws Exception { in assertFocusedActivity() argument
273 final String componentName = ActivityManagerTestBase.getActivityComponentName(activityName); in assertFocusedActivity()
278 void assertNotFocusedActivity(String msg, String activityName) throws Exception { in assertNotFocusedActivity() argument
279 final String componentName = ActivityManagerTestBase.getActivityComponentName(activityName); in assertNotFocusedActivity()
288 void assertResumedActivity(String msg, String activityName) throws Exception { in assertResumedActivity() argument
289 final String componentName = ActivityManagerTestBase.getActivityComponentName(activityName); in assertResumedActivity()
293 void assertNotResumedActivity(String msg, String activityName) throws Exception { in assertNotResumedActivity() argument
294 final String componentName = ActivityManagerTestBase.getActivityComponentName(activityName); in assertNotResumedActivity()
314 void assertVisibility(String activityName, boolean visible) { in assertVisibility() argument
316 ActivityManagerTestBase.getActivityComponentName(activityName); in assertVisibility()
[all …]
DActivityManagerAppConfigurationTests.java129 private ReportedSizes getActivityDisplaySize(String activityName, int stackId)
131 mAmWmState.computeState(mDevice, new String[] { activityName },
134 final ReportedSizes details = getLastReportedSizesForActivity(activityName);
DActivityManagerDockedStackTests.java348 private void launchActivityToSide(String activityName) throws Exception { in launchActivityToSide() argument
349 launchActivityToSide(activityName, false, false); in launchActivityToSide()
352 private void launchActivityToSide(String activityName, boolean randomData, in launchActivityToSide() argument
354 launchActivityToSide(activityName, randomData, multipleTaskFlag, null); in launchActivityToSide()
357 private void launchActivityToSide(String activityName, boolean randomData, in launchActivityToSide() argument
360 StringBuilder commandBuilder = new StringBuilder(getAmStartCmd(activityName)); in launchActivityToSide()
DActivityManagerState.java209 boolean isActivityVisible(String activityName) { in isActivityVisible() argument
213 if (activity.name.equals(activityName)) { in isActivityVisible()
245 ActivityTask getTaskByActivityName(String activityName) { in getTaskByActivityName() argument
246 return getTaskByActivityName(activityName, -1); in getTaskByActivityName()
249 ActivityTask getTaskByActivityName(String activityName, int stackId) { in getTaskByActivityName() argument
250 String fullName = ActivityManagerTestBase.getActivityComponentName(activityName); in getTaskByActivityName()
/cts/hostsidetests/services/windowmanager/src/android/wm/cts/
DCrossAppDragAndDropTests.java124 private String getComponentName(String packageName, String activityName) { in getComponentName() argument
125 return packageName + "/" + packageName + "." + activityName; in getComponentName()
157 private void launchDockedActivity(String packageName, String activityName, String mode) in launchDockedActivity() argument
160 final String componentName = getComponentName(packageName, activityName); in launchDockedActivity()
162 waitForResume(packageName, activityName); in launchDockedActivity()
165 private void launchFullscreenActivity(String packageName, String activityName, String mode) in launchFullscreenActivity() argument
168 final String componentName = getComponentName(packageName, activityName); in launchFullscreenActivity()
171 waitForResume(packageName, activityName); in launchFullscreenActivity()
174 private void waitForResume(String packageName, String activityName) throws Exception { in waitForResume() argument
175 final String fullActivityName = packageName + "." + activityName; in waitForResume()
/cts/hostsidetests/ui/control/src/android/taskswitching/control/cts/
DTaskSwitchingDeviceTest.java97 private void startActivity(String packageName, String activityName) { in startActivity() argument
102 intent.setComponent(new ComponentName(packageName, packageName + "." + activityName)); in startActivity()
/cts/tests/tests/content/src/android/content/pm/cts/
DPackageManagerTest.java195 ComponentName activityName = new ComponentName(PACKAGE_NAME, ACTIVITY_NAME); in testGetInfo() local
227 assertEquals(ACTIVITY_NAME, mPackageManager.getActivityInfo(activityName, 0).name); in testGetInfo()
/cts/hostsidetests/devicepolicy/src/com/android/cts/devicepolicy/
DManagedProfileTest.java723 private void disableActivityForUser(String activityName, int userId) in disableActivityForUser() argument
727 + " --es extra-class-name " + MANAGED_PROFILE_PKG + "." + activityName in disableActivityForUser()