Home
last modified time | relevance | path

Searched refs:short_offsets (Results 1 – 2 of 2) sorted by relevance

/aosp14/frameworks/base/libs/androidfw/tests/
H A DTypeWrappers_test.cpp29 bool short_offsets = false) in createTypeTable() argument
36 t.flags = short_offsets ? ResTable_type::FLAG_OFFSET16 : 0; in createTypeTable()
38 t.header.size += values.size() * (short_offsets ? sizeof(uint16_t) : sizeof(uint32_t)); in createTypeTable()
58 if (short_offsets) { in createTypeTable()
105 bool compact_entry = i & 0x1, short_offsets = i & 0x2; in TEST() local
106 ResTable_type* data = createTypeTable(values, compact_entry, short_offsets); in TEST()
/aosp14/frameworks/base/tools/aapt2/format/binary/
H A DTableFlattener.cpp197 bool short_offsets = (values_buffer.size() / 4u) < std::numeric_limits<uint16_t>::max(); in FlattenConfig() local
211 sparse_encode = sparse_encode && short_offsets; in FlattenConfig()
233 if (compact_entry && short_offsets) { in FlattenConfig()