Home
last modified time | relevance | path

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

12345678910>>...71

/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()
67 void QueuedInputListener::notifyInputDevicesChanged(const NotifyInputDevicesChangedArgs& args) { in notifyInputDevicesChanged() argument
[all …]
DInputFilter.cpp29 AidlKeyEvent notifyKeyArgsToKeyEvent(const NotifyKeyArgs& args) { in notifyKeyArgsToKeyEvent() argument
31 event.id = args.id; in notifyKeyArgsToKeyEvent()
32 event.eventTime = args.eventTime; in notifyKeyArgsToKeyEvent()
33 event.deviceId = args.deviceId; in notifyKeyArgsToKeyEvent()
34 event.source = static_cast<Source>(args.source); in notifyKeyArgsToKeyEvent()
35 event.displayId = args.displayId.val(); in notifyKeyArgsToKeyEvent()
36 event.policyFlags = args.policyFlags; in notifyKeyArgsToKeyEvent()
37 event.action = static_cast<KeyEventAction>(args.action); in notifyKeyArgsToKeyEvent()
38 event.flags = args.flags; in notifyKeyArgsToKeyEvent()
39 event.keyCode = args.keyCode; in notifyKeyArgsToKeyEvent()
[all …]
DPreferStylusOverTouchBlocker.cpp27 static std::pair<bool, bool> checkToolType(const NotifyMotionArgs& args) { in checkToolType() argument
30 for (size_t i = 0; i < args.getPointerCount(); i++) { in checkToolType()
32 const ToolType toolType = args.pointerProperties[i].toolType; in checkToolType()
102 const NotifyMotionArgs& args) { in processMotion() argument
103 const auto [hasTouch, hasStylus] = checkToolType(args); in processMotion()
105 ? (args.action == AMOTION_EVENT_ACTION_HOVER_EXIT || in processMotion()
106 args.action == AMOTION_EVENT_ACTION_UP || args.action == AMOTION_EVENT_ACTION_CANCEL) in processMotion()
107 : (args.action == AMOTION_EVENT_ACTION_UP || in processMotion()
108 args.action == AMOTION_EVENT_ACTION_CANCEL); in processMotion()
111 mDevicesWithMixedToolType.insert(args.deviceId); in processMotion()
[all …]
DUnwantedInteractionBlocker.cpp132 static int32_t getActionUpForPointerId(const NotifyMotionArgs& args, int32_t pointerId) { in getActionUpForPointerId() argument
133 for (size_t i = 0; i < args.getPointerCount(); i++) { in getActionUpForPointerId()
134 if (pointerId == args.pointerProperties[i].id) { in getActionUpForPointerId()
139 LOG_ALWAYS_FATAL("Can't find pointerId %" PRId32 " in %s", pointerId, args.dump().c_str()); in getActionUpForPointerId()
164 NotifyMotionArgs removePointerIds(const NotifyMotionArgs& args, in removePointerIds() argument
166 const uint8_t actionIndex = MotionEvent::getActionIndex(args.action); in removePointerIds()
167 const int32_t actionMasked = MotionEvent::getActionMasked(args.action); in removePointerIds()
171 NotifyMotionArgs newArgs{args}; in removePointerIds()
175 for (uint32_t i = 0; i < args.getPointerCount(); i++) { in removePointerIds()
176 const int32_t pointerId = args.pointerProperties[i].id; in removePointerIds()
[all …]
/frameworks/native/services/inputflinger/tests/
DPreferStylusOverTouch_test.cpp66 NotifyMotionArgs args(/*id=*/0, eventTime, /*readTime=*/0, deviceId, source, 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 …]
DCursorInputMapper_test.cpp168 std::list<NotifyArgs> args = in setPointerCapture() local
171 ASSERT_THAT(args, in setPointerCapture()
181 std::list<NotifyArgs> args; in testMotionRotation() local
182 args += process(ARBITRARY_TIME, EV_REL, REL_X, originalX); in testMotionRotation()
183 args += process(ARBITRARY_TIME, EV_REL, REL_Y, originalY); in testMotionRotation()
184 args += process(ARBITRARY_TIME, EV_SYN, SYN_REPORT, 0); in testMotionRotation()
185 ASSERT_THAT(args, in testMotionRotation()
221 std::list<NotifyArgs> args; in TEST_F() local
224 args += process(EV_REL, REL_X, 10); in TEST_F()
225 args += process(EV_REL, REL_Y, 20); in TEST_F()
[all …]
DMultiTouchInputMapper_test.cpp155 std::list<NotifyArgs> args; in processPosition() local
156 args += process(EV_ABS, ABS_MT_POSITION_X, x); in processPosition()
157 args += process(EV_ABS, ABS_MT_POSITION_Y, y); in processPosition()
158 return args; in processPosition()
176 std::list<NotifyArgs> args; in TEST_F() local
182 args += processPosition(x1, y1); in TEST_F()
183 args += processId(FIRST_TRACKING_ID); in TEST_F()
184 args += processSlot(1); in TEST_F()
185 args += processPosition(x2, y2); in TEST_F()
186 args += processId(SECOND_TRACKING_ID); in TEST_F()
[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.java467 SomeArgs args = SomeArgs.obtain();
468 args.arg1 = adapter;
469 args.arg2 = Log.createSubsession();
470 mHandler.obtainMessage(MSG_ADD_CONNECTION_SERVICE_ADAPTER, args).sendToTarget();
480 SomeArgs args = SomeArgs.obtain();
481 args.arg1 = adapter;
482 args.arg2 = Log.createSubsession();
483 mHandler.obtainMessage(MSG_REMOVE_CONNECTION_SERVICE_ADAPTER, args).sendToTarget();
499 SomeArgs args = SomeArgs.obtain();
500 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/libs/binary_translation/decoder/include/berberis/decoder/riscv64/
Dsemantics_player.h41 void Amo(const typename Decoder::AmoArgs& args) { in Amo() argument
42 Register arg1 = GetRegOrZero(args.src1); in Amo()
43 Register arg2 = GetRegOrZero(args.src2); in Amo()
45 switch (args.operand_type) { in Amo()
47 result = Amo<int32_t>(args.opcode, arg1, arg2, args.aq, args.rl); in Amo()
50 result = Amo<int64_t>(args.opcode, arg1, arg2, args.aq, args.rl); in Amo()
56 SetRegOrIgnore(args.dst, result); in Amo()
107 void Auipc(const typename Decoder::UpperImmArgs& args) { in Auipc() argument
108 Register result = listener_->Auipc(args.imm); in Auipc()
109 SetRegOrIgnore(args.dst, result); in Auipc()
[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.grayscale = true; in TEST()
[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/libs/binary_translation/interpreter/riscv64/
Dinterpreter.h494 void OpVector(const VOpArgs& args, ExtraArgs... extra_args) { in OpVector() argument
500 if (args.opcode == Decoder::VLUmOpOpcode::kVlXreXX) { in OpVector()
501 if (!IsPowerOf2(args.nf + 1)) { in OpVector()
504 if ((args.dst & args.nf) != 0) { in OpVector()
509 for (size_t index = 0; index <= args.nf; index++) { in OpVector()
510 state_->cpu.v[args.dst + index] = ptr[index]; in OpVector()
517 if (args.opcode == Decoder::VSUmOpOpcode::kVsX) { in OpVector()
518 if (args.width != Decoder::MemoryDataOperandType::k8bit) { in OpVector()
521 if (!IsPowerOf2(args.nf + 1)) { in OpVector()
524 if ((args.data & args.nf) != 0) { in OpVector()
[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/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/base/libs/WindowManager/Shell/src/com/android/wm/shell/splitscreen/
DSplitScreenShellCommandHandler.java39 public boolean onShellCommand(String[] args, PrintWriter pw) { in onShellCommand() argument
40 switch (args[0]) { in onShellCommand()
42 return runMoveToSideStage(args, pw); in onShellCommand()
44 return runRemoveFromSideStage(args, pw); in onShellCommand()
46 return runSetSideStagePosition(args, pw); in onShellCommand()
50 return runExitSplitScreen(args, pw); in onShellCommand()
52 pw.println("Invalid command: " + args[0]); in onShellCommand()
57 private boolean runMoveToSideStage(String[] args, PrintWriter pw) { in runMoveToSideStage() argument
58 if (args.length < 3) { in runMoveToSideStage()
63 final int taskId = new Integer(args[1]); in runMoveToSideStage()
[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/packages/SystemUI/src/com/android/systemui/statusbar/
DCommandQueue.java325 default void startAssist(Bundle args) { } in startAssist() argument
644 final SomeArgs args = SomeArgs.obtain(); in disable() local
645 args.argi1 = displayId; in disable()
646 args.argi2 = state1; in disable()
647 args.argi3 = state2; in disable()
648 args.argi4 = animate ? 1 : 0; in disable()
649 Message msg = mHandler.obtainMessage(MSG_DISABLE, args); in disable()
749 SomeArgs args = SomeArgs.obtain(); in setImeWindowStatus() local
750 args.argi1 = displayId; in setImeWindowStatus()
751 args.argi2 = vis; in setImeWindowStatus()
[all …]

12345678910>>...71