summaryrefslogtreecommitdiffstats
path: root/libs
Commit message (Collapse)AuthorAgeFilesLines
* Fix accessorychat test programMike Lockwood2014-02-252-1/+53
| | | | Change-Id: Ib51b880f64b13e860721d594c900b45d5725b718
* Modulate shadow alpha by caster alphaChris Craik2014-02-212-3/+4
| | | | Change-Id: Ibc4b3958feb3b5dba91d30af470d76555a6209c8
* Merge "Don't assume that we're at start of file at ctor time"Christopher Tate2014-02-211-2/+4
|\
| * Don't assume that we're at start of file at ctor timeChristopher Tate2014-02-211-2/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | BackupDataReader / BackupDataWriter were implicitly assuming that when instantiated, the underlying fd was positioned at start-of-file. If one tried to e.g. open an existing data stream to append further data to it, things might randomly fail (at read time, possibly when consuming the stream later) due to incorrect alignment of the data entities: the appending writer would assume that no padding was needed to achieve correct alignment, and this might easily be false. Now the underlying native reader/writer helpers recognize the true position within the file when constructed, and as a result it's now safe to e.g. construct a BackupDataOutput for an existing file and then append to it. Change-Id: If0484921e687852f923a4b4efabff573a6c16981
* | am 61910447: am 7942397b: am 19256340: am 22c66639: Merge "Fixes for 64bit ↵Narayan Kamath2014-02-212-2/+2
|\ \ | | | | | | | | | | | | | | | | | | in libhwui" * commit '6191044729b2dace9c9b4b15b19a8839377d8973': Fixes for 64bit in libhwui
| * \ am 19256340: am 22c66639: Merge "Fixes for 64bit in libhwui"Narayan Kamath2014-02-212-2/+2
| |\ \ | | | | | | | | | | | | | | | | * commit '192563407964926537d688d4098054c3834341c0': Fixes for 64bit in libhwui
| | * \ Merge "Fixes for 64bit in libhwui"Narayan Kamath2014-02-212-2/+2
| | |\ \
| | | * | Fixes for 64bit in libhwuiKévin PETIT2014-02-212-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Using reinterpret_cast allows conversions between pointer types and integers which don't have the same size. The corresponding flags is -Wint-to-pointer-cast. Change-Id: I8ff0c79d235fa6d07b8d9305edc185d946d5133d Signed-off-by: Kévin PETIT <kevin.petit@arm.com>
| * | | | am b152473f: am 9fce8535: Merge "AArch64: Make AssetAtlasService 64-bit ↵Narayan Kamath2014-02-202-7/+12
| |\ \ \ \ | | |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | compatible" * commit 'b152473f46d8176e7eb2c55b54342a7a29c525cf': AArch64: Make AssetAtlasService 64-bit compatible
| | * | | AArch64: Make AssetAtlasService 64-bit compatibleAshok Bhat2014-02-202-7/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Changes in this patch include [x] Long(64-bit) is used to store native pointers in AssetAtlasService and related classes as they can be 64-bit. [x] Some minor changes have been done to conform with standard JNI practice (e.g. use of jint instead of int in JNI function prototypes) Change-Id: Ib4c77c134e3ad5b21732e20cde9a54a0b16bdab1 Signed-off-by: Ashok Bhat <ashok.bhat@arm.com>
* | | | | Merge "AArch64: Make AssetAtlasService 64-bit compatible"Narayan Kamath2014-02-212-7/+12
|\ \ \ \ \
| * | | | | AArch64: Make AssetAtlasService 64-bit compatibleAshok Bhat2014-02-212-7/+12
| | |_|_|/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Changes in this patch include [x] Long(64-bit) is used to store native pointers in AssetAtlasService and related classes as they can be 64-bit. [x] Some minor changes have been done to conform with standard JNI practice (e.g. use of jint instead of int in JNI function prototypes) Signed-off-by: Ashok Bhat <ashok.bhat@arm.com> (cherry-picked from 4de3f481bc59ab4b766dc027e41aff7cda9d62f7) Change-Id: If22daf40eef46f8df9f94d65ddcc52c45b3acf2a
* | | | | Merge "Reapply "Refactor setting an SkPaint onto a hwui Layer.""Derek Sollenberger2014-02-215-17/+11
|\ \ \ \ \ | |/ / / / |/| | | |
| * | | | Reapply "Refactor setting an SkPaint onto a hwui Layer."Derek Sollenberger2014-02-205-17/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This reverts commit 90d0c75e94a32fb7d993fae69762820aabc2fcbb. Change-Id: Ie807761231edf7c848b019931dccbf466208c0be
* | | | | am bcb433b4: am b1903653: am 128599e4: am 2b3c14bf: Merge "libandroidfw: fix ↵Narayan Kamath2014-02-201-39/+36
|\ \ \ \ \ | |/ / / / |/| / / / | |/ / / | | | | | | | | | | | | build error for 64-bit" * commit 'bcb433b43acb424ff7bc6afab03ce12d8cc9a198': libandroidfw: fix build error for 64-bit
| * | | am 128599e4: am 2b3c14bf: Merge "libandroidfw: fix build error for 64-bit"Narayan Kamath2014-02-201-39/+36
| |\ \ \ | | |/ / | | | | | | | | | | | | * commit '128599e4496bd7ceb9d70f4addde0eba65103709': libandroidfw: fix build error for 64-bit
| | * | libandroidfw: fix build error for 64-bitPatrik Bannura2014-02-201-39/+36
| | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixed casting int to pointer in logging code. Previously ints where printed as pointers and the %p format specifier was used for convenience to get hex output. This change uses %x and also gets rid of the casts. Change-Id: Ia2539769d245f50c0f3884119f80682defe69d61
| * | am 28879bbf: am be57fca4: Merge "Extended locales in AAPT / AssetManager."Narayan Kamath2014-02-173-46/+114
| |\ \ | | |/ | | | | | | | | | * commit '28879bbfe89dc4bf2067a7183975ecffb82f68e6': Extended locales in AAPT / AssetManager.
| | * Extended locales in AAPT / AssetManager.Narayan Kamath2014-02-143-46/+114
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Support 3 letter language codes, script codes & variants. The bulk of the changes are related to the implementation of command line filtering of locales etc. The previous code assumed that the value of each "axis" (locale, density, size etc.) could be represented by a 4 byte type. This is no longer the case. This change introduces a new class, AaptLocaleValue which holds a (normalized) locale parsed from a directory name or a filter string. This class takes responsibility for parsing locales as well as writing them to ResTable_config structures, which is their representation in the resource table. This includes minor changes at the java / JNI level for AssetManager. We now call locale.toLanguageTag() to give the native layer a well formed BCP-47 tag. I've removed some duplicated parsing code in AssetManager.cpp and replaced them with functions on ResTable_config. The native getLocales function has been changed to return well formed BCP-47 locales as well, so that the corresponding java function can use Locale.forLanguageTag to construct a Locale object out of it. Finally, this change introduces default and copy constructors for ResTable_config to prevent having to memset() the associated memory to 0 on every stack allocation. (cherry-picked from commit 91447d88f2bdf9c2bf8d1a53570efef6172fba74) Change-Id: I1b43086860661012f949fb8e5deb7df44519b854
| * | am 183e5e03: am 49024bac: Merge "AssetManager support for 3 letter ↵Narayan Kamath2014-02-173-45/+347
| |\ \ | | |/ | | | | | | | | | | | | | | | lang/country codes." * commit '183e5e038bd844ac415b14f22df5c476732066c8': AssetManager support for 3 letter lang/country codes.
| | * AssetManager support for 3 letter lang/country codes.Narayan Kamath2014-02-143-45/+347
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - 3 letter codes are packed into the existing 32 bit locale field in ResTable_config - We introduce new fields for script / variant information. Note that we define a "match" between two ResTable_config structures to be purely on the basis of their language & country (disregarding the script and the variant). However, configs with scripts and variants are considered to be more specific than those without. (cherry picked from commit 378c6775a62d9c461cde51f06c1b14bb014c78fd) Change-Id: I7dce82a3fe2412834252723f458826ae41535a78
| * | am aa98fb51: am f991771f: Merge "Use size_t* in AssetManager::createIdmap"Narayan Kamath2014-02-121-1/+1
| |\ \ | | |/ | | | | | | | | | * commit 'aa98fb51a8a0148b72e1662cc42102c6547776ce': Use size_t* in AssetManager::createIdmap
| | * Use size_t* in AssetManager::createIdmapColin Cross2014-02-111-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | ResTable::createIdmap takes a size_t*, and the idmap command is passing in a size_t*, make AssetManager::createIdmap take a size_t*. Should fix the mac build. Change-Id: Idc16dedfe2aa7367c75f89a937a8242d494e8f8e
* | | Merge "Support HardwareLayers in RenderThread"John Reck2014-02-196-27/+114
|\ \ \
| * | | Support HardwareLayers in RenderThreadJohn Reck2014-02-196-27/+114
| | | | | | | | | | | | | | | | | | | | | | | | Also has a few HardwareLayer lifecycle fixes Change-Id: I6308cb05f8f199eed72189ace768013a46815941
* | | | Merge "Make outline and shadow APIs public"Chris Craik2014-02-192-4/+4
|\ \ \ \
| * | | | Make outline and shadow APIs publicChris Craik2014-02-182-4/+4
| | | | | | | | | | | | | | | | | | | | Change-Id: If40dc27b2fdc41c3ed355bc9029474b1344c1a03
* | | | | Merge "Separate spot and ambient shadow strength setting"ztenghui2014-02-193-19/+30
|\ \ \ \ \ | |_|/ / / |/| | | |
| * | | | Separate spot and ambient shadow strength settingztenghui2014-02-133-19/+30
| | | | | | | | | | | | | | | | | | | | Change-Id: I4530e618b09a7f44b5382f8a40646c0ebf5f214c
* | | | | Refcounting is hardJohn Reck2014-02-142-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug: 12994941 Change-Id: I6285ff818fc696dbe504174b98a54cb1d00b445c
* | | | | resolved conflicts for merge of 1cbea39f to masterNick Kralevich2014-02-122-172/+218
|\ \ \ \ \ | |_|/ / / |/| | | | | | | | | Change-Id: Ib33484546c6a03cbc4cd96e97d9d785d68e10700
| * | | | resolved conflicts for merge of dd3d95f1 to klp-volantis-devNick Kralevich2014-02-122-172/+218
| |\ \ \ \ | | | |/ / | | |/| | | | | | | Change-Id: I96c0f0da852a0b3cf8aef9158678d38aa30f456f
| | * | | resolved conflicts for merge of 4ad93639 to klp-modular-dev-plus-aospNick Kralevich2014-02-122-172/+218
| | |\ \ \ | | | | |/ | | | |/| | | | | | Change-Id: I7ad222301ec0b863d48a1a9a839469436c385ea0
| | | * | Merge "Runtime resource overlay, iteration 2"Dianne Hackborn2014-02-112-172/+218
| | | |\ \
| | | | * | Runtime resource overlay, iteration 2Mårten Kongstad2014-02-032-172/+218
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Support any number of overlay packages. Support any target package. UPDATED PACKAGE MATCHING ------------------------ In Runtime resource overlay, iteration 1, only a single overlay package was considered. Package matching was based on file paths: /vendor/overlay/system/framework-res.apk corresponded to /system/framework-res.apk. Introduce a more flexible matching scheme where any package is an overlay package if its manifest includes <overlay targetPackage="com.target.package"/> For security reasons, an overlay package must fulfill certain criteria to take effect: see below. THE IDMAP TOOL AND IDMAP FILES ------------------------------ Idmap files are created by the 'idmap' binary; idmap files must be present when loading packages. For the Android system, Zygote calls 'idmap' as part of the resource pre-loading. For application packages, 'idmap' is invoked via 'installd' during package installation (similar to 'dexopt'). UPDATED FLOW ------------ The following is an outline of the start-up sequences for the Android system and Android apps. Steps marked with '+' are introduced by this commit. Zygote initialization Initial AssetManager object created + idmap --scan creates idmaps for overlays targeting 'android', \ stores list of overlays in /data/resource-cache/overlays.list AssetManager caches framework-res.apk + AssetManager caches overlay packages listed in overlays.list Android boot New AssetManager's ResTable acquired AssetManager re-uses cached framework-res.apk + AssetManager re-uses cached 'android' overlays (if any) App boot ActivityThread prepares AssetManager to load app.apk + ActivityThread prepares AssetManager to load app overlays (if any) New AssetManager's ResTable acquired as per Android boot SECURITY -------- Overlay packages are required to be pre-loaded (in /vendor/overlay). These packages are trusted by definition. A future iteration of runtime resource overlay may add support for downloaded overlays, which would likely require target and overlay signatures match for the overlay to be trusted. LOOKUP PRIORITY --------------- During resource lookup, packages are sequentially queried to provide a best match, given the constraints of the current configuration. If any package provide a better match than what has been found so far, it replaces the previous match. The target package is always queried last. When loading a package with more than one overlay, the order in which the overlays are added become significant if several packages overlay the same resource. Had downloaded overlays been supported, the install time could have been used to determine the load order. Regardless, for pre-installed overlays, the install time is randomly determined by the order in which the Package Manager locates the packages during initial boot. To support a well-defined order, pre-installed overlay packages are expected to define an additional 'priority' attribute in their <overlay> tags: <overlay targetPackage="com.target.package" priority="1234"/> Pre-installed overlays are loaded in order of their priority attributes, sorted in ascending order. Assigning the same priority to several overlays targeting the same base package leads to undefined behaviour. It is the responsibility of the vendor to avoid this. The following example shows the ResTable and PackageGroups after loading an application and two overlays. The resource lookup framework will query the packages in the order C, B, A. +------+------+- -+------+------+ | 0x01 | | ... | | 0x7f | +------+------+- -+------+------+ | | "android" Target package A | Pre-installed overlay B (priority 1) | Pre-installed overlay C (priority 2) Change-Id: If49c963149369b1957f7d2303b3dd27f669ed24e
| * | | | | am be83e4a0: am 38f96e50: Add support for injecting events into ↵Jeff Brown2014-02-123-91/+147
| |\ \ \ \ \ | | |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ActivityContainers. (DO NOT MERGE) * commit 'be83e4a08e909b773ffc06a6e59446deadb8af8b': Add support for injecting events into ActivityContainers. (DO NOT MERGE)
| | * | | | am 38f96e50: Add support for injecting events into ActivityContainers. (DO ↵Jeff Brown2014-02-123-91/+147
| | |\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | NOT MERGE) * commit '38f96e5020b3e82b98fe97b0be363a5ad185860f': Add support for injecting events into ActivityContainers. (DO NOT MERGE)
| | | * | | | Add support for injecting events into ActivityContainers. (DO NOT MERGE)Jeff Brown2014-02-113-91/+147
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Modified ActivityView to inject touch events it receives back into its activity container. The container then injects the event into the input system along with the display id of the underlying virtual display. Enhanced the input system to support concurrent dispatch of touch events on multiple displays which is required for this to work. Change-Id: I9cf1870db3be6f99a52ed9a1e3ceafe42c940093
| * | | | | | Fix build.Dianne Hackborn2014-02-111-2/+2
| |/ / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | At least part of what is broken. Other stuff still seems to be. Change-Id: I367dc0377bd5b4e59d9d9b68f3506bf1d64aa591 (cherry picked from commit 32bb5fae353b5bb6275e75952e89c514c7369cee)
* | | | | | Merge "Revert "Refactor setting an SkPaint onto a hwui Layer.""Derek Sollenberger2014-02-125-13/+18
|\ \ \ \ \ \
| * | | | | | Revert "Refactor setting an SkPaint onto a hwui Layer."Derek Sollenberger2014-02-125-13/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This reverts commit e889298cd6ae1fc0d76bc00d7d12586db03eb261. Change-Id: I4b1d609b2d4280595d40cb10d6c18875c22999f8
* | | | | | | Merge "Refactor setting an SkPaint onto a hwui Layer."Derek Sollenberger2014-02-125-18/+13
|\ \ \ \ \ \ \ | |/ / / / / /
| * | | | | | Refactor setting an SkPaint onto a hwui Layer.Derek Sollenberger2014-02-125-18/+13
| | |_|_|_|/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This CL removes the unecessary JNI call to set the colorFilter on a layer. Change-Id: I9e088f888938d4315745aa618334bfdb9e61343a
* | | | | | Fix build.Dianne Hackborn2014-02-111-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | At least part of what is broken. Other stuff still seems to be. Change-Id: I367dc0377bd5b4e59d9d9b68f3506bf1d64aa591
* | | | | | am be49403a: am 0cd115e1: am 578087e3: Merge "New command line tool \'idmap\'"Dianne Hackborn2014-02-112-1/+26
|\ \ \ \ \ \ | |/ / / / / |/| / / / / | |/ / / / | | | | | * commit 'be49403a0362c18edaeafe59ac09baac14294dee': New command line tool 'idmap'
| * | | | am 0cd115e1: am 578087e3: Merge "New command line tool \'idmap\'"Dianne Hackborn2014-02-112-1/+26
| |\ \ \ \ | | | |/ / | | |/| | | | | | | | | | | | * commit '0cd115e1cebf4c090e7c36a65d4a5b7d1c363c21': New command line tool 'idmap'
| | * | | Merge "New command line tool 'idmap'"Dianne Hackborn2014-02-112-1/+26
| | |\ \ \ | | | | |/ | | | |/|
| | | * | New command line tool 'idmap'Mårten Kongstad2014-02-032-1/+26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Introduce a new tool 'idmap' to handle generation and verification of idmap files. The tool is modelled on 'dexopt', and is intended to be used similarly, notably by 'installd'. See cmds/idmap/idmap.cpp for further documentation on 'idmap'. Note: this commit is interdependent on a commit in project build/ to add 'idmap' to PRODUCT_PACKAGES. Note: the changes to androidfw are only stubs. The actual implementation will be provided in Runtime resource overlay, iteration 2. Change-Id: I7131b74ece1e46c8a9c0a31d103e686aa07da2bb
* | | | | Merge "Move inputservice over to frameworks/native"Michael Wright2014-02-1119-22538/+6
|\ \ \ \ \
| * | | | | Move inputservice over to frameworks/nativeMichael Wright2014-02-1119-22538/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Remove all of the pieces except the PointerController and SpriteController over to frameworks/native in preparation for inputflinger. Those two need to stay in frameworks/base for now because they depend on Skia currently. In the long run they should be merged into either the InputManager or the WindowManager rather than as a part of the inputservice / inputflinger. Try 2. Change-Id: I84259356d3eb8efc5aefb9d6b311b5fc590ea3ed