Home
last modified time | relevance | path

Searched refs:inputValue (Results 1 – 25 of 52) sorted by relevance

123

/ohos5.0/base/global/resource_management/frameworks/resmgr/test/unittest/common/
H A Dstring_utils_test.cpp116 std::string inputValue; variable
133 std::string inputValue = "length is %d"; variable
150 std::string inputValue = "length is %d"; variable
156 EXPECT_EQ(inputValue, "length is 1");
158 inputValue = "length is %d";
162 EXPECT_EQ(inputValue, "length is 1");
174 std::string inputValue = "percent is %f"; variable
180 EXPECT_EQ(inputValue, "percent is 0.5");
290 std::string inputValue = "percent is %.0f"; variable
296 EXPECT_EQ(inputValue, "percent is 60");
[all …]
/ohos5.0/base/telephony/core_service/utils/common/src/
H A Dtelephony_common_utils.cpp42 bool IsValidDecValue(const std::string &inputValue) in IsValidDecValue() argument
44 if (inputValue.length() > INPUT_VALUE_LENGTH) { in IsValidDecValue()
45 TELEPHONY_LOGE("The value entered is out of range, value:%{public}s", inputValue.c_str()); in IsValidDecValue()
48 bool isValueNumber = regex_match(inputValue, std::regex("(-[\\d+]+)|(\\d+)")); in IsValidDecValue()
50 int64_t numberValue = std::stoll(inputValue); in IsValidDecValue()
59 bool IsValidHexValue(const std::string &inputValue) in IsValidHexValue() argument
61 if (inputValue.length() > INPUT_VALUE_LENGTH) { in IsValidHexValue()
62 TELEPHONY_LOGE("The value entered is out of range, value:%{public}s", inputValue.c_str()); in IsValidHexValue()
65 bool isValueNumber = regex_match(inputValue, std::regex("(0[xX][0-9a-fA-F]+)|([0-9a-fA-F]+)")); in IsValidHexValue()
67 int64_t numberValue = std::stoll(inputValue, nullptr, HEX_TYPE); in IsValidHexValue()
/ohos5.0/docs/zh-cn/application-dev/faqs/
H A Dfaqs-arkui-component.md34 @Link inputValue: string
41 this.inputValue = value
50 @State inputValue: string = 'click me'
53 inputValue: $inputValue
59 Button(this.inputValue)
73 private inputValue: string
93 inputValue: this.inputValue,
95 this.inputValue = val
102 Button(this.inputValue)
124 this.inputValue = value;
[all …]
/ohos5.0/foundation/multimodalinput/input/tools/event_inject/src/
H A Dinjection_event_dispatch.cpp178 bool InjectionEventDispatch::CheckValue(const std::string &inputValue) in CheckValue() argument
180 if ((inputValue.length()) > INPUT_VALUE_LENGTH) { in CheckValue()
181 MMI_HILOGE("The value entered is out of range, value:%{public}s", inputValue.c_str()); in CheckValue()
184 bool isValueNumber = regex_match(inputValue, std::regex("(-[\\d+]+)|(\\d+)")); in CheckValue()
186 int32_t numberValue = stoi(inputValue); in CheckValue()
227 const std::string &inputValue) in CheckEventValue() argument
237 if (!(CheckValue(inputValue))) { in CheckEventValue()
238 MMI_HILOGE("Input error in value, value:%{public}s", inputValue.c_str()); in CheckEventValue()
/ohos5.0/foundation/communication/wifi/wifi/application/wifi_direct_demo/entry/src/main/ets/MainAbility/pages/component/dialog/
H A DinputComponent.ets27 @State inputValue: string = '';
45 TextInput({ placeholder: this.inputHint, text: this.inputValue })
59 this.inputValue = value;
93 if (this.inputValue == '') {
95 } else if (this.inputValue.length > this.inputValLength) {
99 this.eventConnect(this.inputValue);
/ohos5.0/docs/zh-cn/application-dev/ui/
H A Dui-js-building-ui-layout-comment.md6 …mentText的状态标记此时显示的组件(通过if属性控制)。在包含文本完成和删除的text组件中关联click事件,更新commentText状态和inputValue的内容。具体的实现示例如下:
14 <input class="comment" value="{{inputValue}}" onchange="updateValue()"></input>
18 <text class="comment-text" focusable="true">{{inputValue}}</text>
71 inputValue: '',
78 this.inputValue = e.text;
H A Darkts-common-components-custom-dialog.md279 @State inputValue: string = 'click me'
307 Button(this.inputValue)
340 @State inputValue: string = 'click me'
365 Button(this.inputValue)
431 @State inputValue: string = 'Click Me'
470 Button(this.inputValue)
/ohos5.0/foundation/communication/bluetooth_service/test/example/bluetoothtest/entry/src/main/ets/Component/
H A DcontentTable.ets35 @Link inputValue: string
84 this.confirm(this.inputValue)
106 @Link inputValue: string
169 this.confirm(this.inputValue)
183 @Link inputValue: string
224 this.confirm(this.inputValue)
244 @Link inputValue: string
319 inputValue : $localName ,
333 inputValue : $localName ,
347 inputValue : $localName ,
[all …]
/ohos5.0/foundation/arkui/ace_engine/advanced_ui_component/counter/interfaces/
H A Dcounter.js345 if (v20.inputValue !== undefined) {
346 this.inputValue = v20.inputValue;
645 get inputValue() {
649 set inputValue(m20) {
1505 if (this.inputValue == undefined) {
1506 this.inputValue = '';
2228 … if (this.inputValue !== '' && Number(this.inputValue) <= this.max &&
2242 … if (this.inputValue !== '' && Number(this.inputValue) <= this.max &&
2262 … if (Number(this.inputValue) >= this.min && Number(this.inputValue) <= this.max) {
2374 … if (this.inputValue !== '' && Number(this.inputValue) <= this.max &&
[all …]
/ohos5.0/docs/en/application-dev/ui/
H A Dui-js-building-ui-layout-comment.md7 …nent that contains Done and Delete to update the **commentText** and **inputValue**. The following…
14 <input class="comment" value="{{inputValue}}" onchange="updateValue()"></input>
18 <text class="comment-text" focusable="true">{{inputValue}}</text>
71 inputValue: '',
78 this.inputValue = e.text;
H A Darkts-common-components-custom-dialog.md279 @State inputValue: string = 'click me'
307 Button(this.inputValue)
340 @State inputValue: string = 'Click Me'
365 Button(this.inputValue)
431 @State inputValue: string = 'Click Me'
470 Button(this.inputValue)
/ohos5.0/foundation/arkui/ace_engine/advanced_ui_component/counter/source/
H A Dcounter.ets201 @State inputValue: string = '0';
839 if (this.inputValue == undefined) {
840 this.inputValue = ''
1447 this.inputValue = c;
1453 if (this.inputValue !== '' && Number(this.inputValue) <= this.max &&
1466 if (this.inputValue !== '' && Number(this.inputValue) <= this.max &&
1486 if (Number(this.inputValue) >= this.min && Number(this.inputValue) <= this.max) {
1587 this.inputValue = c;
1593 if (this.inputValue !== '' && Number(this.inputValue) <= this.max &&
1606 if (this.inputValue !== '' && Number(this.inputValue) <= this.max &&
[all …]
/ohos5.0/foundation/communication/wifi/wifi/test/wifi_testapp/entry/src/main/ets/entryability/model/
H A Dbowser.ets47 inputValue: string = ""
103 setInputVal(inputValue: string) {
104 this.inputValue = inputValue
108 return this.inputValue
/ohos5.0/docs/zh-cn/application-dev/reference/apis-arkui/arkui-ts/
H A Dohos-arkui-advanced-ExceptionPrompt.md127 @Link inputValue: string;
162 this.inputValue = this.textValue;
193 @State inputValue: string = 'click me';
199 inputValue: $inputValue,
H A Dts-methods-custom-dialog-box.md166 @Link inputValue: string
207 this.inputValue = this.textValue
229 @State inputValue: string = 'click me'
235 inputValue: $inputValue
274 Button(this.inputValue)
474 @Link inputValue: string;
495 this.inputValue = this.textValue;
511 @State inputValue: string = 'click me';
515 inputValue: $inputValue
549 Button(this.inputValue)
H A Dts-universal-attributes-focus.md248 @State inputValue: string = ''
313 TextInput({placeholder: 'input', text: this.inputValue})
315 this.inputValue = value
519 @State inputValue: string = ''
581 TextInput({placeholder: 'input', text: this.inputValue})
583 this.inputValue = value
/ohos5.0/docs/zh-cn/third-party-cases/
H A Ddiverse-dialogues.md157 this.inputValue = this.textValue
173 inputValue: $inputValue
265 @Link inputValue: string
282 this.inputValue = this.textValue
296 @State inputValue: string = '';
303 inputValue: $inputValue
/ohos5.0/drivers/peripheral/clearplay/
H A DREADME_zh.md158 std::vector<uint8_t> inputValue;
177 inputValue.push_back('v');
178 inputValue.push_back('a');
179 inputValue.push_back('l');
180 inputValue.push_back('u');
181 inputValue.push_back('e');
182 media_key_system->SetConfiguration(CONFIG_TYPE_KEY_SESSION, "name1", inputValue);
183 media_key_system->SetConfiguration(CONFIG_TYPE_KEY_SESSION, "name2", inputValue);
184 media_key_system->SetConfiguration(CONFIG_TYPE_KEY_SESSION, "name3", inputValue);
/ohos5.0/base/telephony/core_service/utils/common/include/
H A Dtelephony_common_utils.h36 bool IsValidDecValue(const std::string &inputValue);
44 bool IsValidHexValue(const std::string &inputValue);
/ohos5.0/docs/en/application-dev/faqs/
H A Dfaqs-arkui-component.md34 @Link inputValue: string
41 this.inputValue = value
50 @State inputValue: string = 'click me'
53 inputValue: $inputValue
59 Button(this.inputValue)
73 private inputValue: string
93 inputValue: this.inputValue,
95 this.inputValue = val
102 Button(this.inputValue)
124 this.inputValue = value;
[all …]
/ohos5.0/docs/en/application-dev/reference/apis-arkui/arkui-ts/
H A Dohos-arkui-advanced-ExceptionPrompt.md123 @Link inputValue: string
154 this.inputValue = this.textValue
182 @State inputValue: string = 'click me'
188 inputValue: $inputValue
/ohos5.0/foundation/multimodalinput/input/tools/event_inject/include/
H A Dinjection_event_dispatch.h77 bool CheckValue(const std::string &inputValue);
79 const std::string &inputValue);
/ohos5.0/foundation/arkui/ace_engine/frameworks/base/geometry/
H A Dsize.h35 inline static bool IsValueInfinite(double inputValue) in IsValueInfinite() argument
37 return NearEqual(inputValue, INFINITE_SIZE); in IsValueInfinite()
/ohos5.0/docs/zh-cn/release-notes/changelogs/OpenHarmony_5.0.0.24/
H A Dchangelogs-arkui.md322 @State inputValue: string = 'Click Me';
326 Text(this.inputValue).fontSize(35)
360 Button(this.inputValue)
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/loading_progress/
H A Dloading_progress_utill.h141 …static float CalculateValue(float inputValue, float minInput, float maxInput, float minOutPut, flo… in CalculateValue() argument
143 auto inputScale = (inputValue - minInput) / (maxInput - minInput); in CalculateValue()

123