/base/global/i18n/frameworks/intl/test/unittest/ |
H A D | intl_number_format_test.cpp | 48 string style = "currency"; in HWTEST_F() local 51 { "style", style }, in HWTEST_F() 61 EXPECT_EQ(numFmt->GetStyle(), style); in HWTEST_F() 78 string style = "currency"; in HWTEST_F() local 81 { "style", style }, in HWTEST_F() 91 EXPECT_EQ(numFmt->GetStyle(), style); in HWTEST_F() 108 string style = "currency"; in HWTEST_F() local 111 { "style", styl in HWTEST_F() 138 string style = "currency"; HWTEST_F() local 168 string style = "currency"; HWTEST_F() local 198 string style = "currency"; HWTEST_F() local [all...] |
/base/global/i18n_lite/frameworks/i18n/src/ |
H A D | number_data.cpp | 100 CalculateIntLength(len - style.decLen, pattern, len, isDec);
in ParsePattern() 102 style.isTwoGroup = true;
in ParsePattern() 124 style.decLen = decLen;
in CalculateDecLength() 143 style.intLen = intLen;
in CalculateIntLength() 221 I18nFree(static_cast<void *>(style.entireFormat));
in ParseOtherPerPattern() 223 style.entireFormat = I18nNewCharString(type.data(), typeLen);
in ParseOtherPerPattern() 228 style.minDecimalLength = length;
in SetMinDecimalLength() 279 style.maxDecimalLength = length;
in SetMaxDecimalLength() 338 // reset the style's number pattern which is used to format a decimal number
in UpdateNumberFormat() 350 I18nFree(static_cast<void *>(style in UpdateNumberFormat() [all...] |
H A D | number_format_impl.cpp | 23 std::string NumberFormatImpl::ConvertSignAndNum(const char *content, int len, NumberData *data, StyleData &style) const
in ConvertSignAndNum() 131 bool isPercentDefault = isPercent && (defaultData->style.minDecimalLength < 0);
in InnerFormat() 134 static_cast<int>(sprintf_s(buff, NUMBER_MAX, defaultData->style.numFormat, adjustNum));
in InnerFormat() 142 int lastLen = isShowGroup ? (len + CountGroupNum(len - decLen, defaultData->style.isTwoGroup)) : len;
in InnerFormat() 152 int lengths[] = { lastLen, len, defaultData->style.isTwoGroup };
in InnerFormat() 162 lastLen = DelMoreZero(defaultData->style, decLen, lastLen, adjustHasDec, result);
in InnerFormat() 164 if (isPercent && !DealWithPercent(buff, result, status, defaultData->style, lastLen)) {
in InnerFormat() 169 std::string outStr = ConvertSignAndNum(result, lastLen, defaultData, defaultData->style);
in InnerFormat() 177 bool NumberFormatImpl::DealWithPercent(char *buff, char *&result, int &status, StyleData &style, int &lastLen) const
in DealWithPercent() argument 179 if (style in DealWithPercent() 209 DelMoreZero(const StyleData &style, int decLen, int lastLen, bool hasDec, char *&result) const DelMoreZero() argument [all...] |
/base/notification/distributed_notification_service/test/fuzztest/publishcontinuoustasknotification_fuzzer/ |
H A D | publishcontinuoustasknotification_fuzzer.cpp | 32 int32_t style = static_cast<int32_t>(GetU32Data(data));
in DoSomethingInterestingWithMyAPI() local 34 Notification::NotificationRequest::BadgeStyle(style);
in DoSomethingInterestingWithMyAPI() 36 request.SetBadgeNumber(style);
in DoSomethingInterestingWithMyAPI() 53 request.SetDeliveryTime(style);
in DoSomethingInterestingWithMyAPI() 71 request.SetNotificationId(style);
in DoSomethingInterestingWithMyAPI() 85 Notification::NotificationHelper::CancelContinuousTaskNotification(stringData, style);
in DoSomethingInterestingWithMyAPI() 90 return Notification::NotificationHelper::IsAllowedNotify(style, support);
in DoSomethingInterestingWithMyAPI()
|
/base/notification/distributed_notification_service/frameworks/test/moduletest/ |
H A D | ans_innerkits_module_slot_test.cpp | 94 std::vector<int64_t> style; in HWTEST_F() local 95 style.push_back(0); in HWTEST_F() 96 slot.SetVibrationStyle(style); in HWTEST_F() 140 std::vector<int64_t> style; in HWTEST_F() local 141 style.push_back(0); in HWTEST_F() 142 slot.SetVibrationStyle(style); in HWTEST_F() 186 std::vector<int64_t> style; in HWTEST_F() local 187 style.push_back(0); in HWTEST_F() 188 slot.SetVibrationStyle(style); in HWTEST_F() 231 std::vector<int64_t> style; in HWTEST_F() local 278 std::vector<int64_t> style; HWTEST_F() local 394 std::vector<int64_t> style; HWTEST_F() local [all...] |
/base/notification/distributed_notification_service/test/fuzztest/publishnotification_fuzzer/ |
H A D | publishnotification_fuzzer.cpp | 32 int32_t style = static_cast<int32_t>(GetU32Data(data)); in DoSomethingInterestingWithMyAPI() local 34 Notification::NotificationRequest::BadgeStyle(style); in DoSomethingInterestingWithMyAPI() 36 request.SetBadgeNumber(style); in DoSomethingInterestingWithMyAPI() 53 request.SetDeliveryTime(style); in DoSomethingInterestingWithMyAPI() 71 request.SetNotificationId(style); in DoSomethingInterestingWithMyAPI()
|
/base/msdp/device_status/frameworks/native/interaction/src/ |
H A D | drag_manager_impl.cpp | 30 int32_t DragManagerImpl::UpdateDragStyle(DragCursorStyle style) in UpdateDragStyle() argument 33 if ((style < DragCursorStyle::DEFAULT) || (style > DragCursorStyle::MOVE)) { in UpdateDragStyle() 34 FI_HILOGE("Invalid style:%{public}d", static_cast<int32_t>(style)); in UpdateDragStyle() 37 FI_HILOGD("Ready to modify the style(%{public}d)", static_cast<int32_t>(style)); in UpdateDragStyle() 38 return DeviceStatusClient::GetInstance().UpdateDragStyle(style); in UpdateDragStyle() 131 int32_t style = 0; in OnDragStyleChangedMessage() local 132 pkt >> style; in OnDragStyleChangedMessage() local [all...] |
H A D | interaction_manager.cpp | 116 int32_t InteractionManager::UpdateDragStyle(DragCursorStyle style, int32_t eventId) in UpdateDragStyle() argument 118 return INTER_MGR_IMPL.UpdateDragStyle(style, eventId); in UpdateDragStyle() 269 int32_t InteractionManager::UpdateDragStyle(DragCursorStyle style) in UpdateDragStyle() argument 271 return DRAG_MANAGER.UpdateDragStyle(style); in UpdateDragStyle()
|
/base/global/i18n_lite/frameworks/i18n/include/ |
H A D | number_format_impl.h | 44 int DelMoreZero(const StyleData &style, int decLen, int lastLen, bool hasDec, char *&result) const;
46 std::string ConvertSignAndNum(const char *content, int len, NumberData *data, StyleData &style) const;
52 bool DealWithPercent(char *buff, char *&result, int &status, StyleData &style, int &lastLen) const;
|
/base/msdp/device_status/interfaces/innerkits/interaction/include/ |
H A D | drag_data.h | 147 bool operator == (const DragItemStyle &style) const in operator ==() 149 return foregroundColor == style.foregroundColor && in operator ==() 150 radius == style.radius && alpha == style.alpha; in operator ==() 153 bool operator!=(const DragItemStyle &style) const in operator !=() 155 return !(*this == style); in operator !=()
|
H A D | i_subscript_listener.h | 30 virtual void OnMessage(DragCursorStyle style) = 0;
|
/base/notification/distributed_notification_service/test/fuzztest/readfromparcel_fuzzer/ |
H A D | readfromparcel_fuzzer.cpp | 62 std::vector<int64_t> style;
in DoSomethingInterestingWithMyAPI() local 63 style.emplace_back(time);
in DoSomethingInterestingWithMyAPI() 64 notification.SetVibrationStyle(style);
in DoSomethingInterestingWithMyAPI()
|
/base/msdp/device_status/services/interaction/drag/include/ |
H A D | state_change_notify.h | 43 DragCursorStyle style { DragCursorStyle::DEFAULT }; 55 int32_t StyleChangedNotify(DragCursorStyle style);
|
H A D | drag_manager.h | 76 DragCursorStyle style, int32_t targetPid, int32_t targetTid, int32_t eventId = -1) override; 78 int32_t UpdateDragStyle(DragCursorStyle style) override; 184 void CtrlKeyStyleChangedNotify(DragCursorStyle style, DragAction action); 186 void HandleCtrlKeyEvent(DragCursorStyle style, DragAction action); 187 int32_t OnUpdateDragStyle(DragCursorStyle style); 189 inline std::string GetDragStyleName(DragCursorStyle style); 190 DragCursorStyle GetRealDragStyle(DragCursorStyle style);
|
/base/msdp/device_status/services/interaction/drag/src/ |
H A D | drag_manager.cpp | 456 int32_t DragManager::UpdateDragStyle(DragCursorStyle style, int32_t targetPid, int32_t targetTid, int32_t eventId) in UpdateDragStyle() argument 458 int32_t DragManager::UpdateDragStyle(DragCursorStyle style) in UpdateDragStyle() 463 GetDragStyleName(style).c_str(), eventId); in UpdateDragStyle() 473 if (style == DRAG_DATA_MGR.GetDragStyle()) { in UpdateDragStyle() 474 FI_HILOGD("Not need update drag style"); in UpdateDragStyle() 477 stateNotify_.StyleChangedNotify(GetRealDragStyle(style)); in UpdateDragStyle() 482 DRAG_DATA_MGR.SetDragStyle(style); in UpdateDragStyle() 484 FI_HILOGE("No drag instance running, can not update drag style"); in UpdateDragStyle() 487 if ((style < DragCursorStyle::DEFAULT) || (style > DragCursorStyl in UpdateDragStyle() 772 DragCursorStyle style = DRAG_DATA_MGR.GetDragStyle(); Dump() local 849 std::string style = "unknown"; GetDragCursorStyle() local 1424 HandleCtrlKeyEvent(DragCursorStyle style, DragAction action) HandleCtrlKeyEvent() argument 1442 OnUpdateDragStyle(DragCursorStyle style) OnUpdateDragStyle() argument 1472 GetDragStyleName(DragCursorStyle style) GetDragStyleName() argument 1493 GetRealDragStyle(DragCursorStyle style) GetRealDragStyle() argument 1528 CtrlKeyStyleChangedNotify(DragCursorStyle style, DragAction action) CtrlKeyStyleChangedNotify() argument [all...] |
H A D | state_change_notify.cpp | 56 int32_t StateChangeNotify::StyleChangedNotify(DragCursorStyle style) in StyleChangedNotify() argument 66 OnDragInfoNotify(info->session, info->msgId, style); in StyleChangedNotify()
|
H A D | drag_data_manager.cpp | 35 void DragDataManager::SetDragStyle(DragCursorStyle style) in SetDragStyle() argument 37 dragStyle_ = style; in SetDragStyle()
|
H A D | drag_hisysevent.cpp | 55 { DragType::UPDATE_DRAG_STYLE_FAIL, { "UPDATE_DRAG_STYLE_FAILED", "Update drag style failed"} }, 113 int32_t DragDFX::WriteUpdateDragStyle(const DragCursorStyle &style, OHOS::HiviewDFX::HiSysEvent::EventType type) in WriteUpdateDragStyle() argument 115 if (dragStyle_.find(style) == dragStyle_.end()) { in WriteUpdateDragStyle() 116 FI_HILOGE("dragStyle_ can't find the drag style"); in WriteUpdateDragStyle() 119 std::string dragStyle = dragStyle_[style]; in WriteUpdateDragStyle()
|
/base/inputmethod/imf/services/include/ |
H A D | sys_cfg_parser.h | 76 std::vector<std::string> style; member 83 auto ret = GetValue(node, GET_NAME(style), style);
|
/base/notification/distributed_notification_service/test/bechmarktest/notification_publish_test/ |
H A D | notification_publish_test.cpp | 72 std::vector<std::string> style;
in InitTextRequest() local 73 style.push_back("style");
in InitTextRequest() 74 req_.SetNotificationUserInputHistory(style);
in InitTextRequest()
|
/base/msdp/device_status/intention/drag/data/src/ |
H A D | drag_params.cpp | 107 UpdateDragStyleParam::UpdateDragStyleParam(DragCursorStyle style, int32_t eventId) in UpdateDragStyleParam() argument 108 : cursorStyle_(style), eventId_(eventId) in UpdateDragStyleParam() 119 int32_t style { -1 }; in Unmarshalling() 120 if (!parcel.ReadInt32(style) || in Unmarshalling() 121 (style < static_cast<int32_t>(DragCursorStyle::DEFAULT)) || in Unmarshalling() 122 (style > static_cast<int32_t>(DragCursorStyle::MOVE))) { in Unmarshalling() 125 cursorStyle_ = static_cast<DragCursorStyle>(style); in Unmarshalling()
|
/base/sensors/sensor/rust/utils/socket_ipc_rust_ffi/src/ |
H A D | stream_session.rs | 81 fn set_token_type(&mut self, style: i32) { in set_token_type() 82 self.token_type = style in set_token_type()
|
/base/msdp/device_status/intention/drag/client/src/ |
H A D | drag_client.cpp | 189 int32_t DragClient::UpdateDragStyle(ITunnelClient &tunnel, DragCursorStyle style, int32_t eventId) in UpdateDragStyle() argument 191 if ((style < DragCursorStyle::DEFAULT) || (style > DragCursorStyle::MOVE)) { in UpdateDragStyle() 192 FI_HILOGE("Invalid style:%{public}d", static_cast<int32_t>(style)); in UpdateDragStyle() 195 UpdateDragStyleParam param { style, eventId }; in UpdateDragStyle() 528 int32_t style = 0; in OnDragStyleChangedMessage() local 529 pkt >> style; in OnDragStyleChangedMessage() local 536 listener->OnMessage(static_cast<DragCursorStyle>(style)); in OnDragStyleChangedMessage()
|
/base/web/webview/ |
H A D | prepare.sh | 109 clang-format -style="{PointerAlignment: Right}" -i $file 117 clang-format -style=file -i $file 135 ${CLANG_FORMAT_DIR}/clang-format -style="{PointerAlignment: Right}" -i $file
|
/base/msdp/device_status/intention/prototype/include/ |
H A D | i_drag_manager.h | 81 DragCursorStyle style, int32_t targetPid, int32_t targetTid, int32_t eventId = -1) = 0; 83 virtual int32_t UpdateDragStyle(DragCursorStyle style) = 0;
|