Tom Taylor
90743d6409
am bfb7ffeb: Externally Reported Moderate Security Issue: SQL Injection in WAPPushManager
...
* commit 'bfb7ffeb3e240784c1ea2a50187c120e6445b20e':
Externally Reported Moderate Security Issue: SQL Injection in WAPPushManager
2014-11-04 17:43:41 +00:00
Tom Taylor
bfb7ffeb3e
Externally Reported Moderate Security Issue: SQL Injection in WAPPushManager
...
Bug 17969135
Use query (instead of rawQuery) and pass in arguments instead of building
the query with a giant string. Add a unit test that fails with the old
code but passes with the new code.
Change-Id: Id04a1db6fb95fcd923e1f36f5ab3b94402590918
2014-10-15 09:45:39 -07:00
Deepanshu Gupta
52be792bad
am 27d3b926: Fix error when using list as actionBarNavMode. [DO NOT MERGE]
...
* commit '27d3b9264e2dcfb86400a60891a5e39cdf027d55':
Fix error when using list as actionBarNavMode. [DO NOT MERGE]
2014-09-26 00:36:41 +00:00
Deepanshu Gupta
27d3b9264e
Fix error when using list as actionBarNavMode. [DO NOT MERGE]
...
A bug in the framework leads to the wrong argument being passed to
defStyleRes when obtaining styled attributes. The framework however just
ignores the attribute in such a case. LayoutLib logs an error to help
developers find bugs in their code.
The bug was seen when using list as the actionBarNavMode.
This change ignores the attribute if it detects that it's the framework
bug. Also, we change the error to a warning.
Change-Id: I58e1fe4469de0329a27b577d75c0a59c48d0381b
2014-09-25 22:59:58 +00:00
Deepanshu Gupta
3ce96efc2c
am d181ffe6: Merge "Resolve color xml attributes properly. [DO NOT MERGE]" into jb-dev
...
* commit 'd181ffe6881d0a1b49193b5f70dac0cc7cc9aae3':
Resolve color xml attributes properly. [DO NOT MERGE]
2014-09-04 03:18:39 +00:00
Deepanshu Gupta
638894803c
am 6530cca1: Fix "@null" resource values in LayoutLib. [DO NOT MERGE]
...
* commit '6530cca1edf79ddcd520e2e5bc2695adfb0d3680':
Fix "@null" resource values in LayoutLib. [DO NOT MERGE]
2014-09-04 03:18:27 +00:00
Deepanshu Gupta
d181ffe688
Merge "Resolve color xml attributes properly. [DO NOT MERGE]" into jb-dev
2014-09-04 01:54:08 +00:00
Deepanshu Gupta
6530cca1ed
Fix "@null" resource values in LayoutLib. [DO NOT MERGE]
...
Bug: http://b.android.com/74072
Change-Id: Ib84906d86772ac3df2407e71ad2167797bec4542
(cherry picked from commit c9cd725f1013bed27e6f6594b176c10a6a4c0f16)
2014-08-26 00:51:54 +00:00
Deepanshu Gupta
f2e26413fb
Resolve color xml attributes properly. [DO NOT MERGE]
...
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
(cherry picked from commit 81564dfe60020fa977d39d168f682e9d61825660)
2014-08-26 00:28:18 +00:00
Deepanshu Gupta
5476cfee6b
am 505c675c: Fix SystemProperties in LayoutLib.
...
* commit '505c675c3a536ac7c6ad264eb62542537532119c':
Fix SystemProperties in LayoutLib.
2014-08-06 21:28:24 +00:00
Deepanshu Gupta
505c675c3a
Fix SystemProperties in LayoutLib.
...
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
2014-08-05 17:47:30 -07:00
Deepanshu Gupta
ccf7b2aac6
am 5af7324a: Fix style resolution for styles with \'.\' [DO NOT MERGE]
...
* commit '5af7324ace4f318d7395b680beabec7a0f0e39b3':
Fix style resolution for styles with '.' [DO NOT MERGE]
2014-07-18 21:39:35 +00:00
Deepanshu Gupta
5af7324ace
Fix style resolution for styles with '.' [DO NOT MERGE]
...
Bug: b.android.com/72698
Change-Id: I96fb549cf5787d9e8cde2245524a8173471a60ca
(cherry picked from commit f2fa79e9b5 )
2014-07-10 00:30:03 +00:00
Deepanshu Gupta
61fb578432
am 3ff08eb6: Distinguish between menus in ActionBar and popup. [DO NOT MERGE]
...
* commit '3ff08eb6bf68868d4f4e872fbbf1ecaf521934a9':
Distinguish between menus in ActionBar and popup. [DO NOT MERGE]
2014-06-04 19:32:05 +00:00
Deepanshu Gupta
f48ab8feec
am 3b7c09b4: LayoutLib: Correctly resolve ?attr/foo [DO NOT MERGE]
...
* commit '3b7c09b4336f421c489523c10278ecfbfb0708a7':
LayoutLib: Correctly resolve ?attr/foo [DO NOT MERGE]
2014-06-03 20:21:10 +00:00
Deepanshu Gupta
3ff08eb6bf
Distinguish between menus in ActionBar and popup. [DO NOT MERGE]
...
Mark the menus in the ActionBar and the ones in the Overflow popup
separately. This enables the IDE to differentiate between the two and
enable gestures such as double-click to open the menu xml for menus in
the ActionBar and single click for the menus in the Overflow popup.
Change-Id: I7a23f87d34d618a134ffbe3a665be695915d4bae
(cherry picked from commit 03c0735017 )
2014-05-30 14:50:55 -07:00
Deepanshu Gupta
3b7c09b433
LayoutLib: Correctly resolve ?attr/foo [DO NOT MERGE]
...
?attr/foo in platform files wasn't resolved properly. The IDE checked
the app namespace for the attribute even though it is being referenced
from a platform file.
Change-Id: I7db6dfef5b540d99804c298120578da9d060b886
(cherry picked from commit 08d2007b33 )
2014-05-30 14:50:39 -07:00
Deepanshu Gupta
1677a9bdeb
Merge "resolve conflicts for merge 5a7b3b65 correctly" into jb-dev-plus-aosp
2014-05-13 02:32:31 +00:00
Deepanshu Gupta
51cce0ec42
resolve conflicts for merge 5a7b3b65 correctly
...
Change-Id: I832b7ee50002bcd1429bf431cc91f12e60d19f84
2014-05-12 19:31:25 -07:00
Deepanshu Gupta
7377c7be6a
am 3a115628: Add Navigation Bar to BridgeWindowManager [DO NOT MERGE]
...
* commit '3a115628236ee9051518d4f96840cbb76070cf92':
Add Navigation Bar to BridgeWindowManager [DO NOT MERGE]
2014-05-13 02:20:58 +00:00
Deepanshu Gupta
9359dc2e7d
am 2d3fa7ba: Support actionProviderClass attribute for menus [DO NOT MERGE]
...
* commit '2d3fa7ba782238afb891db38e29ef7ec755bfdf6':
Support actionProviderClass attribute for menus [DO NOT MERGE]
2014-05-13 02:20:54 +00:00
Deepanshu Gupta
df2da3d7c9
am 7bc363ba: Add special system view cookie to OverflowButton. [DO NOT MERGE]
...
* commit '7bc363ba72d4cdd9a0b3b1601e432acfc09c0dc0':
Add special system view cookie to OverflowButton. [DO NOT MERGE]
2014-05-13 02:20:51 +00:00
Deepanshu Gupta
4eab4e14c8
am 5268248e: Use ApplicationInfo only when not in edit mode [DO NOT MERGE]
...
* commit '5268248e0708951966e4f6514736a4030d5052da':
Use ApplicationInfo only when not in edit mode [DO NOT MERGE]
2014-05-13 02:20:47 +00:00
Deepanshu Gupta
00d0964901
am 85f53c33: Fix style warnings in RenderSessionImpl [DO NOT MERGE]
...
* commit '85f53c3335daf0e55cec757fd66fe560e0b020ef':
Fix style warnings in RenderSessionImpl [DO NOT MERGE]
2014-05-13 02:20:44 +00:00
Deepanshu Gupta
0df5ae65a9
am 0f209967: Add view cookies for action bar menus. [DO NOT MERGE]
...
* commit '0f209967bfc4a6f1eec46cc34a39cfe8af9f8af9':
Add view cookies for action bar menus. [DO NOT MERGE]
2014-05-13 02:20:42 +00:00
Deepanshu Gupta
175851600c
am 26c37321: Add missing layout params to xlarge action bar. [DO NOT MERGE]
...
* commit '26c373213592ce7fb5a09f23a3d9d3ca0727e346':
Add missing layout params to xlarge action bar. [DO NOT MERGE]
2014-05-13 02:20:38 +00:00
Deepanshu Gupta
3027b69e15
am f7e57949: Overflow menu popup for Action Bar in Layoutlib [DO NOT MERGE]
...
* commit 'f7e5794990831df87d4097126f6d24455da50efe':
Overflow menu popup for Action Bar in Layoutlib [DO NOT MERGE]
2014-05-13 02:20:35 +00:00
Deepanshu Gupta
6d3c4ab245
am 43b15371: Action bar rendering in layoutlib [DO NOT MERGE]
...
* commit '43b15371f9f1da7d97fe0500eb1536d981097e31':
Action bar rendering in layoutlib [DO NOT MERGE]
2014-05-13 02:20:23 +00:00
Deepanshu Gupta
052e0c589e
am 770e40f8: Fix theme/style resolution in Layoutlib [DO NOT MERGE]
...
* commit '770e40f839f059e1e3a15a2b14157c7cbb3b0553':
Fix theme/style resolution in Layoutlib [DO NOT MERGE]
2014-05-13 02:20:20 +00:00
Deepanshu Gupta
9602fc1c00
am 87665388: Fix visitFieldInsn in layoutlib_create. [DO NOT MERGE]
...
* commit '87665388466812897e888680c0b2a1d7db1b9cbd':
Fix visitFieldInsn in layoutlib_create. [DO NOT MERGE]
2014-05-13 02:20:16 +00:00
Deepanshu Gupta
c9a4badb54
am d915dcac: Layoutlib tests now check methods return value [DO NOT MERGE]
...
* commit 'd915dcac365b6d3ad88afab52e74ccca7dfbefec':
Layoutlib tests now check methods return value [DO NOT MERGE]
2014-05-13 02:20:13 +00:00
Deepanshu Gupta
bdd8fbf6ea
am 877ae535: Set default text style in layoutlib as NORMAL [DO NOT MERGE]
...
* commit '877ae53586c3f7f5b788a40dfb0a58bef54a7446':
Set default text style in layoutlib as NORMAL [DO NOT MERGE]
2014-05-13 02:20:10 +00:00
Deepanshu Gupta
01cdd3123f
am 669792b3: Fix sans-serif-thin and sans-serif-light fonts in layoutlib. [DO NOT MERGE]
...
* commit '669792b303b99a003bbcbf8d962f5be1debf9b63':
Fix sans-serif-thin and sans-serif-light fonts in layoutlib. [DO NOT MERGE]
2014-05-13 02:20:07 +00:00
Deepanshu Gupta
d094742d2e
am cda89ca0: Fix a bug in Nine Patch library. [DO NOT MERGE]
...
* commit 'cda89ca02548c19250ae55671c055536b64b74f8':
Fix a bug in Nine Patch library. [DO NOT MERGE]
2014-05-13 02:19:59 +00:00
Deepanshu Gupta
7bb8de580a
am a2b34c96: Optimize layout rendering in layoutlib [DO NOT MERGE]
...
* commit 'a2b34c96f1ef24d96854d1e23426dec7774510e8':
Optimize layout rendering in layoutlib [DO NOT MERGE]
2014-05-13 02:19:56 +00:00
Deepanshu Gupta
69b3115e1c
am e183855c: Add methods for Time_Delegate [DO NOT MERGE]
...
* commit 'e183855c1eb7baf750c67bb20e70fb887eba7af6':
Add methods for Time_Delegate [DO NOT MERGE]
2014-05-13 02:19:52 +00:00
Deepanshu Gupta
82d5bd98b7
am e5a2347b: Fix NPE in layoutlib. [DO NOT MERGE]
...
* commit 'e5a2347bc6cf1506799136af4c9724275ca0247e':
Fix NPE in layoutlib. [DO NOT MERGE]
2014-05-13 02:19:49 +00:00
Deepanshu Gupta
d5de1bd630
am 30505abe: Fix text size in Fake Action Bar. [DO NOT MERGE]
...
* commit '30505abeb6cda9d042ec41f2563d561714eac46b':
Fix text size in Fake Action Bar. [DO NOT MERGE]
2014-05-13 02:19:46 +00:00
Deepanshu Gupta
8a70bcef5a
resolved conflicts for merge 5a7b3b65 to jb-dev-plus-aosp
...
Change-Id: I6bafdb9c6a8dfc6f55a4d9adf67f447661137eb8
2014-05-12 18:57:34 -07:00
Deepanshu Gupta
40fea8b1bf
am 4b5da86d: Fix DatePicker and Calendar widget in layoutlib. [DO NOT MERGE]
...
* commit '4b5da86d04200ba278b62ff99da91e212b87e9af':
Fix DatePicker and Calendar widget in layoutlib. [DO NOT MERGE]
2014-05-13 01:52:32 +00:00
Deepanshu Gupta
065ce2e8b3
am 5c166c9c: Layoutlib: Update the wifi icon in the status bar. [DO NOT MERGE]
...
* commit '5c166c9c04b6ea9d4955830e7ba277be71f17a6f':
Layoutlib: Update the wifi icon in the status bar. [DO NOT MERGE]
2014-05-13 01:52:28 +00:00
Deepanshu Gupta
9f2f5e776a
am 2d82586b: Fix CalendarView to show the right labels. [DO NOT MERGE]
...
* commit '2d82586b96593b1b3b5280d77d5ae9a09df9d1fd':
Fix CalendarView to show the right labels. [DO NOT MERGE]
2014-05-13 01:52:25 +00:00
Deepanshu Gupta
06c4f23d73
am 64dc0380: Fix layoutlib [DO NOT MERGE]
...
* commit '64dc0380127047ffcf135b6848c9150aa8dbed85':
Fix layoutlib [DO NOT MERGE]
2014-05-13 01:52:21 +00:00
Deepanshu Gupta
cdb87d8d83
am a59c27dd: Fix ClassCastException when rendering ListView [DO NOT MERGE]
...
* commit 'a59c27dd6674a31c875b0baa86519caec628ca2d':
Fix ClassCastException when rendering ListView [DO NOT MERGE]
2014-05-13 01:52:18 +00:00
Deepanshu Gupta
edae4e6951
am 8a39c3af: Add orientation to configuration for layoutlib. [DO NOT MERGE]
...
* commit '8a39c3afb29f2540b05319042e758dd4d5f73a1e':
Add orientation to configuration for layoutlib. [DO NOT MERGE]
2014-05-13 01:52:15 +00:00
Deepanshu Gupta
3a11562823
Add Navigation Bar to BridgeWindowManager [DO NOT MERGE]
...
Return the right value for presence of software navigation bar in
BridgeWindowManager. This is required to render the overflow menu button
correctly in the Action Bar.
Change-Id: I73de3b299f6a3a113425c436a59e800cd1d6b97f
2014-05-07 18:09:48 -07:00
Deepanshu Gupta
2d3fa7ba78
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 099f40a950 )
2014-05-07 18:09:48 -07:00
Deepanshu Gupta
7bc363ba72
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 7c6f6481f4 )
2014-05-07 18:09:47 -07:00
Deepanshu Gupta
5268248e07
Use ApplicationInfo only when not in edit mode [DO NOT MERGE]
...
When running in edit mode, do not use the application info to get the
icon, since it will be null.
Change-Id: I174e6126ddca341d06c5f04939470ef52f0e771c
(cherry picked from commit 90ce58ecfd )
2014-05-07 18:09:47 -07:00
Deepanshu Gupta
85f53c3335
Fix style warnings in RenderSessionImpl [DO NOT MERGE]
...
Change-Id: I9d3cb23e4ea692f737a3e3d6c18cc8de18b66a3c
(cherry-picked from commit 22de7c4c3d )
2014-05-07 18:09:46 -07:00