Home
last modified time | relevance | path

Searched refs:entry_size (Results 1 – 6 of 6) sorted by relevance

/frameworks/native/services/surfaceflinger/Tracing/tools/
DLayerTraceGenerator.cpp45 if (traceFile.entry_size() == 0) { in generate()
71 ALOGD("Generating %d transactions...", traceFile.entry_size()); in generate()
72 for (int i = 0; i < traceFile.entry_size(); i++) { in generate()
77 i, traceFile.entry_size(), entry.elapsed_realtime_nanos(), entry.vsync_id(), in generate()
161 if (!onlyLastEntry || (i == traceFile.entry_size() - 1)) { in generate()
/frameworks/base/libs/androidfw/
DLoadedArsc.cpp141 const size_t entry_size = entry->size(); in VerifyResTableEntry() local
142 if (UNLIKELY(entry_size < sizeof(entry.value()))) { in VerifyResTableEntry()
143 LOG(ERROR) << "ResTable_entry size " << entry_size << " at offset " << entry_offset in VerifyResTableEntry()
148 if (UNLIKELY(entry_size > chunk_size || entry_offset > chunk_size - entry_size)) { in VerifyResTableEntry()
149 LOG(ERROR) << "ResTable_entry size " << entry_size << " at offset " << entry_offset in VerifyResTableEntry()
159 if (entry_size < sizeof(ResTable_map_entry)) { in VerifyResTableEntry()
161 if (UNLIKELY(entry_offset + entry_size > chunk_size - sizeof(Res_value))) { in VerifyResTableEntry()
167 auto value = entry.offset(entry_size).convert<Res_value>(); in VerifyResTableEntry()
178 if (UNLIKELY(value_size > chunk_size || entry_offset + entry_size > chunk_size - value_size)) { in VerifyResTableEntry()
190 size_t map_entries_start = entry_offset + entry_size; in VerifyResTableEntry()
DAssetManager2.cpp52 const uint16_t entry_size = table_entry->size(); in GetEntryValue() local
55 if (entry_size >= sizeof(ResTable_map_entry) && table_entry->is_complex()) { in GetEntryValue()
/frameworks/native/services/surfaceflinger/tests/tracing/
DTransactionTraceTestSuite.cpp186 ASSERT_GT(mActualLayersTraceProto.entry_size(), 0); in TEST_P()
187 ASSERT_GT(mExpectedLayersTraceProto.entry_size(), 0); in TEST_P()
190 mExpectedLayersTraceProto.entry(mExpectedLayersTraceProto.entry_size() - 1); in TEST_P()
191 auto actualLastEntry = mActualLayersTraceProto.entry(mActualLayersTraceProto.entry_size() - 1); in TEST_P()
/frameworks/base/libs/androidfw/tests/
DTypeWrappers_test.cpp42 size_t entry_size = compact_entry ? sizeof(ResTable_entry) in createTypeTable() local
45 t.header.size += v ? entry_size : 0; in createTypeTable()
/frameworks/av/services/camera/libcameraservice/utils/
DExifUtils.cpp852 size_t entry_size = buffer.length(); in setString() local
855 entry_size++; in setString()
858 addVariableLengthEntry(ifd, tag, format, entry_size, entry_size); in setString()
863 memcpy(entry->data, buffer.c_str(), entry_size); in setString()