Home
last modified time | relevance | path

Searched refs:newTime (Results 1 - 5 of 5) sorted by relevance

/base/web/webview/ohos_adapter/ohos_resource_adapter/src/
H A Dohos_resource_adapter_impl.cpp403 struct tm newTime; in GetRawFileLastModTime() local
404 newTime.tm_year = ((modifiedDate >> TM_YEAR_BITS) & 0x7f) + START_YEAR; in GetRawFileLastModTime()
405 newTime.tm_mon = (modifiedDate >> TM_MON_BITS) & 0xf; in GetRawFileLastModTime()
406 newTime.tm_mday = modifiedDate & 0x1f; in GetRawFileLastModTime()
407 newTime.tm_hour = (modifiedTime >> TM_HOUR_BITS) & 0x1f; in GetRawFileLastModTime()
408 newTime.tm_min = (modifiedTime >> TM_MIN_BITS) & 0x2f; in GetRawFileLastModTime()
409 newTime.tm_sec = (modifiedTime << 1) & 0x1f; in GetRawFileLastModTime()
410 newTime.tm_isdst = 0; in GetRawFileLastModTime()
411 time = mktime(&newTime); in GetRawFileLastModTime()
/base/sensors/sensor/vibration_convert/core/utils/src/
H A Dutils.cpp99 std::vector<double> &newTime) in UniqueIdx()
112 newTime = time; in UniqueIdx()
118 newTime.erase(newTime.begin() + i); in UniqueIdx()
98 UniqueIdx(const std::vector<int32_t> &idx, const std::vector<double> &time, std::vector<int32_t> &newIdx, std::vector<double> &newTime) UniqueIdx() argument
/base/update/updater/services/package/pkg_package/
H A Dpkg_zipfile.cpp709 struct tm newTime; in CombineTimeAndDate() local
710 newTime.tm_year = ((modifiedDate >> TM_YEAR_BITS) & 0x7f) + START_YEAR; // 年,tm_year为int临时变量减去1900。 in CombineTimeAndDate()
711 newTime.tm_mon = (modifiedDate >> TM_MON_BITS) & 0xf; // 月,tm_mon为int临时变量减去1。 in CombineTimeAndDate()
712 newTime.tm_mday = modifiedDate & 0x1f; // 日。 in CombineTimeAndDate()
713 newTime.tm_hour = (modifiedTime >> TM_HOUR_BITS) & 0x1f; // 时。 in CombineTimeAndDate()
714 newTime.tm_min = (modifiedTime >> TM_MIN_BITS) & 0x2f; // 分。 in CombineTimeAndDate()
715 newTime.tm_sec = (modifiedTime << 1) & 0x1f; // 秒。 in CombineTimeAndDate()
716 newTime.tm_isdst = 0; // 非夏令时。 in CombineTimeAndDate()
717 time = mktime(&newTime); // 将tm结构体转换成time_t格式。 in CombineTimeAndDate()
/base/sensors/sensor/vibration_convert/core/utils/include/
H A Dutils.h85 * @param newTime Processed times.
90 std::vector<double> &newTime);
/base/sensors/sensor/vibration_convert/core/native/src/
H A Dvibration_convert_core.cpp596 std::vector<double> newTime; in DetectOnset() local
597 UniqueIdx(onsetInfo.idxs, onsetInfo.times, newIdx, newTime); in DetectOnset()
620 unionTransientEvents.push_back(UnionTransientEvent(newIdx[i], newTime[i])); in DetectOnset()

Completed in 7 milliseconds