Home
last modified time | relevance | path

Searched refs:newIdx (Results 1 – 5 of 5) sorted by relevance

/ohos5.0/base/sensors/sensor/vibration_convert/core/utils/src/
H A Dutils.cpp98 …Idx(const std::vector<int32_t> &idx, const std::vector<double> &time, std::vector<int32_t> &newIdx, in UniqueIdx() argument
111 newIdx = idx; in UniqueIdx()
113 int32_t preIdx = newIdx[0]; in UniqueIdx()
116 if (newIdx[i] == preIdx) { in UniqueIdx()
117 newIdx.erase(newIdx.begin() + i); in UniqueIdx()
122 preIdx = newIdx[i]; in UniqueIdx()
/ohos5.0/base/sensors/sensor/vibration_convert/core/native/src/
H A Dvibration_convert_core.cpp236 std::vector<int32_t> newIdx; in MapOnsetHop() local
243 newIdx.push_back(static_cast<int32_t>(round(static_cast<double>(idx) / coef))); in MapOnsetHop()
245 return newIdx; in MapOnsetHop()
593 std::vector<int32_t> newIdx; in DetectOnset() local
595 UniqueIdx(onsetInfo.idx, onsetInfo.time, newIdx, newTime); in DetectOnset()
597 if (newIdx.size() > 1) { in DetectOnset()
599 for (size_t i = 1; i < newIdx.size(); ++i) { in DetectOnset()
600 idxDiff.push_back(newIdx[i] - newIdx[i - 1]); in DetectOnset()
617 for (size_t i = 0; i < newIdx.size(); ++i) { in DetectOnset()
618 unionTransientEvents.push_back(UnionTransientEvent(newIdx[i], newTime[i])); in DetectOnset()
/ohos5.0/base/sensors/sensor/vibration_convert/core/utils/include/
H A Dutils.h89 …Idx(const std::vector<int32_t> &idx, const std::vector<double> &time, std::vector<int32_t> &newIdx,
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_v2/common/
H A Delement_proxy.cpp720 size_t newIdx = cache[child->GetId()]; in OnDataReloaded() local
721 if (newIdx != INVALID_INDEX) { in OnDataReloaded()
722 children_.emplace(newIdx, child); in OnDataReloaded()
723 child->Update(cache[newIdx], startIndex_ + newIdx); in OnDataReloaded()
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/event/
H A Dgesture_event_hub.cpp107 size_t newIdx = 0; in ProcessTouchTestHit() local
177 if (!recognizerGroup && newIdx >= idx) { in ProcessTouchTestHit()
191 newIdx++; // not process previous recognizers in ProcessTouchTestHit()