diff options
author | Makoto Onuki <omakoto@google.com> | 2010-08-24 18:39:55 -0700 |
---|---|---|
committer | Makoto Onuki <omakoto@google.com> | 2010-08-24 18:39:55 -0700 |
commit | 6a69b4fbaee9a8251401453cd2d3509d52f5b91c (patch) | |
tree | 08c61f59e1a8bf15148c30235bfef24dff008744 /cmds/am/src | |
parent | 7a9f6faa3c1a058d27548a329df464f2eaf1f7d1 (diff) | |
download | frameworks_base-6a69b4fbaee9a8251401453cd2d3509d52f5b91c.zip frameworks_base-6a69b4fbaee9a8251401453cd2d3509d52f5b91c.tar.gz frameworks_base-6a69b4fbaee9a8251401453cd2d3509d52f5b91c.tar.bz2 |
Add --el option to am for long extras.
Change-Id: I13b92284fa4e0765620552b7d9b08d7441254389
Diffstat (limited to 'cmds/am/src')
-rw-r--r-- | cmds/am/src/com/android/commands/am/Am.java | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/cmds/am/src/com/android/commands/am/Am.java b/cmds/am/src/com/android/commands/am/Am.java index 0f343ff..4265cc5 100644 --- a/cmds/am/src/com/android/commands/am/Am.java +++ b/cmds/am/src/com/android/commands/am/Am.java @@ -142,6 +142,11 @@ public class Am { String value = nextArgRequired(); intent.putExtra(key, Integer.valueOf(value)); hasIntentInfo = true; + } else if (opt.equals("--el")) { + String key = nextArgRequired(); + String value = nextArgRequired(); + intent.putExtra(key, Long.valueOf(value)); + hasIntentInfo = true; } else if (opt.equals("--ez")) { String key = nextArgRequired(); String value = nextArgRequired(); @@ -627,6 +632,7 @@ public class Am { " [--esn <EXTRA_KEY> ...]\n" + " [--ez <EXTRA_KEY> <EXTRA_BOOLEAN_VALUE> ...]\n" + " [--ei <EXTRA_KEY> <EXTRA_INT_VALUE> ...]\n" + + " [--el <EXTRA_KEY> <EXTRA_LONG_VALUE> ...]\n" + " [-n <COMPONENT>] [-f <FLAGS>]\n" + " [--grant-read-uri-permission] [--grant-write-uri-permission]\n" + " [--debug-log-resolution]\n" + |