History log of /cts/tools/host/src/com/android/cts/TestHost.java
Revision Date Author Comments
6a259f47ea4aa0c7ebb5fba160328b2a25f38d24 08-Apr-2011 Kan-Ru Chen <kanru@0xlab.org> Allow saving log files in different directory

If TestLog path is not specified, then use ConfigRoot instead to
retain old behavior.

Change-Id: Icf07fb8555192c8eb3722bc5fdc792000a764669
f8c0a36cd3130cde3808790cfe5a1a31ff5807aa 05-Nov-2010 Brian Muramatsu <btmura@android.com> Remove Profile Annotations Experiment

Bug 3166146

Change-Id: I23e09d4c4d828c8094d7feefaa5e1ed1ce07715f
57980ae875013ccbba8ebac1bd9f9bb9cddcc47c 24-Aug-2010 Brian Muramatsu <btmura@android.com> Cts Feature/Profile Annotations

Add annotations that allow CTS to be used for multiple device
profiles.

Example is shown in ProfileTest.java.

1. @SupportedProfiles - run the test only if the device's profile is
the one passed via the "--profile" flag to CTS like:

startcts --plan CTS --profile HANDHELD
startcts --plan CTS --profile STB

2. @RequiredFeatures - run the test only if the device's
PackageManager reports the features needed by the test. For
instance tag wifi tests with this annotation's value set to
the wifi feature to only run it on devices that declare the
feature.

If not specified, the profile will be set to ALL, which means run all
the tests.

This creates an additional library for CTS test annotations, so this
will require a change to the build/core/cts.mk project too. A new
Makefile "CtsHostLibraryList.mk" can be used now to have the host
use additional libraries.

Change-Id: I69d76b65569160648020306fe14c94242d99efc1
7bc0e8e2367cc49b0ce8f1fdef3937f9129bd3b8 24-Aug-2010 Brian Muramatsu <btmura@android.com> DO NOT MERGE Cts Feature/Profile Annotations

Add annotations that allow CTS to be used for multiple device
profiles.

Example is shown in ProfileTest.java.

1. @SupportedProfiles - run the test only if the device's profile is
the one passed via the "--profile" flag to CTS like:

startcts --plan CTS --profile HANDHELD
startcts --plan CTS --profile STB

2. @RequiredFeatures - run the test only if the device's
PackageManager reports the features needed by the test. For
instance tag wifi tests with this annotation's value set to
the wifi feature to only run it on devices that declare the
feature.

If not specified, the profile will be set to ALL, which means run all
the tests.

This creates an additional library for CTS test annotations, so this
will require a change to the build/core/cts.mk project too. A new
Makefile "CtsHostLibraryList.mk" can be used now to have the host
use additional libraries.

Change-Id: I2c75a07eccf90df3bee0a87edf0d2d497e150930
3da7534f2880068b90b88585c45be62751dbfd6b 13-Jan-2010 The Android Open Source Project <initial-contribution@android.com> android-2.1_r1 snapshot
62a17ceaac5e087ed8cdf6abfa3ce91343ccbda1 12-Nov-2009 Brett Chabot <brettchabot@android.com> Add receiver to CTS to disable the screen lock.

The receiver was added to the existing 'DeviceInfoCollector' apk, and that apk
was renamed to TestDeviceSetup to reflect its new purpose.
This replaces the old method of injecting a menu key event, which no longer
works.

Bug 2099347

Change-Id: Icf0c2ba6e65fb0e401dfcc98468c91bb0c7b521d
dc4e179f1821bbeac2e66a383beb51c2edbb7d55 05-May-2009 Phil Dubach <nobody@android.com> AI 148315: CTS: Import existing sessions from result directory when restarting console
BUG=1812493

Automated import of CL 148315
5b58efe5a7b53a57dc217cdbc6c95185400dea2f 05-May-2009 Phil Dubach <nobody@android.com> AI 148303: CTS host: Add host machine information to the CTS result
Add hostname, OS and Java information and a CTS version string to the
result XML.
BUG=1819121

Automated import of CL 148303
3a52ca1adee572f7a3eed702a5a6edd692103921 29-Apr-2009 Phil Dubach <> AI 147980: CTS: Fix device status problem after a reset
If a device gets reset during execution of a test package, we get a new
TestDevice instance upon reconnect. This fixes a problem where the status
was only updated in the obsolete TestDevice instance.

Automated import of CL 147980
62311851c88f51785e03ec3c2abed8a0060f48cf 26-Apr-2009 Phil Dubach <> AI 147797: CTS: Throw exception on attempts to install a nonexistent APK
Previously submitted as CL147771, which was missing files.

Automated import of CL 147797
af9a409bf54a26b78e08e7799192dad5ddfda648 25-Apr-2009 Gaurav Mathur <> AI 147786: Automated g4 rollback of changelist 147771.
*** Reason for rollback ***
CL 147771 broke the build - reverting
*** Original change description ***
CTS: Throw exception on attempts to install a nonexistent APK

Automated import of CL 147786
4f35e5e9c5fa551355e250186230ee29a4c6563f 25-Apr-2009 Phil Dubach <> AI 147771: CTS: Throw exception on attempts to install a nonexistent APK
BUG=1810821

Automated import of CL 147771
8926a108666630e1a2ee0c4b517f134714413174 19-Apr-2009 Bill Napier <> AI 146835: am: CL 146766 am: CL 146764 Added Reference App Testing Support to CTS host.
Original author: napier
Merged from: //branches/cupcake/...
Original author: android-build

Automated import of CL 146835
9bf29d299faed6b8d187b0d346f86732fb490d3e 17-Apr-2009 Bill Napier <> AI 146766: am: CL 146764 Added Reference App Testing Support to CTS host.
Original author: napier
Merged from: //branches/cupcake/...

Automated import of CL 146766
a74a1c255075f88502b5cd89d8b34a3675320dca 17-Apr-2009 Bill Napier <> AI 146764: Added Reference App Testing Support to CTS host.

Automated import of CL 146764
577e42f9222dc758cbff3b5e8228058226ac2be1 28-Mar-2009 Phil Dubach <> AI 143264: am: CL 143117 CTS: Make device restart configurable through environment variable CTS_RESTART_AFTER
Original author: phillipd
Merged from: //branches/cupcake/...

Automated import of CL 143264
f3ad09c5744bf5f6d898ece837ccb57f5f32be61 28-Mar-2009 Phil Dubach <> AI 143393: am: CL 143264 am: CL 143117 CTS: Make device restart configurable through environment variable CTS_RESTART_AFTER
Original author: phillipd
Merged from: //branches/cupcake/...
Original author: android-build
Merged from: //branches/donutburger/...

Automated import of CL 143393
b2d93647a11235e8557c60c3c71aef9f08aa123f 27-Mar-2009 Phil Dubach <> AI 143117: CTS: Make device restart configurable through environment variable CTS_RESTART_AFTER

Automated import of CL 143117
7ca56dfb7d78d0050a3da3d87c040ca7910b3344 19-Mar-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //branches/cupcake_rel/...@140373
f8057104af9cae031b544e971a52adafa7c0d9e1 16-Mar-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //branches/cupcake_rel/...@138607