Home
last modified time | relevance | path

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

123456

/development/tools/bugreport/src/com/android/bugreport/
DOptions.java30 public String[] args; field in Options
78 public static Options parseArgs(String[] args) { in parseArgs() argument
79 final Options result = new Options(args); in parseArgs()
82 final ArgParser argParser = new ArgParser(args); in parseArgs()
86 return new Options(args, argParser.pos(), in parseArgs()
92 return new Options(args, argParser.pos(), in parseArgs()
98 return new Options(args, argParser.pos(), in parseArgs()
103 return new Options(args, argParser.pos(), in parseArgs()
108 return new Options(args, argParser.pos(), in parseArgs()
119 private Options(String[] args) { in Options() argument
[all …]
/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/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.java77 public MonkeyCommandReturn query(AccessibilityNodeInfo node, List<String> args); in query() argument
204 List<String> args; in translateCommand() local
209 args = command.subList(4, command.size()); in translateCommand()
217 args = command.subList(5, command.size()); in translateCommand()
229 return getter.query(node, args); in translateCommand()
291 List<String> args) { in query() argument
292 if (args.size() == 0) { in query()
313 List<String> args) { in query() argument
314 if (args.size() == 0) { in query()
337 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/vndk/tools/abides/
Dabides.py15 args = parse_args()
16 print(args.old, args.old_headers)
17 print(args.new, args.new_headers)
/development/scripts/
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)
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)
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 …]
Dusb-reset-by-serial.py92 args = shlex.split(cmd)
93 mypipe = subprocess.Popen(args, stdout=subprocess.PIPE)
102 error("command failed (rc=%d): cmd was %s" % (mypipe.returncode, args))
157 optlist, args = getopt.getopt(sys.argv[1:], "d")
161 if not args or len(args) != 1:
163 flag_serial = args[0]
/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/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/tools/logblame/
Danalyze_logs.py129 args = parser.parse_args()
131 args.durationSec = ParseDuration(args.duration[0]) if args.duration else 0
133 return args
137 args = ParseArgs(argv)
141 if args.rawlogs:
142 rawlogs = file(args.rawlogs[0], "w")
147 if args.input:
150 infile = file(args.input, "r")
152 sys.stderr.write("Error opening file for read: %s\n" % args.input[0])
156 if args.clear:
[all …]
/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/python-packages/fastboot/
Ddevice.py186 def _get_subprocess_args(args): argument
190 if os.name != 'nt' or all(not isinstance(arg, unicode) for arg in args[0]):
191 return args
205 argv = map(escape_arg, args[0])
225 '-EncodedCommand', base64.b64encode(ps_code)],) + args[1:]
229 def _subprocess_check_output(*args, **kwargs): argument
231 return subprocess.check_output(*_get_subprocess_args(args), **kwargs)
234 raise subprocess.CalledProcessError(e.returncode, args[0],
/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/vndk/tools/abi-tool/
Dvndk_abi_tool.py281 def get_build_var(name, args): argument
284 value = getattr(args, name.lower(), None)
308 args = parser.parse_args()
311 if args.symbols_dir:
312 symbols_dir = args.symbols_dir
316 product_out = get_build_var('PRODUCT_OUT', args)
324 if args.output:
325 out_dir = args.output
331 target_product = get_build_var('TARGET_PRODUCT', args)
332 target_build_variant = get_build_var('TARGET_BUILD_VARIANT', args)
[all …]
/development/ndk/
Dannotate_version_script.py192 args = parse_args()
195 verbosity = args.verbose
200 with open(args.data_file) as json_db_file:
203 if args.create:
204 with open(args.version_script, 'w') as version_script:
207 with open(args.version_script, 'r') as version_script:
210 with open(args.version_script, 'w') as version_script:
/development/samples/browseable/PermissionRequest/src/com.example.android.permissionrequest/
DMessageDialogFragment.java36 Bundle args = new Bundle(); in newInstance() local
37 args.putInt(ARG_MESSAGE_RES_ID, message); in newInstance()
38 fragment.setArguments(args); in newInstance()
/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/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/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()
/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/vndk/tools/definition-tool/tests/
Drun.py10 args = parser.parse_args()
12 verbosity = 2 if args.verbose else 1

123456