/ohos5.0/drivers/peripheral/pin_auth/test/unittest/pin_auth/adaptor/src/ |
H A D | buffer_test.cpp | 93 (void)memset_s(data->buf, data->maxSize, 1, data->maxSize); 94 data->contentSize = data->maxSize; 130 (void)memset_s(data->buf, data->maxSize, 1, data->maxSize); 131 data->contentSize = data->maxSize; 158 (void)memset_s(data->buf, data->maxSize, 1, data->maxSize); 159 data->contentSize = data->maxSize; 220 (void)memset_s(buffer3->buf, buffer3->maxSize, 1, buffer3->maxSize); 225 (void)memset_s(buffer4->buf, buffer4->maxSize, 2, buffer4->maxSize); 234 (void)memset_s(buffer5->buf, buffer5->maxSize, 1, buffer5->maxSize); 251 (void)memset_s(buffer1->buf, buffer1->maxSize, 1, buffer1->maxSize); [all …]
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/property/ |
H A D | layout_constraint.inl | 39 maxSize.SetHeight(maxSize.Width() / ratio); 47 maxSize.SetWidth(maxSize.Height() * ratio); 54 maxSize.SetHeight(maxSize.Width() / ratio); 61 maxSize.SetWidth(maxSize.Height() * ratio); 112 maxSize.SetHeight(maxSize.Width() / ratio); 118 maxSize.SetWidth(maxSize.Height() * ratio); 132 maxSize.SetHeight(maxSize.Width() / ratio); 139 maxSize.SetWidth(maxSize.Height() * ratio); 145 if (maxSize.Width() < maxSize.Height()) { 147 maxSize.SetHeight(maxSize.Width() / ratio); [all …]
|
H A D | layout_constraint.h | 32 SizeT<T> maxSize { Infinity<T>(), Infinity<T>() }; 98 …(maxSize == layoutConstraint.maxSize) && (percentReference == layoutConstraint.percentReference) && 112 CompareWithInfinityCheck(maxSize, layoutConstraint.maxSize) && in EqualWithoutPercentWidth() 122 CompareWithInfinityCheck(maxSize, layoutConstraint.maxSize) && in EqualWithoutPercentHeight() 170 if (maxSize == size) { in UpdateMaxSizeWithCheck() 173 return maxSize.UpdateSizeWhenSmaller(size); in UpdateMaxSizeWithCheck() 178 if (maxSize == size) { in UpdateMaxWidthWithCheck() 181 return maxSize.UpdateWidthWhenSmaller(size); in UpdateMaxWidthWithCheck() 186 if (maxSize == size) { in UpdateMaxHeightWithCheck() 189 return maxSize.UpdateHeightWhenSmaller(size); in UpdateMaxHeightWithCheck()
|
/ohos5.0/drivers/peripheral/user_auth/test/unittest/base_test/src/ |
H A D | buffer_test.cpp | 82 .maxSize = 0, 107 (void)memset_s(data->buf, data->maxSize, BUFFER_LEN_1, data->maxSize); 108 data->contentSize = data->maxSize; 145 (void)memset_s(data->buf, data->maxSize, BUFFER_LEN_1, data->maxSize); 146 data->contentSize = data->maxSize; 202 (void)memset_s(buffer3->buf, buffer3->maxSize, BUFFER_LEN_1, buffer3->maxSize); 207 (void)memset_s(buffer4->buf, buffer4->maxSize, BUFFER_LEN_2, buffer4->maxSize); 216 (void)memset_s(buffer5->buf, buffer5->maxSize, BUFFER_LEN_1, buffer5->maxSize); 233 (void)memset_s(buffer1->buf, buffer1->maxSize, BUFFER_LEN_1, buffer1->maxSize); 244 res->contentSize = res->maxSize; [all …]
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/calendar/ |
H A D | calendar_layout_algorithm.cpp | 43 return contentConstraint.maxSize; in MeasureContent() 49 auto maxSize = contentConstraint.maxSize; in MeasureContent() local 51 if (GreaterOrEqualToInfinity(maxSize.Width()) || GreaterOrEqualToInfinity(maxSize.Height())) { in MeasureContent() 54 …std::max(maxSize.Width(), calendarMinSize.Width()), std::max(minSize.Height(), calendarMinSize.Hei… in MeasureContent() 57 …std::max(maxSize.Width(), calendarMinSize.Width()), std::max(maxSize.Height(), calendarMinSize.Hei… in MeasureContent() 59 if (GreaterOrEqualToInfinity(maxSize.Width()) || GreaterOrEqualToInfinity(maxSize.Height())) { in MeasureContent() 68 auto constrainSize = contentConstraint.Constrain(maxSize); in MeasureContent() 71 return maxSize; in MeasureContent()
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/dialog_tween/ |
H A D | render_dialog_tween.cpp | 314 auto maxSize = innerLayout.GetMaxSize(); in PerformLayout() local 322 innerLayout.SetMaxSize(maxSize); in PerformLayout() 325 SetLayoutSize(maxSize); in PerformLayout() 334 SetLayoutSize(maxSize); in PerformLayout() 341 auto maxSize = innerLayout.GetMaxSize(); in ComputeInnerLayoutParam() local 354 innerLayout.SetMaxSize(Size(maxSize.Width(), maxSize.Height())); in ComputeInnerLayoutParam() 416 …topLeftPoint = Offset(maxSize.Width() - childSize.Width(), maxSize.Height() - childSize.Height()) … in ComputeChildPosition() 427 …Offset((maxSize.Width() - childSize.Width()) / 2.0, (maxSize.Height() - childSize.Height()) / 2.0); in ComputeChildPosition() 446 … Offset((maxSize.Width() - childSize.Width()) / 2.0, maxSize.Height() - childSize.Height()); in SetAlignmentSwitch() 459 … Offset(maxSize.Width() - childSize.Width(), (maxSize.Height() - childSize.Height()) / 2.0); in SetAlignmentSwitch() [all …]
|
/ohos5.0/drivers/peripheral/user_auth/hdi_service/adaptor/src/ |
H A D | buffer.c | 28 (buffer->maxSize == 0) || (buffer->maxSize > MAX_BUFFER_SIZE) || in IsBufferValid() 29 (buffer->contentSize > buffer->maxSize)) { in IsBufferValid() 36 Buffer GetTmpBuffer(uint8_t *buf, uint32_t contentSize, uint32_t maxSize) in GetTmpBuffer() argument 41 .maxSize = maxSize, in GetTmpBuffer() 80 buffer->maxSize = size; in CreateBufferBySize() 111 buffer->maxSize = dataSize; in CreateBufferByData() 121 if (memset_s(buffer->buf, buffer->maxSize, 0, buffer->maxSize) != EOK) { in DestoryBuffer() 127 buffer->maxSize = 0; in DestoryBuffer() 140 Buffer *copyBuffer = CreateBufferBySize(buffer->maxSize); in CopyBuffer() 192 Buffer *merged = CreateBufferBySize(buffer1->maxSize + buffer2->maxSize); in MergeBuffers() [all …]
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/dialog/ |
H A D | dialog_layout_algorithm.cpp | 127 auto maxSize = layoutConstraint->maxSize; in Measure() local 132 UpdateChildMaxSizeHeight(maxSize); in Measure() 301 auto maxSize = innerLayout.maxSize; in ComputeInnerLayoutSizeParam() local 377 auto maxSize = innerLayout.maxSize; in ComputeInnerLayoutParam() local 398 innerLayout.maxSize = SizeF(width, maxSize.Height()); in ComputeInnerLayoutParam() 402 … innerLayout.maxSize = SizeF(width, maxSize.Height() * DIALOG_HEIGHT_RATIO_FOR_LANDSCAPE); in ComputeInnerLayoutParam() 405 innerLayout.maxSize = SizeF(width, maxSize.Height() * DIALOG_HEIGHT_RATIO); in ComputeInnerLayoutParam() 409 innerLayout.maxSize = SizeF(width, maxSize.Height() * DIALOG_HEIGHT_RATIO_FOR_CAR); in ComputeInnerLayoutParam() 412 innerLayout.maxSize = SizeF(width, maxSize.Height() * DIALOG_HEIGHT_RATIO); in ComputeInnerLayoutParam() 709 auto maxSize = isHostWindowAlign ? hostWindowRect_.GetSize() : layoutConstraint->maxSize; in ComputeChildPosition() local [all …]
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/text/ |
H A D | text_adapt_font_sizer.cpp | 39 auto maxSize = GetMaxMeasureSize(contentConstraint); in AdaptMaxFontSize() local 40 GetSuitableSize(maxSize, layoutWrapper); in AdaptMaxFontSize() 45 if (IsAdaptExceedLimit(maxSize)) { in AdaptMaxFontSize() 60 if (!IsAdaptExceedLimit(maxSize)) { in AdaptMaxFontSize() 84 auto maxSize = GetMaxMeasureSize(contentConstraint); in AdaptMinFontSize() local 85 GetSuitableSize(maxSize, layoutWrapper); in AdaptMinFontSize() 91 if (!DidExceedMaxLines(maxSize)) { in AdaptMinFontSize() 121 auto maxSize = contentConstraint.selfIdealSize; in GetMaxMeasureSize() local 122 maxSize.UpdateIllegalSizeWithCheck(contentConstraint.maxSize); in GetMaxMeasureSize() 123 return maxSize.ConvertToSizeT(); in GetMaxMeasureSize() [all …]
|
/ohos5.0/drivers/peripheral/pin_auth/hdi_service/adaptor/src/ |
H A D | buffer.c | 26 (buffer->maxSize == 0) || (buffer->maxSize > MAX_BUFFER_SIZE) || in IsBufferValid() 27 (buffer->contentSize > buffer->maxSize)) { in IsBufferValid() 34 Buffer GetTmpBuffer(uint8_t *buf, uint32_t contentSize, uint32_t maxSize) in GetTmpBuffer() argument 39 .maxSize = maxSize, in GetTmpBuffer() 78 buffer->maxSize = size; in CreateBufferBySize() 109 buffer->maxSize = dataSize; in CreateBufferByData() 122 if (memcpy_s(buffer->buf, buffer->maxSize, buf, bufSize) != EOK) { in InitBuffer() 135 if (memset_s(buffer->buf, buffer->maxSize, 0, buffer->maxSize) != EOK) { in DestroyBuffer() 141 buffer->maxSize = 0; in DestroyBuffer() 154 Buffer *copyBuffer = CreateBufferBySize(buffer->maxSize); in CopyBuffer() [all …]
|
/ohos5.0/foundation/communication/wifi/wifi/relation_services/wifi_hal_service/ |
H A D | wifi_hal_crpc_chip.c | 52 int maxSize = 0; in RpcGetWifiChipIds() local 53 if (ReadInt(context, &maxSize) < 0) { in RpcGetWifiChipIds() 56 if (maxSize <= 0) { in RpcGetWifiChipIds() 67 WriteInt(context, maxSize); in RpcGetWifiChipIds() 68 for (int i = 0; i < maxSize; ++i) { in RpcGetWifiChipIds() 243 int maxSize = 0; in RpcGetSupportedComboModes() local 244 …if (ReadInt(context, &maxSize) < 0 || maxSize <= 0 || maxSize > WIFI_IDL_INTERFACE_SUPPORT_COMBINA… in RpcGetSupportedComboModes() 255 WriteInt(context, maxSize); in RpcGetSupportedComboModes() 303 int maxSize = 0; in RpcRequestFirmwareDebugDump() local 304 if (ReadInt(context, &maxSize) < 0 || maxSize <= 0) { in RpcRequestFirmwareDebugDump() [all …]
|
H A D | wifi_hal_crpc_sta.c | 109 int maxSize = 0; in RpcGetScanInfos() local 114 if (maxSize > 0 && maxSize <= WIFI_IDL_GET_MAX_SCAN_INFO) { in RpcGetScanInfos() 320 int maxSize = 0; in RpcGetDeviceMacAddress() local 321 if (ReadInt(context, &maxSize) < 0 || maxSize <= 0) { in RpcGetDeviceMacAddress() 350 int maxSize = 0; in RpcGetFrequencies() local 379 int maxSize = 0; in RpcSetAssocMacAddr() local 411 int maxSize = 0; in RpcSetScanningMacAddress() local 412 if (ReadInt(context, &maxSize) < 0 || maxSize < 0) { in RpcSetScanningMacAddress() 439 int maxSize = 0; in RpcDeauthLastRoamingBssid() local 440 if (ReadInt(context, &maxSize) < 0 || maxSize < 0) { in RpcDeauthLastRoamingBssid() [all …]
|
/ohos5.0/base/hiviewdfx/hilog_lite/frameworks/js/builtin/src/ |
H A D | hilog_string.cpp | 24 HilogString::HilogString() : size(0), maxSize(0), str(nullptr) {} in HilogString() 29 maxSize = 0; in ~HilogString() 60 if (str->size + len + 1 >= str->maxSize) { in Puts() 61 str->maxSize = str->size + len + ORG_STRING_LEN; in Puts() 63 HilogRealloc::Realloc(str->str, sizeof(char) * str->maxSize, sizeof(char) * str->size)); in Puts() 70 if (memcpy_s(str->str + str->size, str->maxSize, src, len) != 0) { in Puts() 83 if (str->size + 1 >= str->maxSize) { in Putc() 84 str->maxSize = str->size + ORG_STRING_LEN; in Putc() 86 HilogRealloc::Realloc(str->str, sizeof(char) * str->maxSize, sizeof(char) * str->size)); in Putc()
|
H A D | hilog_vector.cpp | 25 HilogVector::HilogVector() : size(0), maxSize(0), str(nullptr), type(nullptr) {} in HilogVector() 75 if (vector->size == vector->maxSize) { in Push() 76 … vector->maxSize == 0 ? vector->maxSize = ORG_VECTOR_SIZE : vector->maxSize = vector->maxSize << 1; in Push() 78 …HilogRealloc::Realloc(vector->str, sizeof(char*) * vector->maxSize, sizeof(char*) * vector->size)); in Push() 81 … vector->type, sizeof(ValueType) * vector->maxSize, sizeof(ValueType) * vector->size)); in Push()
|
/ohos5.0/base/hiviewdfx/hiappevent/frameworks/native/libhiappevent/ |
H A D | hiappevent_clean.cpp | 60 bool IsStorageSpaceFull(const std::string& dir, uint64_t maxSize) in IsStorageSpaceFull() argument 62 return GetCurStorageSize(dir) > maxSize; in IsStorageSpaceFull() 65 bool ReleaseSomeStorageSpace(const std::string& dir, uint64_t maxSize) in ReleaseSomeStorageSpace() argument 72 curSize = (*it)->ClearSpace(curSize, maxSize); in ReleaseSomeStorageSpace() 73 if (curSize <= maxSize) { in ReleaseSomeStorageSpace() 77 return curSize <= maxSize; in ReleaseSomeStorageSpace() 100 auto maxSize = HiAppEventConfig::GetInstance().GetMaxStorageSize(); in CheckStorageSpace() local 101 if (!IsStorageSpaceFull(dir, maxSize)) { in CheckStorageSpace() 105 ReleaseSomeStorageSpace(dir, maxSize); in CheckStorageSpace()
|
/ohos5.0/base/telephony/cellular_call/test/fuzztest/setpreviewwindow_fuzzer/ |
H A D | setpreviewwindow_fuzzer.cpp | 60 dataMessageParcel.WriteInt32(maxSize); in OnRemoteRequest() 80 dataMessageParcel.WriteInt32(maxSize); in SetPreviewWindow() 118 dataMessageParcel.WriteInt32(maxSize); in SetDisplayWindow() 154 dataMessageParcel.WriteInt32(maxSize); in SetCameraZoom() 172 dataMessageParcel.WriteInt32(maxSize); in ControlCamera() 192 dataMessageParcel.WriteInt32(maxSize); in SetPausePicture() 212 dataMessageParcel.WriteInt32(maxSize); in SetDeviceDirection() 246 dataMessageParcel.WriteInt32(maxSize); in SendUpdateCallMediaModeRequest() 280 dataMessageParcel.WriteInt32(maxSize); in SendUpdateCallMediaModeResponse() 346 dataMessageParcel.WriteInt32(maxSize); in StartDtmf() [all …]
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/linear_split/ |
H A D | linear_split_layout_algorithm.cpp | 46 const auto& maxSize = layoutConstraint->maxSize; in Measure() local 70 if (maxSize.Width() > 0) { in Measure() 95 const auto& maxSize = layoutConstraint->maxSize; in MeasureBeforeAPI10() local 118 if (maxSize.Width() > 0) { in MeasureBeforeAPI10() 124 realSize.SetHeight(maxSize.Height()); in MeasureBeforeAPI10() 133 realSize.SetWidth(maxSize.Width()); in MeasureBeforeAPI10() 142 const auto& maxSize = layoutConstraint->maxSize; in MeasureChildren() local 156 if (childConstraint.maxSize.Width() < 0.0) { in MeasureChildren() 200 const auto& maxSize = layoutConstraint->maxSize; in MeasureChildrenBeforeAPI10() local 213 childConstraint.maxSize.SetHeight(maxSize.Height()); in MeasureChildrenBeforeAPI10() [all …]
|
/ohos5.0/foundation/multimedia/av_codec/services/engine/codec/audio/decoder/ |
H A D | audio_ffmpeg_mp3_decoder_plugin.cpp | 95 int32_t maxSize = basePlugin->GetMaxInputSize(); in GetInputBufferSize() local 96 if (maxSize < 0 || maxSize > INPUT_BUFFER_SIZE_DEFAULT) { in GetInputBufferSize() 97 maxSize = INPUT_BUFFER_SIZE_DEFAULT; in GetInputBufferSize() 99 return maxSize; in GetInputBufferSize() 104 int32_t maxSize = (sampleRate / SAMPLE_RATE_RATIO + BUFFER_DIFF) * channels * sizeof(short); in GetOutputBufferSize() local 106 if (maxSize < minSize) { in GetOutputBufferSize() 107 maxSize = minSize; in GetOutputBufferSize() 109 return maxSize; in GetOutputBufferSize()
|
/ohos5.0/foundation/multimedia/camera_framework/services/camera_service/include/avcodec/common/ |
H A D | fixed_size_list.h | 28 FixedSizeList(size_t size) : maxSize(size), currentSize(0), index(0) in FixedSizeList() 37 index = (index + 1) % maxSize; in add() 38 if (currentSize < maxSize) { in add() 60 data.resize(maxSize); in clear() 73 index = (index - 1 + maxSize) % maxSize; in remove_at() 78 size_t maxSize; variable
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/base/geometry/ng/ |
H A D | size_t.h | 281 width_ = width_ < maxSize.Width() ? width_ : maxSize.Width(); in UpdateMax() 284 height_ = height_ < maxSize.Height() ? height_ : maxSize.Height(); in UpdateMax() 291 UpdateMax(maxSize); 296 UpdateMax(maxSize); 708 width_ = width_.value_or(0) < maxSize.Width() ? width_ : maxSize.Width(); 711 height_ = height_.value_or(0) < maxSize.Height() ? Height() : maxSize.Height(); 724 UpdateMax(maxSize); 732 width_ = width_.value_or(0) < maxSize.Width() ? width_ : maxSize.Width(); 744 width_ = width_.value_or(0) < maxSize.Width() ? width_ : maxSize.Width(); 750 height_ = height_.value_or(0) < maxSize.Height() ? Height() : maxSize.Height(); [all …]
|
/ohos5.0/foundation/multimedia/image_framework/frameworks/innerkitsimpl/test/unittest/plugin_test/ |
H A D | webp_encoder_test.cpp | 58 auto maxSize = 10; variable 156 auto maxSize = 10; variable 184 auto maxSize = 10; variable 212 auto maxSize = 10; variable 242 auto maxSize = 10; variable 271 auto maxSize = 10; variable 299 auto maxSize = 10; variable 327 auto maxSize = 10; variable 355 auto maxSize = 10; variable 383 auto maxSize = 10; variable [all …]
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/overlay/ |
H A D | sheet_presentation_layout_algorithm.cpp | 125 auto maxSize = layoutConstraint->maxSize; in Measure() local 130 maxSize = layoutConstraint->maxSize; in Measure() 131 sheetMaxHeight_ = maxSize.Height(); in Measure() 132 sheetMaxWidth_ = maxSize.Width(); in Measure() 134 sheetHeight_ = GetHeightByScreenSizeType(maxSize); in Measure() 398 float height = maxSize.Height(); in GetHeightByScreenSizeType() 403 height = maxSize.Height(); in GetHeightByScreenSizeType() 421 float width = maxSize.Width(); in GetWidthByScreenSizeType() 433 width = maxSize.Width(); in GetWidthByScreenSizeType() 494 childConstraint.maxSize.SetWidth(sheetWidth_); in CreateSheetChildConstraint() [all …]
|
/ohos5.0/foundation/graphic/graphic_3d/lume/LumeBase/api/base/containers/ |
H A D | fixed_string.h | 28 template<class CharT, size_t maxSize> 31 template<size_t maxSize> 34 template<size_t maxSize> 37 template<class CharT, size_t maxSize> 84 …nstexpr basic_fixed_string(const size_t size) noexcept : len_((size < maxSize) ? size : maxSize) {} in basic_fixed_string() 116 return maxSize; 290 const auto start = newSize < maxSize ? newSize : maxSize; 298 len_ = newSize < maxSize ? newSize : maxSize; 307 len_ = (len_ < maxSize) ? len_ : maxSize; 315 todo = ((todo + len_) > maxSize) ? (maxSize - len_) : todo; [all …]
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/image/ |
H A D | image_layout_algorithm.cpp | 32 SizeF GetMaxSize(const SizeF& maxSize, float aspectRatio) in GetMaxSize() argument 38 bool infWidth = GreaterOrEqualToInfinity(maxSize.Width()); in GetMaxSize() 39 bool infHeight = GreaterOrEqualToInfinity(maxSize.Height()); in GetMaxSize() 45 return { maxSize.Height() * aspectRatio, maxSize.Height() }; in GetMaxSize() 48 return { maxSize.Width(), maxSize.Width() / aspectRatio }; in GetMaxSize() 50 return maxSize; in GetMaxSize() 92 size.SetSizeT(GetMaxSize(contentConstraint.maxSize, aspectRatio)); in MeasureContent()
|
/ohos5.0/foundation/multimedia/av_codec/services/media_engine/plugins/ffmpeg_adapter/audio_decoder/mp3/ |
H A D | ffmpeg_mp3_decoder_plugin.cpp | 162 int32_t maxSize = basePlugin->GetMaxInputSize(); in GetInputBufferSize() local 163 if (maxSize < 0 || maxSize > INPUT_BUFFER_SIZE_DEFAULT) { in GetInputBufferSize() 164 maxSize = INPUT_BUFFER_SIZE_DEFAULT; in GetInputBufferSize() 166 return maxSize; in GetInputBufferSize() 171 int32_t maxSize = (sampleRate / SAMPLE_RATE_RATIO + BUFFER_DIFF) * channels * sizeof(short); in GetOutputBufferSize() local 173 if (maxSize < minSize) { in GetOutputBufferSize() 174 maxSize = minSize; in GetOutputBufferSize() 176 return maxSize; in GetOutputBufferSize()
|