Home
last modified time | relevance | path

Searched full:compression (Results 1 – 25 of 127) sorted by relevance

123456

/system/core/fs_mgr/libsnapshot/libsnapshot_cow/
Dcow_compress.cpp55 LOG(ERROR) << "unable to determine default compression algorithm for: " << name; in CompressionAlgorithmFromString()
60 std::unique_ptr<ICompressor> ICompressor::Create(CowCompression compression, in Create() argument
62 switch (compression.algorithm) { in Create()
64 return ICompressor::Lz4(compression.compression_level, block_size); in Create()
66 return ICompressor::Brotli(compression.compression_level, block_size); in Create()
68 return ICompressor::Gz(compression.compression_level, block_size); in Create()
70 return ICompressor::Zstd(compression.compression_level, block_size); in Create()
77 // 1. Default compression level is determined by compression algorithm
79 // Android will assume a different compression level, causing cow_size estimation differences that
80 // will lead to OTA failure. Ensure that the device and OTA package use the same compression level
[all …]
Dwriter_v3.cpp73 LOG_INFO << "Not creating new threads for compression."; in InitWorkers()
87 LOG(INFO) << num_compress_threads_ << " thread used for compression"; in InitWorkers()
120 LOG(ERROR) << "Invalid compression factor: " << header_.max_compression_size; in ParseOptions()
125 auto parts = android::base::Split(options_.compression, ","); in ParseOptions()
127 LOG(ERROR) << "failed to parse compression parameters: invalid argument count: " in ParseOptions()
128 << parts.size() << " " << options_.compression; in ParseOptions()
133 LOG(ERROR) << "unrecognized compression: " << options_.compression; in ParseOptions()
153 LOG(ERROR) << "failed to parse compression level invalid type: " << parts[1]; in ParseOptions()
184 if (android::base::GetBoolProperty("ro.virtual_ab.compression.threads", false) && in ParseOptions()
394 LOG(ERROR) << "Compression algorithm is " << compression_.algorithm in EmitBlocks()
[all …]
Dcreate_cow.cpp43 DEFINE_string(compression, "lz4",
44 "Compression algorithm. Default is set to lz4. Available options: lz4, zstd, gz");
60 const std::string& patch_file, const std::string& compression,
138 const std::string& patch_file, const std::string& compression, in CreateSnapshot() argument
144 if (!compression.empty()) { in CreateSnapshot()
145 compression_ = compression; in CreateSnapshot()
332 options.compression = compression_; in CreateSnapshotWriter()
392 // compress multiple blocks in one shot based on the compression factor. in WriteOrderedSnapshots()
573 … create_snapshot --source=<source.img> --target=<target.img> --compression="<compression-algorithm"
577 compression -> compression algorithm. Default set to lz4. Supported types are gz, lz4, zstd.
[all …]
Dparser_v2.cpp209 // v2 ops always have 4k compression in Translate()
227 if (v2_op.compression != kCowCompressNone) { in Translate()
229 header_.compression_algorithm = v2_op.compression; in Translate()
230 } else if (header_.compression_algorithm != v2_op.compression) { in Translate()
231 LOG(ERROR) << "COW has mixed compression types which is not supported;" in Translate()
233 << v2_op.compression << ", op: " << v2_op; in Translate()
Dwriter_v2.cpp81 LOG(ERROR) << "Compression failed"; in ~CowWriterV2()
92 // threads is far greater than cutting down compression time. in SetupWriteOptions()
94 android::base::GetBoolProperty("ro.virtual_ab.compression.threads", false)) { in SetupWriteOptions()
124 auto parts = android::base::Split(options_.compression, ","); in ParseOptions()
127 LOG(ERROR) << "failed to parse compression parameters: invalid argument count: " in ParseOptions()
128 << parts.size() << " " << options_.compression; in ParseOptions()
133 LOG(ERROR) << "unrecognized compression: " << options_.compression; in ParseOptions()
138 LOG(ERROR) << "failed to parse compression level invalid type: " << parts[1]; in ParseOptions()
182 LOG_INFO << "Not creating new threads for compression."; in InitWorkers()
193 LOG_INFO << num_compress_threads_ << " thread used for compression"; in InitWorkers()
[all …]
/system/logging/logd/
DREADME.compression.md1 # Log Compression instead of Chatty in Android S
36 ## Log Compression in Theory
43 ## Log Compression Preliminary Results
46 * Compression vs Chatty:
68compression without actually compressing”, it’s “chatty without doing the chatty elimination”, whi…
/system/extras/f2fs_utils/
Dmkf2fsuserimg.sh11 [-L LABEL] [--prjquota] [--casefold] [--compression] [--readonly]
12 [--sldc <num> [sload compression sub-options]] [-b <block_size>]
13 <num>: number of the sload compression args, e.g. -a LZ4 counts as 2
14 when sload compression args are not given, <num> must be 0,
101 if [[ "$1" == "--compression" ]]; then
103 MKFS_OPTS+=" -O compression,extra_attr"
114 echo "--sldc needs --compression flag"
/system/core/fs_mgr/libsnapshot/include/libsnapshot/
Dcow_format.h114 // Compression Algorithm
116 // Max compression size supported
146 // the compression type of that data (see constants below).
147 uint8_t compression; member
165 // the compression type of that data (see constants below).
166 uint8_t compression; member
215 // |--- type --- | -- compression factor --| --- unused --- | --- source --- |
229 // Bits [57-59] represents the compression factor.
231 // Compression - factor
262 // Set the actual compression factor in set_compression_bits()
[all …]
Dcow_writer.h42 std::string compression; member
55 // Number of threads for compression
64 // Compression factor
127 static uint32_t GetDefaultCompressionLevel(CowCompressionAlgorithm compression);
Dcow_compress.h33 // Factory methods for compression methods.
43 static std::unique_ptr<ICompressor> Create(CowCompression compression,
/system/update_engine/payload_generator/
Dpayload_generation_config.cc203 // We use "gz" compression by default for VABC. in LoadDynamicPartitionMetadata()
207 LOG(INFO) << "Using VABC compression method '" << compression_method in LoadDynamicPartitionMetadata()
210 LOG(INFO) << "No VABC compression method specified. Defaulting to 'gz'"; in LoadDynamicPartitionMetadata()
224 LOG(INFO) << "Using VABC compression factor " << compression_factor; in LoadDynamicPartitionMetadata()
226 LOG(INFO) << "No compression factor specified. Defaulting to 4k"; in LoadDynamicPartitionMetadata()
232 LOG(ERROR) << "failed to parse compression factor value: " in LoadDynamicPartitionMetadata()
432 << "Invalid compression param " << param in ParseCompressionParam()
433 << ", compression level not supported for lz4"; in ParseCompressionParam()
441 CHECK_EQ(ec, std::errc()) << "Failed to parse compression level " << level in ParseCompressionParam()
442 << ", compression param: " << param; in ParseCompressionParam()
[all …]
Dxz_android.cc88 // Xz compression properties. in XzCompress()
96 // LZMA2 compression properties. in XzCompress()
99 // LZMA compression "level 6" requires 9 MB of RAM to decompress in the worst in XzCompress()
Dcow_size_estimator.h27 // Virtual AB Compression enabled device. This is intended to be used by update
38 std::string compression,
Dbzip.cc35 // We expect a compression ratio of about 35% with bzip2, so we start with in BzipCompress()
50 9, // Best compression in BzipCompress()
/system/cros-codecs/ci/
Dtemplate.yaml25 compression: xz
28 compression: xz
32 compression: gz
/system/libufdt/utils/tests/data/
Dmkdtboimg.cfg19 flags=0xd01 # override with another value, do zlib compression
22 flags=0xd02 # override with another value, do gzip compression
/system/core/fs_mgr/libsnapshot/tools/
Dcow_benchmark.cpp31 static std::string CompressionToString(CowCompression& compression) { in CompressionToString() argument
33 switch (compression.algorithm) { in CompressionToString()
47 return "No Compression"; in CompressionToString()
49 output.append(" " + std::to_string(compression.compression_level)); in CompressionToString()
91 << " compression ratio ->" << compression_ratio << " \n"; in OneShotCompressionTest()
168 << " compression ratio ->" << compression_ratio << " \n"; in IncrementalCompressionTest()
/system/apex/tests/app/
DApexCompressionTests_AndroidManifest.xml19 package="com.android.tests.apex.compression.app" >
30 android:targetPackage="com.android.tests.apex.compression.app"
/system/update_engine/payload_consumer/
Dpartition_writer_factory_android.cc37 << "Virtual AB Compression Enabled, using VABC Partition Writer for `" in CreatePartitionWriter()
42 LOG(INFO) << "Virtual AB Compression disabled, using Partition Writer for `" in CreatePartitionWriter()
/system/core/fs_mgr/libsnapshot/android/snapshot/
Dsnapshot.proto103 // Compression algorithm (none, lz4, zstd).
109 // Enable multi-threaded compression
201 // Whether compression/dm-user was used for any snapshots.
252 // Whether compression/dm-user was used for any snapshots.
277 // Whether this update attempt uses XOR compression.
/system/incremental_delivery/incfs/tests/
Dincfs_test.cpp62 .compression = INCFS_COMPRESSION_KIND_NONE, in writeTestRanges()
69 .compression = INCFS_COMPRESSION_KIND_NONE, in writeTestRanges()
76 .compression = INCFS_COMPRESSION_KIND_NONE, in writeTestRanges()
84 .compression = INCFS_COMPRESSION_KIND_NONE, in writeTestRanges()
92 .compression = INCFS_COMPRESSION_KIND_NONE, in writeTestRanges()
100 .compression = INCFS_COMPRESSION_KIND_NONE, in writeTestRanges()
116 .compression = INCFS_COMPRESSION_KIND_NONE, in writeBlock()
186 .compression = INCFS_COMPRESSION_KIND_NONE, in testWaitForPendingReads()
519 .compression = INCFS_COMPRESSION_KIND_NONE, in TEST_F()
660 .compression = INCFS_COMPRESSION_KIND_NONE, in TEST_F()
[all …]
/system/update_engine/common/
Ddynamic_partition_control_interface.h71 // Return the feature flags of Virtual A/B Compression on this device.
76 // Return the feature flag for Virtual AB Compression XOR
189 // Return if snapshot compression is enabled for this update.
195 // To know if the device supports snapshot compression by itself, use
/system/libziparchive/
Dtest_ziparchive_large.py96 with zipfile.ZipFile(zip_path, 'w', compression=zipfile.ZIP_DEFLATED,
126 with zipfile.ZipFile(zip_path, 'w', compression=zipfile.ZIP_STORED,
140 with zipfile.ZipFile(zip_path, 'w', compression=zipfile.ZIP_DEFLATED,
/system/apex/docs/
DREADME.md497 APEX compression is a new feature introduced in Android S. Its main purpose is
502 APEX compression minimizes the storage impact by using a highly-compressed
504 DEFLATE zip compression is used.
506 Note: compression doesn't provide any optimization in the following scenarios:
511 * Non-updatable apexes. Compression is only beneficial in case an updated
528 form with compression level of 9 and other files stored uncompressed.
532 * `original_apex`: deflated with compression level of 9
554 There are a few different parameters related to APEX compression available in
585 ### Supported compression algorithms
587 Android S only supports deflate zip compression.
/system/update_engine/aosp/
Dcow_converter.cc48 "Compression parameter for VABC. Default is use what's specified "
76 .compression = dap.vabc_compression_param(), in ProcessPartition()
81 options.compression = FLAGS_vabc_compression_param; in ProcessPartition()

123456