Home
last modified time | relevance | path

Searched refs:InputDeviceUsageSource (Results 1 – 13 of 13) sorted by relevance

/frameworks/native/services/inputflinger/tests/
DInputDeviceMetricsSource_test.cpp34 constexpr auto ALL_USAGE_SOURCES = ftl::enum_range<InputDeviceUsageSource>();
47 public ::testing::WithParamInterface<InputDeviceUsageSource> {};
50 const InputDeviceUsageSource usageSource = GetParam(); in TEST_P()
54 case InputDeviceUsageSource::UNKNOWN: { in TEST_P()
55 ASSERT_EQ(InputDeviceUsageSource::UNKNOWN, in TEST_P()
60 std::set<InputDeviceUsageSource> srcs{InputDeviceUsageSource::UNKNOWN}; in TEST_P()
71 case InputDeviceUsageSource::BUTTONS: { in TEST_P()
72 ASSERT_EQ(InputDeviceUsageSource::BUTTONS, in TEST_P()
80 case InputDeviceUsageSource::KEYBOARD: { in TEST_P()
81 ASSERT_EQ(InputDeviceUsageSource::KEYBOARD, in TEST_P()
[all …]
DLatencyTracker_test.cpp69 /*sources=*/{InputDeviceUsageSource::UNKNOWN}); in getTestTimeline()
121 /*sources=*/{InputDeviceUsageSource::UNKNOWN}); in triggerEventReporting()
171 /*readTime=*/3, DEVICE_ID, {InputDeviceUsageSource::UNKNOWN}); in TEST_F()
175 /*sources=*/{InputDeviceUsageSource::UNKNOWN}}); in TEST_F()
207 DEVICE_ID, {InputDeviceUsageSource::UNKNOWN}); in TEST_F()
228 {InputDeviceUsageSource::UNKNOWN}); in TEST_F()
230 {InputDeviceUsageSource::UNKNOWN}); in TEST_F()
246 /*sources=*/{InputDeviceUsageSource::UNKNOWN}); in TEST_F()
263 /*sources=*/{InputDeviceUsageSource::UNKNOWN}); in TEST_F()
276 timeline1.readTime, DEVICE_ID, {InputDeviceUsageSource::UNKNOWN}); in TEST_F()
[all …]
DInputDeviceMetricsCollector_test.cpp298 expectedSourceBreakdown.emplace_back(InputDeviceUsageSource::TOUCHSCREEN, 100ns); in TEST_F()
312 expectedSourceBreakdown.emplace_back(InputDeviceUsageSource::STYLUS_DIRECT, in TEST_F()
319 expectedSourceBreakdown.emplace_back(InputDeviceUsageSource::TOUCHSCREEN, in TEST_F()
346 expectedSourceBreakdown1.emplace_back(InputDeviceUsageSource::TOUCHSCREEN, 100ns); in TEST_F()
347 expectedSourceBreakdown2.emplace_back(InputDeviceUsageSource::STYLUS_DIRECT, 100ns); in TEST_F()
378 expectedSourceBreakdown.emplace_back(InputDeviceUsageSource::STYLUS_DIRECT, 200ns); in TEST_F()
379 expectedSourceBreakdown.emplace_back(InputDeviceUsageSource::TOUCHSCREEN, 300ns); in TEST_F()
/frameworks/native/services/inputflinger/
DInputDeviceMetricsSource.cpp30 InputDeviceUsageSource getUsageSourceForKeyArgs(int32_t keyboardType, in getUsageSourceForKeyArgs()
33 return InputDeviceUsageSource::UNKNOWN; in getUsageSourceForKeyArgs()
38 return InputDeviceUsageSource::DPAD; in getUsageSourceForKeyArgs()
43 return InputDeviceUsageSource::GAMEPAD; in getUsageSourceForKeyArgs()
47 return InputDeviceUsageSource::KEYBOARD; in getUsageSourceForKeyArgs()
50 return InputDeviceUsageSource::BUTTONS; in getUsageSourceForKeyArgs()
53 std::set<InputDeviceUsageSource> getUsageSourcesForMotionArgs(const NotifyMotionArgs& motionArgs) { in getUsageSourcesForMotionArgs()
55 std::set<InputDeviceUsageSource> sources; in getUsageSourcesForMotionArgs()
61 sources.emplace(InputDeviceUsageSource::MOUSE); in getUsageSourcesForMotionArgs()
65 sources.emplace(InputDeviceUsageSource::TOUCHPAD); in getUsageSourcesForMotionArgs()
[all …]
DInputDeviceMetricsSource.h29 enum class InputDeviceUsageSource : int32_t { enum
55 InputDeviceUsageSource getUsageSourceForKeyArgs(int32_t keyboardType, const NotifyKeyArgs&);
58 std::set<InputDeviceUsageSource> getUsageSourcesForMotionArgs(const NotifyMotionArgs&);
DInputDeviceMetricsCollector.h72 std::vector<std::pair<InputDeviceUsageSource, std::chrono::nanoseconds /*duration*/>>;
152 void recordUsage(std::chrono::nanoseconds eventTime, InputDeviceUsageSource source);
166 std::map<InputDeviceUsageSource, UsageSession> mActiveSessionsBySource{};
179 std::function<std::set<InputDeviceUsageSource>(const MetricsDeviceInfo&)>;
DInputDeviceMetricsCollector.cpp286 for (InputDeviceUsageSource source : getSources(infoIt->second)) { in onInputDeviceUsage()
337 InputDeviceUsageSource source) { in recordUsage()
367 std::vector<InputDeviceUsageSource> completedSourceSessionsForDevice; in checkIfCompletedAt()
373 for (InputDeviceUsageSource source : completedSourceSessionsForDevice) { in checkIfCompletedAt()
/frameworks/native/services/inputflinger/dispatcher/
DInputEventTimeline.h79 uint16_t productId, std::set<InputDeviceUsageSource> sources);
85 const std::set<InputDeviceUsageSource> sources;
DLatencyTracker.h56 DeviceId deviceId, const std::set<InputDeviceUsageSource>& sources);
DInputEventTimeline.cpp71 std::set<InputDeviceUsageSource> sources) in InputEventTimeline()
DLatencyTracker.cpp72 const std::set<InputDeviceUsageSource>& sources) { in trackListener()
DInputDispatcher.cpp4668 std::set<InputDeviceUsageSource> sources = getUsageSourcesForMotionArgs(args); in notifyMotion()
/frameworks/native/services/inputflinger/tests/fuzzers/
DLatencyTrackerFuzzer.cpp72 std::set<InputDeviceUsageSource> sources = { in LLVMFuzzerTestOneInput()
73 fdp.ConsumeEnum<InputDeviceUsageSource>()}; in LLVMFuzzerTestOneInput()