summaryrefslogtreecommitdiffstats
path: root/tools
Commit message (Collapse)AuthorAgeFilesLines
* Fix nine patch outline radius computationChris Craik2014-08-151-3/+7
| | | | bug:16852714 Change-Id: I475154c0f324fd2e2c8991415e0d8240c75663d8
* Ensure that split names are validAdam Lesinski2014-08-143-2/+20
| | | | | | | Generate valid split names for resource splits. Validate split names for features. Change-Id: I3040438af0156778c2bd66ddeffdf62fe9dcc9fc
* Use different unlock animation when going to full shadeJorim Jaggi2014-08-141-1/+2
| | | | | | | | | Also fixes a bug that the notify flag was not reset, and fix the transition for the phone/camera affordance (in these cases, no animation is needed). Bug: 15991916 Change-Id: Idbb4fa40f86bda597cd66cc38da838ef4f75514d
* Merge "Update intelliJ copyright profile" into lmp-devDeepanshu Gupta2014-08-141-1/+1
|\
| * Update intelliJ copyright profileDeepanshu Gupta2014-08-131-1/+1
| | | | | | | | Change-Id: Ib9386b686cb24e1f187d0b636b59b4b13d59bbcd
* | Merge "Add KitKat wifi and battery icons." into lmp-devDeepanshu Gupta2014-08-1449-94/+179
|\ \
| * | Add KitKat wifi and battery icons.Deepanshu Gupta2014-08-1349-94/+179
| |/ | | | | | | | | | | | | | | | | This adds wifi and battery icons for Gingerbread and KitKat. This also improves the icon resolution code by extracting it out in its own class. The resources are now organized such that each API level resource directory is used as a backup for all API levels lower than itself. Change-Id: I937c83638adcc9fa8cd407e0a3023c3abe95530d
* | Merge "Whitelist fonts instead of blacklist." into lmp-devDeepanshu Gupta2014-08-121-16/+37
|\ \ | |/ |/|
| * Whitelist fonts instead of blacklist.Deepanshu Gupta2014-08-121-16/+37
| | | | | | | | | | | | | | A list of all fonts bundled with the SDK is generated. Load this file to know which fonts are missing from the SDK. Change-Id: I1554f1baec842ccdde3b21a93008437e9bac9353
* | AAPT: Dump an APK's split name attributeAdam Lesinski2014-08-121-1/+8
|/ | | | | Bug:16919497 Change-Id: I109e21bff9e4a64a10f48dce7f2d41102b32ee1d
* Merge "Improve error reporting when renaming fonts." into lmp-devDeepanshu Gupta2014-08-121-2/+3
|\
| * Improve error reporting when renaming fonts.Deepanshu Gupta2014-08-111-2/+3
| | | | | | | | | | | | Log a better error in case of invalid input. Change-Id: Ifb122c1cc624111769e650439aa24290155dbbc4
* | Merge "Don't show warnings for fonts not bundled." into lmp-devDeepanshu Gupta2014-08-124-1/+54
|\ \
| * | Don't show warnings for fonts not bundled.Deepanshu Gupta2014-08-114-1/+54
| |/ | | | | | | | | | | | | | | | | | | | | | | | | The extended font set, used on Nexus 5, new Nexus 7 etc., uses OpenType CFF fonts which don't work well with Java. These fonts are deliberately excluded from the SDK build. This change skips the warnings for the missing fonts. However, we still show warnings for other fonts that failed to load. If the set of fonts bundled with the SDK changes, we will need to update the list of missing fonts in FontFamily_Delegate.java. Change-Id: I3197b5350d048daa09512e8024188909179b1799
* | Resolve color xml attributes properly.Deepanshu Gupta2014-08-121-0/+4
|/ | | | | | | | | | | Color attributes were not being converted to int properly. The conversion to int was a simple string to int using base 16. This change resolves the colors as per #RGB, #ARGB, #RRGGBB or #AARRGGBB format depending on the length of the attribute. All values that begin with '#' are treated as colors. Bug: http://b.android.com/73845 Change-Id: I8ad089b821af1e290b9b95771b50213fe2fdd784
* Merge "AAPT support for feature splits" into lmp-devAdam Lesinski2014-08-096-158/+226
|\
| * AAPT support for feature splitsAdam Lesinski2014-08-046-158/+226
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This change allows the developer to add a base package for which to build a feature split. The generated resource types will begin after the base APK's defined types so as not to collide or override resources. Multiple features can be generated by first choosing an arbitrary order for the features. Then for each feature, the base APK and any preceding features are specified with the --feature-of flags. So with a base APK 'A' and features, 'B', and 'C', 'B' would be built with aapt package [...] --feature-of A [...] and 'C' would be built with aapt package [...] --feature-of A --feature-of B [...] Change-Id: I1be66e3f8df9a737b21c71f8a93685376c7e6780
* | Have styleable indices be non-final for library projectsAdam Lesinski2014-08-071-3/+8
| | | | | | | | | | | | | | | | | | | | Invoking aapt after merging resources from a library project may yield a different ordering to styleable arrays, so have the indices be non-final too. Bug:16842410 Change-Id: I0432bea03dc4312d5908a770fc70a11f0a1596ae
* | Add font rename script to rename one font only.Deepanshu Gupta2014-08-071-44/+27
| | | | | | | | | | | | | | | | | | This change adds a script that renames only font at a time. This helps in writing better Makefile rules and passes the job for parallelization to the make rather than doing it in python which doesn't support ctrl-c properly. Change-Id: Icd380e3cc5d744260d6a9f497aa65a1a6c829c2e
* | Create a copy of the build_font.pyDeepanshu Gupta2014-08-071-0/+224
| | | | | | | | | | | | | | The copy will be modified to support renaming only one font at a time. This is done in two steps to improve the diffs. Change-Id: I47283745c25882283f0464c17e603396a8c9141e
* | Merge "Modify base Configuration used for aapt dump badging" into lmp-devAdam Lesinski2014-08-061-0/+1
|\ \
| * | Modify base Configuration used for aapt dump badgingAdam Lesinski2014-08-041-0/+1
| |/ | | | | | | | | | | | | | | Some apps don't provide defaults when providing icons for different screen sizes, so use a configuration that has a screen size set to NORMAL. Change-Id: If4b9eebd37e5d2e2991301d09ff5c39dd41c1565
* | Fix buildSvetoslav2014-08-051-0/+6
| | | | | | | | Change-Id: I96eec52472bec122074b0ec2ee051c1b55eaa8f4
* | DO NOT MERGE: Revert "Update makefile for clang host build."Hui Shu2014-08-051-2/+2
| | | | | | | | | | | | | | | | This CL is somehow merged to lmp-dev and breaking Mac builds. This reverts commit 132ed0f2b45acf982bbd06616f14164b612661d1. Change-Id: I5a3472c0e2924db5c605340d7abdd407b956dcc2
* | Get filename from File fasterDeepanshu Gupta2014-08-051-9/+6
| | | | | | | | | | | | | | | | Use the direct call from a File object to get the filename instead of going through Path which depends on Java 7 making the LayoutLib tests incompatible with Java 6. Change-Id: I815895eedbc10245ee09bdb53b11e5548b076aad
* | Skip loading otf fonts on Java 6Deepanshu Gupta2014-08-052-3/+29
| | | | | | | | Change-Id: I9668b84812e9be333d10603657dd911024fc292d
* | Add SystemProperties native method implementations.Deepanshu Gupta2014-08-052-1/+55
| | | | | | | | | | Bug: http://b.android.com/73046 Change-Id: Ia695e7beb81f426509b646cfd929201f7e0a4ade
* | LayoutLib: Use ICU's line break algo.Deepanshu Gupta2014-08-052-0/+56
| | | | | | | | Change-Id: I7e5b0ab7423a72f5a4b0e1163d0a537f0b03ba07
* | Replace more Locale methods.Deepanshu Gupta2014-08-043-35/+86
| | | | | | | | | | | | | | This change replaces some methods of java.util.Locale. Some of them were added in 1.7 and some are not present in the Desktop VM. Change-Id: Ifdf8451bb2acf55e01dce8b5e15c40c8160107cc
* | Fix DelegatesDeepanshu Gupta2014-08-047-187/+185
| | | | | | | | Change-Id: I2b6a6b679b7a5b2532b76b723155bc2763b70768
* | Fix LayoutLib Create tests.Deepanshu Gupta2014-08-048-32/+41
| | | | | | | | Change-Id: Ica3efe417d54da7dc74b21d28215199d37600744
* | Add testing framework to LayoutLib.Deepanshu Gupta2014-08-0465-26/+1965
|/ | | | | | | | | This change adds an end to end test which loads the framework resources and a test app and ensures that no exceptions or warnings are thrown. The change also adds project configuration for intelliJ. Change-Id: I7b67c0f1a2af2dac95df7f3231cab537b9826d7d
* Merge "Add outline alpha" into lmp-devChris Craik2014-07-311-19/+20
|\
| * Add outline alphaChris Craik2014-07-311-19/+20
| | | | | | | | | | | | | | | | | | | | bug:16140822 bug:16566746 This allows background drawables to alter the opacity of a shadow being cast with their own alpha values. Change-Id: I49698cc7c1bf4b2b55ffe2f82899543ca62bc61c
* | Fix deadlock window manager and device policy manager.Sander Alewijnse2014-07-311-1/+1
| | | | | | | | | | | | | | Removed all communication from wm to device policy manager. Added initialization of cache in wm by dpms. Change-Id: Ifa0b8bfcd625464b156d5cc0fb66d342deda1c27
* | Fix classpath for AndroidLocaleDeepanshu Gupta2014-07-311-1/+1
| | | | | | | | Change-Id: I9af9ac05ec26f12529d51e566bf38789a2579390
* | Add shared library support to aapt dumpAdam Lesinski2014-07-301-10/+17
|/ | | | | | | | AAPT dump should be able to handle dynamic references that often come with shared library resources. Bug:16678251 Change-Id: I6c8cd943145aab20ca9db9694c8c433b3c64279b
* Fix large memory corruption in AAPTAdam Lesinski2014-07-301-4/+12
| | | | | | | | | When assigning a new string pool to a package, don't release the reference to the old memory immediately, as the cleanup code that is called after references the old memory. Bug: 16155257 Change-Id: I3eaeb81191b71a282a0ef82856023f09707f1b17
* Merge "Have AEP GL feature depend on GLES 3.1 in badging" into lmp-devAdam Lesinski2014-07-281-13/+41
|\
| * Have AEP GL feature depend on GLES 3.1 in badgingAdam Lesinski2014-07-251-13/+41
| | | | | | | | | | | | | | | | AAPT dump badging should output the uses-gl-es tag with a version of 3.1 when android.hardware.opengles.aep is declared as a feature. Change-Id: I8affc6dad574c8303c6ba9810ad8e6e205ea9506
* | am eebc0d09: am 1038bf1d: am 94499248: Merge "Add <feature-group> tag and ↵Adam Lesinski2014-07-241-219/+208
|\ \ | | | | | | | | | | | | | | | | | | change aapt badging" into lmp-dev * commit 'eebc0d090d36f8d00b841faea1bb75444963272a': Add <feature-group> tag and change aapt badging
| * \ am 1038bf1d: am 94499248: Merge "Add <feature-group> tag and change aapt ↵Adam Lesinski2014-07-241-219/+208
| |\ \ | | |/ | | | | | | | | | | | | | | | badging" into lmp-dev * commit '1038bf1d7a592c74bcc48d729ccea1f56d8fce1d': Add <feature-group> tag and change aapt badging
| | * Merge "Add <feature-group> tag and change aapt badging" into lmp-devAdam Lesinski2014-07-241-219/+208
| | |\
| | | * Add <feature-group> tag and change aapt badgingAdam Lesinski2014-07-231-219/+208
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | A <feature-group> represents a set of features required for an app to be compatible with a device. Multiple <feature-group> elements represent a logical 'or' of required features. Features defined in the old way with <uses-feature> tags under the <manifest> tag are automatically added to each feature-group defined. Defining a <feature-group> means that any default features are not included (such as android.hardware.touchscreen) and declared permissions do not imply any features. Change-Id: I45626f0fdc546e47bcf2aead7ef05ebcca12b023
* | | | am 884f5e14: am 638a2b2d: am 8224edb9: Merge "Update makefile for clang host ↵Tim Murray2014-07-241-2/+2
|\ \ \ \ | |/ / / | | | | | | | | | | | | | | | | | | | | build." * commit '884f5e1411655f096f6d1f4c16399d15c6ce24ab': Update makefile for clang host build.
| * | | am 638a2b2d: am 8224edb9: Merge "Update makefile for clang host build."Tim Murray2014-07-241-2/+2
| |\ \ \ | | |/ / | |/| | | | | | | | | | * commit '638a2b2dac2e5a020693836d910789aee3c14795': Update makefile for clang host build.
| | * | am 8224edb9: Merge "Update makefile for clang host build."Tim Murray2014-07-241-2/+2
| | |\ \ | | | | | | | | | | | | | | | | | | | | * commit '8224edb94f6421a2d910362c56940dcf991847e6': Update makefile for clang host build.
| | | * | Update makefile for clang host build.Tim Murray2014-07-171-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | bug 16172793 Change-Id: If7484c5dbcccce7d925bec97bff0a3e4c30e9434
| | * | | am 7b97e426: Merge "Optimize Blend composites."Deepanshu Gupta2014-07-151-147/+136
| | |\ \ \ | | | |/ / | | | | | | | | | | | | | | | * commit '7b97e426bd77b22a64b49112ce2455a51bac0b5b': Optimize Blend composites.
| | | * | Optimize Blend composites.Deepanshu Gupta2014-07-071-147/+136
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Removed redundant array allocations to improve performance for various blending modes. Change-Id: Iaba1d6ff3ad03eebdc859c599b610cc593370438