107448 Commits

Author SHA1 Message Date
Deepanshu Gupta
099f40a950 Support actionProviderClass attribute for menus [DO NOT MERGE]
The change adds support for view cookies for actionProviderClasses (for
example, ShareActionProvider) in the action bar menus.

This also provides a more robust search for the overflowMenuButton.

Change-Id: I316c8b9a69e2e337b41ba0fe4e61af9fe850f750
(cherry picked from commit 7f56beb8403b597a676faf12643fef585a31007e)
2014-05-04 13:30:50 -07:00
Deepanshu Gupta
60b52ee929 Fix class name for OverflowMenuButton [DO NOT MERGE]
Change-Id: Ie3e709e7aadb2193397df8befef0c55624d7e4e3
(cherry picked from commit f61bd0020642cf0868486d307f2e68c8c02d6102)
2014-05-04 13:30:33 -07:00
Deepanshu Gupta
7c6f6481f4 Add special system view cookie to OverflowButton. [DO NOT MERGE]
Add a special view cookie to enable the IDE to identify the overflow
menu button in the Action Bar.

Change-Id: Ida3ed776afb8c9fa8af23b73d4cf6d47eef0ab87
(cherry picked from commit d558ebdb433af498a87e25673f7dd828a0e7439a)
2014-05-04 13:30:11 -07:00
Deepanshu Gupta
22de7c4c3d Fix style warnings in RenderSessionImpl [DO NOT MERGE]
Change-Id: I9d3cb23e4ea692f737a3e3d6c18cc8de18b66a3c
(cherry-picked from commit a98121ef5251b5ebdb8c1b0b6780d570844284b2)
2014-05-04 13:29:51 -07:00
Deepanshu Gupta
094fd8ecb6 Add view cookies for action bar menus. [DO NOT MERGE]
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 7704837947455909f295b088a3d15a20e107dbd7)
2014-05-04 13:29:14 -07:00
Deepanshu Gupta
7f56beb840 Support actionProviderClass attribute for menus [DO NOT MERGE]
The change adds support for view cookies for actionProviderClasses (for
example, ShareActionProvider) in the action bar menus.

This also provides a more robust search for the overflowMenuButton.

Change-Id: I316c8b9a69e2e337b41ba0fe4e61af9fe850f750
(cherry picked from commit 28fa661f79e18fc9fc46bf112edded9c0d07696f)
2014-05-02 18:01:11 -07:00
Deepanshu Gupta
f61bd00206 Fix class name for OverflowMenuButton [DO NOT MERGE]
Change-Id: Ie3e709e7aadb2193397df8befef0c55624d7e4e3
(cherry picked from commit 4b5fa4d318e7efaffdc678e0cb8953ffc78c2b1e)
2014-05-02 17:52:04 -07:00
Deepanshu Gupta
d558ebdb43 Add special system view cookie to OverflowButton. [DO NOT MERGE]
Add a special view cookie to enable the IDE to identify the overflow
menu button in the Action Bar.

Change-Id: Ida3ed776afb8c9fa8af23b73d4cf6d47eef0ab87
(cherry picked from commit c967d8dc62c429ecf3e27bf3714a953636e75cbf)
2014-05-02 17:43:25 -07:00
Deepanshu Gupta
a98121ef52 Fix style warnings in RenderSessionImpl [DO NOT MERGE]
Change-Id: I9d3cb23e4ea692f737a3e3d6c18cc8de18b66a3c
(cherry-picked from commit fbfeb1a90b6f8f3966c60a69d50ce8f608d9d861)
2014-05-02 17:34:00 -07:00
Deepanshu Gupta
7704837947 Add view cookies for action bar menus. [DO NOT MERGE]
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 5ba2f230faa355eb9bc1e90f6c48eeeb437f390c)
2014-05-02 17:33:05 -07:00
Deepanshu Gupta
56759be896 Overflow menu popup for Action Bar in Layoutlib [DO NOT MERGE]
In addition to the cherrypicked changes, appropriate changes due to
changes to com.android.internal.widget.ActionBarView are made.

The icon used in the Action Bar may not always be the right one due to
the above resolution.

Change-Id: Ib7cc314079099c010f7d53849e204db36c410357
(cherry-picked from commit 1b87390c9426c4bc9119829e9375d712dfde11c3)
2014-05-02 16:23:14 -07:00
Deepanshu Gupta
fe38489f67 Action bar rendering in layoutlib [DO NOT MERGE]
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 20e0695b554e883b095f5223be10b6e1097db49f)
2014-05-02 16:23:14 -07:00
Deepanshu Gupta
cc5340bc63 Add missing dependency in layoutlib build file [DO NOT MERGE]
Add missing dependency on built_ext_data

Change-Id: I4e7cca7f6cbc7f5b7416ac9b85a9aec01e61ecd4
(cherry-picked from commit b85d30a2c88b6a23e251347b14a75456c4daeca9)
2014-05-02 16:23:14 -07:00
Deepanshu Gupta
76dccb7f43 Fix theme/style resolution in Layoutlib [DO NOT MERGE]
Change-Id: Icfb91e566666408802dadc0e2070991151b16b9d
(cherry picked from commit 3c00b28bf60ab01b449e16df045238f4bae4d700)
2014-05-02 16:23:13 -07:00
Deepanshu Gupta
1ed75bde09 Remove references to non-std Java classes. [DO NOT MERGE]
This change adds a substitute for the Charsets class in java namespace.
The original cherry pick of the change had dropped this substitute. But
the substitute is required for bug b.android.com/59732

The original cherry-pick is 6335590aa8997944cc7fb358a315dbb9b789f87f and
the original change is 81f74f4bc96ea4266cebe1b785d095558f540800
The original Change-Id is Iac5b272652e2780c9bb72d19f415d150948ca589

Change-Id: I76c87c74ee088778b37d1a7a7d531e0fde5c758f
2014-05-02 16:22:14 -07:00
Deepanshu Gupta
6136af326e Fix visitFieldInsn in layoutlib_create. [DO NOT MERGE]
The bug caused some classes to be missed when computing the dependencies
of the existing classes.

Change-Id: I7285ff67e016ce5d73a8550501f49acc73cfadfa
(cherry-picked from 6f9baea47757fef4745de434e09bd552fddc1f03)
2014-05-02 15:38:42 -07:00
Deepanshu Gupta
2bd65db15f Layoutlib tests now check methods return value [DO NOT MERGE]
The change is a cherry-pick from klp-dev.

The change also fixes the errors found by fixing the tests.

Change-Id: I87cef323c4eaee4e9f60475f01156b276593fa50
(cherry-picked from commit 89fdc0c556cf0fe2562fb8f0476e03cd51045164)
2014-05-02 14:19:47 -07:00
Deepanshu Gupta
13542c7e82 am 00e0b992: am 75f435b0: am 495c14d8: (-s ours) am 47ad22ed: am 961e3281: am 6df2860b: Add missing files to fix libphonenumber for layoutlib. [DO NOT MERGE]
* commit '00e0b992f2243ef06a6c55b10142725470980a52':
  Add missing files to fix libphonenumber for layoutlib. [DO NOT MERGE]
2014-05-02 19:43:48 +00:00
Deepanshu Gupta
29376cea1b am a996ff5c: am c529b700: am 8ad4b8b1: (-s ours) am 9932e589: am 9e2dadae: am bcbeaf83: Set default text style in layoutlib as NORMAL [DO NOT MERGE]
* commit 'a996ff5cebbbac88362a16ca47ff11b06120822c':
  Set default text style in layoutlib as NORMAL [DO NOT MERGE]
2014-05-02 19:43:44 +00:00
Deepanshu Gupta
22b47b281c am 16fda528: am b7431172: am 826a215c: (-s ours) am 320f1126: am cf3f108e: am 5be65fda: Fix sans-serif-thin and sans-serif-light fonts in layoutlib. [DO NOT MERGE]
* commit '16fda52842b470614a0b95d210e916090fd6973f':
  Fix sans-serif-thin and sans-serif-light fonts in layoutlib. [DO NOT MERGE]
2014-05-02 19:43:41 +00:00
Deepanshu Gupta
57e410d9b6 am 9f81e73a: am 28ec8b4f: am 0a37981c: (-s ours) am 1b28d8d4: am d642de58: am ec4623d0: Improve text rendering and measurement. [DO NOT MERGE]
* commit '9f81e73a9d165af90aa12fd8b7019a2474b2b66b':
  Improve text rendering and measurement. [DO NOT MERGE]
2014-05-02 19:43:39 +00:00
Deepanshu Gupta
4da3827fa4 am acbff099: am d9076a95: am f4b35c6a: (-s ours) am ef822b3f: am 62a4a1f9: am 2a82a48f: Fix the measurement of text bounds. [DO NOT MERGE]
* commit 'acbff09932252c3bc93aebe63deb5afc2498824b':
  Fix the measurement of text bounds. [DO NOT MERGE]
2014-05-02 19:43:36 +00:00
Deepanshu Gupta
951c69760f am fcdbc3cb: am 38f954c8: am e0537c1d: (-s ours) am c7f8e64c: am 1830a58f: am 5bb3414d: Fix a bug in Nine Patch library. [DO NOT MERGE]
* commit 'fcdbc3cbfa6a1b535ec98c53b76acb7b7f383005':
  Fix a bug in Nine Patch library. [DO NOT MERGE]
2014-05-02 19:43:33 +00:00
Deepanshu Gupta
031f4bebb0 am 469b4aea: am 35f9f310: am 5e6a2990: (-s ours) am 4d887ec3: am bcd50a7c: am 5712b5fc: Optimize layout rendering in layoutlib [DO NOT MERGE]
* commit '469b4aeaebe3b98efb623b9904e2d300d8ceacd7':
  Optimize layout rendering in layoutlib [DO NOT MERGE]
2014-05-02 19:43:30 +00:00
Deepanshu Gupta
2d7a9c3ed9 am c3e89c3f: am 95672929: am 73f9e467: (-s ours) am edd67cb1: am 7c02c6e2: am 02cde9ce: Add methods for Time_Delegate [DO NOT MERGE]
* commit 'c3e89c3fde5a8b42365baadfe84d7d1ff0287358':
  Add methods for Time_Delegate [DO NOT MERGE]
2014-05-02 19:43:27 +00:00
Deepanshu Gupta
d683d56c93 am 35a94df7: am ea18b2d6: am 95fd97aa: (-s ours) am 84e7a6b8: am 443372dd: am 9d7b5165: Add libphonenumber to layoutlib.jar. [DO NOT MERGE]
* commit '35a94df78c7982c111434036ae1d011cfb51c993':
  Add libphonenumber to layoutlib.jar. [DO NOT MERGE]
2014-05-02 19:43:24 +00:00
Deepanshu Gupta
e9c20fd4e3 am 81f1e754: am fd581059: am 88a12f57: (-s ours) am 43034b54: am 62591cff: am 689c0dfe: Fix NPE in layoutlib. [DO NOT MERGE]
* commit '81f1e7543c7426983d47f69f7a9f95fd69cdf2c1':
  Fix NPE in layoutlib. [DO NOT MERGE]
2014-05-02 19:43:21 +00:00
Deepanshu Gupta
35b16e5d8f am 9e8ae205: am f41ce157: am 43ed35da: (-s ours) am ce205d0a: am 600539c7: am 083d1562: Fix text size in Fake Action Bar. [DO NOT MERGE]
* commit '9e8ae2052ade985a31646ca4f30fe52372f27fd8':
  Fix text size in Fake Action Bar. [DO NOT MERGE]
2014-05-02 19:43:18 +00:00
Deepanshu Gupta
8c54c861f4 am 2fee69e0: am 071206b4: am aab9d9a7: (-s ours) am 1a434aa8: am 697c511d: am 80c668f2: Remove references to non-std Java classes. [DO NOT MERGE]
* commit '2fee69e0ad2e564365c5bace1e00bf6af4424b1c':
  Remove references to non-std Java classes. [DO NOT MERGE]
2014-05-02 19:43:11 +00:00
Deepanshu Gupta
683e166370 am 79150645: am c37f7c84: am d15bbac6: (-s ours) am a2b530fb: am e39de9ae: am 6335590a: Fix DatePicker and Calendar widget in layoutlib. [DO NOT MERGE]
* commit '79150645c326d35f31e2db0b5d9e461a096a35f8':
  Fix DatePicker and Calendar widget in layoutlib. [DO NOT MERGE]
2014-05-02 19:43:08 +00:00
Deepanshu Gupta
543452e829 am e860b24e: am 8cc1d989: am 3e9bc262: (-s ours) am 9d209905: am 6f469e54: am 11ee746d: Layoutlib: Update the wifi icon in the status bar. [DO NOT MERGE]
* commit 'e860b24ecb90287a3115c2a3f2648a8768ff0629':
  Layoutlib: Update the wifi icon in the status bar. [DO NOT MERGE]
2014-05-02 19:43:05 +00:00
Deepanshu Gupta
00e0b992f2 am 75f435b0: am 495c14d8: (-s ours) am 47ad22ed: am 961e3281: am 6df2860b: Add missing files to fix libphonenumber for layoutlib. [DO NOT MERGE]
* commit '75f435b0f411eae66b4e34ec24f03a5d09d2be26':
  Add missing files to fix libphonenumber for layoutlib. [DO NOT MERGE]
2014-05-02 19:41:10 +00:00
Deepanshu Gupta
a996ff5ceb am c529b700: am 8ad4b8b1: (-s ours) am 9932e589: am 9e2dadae: am bcbeaf83: Set default text style in layoutlib as NORMAL [DO NOT MERGE]
* commit 'c529b70031f72dc31d53fa8640ada33837b0c203':
  Set default text style in layoutlib as NORMAL [DO NOT MERGE]
2014-05-02 19:41:08 +00:00
Deepanshu Gupta
16fda52842 am b7431172: am 826a215c: (-s ours) am 320f1126: am cf3f108e: am 5be65fda: Fix sans-serif-thin and sans-serif-light fonts in layoutlib. [DO NOT MERGE]
* commit 'b7431172a4c0dd0f73bce4d06e765cc0d9467301':
  Fix sans-serif-thin and sans-serif-light fonts in layoutlib. [DO NOT MERGE]
2014-05-02 19:41:05 +00:00
Deepanshu Gupta
9f81e73a9d am 28ec8b4f: am 0a37981c: (-s ours) am 1b28d8d4: am d642de58: am ec4623d0: Improve text rendering and measurement. [DO NOT MERGE]
* commit '28ec8b4f0a06f917a8eb9fcb672b51839440b7af':
  Improve text rendering and measurement. [DO NOT MERGE]
2014-05-02 19:41:03 +00:00
Deepanshu Gupta
acbff09932 am d9076a95: am f4b35c6a: (-s ours) am ef822b3f: am 62a4a1f9: am 2a82a48f: Fix the measurement of text bounds. [DO NOT MERGE]
* commit 'd9076a95bc9b1d3508defd1c1cbe4740ef065c1d':
  Fix the measurement of text bounds. [DO NOT MERGE]
2014-05-02 19:41:01 +00:00
Deepanshu Gupta
fcdbc3cbfa am 38f954c8: am e0537c1d: (-s ours) am c7f8e64c: am 1830a58f: am 5bb3414d: Fix a bug in Nine Patch library. [DO NOT MERGE]
* commit '38f954c8646f5c3355ec80ee4c08d67af961b5ac':
  Fix a bug in Nine Patch library. [DO NOT MERGE]
2014-05-02 19:40:58 +00:00
Deepanshu Gupta
469b4aeaeb am 35f9f310: am 5e6a2990: (-s ours) am 4d887ec3: am bcd50a7c: am 5712b5fc: Optimize layout rendering in layoutlib [DO NOT MERGE]
* commit '35f9f310178ca59e9480ed5190e5f7a1ef206380':
  Optimize layout rendering in layoutlib [DO NOT MERGE]
2014-05-02 19:40:55 +00:00
Deepanshu Gupta
c3e89c3fde am 95672929: am 73f9e467: (-s ours) am edd67cb1: am 7c02c6e2: am 02cde9ce: Add methods for Time_Delegate [DO NOT MERGE]
* commit '956729296af116e6f80214c7103c77cef8813e9e':
  Add methods for Time_Delegate [DO NOT MERGE]
2014-05-02 19:40:52 +00:00
Deepanshu Gupta
35a94df78c am ea18b2d6: am 95fd97aa: (-s ours) am 84e7a6b8: am 443372dd: am 9d7b5165: Add libphonenumber to layoutlib.jar. [DO NOT MERGE]
* commit 'ea18b2d6549dc3a5b7fa8d1dbadccdd595690958':
  Add libphonenumber to layoutlib.jar. [DO NOT MERGE]
2014-05-02 19:40:49 +00:00
Deepanshu Gupta
81f1e7543c am fd581059: am 88a12f57: (-s ours) am 43034b54: am 62591cff: am 689c0dfe: Fix NPE in layoutlib. [DO NOT MERGE]
* commit 'fd58105912a78ba2f21accb1b483fc0eee58780d':
  Fix NPE in layoutlib. [DO NOT MERGE]
2014-05-02 19:40:47 +00:00
Deepanshu Gupta
9e8ae2052a am f41ce157: am 43ed35da: (-s ours) am ce205d0a: am 600539c7: am 083d1562: Fix text size in Fake Action Bar. [DO NOT MERGE]
* commit 'f41ce157727c19597dc5308282d09816c21e3459':
  Fix text size in Fake Action Bar. [DO NOT MERGE]
2014-05-02 19:40:44 +00:00
Deepanshu Gupta
2fee69e0ad am 071206b4: am aab9d9a7: (-s ours) am 1a434aa8: am 697c511d: am 80c668f2: Remove references to non-std Java classes. [DO NOT MERGE]
* commit '071206b4b50ce94416042e6f5a0c838de43aace4':
  Remove references to non-std Java classes. [DO NOT MERGE]
2014-05-02 19:40:42 +00:00
Deepanshu Gupta
79150645c3 am c37f7c84: am d15bbac6: (-s ours) am a2b530fb: am e39de9ae: am 6335590a: Fix DatePicker and Calendar widget in layoutlib. [DO NOT MERGE]
* commit 'c37f7c84faaf245c5684da487c11967135b18f54':
  Fix DatePicker and Calendar widget in layoutlib. [DO NOT MERGE]
2014-05-02 19:40:38 +00:00
Deepanshu Gupta
e860b24ecb am 8cc1d989: am 3e9bc262: (-s ours) am 9d209905: am 6f469e54: am 11ee746d: Layoutlib: Update the wifi icon in the status bar. [DO NOT MERGE]
* commit '8cc1d9891c23ef7717a384606531ffdcbd7acdd0':
  Layoutlib: Update the wifi icon in the status bar. [DO NOT MERGE]
2014-05-02 19:40:35 +00:00
Deepanshu Gupta
75f435b0f4 am 495c14d8: (-s ours) am 47ad22ed: am 961e3281: am 6df2860b: Add missing files to fix libphonenumber for layoutlib. [DO NOT MERGE]
* commit '495c14d8b8e8a52554cfc0776c48d328657cda95':
  Add missing files to fix libphonenumber for layoutlib. [DO NOT MERGE]
2014-05-02 19:36:42 +00:00
Deepanshu Gupta
c529b70031 am 8ad4b8b1: (-s ours) am 9932e589: am 9e2dadae: am bcbeaf83: Set default text style in layoutlib as NORMAL [DO NOT MERGE]
* commit '8ad4b8b1fedc9a200b49f322e73d406d43e32327':
  Set default text style in layoutlib as NORMAL [DO NOT MERGE]
2014-05-02 19:36:40 +00:00
Deepanshu Gupta
b7431172a4 am 826a215c: (-s ours) am 320f1126: am cf3f108e: am 5be65fda: Fix sans-serif-thin and sans-serif-light fonts in layoutlib. [DO NOT MERGE]
* commit '826a215c8b27babd041a77a8cdd2f42a29b240bd':
  Fix sans-serif-thin and sans-serif-light fonts in layoutlib. [DO NOT MERGE]
2014-05-02 19:36:36 +00:00
Deepanshu Gupta
28ec8b4f0a am 0a37981c: (-s ours) am 1b28d8d4: am d642de58: am ec4623d0: Improve text rendering and measurement. [DO NOT MERGE]
* commit '0a37981cad7b00991c3b759b3ab1918c1ebf4bc0':
  Improve text rendering and measurement. [DO NOT MERGE]
2014-05-02 19:36:33 +00:00
Deepanshu Gupta
d9076a95bc am f4b35c6a: (-s ours) am ef822b3f: am 62a4a1f9: am 2a82a48f: Fix the measurement of text bounds. [DO NOT MERGE]
* commit 'f4b35c6a832d3db694b2487fc30d1d1975114944':
  Fix the measurement of text bounds. [DO NOT MERGE]
2014-05-02 19:36:30 +00:00