Searched refs:sparse_encode (Results 1 - 1 of 1) sorted by relevance

/frameworks/base/tools/aapt2/format/binary/
H A DTableFlattener.cpp347 bool sparse_encode = use_sparse_entries_; local
350 sparse_encode =
351 sparse_encode && (context_->GetMinSdkVersion() >= SDK_O || config.sdkVersion >= SDK_O);
354 sparse_encode =
355 sparse_encode && (values_buffer.size() / 4u) <= std::numeric_limits<uint16_t>::max();
359 sparse_encode =
360 sparse_encode && ((100 * entries->size()) / num_total_entries) < kSparseEncodingThreshold;
362 if (sparse_encode) {

Completed in 53 milliseconds