summaryrefslogtreecommitdiffstats
path: root/tools
Commit message (Collapse)AuthorAgeFilesLines
* Make some methods/fields package private so that layoutlib can access them.Xavier Ducrohet2011-08-1128-139/+324
| | | | Change-Id: I4aeadfbaf8a4f6a459fa19937c21ac23d9e5fb64
* Implement native println_native in android.util.Log for LayoutLibPhilip Milne2011-08-092-0/+52
| | | | Change-Id: I2ab83a131468490cf789bf17f9c12b6360e953a4
* Fix bug 5011824 - New Holo overflow menu for physical menu key devicesAdam Powell2011-08-071-0/+6
| | | | | | | | The new Holo-style overflow menu now appears from the edge of the screen where the device's physical menu key can be found. The policy determining this lives in getPreferredOptionsPanelGravity() in WindowManagerService. Change-Id: I8851a2265547156591e82044e50b5cfc58d3eefa
* Layoutlib: implement Resources.getBoolean(int).Xavier Ducrohet2011-08-031-0/+16
| | | | Change-Id: I44cee203bb9a8fabaebfd689fc20ec2f2a9b3561
* Layoutlib: simple comment fix.Xavier Ducrohet2011-08-021-2/+2
| | | | Change-Id: I402f6b465706e8edd14e512a973d087a14abbfe3
* Misc layoutlib fix in preparation of the access change in framework code.Xavier Ducrohet2011-08-017-54/+28
| | | | Change-Id: I873adb7345514be6daa5c4fea4ebabb515f203e2
* am 6abf2f50: am 0b45ca88: am cd01ad7c: am 20339b24: Merge "Remove Debug Code"Xavier Ducrohet2011-07-271-15/+0
|\ | | | | | | | | * commit '6abf2f501e60132a5369ad5b15b388912c8e9e5b': Remove Debug Code
| * am 0b45ca88: am cd01ad7c: am 20339b24: Merge "Remove Debug Code"Xavier Ducrohet2011-07-271-15/+0
| |\ | | | | | | | | | | | | * commit '0b45ca8884acfd2e9ccdcb3fbe641a46b116bda0': Remove Debug Code
| | * am cd01ad7c: am 20339b24: Merge "Remove Debug Code"Xavier Ducrohet2011-07-271-15/+0
| | |\ | | | | | | | | | | | | | | | | * commit 'cd01ad7cc7813e3067826945c2a472602f1d3509': Remove Debug Code
| | | * Merge "Remove Debug Code"Xavier Ducrohet2011-07-271-15/+0
| | | |\
| | | | * Remove Debug CodeJosiah Gaskin2011-07-271-15/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This change removes debugging code from FileFinder. This code was considered harmful because it uses the std::cout from <iostream>. Change-Id: Iad9b5e8a631883bd4854abdb29bc6df8a5b4a056
* | | | | Merge "Report the external display size to the input reader."Jeff Brown2011-07-271-0/+3
|\ \ \ \ \
| * | | | | Report the external display size to the input reader.Jeff Brown2011-07-251-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The input reader needs this information so that it knows how to interpolate touches on an external touch screen. Changed Display so that it asks the WindowManager what the real display size is (as opposed to the raw display size). This means it now takes into the forced display size set by adb shell am display-size. Replaced all calls to getRealWidth() / getRealHeight() / getRealMetrics() in the WindowManager and replaced them with direct usages of the mCurDisplayWidth / mCurDisplayHeight so that the WM doesn't end up making a reentrant Binder call into itself. Fixed the table status bar HeightReceiver so that it updates the height on all configuration changes since it is possible that the display size changed independently of an external HDMI display being plugged / unplugged. Improved the Display class documentation to make the distinctions betweeen the various sizes clearer. Change-Id: I3f75de559d3ebffed532ab46c4ae52c5e7f1da2b
* | | | | | Merge "Change ZipFile flags anonymous enum"Kenny Root2011-07-271-1/+1
|\ \ \ \ \ \ | |/ / / / / |/| | | | |
| * | | | | Change ZipFile flags anonymous enumKenny Root2011-07-251-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The arguments that ZipFile takes were apparently meant to be a typed enum, but the name of the type was taken out because it creates invalid conversion warnings in C++ since this is an invalid use of enum. Just change the typedef enum to an anonymous enum so we get rid of the compiler warnings. It will be implicitly converted to int instead. Change-Id: Ie72c4c235c8f9ee8fd1b795e1010b77c55e983de
* | | | | | am ed07215e: am 55775e5f: am e70b2b8f: am 9bcf26ea: Merge "Layoutlib_create ↵Xavier Ducrohet2011-07-253-13/+30
|\ \ \ \ \ \ | |/ / / / / |/| / / / / | |/ / / / | | | | | | | | | | | | | | | flag -p: don\'t change all accesses to public." * commit 'ed07215e482cae1ffedbba707284821b3afc310f': Layoutlib_create flag -p: don't change all accesses to public.
| * | | | am 55775e5f: am e70b2b8f: am 9bcf26ea: Merge "Layoutlib_create flag -p: ↵Xavier Ducrohet2011-07-253-13/+30
| |\ \ \ \ | | |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | don\'t change all accesses to public." * commit '55775e5f34af8d7c22ab3212c253b3a7d34a6f8a': Layoutlib_create flag -p: don't change all accesses to public.
| | * | | am e70b2b8f: am 9bcf26ea: Merge "Layoutlib_create flag -p: don\'t change all ↵Xavier Ducrohet2011-07-213-13/+30
| | |\ \ \ | | | |/ / | | | | | | | | | | | | | | | | | | | | | | | | | accesses to public." * commit 'e70b2b8fe0c265171f3a367a66c99b36c62567c7': Layoutlib_create flag -p: don't change all accesses to public.
| | | * | am 9bcf26ea: Merge "Layoutlib_create flag -p: don\'t change all accesses to ↵Xavier Ducrohet2011-07-213-13/+30
| | | |\ \ | | | | |/ | | | | | | | | | | | | | | | | | | | | | | | | | public." * commit '9bcf26ea7aa108ce4bf4e973b4774d3e60eebafe': Layoutlib_create flag -p: don't change all accesses to public.
| | | | * Merge "Layoutlib_create flag -p: don't change all accesses to public."Xavier Ducrohet2011-07-213-13/+30
| | | | |\
| | | | | * Layoutlib_create flag -p: don't change all accesses to public.Raphael Moll2011-07-193-13/+30
| | | | | | | | | | | | | | | | | | | | | | | | Change-Id: Icb1709ed0cb275a5a51ca34030695a5e94091499
* | | | | | am b3ab070e: am 3a2d1c23: am ddb8e3b2: am 9bac0a9f: Merge "Fix to compile ↵Xavier Ducrohet2011-07-202-4/+27
|\ \ \ \ \ \ | |/ / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | for windows" * commit 'b3ab070edb17f00a4b2d0f511ca539c885b28b6f': Fix to compile for windows
| * | | | | am 3a2d1c23: am ddb8e3b2: am 9bac0a9f: Merge "Fix to compile for windows"Xavier Ducrohet2011-07-202-4/+27
| |\ \ \ \ \ | | |/ / / / | | | | | | | | | | | | | | | | | | * commit '3a2d1c2351c0b4eeb4dc4d91d1c334b9f8ba00ed': Fix to compile for windows
| | * | | | am ddb8e3b2: am 9bac0a9f: Merge "Fix to compile for windows"Xavier Ducrohet2011-07-202-4/+27
| | |\ \ \ \ | | | |/ / / | | | | | | | | | | | | | | | | | | * commit 'ddb8e3b24b2fe3e4371ca8c1239748f5c71910f6': Fix to compile for windows
| | | * | | am 9bac0a9f: Merge "Fix to compile for windows"Xavier Ducrohet2011-07-202-4/+27
| | | |\ \ \ | | | | |/ / | | | | | | | | | | | | | | | | | | * commit '9bac0a9f93976ff341fc9c46b3a85be767119a88': Fix to compile for windows
| | | | * | Fix to compile for windowsJosiah Gaskin2011-07-202-4/+27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This change includes a workaround for dirent.h on windows not including d_type. Change-Id: Ieaa3f298d2e6b32f2d8367384a1d02a2f5d06cca
* | | | | | am 84be06e4: resolved conflicts for merge of ea9e6d24 to honeycomb-plus-aospXavier Ducrohet2011-07-2020-13/+1206
|\ \ \ \ \ \ | |/ / / / / | | | | | | | | | | | | | | | | | | * commit '84be06e4ce0778fbf0c1ac72f94795ef8433439b': Added Caching for PreProcessed PNGs
| * | | | | resolved conflicts for merge of ea9e6d24 to honeycomb-plus-aospXavier Ducrohet2011-07-2020-13/+1206
| |\ \ \ \ \ | | |/ / / / | | | | | | | | | | | | Change-Id: I8e047147a4d2c899b6654c03a5f32b04d929e602
| | * | | | am b582af31: am 0bc12a0b: Merge "Added Caching for PreProcessed PNGs"Xavier Ducrohet2011-07-2020-13/+1206
| | |\ \ \ \ | | | |/ / / | | | | | | | | | | | | | | | | | | * commit 'b582af31c74a58922120fdb747c1a3b867d95e90': Added Caching for PreProcessed PNGs
| | | * | | am 0bc12a0b: Merge "Added Caching for PreProcessed PNGs"Xavier Ducrohet2011-07-2020-13/+1206
| | | |\ \ \ | | | | |/ / | | | | | | | | | | | | | | | | | | * commit '0bc12a0b13719976aff95a801d88e48c64510d11': Added Caching for PreProcessed PNGs
| | | | * | Added Caching for PreProcessed PNGsJosiah Gaskin2011-07-2020-13/+1206
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Added a cache management system for pre-processed PNG files along with unit tests. The cache system will be used if the --no-crunch flag is passed to AAPT during the package phase. The cache can be updated by a call to 'aapt crunch' (see usage statement). Also put in benchmarking code. Change-Id: I58271fb2ee2f5f9075fd74d4ff6f15e7afabd05c
* | | | | | am a125c937: resolved conflicts for merge of 2c311be7 to honeycomb-plus-aospXavier Ducrohet2011-07-208-26/+62
|\ \ \ \ \ \ | |/ / / / / | | | | | | | | | | | | | | | | | | * commit 'a125c937de06b1cc43368743592f47513eb88b76': Add generation of dependency file for .ap_ package
| * | | | | resolved conflicts for merge of 2c311be7 to honeycomb-plus-aospXavier Ducrohet2011-07-208-26/+62
| |\ \ \ \ \ | | |/ / / / | | | | | | | | | | | | Change-Id: I806c7b4ae95f66df621587e52497dd8739a115fe
| | * | | | am 30824495: am 1e24ccbd: Merge "Add generation of dependency file for .ap_ ↵Xavier Ducrohet2011-07-208-27/+63
| | |\ \ \ \ | | | |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | package" * commit '3082449508a8c574d0476fdb988f98d9554637ae': Add generation of dependency file for .ap_ package
| | | * | | am 1e24ccbd: Merge "Add generation of dependency file for .ap_ package"Xavier Ducrohet2011-07-208-27/+63
| | | |\ \ \ | | | | |/ / | | | | | | | | | | | | | | | | | | * commit '1e24ccbdd56a45c8bb5f2eba94af5aecd2d02554': Add generation of dependency file for .ap_ package
| | | | * | Add generation of dependency file for .ap_ packageJosiah Gaskin2011-07-188-27/+63
| | | | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Make Aapt generate a dependency file in the same directory as the output ap_ file if the --generate-dependencies flag is set. This dependency file can then be read by the ant exec loop task to see whether to repackage resources. Change-Id: I763679414daf76369700aa599c26dcf78d4de099
* | | | | Layoutlib: misc fix + start of AndroidBidi support.Xavier Ducrohet2011-07-195-27/+57
| | | | | | | | | | | | | | | | | | | | Change-Id: If2ce0b683da8cce01679322d503eed8dd474e521
* | | | | am 9139868b: am ba6c98db: am 82943ecf: am d40c93f6: Merge "Add dependency ↵Xavier Ducrohet2011-07-197-18/+110
|\ \ \ \ \ | |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | generation to Aapt for R.java" * commit '9139868b6c5cb29b3665984225dceb0193fec31d': Add dependency generation to Aapt for R.java
| * | | | am ba6c98db: am 82943ecf: am d40c93f6: Merge "Add dependency generation to ↵Xavier Ducrohet2011-07-197-18/+110
| |\ \ \ \ | | |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | Aapt for R.java" * commit 'ba6c98db8f21016f81ecac35bb0ea3c433044bb7': Add dependency generation to Aapt for R.java
| | * | | am 82943ecf: am d40c93f6: Merge "Add dependency generation to Aapt for R.java"Xavier Ducrohet2011-07-198-19/+111
| | |\ \ \ | | | |/ / | | | | | | | | | | | | | | | * commit '82943ecfe2c4266cf3db50326240825fefcaa38f': Add dependency generation to Aapt for R.java
| | | * | am d40c93f6: Merge "Add dependency generation to Aapt for R.java"Xavier Ducrohet2011-07-198-19/+111
| | | |\ \ | | | | |/ | | | | | | | | | | | | | | | * commit 'd40c93f61ca5b3f2351b8db716f67b58f1625e85': Add dependency generation to Aapt for R.java
| | | | * Add dependency generation to Aapt for R.javaJosiah Gaskin2011-06-278-19/+111
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Make Aapt generate a dependency file in the location specified by RClassDir for R.java if the --generate-dependencies flag is set. This dependency file is then read by the ant exec loop task to see whether to recreate R.java. Change-Id: I7152dac86b6ea0e448ef65e3a95694afe233c789
* | | | | am bf31250b: am d5431ed5: am 2e659ae5: am 42755155: Merge "Copy once-created ↵Xavier Ducrohet2011-07-193-1/+26
|\ \ \ \ \ | |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | R.java into library projects" * commit 'bf31250ba0858a2e72a3906a1f0216846683bc2e': Copy once-created R.java into library projects
| * | | | am d5431ed5: am 2e659ae5: am 42755155: Merge "Copy once-created R.java into ↵Xavier Ducrohet2011-07-193-1/+26
| |\ \ \ \ | | |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | library projects" * commit 'd5431ed5505a42e5e33c8bf7cc2ff72792979be9': Copy once-created R.java into library projects
| | * | | am 2e659ae5: am 42755155: Merge "Copy once-created R.java into library projects"Xavier Ducrohet2011-07-193-1/+26
| | |\ \ \ | | | |/ / | | | | | | | | | | | | | | | * commit '2e659ae59c17a0c0584d35b8c400a294c9d49e12': Copy once-created R.java into library projects
| | | * | am 42755155: Merge "Copy once-created R.java into library projects"Xavier Ducrohet2011-07-193-1/+26
| | | |\ \ | | | | |/ | | | | | | | | | | | | | | | * commit '42755155d6e8ddc3201b08def2bf262a64fa25f2': Copy once-created R.java into library projects
| | | | * Copy once-created R.java into library projectsJosiah Gaskin2011-06-273-1/+26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This change adds functionality in Aapt to allow specification of library projects to copy the generated R.java file into rather than regenerating the file for each library project. Change-Id: I05939d1dc875bd875be9298ca47cb639235070c6
| | * | | am 4d825e1f: Merge "Bring in more layout lib changes from hc-mr1." into ↵Xavier Ducrohet2011-06-2812-192/+322
| | |\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | gingerbread * commit '4d825e1f3bb6b52ecbea6f0c4aa2081b7f1edc89': Bring in more layout lib changes from hc-mr1.
| | | * | | Bring in more layout lib changes from hc-mr1.Xavier Ducrohet2011-06-1612-192/+322
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | fe051bb2 : Change the way the layoutlib instantiate its XmlPullParser. A lot of the init code was duplicated so I made a ParserFactory class. Also created an extension of the KXmlPullParser to override toString(). This allows easier debugging when dealing with multiple parsers (which is always the case). Also added some (disabled) debugging printf to deal with parser stack as it can be tricky figuring out which parsers are in the stack at which point. 8969147c : Fix case where the int[] attrs doesn't directly match a styleable. In the case of the FastScroller the int[] is a custom mix of attr instead of a int[] that exists as R.styleable.foo. This makes our reflection based mechanism used to find the styleable fail, so instead we search for each attribute separately (like we probably should have done from the beginning). 0c264b35: Fix various cases of getDimension to report error if unit is missing. if getDimention###() is called for a string that has no unit, then an error is output through LayoutLog, but the rendering keeps going by using dp as a default. 0beb7eea: Make (Bridge)TypedArray.getInteger() call out to getInt() Only getInt() resolved attribute flags/enum and I'm not sure why there's two to begin with. Change-Id: I015111263d2a2bee76834978ae71eef79defdae3
| | * | | | am 4753498d: Merge "CherryPick 06942bc4 from hc-mr1. do not merge." into ↵Xavier Ducrohet2011-06-282-4/+9
| | |\ \ \ \ | | | |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | gingerbread * commit '4753498d5c1ac3cf93b0730e77946a95b6913a82': CherryPick 06942bc4 from hc-mr1. do not merge.