OSDN Git Service

AssetManager cookies should be int32_t and not void*.
authorNarayan Kamath <narayan@google.com>
Mon, 27 Jan 2014 11:17:22 +0000 (11:17 +0000)
committerNarayan Kamath <narayan@google.com>
Mon, 27 Jan 2014 11:20:24 +0000 (11:20 +0000)
commit745d4efc8369d255341d810790132660e33d3b61
treef28ae30721d932409fd8189ac6ef5c0289d106c2
parent9fc157a4767f54d1cff53dc9489638b67aec2da3
AssetManager cookies should be int32_t and not void*.

Cookies are really indices into vectors and arrays, so
they don't need to be void*. We choose int32_t instead
of size_t to allow their width to be well specified.

(cherry picked from commit ebfdd0f467e39c3af8d92cade78263935340acb7)
(cherry picked from commit a7fa2e592e2e579e5acdb903dba83fc074ebc215)
(cherry picked from commit a9d5701b034ed2d9771b3f0943e1add00741d7cd)

Change-Id: I2aed3db568b6fdc487bf99e2c5dd123206736fda
core/jni/android_util_AssetManager.cpp
include/androidfw/AssetManager.h
libs/androidfw/AssetManager.cpp
tools/aapt/Command.cpp