Home
last modified time | relevance | path

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

1234567

/frameworks/base/core/java/android/content/
DAsyncQueryHandler.java71 WorkerArgs args = (WorkerArgs) msg.obj; in handleMessage()
80 cursor = resolver.query(args.uri, args.projection, in handleMessage()
81 args.selection, args.selectionArgs, in handleMessage()
82 args.orderBy); in handleMessage()
93 args.result = cursor; in handleMessage()
99 iterator = resolver.queryEntities(args.uri, args.selection, in handleMessage()
100 args.selectionArgs, args.orderBy); in handleMessage()
105 args.result = iterator; in handleMessage()
109 args.result = resolver.insert(args.uri, args.values); in handleMessage()
113 args.result = resolver.update(args.uri, args.values, args.selection, in handleMessage()
[all …]
/frameworks/base/core/java/com/android/internal/os/
DHandlerCaller.java69 SomeArgs args = mArgsPool; in obtainArgs() local
70 if (args != null) { in obtainArgs()
71 mArgsPool = args.next; in obtainArgs()
72 args.next = null; in obtainArgs()
74 return args; in obtainArgs()
80 public void recycleArgs(SomeArgs args) { in recycleArgs() argument
83 args.next = mArgsPool; in recycleArgs()
84 mArgsPool = args; in recycleArgs()
128 SomeArgs args = obtainArgs(); in obtainMessageBOO() local
129 args.arg1 = arg2; in obtainMessageBOO()
[all …]
DZygoteConnection.java169 String args[]; in runOnce() local
174 args = readArgumentList(); in runOnce()
182 if (args == null) { in runOnce()
199 parsedArgs = new Arguments(args); in runOnce()
326 Arguments(String args[]) throws IllegalArgumentException { in Arguments() argument
327 parseArgs(args); in Arguments()
338 private void parseArgs(String args[]) in parseArgs() argument
342 for ( /* curArg */ ; curArg < args.length; curArg++) { in parseArgs()
343 String arg = args[curArg]; in parseArgs()
417 classpath = args[++curArg]; in parseArgs()
[all …]
DLoggingPrintStream.java113 public PrintStream format(String format, Object... args) { in format() argument
114 return format(Locale.getDefault(), format, args); in format()
118 public PrintStream printf(String format, Object... args) { in printf() argument
119 return format(format, args); in printf()
123 public PrintStream printf(Locale l, String format, Object... args) { in printf() argument
124 return format(l, format, args); in printf()
131 Locale l, String format, Object... args) { in format() argument
136 formatter.format(l, format, args); in format()
/frameworks/base/core/java/android/pim/
DContactsAsyncHelper.java182 WorkerArgs args = (WorkerArgs) msg.obj; in handleMessage() local
189 args.context.getContentResolver(), args.uri); in handleMessage()
195 args.result = Drawable.createFromStream(inputStream, args.uri.toString()); in handleMessage()
198 " token: " + msg.what + " image URI: " + args.uri); in handleMessage()
200 args.result = null; in handleMessage()
202 " token: " + msg.what + " image URI: " + args.uri + in handleMessage()
271 WorkerArgs args = new WorkerArgs(); in updateImageViewWithContactPhotoAsync() local
272 args.cookie = cookie; in updateImageViewWithContactPhotoAsync()
273 args.context = context; in updateImageViewWithContactPhotoAsync()
274 args.view = imageView; in updateImageViewWithContactPhotoAsync()
[all …]
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/
DSettingsProvider.java60 public final String[] args; field in SettingsProvider.SqlArguments
63 SqlArguments(Uri url, String where, String[] args) { in SqlArguments() argument
67 this.args = args; in SqlArguments()
77 this.args = new String[] { url.getPathSegments().get(1) }; in SqlArguments()
80 this.args = null; in SqlArguments()
90 this.args = null; in SqlArguments()
168 private void checkWritePermissions(SqlArguments args) { in checkWritePermissions() argument
169 if ("secure".equals(args.table) && in checkWritePermissions()
178 } else if ("gservices".equals(args.table) && in checkWritePermissions()
197 SqlArguments args = new SqlArguments(url, where, whereArgs); in query() local
[all …]
/frameworks/base/core/java/com/android/internal/view/
DIInputConnectionWrapper.java162 SomeArgs args = (SomeArgs)msg.obj; in executeMessage() local
167 args.callback.setTextAfterCursor(null, args.seq); in executeMessage()
170 args.callback.setTextAfterCursor(ic.getTextAfterCursor( in executeMessage()
171 msg.arg1, msg.arg2), args.seq); in executeMessage()
178 SomeArgs args = (SomeArgs)msg.obj; in executeMessage() local
183 args.callback.setTextBeforeCursor(null, args.seq); in executeMessage()
186 args.callback.setTextBeforeCursor(ic.getTextBeforeCursor( in executeMessage()
187 msg.arg1, msg.arg2), args.seq); in executeMessage()
194 SomeArgs args = (SomeArgs)msg.obj; in executeMessage() local
199 args.callback.setCursorCapsMode(0, args.seq); in executeMessage()
[all …]
/frameworks/base/core/java/android/inputmethodservice/
DIInputMethodSessionWrapper.java75 HandlerCaller.SomeArgs args = (HandlerCaller.SomeArgs)msg.obj; in executeMessage() local
77 (KeyEvent)args.arg1, in executeMessage()
79 (IInputMethodCallback)args.arg2)); in executeMessage()
80 mCaller.recycleArgs(args); in executeMessage()
84 HandlerCaller.SomeArgs args = (HandlerCaller.SomeArgs)msg.obj; in executeMessage() local
86 (MotionEvent)args.arg1, in executeMessage()
88 (IInputMethodCallback)args.arg2)); in executeMessage()
89 mCaller.recycleArgs(args); in executeMessage()
93 HandlerCaller.SomeArgs args = (HandlerCaller.SomeArgs)msg.obj; in executeMessage() local
94 mInputMethodSession.updateSelection(args.argi1, args.argi2, in executeMessage()
[all …]
DIInputMethodWrapper.java95 HandlerCaller.SomeArgs args = (HandlerCaller.SomeArgs)msg.obj; in executeMessage() local
97 mTarget.dump((FileDescriptor)args.arg1, in executeMessage()
98 (PrintWriter)args.arg2, (String[])args.arg3); in executeMessage()
100 ((PrintWriter)args.arg2).println("Exception: " + e); in executeMessage()
102 synchronized (args.arg4) { in executeMessage()
103 ((CountDownLatch)args.arg4).countDown(); in executeMessage()
120 HandlerCaller.SomeArgs args = (HandlerCaller.SomeArgs)msg.obj; in executeMessage() local
121 IInputContext inputContext = (IInputContext)args.arg1; in executeMessage()
124 mInputMethod.startInput(ic, (EditorInfo)args.arg2); in executeMessage()
128 HandlerCaller.SomeArgs args = (HandlerCaller.SomeArgs)msg.obj; in executeMessage() local
[all …]
/frameworks/base/core/java/android/widget/
DFilter.java114 RequestArguments args = new RequestArguments(); in filter() local
117 args.constraint = constraint != null ? constraint.toString() : null; in filter()
118 args.listener = listener; in filter()
119 message.obj = args; in filter()
232 RequestArguments args = (RequestArguments) msg.obj; in handleMessage() local
234 args.results = performFiltering(args.constraint); in handleMessage()
236 args.results = new FilterResults(); in handleMessage()
240 message.obj = args; in handleMessage()
280 RequestArguments args = (RequestArguments) msg.obj; in handleMessage() local
282 publishResults(args.constraint, args.results); in handleMessage()
[all …]
/frameworks/base/opengl/libs/tools/
Dglapigen35 my $args = $4;
47 printf("%s API_ENTRY(%s%s)(%s)", $type, $prefix, $name, $args);
55 my @args = split ',', $args;
56 my $len = scalar(@args);
58 if ($args[$num] ne "void") {
67 if ($args[$num] =~ /(\S+\s)+\**\s*([\w]+)/) {
/frameworks/base/tools/layoutlib/create/src/com/android/tools/layoutlib/create/
DLog.java30 public void debug(String format, Object... args) { in debug() argument
32 info(format, args); in debug()
36 public void info(String format, Object... args) { in info() argument
37 String s = String.format(format, args); in info()
41 public void error(String format, Object... args) { in error() argument
42 String s = String.format(format, args); in error()
46 public void exception(Throwable t, String format, Object... args) { in exception() argument
51 error(format + "\n" + sw.toString(), args); in exception()
DMain.java27 public static void main(String[] args) { in main() argument
34 if (!processArgs(log, args, osJarPath, osDestJar)) { in main()
113 private static boolean processArgs(Log log, String[] args, in processArgs() argument
115 for (int i = 0; i < args.length; i++) { in processArgs()
116 String s = args[i]; in processArgs()
/frameworks/base/cmds/svc/src/com/android/commands/svc/
DPowerCommand.java44 public void run(String[] args) { in run() argument
46 if (args.length >= 2) { in run()
47 if ("stayon".equals(args[1]) && args.length == 3) { in run()
49 if ("true".equals(args[2])) { in run()
53 else if ("false".equals(args[2])) { in run()
55 } else if ("usb".equals(args[2])) { in run()
57 } else if ("ac".equals(args[2])) { in run()
DSvc.java34 public abstract void run(String[] args); // run the command in run() argument
37 public static void main(String[] args) { in main() argument
38 if (args.length >= 1) { in main()
39 Command c = lookupCommand(args[0]); in main()
41 c.run(args); in main()
45 COMMAND_HELP.run(args); in main()
66 public void run(String[] args) {
67 if (args.length == 2) {
68 Command c = lookupCommand(args[1]);
DDataCommand.java44 public void run(String[] args) { in run() argument
46 if (args.length >= 2) { in run()
48 if ("enable".equals(args[1])) { in run()
51 } else if ("disable".equals(args[1])) { in run()
54 } else if ("prefer".equals(args[1])) { in run()
DWifiCommand.java44 public void run(String[] args) { in run() argument
46 if (args.length >= 2) { in run()
48 if ("enable".equals(args[1])) { in run()
51 } else if ("disable".equals(args[1])) { in run()
54 } else if ("prefer".equals(args[1])) { in run()
/frameworks/base/test-runner/junit/textui/
DTestRunner.java135 public static void main(String args[]) { in main() argument
138 TestResult r= aTestRunner.start(args); in main()
152 protected TestResult start(String args[]) throws Exception { in start() argument
156 for (int i= 0; i < args.length; i++) { in start()
157 if (args[i].equals("-wait")) in start()
159 else if (args[i].equals("-c")) in start()
160 testCase= extractClassName(args[++i]); in start()
161 else if (args[i].equals("-v")) in start()
164 testCase= args[i]; in start()
/frameworks/base/packages/VpnServices/src/com/android/server/vpn/
DVpnDaemons.java121 ArrayList<String> args = new ArrayList<String>(); in startMtpd() local
122 args.addAll(Arrays.asList(protocol, serverIp, port)); in startMtpd()
123 if (secret != null) args.add(secret); in startMtpd()
124 args.add(PPP_ARGS_SEPARATOR); in startMtpd()
125 addPppArguments(args, serverIp, username, password, encryption); in startMtpd()
128 mtpd.sendCommand(args.toArray(new String[args.size()])); in startMtpd()
132 private static void addPppArguments(ArrayList<String> args, String serverIp, in addPppArguments() argument
135 args.addAll(Arrays.asList( in addPppArguments()
144 args.add("+mppe"); in addPppArguments()
/frameworks/base/core/java/com/android/internal/util/
DWithFramework.java30 public static void main(String[] args) throws Exception { in main() argument
31 if (args.length == 0) { in main()
36 Class<?> mainClass = Class.forName(args[0]); in main()
43 String[] newArgs = new String[args.length - 1]; in main()
44 System.arraycopy(args, 1, newArgs, 0, newArgs.length); in main()
/frameworks/base/opengl/tools/glgen/src/
DGenerateGL.java59 public static void main(String[] args) throws Exception { in main() argument
64 while (args[aidx].charAt(0) == '-') { in main()
65 switch (args[aidx].charAt(1)) { in main()
71 System.err.println("Unknown flag: " + args[aidx]); in main()
81 new BufferedReader(new FileReader(args[aidx++])); in main()
83 new BufferedReader(new FileReader(args[aidx++])); in main()
85 new BufferedReader(new FileReader(args[aidx++])); in main()
87 new BufferedReader(new FileReader(args[aidx++])); in main()
89 new BufferedReader(new FileReader(args[aidx++])); in main()
91 new BufferedReader(new FileReader(args[aidx++])); in main()
/frameworks/base/cmds/input/src/com/android/commands/input/
DInput.java39 public static void main(String[] args) { in main() argument
40 (new Input()).run(args); in main()
43 private void run(String[] args) { in run() argument
44 if (args.length < 1) { in run()
49 String command = args[0]; in run()
52 sendText(args[1]); in run()
54 sendKeyEvent(args[1]); in run()
/frameworks/base/tools/preload/
DCompile.java33 public static void main(String[] args) throws IOException { in main() argument
34 if (args.length != 2) { in main()
44 new FileInputStream(args[0]))); in main()
71 root.toFile(args[1]); in main()
/frameworks/base/media/libdrm/mobile2/src/util/ustl-1.0/
Dsostream.cpp116 int ostringstream::vformat (const char* fmt, va_list args) in vformat() argument
121 #define args2 args in vformat()
128 __va_copy (args2, args); in vformat()
140 va_list args; in format() local
141 va_start (args, fmt); in format()
142 const int rv = vformat (fmt, args); in format()
143 va_end (args); in format()
/frameworks/base/core/java/android/os/
DBinder.java197 String[] args = data.readStringArray(); in onTransact() local
200 dump(fd.getFileDescriptor(), args); in onTransact() local
217 public void dump(FileDescriptor fd, String[] args) { in dump() argument
221 dump(fd, pw, args); in dump()
235 protected void dump(FileDescriptor fd, PrintWriter fout, String[] args) { in dump() argument
316 public void dump(FileDescriptor fd, String[] args) throws RemoteException { in dump() argument
319 data.writeStringArray(args); in dump()

1234567