summaryrefslogtreecommitdiffstats
path: root/cmds
diff options
context:
space:
mode:
authorDoug Zongker <dougz@android.com>2009-12-01 09:12:22 -0800
committerAndroid Git Automerger <android-git-automerger@android.com>2009-12-01 09:12:22 -0800
commit1b3c375ce2f790f890f8efe7117040738035d6c5 (patch)
tree4014d2d13ecfc890e115437d69b10f2499b640b3 /cmds
parent4cbe8ef11e4e913180133822da7e9b3ccc369569 (diff)
parentbf72820e7775748c7239287b49b81031167b3428 (diff)
downloadframeworks_base-1b3c375ce2f790f890f8efe7117040738035d6c5.zip
frameworks_base-1b3c375ce2f790f890f8efe7117040738035d6c5.tar.gz
frameworks_base-1b3c375ce2f790f890f8efe7117040738035d6c5.tar.bz2
am bf72820e: am b292461c: Merge change I305e1b8f into eclair-mr2
Merge commit 'bf72820e7775748c7239287b49b81031167b3428' * commit 'bf72820e7775748c7239287b49b81031167b3428': add --esn option to am to allow adding extra with a null value
Diffstat (limited to 'cmds')
-rw-r--r--cmds/am/src/com/android/commands/am/Am.java23
1 files changed, 14 insertions, 9 deletions
diff --git a/cmds/am/src/com/android/commands/am/Am.java b/cmds/am/src/com/android/commands/am/Am.java
index eca5af9..d640de1 100644
--- a/cmds/am/src/com/android/commands/am/Am.java
+++ b/cmds/am/src/com/android/commands/am/Am.java
@@ -2,16 +2,16 @@
**
** Copyright 2007, The Android Open Source Project
**
-** Licensed under the Apache License, Version 2.0 (the "License");
-** you may not use this file except in compliance with the License.
-** You may obtain a copy of the License at
+** Licensed under the Apache License, Version 2.0 (the "License");
+** you may not use this file except in compliance with the License.
+** You may obtain a copy of the License at
**
-** http://www.apache.org/licenses/LICENSE-2.0
+** http://www.apache.org/licenses/LICENSE-2.0
**
-** Unless required by applicable law or agreed to in writing, software
-** distributed under the License is distributed on an "AS IS" BASIS,
-** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-** See the License for the specific language governing permissions and
+** Unless required by applicable law or agreed to in writing, software
+** distributed under the License is distributed on an "AS IS" BASIS,
+** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+** See the License for the specific language governing permissions and
** limitations under the License.
*/
@@ -126,6 +126,10 @@ public class Am {
String value = nextArgRequired();
intent.putExtra(key, value);
hasIntentInfo = true;
+ } else if (opt.equals("--esn")) {
+ String key = nextArgRequired();
+ intent.putExtra(key, (String) null);
+ hasIntentInfo = true;
} else if (opt.equals("--ei")) {
String key = nextArgRequired();
String value = nextArgRequired();
@@ -364,7 +368,7 @@ public class Am {
private boolean mRawMode = false;
/**
- * Set or reset "raw mode". In "raw mode", all bundles are dumped. In "pretty mode",
+ * Set or reset "raw mode". In "raw mode", all bundles are dumped. In "pretty mode",
* if a bundle includes Instrumentation.REPORT_KEY_STREAMRESULT, just print that.
* @param rawMode true for raw mode, false for pretty mode.
*/
@@ -507,6 +511,7 @@ public class Am {
" [-a <ACTION>] [-d <DATA_URI>] [-t <MIME_TYPE>]\n" +
" [-c <CATEGORY> [-c <CATEGORY>] ...]\n" +
" [-e|--es <EXTRA_KEY> <EXTRA_STRING_VALUE> ...]\n" +
+ " [--esn <EXTRA_KEY> ...]\n" +
" [--ez <EXTRA_KEY> <EXTRA_BOOLEAN_VALUE> ...]\n" +
" [-e|--ei <EXTRA_KEY> <EXTRA_INT_VALUE> ...]\n" +
" [-n <COMPONENT>] [-f <FLAGS>] [<URI>]\n"