/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/select_overlay/ |
D | select_overlay_content_modifier.cpp | 64 if (isHiddenHandle_->Get()) { in onDraw() 68 if (!inShowArea_->Get()) { in onDraw() 75 RSRect clipInnerRect = RSRect(viewPort_->Get().GetX(), viewPort_->Get().GetY(), in onDraw() 76 …viewPort_->Get().Width() + viewPort_->Get().GetX(), viewPort_->Get().Height() + viewPort_->Get().G… in onDraw() 79 if (isSingleHandle_->Get()) { in onDraw() 81 if (firstHandleIsShow_->Get()) { in onDraw() 82 PaintHandle(canvas, firstHandle_->Get(), false, isHandleLineShow_->Get()); in onDraw() 83 } else if (secondHandleIsShow_->Get()) { in onDraw() 84 PaintHandle(canvas, secondHandle_->Get(), false, isHandleLineShow_->Get()); in onDraw() 87 if (firstHandleIsShow_->Get()) { in onDraw() [all …]
|
D | select_overlay_modifier.cpp | 192 …canvas.Rotate(rotationAngle_->Get(), menuOptionOffset_->Get().GetX(), menuOptionOffset_->Get().Get… in DrawbBackArrow() 195 iconColor = iconColor.BlendOpacity(circlesAndBackArrowOpacity_->Get()); in DrawbBackArrow() 200 pen.SetWidth(pointRadius_->Get() * 2); in DrawbBackArrow() 203 auto coordinate = menuOptionOffset_->Get() + circleOffset_[i + 1]->Get(); in DrawbBackArrow() 204 auto endOffset = menuOptionOffset_->Get() + lineEndOffset_[i]->Get(); in DrawbBackArrow() 210 …auto maskOffset = menuOptionOffset_->Get() + OffsetF(-sideWidth / 2.0, MASK_OFFSET_Y.ConvertToPx()… in DrawbBackArrow() 217 pen.SetWidth(pointRadius_->Get() * 2); in DrawbBackArrow() 220 auto coordinate = menuOptionOffset_->Get() + circleOffset_[3]->Get(); in DrawbBackArrow() 221 auto endOffset = menuOptionOffset_->Get() + lineEndOffset_[2]->Get(); in DrawbBackArrow() 232 iconColor = iconColor.BlendOpacity(circlesAndBackArrowOpacity_->Get()); in DrawbCircles() [all …]
|
/foundation/arkui/ace_engine/frameworks/core/components_ng/render/adapter/ |
D | graphic_modifier.cpp | 55 radii[SkRRect::kUpperLeft_Corner].set(radius_->Get().x_, radius_->Get().x_), in MakeRRect() 56 radii[SkRRect::kUpperRight_Corner].set(radius_->Get().y_, radius_->Get().y_); in MakeRRect() 57 radii[SkRRect::kLowerRight_Corner].set(radius_->Get().z_, radius_->Get().z_); in MakeRRect() 58 radii[SkRRect::kLowerLeft_Corner].set(radius_->Get().w_, radius_->Get().w_); in MakeRRect() 69 radii[RSRoundRect::TOP_LEFT_POS] = {radius_->Get().x_, radius_->Get().x_}; in MakeRRect() 70 radii[RSRoundRect::TOP_RIGHT_POS] = {radius_->Get().y_, radius_->Get().y_}; in MakeRRect() 71 radii[RSRoundRect::BOTTOM_RIGHT_POS] = {radius_->Get().z_, radius_->Get().z_}; in MakeRRect() 72 radii[RSRoundRect::BOTTOM_LEFT_POS] = {radius_->Get().w_, radius_->Get().w_}; in MakeRRect() 83 SkiaDecorationPainter::PaintGrayScale(rRect, context.canvas, property_->Get()); in Draw() 85 DrawingDecorationPainter::PaintGrayScale(rRect, context.canvas, property_->Get()); in Draw() [all …]
|
/foundation/distributeddatamgr/kv_store/frameworks/common/test/ |
D | lru_bucket_test.cpp | 65 ASSERT_TRUE(!bucket_.Get("test_0", value)); 66 ASSERT_TRUE(bucket_.Get("test_6", value)); 70 ASSERT_TRUE(bucket_.Get("test_6", value)); 89 ASSERT_TRUE(!bucket_.Get("test_0", value)); 90 ASSERT_TRUE(bucket_.Get("test_10", value)); 109 ASSERT_TRUE(!bucket_.Get("test_10", value)); 125 ASSERT_TRUE(bucket_.Get("test_9", value)); 138 ASSERT_TRUE(bucket_.Get("test_0", value)); 142 ASSERT_TRUE(bucket_.Get("test_0", value)); 155 ASSERT_TRUE(bucket_.Get("test_5", value)); [all …]
|
/foundation/communication/dsoftbus/tests/core/discovery/ipc/ |
D | remote_object_mock.cpp | 62 sptr<RemoteObjectMock> RemoteObjectMock::Get() in Get() function in OHOS::RemoteObjectMock 103 Get()->code_ = code; in ActionOfSendRequestForOnDeviceFound() 104 Get()->descriptor_ = data.ReadInterfaceToken(); in ActionOfSendRequestForOnDeviceFound() 105 …return memcpy_s(&Get()->deviceInfo_, sizeof(DeviceInfo), data.ReadBuffer(sizeof(DeviceInfo)), size… in ActionOfSendRequestForOnDeviceFound() 112 Get()->code_ = code; in ActionOfSendRequestForOnDiscoveryFailed() 113 Get()->descriptor_ = data.ReadInterfaceToken(); in ActionOfSendRequestForOnDiscoveryFailed() 114 Get()->subscribeId_ = data.ReadInt32(); in ActionOfSendRequestForOnDiscoveryFailed() 115 Get()->reason_ = data.ReadInt32(); in ActionOfSendRequestForOnDiscoveryFailed() 123 Get()->code_ = code; in ActionOfSendRequestForOnDiscoverySuccess() 124 Get()->descriptor_ = data.ReadInterfaceToken(); in ActionOfSendRequestForOnDiscoverySuccess() [all …]
|
/foundation/window/window_manager/dm/test/unittest/ |
D | display_manager_adapter_test.cpp | 57 …sptr<DisplayInfo> info = SingletonContainer::Get<DisplayManagerAdapter>().GetDisplayInfo(DISPLAY_I… 68 …sptr<CutoutInfo> info = SingletonContainer::Get<DisplayManagerAdapter>().GetCutoutInfo(DISPLAY_ID_… 80 SingletonContainer::Get<ScreenManagerAdapter>().GetScreenSupportedColorGamuts(0, colorGamuts); 91 DMError err = SingletonContainer::Get<ScreenManagerAdapter>().SetScreenColorGamut(0, -1); 103 … DMError err = SingletonContainer::Get<ScreenManagerAdapter>().GetScreenColorGamut(0, colorGamut); 115 DMError err = SingletonContainer::Get<ScreenManagerAdapter>().GetScreenGamutMap(0, gamutMap); 126 …DMError err = SingletonContainer::Get<ScreenManagerAdapter>().SetScreenGamutMap(0, GAMUT_MAP_CONST… 137 DMError err = SingletonContainer::Get<ScreenManagerAdapter>().SetScreenColorTransform(0); 149 bool ret = SingletonContainer::Get<DisplayManagerAdapter>().SetFreeze(displayIds, false); 160 …auto info = SingletonContainer::Get<ScreenManagerAdapter>().GetScreenGroupInfoById(SCREEN_ID_INVAL… [all …]
|
/foundation/communication/dsoftbus/tests/core/discovery/manager/unittest/ |
D | coap_mock.cpp | 25 return CoapMock::Get()->DiscCoapInit(callback); in DiscCoapInit() 35 return Get()->Publish(option); in CoapPublish() 40 return Get()->StartScan(option); in CoapStartScan() 45 return CoapMock::Get()->Unpublish(option); in CoapUnpublish() 50 return Get()->StopScan(option); in CoapStopScan() 55 return Get()->StartAdvertise(option); in CoapStartAdvertise() 60 return Get()->Subscribe(option); in CoapSubscribe() 65 return Get()->Unsubscribe(option); in CoapUnsubscribe() 70 return Get()->StopAdvertise(option); in CoapStopAdvertise() 75 Get()->LinkStatusChanged(status); in CoapLinkStatusChanged() [all …]
|
D | ble_mock.cpp | 25 return BleMock::Get()->DiscBleInit(callback); in DiscBleInit() 35 return Get()->Publish(option); in BlePublish() 40 return Get()->StartScan(option); in BleStartScan() 45 return Get()->Unpublish(option); in BleUnpublish() 50 return Get()->StopScan(option); in BleStopScan() 55 return Get()->StartAdvertise(option); in BleStartAdvertise() 60 return Get()->Subscribe(option); in BleSubscribe() 65 return Get()->Unsubscribe(option); in BleUnsubscribe() 70 return Get()->StopAdvertise(option); in BleStopAdvertise() 75 Get()->LinkStatusChanged(status); in BleLinkStatusChanged() [all …]
|
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/slider/ |
D | slider_content_modifier.cpp | 133 auto trackBorderRadius = trackBorderRadius_->Get(); in DrawBackground() 137 brush.SetColor(ToRSColor(trackBackgroundColor_->Get())); in DrawBackground() 147 if (!isShowStep_->Get()) { in DrawStep() 151 auto stepSize = stepSize_->Get(); in DrawStep() 152 auto stepColor = stepColor_->Get(); in DrawStep() 153 auto backStart = backStart_->Get(); in DrawStep() 154 auto backEnd = backEnd_->Get(); in DrawStep() 155 auto stepRatio = stepRatio_->Get(); in DrawStep() 194 if (!NearEqual(selectStart_->Get().GetX(), selectEnd_->Get().GetX(), HALF) || in DrawSelect() 195 !NearEqual(selectStart_->Get().GetY(), selectEnd_->Get().GetY(), HALF)) { in DrawSelect() [all …]
|
/foundation/graphic/graphic_2d/rosen/modules/texgine/src/opentype_parser/ |
D | opentype_basic_type.h | 27 const std::string Get() const; 32 int16_t Get() const; 37 uint16_t Get() const; 42 int32_t Get() const; 47 uint32_t Get() const; 52 float Get() const;
|
D | cmap_parser.cpp | 44 reinterpret_cast<const char *>(data) + subtableOffset.Get()); in GetSubtable() 66 return segCountX2.Get() / SEG_SIZE; in GetSegCount() 114 for (auto i = 0; i < cmap.numTables.Get(); i++) { in Parse() 117 if (subtable.format.Get() == FORMAT4) { in Parse() 118 auto offset = record.subtableOffset.Get(); in Parse() 126 if (subtable.format.Get() == FORMAT12) { in Parse() 127 auto offset = record.subtableOffset.Get(); in Parse() 165 uint32_t end = endCodes[i].Get(); in ParseFormat4() 166 uint32_t start = startCodes[i].Get(); in ParseFormat4() 171 uint32_t idRangeOffset = idRangeOffsets[i].Get(); in ParseFormat4() [all …]
|
D | opentype_basic_type.cpp | 29 const std::string Tag::Get() const in Get() function in OHOS::Rosen::TextEngine::OpenTypeBasicType::Tag 42 int16_t Int16::Get() const in Get() function in OHOS::Rosen::TextEngine::OpenTypeBasicType::Int16 51 uint16_t Uint16::Get() const in Get() function in OHOS::Rosen::TextEngine::OpenTypeBasicType::Uint16 61 int32_t Int32::Get() const in Get() function in OHOS::Rosen::TextEngine::OpenTypeBasicType::Int32 73 uint32_t Uint32::Get() const in Get() function in OHOS::Rosen::TextEngine::OpenTypeBasicType::Uint32 83 float Fixed::Get() const in Get() function in OHOS::Rosen::TextEngine::OpenTypeBasicType::Fixed 85 return data.Get() / MAX_NUM; in Get()
|
D | name_table_parser.cpp | 34 LOGSO_FUNC_LINE(INFO) << "nameTable size:" << size_ << ", version:" << nameTable.version.Get(); in Dump() 35 auto count = nameTable.count.Get(); in Dump() 36 auto strOffset = data_ + nameTable.storageOffset.Get(); in Dump() 38 auto len = nameTable.nameRecord[i].length.Get(); in Dump() 42 auto offset = nameTable.nameRecord[i].stringOffset.Get(); in Dump() 44 auto nameId = nameTable.nameRecord[i].nameId.Get(); in Dump()
|
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/tabs/ |
D | tab_bar_modifier.cpp | 50 if ((!hasIndicator_ || hasIndicator_->Get()) && !NearZero(indicator_.Height())) { in onDraw() 116 if (GreatNotEqual(indicatorHeight_->Get(), 0.0f)) { in PaintIndicator() 117 indicator.SetHeight(indicatorHeight_->Get()); in PaintIndicator() 121 indicator.SetWidth(indicatorWidth_->Get()); in PaintIndicator() 122 indicator.SetLeft(indicatorLeft_->Get()); in PaintIndicator() 123 if (GreatNotEqual(indicatorMarginTop_->Get(), 0.0f)) { in PaintIndicator() 124 indicator.SetTop(indicatorTop_->Get() + indicatorMarginTop_->Get()); in PaintIndicator() 126 indicator.SetTop(indicatorTop_->Get()); in PaintIndicator() 131 brush.SetColor(ToRSColor(indicatorColor_->Get())); in PaintIndicator() 134 if (indicatorBorderRadius_->Get() > 0) { in PaintIndicator() [all …]
|
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/checkboxgroup/ |
D | checkboxgroup_modifier.cpp | 95 if (static_cast<CheckBoxGroupPaintProperty::SelectStatus>(status_->Get()) == in PaintCheckBox() 100 if (static_cast<UIStatus>(uiStatus_->Get()) == UIStatus::OFF_TO_ON || in PaintCheckBox() 101 static_cast<UIStatus>(uiStatus_->Get()) == UIStatus::PART_TO_ON) { in PaintCheckBox() 102 brush.SetColor(ToRSColor(color->Get())); in PaintCheckBox() 104 pen.SetColor(ToRSColor(pointColor_->Get())); in PaintCheckBox() 105 if (!enabled_->Get()) { in PaintCheckBox() 106 …brush.SetColor(ToRSColor(color->Get().BlendOpacity(static_cast<float>(DISABLED_ALPHA) / ENABLED_AL… in PaintCheckBox() 112 pen.SetColor(ToRSColor(inactiveColor_->Get())); in PaintCheckBox() 113 if (!enabled_->Get()) { in PaintCheckBox() 117 …ToRSColor(inactiveColor_->Get().BlendOpacity(static_cast<float>(DISABLED_ALPHA) / ENABLED_ALPHA))); in PaintCheckBox() [all …]
|
/foundation/distributeddatamgr/relational_store/frameworks/native/rdb/src/ |
D | value_object.cpp | 113 auto ret = Get(value); in GetInt() 120 return Get(val); in GetLong() 125 return Get(val); in GetDouble() 130 return Get(val); in GetBool() 135 if (Get(val) == 0) { in GetString() 140 if (Get(ftmp) == 0) { in GetString() 146 if (Get(itmp) == 0) { in GetString() 152 if (Get(btmp) == 0) { in GetString() 161 return Get(val); in GetBlob() 166 return Get(val); in GetAsset() [all …]
|
/foundation/window/window_manager/wm/src/ |
D | window_manager_agent.cpp | 25 SingletonContainer::Get<WindowManager>().UpdateFocusChangeInfo(focusChangeInfo, focused); in UpdateFocusChangeInfo() 30 SingletonContainer::Get<WindowManager>().UpdateSystemBarRegionTints(displayId, tints); in UpdateSystemBarRegionTints() 36 SingletonContainer::Get<WindowManager>().NotifyAccessibilityWindowInfo(infos, type); in NotifyAccessibilityWindowInfo() 41 SingletonContainer::Get<WindowManager>().UpdateWindowVisibilityInfo(visibilityInfos); in UpdateWindowVisibilityInfo() 46 … SingletonContainer::Get<WindowManager>().UpdateCameraFloatWindowStatus(accessTokenId, isShowing); in UpdateCameraFloatWindowStatus() 51 SingletonContainer::Get<WindowManager>().NotifyWaterMarkFlagChangedResult(showWaterMark); in NotifyWaterMarkFlagChangedResult() 56 SingletonContainer::Get<WindowManager>().NotifyGestureNavigationEnabledResult(enable); in NotifyGestureNavigationEnabledResult()
|
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/radio/ |
D | radio_paint_method.cpp | 125 if (isOnAnimationFlag_->Get()) { in UpdateIsOnAnimatableProperty() 181 if (uiStatus_->Get() == static_cast<int32_t>(UIStatus::SELECTED)) { in PaintRadio() 182 if (!enabled_->Get()) { in PaintRadio() 184 … ToRSColor(pointColor_->Get().BlendOpacity(static_cast<float>(DISABLED_ALPHA) / ENABLED_ALPHA))); in PaintRadio() 186 brush.SetColor(ToRSColor(pointColor_->Get())); in PaintRadio() 188 if (!NearZero(pointScale_->Get())) { in PaintRadio() 191 … canvas.DrawCircle(RSPoint(centerX, centerY), outCircleRadius * pointScale_->Get() + shadowWidth_); in PaintRadio() 194 canvas.DrawCircle(RSPoint(centerX, centerY), outCircleRadius * pointScale_->Get()); in PaintRadio() 197 if (!enabled_->Get()) { in PaintRadio() 203 if (!NearZero(ringPointScale_->Get())) { in PaintRadio() [all …]
|
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/text_field/ |
D | text_field_overlay_modifier.cpp | 67 PaintEdgeEffect(frameSize_->Get(), context.canvas); in onDraw() 89 pen.SetColor(ToRSColor(underlineColor_->Get())); in PaintUnderline() 90 pen.SetWidth(underlineWidth_->Get()); in PaintUnderline() 114 brush.SetColor(ToRSColor(selectedColor_->Get())); in PaintSelection() 116 auto paintOffset = contentOffset_->Get() - OffsetF(0.0f, textFieldPattern->GetBaseLineOffset()); in PaintSelection() 121 if (showCounter_->Get() && textFieldPattern->GetCounterParagraph() && in PaintSelection() 123 …clipRectHeight = paintOffset.GetY() + contentSize_->Get().Height() - textFieldPattern->GetCountHei… in PaintSelection() 125 clipRectHeight = paintOffset.GetY() + contentSize_->Get().Height(); in PaintSelection() 130 … paintOffset.GetX(), paintOffset.GetY(), paintOffset.GetX() + contentSize_->Get().Width() + in PaintSelection() 134 … clipInnerRect = RSRect(paintOffset.GetX(), 0.0f, paintOffset.GetX() + contentSize_->Get().Width(), in PaintSelection() [all …]
|
D | text_field_content_modifier.cpp | 66 auto offset = contentOffset_->Get(); in onDraw() 67 …auto passwordIconCanvasImage = textObscured_->Get() ? textFieldPattern->GetHidePasswordIconCanvasI… in onDraw() 71 auto contentSize = contentSize_->Get(); in onDraw() 73 auto contentOffset = contentOffset_->Get(); in onDraw() 86 if (layoutProperty->GetShowUnderlineValue(false) && showErrorState_->Get()) { in onDraw() 88 } else if (textFieldPattern->NeedShowPasswordIcon() && showErrorState_->Get()) { in onDraw() 90 } else if (showErrorState_->Get()) { in onDraw() 98 if (showCounter_->Get() && counterParagraph && !textFieldPattern->GetIsCounterIdealHeight()) { in onDraw() 109 …&canvas, textRectX_->Get(), textFieldPattern->IsTextArea() ? textRectY_->Get() : contentOffset.Get… in onDraw() 112 if (showCounter_->Get() && counterParagraph) { in onDraw() [all …]
|
/foundation/distributeddatamgr/relational_store/test/native/rdb/unittest/ |
D | rdb_step_result_get_row_test.cpp | 111 int idValue = rowEntity.Get("id"); 114 int idValueByIndex = rowEntity.Get(0); 149 int idValue = rowEntity.Get("id"); 152 int idValueByIndex = rowEntity.Get(0); 187 int idValue = rowEntity.Get("id"); 188 std::string data1Value = rowEntity.Get("data1"); 189 int data2Value = rowEntity.Get("data2"); 190 double data3Value = rowEntity.Get("data3"); 191 std::vector<uint8_t> data4Value = rowEntity.Get("data4"); 192 int data5Value = rowEntity.Get("data5"); [all …]
|
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/toggle/ |
D | switch_modifier.h | 44 PaintSwitch(canvas, offset_->Get(), size_->Get()); in onDraw() 70 …animatableBoardColor_->Set(isSelect_->Get() ? LinearColor(userActiveColor_) : LinearColor(inactive… in UpdateAnimatableProperty() 71 … pointOffset_->Set(isSelect_->Get() ? size_->Get().Width() - size_->Get().Height() : 0.0f); in UpdateAnimatableProperty() 78 …animatableBoardColor_->Set(isSelect_->Get() ? LinearColor(userActiveColor_) : LinearColor(inactive… in UpdateAnimatableProperty() 86 newPointOffset = isSelect_->Get() ? size_->Get().Width() - size_->Get().Height() : 0.0f; in UpdateAnimatableProperty() 89 … dragOffsetX_->Get() - offset_->Get().GetX(), 0.0f, size_->Get().Width() - size_->Get().Height()); in UpdateAnimatableProperty() 112 …animatableBoardColor_->Set(isSelect_->Get() ? LinearColor(userActiveColor_) : LinearColor(inactive… in SetUserActiveColor()
|
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/divider/ |
D | divider_modifier.cpp | 44 LineCap lineCap = LineCap(lineCap_->Get()); in onDraw() 47 … strokeWidth_->Get(), dividerLength_->Get(), vertical_->Get(), color_->Get().ToColor(), lineCap); in onDraw() 48 dividerPainter.DrawLine(context.canvas, offset_->Get()); in onDraw()
|
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/text/ |
D | text_content_modifier.cpp | 173 auto contentSize = contentSize_->Get(); in onDraw() 174 auto contentOffset = contentOffset_->Get(); in onDraw() 175 if (clip_ && clip_->Get() && in onDraw() 177 NearEqual(fontSize_.value().Value(), fontSizeFloat_->Get()))) { in onDraw() 187 if (clip_ && clip_->Get()) { in onDraw() 217 Color fillColor = Color(animatableTextColor_->Get().GetValue()); in DrawObscuration() 224 float fontSize = fontSizeFloat_->Get(); in DrawObscuration() 235 … maxLineCount += LessOrEqual(drawObscuredRects_[i].Bottom(), contentSize_->Get().Height()) ? 1 : 0; in DrawObscuration() 238 … maxLineCount += LessOrEqual(drawObscuredRects_[i].Bottom(), contentSize_->Get().Height()) ? 1 : 0; in DrawObscuration() 246 …float offsetY = (contentSize_->Get().Height() - (obscuredLineCount * fontSize)) / (obscuredLineCou… in DrawObscuration() [all …]
|
/foundation/multimedia/histreamer/tests/ut/ |
D | TestMeta.cpp | 39 ASSERT_TRUE(meta.Get<Tag::AUDIO_CHANNELS>(outChannels)); 47 ASSERT_FALSE(meta.Get<Tag::AUDIO_CHANNELS>(canNotGet)); 56 ASSERT_TRUE(meta.Get<Tag::MEDIA_TITLE>(outArtist)); 66 ASSERT_TRUE(meta.Get<Tag::MEDIA_ARTIST>(out)); 76 ASSERT_FALSE(meta.Get<Tag::MEDIA_BITRATE>(bitRate)); 85 ASSERT_TRUE(meta.Get<Tag::AUDIO_CHANNELS>(out)); 88 ASSERT_FALSE(meta.Get<Tag::AUDIO_CHANNELS>(out)); 102 ASSERT_FALSE(meta.Get<Tag::MEDIA_TITLE>(out)); 104 ASSERT_FALSE(meta.Get<Tag::MEDIA_ALBUM>(out)); 107 ASSERT_FALSE(meta.Get<Tag::AUDIO_CHANNELS>(oChannels)); [all …]
|