Home
last modified time | relevance | path

Searched refs:PKG_INVALID_STREAM (Results 1 – 9 of 9) sorted by relevance

/base/update/updater/services/package/pkg_manager/
Dpkg_stream.cpp69 PKG_CHECK(stream_ != nullptr, return PKG_INVALID_STREAM, "Invalid stream"); in Read()
70 PKG_CHECK(data.length >= needRead, return PKG_INVALID_STREAM, "Invalid stream"); in Read()
74 PKG_CHECK(offset <= len, return PKG_INVALID_STREAM, "Invalid offset"); in Read()
82 PKG_CHECK(streamType_ == PkgStreamType_Write, return PKG_INVALID_STREAM, "Invalid stream type"); in Write()
83 PKG_CHECK(stream_ != nullptr, return PKG_INVALID_STREAM, "Invalid stream"); in Write()
86 PKG_CHECK(len == 1, return PKG_INVALID_STREAM, "Write buffer fail"); in Write()
109 PKG_CHECK(stream_ != nullptr, return PKG_INVALID_STREAM, "Invalid stream"); in Seek()
115 PKG_CHECK(stream_ != nullptr, return PKG_INVALID_STREAM, "Invalid stream"); in Flush()
119 PKG_CHECK(fflush(stream_) == 0, return PKG_INVALID_STREAM, "Invalid stream"); in Flush()
133 PKG_CHECK(memMap_ != nullptr, return PKG_INVALID_STREAM, "Invalid memory map"); in Read()
[all …]
Dpkg_stream.h169 return PKG_INVALID_STREAM; in Read()
174 PKG_CHECK(processor_ != nullptr, return PKG_INVALID_STREAM, "processor not exist"); in Write()
200 PKG_CHECK(processor_ != nullptr, return PKG_INVALID_STREAM, "processor not exist"); in Flush()
Dpkg_managerImpl.cpp349 PKG_CHECK(output != nullptr, return PKG_INVALID_STREAM, "Invalid stream"); in ExtractFile()
/base/update/updater/services/package/pkg_algorithm/
Dpkg_algorithm.cpp81 PKG_CHECK(srcOffset - context.srcOffset == context.unpackedSize, return PKG_INVALID_STREAM, in Pack()
113 PKG_CHECK(destOffset - context.destOffset == context.packedSize, return PKG_INVALID_STREAM, in Unpack()
/base/update/updater/services/updater_binary/
Dupdate_processor.cpp94 return PKG_INVALID_STREAM; in RawImageWriteProcessor()
105 return PKG_INVALID_STREAM; in RawImageWriteProcessor()
Dupdate_image_block.cpp49 return hpackage::PKG_INVALID_STREAM; in ExtractNewData()
60 UPDATER_ERROR_CHECK(ret == true, logMessage.str(), return hpackage::PKG_INVALID_STREAM); in ExtractNewData()
/base/update/updater/services/include/package/
Dpkg_manager.h41 PKG_INVALID_STREAM, enumerator
/base/update/updater/test/unittest/package/
Dpkg_manager_unittest.cpp331 EXPECT_EQ(ret, PKG_INVALID_STREAM); in TestPkgProcessStream()
352 EXPECT_EQ(PKG_INVALID_STREAM, ret); in TestInvalidStream()
/base/update/updater/test/unittest/test_data/applypatch/
DTestDecompressGzip.new.gz