summaryrefslogtreecommitdiffstats
path: root/tools/layoutlib/create
Commit message (Collapse)AuthorAgeFilesLines
* am 4628d51a: am 141c7614: Merge "Fix AnalogClock rendering" into lmp-devDeepanshu Gupta2014-12-043-31/+99
|\ | | | | | | | | * commit '4628d51a0d01641ca7fe2cf8403ad551ea6f50ce': Fix AnalogClock rendering
| * Fix AnalogClock renderingDeepanshu Gupta2014-11-263-31/+99
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 1. Change calls to java.lang.System.log* since they don't exist on the host. 2. Clean up method rewrite mechanism in ReplaceMethodCallsAdapter. 3. Stub out creation of uninitialized GregorianCalendar. 4. Memory map the time zone data base file and provide a custom implementation of BufferIterator for use by ZoneInfoDB 5. Delete unused Time_Delegate Also fixed a comment in BridgeAssetManager and an error message in FontFamily_Delegate. Bug: http://b.android.com/79160 Change-Id: Iae5ef65678f0e6c7c5af520c45bd15980ce3fa55
| * LayoutLib: Stub AM/PM keycodes in Time Picker.Deepanshu Gupta2014-11-181-0/+1
|/ | | | | | | | | TimePickerSpinnerDelegate doesn't need to deal with input when running inside LayoutLib. So, we just return the keycodes as if it's running in English locale. Bug: http://b.android.com/79189 Change-Id: Ife0ae91a1e34a8dac379bc1dda1c1c8ed461c164
* Don't skip loading object animator.Deepanshu Gupta2014-11-111-0/+1
| | | | | | This is used by Buttons as part of StateListAnimator. Change-Id: Id370869e71898d46e11bbd17ad31169c9f9f5274
* Add primitive shadows support to LayoutLibDeepanshu Gupta2014-11-071-0/+5
| | | | | | | | | | | | | | | The shadows rendered are not the same as rendered by the framework. The main purpose of the shadows here is let the user know when shadows will be cast. Currently rectangular shadows are available in only two intensities. Any elevation below 10dp uses one shadow and any elevation over 10 dp uses the other. Also, even though the code for arbitrary shapes exist, it doesn't quite work yet. No shadows are visible when that code is run. Change-Id: Ie8235ffccf1d3809713f5d8f82afde434817d6b2
* Merge "Skip loading animations." into lmp-devDeepanshu Gupta2014-10-291-0/+1
|\
| * Skip loading animations.Deepanshu Gupta2014-10-281-0/+1
| | | | | | | | | | | | | | This is a temporary fix until Path.approximate() is supported. Bug: http://b.android.com/77865 Change-Id: I28739e58f51fabaaf1dcc1c9be61cd0b17e84eec
* | Fix multiple styles case in resource resolution.Deepanshu Gupta2014-10-281-1/+0
|/ | | | | | | When multiple styles are applied to a theme, we only remembered the last one. This change fixes the issue. Change-Id: I46490e882edc3eabe522a641c83366234b5bb25d
* am 4f133894: Exclude KXmlParser from LayoutLib.Deepanshu Gupta2014-10-085-22/+125
|\ | | | | | | | | * commit '4f133894a6e98d8d30557ea42cec92cfb21fa5c9': Exclude KXmlParser from LayoutLib.
| * Exclude KXmlParser from LayoutLib.Deepanshu Gupta2014-10-085-22/+125
| | | | | | | | | | | | The class was incorrectly being included in the LayoutLib. Change-Id: I3c86662efa068019fe9165f2fc49a00d0a1b7f2d
| * LayoutLib: Use ICU's line break algo. [DO NOT MERGE]Deepanshu Gupta2014-10-081-0/+1
| | | | | | | | | | Change-Id: I7e5b0ab7423a72f5a4b0e1163d0a537f0b03ba07 (cherry picked from commit 760f6394d0f65fbb5365186e8e068d53c506b653)
| * Build layoutlib create tests as part of sdk build. [DO NOT MERGE]Deepanshu Gupta2014-10-011-0/+3
| | | | | | | | | | | | | | LayoutLib Create tests are now built whenever LayoutLib create is built. Change-Id: Id215e8690e435019579dba1734090a0d585f37e1 (cherry picked from commit 4efe6264f1251fa200427f54ea6f5dd4c4d03665)
| * Add layoutlib tests to DIST_DIR [DO NOT MERGE]Deepanshu Gupta2014-10-011-0/+3
| | | | | | | | | | | | | | | | Add the layoutlib and layoutlib-create tests to DIST_DIR for sdk targets. These can be used for continuous testing on the build server. Change-Id: I747dddcddfd8009937668bec4d75cb99bf63235f (cherry picked from commit f9c749c9901c459f77ffc6f4fbbc15f4142c6e0a)
| * Build layoutlib_create tests. [DO NOT MERGE]Deepanshu Gupta2014-10-011-0/+32
| | | | | | | | | | Change-Id: Ia13a090f8ec29b2b2a107825b6a13d7db77e6d61 (cherry picked from commit 2294f939bc79ce902a40db37def64cc28394d56b)
| * Add testing framework to LayoutLib. [DO NOT MERGE]Deepanshu Gupta2014-10-011-0/+18
| | | | | | | | | | | | | | | | | | | | 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 (cherry picked from commit a8e9517470869fa29946ae1fa1ceeb24c7970391)
| * am 904d7711: am 7b561be3: am 09c3c2ed: am ba31d628: am db94ea9e: am ↵Deepanshu Gupta2014-08-061-1/+1
| |\ | | | | | | | | | | | | | | | | | | f970d2c2: am 79c3f678: am 206c691b: am 72cf03a2: am 3a544a81: resolved conflicts for merge of a232a68d to jb-mr1.1-docs * commit '904d77118bab63139174470ef728ca9a53e75a15': Fix SystemProperties in LayoutLib.
| | * am 09c3c2ed: am ba31d628: am db94ea9e: am f970d2c2: am 79c3f678: am ↵Deepanshu Gupta2014-08-061-1/+1
| | |\ | | | | | | | | | | | | | | | | | | | | | | | | 206c691b: am 72cf03a2: am 3a544a81: resolved conflicts for merge of a232a68d to jb-mr1.1-docs * commit '09c3c2edb2391d3ffed9a07ec360b9f75b9f7637': Fix SystemProperties in LayoutLib.
| | | * am f970d2c2: am 79c3f678: am 206c691b: am 72cf03a2: am 3a544a81: resolved ↵Deepanshu Gupta2014-08-061-1/+1
| | | |\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | conflicts for merge of a232a68d to jb-mr1.1-docs * commit 'f970d2c201649843b8d51d094b865f16b15bc0bc': Fix SystemProperties in LayoutLib.
| | | | * am 79c3f678: am 206c691b: am 72cf03a2: am 3a544a81: resolved conflicts for ↵Deepanshu Gupta2014-08-061-1/+1
| | | | |\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | merge of a232a68d to jb-mr1.1-docs * commit '79c3f678d21f6b3c058623217cbe5dd57a553fe8': Fix SystemProperties in LayoutLib.
| | | | | * am 3a544a81: resolved conflicts for merge of a232a68d to jb-mr1.1-docsDeepanshu Gupta2014-08-061-1/+1
| | | | | |\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '3a544a81b3d2d529b2995f4b5db2077760d440b5': Fix SystemProperties in LayoutLib.
| | | | | | * resolved conflicts for merge of a232a68d to jb-mr1.1-docsDeepanshu Gupta2014-08-061-1/+1
| | | | | | |\ | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: I1ea220e3e0a81880db68abab87beab56dc4a336c
| | | | | | | * resolved conflicts for merge of 5476cfee to jb-mr1-devDeepanshu Gupta2014-08-061-1/+1
| | | | | | | |\ | | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: I5197271e6fdd36fed9ca9f9b7221d9a99141a4b4
| | | | | | | | * am 505c675c: Fix SystemProperties in LayoutLib.Deepanshu Gupta2014-08-061-1/+1
| | | | | | | | |\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '505c675c3a536ac7c6ad264eb62542537532119c': Fix SystemProperties in LayoutLib.
| | | | | | | | | * Fix SystemProperties in LayoutLib.Deepanshu Gupta2014-08-051-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Not all System Properties were used via Build class. Also, properties like SDK_INT which called SystemProperties directly were not initialized properly. This change is essentially cherry picking of the relevant parts from the following commits: 984749bf75c9ce9d3401b8410ea7d6276544b6ee 167bc25bceea9280bbe4858db4cb8233f86ce325 Bug: http://b.android.com/73046 Change-Id: Ia0fb467ee6d5fdedda500d57d02be20006f115df
| | | | | | * | | | am bd5a3e65: am 1677a9bd: Merge "resolve conflicts for merge 5a7b3b65 ↵Deepanshu Gupta2014-05-131-1/+1
| | | | | | |\ \ \ \ | | | | | | | |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | correctly" into jb-dev-plus-aosp * commit 'bd5a3e6510e83b161a0e40c191d349524ae4a8e6': resolve conflicts for merge 5a7b3b65 correctly
| | | | | | | * | | am 1677a9bd: Merge "resolve conflicts for merge 5a7b3b65 correctly" into ↵Deepanshu Gupta2014-05-131-1/+1
| | | | | | | |\ \ \ | | | | | | | | |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | jb-dev-plus-aosp * commit '1677a9bdeba3961625236925e754920fca1b7e89': resolve conflicts for merge 5a7b3b65 correctly
| | | | | | | | * | Merge "resolve conflicts for merge 5a7b3b65 correctly" into jb-dev-plus-aospDeepanshu Gupta2014-05-131-1/+1
| | | | | | | | |\ \
| | | | | | | | | * | resolve conflicts for merge 5a7b3b65 correctlyDeepanshu Gupta2014-05-121-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: I832b7ee50002bcd1429bf431cc91f12e60d19f84
| | | | | | * | | | | am 5280c911: am 0df5ae65: am 0f209967: Add view cookies for action bar ↵Deepanshu Gupta2014-05-131-0/+2
| | | | | | |\ \ \ \ \ | | | | | | | |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | menus. [DO NOT MERGE] * commit '5280c911d81a7db5ec8854850bef60d8b0951358': Add view cookies for action bar menus. [DO NOT MERGE]
| | | | | | | * | | | am 0df5ae65: am 0f209967: Add view cookies for action bar menus. [DO NOT MERGE]Deepanshu Gupta2014-05-131-0/+2
| | | | | | | |\ \ \ \ | | | | | | | | |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '0df5ae65a91174c99d1af633b45b3a1a7861cd1c': Add view cookies for action bar menus. [DO NOT MERGE]
| | | | | | | | * | | am 0f209967: Add view cookies for action bar menus. [DO NOT MERGE]Deepanshu Gupta2014-05-131-0/+2
| | | | | | | | |\ \ \ | | | | | | | | | | |/ | | | | | | | | | |/| | | | | | | | | | | | | | | | | | | | | | | * commit '0f209967bfc4a6f1eec46cc34a39cfe8af9f8af9': Add view cookies for action bar menus. [DO NOT MERGE]
| | | | | | | | | * | Add view cookies for action bar menus. [DO NOT MERGE]Deepanshu Gupta2014-05-071-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The change adds the view cookies for the menus rendered in the action bar. This enables the IDE to map the menu to the relevant XML Tag in the menu xml and show the highlighting accordingly. The change also contains a bugfix where a method wasn't renamed properly. Change-Id: Idcfc263a8ebe0a4f25afa3a1eb085fa628fd03ca (cherry-picked from commit 094fd8ecb6f4b666be6c9e7332679bce28fdc3ca)
| | | | | | * | | | | am a5461ebf: resolved conflicts for merge of 6d3c4ab2 to jb-mr1-devDeepanshu Gupta2014-05-131-0/+1
| | | | | | |\ \ \ \ \ | | | | | | | |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit 'a5461ebfaebf3337a0cf1c752334f23de145a6d1': Action bar rendering in layoutlib [DO NOT MERGE]
| | | | | | | * | | | resolved conflicts for merge of 6d3c4ab2 to jb-mr1-devDeepanshu Gupta2014-05-131-0/+1
| | | | | | | |\ \ \ \ | | | | | | | | |/ / / | | | | | | | | | | | | | | | | | | | | | | Change-Id: I5c4634897882deb663f32d8148202d7c9189521d
| | | | | | | | * | | am 43b15371: Action bar rendering in layoutlib [DO NOT MERGE]Deepanshu Gupta2014-05-131-0/+1
| | | | | | | | |\ \ \ | | | | | | | | | |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '43b15371f9f1da7d97fe0500eb1536d981097e31': Action bar rendering in layoutlib [DO NOT MERGE]
| | | | | | | | | * | Action bar rendering in layoutlib [DO NOT MERGE]Deepanshu Gupta2014-05-061-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This also makes a couple of changes to the framework: 1. ShareActionProvider - Use edit mode to execute activity chooser code. 2. ActionBarImpl - add a new constructor for use by layoutlib. This also relies on some changes to the plugin to pass the correct params. Change-Id: Ia30fef816afd91ec1e439734d56b59b1323bfee2 (cherry-picked from fe38489f6734fefd0a216e9cfe12f8f978ff371f)
| | | | | | * | | | | am 9053261a: am 052e0c58: am 770e40f8: Fix theme/style resolution in ↵Deepanshu Gupta2014-05-131-0/+3
| | | | | | |\ \ \ \ \ | | | | | | | |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Layoutlib [DO NOT MERGE] * commit '9053261a5413f401168d25fa4a9749723b232949': Fix theme/style resolution in Layoutlib [DO NOT MERGE]
| | | | | | | * | | | am 052e0c58: am 770e40f8: Fix theme/style resolution in Layoutlib [DO NOT MERGE]Deepanshu Gupta2014-05-131-0/+3
| | | | | | | |\ \ \ \ | | | | | | | | |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '052e0c589e5cf714ca71bc8d7b3ce8b3f6c4cb96': Fix theme/style resolution in Layoutlib [DO NOT MERGE]
| | | | | | | | * | | am 770e40f8: Fix theme/style resolution in Layoutlib [DO NOT MERGE]Deepanshu Gupta2014-05-131-0/+3
| | | | | | | | |\ \ \ | | | | | | | | | |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '770e40f839f059e1e3a15a2b14157c7cbb3b0553': Fix theme/style resolution in Layoutlib [DO NOT MERGE]
| | | | | | | | | * | Fix theme/style resolution in Layoutlib [DO NOT MERGE]Deepanshu Gupta2014-05-061-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: Icfb91e566666408802dadc0e2070991151b16b9d (cherry picked from commit 76dccb7f436565136ff5e15b1ca57530940f5642)
| | | | | | * | | | | am 5594616c: am 9602fc1c: am 87665388: Fix visitFieldInsn in ↵Deepanshu Gupta2014-05-135-6/+34
| | | | | | |\ \ \ \ \ | | | | | | | |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | layoutlib_create. [DO NOT MERGE] * commit '5594616c4f4513dc97b08d6cabb6fd7127dde131': Fix visitFieldInsn in layoutlib_create. [DO NOT MERGE]
| | | | | | | * | | | am 9602fc1c: am 87665388: Fix visitFieldInsn in layoutlib_create. [DO NOT MERGE]Deepanshu Gupta2014-05-135-6/+34
| | | | | | | |\ \ \ \ | | | | | | | | |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '9602fc1c00e5e5cdf26cdc3fe22022ffcd115361': Fix visitFieldInsn in layoutlib_create. [DO NOT MERGE]
| | | | | | | | * | | am 87665388: Fix visitFieldInsn in layoutlib_create. [DO NOT MERGE]Deepanshu Gupta2014-05-135-6/+34
| | | | | | | | |\ \ \ | | | | | | | | | |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '87665388466812897e888680c0b2a1d7db1b9cbd': Fix visitFieldInsn in layoutlib_create. [DO NOT MERGE]
| | | | | | | | | * | Fix visitFieldInsn in layoutlib_create. [DO NOT MERGE]Deepanshu Gupta2014-05-065-6/+34
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The bug caused some classes to be missed when computing the dependencies of the existing classes. This change includes the new mock_android.jar compiled from the mock sources again. Change-Id: I7285ff67e016ce5d73a8550501f49acc73cfadfa (cherry-picked from 6136af326e64037184a7a2a3ae60c399f04d631f)
| | | | | | * | | | | am 48bf7b49: am 69b3115e: am e183855c: Add methods for Time_Delegate [DO NOT ↵Deepanshu Gupta2014-05-131-1/+1
| | | | | | |\ \ \ \ \ | | | | | | | |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | MERGE] * commit '48bf7b49bb361a4084e5fb4c6d0ae497a606c700': Add methods for Time_Delegate [DO NOT MERGE]
| | | | | | | * | | | am 69b3115e: am e183855c: Add methods for Time_Delegate [DO NOT MERGE]Deepanshu Gupta2014-05-131-1/+1
| | | | | | | |\ \ \ \ | | | | | | | | |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '69b3115e1c02f2b22165b93bd9bcc5c90ec69b12': Add methods for Time_Delegate [DO NOT MERGE]
| | | | | | | | * | | am e183855c: Add methods for Time_Delegate [DO NOT MERGE]Deepanshu Gupta2014-05-131-1/+1
| | | | | | | | |\ \ \ | | | | | | | | | |/ / | | | | | | | | | | / | | | | | | | | | |/ | | | | | | | | |/| * commit 'e183855c1eb7baf750c67bb20e70fb887eba7af6': Add methods for Time_Delegate [DO NOT MERGE]
| | | | | | | | | * Add methods for Time_Delegate [DO NOT MERGE]Deepanshu Gupta2014-05-061-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug: http://b.android.com/65359 Change-Id: I7c2d09286d6bcd9899444aaa5a4a5a342e39d923 (cherry-picked from 02cde9ceeb4c052ee273a5d809816dfd355ebb56)
| | | | | | * | | | am ed98abec: am 8a70bcef: resolved conflicts for merge 5a7b3b65 to ↵Deepanshu Gupta2014-05-1327-443/+1820
| | | | | | |\ \ \ \ | | | | | | | |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | jb-dev-plus-aosp * commit 'ed98abecad359ab1765ac1f698c8ba06dbd00745': Remove references to non-std Java classes. [DO NOT MERGE]
| | | | | | | * | | am 8a70bcef: resolved conflicts for merge 5a7b3b65 to jb-dev-plus-aospDeepanshu Gupta2014-05-1327-443/+1820
| | | | | | | |\ \ \ | | | | | | | | |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '8a70bcef5a724906e3c35c58cb2266ee9c9e1b78': Remove references to non-std Java classes. [DO NOT MERGE]