/base/powermgr/display_manager/brightness_manager/src/ |
H A D | lux_filter_config_parser.cpp | 82 std::string text = std::to_string(displayId).append(" ");
in PrintConfig() local 84 text.append("[filterName: ");
in PrintConfig() 85 text.append(key).append(", ");
in PrintConfig() 86 text.append("filterNoFilterNum: ");
in PrintConfig() 87 text.append(std::to_string(value.filterNoFilterNum)).append(", ");
in PrintConfig() 88 text.append("filterNum: ");
in PrintConfig() 89 text.append(std::to_string(value.filterNum)).append(", ");
in PrintConfig() 90 text.append("filterMaxFuncLuxNum: ");
in PrintConfig() 91 text.append(std::to_string(value.filterMaxFuncLuxNum)).append(", ");
in PrintConfig() 92 text in PrintConfig() [all...] |
H A D | lux_threshold_config_parser.cpp | 114 std::string text = std::to_string(displayId).append(" ");
in PrintConfig() local 116 text.append("[modeName: ");
in PrintConfig() 117 text.append(key).append(", ");
in PrintConfig() 118 text.append("brightenDebounceTime: ");
in PrintConfig() 119 text.append(std::to_string(value.brightenDebounceTime)).append(", ");
in PrintConfig() 120 text.append("darkenDebounceTime: ");
in PrintConfig() 121 text.append(std::to_string(value.darkenDebounceTime)).append(", ");
in PrintConfig() 122 text.append(ConfigParserBase::Get().PointXyToString("brightenPoints", value.brightenPoints));
in PrintConfig() 123 text.append(ConfigParserBase::Get().PointXyToString("darkenPoints", value.brightenPoints));
in PrintConfig() 124 text in PrintConfig() [all...] |
H A D | calculation_config_parser.cpp | 51 std::string text = std::to_string(displayId);
in PrintConfig() local 52 text.append(" defaultBrightness: ");
in PrintConfig() 53 text.append(std::to_string(data.defaultBrightness)).append(", ");
in PrintConfig() 54 text.append(ConfigParserBase::Get().PointXyToString("defaultPoints", data.defaultPoints));
in PrintConfig() 55 DISPLAY_HILOGI(FEAT_BRIGHTNESS, "%{public}s", text.c_str());
in PrintConfig()
|
H A D | brightness_config_parser.cpp | 47 std::string text = "";
in PrintConfig() local 48 text.append("screenData: ");
in PrintConfig() 49 text.append(ConfigParserBase::Get().ScreenDataToString("displayModeData", data.displayModeMap, "displayMode"));
in PrintConfig() 50 text.append(ConfigParserBase::Get().ScreenDataToString("foldStatus", data.foldStatusModeMap, "foldStatus"));
in PrintConfig() 51 DISPLAY_HILOGI(FEAT_BRIGHTNESS, "%{public}s", text.c_str());
in PrintConfig()
|
/base/global/i18n/frameworks/intl/test/fuzztest/timezone_fuzzer/ |
H A D | timezone_fuzzer.cpp | 32 std::string text(reinterpret_cast<const char*>(data), size); in DoSomethingInterestingWithMyAPI() 34 I18nTimeZone timezone(text, isDST); in DoSomethingInterestingWithMyAPI() 44 timezone.GetDisplayName(text); in DoSomethingInterestingWithMyAPI() 45 timezone.GetDisplayName(text, isDST); in DoSomethingInterestingWithMyAPI() 46 I18nTimeZone::CreateInstance(text, isDST); in DoSomethingInterestingWithMyAPI() 50 I18nTimeZone::GetCityDisplayName(text, text); in DoSomethingInterestingWithMyAPI()
|
/base/notification/distributed_notification_service/frameworks/ans/test/unittest/ |
H A D | notification_conversational_message_test.cpp | 43 std::string text = "Text"; in HWTEST_F() local 46 auto rrc = std::make_shared<NotificationConversationalMessage>(text, timestamp, sender); in HWTEST_F() 48 EXPECT_EQ(rrc->GetText(), text); in HWTEST_F() 60 std::string text = "Text"; in HWTEST_F() local 66 auto rrc = std::make_shared<NotificationConversationalMessage>(text, timestamp, sender); in HWTEST_F() 80 std::string text = "Text"; in HWTEST_F() local 83 auto rrc = std::make_shared<NotificationConversationalMessage>(text, timestamp, sender); in HWTEST_F() 85 "NotificationConversationalMessage{ text = Text, arrivedTime = 10, mimeType = , uri = null, " in HWTEST_F() 99 std::string text = "Text"; in HWTEST_F() local 103 auto rrc = std::make_shared<NotificationConversationalMessage>(text, timestam in HWTEST_F() 116 std::string text = "Text"; HWTEST_F() local 132 std::string text = "Text"; HWTEST_F() local 156 std::string text = "Text"; HWTEST_F() local 172 std::string text = "Text"; HWTEST_F() local 191 std::string text = "Text"; HWTEST_F() local 213 std::string text = "Text"; HWTEST_F() local [all...] |
/base/security/huks/frameworks/crypto_lite/cipher/src/ |
H A D | cipher_aes.c | 60 static char *MallocDecodeData(const char *text, size_t *olen) in MallocDecodeData() argument 63 int32_t ret = mbedtls_base64_decode(NULL, 0, &decodeLen, (const unsigned char *)(text), strlen(text)); in MallocDecodeData() 78 (const unsigned char *)text, strlen(text)) != 0) { in MallocDecodeData() 86 static char *MallocEncodeData(const unsigned char *text, size_t *olen) in MallocEncodeData() argument 89 int32_t ret = mbedtls_base64_encode(NULL, 0, &dataLen, text, *olen); in MallocEncodeData() 103 if (mbedtls_base64_encode((unsigned char *)(encData), dataLen, olen, text, *olen) != 0) { in MallocEncodeData() 185 static int32_t InitAesCryptDataText(const char *action, const char *key, const char *text, CryptData *data) in InitAesCryptDataText() argument 189 if (strlen(text) in InitAesCryptDataText() 223 InitAesData(const char *action, const char *key, const char *text, CryptData *data) InitAesData() argument 316 InitAesCryptData(const char *action, const char *text, const char *key, const AesIvMode *iv, AesCryptContext *aesCryptCxt) InitAesCryptData() argument [all...] |
/base/web/webview/test/fuzztest/ohos_adapter/pasteboard_adapter/getmimetype_fuzzer/ |
H A D | getmimetype_fuzzer.cpp | 28 std::string text((const char*)data, size); in GetMimeTypeFuzzTest() 29 std::shared_ptr<std::string> plainText = std::make_shared<std::string>(text); in GetMimeTypeFuzzTest() 30 std::shared_ptr<std::string> htmlText = std::make_shared<std::string>(text); in GetMimeTypeFuzzTest() 32 std::make_shared<PasteDataRecordAdapterImpl>(text, htmlText, plainText); in GetMimeTypeFuzzTest()
|
/base/web/webview/test/fuzztest/ohos_adapter/pasteboard_adapter/seturi_fuzzer/ |
H A D | seturi_fuzzer.cpp | 28 std::string text((const char*)data, size); in SetUriFuzzTest() 29 std::shared_ptr<std::string> plainText = std::make_shared<std::string>(text); in SetUriFuzzTest() 30 std::shared_ptr<std::string> htmlText = std::make_shared<std::string>(text); in SetUriFuzzTest() 32 PasteDataRecordAdapter::NewRecord(text, htmlText, plainText); in SetUriFuzzTest()
|
/base/hiviewdfx/hidumper/test/scripts/testModule/ |
H A D | test_performance.py | 39 output = subprocess.check_output(f"hdc shell ls -lh /system/lib/libhidumper*", shell=True, text=True, encoding="utf-8")
45 subprocess.check_call(f"hdc shell hidumper --mem 1", shell=True, text=True, encoding="utf-8")
46 output = subprocess.check_output(f"hdc shell hidumper --mem `pidof hidumper_service`", shell=True, text=True, encoding="utf-8")
52 output = subprocess.check_output(f"hdc shell \"ls -Z /system/bin | grep hidumper\"", shell=True, text=True, encoding="utf-8")
58 subprocess.check_call(f"hdc shell hidumper --mem 1", shell=True, text=True, encoding="utf-8")
59 output = subprocess.check_output(f"hdc shell \"ps -eZ | grep hidumper\"", shell=True, text=True, encoding="utf-8")
|
H A D | utils.py | 63 pid = subprocess.check_output(cmd, shell=True, encoding="utf-8", text=True)
90 output = subprocess.check_output(f"hdc shell \"{command}\"", shell=True, text=True, encoding="utf-8")
95 subprocess.check_output(f"hdc shell \"{command}\" > {filePath}", shell=True, text=True, encoding="utf-8")
99 output = subprocess.check_output(f"hdc shell \"{command} --zip\"", shell=True, text=True, encoding="utf-8")
102 subprocess.check_output(f"hdc file recv {zipSourceFile} {zipTargetFile}", shell=True, text=True, encoding="utf-8")
106 output = subprocess.check_output("hdc shell param get const.product.software.version", shell=True, text=True, encoding="utf-8").strip()
110 output = subprocess.check_output("hdc shell param get const.debuggable", shell=True, text=True, encoding="utf-8").strip()
114 output = subprocess.check_output("hdc shell param get const.product.software.version", shell=True, text=True, encoding="utf-8").strip()
123 text=True
|
H A D | conftest.py | 19 output = subprocess.check_output("hdc shell param get const.product.software.version", shell=True, text=True, encoding="utf-8").strip()
23 output = subprocess.check_output("hdc shell param get const.debuggable", shell=True, text=True, encoding="utf-8").strip()
27 output = subprocess.check_output("hdc shell param get const.product.software.version", shell=True, text=True, encoding="utf-8").strip()
|
/base/inputmethod/imf/test/unittest/cpp_test/src/ |
H A D | text_listener_inner_api_test.cpp | 81 * @tc.desc: insert text. 90 std::string text = "text"; in HWTEST_F() local 91 std::u16string u16Text = Str8ToStr16(text); in HWTEST_F() 99 * @tc.desc: insert text without Attach. 107 std::string text = "text"; in HWTEST_F() local 108 std::u16string u16Text = Str8ToStr16(text); in HWTEST_F() 219 std::u16string text; in HWTEST_F() local 220 int32_t ret = TextListenerInnerApiTest::imc_->GetLeft(number, text); in HWTEST_F() 236 std::u16string text = u""; HWTEST_F() local 264 std::u16string text; HWTEST_F() local 281 std::u16string text = u""; HWTEST_F() local 597 std::string text = "text"; HWTEST_F() local 618 std::string text = "text"; HWTEST_F() local [all...] |
/base/inputmethod/imf/frameworks/native/inputmethod_controller/src/ |
H A D | input_data_channel_proxy.cpp | 31 int32_t InputDataChannelProxy::InsertText(const std::u16string &text) in InsertText() argument 33 return SendRequest(INSERT_TEXT, [&text](MessageParcel &parcel) { return ITypesUtil::Marshal(parcel, text); }); in InsertText() 47 int32_t InputDataChannelProxy::GetTextBeforeCursor(int32_t number, std::u16string &text) 51 [&text](MessageParcel &parcel) { return ITypesUtil::Unmarshal(parcel, text); }); 54 int32_t InputDataChannelProxy::GetTextAfterCursor(int32_t number, std::u16string &text) 58 [&text](MessageParcel &parcel) { return ITypesUtil::Unmarshal(parcel, text); }); 139 int32_t InputDataChannelProxy::SetPreviewText(const std::string &text, cons [all...] |
H A D | input_data_channel_stub.cpp | 51 std::u16string text; in InsertTextOnRemote() local 52 if (!ITypesUtil::Unmarshal(data, text)) { in InsertTextOnRemote() 56 return reply.WriteInt32(InsertText(text)) ? ErrorCode::NO_ERROR : ErrorCode::ERROR_EX_PARCELABLE; in InsertTextOnRemote() 86 std::u16string text; in GetTextBeforeCursorOnRemote() local 87 return ITypesUtil::Marshal(reply, GetTextBeforeCursor(length, text), text) ? ErrorCode::NO_ERROR in GetTextBeforeCursorOnRemote() 98 std::u16string text; in GetTextAfterCursorOnRemote() local 99 return ITypesUtil::Marshal(reply, GetTextAfterCursor(length, text), text) ? ErrorCode::NO_ERROR in GetTextAfterCursorOnRemote() 228 std::string text; in SetPreviewTextOnRemote() local 243 InsertText(const std::u16string &text) InsertText() argument 258 GetTextBeforeCursor(int32_t number, std::u16string &text) GetTextBeforeCursor() argument 263 GetTextAfterCursor(int32_t number, std::u16string &text) GetTextAfterCursor() argument 336 SetPreviewText(const std::string &text, const Range &range) SetPreviewText() argument [all...] |
/base/inputmethod/imf/frameworks/ndk/src/ |
H A D | native_text_changed_listener.cpp | 21 void NativeTextChangedListener::InsertText(const std::u16string &text) in InsertText() argument 33 textEditor_->insertTextFunc(textEditor_, text.c_str(), text.length()); in InsertText() 161 char16_t *text = new char16_t[length]; in GetLeftTextOfCursor() local 162 if (text == nullptr) { in GetLeftTextOfCursor() 163 IMSA_HILOGE("text is nullptr"); in GetLeftTextOfCursor() 167 textEditor_->getLeftTextOfCursorFunc(textEditor_, number, text, &length); in GetLeftTextOfCursor() 169 std::u16string textStr(text, length); in GetLeftTextOfCursor() 170 delete[] text; in GetLeftTextOfCursor() 192 char16_t *text in GetRightTextOfCursor() local 255 SetPreviewText(const std::u16string &text, const OHOS::MiscServices::Range &range) SetPreviewText() argument [all...] |
/base/telephony/sms_mms/test/fuzztest/textbasedsmsdelivery_fuzzer/ |
H A D | textbasedsmsdelivery_fuzzer.cpp | 52 std::string text(reinterpret_cast<const char *>(data), size); in DoSomethingInterestingWithMyAPI() 65 smsInterfaceManager->TextBasedSmsDelivery(desAddr, scAddr, text, sendCallback, deliveryCallback, dataBaseId); in DoSomethingInterestingWithMyAPI() 73 smsSendManager->TextBasedSmsDelivery(desAddr, scAddr, text, sendCallback, deliveryCallback, dataBaseId); in DoSomethingInterestingWithMyAPI() 76 smsSendManager->gsmSmsSender_->TextBasedSmsDelivery(desAddr, scAddr, text, sendCallback, deliveryCallback, in DoSomethingInterestingWithMyAPI() 80 smsSendManager->cdmaSmsSender_->TextBasedSmsDelivery(desAddr, scAddr, text, sendCallback, deliveryCallback, in DoSomethingInterestingWithMyAPI()
|
/base/web/webview/test/fuzztest/ohos_adapter/pasteboard_adapter/setplaintext_fuzzer/ |
H A D | setplaintext_fuzzer.cpp | 28 std::string text((const char*)data, size); in SetPlainTextFuzzTest() 30 std::make_shared<PasteDataRecordAdapterImpl>(text); in SetPlainTextFuzzTest() 31 std::shared_ptr<std::string> plainText = std::make_shared<std::string>(text); in SetPlainTextFuzzTest()
|
/base/hiviewdfx/hisysevent/interfaces/native/innerkits/hisysevent/ |
H A D | stringfilter.cpp | 79 std::string StringFilter::EscapeToRaw(const std::string &text) in EscapeToRaw() argument 82 for (auto c : text) { in EscapeToRaw() 93 bool StringFilter::IsValidName(const std::string &text, unsigned int maxSize) in IsValidName() argument 95 if (text.empty()) { in IsValidName() 98 if (text.length() > maxSize) { in IsValidName() 102 for (auto c : text) { in IsValidName()
|
/base/inputmethod/imf/test/common/src/ |
H A D | keyboard_listener_test_impl.cpp | 59 void KeyboardListenerTestImpl::OnTextChange(const std::string &text) in OnTextChange() argument 61 text_ = text; in OnTextChange() 97 bool KeyboardListenerTestImpl::WaitTextChange(const std::string &text) in WaitTextChange() argument 100 kdListenerCv_.wait_for(lock, std::chrono::seconds(1), [&text]() { return text == text_; }); in WaitTextChange() 101 return text == text_; in WaitTextChange()
|
/base/powermgr/battery_statistics/test/unittest/src/servicetest/utils/ |
H A D | string_filter.cpp | 79 std::string StringFilter::EscapeToRaw(const std::string &text) in EscapeToRaw() argument 82 for (auto c : text) { in EscapeToRaw() 93 bool StringFilter::IsValidName(const std::string &text, unsigned int maxSize) in IsValidName() argument 95 if (text.empty()) { in IsValidName() 98 if (text.length() > maxSize) { in IsValidName() 102 for (auto c : text) { in IsValidName()
|
/base/web/webview/test/fuzztest/ohos_adapter/pasteboard_adapter/sethtmltext_fuzzer/ |
H A D | sethtmltext_fuzzer.cpp | 34 std::string text((const char*)data, size); in SetHtmlTextFuzzTest() 35 std::shared_ptr<PasteDataRecordAdapter> dataRecordAdapter = PasteDataRecordAdapter::NewRecord(text); in SetHtmlTextFuzzTest() 36 std::shared_ptr<std::string> htmlText = std::make_shared<std::string>(text); in SetHtmlTextFuzzTest()
|
/base/inputmethod/imf/frameworks/native/inputmethod_controller/include/ |
H A D | i_input_data_channel.h | 60 virtual int32_t InsertText(const std::u16string &text) = 0; 63 virtual int32_t GetTextBeforeCursor(int32_t number, std::u16string &text) = 0; 64 virtual int32_t GetTextAfterCursor(int32_t number, std::u16string &text) = 0; 78 virtual int32_t SetPreviewText(const std::string &text, const Range &range) = 0;
|
/base/web/webview/ohos_interface/ohos_glue/ohos_adapter/bridge/webview/ |
H A D | ark_paste_data_adapter_impl.cpp | 32 void ArkPasteDataAdapterImpl::AddTextRecord(const ArkWebString& text) in AddTextRecord() argument 34 real_->AddTextRecord(ArkWebStringStructToClass(text)); in AddTextRecord() 52 std::shared_ptr<std::string>* text = static_cast<std::shared_ptr<std::string>*>(data); in GetPrimaryText() local 53 *text = str; in GetPrimaryText()
|
/base/update/updater/test/unittest/updater_ui_test/view/ |
H A D | ui_layout_unittest.cpp | 42 return std::tie(lhs.text, lhs.bgColor, lhs.align, lhs.fontColor, lhs.fontSize) == in operator ==() 43 std::tie(rhs.text, rhs.bgColor, rhs.align, rhs.fontColor, rhs.fontSize); in operator ==() 54 return std::tie(lhs.fontSize, lhs.text, lhs.txtColor, lhs.bgColor, lhs.focusedBgColor, lhs.focusedTxtColor) == in operator ==() 55 std::tie(rhs.fontSize, rhs.text, rhs.txtColor, rhs.bgColor, rhs.focusedBgColor, rhs.focusedTxtColor); in operator ==() 188 std::get<UxLabelInfo>(expected.specificInfo).text = "Userdata reset"; in HWTEST_F() 192 std::get<UxLabelInfo>(expected.specificInfo).text = "Update from SD Card"; in HWTEST_F() 196 std::get<UxLabelInfo>(expected.specificInfo).text = "Tip"; in HWTEST_F() 201 std::get<UxLabelInfo>(expected.specificInfo).text = "Delete user date now..."; in HWTEST_F() 205 std::get<UxLabelInfo>(expected.specificInfo).text = "Do you want to continue?"; in HWTEST_F() 209 std::get<UxLabelInfo>(expected.specificInfo).text in HWTEST_F() [all...] |