Home
last modified time | relevance | path

Searched refs:args (Results 1 – 25 of 135) sorted by relevance

123456

/development/cmds/monkey/src/com/android/commands/monkey/
DMonkeySourceScript.java279 private void handleEvent(String s, String[] args) { in handleEvent() argument
281 if (s.indexOf(EVENT_KEYWORD_KEY) >= 0 && args.length == 8) { in handleEvent()
284 long downTime = Long.parseLong(args[0]); in handleEvent()
285 long eventTime = Long.parseLong(args[1]); in handleEvent()
286 int action = Integer.parseInt(args[2]); in handleEvent()
287 int code = Integer.parseInt(args[3]); in handleEvent()
288 int repeat = Integer.parseInt(args[4]); in handleEvent()
289 int metaState = Integer.parseInt(args[5]); in handleEvent()
290 int device = Integer.parseInt(args[6]); in handleEvent()
291 int scancode = Integer.parseInt(args[7]); in handleEvent()
[all …]
DMonkeySourceNetworkViews.java76 public MonkeyCommandReturn query(AccessibilityNodeInfo node, List<String> args); in query() argument
203 List<String> args; in translateCommand() local
208 args = command.subList(4, command.size()); in translateCommand()
216 args = command.subList(5, command.size()); in translateCommand()
228 return getter.query(node, args); in translateCommand()
290 List<String> args) { in query() argument
291 if (args.size() == 0) { in query()
312 List<String> args) { in query() argument
313 if (args.size() == 0) { in query()
336 List<String> args) { in query() argument
[all …]
DMonkeyInstrumentationEvent.java45 Bundle args = new Bundle(); in injectEvent() local
46 args.putString("class", mTestCaseName); in injectEvent()
48 iam.startInstrumentation(cn, null, 0, args, null, null, 0, null); in injectEvent()
/development/samples/browseable/HdrViewfinder/src/com.example.android.hdrviewfinder/
DMessageDialogFragment.java31 Bundle args = new Bundle(); in newInstance() local
32 args.putInt(ARG_MESSAGE_INT, message); in newInstance()
33 fragment.setArguments(args); in newInstance()
39 Bundle args = new Bundle(); in newInstance() local
40 args.putString(ARG_MESSAGE_STRING, message); in newInstance()
41 fragment.setArguments(args); in newInstance()
49 Bundle args = getArguments(); in onCreateDialog() local
50 if (args.containsKey(ARG_MESSAGE_INT)) { in onCreateDialog()
51 builder.setMessage(args.getInt(ARG_MESSAGE_INT)); in onCreateDialog()
52 } else if (args.containsKey(ARG_MESSAGE_STRING)) { in onCreateDialog()
[all …]
/development/tools/hosttestlib/src/com/android/hosttest/
DDeviceTestRunner.java59 public TestResult start(String[] args) throws Exception { in start() argument
62 for (int i=0; i < args.length; i++) { in start()
63 if (args[i].equals("-s")) { in start()
65 mDeviceSerial = extractArg(args, i); in start()
66 } else if (args[i].equals("-p")) { in start()
68 mTestDataPath = extractArg(args, i); in start()
71 parentArgs.add(args[i]); in start()
79 private String extractArg(String[] args, int index) { in extractArg() argument
80 if (args.length <= index) { in extractArg()
84 return args[index]; in extractArg()
[all …]
/development/scripts/
Dadd-accounts34 def RunCmd(args): argument
35 proc = subprocess.Popen(args, stdout=subprocess.PIPE)
39 print "failed: %s" % " ".join(args)
44 args = ("adb",) + adb_flags + ("shell", "su", "root",
46 return RunCmd(args)
49 args = ("adb",) + adb_flags + ("shell", "su", "root",
51 return RunCmd(args)
54 args = ("adb",) + adb_flags + ("shell", "su", "root",
56 result = RunCmd(args)
Dadd-accounts-sdk34 def RunCmd(args): argument
35 proc = subprocess.Popen(args, stdout=subprocess.PIPE)
39 print "failed: %s" % " ".join(args)
44 args = ("adb",) + adb_flags + ("shell", "/system/bin/getprop", name)
45 return RunCmd(args)
48 args = ("adb",) + adb_flags + ("shell", "/system/bin/setprop", name, value)
49 return RunCmd(args)
52 args = ("adb",) + adb_flags + ("shell", "/system/bin/ls", DB)
53 result = RunCmd(args)
Dgdbclient.py109 def handle_switches(args, sysroot): argument
121 device = args.device
126 if args.target_pid:
128 pid = args.target_pid
129 elif args.target_name:
131 pid = get_remote_pid(device, args.target_name)
132 elif args.run_cmd:
133 if not args.run_cmd[0]:
135 if not args.run_cmd[0].startswith("/"):
137 run_cmd = args.run_cmd
[all …]
/development/tools/apkcheck/src/com/android/apkcheck/
DApkCheck.java58 public static void main(String[] args) { in main() argument
61 if (args.length < 2) { in main()
68 for (idx = 0; idx < args.length; idx++) { in main()
69 if (args[idx].equals("--help")) { in main()
72 } else if (args[idx].startsWith("--uses-library=")) { in main()
73 String libName = args[idx].substring(args[idx].indexOf('=')+1); in main()
82 } else if (args[idx].startsWith("--ignore-package=")) { in main()
83 String pkgName = args[idx].substring(args[idx].indexOf('=')+1); in main()
85 } else if (args[idx].equals("--warn")) { in main()
87 } else if (args[idx].equals("--no-warn")) { in main()
[all …]
/development/samples/browseable/BasicNetworking/src/com.example.android.basicnetworking/
DSimpleTextFragment.java89 Bundle args = getArguments(); in processArguments() local
90 if (args.containsKey(TEXT_KEY)) { in processArguments()
91 mText = args.getString(TEXT_KEY); in processArguments()
93 } else if (args.containsKey(TEXT_ID_KEY)) { in processArguments()
94 mTextId = args.getInt(TEXT_ID_KEY); in processArguments()
/development/samples/browseable/NetworkConnect/src/com.example.android.networkconnect/
DSimpleTextFragment.java88 Bundle args = getArguments(); in processArguments() local
89 if (args.containsKey(TEXT_KEY)) { in processArguments()
90 mText = args.getString(TEXT_KEY); in processArguments()
92 } else if (args.containsKey(TEXT_ID_KEY)) { in processArguments()
93 mTextId = args.getInt(TEXT_ID_KEY); in processArguments()
/development/samples/browseable/SlidingTabsColors/src/com.example.android.slidingtabscolors/
DContentFragment.java63 Bundle args = getArguments(); in onViewCreated() local
65 if (args != null) { in onViewCreated()
67 title.setText("Title: " + args.getCharSequence(KEY_TITLE)); in onViewCreated()
69 int indicatorColor = args.getInt(KEY_INDICATOR_COLOR); in onViewCreated()
74 int dividerColor = args.getInt(KEY_DIVIDER_COLOR); in onViewCreated()
/development/ndk/platforms/android-21/include/linux/netfilter/
Dx_tables.h109args...) ({ unsigned int __i; int __ret = 0; struct xt_entry_match *__m; for (__i = siz… argument
110args...) ({ unsigned int __i, __n; int __ret = 0; type *__entry; for (__i = 0, __n = 0;… argument
111 …XT_ENTRY_ITERATE(type, entries, size, fn, args...) XT_ENTRY_ITERATE_CONTINUE(type, entries, size… argument
/development/samples/training/EffectiveNavigation/src/com/example/android/effectivenavigation/
DCollectionDemoActivity.java113 Bundle args = new Bundle(); in getItem() local
114 args.putInt(DemoObjectFragment.ARG_OBJECT, i + 1); // Our object is just an integer :-P in getItem()
115 fragment.setArguments(args); in getItem()
142 Bundle args = getArguments(); in onCreateView() local
144 Integer.toString(args.getInt(ARG_OBJECT))); in onCreateView()
/development/samples/training/ads-and-ux/src/com/example/training/ads/
DAdsCatalogActivity.java92 Bundle args = new Bundle(); in newInstance() local
93 args.putInt("num", num); in newInstance()
94 af.setArguments(args); in newInstance()
105 Bundle args = getArguments(); in onCreate() local
106 mNum = args != null ? args.getInt("num") : 1; in onCreate()
/development/tools/idegen/src/com/android/idegen/
DIntellijProject.java188 public static void main(String[] args) { in main() argument
189 logger.info("Args: " + Arrays.toString(args)); in main()
191 if (args.length < 3) { in main()
198 String arg = args[argIndex]; in main()
204 arg = args[argIndex]; in main()
207 String indexFile = args[argIndex++]; in main()
208 String projectPath = args[argIndex++]; in main()
211 for (int i = argIndex; i < args.length; i++) { in main()
212 moduleDirs.add(args[i]); in main()
/development/ndk/platforms/android-3/include/
Djni.h586 va_list args; in NewObject() local
587 va_start(args, methodID); in NewObject()
588 jobject result = functions->NewObjectV(this, clazz, methodID, args); in NewObject()
589 va_end(args); in NewObject()
593 jobject NewObjectV(jclass clazz, jmethodID methodID, va_list args) in NewObjectV()
594 { return functions->NewObjectV(this, clazz, methodID, args); } in NewObjectV()
596 jobject NewObjectA(jclass clazz, jmethodID methodID, jvalue* args) in NewObjectA()
597 { return functions->NewObjectA(this, clazz, methodID, args); } in NewObjectA()
613 va_list args; \
614 va_start(args, methodID); \
[all …]
/development/ndk/platforms/android-21/include/linux/netfilter_bridge/
Debtables.h165args...) ({ unsigned int __i; int __ret = 0; struct ebt_entry_match *__match; for (__i … argument
166args...) ({ unsigned int __i; int __ret = 0; struct ebt_entry_watcher *__watcher; for (… argument
167args...) ({ unsigned int __i; int __ret = 0; struct ebt_entry *__entry; for (__i = 0; _… argument
/development/build/tools/
Dmk_sources_zip.py51 def verbose(msg, *args): argument
55 if args:
56 msg = msg % args
91 opts, args = getopt.getopt(argv[1:],
112 if len(args) != 3:
115 p.PROPS = args[0]
116 p.DST = args[1]
117 p.SRC = args[2]
/development/samples/Support13Demos/src/com/example/android/supportv13/app/
DCountingFragment.java38 Bundle args = new Bundle(); in newInstance() local
39 args.putInt("num", num); in newInstance()
40 f.setArguments(args); in newInstance()
/development/samples/SupportLeanbackShowcase/app/src/main/java/android/support/v17/leanback/supportleanbackshowcase/app/settings/
DSettingsExampleFragment.java56 Bundle args = new Bundle(); in buildPreferenceFragment() local
57 args.putInt("preferenceResource", preferenceResId); in buildPreferenceFragment()
58 args.putString("root", root); in buildPreferenceFragment()
59 fragment.setArguments(args); in buildPreferenceFragment()
/development/samples/training/basic/FragmentBasics/src/com/example/fragments/
DArticleFragment.java52 Bundle args = getArguments(); in onStart() local
53 if (args != null) { in onStart()
55 updateArticleView(args.getInt(ARG_POSITION)); in onStart()
DMainActivity.java73 Bundle args = new Bundle(); in onArticleSelected() local
74 args.putInt(ArticleFragment.ARG_POSITION, position); in onArticleSelected()
75 newFragment.setArguments(args); in onArticleSelected()
/development/samples/training/AnimationsDemo/src/com/example/android/animationsdemo/
DScreenSlidePageFragment.java49 Bundle args = new Bundle(); in create() local
50 args.putInt(ARG_PAGE, pageNumber); in create()
51 fragment.setArguments(args); in create()
/development/samples/browseable/PermissionRequest/src/com.example.android.permissionrequest/
DConfirmationDialogFragment.java40 Bundle args = new Bundle(); in newInstance() local
41 args.putStringArray(ARG_RESOURCES, resources); in newInstance()
42 fragment.setArguments(args); in newInstance()

123456