MCPcopy Create free account
hub / github.com/bytedance/Fastbot_Android / setText

Method setText

native/desc/DeviceOperateWrapper.cpp:46–55  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

44 }
45
46 std::string DeviceOperateWrapper::setText(const std::string &text) {
47 this->_text = text;
48 if (this->_text.length() > 1000) {
49 this->_text = this->_text.substr(0, 999);
50 }
51 if (!this->editable) {
52 LOGW("set text to a none editable node %s", this->toString().c_str());
53 }
54 return this->_text;
55 }
56
57#define BOOL_TO_STR(b) (b?"true":"false")
58

Callers 2

toOperateMethod · 0.80
patchOperateMethod · 0.80

Calls 3

toStringMethod · 0.95
lengthMethod · 0.80
c_strMethod · 0.45

Tested by

no test coverage detected