/foundation/arkui/ace_engine/frameworks/core/components_ng/layout/ |
H A D | layout_wrapper_node.cpp | 193 auto size = layoutAlgorithm_->MeasureContent(layoutProperty_->CreateContentConstraint(), this); in Measure() local 194 if (size.has_value()) { in Measure() 195 geometryNode_->SetContentSize(size.value()); in Measure() 369 auto size = GetGeometryNode()->GetFrameSize(); in LayoutOverlay() local 380 auto translate = Alignment::GetAlignPosition(size, childSize, align) + offset; in LayoutOverlay()
|
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/ability_component/ |
H A D | ability_component_pattern.cpp | 134 auto size = host->GetGeometryNode()->GetFrameSize(); in UpdateWindowRect() local 139 rect = Rect(offset.GetX() + rect.Left(), offset.GetY() + rect.Top(), size.Width(), size.Height()); in UpdateWindowRect() 142 size.Width(), size.Height()); in UpdateWindowRect()
|
/foundation/arkui/ace_engine/frameworks/core/components/scroll/ |
H A D | render_single_child_scroll.cpp | 149 const Size& size, const Offset& childOffset, const Offset& effectOffset) in MoveChildToViewPort() 153 auto itemActualRect = Rect(childOffset, size); in MoveChildToViewPort() 162 double childSize = GetMainSize(size); in MoveChildToViewPort() 190 if (GetChildren().size() != MAX_CHILD_SIZE) { in PerformLayout() 191 LOGE("render Scroll perform layout with %{public}zu children", GetChildren().size()); in PerformLayout() 233 // Mark need force layout with parent if child size changed in semi and dialog window modal. in PerformLayout() 148 MoveChildToViewPort( const Size& size, const Offset& childOffset, const Offset& effectOffset) MoveChildToViewPort() argument
|
/foundation/arkui/ace_engine/frameworks/base/geometry/ |
H A D | matrix3.cpp | 94 if (static_cast<int32_t>(src.size()) != DIMENSION) { in MapScalars() 109 if (static_cast<int32_t>(src.size()) != DIMENSION) { in MapScalars() 169 if (static_cast<int32_t>(src.size()) != columns_) { in MapScalars() 184 if (static_cast<int32_t>(src.size()) != columns_) { in MapScalars() 226 if (static_cast<int32_t>(src.size()) != DIMENSION) { in MapScalars()
|
/foundation/arkui/ace_engine/frameworks/base/utils/ |
H A D | string_expression.cpp | 78 if (result.size() == 0) { in ReplaceSignNumber() 106 if (result.size() == 0) { in ReplaceSignNumberWithUnit() 182 bool isSingleCalc = (startPos == 0) && (endPos == formula.size() - 1); in FilterCalcSpecialString() 269 if (result.size() <= 1) { in CalculateExpImpl() 299 if (result.size() == 1 && result.back().Unit() != DimensionUnit::NONE) { in CalculateExp()
|
/foundation/arkui/ace_engine/adapter/ohos/osal/ |
H A D | ai_write_adapter.cpp | 179 std::vector<int> valueVec(value.size()); in SetArrayParam() 182 size_t size = valueVec.size(); in SetArrayParam() local 183 sptr<AAFwk::IArray> ao = new (std::nothrow) AAFwk::Array(size, AAFwk::g_IID_IInteger); in SetArrayParam() 187 for (size_t i = 0; i < size; i++) { in SetArrayParam()
|
/foundation/arkui/ace_engine/test/unittest/core/pattern/shape/ |
H A D | line_pattern_test_ng.cpp | 64 auto size = layoutAlgorithm->MeasureContent(layoutProperty->CreateContentConstraint(), nullptr); variable 65 EXPECT_EQ(size.has_value(), true); 68 frameNode->GetGeometryNode()->SetContentSize(size.value()); 188 auto size = layoutAlgorithm->MeasureContent( in MeasureContentTest() local 190 EXPECT_EQ(size.has_value(), true); in MeasureContentTest()
|
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/scroll/inner/ |
H A D | scroll_bar.h | 340 const Offset& offset, const Size& size, const Offset& lastOffset, double estimatedHeight); 387 void SetBarRegion(const Offset& offset, const Size& size); 388 void SetRectTrickRegion(const Offset& offset, const Size& size, const Offset& lastOffset, double mainScrollExtent); 389 void SetRoundTrickRegion(const Offset& offset, const Size& size, const Offset& lastOffset, double mainScrollExtent); 399 void CalcScrollBarRegion(double activeMainOffset, double activeSize, const Offset& offset, const Size& size,
|
/foundation/barrierfree/accessibility/services/aams/src/ |
H A D | accessibility_touchEvent_injector.cpp | 182 for (size_t i = 0; i < injectedEvents_.size(); i++) { in InjectEvents() 207 size_t positionSize = positions.size(); in ParseTapsEvents() 262 size_t positionSize = positions.size(); in ParseMovesEvents() 335 if (positions.size() == 0) { in ParseTouchEventsFromGesturePath() 336 HILOG_ERROR("position size is 0."); in ParseTouchEventsFromGesturePath() 339 if ((positions.size() == 1) || in ParseTouchEventsFromGesturePath()
|
/foundation/arkui/napi/test/unittest/cj_native/ |
H A D | test_ark_interop.cpp | 82 constexpr auto totalCases = std::size(origins); in TEST_F() 120 auto size = ARKTS_GetValueUtf8Size(env, jsValues[i]); in TEST_F() local 122 result.resize(size - 1); in TEST_F() 123 ARKTS_GetValueUtf8(env, jsValues[i], size - 1, result.data()); in TEST_F() 177 constexpr auto totalCases = std::size(cases); in TEST_F()
|
/foundation/arkui/ui_lite/frameworks/imgdecode/ |
H A D | cache_manager.cpp | 92 RetCode CacheManager::Init(uint16_t size) in Init() argument 94 if ((size == 0) || (size > DEFAULT_MAX_CACHE_ENTRY_NUM)) { in Init() 102 uint32_t tmpCacheSize = size * sizeof(CacheEntry); in Init() 115 size_ = size; in Init()
|
/foundation/arkui/ui_lite/interfaces/kits/common/ |
H A D | text.h | 244 * @brief Sets the font name and size. 247 * @param size Indicates the font size to set. 251 void SetFont(const char* name, uint8_t size); 253 static void SetFont(const char* name, uint8_t size, char*& destName, uint8_t& destSize); 277 * @brief Obtains the font size. 279 * @return Returns the front size. 358 * @brief Obtains the size of this text. 360 * @return Returns the text size. 522 void SetAbsoluteSizeSpan(uint16_t start, uint16_t end, uint8_t size); [all...] |
/foundation/communication/bluetooth_service/services/bluetooth/server/src/ |
H A D | bluetooth_ble_filter_matcher.cpp | 140 if (filterData.size() == 0) { in MatchesManufacturerDatas() 164 if (filterData.size() == 0) { in MatchesServiceDatas() 249 size_t length = fData.size(); in MatchesData() 251 if (vec.size() < length) { in MatchesData() 255 if (dataMask.empty() || dataMask.size() != length) { in MatchesData()
|
/foundation/graphic/graphic_3d/lume/metaobject/test/src/ |
H A D | test_utils.h | 140 if (a.size() != b.size()) { in IsEqual() 143 for (size_t i = 0; i != a.size(); ++i) { in IsEqual() 169 as->GetModifiers({}, false).size() == bs->GetModifiers({}, false).size(); in IsEqual()
|
/foundation/graphic/graphic_surface/surface/test/fuzztest/nativewindow_fuzzer/ |
H A D | nativewindow_fuzzer.cpp | 195 NativeWindowSetMetaData(nativeWindow, sequence, metaDatas.size(), metaDatas.data()); in NativeWindowFuzzTest1() 204 bool DoSomethingInterestingWithMyAPI(const uint8_t* data, size_t size) in DoSomethingInterestingWithMyAPI() argument 212 g_size = size; in DoSomethingInterestingWithMyAPI() 238 extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) in LLVMFuzzerTestOneInput() argument 241 OHOS::DoSomethingInterestingWithMyAPI(data, size); in LLVMFuzzerTestOneInput()
|
/foundation/graphic/graphic_surface/surface/test/fuzztest/bufferqueueproducer_fuzzer/ |
H A D | bufferqueueproducer_fuzzer.cpp | 145 bool DoSomethingInterestingWithMyAPI(const uint8_t* data, size_t size) in DoSomethingInterestingWithMyAPI() argument 153 g_size = size; in DoSomethingInterestingWithMyAPI() 185 for (size_t i = 0; i < sequences.size(); i++) { in DoSomethingInterestingWithMyAPI() 195 extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) in LLVMFuzzerTestOneInput() argument 198 OHOS::DoSomethingInterestingWithMyAPI(data, size); in LLVMFuzzerTestOneInput()
|
/foundation/multimedia/audio_framework/frameworks/native/opensles/src/adapter/ |
H A D | audioplayer_adapter.cpp | 184 SLresult AudioPlayerAdapter::EnqueueAdapter(SLuint32 id, const void *buffer, SLuint32 size)
in EnqueueAdapter() argument 194 bufDesc.bufLength = size;
in EnqueueAdapter() 195 bufDesc.dataLength = size;
in EnqueueAdapter() 227 SLresult AudioPlayerAdapter::GetBufferAdapter(SLuint32 id, SLuint8 **buffer, SLuint32 *size)
in GetBufferAdapter() argument 238 *size = bufferDesc.bufLength;
in GetBufferAdapter()
|
H A D | audiocapturer_adapter.cpp | 136 SLresult AudioCapturerAdapter::EnqueueAdapter(SLuint32 id, const void *buffer, SLuint32 size) in EnqueueAdapter() argument 144 bufDesc.bufLength = size; in EnqueueAdapter() 145 bufDesc.dataLength = size; in EnqueueAdapter() 174 SLresult AudioCapturerAdapter::GetBufferAdapter(SLuint32 id, SLuint8 **buffer, SLuint32 *size) in GetBufferAdapter() argument 183 *size = bufferDesc.bufLength; in GetBufferAdapter()
|
/foundation/graphic/graphic_2d/rosen/modules/render_service_base/src/animation/ |
H A D | rs_particle_noise_field.cpp | 39 const Vector2f& position, const Vector2f& direction, const Vector2f& center, const Vector2f& size) in CalculateDistanceToRectangleEdge() 45 float left = center.x_ - size.x_ * HALF; in CalculateDistanceToRectangleEdge() 46 float right = center.x_ + size.x_ * HALF; in CalculateDistanceToRectangleEdge() 47 float top = center.y_ - size.y_ * HALF; in CalculateDistanceToRectangleEdge() 48 float bottom = center.y_ + size.y_ * HALF; in CalculateDistanceToRectangleEdge() 185 p.resize(256); // 256 is the vector size 38 CalculateDistanceToRectangleEdge( const Vector2f& position, const Vector2f& direction, const Vector2f& center, const Vector2f& size) CalculateDistanceToRectangleEdge() argument
|
/foundation/graphic/graphic_3d/lume/LumeDotfield/src/render/ |
H A D | render_node_dotfield_simulation.cpp | 142 const uint32_t primitiveCount = static_cast<uint32_t>(dotfieldPrimitives.size()); in ComputeSimulate() 172 const DotfieldSimulationPushConstantStruct pc = { { dotfieldPrimitive.size.x, dotfieldPrimitive.size.y, 0, 0 }, in ComputeSimulate() 178 const uint32_t tgcX = (dotfieldPrimitive.size.x * dotfieldPrimitive.size.y + (DOTFIELD_SIMULATION_TGS - 1)) / in ComputeSimulate()
|
/foundation/graphic/graphic_3d/lume/LumeEngine/src/io/ |
H A D | rofs_filesystem.cpp | 47 const uint64_t size; member 54 ROFSMemoryFile(const uint8_t* const data, const size_t size) : data_(data), size_(size) {} in ROFSMemoryFile() argument 219 files_[move(path)] = array_view(data, static_cast<size_t>(romEntry.size)); in RoFileSystem() 244 return IFile::Ptr { new ROFSMemoryFile(it->second.data(), it->second.size()) }; in OpenFile()
|
/foundation/graphic/graphic_2d/rosen/test/render_service/render_service_base/unittest/render/ |
H A D | rs_typeface_cache_test.cpp | 46 // prepare: typeface, size, hash, MemoryOverCheck hook in HWTEST_F() 49 uint32_t size = typeface->GetSize(); in HWTEST_F() local 50 EXPECT_NE(size, 0); in HWTEST_F() 74 EXPECT_EQ(currentInfo.cpuMemory, baseInfo1.cpuMemory + size); in HWTEST_F() 81 EXPECT_EQ(currentInfo.cpuMemory, baseInfo2.cpuMemory + size); in HWTEST_F() 87 EXPECT_EQ(currentInfo.cpuMemory, baseInfo2.cpuMemory + size); in HWTEST_F()
|
/foundation/graphic/graphic_2d/rosen/modules/2d_graphics/drawing_ndk/src/ |
H A D | drawing_text_font_descriptor.cpp | 54 *num = result.size(); in OH_Drawing_MatchFontDescriptors() 103 size_t strByteLen = utf16String.size() * sizeof(char16_t); in ConvertToDrawingString() 170 if (fullNameList.size() == 0) { in OH_Drawing_GetSystemFontFullNamesByType() 177 OH_Drawing_String* drawingStringArray = new (std::nothrow)OH_Drawing_String[fullNameList.size()]; in OH_Drawing_GetSystemFontFullNamesByType() 196 array->num = fullNameList.size(); in OH_Drawing_GetSystemFontFullNamesByType()
|
/foundation/graphic/graphic_3d/lume/LumeEngine/src/os/ohos/ |
H A D | ohos_file.cpp | 142 for (int i = 0; i < static_cast<int>(dir_->fileList_.size()); i++) { in GetEntries() 253 if (std::regex_match(uri, matches, MEDIA_RES_ID_REGEX) && matches.size() == OHOS_RESOURCE_MATCH_SIZE) { in GetResourceId() 258 if (std::regex_match(uri, hapMatches, MEDIA_HAP_RES_ID_REGEX) && hapMatches.size() == OHOS_RESOURCE_MATCH_SIZE) { in GetResourceId() 268 if (std::regex_match(uri, matches, MEDIA_HAP_RES_PATH_REGEX) && matches.size() == OHOS_RESOURCE_MATCH_SIZE) { in GetResourceId() 278 if (std::regex_match(uri, matches, MEDIA_RES_NAME_REGEX) && matches.size() == OHOS_RESOURCE_MATCH_SIZE) { in GetResourceName()
|
/foundation/graphic/graphic_2d/frameworks/opengl_wrapper/test/fuzztest/eglwrapperdisplay_fuzzer/ |
H A D | eglwrapperdisplay_fuzzer.cpp | 32 * describe: get data from outside untrusted data(data_) which size is according to sizeof(T) 51 bool DoSomethingInterestingWithMyAPI(const uint8_t* data, size_t size) in DoSomethingInterestingWithMyAPI() argument 53 if (data == nullptr || size < 0) { in DoSomethingInterestingWithMyAPI() 59 size_ = size; in DoSomethingInterestingWithMyAPI() 185 extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) in LLVMFuzzerTestOneInput() argument 188 OHOS::DoSomethingInterestingWithMyAPI(data, size); in LLVMFuzzerTestOneInput()
|