diff options
author | Andy Stadler <> | 2009-04-21 11:51:43 -0700 |
---|---|---|
committer | The Android Open Source Project <initial-contribution@android.com> | 2009-04-21 11:51:43 -0700 |
commit | df2a463b01fe5222e377828225ca6710d5c14743 (patch) | |
tree | 3a47fae74e590c15880eb383fbe0c841c938b419 /core | |
parent | 5ed91c81709e6c4734c82dc6b9230c1d7d8c7436 (diff) | |
download | frameworks_base-df2a463b01fe5222e377828225ca6710d5c14743.zip frameworks_base-df2a463b01fe5222e377828225ca6710d5c14743.tar.gz frameworks_base-df2a463b01fe5222e377828225ca6710d5c14743.tar.bz2 |
AI 147167: am: CL 147162 Emphasize in the javadoc that the "pkg" parameters to
InstrumentationTestCase and its descendants should be the
package manager package name (not the java package name, and
not the test package) of the package holding the Activity
under test.
Added similar notations to the ApiDemos call sites.
JAVADOC ONLY - should be safe change for cupcake sdk.
Original author: stadler
Merged from: //branches/cupcake/...
Automated import of CL 147167
Diffstat (limited to 'core')
-rw-r--r-- | core/java/android/test/InstrumentationTestCase.java | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/core/java/android/test/InstrumentationTestCase.java b/core/java/android/test/InstrumentationTestCase.java index 82f2ef9..470ab0d 100644 --- a/core/java/android/test/InstrumentationTestCase.java +++ b/core/java/android/test/InstrumentationTestCase.java @@ -62,6 +62,10 @@ public class InstrumentationTestCase extends TestCase { * action = {@link Intent#ACTION_MAIN} * extras = null, unless a custom bundle is provided here * All other fields are null or empty. + * + * <p><b>NOTE:</b> The parameter <i>pkg</i> must refer to the package identifier of the + * package hosting the activity to be launched, which is specified in the AndroidManifest.xml + * file. This is not necessarily the same as the java package name. * * @param pkg The package hosting the activity to be launched. * @param activityCls The activity class to launch. @@ -82,6 +86,11 @@ public class InstrumentationTestCase extends TestCase { /** * Utility method for launching an activity with a specific Intent. + * + * <p><b>NOTE:</b> The parameter <i>pkg</i> must refer to the package identifier of the + * package hosting the activity to be launched, which is specified in the AndroidManifest.xml + * file. This is not necessarily the same as the java package name. + * * @param pkg The package hosting the activity to be launched. * @param activityCls The activity class to launch. * @param intent The intent to launch with |