Home
last modified time | relevance | path

Searched refs:oldSize (Results 1 – 25 of 52) sorted by relevance

123

/ohos5.0/foundation/graphic/graphic_3d/lume/LumeBase/api/base/containers/
H A Dstring.h384 if (const auto oldSize = length(); size < oldSize) { in resize() local
467 if (off > oldSize) { in erase()
518 if (pos > oldSize) { in insert()
519 pos = oldSize; in insert()
541 if (pos < oldSize) { in insert()
567 ptr[oldSize] = a; in push_back()
568 ptr[oldSize + 1] = '\0'; in push_back()
569 set_size(oldSize + 1); in push_back()
603 size_type oldSize; in append() local
852 if (oldSize) { in allocate()
[all …]
/ohos5.0/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/engine/functions/
H A Djs_on_size_change_function.cpp26 JSRef<JSObject> oldSize = JSRef<JSObject>::New(); in Execute() local
28 oldSize->SetProperty<double>("width", PipelineBase::Px2VpWithCurrentDensity(oldRect.Width())); in Execute()
29 oldSize->SetProperty<double>("height", PipelineBase::Px2VpWithCurrentDensity(oldRect.Height())); in Execute()
33 params[0] = oldSize; in Execute()
/ohos5.0/foundation/graphic/graphic_3d/lume/scenewidgetplugin/plugin/src/
H A Djson.h102 const size_t oldSize = out.size(); in append() local
103 out.resize(oldSize + size); in append()
108 … snprintf_s(out.data() + oldSize, newSize + 1 - oldSize, size, FLOATING_FORMAT_STR, floatingPoint); in append()
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/image/
H A Dimage_cache.cpp118 size_t oldSize = !inCache ? 0 : iter->second->cacheObj->GetSize(); in CacheImageData() local
122 curDataSize_ -= oldSize; in CacheImageData()
131 } else if (!largerHalfSize && inCache && oldSize >= dataSize) { in CacheImageData()
133 curDataSize_ = curDataSize_ + dataSize - oldSize; in CacheImageData()
137 } else if (!largerHalfSize && inCache && oldSize < dataSize) { in CacheImageData()
139 curDataSize_ -= oldSize; in CacheImageData()
/ohos5.0/foundation/filemanagement/app_file_service/services/backup_sa/src/module_external/
H A Dsms_adapter.cpp82 int32_t oldSize = BConstants::DEFAULT_VFS_CACHE_PRESSURE; in UpdateMemPara() local
83 if (storageMgr->UpdateMemoryPara(size, oldSize)) { in UpdateMemPara()
87 return oldSize; in UpdateMemPara()
/ohos5.0/commonlibrary/c_utils/base/src/
H A Dmapped_file.cpp388 off_t oldSize = size_; in TurnNext() local
403 offset_ += oldSize; in TurnNext()
413 size_ = oldSize; in TurnNext()
421 if (curEnd + oldSize > rEnd_) { // otherwise keep original "size_" in TurnNext()
424 data_ += oldSize; in TurnNext()
425 offset_ += oldSize; in TurnNext()
/ohos5.0/base/update/updater/services/diffpatch/patch/
H A Dimage_patch.cpp47 if (srcStart > param.oldSize || param.oldSize - srcStart < srcLen || in ApplyImagePatch()
50 srcStart, srcLen, param.oldSize, patchOffset); in ApplyImagePatch()
100 if (header.srcStart > param.oldSize || param.oldSize - header.srcStart < header.srcLength || in StartReadHeader()
103 header.srcStart, header.srcLength, param.oldSize, header.patchOffset); in StartReadHeader()
/ohos5.0/foundation/filemanagement/dfs_service/services/cloudfiledaemon/src/cloud_disk/
H A Dfile_operations_helper.cpp142 size_t oldSize = size; in AddDirEntry() local
145 fuse_add_direntry(req, &buf[oldSize], size - oldSize, name, &ino->stat, size); in AddDirEntry()
/ohos5.0/foundation/filemanagement/dfs_service/test/unittests/cloud_disk/mock/
H A Dfile_operations_helper_mock.cpp169 size_t oldSize = size; in AddDirEntry() local
172 fuse_add_direntry(req, &buf[oldSize], size - oldSize, name, &ino->stat, size); in AddDirEntry()
/ohos5.0/base/hiviewdfx/faultloggerd/test/unittest/async_stack/
H A Dstack_table_test.cpp56 uint32_t oldSize = stackTable->GetTabelSize(); variable
63 ASSERT_NE(stackTable->GetTabelSize(), oldSize);
/ohos5.0/base/update/updater/test/unittest/package/
H A Dpkg_manager_unittest.cpp422 size_t oldSize = uncompressedData.size(); in TestDecompressLz4() local
424 uncompressedData.resize(oldSize * ((start + size) / oldSize + 1)); in TestDecompressLz4()
532 size_t oldSize = uncompressedData.size(); in TestDecompressGzip() local
534 uncompressedData.resize(oldSize * ((start + size) / oldSize + 1)); in TestDecompressGzip()
/ohos5.0/foundation/multimedia/image_framework/plugins/common/libs/image/libextplugin/src/heif_impl/heif_parser/box/
H A Ditem_data_box.cpp118 size_t oldSize = dest->size(); in ReadData() local
122 dest->resize(static_cast<size_t>(oldSize + extent.length)); in ReadData()
123 … stream->Read(reinterpret_cast<char*>(dest->data()) + oldSize, static_cast<size_t>(extent.length)); in ReadData()
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/render_service_base/include/common/
H A Drs_common_def.h427 typename Container::size_type oldSize = container.size(); in EraseIf() local
436 return oldSize - container.size(); in EraseIf()
/ohos5.0/foundation/multimedia/image_framework/frameworks/innerkitsimpl/accessor/src/
H A Dfile_metadata_stream.cpp453 ssize_t oldSize = GetSize(); in CopyFrom() local
479 if (totalBytesWritten < oldSize) { in CopyFrom()
/ohos5.0/base/update/updater/services/include/patch/
H A Dupdate_patch.h26 size_t oldSize; member
/ohos5.0/foundation/graphic/graphic_3d/lume/LumeEngine/api/core/json/
H A Djson.h968 const size_t oldSize = out.size(); in CORE_BEGIN_NAMESPACE() local
969 out.resize(oldSize + size); in CORE_BEGIN_NAMESPACE()
975 …out.data() + oldSize, newSize + 1 - oldSize, static_cast<size_t>(size), FLOATING_FORMAT_STR, float… in CORE_BEGIN_NAMESPACE()
/ohos5.0/foundation/filemanagement/storage_service/services/storage_manager/include/storage_daemon_communication/
H A Dstorage_daemon_communication.h77 int32_t UpdateMemoryPara(int32_t size, int32_t &oldSize);
/ohos5.0/foundation/filemanagement/storage_service/services/storage_daemon/ipc/src/
H A Dstorage_daemon_stub.cpp638 int32_t oldSize = 0; in HandleUpdateMemoryPara() local
639 int err = UpdateMemoryPara(size, oldSize); in HandleUpdateMemoryPara()
643 if (!reply.WriteInt32(oldSize)) { in HandleUpdateMemoryPara()
/ohos5.0/foundation/filemanagement/storage_service/services/storage_daemon/include/ipc/
H A Distorage_daemon.h85 virtual int32_t UpdateMemoryPara(int32_t size, int32_t &oldSize) = 0;
H A Dstorage_daemon_proxy.h73 virtual int32_t UpdateMemoryPara(int32_t size, int32_t &oldSize) override;
/ohos5.0/foundation/filemanagement/storage_service/services/storage_manager/storage_daemon_communication/src/
H A Dstorage_daemon_communication.cpp562 int32_t StorageDaemonCommunication::UpdateMemoryPara(int32_t size, int32_t &oldSize) in UpdateMemoryPara() argument
574 return storageDaemon_->UpdateMemoryPara(size, oldSize); in UpdateMemoryPara()
/ohos5.0/foundation/filemanagement/storage_service/services/storage_manager/include/mock/
H A Dstorage_daemon_proxy_mock.h73 virtual int32_t UpdateMemoryPara(int32_t size, int32_t &oldSize) override;
/ohos5.0/foundation/filemanagement/storage_service/services/storage_manager/mock/
H A Dstorage_daemon_proxy_mock.cpp207 int32_t StorageDaemonProxy::UpdateMemoryPara(int32_t size, int32_t &oldSize) in UpdateMemoryPara() argument
/ohos5.0/foundation/filemanagement/storage_service/services/storage_daemon/ipc/test/
H A Dstorage_daemon_service_mock.h200 virtual int32_t UpdateMemoryPara(int32_t size, int32_t &oldSize) override in UpdateMemoryPara() argument
/ohos5.0/foundation/filemanagement/storage_service/services/storage_manager/ipc/src/
H A Dstorage_manager.cpp586 int32_t StorageManager::UpdateMemoryPara(int32_t size, int32_t &oldSize) in UpdateMemoryPara() argument
590 return sdCommunication->UpdateMemoryPara(size, oldSize); in UpdateMemoryPara()

123