Home
last modified time | relevance | path

Searched refs:targetLen (Results 1 - 15 of 15) sorted by relevance

/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/grid/irregular/
H A Dgrid_layout_range_solver.cpp83 Result GridLayoutRangeSolver::SolveForward(float mainGap, float targetLen, const int32_t idx) in SolveForward() argument
88 if (GreatNotEqual(len + it->second + mainGap, targetLen)) { in SolveForward()
101 return { startRow, startIdx, len - targetLen + mainGap }; in SolveForward()
104 std::pair<int32_t, int32_t> GridLayoutRangeSolver::SolveForwardForEndIdx(float mainGap, float targetLen, int32_t line) in SolveForwardForEndIdx() argument
106 if (Negative(targetLen)) { in SolveForwardForEndIdx()
115 for (; LessNotEqual(len, targetLen) && it != info_->lineHeightMap_.end(); ++it) { in SolveForwardForEndIdx()
122 Result GridLayoutRangeSolver::SolveBackward(float mainGap, float targetLen, int32_t idx) in SolveBackward() argument
125 while (idx > 0 && LessNotEqual(len, targetLen)) { in SolveBackward()
134 float newOffset = targetLen - len + mainGap; in SolveBackward()
H A Dgrid_layout_range_solver.h71 * @param targetLen The target length for the forward traversal.
75 std::pair<int32_t, int32_t> SolveForwardForEndIdx(float mainGap, float targetLen, int32_t line);
79 * @brief Find the starting row after offsetting by [targetLen] going forward (scrolling down).
82 * @param targetLen The target length to offset.
85 StartingRowInfo SolveForward(float mainGap, float targetLen, int32_t idx);
88 * @brief Find the new starting row after offsetting by [targetLen] going backward (scrolling up).
91 * @param targetLen The target length to offset.
94 StartingRowInfo SolveBackward(float mainGap, float targetLen, int32_t idx);
H A Dgrid_irregular_filler.h58 * @param targetLen The target length of the main axis (total row height to fill).
61 FillResult Fill(const FillParameters& params, float targetLen, int32_t startingLine);
99 * @param targetLen The target length of the main axis (total row height to fill).
103 float MeasureBackward(const FillParameters& params, float targetLen, int32_t startingLine);
149 * Return immediately when [targetLen] is reached.
154 * @return true if len >= targetLen after adding height of [row]. At this point, row = last
156 bool UpdateLength(float& len, float targetLen, int32_t& row, int32_t rowBound, float mainGap) const;
H A Dgrid_irregular_filler.cpp33 Result GridIrregularFiller::Fill(const FillParameters& params, float targetLen, int32_t startingLine) in Fill() argument
47 if (UpdateLength(len, targetLen, row, posY_, params.mainGap)) { in Fill()
59 if (UpdateLength(len, targetLen, posY_, lastRow + 1, params.mainGap)) { in Fill()
181 bool GridIrregularFiller::UpdateLength(float& len, float targetLen, int32_t& row, int32_t rowBound, float mainGap) const in UpdateLength() argument
190 if (GreatOrEqual(len, targetLen)) { in UpdateLength()
265 float GridIrregularFiller::MeasureBackward(const FillParameters& params, float targetLen, int32_t startingLine) in MeasureBackward() argument
271 for (; posY_ >= 0 && LessNotEqual(len, targetLen); --posY_) { in MeasureBackward()
H A Dgrid_irregular_layout_algorithm.cpp504 const float targetLen = mainSize / 2.0f; in PrepareLineHeight() local
507 if (LessNotEqual(backwardLen, targetLen)) { in PrepareLineHeight()
515 if (LessNotEqual(forwardLen, targetLen)) { in PrepareLineHeight()
/foundation/communication/dsoftbus/core/common/include/
H A Dsoftbus_json_utils.h30 int32_t GetStringItemByJsonObject(const cJSON *json, const char * const string, char *target, uint32_t targetLen);
32 bool GetJsonObjectStringItem(const cJSON *json, const char * const string, char *target, uint32_t targetLen);
/foundation/communication/dsoftbus/core/common/json_utils/
H A Dsoftbus_json_utils.c25 uint32_t targetLen) in GetStringItemByJsonObject()
37 if (length >= targetLen) { in GetStringItemByJsonObject()
41 int32_t ret = strcpy_s(target, targetLen, item->valuestring); in GetStringItemByJsonObject()
50 uint32_t targetLen) in GetJsonObjectStringItem()
62 if (length >= targetLen) { in GetJsonObjectStringItem()
66 int32_t ret = strcpy_s(target, targetLen, item->valuestring); in GetJsonObjectStringItem()
24 GetStringItemByJsonObject(const cJSON *json, const char * const string, char *target, uint32_t targetLen) GetStringItemByJsonObject() argument
49 GetJsonObjectStringItem(const cJSON *json, const char * const string, char *target, uint32_t targetLen) GetJsonObjectStringItem() argument
/foundation/communication/dsoftbus/tests/core/authentication/unittest/
H A Dauth_net_ledger_mock.h64 uint32_t targetLen) = 0;
100 uint32_t targetLen), (override));
H A Dauth_net_ledger_mock.cpp174 uint32_t targetLen) in GetJsonObjectStringItem()
176 return GetNetLedgerInterface()->GetJsonObjectStringItem(json, string, target, targetLen); in GetJsonObjectStringItem()
173 GetJsonObjectStringItem(const cJSON *json, const char * const string, char *target, uint32_t targetLen) GetJsonObjectStringItem() argument
/foundation/distributedhardware/distributed_input/common/include/
H A Dwhite_list_util.cpp248 int32_t targetLen, std::unordered_set<std::string> &hashSets) in GetAllComb()
257 GetAllComb(leftVecs, newHash, targetLen, hashSets); in GetAllComb()
261 if (hash.len == targetLen) { in GetAllComb()
247 GetAllComb(TYPE_COMBINATION_KEY_VEC vecs, WhiteListItemHash hash, int32_t targetLen, std::unordered_set<std::string> &hashSets) GetAllComb() argument
H A Dwhite_list_util.h71 int32_t targetLen, std::unordered_set<std::string> &hashSets);
/foundation/communication/dsoftbus/core/common/security/permission/common/
H A Dpermission_entry.c146 size_t targetLen = strlen(target); in StrStartWith() local
147 if (stringLen == 0 || targetLen == 0 || stringLen < targetLen) { in StrStartWith()
151 for (size_t index = 0; index < targetLen; index++) { in StrStartWith()
/foundation/multimedia/image_framework/frameworks/innerkitsimpl/utils/include/
H A Dimage_utils.h74 static int32_t KMPFind(const uint8_t* target, uint32_t targetLen, const uint8_t* pattern, uint32_t patternLen);
/foundation/multimedia/image_framework/frameworks/innerkitsimpl/utils/src/
H A Dimage_utils.cpp763 int32_t ImageUtils::KMPFind(const uint8_t* target, uint32_t targetLen, in KMPFind() argument
775 for (; targetIndex < targetLen; ++targetIndex) { in KMPFind()
/foundation/communication/dsoftbus/core/authentication/src/
H A Dauth_session_json.c193 char *target, uint32_t targetLen, const char *defaultValue) in OptString()
195 if (JSON_GetStringFromOject(json, key, target, targetLen)) { in OptString()
198 if (strcpy_s(target, targetLen, defaultValue) != EOK) { in OptString()
192 OptString(const JsonObj *json, const char * const key, char *target, uint32_t targetLen, const char *defaultValue) OptString() argument

Completed in 12 milliseconds