summaryrefslogtreecommitdiffstats
path: root/cmds/idmap/create.cpp
diff options
context:
space:
mode:
authorAdam Lesinski <adamlesinski@google.com>2014-06-06 14:27:00 -0700
committerAdam Lesinski <adamlesinski@google.com>2014-06-18 19:20:08 +0000
commitf90f2f8dc36e7243b85e0b6a7fd5a590893c827e (patch)
treeb2fb1fc49961c7c5f5c1712872ce2ffcfe550a89 /cmds/idmap/create.cpp
parentc802c8cda234129c1ce3c7a939bd68a1d5813ce6 (diff)
downloadframeworks_base-f90f2f8dc36e7243b85e0b6a7fd5a590893c827e.zip
frameworks_base-f90f2f8dc36e7243b85e0b6a7fd5a590893c827e.tar.gz
frameworks_base-f90f2f8dc36e7243b85e0b6a7fd5a590893c827e.tar.bz2
Support multiple resource tables with same package
In order to support APK split features, the resource table needs to support loading multiple resource tables with the same package but potentially new set of type IDs. This adds some complexity as the type ID space changes from dense and ordered to potentially sparse. A ByteBucketArray is used to store the type IDs in a memory efficient way that allows for fast retrieval. In addition, the IDMAP format has changed. We no longer need random access to the type data, since we store the types differently. However, random access to entries of a given type is still required. Change-Id: If6f5be680b405b368941d9c1f2b5d2ddca964160
Diffstat (limited to 'cmds/idmap/create.cpp')
-rw-r--r--cmds/idmap/create.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmds/idmap/create.cpp b/cmds/idmap/create.cpp
index ae35f7b..593a197 100644
--- a/cmds/idmap/create.cpp
+++ b/cmds/idmap/create.cpp
@@ -105,7 +105,7 @@ fail:
uint32_t cached_target_crc, cached_overlay_crc;
String8 cached_target_path, cached_overlay_path;
- if (!ResTable::getIdmapInfo(buf, N, &cached_target_crc, &cached_overlay_crc,
+ if (!ResTable::getIdmapInfo(buf, N, NULL, &cached_target_crc, &cached_overlay_crc,
&cached_target_path, &cached_overlay_path)) {
return true;
}