Home
last modified time | relevance | path

Searched refs:displayPort (Results 1 – 5 of 5) sorted by relevance

/frameworks/base/services/core/java/com/android/server/input/
DConfigurationProcessor.java104 String displayPort = parser.getAttributeValue(null, "display"); in processInputPortAssociations() local
105 if (TextUtils.isEmpty(inputPort) || TextUtils.isEmpty(displayPort)) { in processInputPortAssociations()
111 Integer.parseUnsignedInt(displayPort); in processInputPortAssociations()
116 associations.add(new Pair<>(inputPort, displayPort)); in processInputPortAssociations()
/frameworks/native/services/inputflinger/
DInputReaderBase.cpp92 uint8_t displayPort) const { in getDisplayViewportByPort()
95 if (physicalPort && (*physicalPort == displayPort)) { in getDisplayViewportByPort()
DInputReader.cpp1108 const auto& displayPort = ports.find(inputPort); in configure() local
1109 if (displayPort != ports.end()) { in configure()
1110 mAssociatedDisplayPort = std::make_optional(displayPort->second); in configure()
3460 const std::optional<uint8_t> displayPort = mDevice->getAssociatedDisplayPort(); in findViewport() local
3461 if (displayPort) { in findViewport()
3463 std::optional<DisplayViewport> v = mConfig.getDisplayViewportByPort(*displayPort); in findViewport()
3467 getDeviceName().c_str(), *displayPort); in findViewport()
/frameworks/base/services/core/jni/
Dcom_android_server_input_InputManagerService.cpp503 uint8_t displayPort; in getReaderConfiguration() local
505 bool success = ParseUint(displayPortStr, &displayPort); in getReaderConfiguration()
511 outConfig->portAssociations.insert({inputPort, displayPort}); in getReaderConfiguration()
/frameworks/native/services/inputflinger/tests/
DInputReader_test.cpp184 std::optional<DisplayViewport> getDisplayViewportByPort(uint8_t displayPort) const { in getDisplayViewportByPort()
185 return mConfig.getDisplayViewportByPort(displayPort); in getDisplayViewportByPort()
201 void addInputPortAssociation(const std::string& inputPort, uint8_t displayPort) { in addInputPortAssociation() argument
202 mConfig.portAssociations.insert({inputPort, displayPort}); in addInputPortAssociation()
948 const std::optional<uint8_t> displayPort = mDevice->getAssociatedDisplayPort(); in configure() local
949 if (displayPort && (changes & InputReaderConfiguration::CHANGE_DISPLAY_INFO)) { in configure()
950 mViewport = config->getDisplayViewportByPort(*displayPort); in configure()