Home
last modified time | relevance | path

Searched refs:arg (Results 1 – 25 of 70) sorted by relevance

123

/frameworks/base/opengl/java/android/opengl/
DGLLogWrapper.java74 private void arg(String name, String value) { in arg() method in GLLogWrapper
97 private void arg(String name, boolean value) { in arg() method in GLLogWrapper
98 arg(name, Boolean.toString(value)); in arg()
101 private void arg(String name, int value) { in arg() method in GLLogWrapper
102 arg(name, Integer.toString(value)); in arg()
105 private void arg(String name, float value) { in arg() method in GLLogWrapper
106 arg(name, Float.toString(value)); in arg()
118 private void arg(String name, int n, int[] arr, int offset) { in arg() method in GLLogWrapper
119 arg(name, toString(n, FORMAT_INT, arr, offset)); in arg()
122 private void arg(String name, int n, short[] arr, int offset) { in arg() method in GLLogWrapper
[all …]
DEGLLogWrapper.java50 arg("display", display); in eglChooseConfig()
51 arg("attrib_list", attrib_list); in eglChooseConfig()
52 arg("config_size", config_size); in eglChooseConfig()
57 arg("configs", configs); in eglChooseConfig()
58 arg("num_config", num_config); in eglChooseConfig()
67 arg("display", display); in eglCopyBuffers()
68 arg("surface", surface); in eglCopyBuffers()
69 arg("native_pixmap", native_pixmap); in eglCopyBuffers()
81 arg("display", display); in eglCreateContext()
82 arg("config", config); in eglCreateContext()
[all …]
/frameworks/base/cmds/installd/
Dinstalld.c24 static int do_ping(char **arg, char reply[REPLY_MAX]) in do_ping() argument
29 static int do_install(char **arg, char reply[REPLY_MAX]) in do_install() argument
31 return install(arg[0], atoi(arg[1]), atoi(arg[2])); /* pkgname, uid, gid */ in do_install()
34 static int do_dexopt(char **arg, char reply[REPLY_MAX]) in do_dexopt() argument
37 return dexopt(arg[0], atoi(arg[1]), atoi(arg[2])); in do_dexopt()
40 static int do_move_dex(char **arg, char reply[REPLY_MAX]) in do_move_dex() argument
42 return move_dex(arg[0], arg[1]); /* src, dst */ in do_move_dex()
45 static int do_rm_dex(char **arg, char reply[REPLY_MAX]) in do_rm_dex() argument
47 return rm_dex(arg[0]); /* pkgname */ in do_rm_dex()
50 static int do_remove(char **arg, char reply[REPLY_MAX]) in do_remove() argument
[all …]
/frameworks/base/cmds/bu/src/com/android/commands/bu/
DBackup.java54 String arg = nextArg(); in run() local
55 if (arg.equals("backup")) { in run()
57 } else if (arg.equals("restore")) { in run()
60 Log.e(TAG, "Invalid operation '" + arg + "'"); in run()
71 String arg; in doFullBackup() local
72 while ((arg = nextArg()) != null) { in doFullBackup()
73 if (arg.startsWith("-")) { in doFullBackup()
74 if ("-apk".equals(arg)) { in doFullBackup()
76 } else if ("-noapk".equals(arg)) { in doFullBackup()
78 } else if ("-shared".equals(arg)) { in doFullBackup()
[all …]
/frameworks/base/opengl/libs/EGL/
Dtrace.cpp65 static const char* GLbooleanToString(GLboolean arg) { in GLbooleanToString() argument
66 return arg ? "GL_TRUE" : "GL_FALSE"; in GLbooleanToString()
241 const void* arg = va_arg(argp, const void*); in TraceGL() local
242 builder.append("(%s) 0x%08x", type, (size_t) arg); in TraceGL()
244 size_t arg = va_arg(argp, size_t); in TraceGL() local
248 if (b->e & arg) { in TraceGL()
255 arg &= ~b->e; in TraceGL()
258 if (first || arg != 0) { in TraceGL()
262 builder.append("0x%08x", arg); in TraceGL()
265 GLboolean arg = va_arg(argp, int); in TraceGL() local
[all …]
/frameworks/base/tools/aidl/
Dgenerate_java.cpp316 arg_type* arg; in generate_method() local
342 arg = method->args; in generate_method()
343 while (arg != NULL) { in generate_method()
345 NAMES.Search(arg->type.type.data), arg->name.data, in generate_method()
346 arg->type.dimension)); in generate_method()
347 arg = arg->next; in generate_method()
367 arg = method->args; in generate_method()
368 while (arg != NULL) { in generate_method()
369 Type* t = NAMES.Search(arg->type.type.data); in generate_method()
371 v->dimension = arg->type.dimension; in generate_method()
[all …]
Daidl_language_y.y177 method->args = $4.arg;
192 method->args = $5.arg;
201 { $$.arg = NULL; }
202 | arg { $$ = $1; }
203 | arg_list ',' arg {
204 if ($$.arg != NULL) {
207 arg_type *p = $1.arg;
211 $3.arg->comma_token = $2.buffer;
212 p->next = $3.arg;
217 $$.arg = NULL;
[all …]
Daidl.cpp420 arg_type* arg = m->args; local
421 while (arg) {
422 Type* t = NAMES.Search(arg->type.type.data);
427 filename, m->type.type.lineno, arg->name.data, index,
428 arg->type.type.data);
436 arg->type.type.data, arg->name.data);
440 if (arg->direction.data == NULL
441 && (arg->type.dimension != 0 || t->CanBeOutParameter())) {
446 arg->type.type.data, arg->name.data);
450 if (convert_direction(arg->direction.data) != IN_PARAMETER
[all …]
/frameworks/base/core/java/com/android/internal/os/
DZygoteConnection.java389 String arg = args[curArg]; in parseArgs() local
391 if (arg.equals("--")) { in parseArgs()
394 } else if (arg.startsWith("--setuid=")) { in parseArgs()
401 arg.substring(arg.indexOf('=') + 1)); in parseArgs()
402 } else if (arg.startsWith("--setgid=")) { in parseArgs()
409 arg.substring(arg.indexOf('=') + 1)); in parseArgs()
410 } else if (arg.startsWith("--target-sdk-version=")) { in parseArgs()
417 arg.substring(arg.indexOf('=') + 1)); in parseArgs()
418 } else if (arg.equals("--enable-debugger")) { in parseArgs()
420 } else if (arg.equals("--enable-safemode")) { in parseArgs()
[all …]
/frameworks/base/media/libstagefright/codecs/amrwbenc/SampleCode/
DAMRWB_E_SAMPLE.c264 int arg, filename=0; in main() local
288 for (arg = 1; arg < argc; arg++) { in main()
289 if (argv [arg] [0] == '+') { in main()
290 if(argv[arg][1] == 'M') in main()
292 switch(argv[arg][2]) in main()
314 printf ("Invalid parameter '%s'.\n", argv [arg]); in main()
317 }else if(argv[arg][1] == 'F') in main()
319 switch(argv[arg][2]) in main()
329 printf ("Invalid parameter '%s'.\n", argv [arg]); in main()
334 }else if(strcmp (argv[arg], "+DTX") == 0) in main()
[all …]
/frameworks/base/cmds/ime/src/com/android/commands/ime/
DIme.java190 String arg = mArgs[mNextArg]; in nextOption() local
191 if (!arg.startsWith("-")) { in nextOption()
195 if (arg.equals("--")) { in nextOption()
198 if (arg.length() > 1 && arg.charAt(1) != '-') { in nextOption()
199 if (arg.length() > 2) { in nextOption()
200 mCurArgData = arg.substring(2); in nextOption()
201 return arg.substring(0, 2); in nextOption()
204 return arg; in nextOption()
208 return arg; in nextOption()
227 String arg = mArgs[mNextArg]; in nextArg() local
[all …]
/frameworks/compile/slang/tests/
Dtest.py87 for arg in args:
88 print arg,
169 for arg in sys.argv[1:]:
170 if arg in ('-h', '--help'):
173 elif arg in ('-n', '--no-cleanup'):
175 elif arg in ('-v', '--verbose'):
179 if os.path.isdir(arg):
180 files.append(arg)
182 print >> sys.stderr, 'Invalid test or option: %s' % arg
/frameworks/base/cmds/app_process/
Dapp_main.cpp163 const char* arg = argv[i++]; in main() local
165 parentDir = arg; in main()
166 } else if (strcmp(arg, "--zygote") == 0) { in main()
169 } else if (strcmp(arg, "--start-system-server") == 0) { in main()
171 } else if (strcmp(arg, "--application") == 0) { in main()
173 } else if (strncmp(arg, "--nice-name=", 12) == 0) { in main()
174 niceName = arg + 12; in main()
176 className = arg; in main()
/frameworks/base/cmds/bmgr/src/com/android/commands/bmgr/
DBmgr.java125 String arg = nextArg(); in doEnable() local
126 if (arg == null) { in doEnable()
132 boolean enable = Boolean.parseBoolean(arg); in doEnable()
206 String arg = nextArg(); // sets, transports, packages set# in doList() local
207 if ("transports".equals(arg)) { in doList()
220 if ("sets".equals(arg)) { in doList()
222 } else if ("transports".equals(arg)) { in doList()
321 String arg = nextArg(); in doRestore() local
322 if (arg == null) { in doRestore()
327 if (arg.indexOf('.') >= 0) { in doRestore()
[all …]
/frameworks/compile/libbcc/runtime/BlocksRuntime/
Druntime.c286 static void *_Block_copy_internal(const void *arg, const int flags) { in _Block_copy_internal() argument
291 if (!arg) return NULL; in _Block_copy_internal()
295 aBlock = (struct Block_layout *)arg; in _Block_copy_internal()
369 static void _Block_byref_assign_copy(void *dest, const void *arg, const int flags) { in _Block_byref_assign_copy() argument
371 struct Block_byref *src = (struct Block_byref *)arg; in _Block_byref_assign_copy()
415 static void _Block_byref_release(const void *arg) { in _Block_byref_release() argument
416 struct Block_byref *shared_struct = (struct Block_byref *)arg; in _Block_byref_release()
430 printf("_Block_byref_release: Block byref data structure at %p underflowed\n", arg); in _Block_byref_release()
454 void *_Block_copy(const void *arg) { in _Block_copy() argument
455 return _Block_copy_internal(arg, WANTS_ONE); in _Block_copy()
[all …]
/frameworks/base/tools/aapt/
DResourceFilter.cpp10 ResourceFilter::parse(const char* arg) in parse() argument
12 if (arg == NULL) { in parse()
16 const char* p = arg; in parse()
33 fprintf(stderr, "Invalid configuration: %s\n", arg); in parse()
35 for (int i=0; i<p-arg; i++) { in parse()
/frameworks/base/core/jni/
Dandroid_animation_PropertyValuesHolder.cpp51 JNIEnv* env, jclass pvhObject, jobject target, jmethodID methodID, int arg) in android_animation_PropertyValuesHolder_callIntMethod() argument
53 env->CallVoidMethod(target, methodID, arg); in android_animation_PropertyValuesHolder_callIntMethod()
57 JNIEnv* env, jclass pvhObject, jobject target, jmethodID methodID, float arg) in android_animation_PropertyValuesHolder_callFloatMethod() argument
59 env->CallVoidMethod(target, methodID, arg); in android_animation_PropertyValuesHolder_callFloatMethod()
/frameworks/compile/libbcc/tests/
Dbccarm49 for arg in sys.argv[1:]:
50 if arg.startswith('-'):
51 remoteArgs.append(arg)
53 fileName = arg
/frameworks/base/core/tests/coretests/src/android/os/
DAidlTest.java215 TestParcelable arg = new TestParcelable(43, "hi"); in testParcelableIn() local
216 TestParcelable result = mRemote.parcelableIn(arg); in testParcelableIn()
217 assertNotSame(arg, result); in testParcelableIn()
219 assertEquals(43, arg.mAnInt); in testParcelableIn()
225 TestParcelable arg = new TestParcelable(43, "hi"); in testParcelableOut() local
226 TestParcelable result = mRemote.parcelableOut(arg); in testParcelableOut()
227 assertNotSame(arg, result); in testParcelableOut()
228 assertEquals(44, arg.mAnInt); in testParcelableOut()
233 TestParcelable arg = new TestParcelable(43, "hi"); in testParcelableInOut() local
234 TestParcelable result = mRemote.parcelableInOut(arg); in testParcelableInOut()
[all …]
/frameworks/base/opengl/libs/tools/
Dgltracegen79 my $arg = $args[$num];
80 if ($arg =~ /(\S+\s)+\**\s*([\w]+)/) {
82 if ($arg =~ /((const )*(\S+\s)+\**)\s*([\w]+)/) {
/frameworks/base/cmds/am/src/com/android/commands/am/
DAm.java276 String arg = nextArg(); in makeIntent() local
277 if (arg != null) { in makeIntent()
279 if (arg.indexOf(':') >= 0) { in makeIntent()
282 baseIntent = Intent.parseUri(arg, Intent.URI_INTENT_SCHEME); in makeIntent()
283 } else if (arg.indexOf('/') >= 0) { in makeIntent()
288 baseIntent.setComponent(ComponentName.unflattenFromString(arg)); in makeIntent()
293 baseIntent.setPackage(arg); in makeIntent()
1122 String arg = mArgs[mNextArg]; in nextOption() local
1123 if (!arg.startsWith("-")) { in nextOption()
1127 if (arg.equals("--")) { in nextOption()
[all …]
/frameworks/base/cmds/pm/src/com/android/commands/pm/
DPm.java701 String arg = nextArg(); in runSetInstallLocation() local
702 if (arg == null) { in runSetInstallLocation()
708 loc = Integer.parseInt(arg); in runSetInstallLocation()
831 String arg = nextArg(); in runCreateUser() local
832 if (arg == null) { in runCreateUser()
837 name = arg; in runCreateUser()
857 String arg = nextArg(); in runRemoveUser() local
858 if (arg == null) { in runRemoveUser()
864 userId = Integer.parseInt(arg); in runRemoveUser()
1069 String arg = mArgs[mNextArg]; in nextOption() local
[all …]
/frameworks/base/tools/layoutlib/bridge/src/android/animation/
DPropertyValuesHolder_Delegate.java51 /*package*/ static void nCallIntMethod(Object target, int methodID, int arg) { in nCallIntMethod() argument
56 /*package*/ static void nCallFloatMethod(Object target, int methodID, float arg) { in nCallFloatMethod() argument
/frameworks/base/libs/usb/tests/AccessoryChat/accessorychat/
Daccessorychat.c34 static void* read_thread(void* arg) { in read_thread() argument
35 int endpoint = (int)arg; in read_thread()
54 static void* write_thread(void* arg) { in write_thread() argument
55 int endpoint = (int)arg; in write_thread()
/frameworks/base/cmds/dumpstate/
Dutils.c155 size_t arg; in run_command() local
160 for (arg = 1; arg < sizeof(args) / sizeof(args[0]); ++arg) { in run_command()
161 args[arg] = va_arg(ap, const char *); in run_command()
162 if (args[arg] == NULL) break; in run_command()
163 if (title) printf(" %s", args[arg]); in run_command()

123