Home
last modified time | relevance | path

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

12345678910>>...46

/frameworks/native/cmds/installd/tests/
Dinstalld_otapreopt_test.cpp50 const char** args) { in verifyPackageParameters() argument
58 ASSERT_STREQ(params.target_slot.c_str(), args[1]); in verifyPackageParameters()
59 ASSERT_STREQ(params.apk_path, args[i++]); in verifyPackageParameters()
60 ASSERT_EQ(params.uid, static_cast<uid_t>(atoi(args[i++]))); in verifyPackageParameters()
61 ASSERT_STREQ(params.pkgName, args[i++]); in verifyPackageParameters()
62 ASSERT_STREQ(params.instruction_set, args[i++]); in verifyPackageParameters()
63 ASSERT_EQ(params.dexopt_needed, atoi(args[i++])); in verifyPackageParameters()
64 ASSERT_STREQ(params.oat_dir, args[i++]); in verifyPackageParameters()
65 const int dexopt_flags = atoi(args[i++]); in verifyPackageParameters()
66 ASSERT_STREQ(params.compiler_filter, args[i++]); in verifyPackageParameters()
[all …]
/frameworks/base/telecomm/java/android/telecom/
DConnectionServiceAdapterServant.java94 SomeArgs args = (SomeArgs) msg.obj;
97 (String) args.arg1,
98 (ConnectionRequest) args.arg2,
99 (ParcelableConnection) args.arg3,
102 args.recycle();
119 SomeArgs args = (SomeArgs) msg.obj;
121 mDelegate.setDisconnected((String) args.arg1, (DisconnectCause) args.arg2,
124 args.recycle();
144 SomeArgs args = (SomeArgs) msg.obj;
146 mDelegate.setIsConferenced((String) args.arg1, (String) args.arg2,
[all …]
DVideoCallbackServant.java62 SomeArgs args = (SomeArgs) msg.obj;
65 args.argi1,
66 (VideoProfile) args.arg1,
67 (VideoProfile) args.arg2);
69 args.recycle();
74 SomeArgs args = (SomeArgs) msg.obj;
76 mDelegate.handleCallSessionEvent(args.argi1);
78 args.recycle();
83 SomeArgs args = (SomeArgs) msg.obj;
85 mDelegate.changePeerDimensions(args.argi1, args.argi2);
[all …]
DConnectionService.java209 SomeArgs args = SomeArgs.obtain();
210 args.arg1 = adapter;
211 args.arg2 = Log.createSubsession();
212 mHandler.obtainMessage(MSG_ADD_CONNECTION_SERVICE_ADAPTER, args).sendToTarget();
222 SomeArgs args = SomeArgs.obtain();
223 args.arg1 = adapter;
224 args.arg2 = Log.createSubsession();
225 mHandler.obtainMessage(MSG_REMOVE_CONNECTION_SERVICE_ADAPTER, args).sendToTarget();
241 SomeArgs args = SomeArgs.obtain();
242 args.arg1 = connectionManagerPhoneAccount;
[all …]
DLog.java83 public static void d(String prefix, String format, Object... args) { in d() argument
86 android.util.Slog.i(TAG, buildMessage(prefix, format, args)); in d()
88 android.util.Slog.d(TAG, buildMessage(prefix, format, args)); in d()
92 public static void d(Object objectPrefix, String format, Object... args) { in d() argument
95 android.util.Slog.i(TAG, buildMessage(getPrefixFromObject(objectPrefix), format, args)); in d()
97 android.util.Slog.d(TAG, buildMessage(getPrefixFromObject(objectPrefix), format, args)); in d()
102 public static void i(String prefix, String format, Object... args) { in i() argument
104 android.util.Slog.i(TAG, buildMessage(prefix, format, args)); in i()
108 public static void i(Object objectPrefix, String format, Object... args) { in i() argument
110 android.util.Slog.i(TAG, buildMessage(getPrefixFromObject(objectPrefix), format, args)); in i()
[all …]
/frameworks/base/core/java/com/android/internal/os/
DHandlerCaller.java101 SomeArgs args = (SomeArgs)msg.obj; in sendMessageAndWait() local
102 args.mWaitState = SomeArgs.WAIT_WAITING; in sendMessageAndWait()
104 synchronized (args) { in sendMessageAndWait()
105 while (args.mWaitState == SomeArgs.WAIT_WAITING) { in sendMessageAndWait()
107 args.wait(); in sendMessageAndWait()
113 args.mWaitState = SomeArgs.WAIT_NONE; in sendMessageAndWait()
114 return args; in sendMessageAndWait()
127 SomeArgs args = SomeArgs.obtain(); in obtainMessageBOO() local
128 args.arg1 = arg2; in obtainMessageBOO()
129 args.arg2 = arg3; in obtainMessageBOO()
[all …]
DZygote.java513 ZygoteArguments args = null; in usapMain() local
532 args = new ZygoteArguments(argStrings); in usapMain()
535 validateUsapCommand(args); in usapMain()
557 applyUidSecurityPolicy(args, peerCredentials); in usapMain()
558 applyDebuggerSystemProperty(args); in usapMain()
562 if (args.mRLimits != null) { in usapMain()
563 rlimits = args.mRLimits.toArray(INT_ARRAY_2D); in usapMain()
615 specializeAppProcess(args.mUid, args.mGid, args.mGids, in usapMain()
616 args.mRuntimeFlags, rlimits, args.mMountExternal, in usapMain()
617 args.mSeInfo, args.mNiceName, args.mStartChildZygote, in usapMain()
[all …]
/frameworks/base/core/java/android/content/
DAsyncQueryHandler.java70 WorkerArgs args = (WorkerArgs) msg.obj; in handleMessage()
79 cursor = resolver.query(args.uri, args.projection, in handleMessage()
80 args.selection, args.selectionArgs, in handleMessage()
81 args.orderBy); in handleMessage()
92 args.result = cursor; in handleMessage()
96 args.result = resolver.insert(args.uri, args.values); in handleMessage()
100 args.result = resolver.update(args.uri, args.values, args.selection, in handleMessage()
101 args.selectionArgs); in handleMessage()
105 args.result = resolver.delete(args.uri, args.selection, args.selectionArgs); in handleMessage()
111 Message reply = args.handler.obtainMessage(token); in handleMessage()
[all …]
/frameworks/native/services/utils/tests/
DPriorityDumper_test.cpp63 Vector<String16> args; in TEST_F() local
64 EXPECT_CALL(dumper_, dumpAll(fd, ElementsAreArray(args), /*asProto=*/false)); in TEST_F()
65 dumper_.priorityDump(fd, args); in TEST_F()
69 Vector<String16> args; in TEST_F() local
70 addAll(args, {"bunch", "of", "args"}); in TEST_F()
71 EXPECT_CALL(dumper_, dumpAll(fd, ElementsAreArray(args), /*asProto=*/false)); in TEST_F()
72 dumper_.priorityDump(fd, args); in TEST_F()
76 Vector<String16> args; in TEST_F() local
77 addAll(args, {"--dump-priority", "CRITICAL"}); in TEST_F()
80 dumper_.priorityDump(fd, args); in TEST_F()
[all …]
/frameworks/base/core/java/android/service/notification/
DNotificationAssistantService.java297 SomeArgs args = SomeArgs.obtain(); in onNotificationEnqueuedWithChannel() local
298 args.arg1 = sbn; in onNotificationEnqueuedWithChannel()
299 args.arg2 = channel; in onNotificationEnqueuedWithChannel()
301 args).sendToTarget(); in onNotificationEnqueuedWithChannel()
315 SomeArgs args = SomeArgs.obtain(); in onNotificationSnoozedUntilContext() local
316 args.arg1 = sbn; in onNotificationSnoozedUntilContext()
317 args.arg2 = snoozeCriterionId; in onNotificationSnoozedUntilContext()
319 args).sendToTarget(); in onNotificationSnoozedUntilContext()
324 SomeArgs args = SomeArgs.obtain(); in onNotificationsSeen() local
325 args.arg1 = keys; in onNotificationsSeen()
[all …]
/frameworks/base/tools/bit/
Dprint.cpp63 va_list args; in print_status() local
64 va_start(args, format); in print_status()
65 vfprintf(stdout, format, args); in print_status()
66 va_end(args); in print_status()
82 for (vector<string>::const_iterator it=command.args.begin(); it!=command.args.end(); it++) { in print_command()
95 va_list args; in print_error() local
96 va_start(args, format); in print_error()
97 vfprintf(stderr, format, args); in print_error()
98 va_end(args); in print_error()
109 va_list args; in print_warning() local
[all …]
/frameworks/base/packages/SystemUI/legacy/recents/src/com/android/systemui/recents/
DRecentsImplProxy.java62 SomeArgs args = SomeArgs.obtain(); in showRecents() local
63 args.argi1 = triggeredFromAltTab ? 1 : 0; in showRecents()
64 args.argi2 = draggingInRecents ? 1 : 0; in showRecents()
65 args.argi3 = animate ? 1 : 0; in showRecents()
66 args.argi4 = growTarget; in showRecents()
67 mHandler.sendMessage(mHandler.obtainMessage(MSG_SHOW_RECENTS, args)); in showRecents()
79 SomeArgs args = SomeArgs.obtain(); in toggleRecents() local
80 args.argi1 = growTarget; in toggleRecents()
81 mHandler.sendMessage(mHandler.obtainMessage(MSG_TOGGLE_RECENTS, args)); in toggleRecents()
92 SomeArgs args = SomeArgs.obtain(); in splitPrimaryTask() local
[all …]
/frameworks/base/tests/JankBench/scripts/
Dadbutil.py9 self.args = arg
11 def am(serial, cmd, args): argument
12 if not isinstance(args, list):
13 args = [args]
14 full_args = ["am"] + [cmd] + args
17 def pm(serial, cmd, args): argument
18 if not isinstance(args, list):
19 args = [args]
20 full_args = ["pm"] + [cmd] + args
29 args = [ATRACE_PATH, "-e", serial, "-t" + time, "-b32768"] + tags
[all …]
/frameworks/base/cmds/statsd/tools/localtools/src/com/android/statsd/shelltools/localdrive/
DLocalDrive.java95 public static void main(String[] args) { in main() argument
104 if (args.length > 0) { in main()
105 switch (args[0]) { in main()
107 cmdClear(args); in main()
110 cmdGetData(args); in main()
113 cmdRemove(args); in main()
116 cmdUpdate(args); in main()
119 cmdUpload(args); in main()
131 private static boolean cmdUpload(String[] args) { in cmdUpload() argument
132 return updateConfig(args, true); in cmdUpload()
[all …]
/frameworks/base/services/core/java/com/android/server/utils/
DPriorityDump.java140 String[] args) { in dump() argument
144 if (args == null) { in dump()
145 dumper.dump(fd, pw, args, asProto); in dump()
149 String[] strippedArgs = new String[args.length]; in dump()
151 for (int argIndex = 0; argIndex < args.length; argIndex++) { in dump()
152 if (args[argIndex].equals(PROTO_ARG)) { in dump()
154 } else if (args[argIndex].equals(PRIORITY_ARG)) { in dump()
155 if (argIndex + 1 < args.length) { in dump()
157 priority = getPriorityType(args[argIndex]); in dump()
160 strippedArgs[strippedCount++] = args[argIndex]; in dump()
[all …]
/frameworks/base/cmds/svc/src/com/android/commands/svc/
DPowerCommand.java60 public void run(String[] args) { in run() argument
62 if (args.length >= 2) { in run()
65 if ("stayon".equals(args[1]) && args.length == 3) { in run()
67 if ("true".equals(args[2])) { in run()
72 else if ("false".equals(args[2])) { in run()
74 } else if ("usb".equals(args[2])) { in run()
76 } else if ("ac".equals(args[2])) { in run()
78 } else if ("wireless".equals(args[2])) { in run()
96 } else if ("reboot".equals(args[1])) { in run()
98 if (args.length == 3) { in run()
[all …]
/frameworks/av/media/libmediaplayer2/
DJavaVMHelper.cpp38 JavaVMAttachArgs args; in javaAttachThread() local
47 args.version = JNI_VERSION_1_4; in javaAttachThread()
48 args.name = (char*) threadName; in javaAttachThread()
49 args.group = NULL; in javaAttachThread()
51 result = vm->AttachCurrentThread(pEnv, (void*) &args); in javaAttachThread()
83 static int javaThreadShell(void* args) { in javaThreadShell() argument
84 void* start = ((void**)args)[0]; in javaThreadShell()
85 void* userData = ((void **)args)[1]; in javaThreadShell()
86 char* name = (char*) ((void **)args)[2]; // we own this storage in javaThreadShell()
87 free(args); in javaThreadShell()
[all …]
/frameworks/base/core/java/com/android/internal/view/
DIInputConnectionWrapper.java234 SomeArgs args = (SomeArgs)msg.obj; in executeMessage() local
236 final IInputContextCallback callback = (IInputContextCallback) args.arg6; in executeMessage()
237 final int callbackSeq = args.argi6; in executeMessage()
249 args.recycle(); in executeMessage()
254 SomeArgs args = (SomeArgs)msg.obj; in executeMessage() local
256 final IInputContextCallback callback = (IInputContextCallback) args.arg6; in executeMessage()
257 final int callbackSeq = args.argi6; in executeMessage()
269 args.recycle(); in executeMessage()
274 SomeArgs args = (SomeArgs)msg.obj; in executeMessage() local
276 final IInputContextCallback callback = (IInputContextCallback) args.arg6; in executeMessage()
[all …]
/frameworks/native/libs/gui/include/gui/
DSurface.h201 int dispatchConnect(va_list args);
202 int dispatchDisconnect(va_list args);
203 int dispatchSetBufferCount(va_list args);
204 int dispatchSetBuffersGeometry(va_list args);
205 int dispatchSetBuffersDimensions(va_list args);
206 int dispatchSetBuffersUserDimensions(va_list args);
207 int dispatchSetBuffersFormat(va_list args);
208 int dispatchSetScalingMode(va_list args);
209 int dispatchSetBuffersTransform(va_list args);
210 int dispatchSetBuffersStickyTransform(va_list args);
[all …]
/frameworks/base/cmds/statsd/tests/
DStatsService_test.cpp62 Vector<String8> args; in TEST() local
63 args.push(String8("-1")); in TEST()
64 args.push(String8("0")); in TEST()
65 args.push(String8("1")); in TEST()
66 args.push(String8("9999999999999999999999999999999999")); in TEST()
67 args.push(String8("a1")); in TEST()
68 args.push(String8("")); in TEST()
76 EXPECT_FALSE(service.getUidFromArgs(args, 0, uid)); in TEST()
79 EXPECT_TRUE(service.getUidFromArgs(args, 1, uid)); in TEST()
83 EXPECT_TRUE(service.getUidFromArgs(args, 2, uid)); in TEST()
[all …]
/frameworks/native/services/inputflinger/
DInputClassifier.cpp78 static bool isTouchEvent(const NotifyMotionArgs& args) { in isTouchEvent() argument
79 return args.source == AINPUT_SOURCE_TOUCHPAD || args.source == AINPUT_SOURCE_TOUCHSCREEN; in isTouchEvent()
98 ClassifierEvent::ClassifierEvent(std::unique_ptr<NotifyMotionArgs> args) : in ClassifierEvent() argument
99 type(ClassifierEventType::MOTION), args(std::move(args)) { }; in ClassifierEvent()
100 ClassifierEvent::ClassifierEvent(std::unique_ptr<NotifyDeviceResetArgs> args) : in ClassifierEvent() argument
101 type(ClassifierEventType::DEVICE_RESET), args(std::move(args)) { }; in ClassifierEvent()
102 ClassifierEvent::ClassifierEvent(ClassifierEventType type, std::unique_ptr<NotifyArgs> args) : in ClassifierEvent() argument
103 type(type), args(std::move(args)) { }; in ClassifierEvent()
106 type(other.type), args(std::move(other.args)) { }; in ClassifierEvent()
110 args = std::move(other.args); in operator =()
[all …]
/frameworks/base/core/java/android/app/
DInstantAppResolverService.java226 final SomeArgs args = SomeArgs.obtain(); in onBind() field in InstantAppResolverService
227 args.arg1 = callback; in onBind()
228 args.arg2 = digestPrefix; in onBind()
229 args.arg3 = userId; in onBind()
230 args.arg4 = token; in onBind()
231 args.arg5 = sanitizedIntent; in onBind()
233 sequence, 0, args).sendToTarget(); in onBind()
242 final SomeArgs args = SomeArgs.obtain(); in onBind() local
243 args.arg1 = callback; in onBind()
244 args.arg2 = digestPrefix; in onBind()
[all …]
/frameworks/native/services/inputflinger/tests/
DInputClassifier_test.cpp72 NotifyConfigurationChangedArgs args(1/*sequenceNum*/, 2/*eventTime*/); in TEST_F() local
74 mClassifier->notifyConfigurationChanged(&args); in TEST_F()
77 ASSERT_EQ(args, outArgs); in TEST_F()
82 NotifyKeyArgs args(1/*sequenceNum*/, 2/*eventTime*/, 3/*deviceId*/, AINPUT_SOURCE_KEYBOARD, in TEST_F() local
86 mClassifier->notifyKey(&args); in TEST_F()
89 ASSERT_EQ(args, outArgs); in TEST_F()
100 NotifyMotionArgs args; in TEST_F() local
101 ASSERT_NO_FATAL_FAILURE(mTestListener->assertNotifyMotionWasCalled(&args)); in TEST_F()
102 ASSERT_EQ(motionArgs, args); in TEST_F()
110 NotifySwitchArgs args(1/*sequenceNum*/, 2/*eventTime*/, 3/*policyFlags*/, 4/*switchValues*/, in TEST_F() local
[all …]
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/ruby/src/main/java/com/google/protobuf/jruby/
DRubyMessageBuilderContext.java83 public IRubyObject optional(ThreadContext context, IRubyObject[] args) { in optional() argument
86 if (args.length > 3) typeClass = args[3]; in optional()
87 msgdefAddField(context, "optional", args[0], args[1], args[2], typeClass); in optional()
105 public IRubyObject required(ThreadContext context, IRubyObject[] args) { in required() argument
107 if (args.length > 3) typeClass = args[3]; in required()
108 msgdefAddField(context, "required", args[0], args[1], args[2], typeClass); in required()
122 public IRubyObject repeated(ThreadContext context, IRubyObject[] args) { in repeated() argument
124 if (args.length > 3) typeClass = args[3]; in repeated()
125 msgdefAddField(context, "repeated", args[0], args[1], args[2], typeClass); in repeated()
142 public IRubyObject map(ThreadContext context, IRubyObject[] args) { in map() argument
[all …]
/frameworks/base/core/java/android/security/
DKeystoreArguments.java29 public byte[][] args; field in KeystoreArguments
43 args = null; in KeystoreArguments()
47 public KeystoreArguments(byte[][] args) { in KeystoreArguments() argument
48 this.args = args; in KeystoreArguments()
57 if (args == null) { in writeToParcel()
60 out.writeInt(args.length); in writeToParcel()
61 for (byte[] arg : args) { in writeToParcel()
69 args = new byte[length][]; in readFromParcel()
71 args[i] = in.createByteArray(); in readFromParcel()

12345678910>>...46