/aosp14/frameworks/base/libs/androidfw/tests/ |
H A D | SparseEntry_bench.cpp | 24 namespace sparse = com::android::sparse; 42 BENCHMARK_CAPTURE(BM_SparseEntryGetResourceOldSparse, Small, sparse::R::integer::foo_9); 43 BENCHMARK_CAPTURE(BM_SparseEntryGetResourceOldSparse, Large, sparse::R::string::foo_999); 49 BENCHMARK_CAPTURE(BM_SparseEntryGetResourceOldNotSparse, Small, sparse::R::integer::foo_9); 50 BENCHMARK_CAPTURE(BM_SparseEntryGetResourceOldNotSparse, Large, sparse::R::string::foo_999); 56 BENCHMARK_CAPTURE(BM_SparseEntryGetResourceSparse, Small, sparse::R::integer::foo_9); 57 BENCHMARK_CAPTURE(BM_SparseEntryGetResourceSparse, Large, sparse::R::string::foo_999); 63 BENCHMARK_CAPTURE(BM_SparseEntryGetResourceNotSparse, Small, sparse::R::integer::foo_9); 64 BENCHMARK_CAPTURE(BM_SparseEntryGetResourceNotSparse, Large, sparse::R::string::foo_999); 87 BENCHMARK_CAPTURE(BM_SparseEntryGetResourceSparseRuntime, Small, sparse::R::integer::foo_9); [all …]
|
H A D | LoadedArsc_test.cpp | 34 namespace sparse = com::android::sparse; 364 loaded_arsc->GetPackageById(get_package_id(sparse::R::integer::foo_9)); in TEST_P() 367 const uint8_t type_index = get_type_id(sparse::R::integer::foo_9) - 1; in TEST_P() 368 const uint16_t entry_index = get_entry_id(sparse::R::integer::foo_9); in TEST_P() 387 loaded_arsc->GetPackageById(get_package_id(sparse::R::string::only_land)); in TEST_P() 390 const uint8_t type_index = get_type_id(sparse::R::string::only_land) - 1; in TEST_P() 420 ASSERT_EQ(id.value(), fix_package_id(sparse::R::string::only_land, 0)); in TEST_P()
|
/aosp14/system/core/fastboot/fuzzy_fastboot/ |
H A D | test_utils.h | 54 sparse = sparse_file_new(block_size, len); in SparseWrapper() 57 SparseWrapper(struct sparse_file* sf) { sparse = sf; } in SparseWrapper() 60 if (sparse) { in ~SparseWrapper() 61 sparse_file_destroy(sparse); in ~SparseWrapper() 66 unsigned bs = sparse_file_block_size(sparse); in Rep() 67 unsigned len = sparse_file_len(sparse, true, false); in Rep() 72 return sparse; 75 struct sparse_file* sparse; member
|
H A D | main.cpp | 559 EXPECT_EQ(fb->Download(*sparse), SUCCESS) << "Download sparse failed: " << sparse.Rep(); in TEST_F() 577 EXPECT_EQ(fb->Download(*sparse), SUCCESS) << "Download sparse failed: " << sparse.Rep(); in TEST_F() 586 EXPECT_EQ(fb->Download(*sparse), SUCCESS) << "Download sparse failed: " << sparse.Rep(); in TEST_F() 596 EXPECT_EQ(fb->Download(*sparse), SUCCESS) << "Download sparse failed: " << sparse.Rep(); in TEST_F() 609 EXPECT_EQ(fb->Download(*sparse), SUCCESS) << "Download sparse failed: " << sparse.Rep(); in TEST_F() 640 EXPECT_EQ(fb->Download(*sparse), SUCCESS) << "Download sparse failed: " << sparse.Rep(); in TEST_F() 1075 << sparse.Rep(); in TEST_F() 1081 << sparse.Rep(); in TEST_F() 1708 EXPECT_EQ(fb->Download(*sparse), SUCCESS) << "Download sparse failed: " << sparse.Rep(); in TEST_P() 1733 EXPECT_EQ(fb->Download(*sparse), SUCCESS) << "Download sparse failed: " << sparse.Rep(); in TEST_P() [all …]
|
H A D | README.md | 387 - *Sparse Image Tests*: Currently there are no tests that tests sparse images. Both well-formed and…
|
/aosp14/system/core/libsparse/include/sparse/ |
H A D | sparse.h | 165 int sparse_file_write(struct sparse_file *s, int fd, bool gz, bool sparse, 180 int64_t sparse_file_len(struct sparse_file *s, bool sparse, bool crc); 207 int sparse_file_callback(struct sparse_file *s, bool sparse, bool crc, 224 int sparse_file_foreach_chunk(struct sparse_file *s, bool sparse, bool crc,
|
/aosp14/system/core/libsparse/ |
H A D | sparse.cpp | 145 int sparse_file_write(struct sparse_file* s, int fd, bool gz, bool sparse, bool crc) { in sparse_file_write() argument 157 out = output_file_open_fd(fd, s->block_size, s->len, gz, sparse, chunks, crc); in sparse_file_write() 168 int sparse_file_callback(struct sparse_file* s, bool sparse, bool crc, in sparse_file_callback() argument 175 out = output_file_open_callback(write, priv, s->block_size, s->len, false, sparse, chunks, crc); in sparse_file_callback() 199 int sparse_file_foreach_chunk(struct sparse_file* s, bool sparse, bool crc, in sparse_file_foreach_chunk() argument 213 out = output_file_open_callback(foreach_chunk_write, &chk, s->block_size, s->len, false, sparse, in sparse_file_foreach_chunk() 236 int64_t sparse_file_len(struct sparse_file* s, bool sparse, bool crc) { in sparse_file_len() argument 242 out = output_file_open_callback(out_counter_write, &count, s->block_size, s->len, false, sparse, in sparse_file_len()
|
H A D | output_file.h | 29 int sparse, int chunks, int crc); 32 int sparse, int chunks, int crc);
|
H A D | output_file.cpp | 619 static int output_file_init(struct output_file* out, int block_size, int64_t len, bool sparse, in output_file_init() argument 645 if (sparse) { in output_file_init() 651 if (sparse) { in output_file_init() 710 int sparse, int chunks, int crc) { in output_file_open_callback() argument 725 ret = output_file_init(&outc->out, block_size, len, sparse, chunks, crc); in output_file_open_callback() 735 int sparse, int chunks, int crc) { in output_file_open_fd() argument 750 ret = output_file_init(out, block_size, len, sparse, chunks, crc); in output_file_open_fd()
|
H A D | Android.bp | 18 "sparse.cpp",
|
/aosp14/frameworks/base/libs/androidfw/tests/data/sparse/ |
H A D | build | 23 aapt2 link --manifest AndroidManifest.xml -I $PATH_TO_FRAMEWORK_RES -o sparse.apk --enable-sparse-e…
|
H A D | R.h | 24 namespace sparse {
|
H A D | Android.bp | 15 "--enable-sparse-encoding",
|
/aosp14/frameworks/base/tools/aapt2/ |
H A D | readme.md | 102 - Added sparse resource type encoding, which encodes resource entries that are sparse with 105 `--enable-sparse-encoding` flag. 112 - new sparse resource type encoding with the `--enable-sparse-encoding` flag if possible
|
/aosp14/system/core/storaged/ |
H A D | EventLogTags.logtags | 1 # The entries in this file map a sparse set of log tag numbers to tag names.
|
/aosp14/frameworks/base/core/res/ |
H A D | Android.bp | 136 // Framework resources benefit tremendously from enabling sparse encoding, saving tens 138 "--enable-sparse-encoding",
|
/aosp14/system/core/fs_mgr/liblp/ |
H A D | io_test.cpp | 610 ImageBuilder sparse(*exported.get(), 512, {}, true /* sparsify */); in TEST_F() local 611 ASSERT_TRUE(sparse.IsValid()); in TEST_F() 612 ASSERT_TRUE(sparse.Build()); in TEST_F() 614 const auto& images = sparse.device_images(); in TEST_F()
|
/aosp14/frameworks/base/core/java/android/view/ |
H A D | EventLogTags.logtags | 5 # The entries in this file map a sparse set of log tag numbers to tag names.
|
/aosp14/system/core/fastboot/ |
H A D | README.md | 207 the lpmake command, and must not be a sparse image.
|