Home
last modified time | relevance | path

Searched refs:sparse (Results 1 – 19 of 19) sorted by relevance

/aosp14/frameworks/base/libs/androidfw/tests/
H A DSparseEntry_bench.cpp24 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 DLoadedArsc_test.cpp34 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 Dtest_utils.h54 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 Dmain.cpp559 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 DREADME.md387 - *Sparse Image Tests*: Currently there are no tests that tests sparse images. Both well-formed and…
/aosp14/system/core/libsparse/include/sparse/
H A Dsparse.h165 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 Dsparse.cpp145 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 Doutput_file.h29 int sparse, int chunks, int crc);
32 int sparse, int chunks, int crc);
H A Doutput_file.cpp619 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 DAndroid.bp18 "sparse.cpp",
/aosp14/frameworks/base/libs/androidfw/tests/data/sparse/
H A Dbuild23 aapt2 link --manifest AndroidManifest.xml -I $PATH_TO_FRAMEWORK_RES -o sparse.apk --enable-sparse-e…
H A DR.h24 namespace sparse {
H A DAndroid.bp15 "--enable-sparse-encoding",
/aosp14/frameworks/base/tools/aapt2/
H A Dreadme.md102 - 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 DEventLogTags.logtags1 # The entries in this file map a sparse set of log tag numbers to tag names.
/aosp14/frameworks/base/core/res/
H A DAndroid.bp136 // Framework resources benefit tremendously from enabling sparse encoding, saving tens
138 "--enable-sparse-encoding",
/aosp14/system/core/fs_mgr/liblp/
H A Dio_test.cpp610 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 DEventLogTags.logtags5 # The entries in this file map a sparse set of log tag numbers to tag names.
/aosp14/system/core/fastboot/
H A DREADME.md207 the lpmake command, and must not be a sparse image.