summaryrefslogtreecommitdiffstats
path: root/tools
Commit message (Collapse)AuthorAgeFilesLines
...
| | | * Skip warnings for some unresolved references. [DO NOT MERGE]Deepanshu Gupta2015-08-251-0/+41
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Some applications rename the newer RTL attributes to the older attributes in order to target RTL locales, but not need to include two attributes everywhere it's needed. For example, iosched renames paddingStart to paddingLeft (among other attributes) for API 17 and above. This leads to hundreds of warnings about missing attributes. This change suppresses such warnings. Also, skip adding unresolved attributes to the typed array. This is more in line with the actual implementation on device, and prevents unexpected warnings/errors/crashes later. Change-Id: Iee616fa6295aa9731ede0cf9dcd6dd2bd1fe8f20 (cherry picked from commit b3e872be9e634c8d1f34d07778ea753880bbf2d9)
| | * | am 669e4969: am 3e875dbb: Fix import order. [DO NOT MERGE]Deepanshu Gupta2015-08-261-1/+1
| | |\ \ | | | |/ | | | | | | | | | | | | * commit '669e4969a7245cf9d1febc5d4e67a0f2063e87fb': Fix import order. [DO NOT MERGE]
| | | * Fix import order. [DO NOT MERGE]Deepanshu Gupta2015-08-251-1/+1
| | | | | | | | | | | | | | | | | | | | Change-Id: I50bfbf4011290683a1c6adb94e0b6fa301dcc75b (cherry picked from commit b9b8aef94e5bad8f5f03f686a2d3d8a09c045a7b)
| | * | am c0fd1316: am e5fa12ad: Fix ParserFactory not initialized error. [DO NOT ↵Deepanshu Gupta2015-08-261-3/+3
| | |\ \ | | | |/ | | | | | | | | | | | | | | | | | | | | MERGE] * commit 'c0fd131642f21eabec570147cf9f4116c900e8a0': Fix ParserFactory not initialized error. [DO NOT MERGE]
| | | * Fix ParserFactory not initialized error. [DO NOT MERGE]Deepanshu Gupta2015-08-251-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | Bug: http://b.android.com/175129 Change-Id: I2111673767e0f62ee910560022b559a177d55abd (cherry picked from commit 996458b76c944f78eee26d7bd8cb4d39303b9119)
| | * | am 6b836cd0: am a287b842: Fix NPE in BridgeContext.obtainStyledAttributes() ↵Deepanshu Gupta2015-08-261-1/+2
| | |\ \ | | | |/ | | | | | | | | | | | | | | | | | | | | [DO NOT MERGE] * commit '6b836cd06b1a2ebe5d31336486bb1b54e42439df': Fix NPE in BridgeContext.obtainStyledAttributes() [DO NOT MERGE]
| | | * Fix NPE in BridgeContext.obtainStyledAttributes() [DO NOT MERGE]Deepanshu Gupta2015-08-251-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Replace direct member access with getter that checks for nullness. Change-Id: I4a56a0ee903ae7d8c89b91d74b128302e1965586 (cherry picked from commit d758e042ce08c46712db3db2d63fc84795028dfe)
| | * | am 91e456d2: am e698bb27: Fix BridgeTypedArray.getType() [DO NOT MERGE]Deepanshu Gupta2015-08-261-2/+119
| | |\ \ | | | |/ | | | | | | | | | | | | * commit '91e456d235256c385a7da1e45f098386bc68e86a': Fix BridgeTypedArray.getType() [DO NOT MERGE]
| | | * Fix BridgeTypedArray.getType() [DO NOT MERGE]Deepanshu Gupta2015-08-251-2/+119
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Also includes some fixes for BridgeTypedArray.getInt() - when value is a color, when value is an octal int, when value is true/false. Bug: http://b.android.com/162438 Change-Id: I0b985ea3437be8018d0e116e7a599843cc7aacd6 (cherry picked from commit 5779ad71eabed3aabaefef1e4749693f8320816e)
| | * | am 8a6295e8: am e481e713: Include Shapes in LayoutLib. [DO NOT MERGE]Deepanshu Gupta2015-08-261-3/+1
| | |\ \ | | | |/ | | | | | | | | | | | | * commit '8a6295e82a2aed91eb26fa15479bf295c2bd79d7': Include Shapes in LayoutLib. [DO NOT MERGE]
| | | * Include Shapes in LayoutLib. [DO NOT MERGE]Deepanshu Gupta2015-08-251-3/+1
| | | | | | | | | | | | | | | | | | | | Change-Id: Ifb32882c478f8d407ad904e224b67fe2bd65dc08 (cherry picked from commit 59164ec0551aa49f497acca81222f304cf4f344b)
| | * | am 66d5f24d: am ba5a02c5: LayoutLib: Support getting resource arrays. [DO ↵Deepanshu Gupta2015-08-2622-14/+244
| | |\ \ | | | |/ | | | | | | | | | | | | | | | | | | | | NOT MERGE] * commit '66d5f24df0c3627028812ee23da8d4f08cc83e5c': LayoutLib: Support getting resource arrays. [DO NOT MERGE]
| | | * LayoutLib: Support getting resource arrays. [DO NOT MERGE]Deepanshu Gupta2015-08-2522-14/+244
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Don't crash when Resources.get<Type>Array() is called. - If the IDE supports it, actually return the value. - Add tests for getArray. - Update test app to latest gradle plugin version. - Switch to using AppTheme for tests, since the tests depend on some custom theme attributes. The AppTheme now inherits from Material.Light.DarkActionBar, so other tests should be unaffected. Depends on a newer version of sdk-common, which fixes the parsing of array resource in value files. Bug: 12372031 Change-Id: I313b61511e98ac1402d75056ebfdeeb005ebb96d (cherry picked from commit 642cff50f8f7a67eed09eac1e56d7133b26a192c)
| | * | am b32e44ff: am a5ffed0b: LayoutLib: Change nullity annotations. [DO NOT MERGE]Deepanshu Gupta2015-08-2630-39/+50
| | |\ \ | | | |/ | | | | | | | | | | | | * commit 'b32e44ff0c5fd410720bb28c87bc9cea83556edf': LayoutLib: Change nullity annotations. [DO NOT MERGE]
| | | * LayoutLib: Change nullity annotations. [DO NOT MERGE]Deepanshu Gupta2015-08-2530-39/+50
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Switch from using tools nullity annotations (com.android.annotations) to android framework annotations (android.annotation). A new sdk-common prebuilt is required for LayoutLib tests. The new sdk-common requires an updated tools-common. The updated tools-common doesn't have nullity annotations. So, instead of adding the annotation dependency, just reuse the platform ones. This also paves the way to include other platform annotations like IdRes etc. Change-Id: I87b8f767d3681d914abe7d1329e26a87f49f50a7 (cherry picked from commit 476e582d2ffdf25102d4c55f8c242baa3d21d37f)
| | * | am 1754824c: am c96ef952: Add documentation about hack in commit: f8ea750455 ↵Deepanshu Gupta2015-08-261-0/+14
| | |\ \ | | | |/ | | | | | | | | | | | | | | | | | | | | [DO NOT MERGE] * commit '1754824c2835d6f3a17c4a2c0ab668991797fcf9': Add documentation about hack in commit: f8ea750455 [DO NOT MERGE]
| | | * Add documentation about hack in commit: f8ea750455 [DO NOT MERGE]Deepanshu Gupta2015-08-251-0/+14
| | | | | | | | | | | | | | | | | | | | Change-Id: I9ce871a67fb67e02e0c4df1eb5c3261ea52a914b (cherry picked from commit 6330971ed293a2777bbdab09288f90ea4b2d0255)
| | * | am 678f0ea2: am b318ff54: Make DatePicker rendering not fail (style search ↵Deepanshu Gupta2015-08-261-26/+32
| | |\ \ | | | |/ | | | | | | | | | | | | | | | | | | | | fix). [DO NOT MERGE] * commit '678f0ea2ba47f06387670e9f75b13637a6446899': Make DatePicker rendering not fail (style search fix). [DO NOT MERGE]
| | | * Make DatePicker rendering not fail (style search fix). [DO NOT MERGE]Deepanshu Gupta2015-08-251-26/+32
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Only cherry picked for the style not found fix. Change-Id: Ied2b71de5b32bcb640bf4ec445e8a39509f800e9 (cherry picked from commit d5b82845450beac2d3c7db9cd80e9fc34d43a297)
| | * | am 2e57c1e2: am cc5e69e4: Inject anonymous inner classes of injected classes ↵Deepanshu Gupta2015-08-264-11/+32
| | |\ \ | | | |/ | | | | | | | | | | | | | | | | | | | | [DO NOT MERGE] * commit '2e57c1e23f43bb0ede6280720559ccc1e866024b': Inject anonymous inner classes of injected classes [DO NOT MERGE]
| | | * Inject anonymous inner classes of injected classes [DO NOT MERGE]Deepanshu Gupta2015-08-254-11/+32
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When injecting classes in LayoutLib (eg. CreateInfo), so that LayoutLib can refer back to the changes, also inject the anonymous inner classes. Without this, the injected classes are not loadable. Although, LayoutLib itself doesn't load these classes, but some tests do. Change-Id: Ib5f6b779ef4d79dec8d614d3dbb26eeac88a1064 (cherry picked from commit bfc9c3bcbe3b7056d3330f754811c1506f181b88)
| | * | am 899daf75: am d7e89906: Update platformDir search in tests. [DO NOT MERGE]Deepanshu Gupta2015-08-261-2/+7
| | |\ \ | | | |/ | | | | | | | | | | | | * commit '899daf759e02bef0de14dc1a14b96b4d71f0b9fc': Update platformDir search in tests. [DO NOT MERGE]
| | | * Update platformDir search in tests. [DO NOT MERGE]Deepanshu Gupta2015-08-251-2/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When trying to find the SDK Platform Dir for LayoutLib tests, also test if the dir from which the tests are run is module dir. Change-Id: Id5c6038d07ebbb122e38f907ad488ed1f2bcde32 (cherry picked from commit 612a05e7e15184b21437731b9aa5db2d1d4fc54c)
| | * | am 2f50403f: am afedbc47: Make Context.getClassLoader() work. [DO NOT MERGE]Deepanshu Gupta2015-08-2611-31/+347
| | |\ \ | | | |/ | | | | | | | | | | | | * commit '2f50403fe0a8a035757b047af00c7520fadb9015': Make Context.getClassLoader() work. [DO NOT MERGE]
| | | * Make Context.getClassLoader() work. [DO NOT MERGE]Deepanshu Gupta2015-08-2511-31/+347
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Context.getClassLoader() is used by the LayoutInflater and can be used by custom views. However, when called from the LayoutInflater, this needs to return only the Framework classes. This is so that the IDE gets a chance to instantiate the custom views, which helps in better error reporting and better fallback in case of exceptions, like MockView. To workaround this need of the same method returning different results based on where it's called from, the method call in LayoutInflater is renamed to getFrameworkClassLoader() and the new method is injected in Context. The implementation of getFrameworkClassLoader() maintains the existing behaviour of getClassLoader(). Context.getClassLoader() is now modified to return classes from both Framework and the app namespace. Also, update the list of packages to search for Framework views. Change-Id: I1a6be4aa1fc5c1c5520b5440a348a52f10b6eb3b (cherry picked from commit f8ea750455eec81e4e6d877b3e18e29a86d4ec95)
| | * | am de3ac8f9: am 92480a9a: Fix include tag rendering. [DO NOT MERGE]Deepanshu Gupta2015-08-262-11/+11
| | |\ \ | | | |/ | | | | | | | | | | | | * commit 'de3ac8f9fc5987ac1f1223da02b4275fdbae3d56': Fix include tag rendering. [DO NOT MERGE]
| | | * Fix include tag rendering. [DO NOT MERGE]Deepanshu Gupta2015-08-252-11/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | A missing catch clause caused rendering to be failed when there is an include tag that doesn't specify layout_width and layout_height. Also improve the error messages to make debugging easier next time. Change-Id: I617762636973a010b34da167c7b5fcd328b7d178 (cherry picked from commit 21b564573327b1ed2f7e06146b8a01c47ede3089)
| | * | am 50e1406a: am f6b08547: Show better error message for color attr not ↵Deepanshu Gupta2015-08-261-0/+5
| | |\ \ | | | |/ | | | | | | | | | | | | | | | | | | | | found. [DO NOT MERGE] * commit '50e1406a4ad668179a9a3d28c58d68c0eee44237': Show better error message for color attr not found. [DO NOT MERGE]
| | | * Show better error message for color attr not found. [DO NOT MERGE]Deepanshu Gupta2015-08-251-0/+5
| | | | | | | | | | | | | | | | | | | | Change-Id: I1ca32989522d30fec336eb607ee81f9e5cb5f48f (cherry picked from commit 5f1bf496948fb6383ae17e5467a26a00489d7564)
| | * | am 81990c3f: am b1370c26: Fix build: udpate parser factory method [DO NOT MERGE]Deepanshu Gupta2015-08-261-2/+11
| | |\ \ | | | |/ | | | | | | | | | | | | * commit '81990c3f988369c755590288b93508e30024c56c': Fix build: udpate parser factory method [DO NOT MERGE]
| | | * Fix build: udpate parser factory method [DO NOT MERGE]Deepanshu Gupta2015-08-251-2/+11
| | | | | | | | | | | | | | | | | | | | Change-Id: I78ad55bc924427b44451ec32fbd1032d6cd77544 (cherry picked from commit 3dc19883c571a829c36aa603c04a55c91b00dd57)
| | * | am 0a07bb95: am aa729889: Don\'t keep LayoutlibCallback reference. [DO NOT ↵Deepanshu Gupta2015-08-263-86/+14
| | |\ \ | | | |/ | | | | | | | | | | | | | | | | | | | | MERGE] * commit '0a07bb95a1dd94c3457860a934d3ee546919cff2': Don't keep LayoutlibCallback reference. [DO NOT MERGE]
| | | * Don't keep LayoutlibCallback reference. [DO NOT MERGE]Deepanshu Gupta2015-08-253-86/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Switch to the newer API that enables keeping a reference only to the ParserFactory which is a much leaner object as compared to LayoutlibCallback. Conflicts: tools/layoutlib/bridge/tests/src/com/android/layoutlib/bridge/android/BridgeXmlBlockParserTest.java Change-Id: I9b7afd93226db23786a00b2951cbf5ae5b8f3e5f (cherry picked from commit f2d408b51debadca830eefbf8131185ac55ce699)
| | * | am bbbdc2ad: am 5c90c4f4: Remove kxml dependency [DO NOT MERGE]Deepanshu Gupta2015-08-267-43/+151
| | |\ \ | | | |/ | | | | | | | | | | | | * commit 'bbbdc2ad8939c28828a8441c0b24812c53a9eb66': Remove kxml dependency [DO NOT MERGE]
| | | * Remove kxml dependency [DO NOT MERGE]Deepanshu Gupta2015-08-257-43/+151
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Create XmlPullParser using callback provided by the client. This enables clients to choose which XmlPullParser implementation they want. Change-Id: I9ad97a4777820cdbe5c8fc3716f74ddec9065c70 (cherry picked from commit 78af25584633462e4ab8cf9bafe10f43e7cb2d83)
* | | | power: Add CM performance managerSteve Kondik2015-11-011-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Squashed commit of: power: Add CPU boosting interface * Boosts CPU using Power HAL for the given duration. * Duration is given in microseconds. * Power HAL must implement POWER_HINT_CPU_BOOST. Add CPU boosting hooks * Send boost hint during scrolling * Still relevant on even high-end hardware perf: Send a boost hint when a key on the navbar is pressed * A lot of stuff happens, especially when invoking recents. * Get ahead of the storm by sending a boost hint before kicking off the animations. perf: Send boost hint during initial launch perf: Per-app performance profiles * Performance Profiles is going to grow into a much more powerful feature which can apply advanced optimizations or power saving techniques depending on both the state of the hardware as well as the current applications in use. * Refactor the original code and move it into PowerManager so that it's managed from the same place. * Implement "automatic performance profiles". This feature will automatically select a profile when specific activities are running. Currently this list is static and engages performance mode for several benchmarks (trollface). * Added support for a new power hint, POWER_HINT_SET_PROFILE. Currently, these profiles are fired using a property trigger in init. This is easy, but the PowerHAL can do more. * Moved the setting to Settings.Secure and also wrapped calls to the service in the DEVICE_POWER permission. Nobody should mess with this stuff except the system. * Powersave profile will automatically activate Android's built-in low power mode. * Original patch by Jorge Ruesga TODO: * Implement API for per-app configuration by user * Quicksettings tile perf: Boost during animations * Reduce animation jank by preemptively boostin the CPUs. * Original idea taken from CodeAurora, modified for CM perf control. systemui: Boost when expanding the notification shade power: Add a new power hint for application launches * Some devices may prefer a different behavior when launching apps, particularly to avoid priority inversion issues. Add support for a new LAUNCH_BOOST hint which can be handled in the PowerHAL. power: Boost improvements * Boost when opening the panelview * Adjust launch boost to handle relaunch correctly PowerManager: change performance profile when disabling battery saver We need to be sure to update the performance profile when the system disables battery saver mode. This fixes the perf tile becoming out of sync - changing it to low power mode triggers power saver, but turning power saver off does not trigger the tile. Ref: CYNGNOS-1156 Signed-off-by: Roman Birg <roman@cyngn.com> base: cache power profiles support Signed-off-by: Jorge Ruesga <jorge@ruesga.com> perf: Add support for additional power profiles * Add support for bias power (efficiency) and bias performance (quick) modes if supported by a device. Change-Id: Id3a53eaacdaf6ae93ee899835cfcb21279d35ad4
* | | | aidl: Support for duplicate methods having different argumentsSteve Kondik2015-10-303-8/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add support for duplicate methods in AIDL when they have different ids, only when ids have been manually assigned to all methods. * This is useful for backwards compatibility. Change-Id: I9612d1633c48e31fe65b966777366a9a6b3ebf5c
* | | | AAPT: Build aapt for deviced34d2015-10-271-0/+25
| | | | | | | | | | | | | | | | Change-Id: I9666cb18120675d65ccdf1c1eba2f4bbf6707041
* | | | Fix memory leak in AAPTd34d2015-10-271-4/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Always delete your shit! Change-Id: If14ecedd6cced46c96bbe670b1e337def0a7edf5 REF: CYNGNOS-701
* | | | Clear Theme in System UIAndy Mast2015-10-271-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When SystemUI first starts an android theme object is created which contains references to the currently applied CM theme. When the theme is changed to system, the theme remains in memory with old references to the prior applied theme. (See mPackages in ResTable::Theme) This patch introduces a recreate theme method into Context so that SystemUI can recreate its own theme object. Change-Id: I086a76afa6f456a69c0390573bc8af2eafa4fb4e
* | | | Themes: Port to CM13 [1/3]Andy Mast2015-10-2620-158/+908
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Themes: Aapt port Id: I106d447daf7935bada65e78911d8973ce0ca27ae Themes: Port our additions to idmap Id: I2e47cc23de4e7c0b884cccbd87c7d77079ac6824 Themes: remove legacy theme support from idmap Id: I17dfe35f9985d8cef790b26a8bcda738ea65917c Themes: Forward port changes to Installer.java Id: If64e856773e50f5ed74f2358e0c590abad724689 Themes: Add clean spec for aapt Id: I68f5f63f7e83b99230860dd2d8646e96da484b62 androidfw: Port CM overlay contributions Id: Id7b7f5f35011922c668fcea3a8aec5b42bd28653 androidfw: Port addOverlayPath and removeOverlayPath Id: I279db083af28fd8941f3227f2a7512ff094742c1 androidfw: Port addCommonOverlayPath Id: I12d2fe05a04f6a7e553c330505a475346374b507 androidfw: Port addIconPath Id: Ide3db28cde0c7f93edd9e7ad626ebace8d4105cc androidfw: Allow package ID to be overriden at runtime Id: Ieca3a0ae070a6c0ad0cf2b73b5944d83397d08b9 Aapt: Zip Parsing Test Cases w/ Refactoring Id: I28f9115700e186136432138d228111ebcfbd0480 Themes: Update tests for idmap Id: I3dae5bd376d122eab397863378599ae0ac7c6734 androidfw: Add test case for overriding package id Id: I2668c529e24a55cd6bc8437406fc284b853a75e7 androidfw: Add tests for bags The overlayOverridesStyleAttribute will currently fail since our changes to allow theming styles is not currently implemented. Id: Idfacc4382baf4152c839799a22b6cbe015ef2197 androidfw: Don't consider package ids 0x60 and 0x61 as dynamic Package IDs that are not 0x01 (system) or 0x7f (app) are treated as dynamic references. Overlays are assigned specific package ids that fall within the region of shared libraries. This patch treats them the same as system and app resource packages. Id: Ieecaa889bed50490796351302405a38f77c84f4e Theme Parsing & Info Id: I3583d7e8ca704402e3d8c6e1c7cea1645b91c06f Port ThemeUtils and its dependencies This is pretty much copy/paste from cm-11.0 Id: I406860a259136ccca107b981aca0369851df445e Themes: AndroidManifest and Intent port Id: Ib97e8539301d20d120fd8b49891fdaae8205fe42 ComposedIconInfo Port (w/ stubbed IconPackHelper) IconPackHelper is stubbed out so that PMService can reference it, we'll need to port the Resource stack before porting the implementation. Id: I59b680511de525e1d375a4f3be04347686b5e81b Port PackageManagerService and other dependencies Id: I11629d1e5eee21e01c060bc6c0393aae96034b69 Themes: Add in ThemeService See also: external/selinux. The policy must be added in order for the service to start without a security exception. Change-Id: Ic6f64796b264e430e9706a17a3fd2a35085fd1ca TODO: ThemeService / Keyguard interaction TODO: SystemServer - AppsLaunchFailure Add AppsLaunchFailure Id: I09a3826f89c62cb898866408e807f269616f48fc androidfw: Update bags tests The overlayOverridesStyleAttribute was updated such that it does not check the attribute of the theme before adding the overlay. The bag is cached on the first call and the next call, after the overlay is attached, returns that pre-computed bag so the test would always fail. We now simply check that the attribute matches the one in the overlay, and if so then the test passes. This patch also adds a new test to check that an overlay can reference and access resources that are unique to the overlay. Currently this test fails. Id: I3892df3f0d9443a73eaa11b3d5e97cfe86620a73 androidfw: Add test for referencing overlay styles as parents Id: I4fa3bd447c888e96176955924ebe7ee5c784ab55 androidfw: Allow referencing and retrieving overlay resources This patch allows a theme to reference it's own resources. Overlays get their own group which contains those resources that are not idmapped. Idmapped resources end up in the target's group. Id: Ibc119ddcdb35d44a8afec3c6152bcab2909cda18 androidfw: Fill in missing attributes from overlay style Id: I74051b379b73c728c6a2aa4bc62f3cd268a40b53 Protect windowNoTitle and windowActionBar attributes This patch creates a new method to define "protected" attributes. These are attributes like windowActionBar which should not be modified by a theme. Some apps (eg gmail) use the appcompat library which has its own Actionbar classes. When an app uses its own Actionbar it must not include the default actionbar which is achieved through the windowActionBar attribute. Some themes may try to change these attributes, which can will cause the app to crash. Id: Ie3bb7285eed09f3f13facf9d142ea9eb83796eec Themes: Use SYSTEM_DEFAULT in ThemeService Id: I52794dd98ca2f64aa50046ecdd7f79f27c21dd98 androidfw: Test missing parent attributes are merged in This test checks that an overlaid style contains any attributes that were in the original style but omitted in the overlaid style. Id: I6b496ef2eb0a7ef27b4fafdfda5bdf7ccffad989 androidfw: Add test case for protected attributes For this test to pass a protected attribute, such as windowNoTitle, must be equal to the original and not the value specified in the overlay. Id: Ic03f11214a1fc4139e3c48d7e72694a80f819023 Themes: Attach theme and icon resources from java Id: I9ffa0ce96a4af603b78b32d6b190f9698d3e4b4f Themes: Icons, icons, icons! Let there be icons. Legacy icons and composed icons are included in this patch. Id: I9fedafa270f1c4dc30c9c8ffd4cf619895e688e6 Themes: Retrieve explicitly themed context and resources Id: I4e41c251aee47361b183b60089bf5666540f653e Themes: Add themeChange config change to manifest Id: Ia84c0089a79637906e4f75fa38a56e8ff3b21a2b Themes: Register THEME_SERVICE in ContextImpl Id: I608a0b65c7e2ff0d69bae7bf343916f2b985f4a0 Themes: Remove legacy theme support Id: I25887843d31f705425aa40f9a23482fd2cafaef8 androidfw: correctly index paths in idmap Since we added the mtime values for the target and overlay, the indices are increased by two. Id: Ie0f5474d425945d58a12021cd2739240d2e98c0a androidfw: Fix opening assets from theme resources Id: Iedb51163a62b046cdf7fda1ad1b55cc1ee409047 Themes: Consider overlaid resource as "best fit" Id: Ife8342a49eb9502be52f085f88161b113332e9e6 Themes: Save and restore theme config Id: I3fcd445fb458aa6ed09397c05df6eb66d9be7235 Themes: Let ThemeService process additional themes Id: I45837f26948367d5cc6c520e8c53f9da60bd1fda AAPT: Don't applyVersionForCompatibility on android When compiling themes with aapt, we do not want aapt to call applyVersionForCompatibility as this causes the entries in the resource table to have an incorrect path. Id: Ie2c69533b3659c7b7458d6e4b7bdc84946d1be8e androidfw: Don't consider package id 0x5f as dynamic Package id 0x5f is reserved for common overlay resources and needs to be reserved so that it is not considered a dynamic. Id: Id27b8e0e2231ee8541365274d512e347afcfd05b AAPT: Include resources.arsc in apk Common resources needs the resources.arsc in the resources.apk so that it can be included when processing other overlays. Without it, common resources cannot be referenced. Id: I4aee29f660e4a0aa1909240dc0ca5680f0a2d135 Themes: Add keyguard wallpaper support to theme service Id: Ib8f8acd55ab4d2b6ef06ee0a630dc50c4f870beb Themes: Don't pre-process non .9.png images When creating a resources.apk we do not need to pre-process the normal .png images as those can be referenced directly from the theme's apk. Id: Iaf846a03ead9ecb1e68c040eac6e0ecbfc6e5875 Themes: Adjust offsets for idmap hashes Idmap now has a header so the indices to the hashes need to be incremented by one. Id: If1fb183cc116ef9e3ad6cb4e17b6e44763e9e72a Themes: Use single ThemeInfo instead of an array We only ever used the first index so there is no need to use an array of ThemeInfo(s) Id: I9e2af076bc17396a0c978be3c0d31c41277db3df New converter for Kitkat -> L fonts.xml L introduced a new fonts xml format. Its great, but our themes will keep using hte old format. This provides a converter and test cases. The parser was taken from the chooser and remains mostly unchanged with the exception of a getName() helper method. Id: Ia1d42c9e50eb7b52d2d98fe6dbeee530bef3adc2 Themes: Port theme bootanimation support to CM12 Id: Ie016884b0e3b77e08732308923ac44e0975e0116 Resources: Clear drawable cache Id: I04b5b78cce703194a2baeff9c51d2e4733b8ccc9 Font switching Id: Ia43060a7db624102cdcd9b0d9dc7148441401584 Zygote changes Id: Ie3681cf0d2b9929661cf1214e899cef9a5f37471 Recreate String Blocks Id: I4747ebd1a0908b76ae7214b0584948353d426fc5 add a getter for the x and y offsets of the wallpaper window Id: I35294bcac664e85cc5d344b50b5c4335a60d3f37 Themes: Don't spam logcat with CREATING STRING CACHE When processing resources with AAPT on the device, it spams the logcat with warning messages about CREATING STRING CACHE. Change ALOGW to ALOGV so it will only show when verbose logging is enabled. Id: I5b591c3336e176dd71cebe672d60721c29651b00 SystemUI: Audio Volume Panel Id: I78c471864af401b274597339b8451e65931fdb32 AmService uiContext port Id: Ida251d7f80797b0ec78b3d20cf60a795d6c4c1f0 Cleanly detach theme assets Types from an overlay are added to the target group's TypeList and need to be removed when the overlay assets are detached. Failing to remove these types results in resources not being retieved due to the erroneous types. Id: I4a9c624e30309e61fce905ced45c55acd3ac4845 Themes: GlobalAction Port Id: Ifd87e04f94a284e77f1c48bec9fd75d69c45c47e Themes: Do not store forward locked themes in ASEC containers If a theme is in a asec container and is applied, when the device is rebooted the device will get stuck in a nasty boot loop since the theme resources must be read and the asec container is not ready yet. Id: I1d93d8175d5c40b34c222974960c43352012a5ad Use systemui's applied theme for notifications. Notifications contain RemoteViews which are inflated using the application's context for which this notification belongs to. This can look out of place if SystemUI is using a different theme than the rest of the system. This patch will use SystemUIs theme when inflating the RemoteViews, giving us a more consistent look in the notification drawer. Id: I9514ce7fcc4858bad3d3c4190f55c1f5a1441d7c SysUI: Add theme support This ports over the changes needed to facilitate a theme change in SystemUI. Id: I673fb79db90994371a9c0627746a97414132f0ba Themes: Allow composing of VectorDrawable Base icons can be vector drawables. This patch allows them to be composed. Currently, VectorDrawables cannot have filters applied since they do not have a method to get the Paint object like BitmapDrawable and PaintDrawable. Id: I762c8e1f4d1c945b8ebc164bbd7944120324bd42 Themes: Add target api to ThemesContract This will allow the ThemesProvider to track the api a theme was built for. We may want to let the user know when a theme may not be designed for the version of CM installed on their device. Id: Idf0e6cef0ce9ac5e221ce5ff7e0b155ae0258d5f Access Themed ResTables from compiled theme apk [1/2] Before this patch the ResTable for a theme/app was created and accessed seperate from the compiled APK. Since the compiled APK has its own copy of the resources.arsc, we can just reuse the table in the APK instead. Id: I106a2434e74784bc04014831098f49fe128bc7e2 Themes: Port AppsLaunchFailureReceiver to CM12 Id: I5c3265e64aef1536ba5fceed0ec89082e786b686 Themes: Bump idmap hash version to 3 Due to changes in idmap, we need to force the recreation of resource cache when upgrading from CM11 to CM12. Id: I25c1e2c598bca889818e2d685651e3214c30ab3c Remove debug logs Id: Ia5cfa83ddf6da195e20526a94ba154864b8d0ecb Send target sdk version to aapt [1/2] If vector drawables are used in a theme we must have a minSdkVersion of 21 passed to aapt or else aapt will Segfault. Id: I687ee146f9f80543bbcdd06d93891cb3b23001c4 Add missing imports to ActivityThread Id: I09fe07807ed824ccb938e0e174b06653c613c403 Themes: Dynamically add/remove content from StatusBarWindow StatusBarWindowView has logic for resizing and fading content which doesn't always behave correctly if this view is not the root. Rather than create a container, this patch uses the existing StatusBarWindowView as the container and the inflated status bar is then added to this view. Id: Ia93d25a589419145f95d75b1b56eb3c2f300f935 Themes: don't use preloaded drawables when themed If we have themed assets we should try and load those rather than pulling from the preloaded drawables. This allows us to continue and preload drawables in ZygoteInit while maintaining the ability to theme those preloaded assets. Id: I68cfc099d328ece0791b6d0e5cf11d07097fd1fd CM11 -> CM12 Upgrade [1/3] - Introduce a new secure setting "THEME_PREV_BOOT_API_LEVEL". This field will always be set to the previous api level for themes. So if we upgrade from CM11 to CM12 this value will differ from the current API causing an upgrade to trigger - When moving from CM11 -> CM12, unapply incompatible overlays - Rename "holo" to "system" in secure settings themeConfig - Provide a testing downgrade script to put the secure settings db into a state similiar to CM11 (at least for themes) Id: I71be2c0ad83e60ffe8c574f913e5eaecb9700045 Themes: Add constant for system target API Id: I0a6caf65c9e8b0feeef1ae848ba4683235304e8c Change-Id: Ide6d4e1daf535a54efb1ec7cf39ef8b2fb8cf272
* | | | keyboard: re-add code to detect lid state and handle lightsMichael Gernoth2015-10-181-0/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Depends on libhardware patch for the light ids: http://review.cyanogenmod.org/77944 This squashes the following commits from cm-11.0 and updates them for cm-12.0: From: Dave Daynard <nardholio@gmail.com> Date: Tue, 19 Nov 2013 18:22:45 -0500 Subject: keyboard: re-add code to detect lid state keyboard: re-add code to detect lid state This was lost in the cm-11 merge. Without this, a change in lid state isn't generated to light up the keyboard backlight Change-Id: Ief35cebcb62da13afe1ae7531d69ab58e196be9e From: YuanQY <yuanqingyun@gmail.com> Date: Fri, 8 Feb 2013 10:59:22 +0800 Subject: Keyboard light: Fix the physical keyboard not light when Keyboard light: Fix the physical keyboard not light when it's visiable. Change-Id: I595afd3cb6b422a17ae0f6ec20aa51979db13810 From: tbalden <illespal@gmail.com> Date: Sun, 31 Mar 2013 18:33:53 +0200 Subject: keyboard: adding functional alt/shift lights keyboard: adding functional alt/shift lights This is useful for devices that has QWERTY keyboard and leds for the Alt/Shift (Fn/Caps) keys, like htc doubleshot. Change-Id: I66ebc2d881438f5b51db77eaa885421e65a7da0d
* | | | androidfw: Declare and load cmsdk resource package w/ id.Adnan Begovic2015-10-121-2/+3
|/ / / | | | | | | | | | Change-Id: I63b8f3e4a938896dd21999c5b4470573a1da2e52
* | | AAPT: Fix regression in resource versioningAdam Lesinski2015-08-144-19/+94
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | With a set of resources with the following configurations: () (land) the regression caused any resources that needed to be versioned in configuration () to be lost. Bug:23038206 Change-Id: I2f1b0313fb780ac241e7aaa487cb37dfb79c36aa
* | | Merge "Make DelegateManager thread safe" into mnc-devDiego Perez2015-08-111-6/+10
|\ \ \
| * | | Make DelegateManager thread safeDiego Perez2015-08-071-6/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We have been seeing crashes on the Theme editor related to an assertion on getDelegate when the object does not exist (http://b.android.com/181951). When debugging, the crash was happening without seeing a previous call to removeJavaReference. This seems to completely remove that crash. Since the DelegateManager can be called at least from two threads (main thread and the finalizer), it should be thread safe. Bug: http://b.android.com/181951 Change-Id: I1b28f863ff198f8592f170a98f9de391b2ac3ea2
* | | | LayoutLib: Switch SimpleDateFormat to icu.Deepanshu Gupta2015-08-068-14/+227
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Use ICU's implementation of SimpleDateFormat in LayoutLib. The format patterns used are not supported by java.text.SimpleDateFormat. The change required adding a mechanism for promoting visibility of fields in the framework in the create tool. TODO: Add additional tests in the create tool for this new functionality. Change-Id: Id0f4be41f9731c42a28919c32cc5ef271a656982
* | | | Replace Locale.getDefault with custom impl.Deepanshu Gupta2015-08-063-2/+22
|/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | In LayoutLib the default locale should always be the locale set the rendering params. This change replaces all calls to Locale.getDefault in the framework with calls to AndroidLocale.getDefault() which tries to find the locale from the current context, but falls back to the original call. Change-Id: I496b35dcfc17fd61fedee21c7495541ab870b1fc
* | | Make getInt in BridgeTypedArray accept empty String.Deepanshu Gupta2015-08-041-5/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The XML editor already warns about the empty strings in places where an int value is required. There's no need to show another warning for it in the rendering panel. Also, the rendering might have also failed when the empty string is encountered. Try an continue the rendering, because no rendering state is really bad. Change-Id: I85106f37e4462f237e85f0b065b4ce8a4bfabf4d
* | | Fix layout mirroring.Deepanshu Gupta2015-08-041-0/+1
| | | | | | | | | | | | Change-Id: I7db398aa2d11dac1210e84922138f78f0c23bb9b