Home
last modified time | relevance | path

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

12345678910>>...65

/frameworks/libs/binary_translation/decoder/include/berberis/decoder/riscv64/
Dsemantics_player.h38 void Csr(const typename Decoder::CsrArgs& args) { in Csr() argument
40 Register arg = GetRegOrZero(args.src); in Csr()
41 result = listener_->Csr(args.opcode, arg, args.csr); in Csr()
42 SetRegOrIgnore(args.dst, result); in Csr()
45 void Csr(const typename Decoder::CsrImmArgs& args) { in Csr() argument
47 result = listener_->Csr(args.opcode, args.imm, args.csr); in Csr()
48 SetRegOrIgnore(args.dst, result); in Csr()
51 void Fence(const typename Decoder::FenceArgs& args) { in Fence() argument
52 listener_->Fence(args.opcode, in Fence()
53 args.src, in Fence()
[all …]
/frameworks/native/services/inputflinger/tests/
DPreferStylusOverTouch_test.cpp67 NotifyMotionArgs args(/*id=*/0, eventTime, /*readTime=*/0, deviceId, source, /*displayId=*/0, in generateMotionArgs() local
75 return args; in generateMotionArgs()
80 void assertNotBlocked(const NotifyMotionArgs& args) { assertResponse(args, {args}); } in assertNotBlocked() argument
82 void assertDropped(const NotifyMotionArgs& args) { assertResponse(args, {}); } in assertDropped() argument
84 void assertResponse(const NotifyMotionArgs& args, in assertResponse() argument
86 std::vector<NotifyMotionArgs> receivedArgs = mBlocker.processMotion(args); in assertResponse()
110 NotifyMotionArgs args; in TEST_F() local
112 args = generateMotionArgs(/*downTime=*/0, /*eventTime=*/0, DOWN, {{1, 2}}, TOUCHSCREEN); in TEST_F()
113 assertNotBlocked(args); in TEST_F()
115 args = generateMotionArgs(/*downTime=*/0, /*eventTime=*/1, MOVE, {{1, 3}}, TOUCHSCREEN); in TEST_F()
[all …]
DGestureConverter_test.cpp90 std::list<NotifyArgs> args = converter.handleGesture(ARBITRARY_TIME, READ_TIME, moveGesture); in TEST_F() local
91 ASSERT_EQ(1u, args.size()); in TEST_F()
93 ASSERT_THAT(std::get<NotifyMotionArgs>(args.front()), in TEST_F()
108 std::list<NotifyArgs> args = converter.handleGesture(ARBITRARY_TIME, READ_TIME, moveGesture); in TEST_F() local
109 ASSERT_EQ(1u, args.size()); in TEST_F()
111 ASSERT_THAT(std::get<NotifyMotionArgs>(args.front()), in TEST_F()
128 std::list<NotifyArgs> args = converter.handleGesture(ARBITRARY_TIME, READ_TIME, downGesture); in TEST_F() local
129 ASSERT_EQ(3u, args.size()); in TEST_F()
131 ASSERT_THAT(std::get<NotifyMotionArgs>(args.front()), in TEST_F()
137 args.pop_front(); in TEST_F()
[all …]
DCursorInputMapper_test.cpp72 std::list<NotifyArgs> args; in TEST_F() local
75 args += process(EV_REL, REL_X, 10); in TEST_F()
76 args += process(EV_REL, REL_Y, 20); in TEST_F()
77 args += process(EV_SYN, SYN_REPORT, 0); in TEST_F()
78 ASSERT_THAT(args, ElementsAre(VariantWith<NotifyMotionArgs>(WithMotionAction(HOVER_MOVE)))); in TEST_F()
81 args.clear(); in TEST_F()
82 args += process(EV_KEY, BTN_LEFT, 1); in TEST_F()
83 args += process(EV_SYN, SYN_REPORT, 0); in TEST_F()
84 ASSERT_THAT(args, in TEST_F()
89 args.clear(); in TEST_F()
[all …]
/frameworks/native/services/inputflinger/
DInputListener.cpp49 [&](const NotifyInputDevicesChangedArgs& args) { notifyInputDevicesChanged(args); }, in notify()
50 [&](const NotifyConfigurationChangedArgs& args) { notifyConfigurationChanged(args); }, in notify()
51 [&](const NotifyKeyArgs& args) { notifyKey(args); }, in notify()
52 [&](const NotifyMotionArgs& args) { notifyMotion(args); }, in notify()
53 [&](const NotifySwitchArgs& args) { notifySwitch(args); }, in notify()
54 [&](const NotifySensorArgs& args) { notifySensor(args); }, in notify()
55 [&](const NotifyVibratorStateArgs& args) { notifyVibratorState(args); }, in notify()
56 [&](const NotifyDeviceResetArgs& args) { notifyDeviceReset(args); }, in notify()
57 [&](const NotifyPointerCaptureChangedArgs& args) { notifyPointerCaptureChanged(args); }, in notify()
74 void QueuedInputListener::notifyInputDevicesChanged(const NotifyInputDevicesChangedArgs& args) { in notifyInputDevicesChanged() argument
[all …]
DPreferStylusOverTouchBlocker.cpp22 static std::pair<bool, bool> checkToolType(const NotifyMotionArgs& args) { in checkToolType() argument
25 for (size_t i = 0; i < args.getPointerCount(); i++) { in checkToolType()
27 const ToolType toolType = args.pointerProperties[i].toolType; in checkToolType()
97 const NotifyMotionArgs& args) { in processMotion() argument
98 const auto [hasTouch, hasStylus] = checkToolType(args); in processMotion()
100 args.action == AMOTION_EVENT_ACTION_UP || args.action == AMOTION_EVENT_ACTION_CANCEL; in processMotion()
103 mDevicesWithMixedToolType.insert(args.deviceId); in processMotion()
107 if (mDevicesWithMixedToolType.find(args.deviceId) != mDevicesWithMixedToolType.end()) { in processMotion()
109 if (mCanceledDevices.find(args.deviceId) != mCanceledDevices.end()) { in processMotion()
113 mCanceledDevices.erase(args.deviceId); in processMotion()
[all …]
DUnwantedInteractionBlocker.cpp119 static int32_t getActionUpForPointerId(const NotifyMotionArgs& args, int32_t pointerId) { in getActionUpForPointerId() argument
120 for (size_t i = 0; i < args.getPointerCount(); i++) { in getActionUpForPointerId()
121 if (pointerId == args.pointerProperties[i].id) { in getActionUpForPointerId()
126 LOG_ALWAYS_FATAL("Can't find pointerId %" PRId32 " in %s", pointerId, args.dump().c_str()); in getActionUpForPointerId()
151 NotifyMotionArgs removePointerIds(const NotifyMotionArgs& args, in removePointerIds() argument
153 const uint8_t actionIndex = MotionEvent::getActionIndex(args.action); in removePointerIds()
154 const int32_t actionMasked = MotionEvent::getActionMasked(args.action); in removePointerIds()
158 NotifyMotionArgs newArgs{args}; in removePointerIds()
162 for (uint32_t i = 0; i < args.getPointerCount(); i++) { in removePointerIds()
163 const int32_t pointerId = args.pointerProperties[i].id; in removePointerIds()
[all …]
/frameworks/base/telecomm/java/android/telecom/
DConnectionServiceAdapterServant.java98 SomeArgs args = (SomeArgs) msg.obj;
101 (String) args.arg1,
102 (ConnectionRequest) args.arg2,
103 (ParcelableConnection) args.arg3,
106 args.recycle();
111 SomeArgs args = (SomeArgs) msg.obj;
114 (String) args.arg1,
115 (ConnectionRequest) args.arg2,
116 (ParcelableConference) args.arg3,
119 args.recycle();
[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.java465 SomeArgs args = SomeArgs.obtain();
466 args.arg1 = adapter;
467 args.arg2 = Log.createSubsession();
468 mHandler.obtainMessage(MSG_ADD_CONNECTION_SERVICE_ADAPTER, args).sendToTarget();
478 SomeArgs args = SomeArgs.obtain();
479 args.arg1 = adapter;
480 args.arg2 = Log.createSubsession();
481 mHandler.obtainMessage(MSG_REMOVE_CONNECTION_SERVICE_ADAPTER, args).sendToTarget();
497 SomeArgs args = SomeArgs.obtain();
498 args.arg1 = connectionManagerPhoneAccount;
[all …]
/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/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 …]
/frameworks/native/cmds/installd/
Drun_dex2oat_test.cpp89 auto args = std::make_unique<RunDex2OatArgs>(); in MakeDefaultTestArgs() local
90 args->input_dex.reset(ZIP_FD, INPUT_PATH); in MakeDefaultTestArgs()
91 args->output_oat.reset(OAT_FD, OUTPUT_PATH); in MakeDefaultTestArgs()
92 args->input_vdex.reset(INPUT_VDEX_FD, "UNUSED_PATH"); in MakeDefaultTestArgs()
93 args->output_vdex.reset(OUTPUT_VDEX_FD, "UNUSED_PATH"); in MakeDefaultTestArgs()
94 args->instruction_set = "arm64"; in MakeDefaultTestArgs()
95 args->compilation_reason = "rundex2oattest"; in MakeDefaultTestArgs()
96 return args; in MakeDefaultTestArgs()
242 void CallRunDex2Oat(std::unique_ptr<RunDex2OatArgs> args) { in CallRunDex2Oat() argument
244 runner.Initialize(args->output_oat, in CallRunDex2Oat()
[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.java388 SomeArgs args = SomeArgs.obtain(); in onNotificationEnqueuedWithChannel() local
389 args.arg1 = sbn; in onNotificationEnqueuedWithChannel()
390 args.arg2 = channel; in onNotificationEnqueuedWithChannel()
391 args.arg3 = getCurrentRanking(); in onNotificationEnqueuedWithChannel()
393 args).sendToTarget(); in onNotificationEnqueuedWithChannel()
411 SomeArgs args = SomeArgs.obtain(); in onNotificationSnoozedUntilContext() local
412 args.arg1 = sbn; in onNotificationSnoozedUntilContext()
413 args.arg2 = snoozeCriterionId; in onNotificationSnoozedUntilContext()
415 args).sendToTarget(); in onNotificationSnoozedUntilContext()
420 SomeArgs args = SomeArgs.obtain(); in onNotificationsSeen() local
[all …]
/frameworks/native/services/surfaceflinger/tests/
DLayerState_test.cpp32 DisplayCaptureArgs args; in TEST() local
33 args.pixelFormat = ui::PixelFormat::RGB_565; in TEST()
34 args.sourceCrop = Rect(0, 0, 500, 200); in TEST()
35 args.frameScaleX = 2; in TEST()
36 args.frameScaleY = 4; in TEST()
37 args.captureSecureLayers = true; in TEST()
38 args.displayToken = sp<BBinder>::make(); in TEST()
39 args.width = 10; in TEST()
40 args.height = 20; in TEST()
41 args.useIdentityTransform = true; in TEST()
[all …]
/frameworks/base/services/flags/java/com/android/server/flags/
DFlagsShellCommand.java44 String[] args, in process() argument
50 if (args.length == 0) { in process()
53 switch (args[0].toLowerCase(Locale.ROOT)) { in process()
57 return listCmd(args, outPw, errPw); in process()
59 return setCmd(args, outPw, errPw); in process()
61 return getCmd(args, outPw, errPw); in process()
63 return eraseCmd(args, outPw, errPw); in process()
89 private int listCmd(String[] args, PrintWriter outPw, PrintWriter errPw) { in listCmd() argument
90 if (!validateNumArguments(args, 0, 1, args[0], errPw)) { in listCmd()
91 errPw.println("Expected `" + args[0] + " [namespace]`"); in listCmd()
[all …]
/frameworks/libs/net/common/native/tcutils/
Dlogging.h29 va_list args; in ALOGE() local
30 va_start(args, fmt); in ALOGE()
31 __android_log_vprint(ANDROID_LOG_ERROR, LOG_TAG, fmt, args); in ALOGE()
32 va_end(args); in ALOGE()
36 va_list args; in ALOGW() local
37 va_start(args, fmt); in ALOGW()
38 __android_log_vprint(ANDROID_LOG_WARN, LOG_TAG, fmt, args); in ALOGW()
39 va_end(args); in ALOGW()
43 va_list args; in ALOGI() local
44 va_start(args, fmt); in ALOGI()
[all …]
/frameworks/base/tools/bit/
Dprint.cpp64 va_list args; in print_status() local
65 va_start(args, format); in print_status()
66 vfprintf(stdout, format, args); in print_status()
67 va_end(args); in print_status()
83 for (vector<string>::const_iterator it=command.args.begin(); it!=command.args.end(); it++) { in print_command()
96 va_list args; in print_error() local
97 va_start(args, format); in print_error()
98 vfprintf(stderr, format, args); in print_error()
99 va_end(args); in print_error()
110 va_list args; in print_warning() local
[all …]
/frameworks/native/services/inputflinger/include/
DInputListener.h40 virtual void notifyInputDevicesChanged(const NotifyInputDevicesChangedArgs& args) = 0;
41 virtual void notifyConfigurationChanged(const NotifyConfigurationChangedArgs& args) = 0;
42 virtual void notifyKey(const NotifyKeyArgs& args) = 0;
43 virtual void notifyMotion(const NotifyMotionArgs& args) = 0;
44 virtual void notifySwitch(const NotifySwitchArgs& args) = 0;
45 virtual void notifySensor(const NotifySensorArgs& args) = 0;
46 virtual void notifyVibratorState(const NotifyVibratorStateArgs& args) = 0;
47 virtual void notifyDeviceReset(const NotifyDeviceResetArgs& args) = 0;
48 virtual void notifyPointerCaptureChanged(const NotifyPointerCaptureChangedArgs& args) = 0;
50 void notify(const NotifyArgs& args);
[all …]
/frameworks/base/apex/blobstore/service/java/com/android/server/blob/
DBlobStoreManagerShellCommand.java57 final ParsedArgs args = new ParsedArgs(); in runClearAllSessions() local
58 args.userId = UserHandle.USER_ALL; in runClearAllSessions()
60 if (parseOptions(pw, args) < 0) { in runClearAllSessions()
64 mService.runClearAllSessions(args.userId); in runClearAllSessions()
69 final ParsedArgs args = new ParsedArgs(); in runClearAllBlobs() local
70 args.userId = UserHandle.USER_ALL; in runClearAllBlobs()
72 if (parseOptions(pw, args) < 0) { in runClearAllBlobs()
76 mService.runClearAllBlobs(args.userId); in runClearAllBlobs()
81 final ParsedArgs args = new ParsedArgs(); in runDeleteBlob() local
83 if (parseOptions(pw, args) < 0) { in runDeleteBlob()
[all …]
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/splitscreen/
DSplitScreenShellCommandHandler.java38 public boolean onShellCommand(String[] args, PrintWriter pw) { in onShellCommand() argument
39 switch (args[0]) { in onShellCommand()
41 return runMoveToSideStage(args, pw); in onShellCommand()
43 return runRemoveFromSideStage(args, pw); in onShellCommand()
45 return runSetSideStagePosition(args, pw); in onShellCommand()
47 pw.println("Invalid command: " + args[0]); in onShellCommand()
52 private boolean runMoveToSideStage(String[] args, PrintWriter pw) { in runMoveToSideStage() argument
53 if (args.length < 3) { in runMoveToSideStage()
58 final int taskId = new Integer(args[1]); in runMoveToSideStage()
59 final int sideStagePosition = args.length > 2 in runMoveToSideStage()
[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/libs/incident/src/
Dincident_report.cpp43 void AIncidentReportArgs_delete(AIncidentReportArgs* args) { in AIncidentReportArgs_delete() argument
44 delete reinterpret_cast<IncidentReportArgs*>(args); in AIncidentReportArgs_delete()
47 void AIncidentReportArgs_setAll(AIncidentReportArgs* args, bool all) { in AIncidentReportArgs_setAll() argument
48 reinterpret_cast<IncidentReportArgs*>(args)->setAll(all); in AIncidentReportArgs_setAll()
51 void AIncidentReportArgs_setPrivacyPolicy(AIncidentReportArgs* args, int privacyPolicy) { in AIncidentReportArgs_setPrivacyPolicy() argument
52 reinterpret_cast<IncidentReportArgs*>(args)->setPrivacyPolicy(privacyPolicy); in AIncidentReportArgs_setPrivacyPolicy()
55 void AIncidentReportArgs_addSection(AIncidentReportArgs* args, int section) { in AIncidentReportArgs_addSection() argument
56 reinterpret_cast<IncidentReportArgs*>(args)->addSection(section); in AIncidentReportArgs_addSection()
59 void AIncidentReportArgs_setReceiverPackage(AIncidentReportArgs* args, char const* pkg) { in AIncidentReportArgs_setReceiverPackage() argument
60 reinterpret_cast<IncidentReportArgs*>(args)->setReceiverPkg(string(pkg)); in AIncidentReportArgs_setReceiverPackage()
[all …]

12345678910>>...65