178263 Commits

Author SHA1 Message Date
Deepanshu Gupta
f988761c0a am 723e136f: Run setup for full tests only once. [DO NOT MERGE]
* commit '723e136f96a06360a62dc981da1c8ea0ae546660':
  Run setup for full tests only once. [DO NOT MERGE]
2015-08-26 05:57:31 +00:00
Deepanshu Gupta
e54dbc4ac7 am 3ba16c1d: LayoutLib: fix layout when nav bar is absent. [DO NOT MERGE]
* commit '3ba16c1d9d53d520543e1bd363236453101096ec':
  LayoutLib: fix layout when nav bar is absent. [DO NOT MERGE]
2015-08-26 05:57:25 +00:00
Deepanshu Gupta
147c0506d5 am 55a36337: LayoutLib: Fix Status/Navigation Bar color. [DO NOT MERGE]
* commit '55a363376b4d877870650a5a4b757d286f571345':
  LayoutLib: Fix Status/Navigation Bar color. [DO NOT MERGE]
2015-08-26 05:57:17 +00:00
Deepanshu Gupta
e093bbf399 am d861fd81: Set support flag for custom layouts for RecyclerView. [DO NOT MERGE]
* commit 'd861fd81f7a2e62a31c4f2c7aed66fceb475d0c8':
  Set support flag for custom layouts for RecyclerView. [DO NOT MERGE]
2015-08-26 05:57:13 +00:00
Deepanshu Gupta
8a50ecea2e am 82fae621: LayoutLib: translucent sys ui bars [DO NOT MERGE]
* commit '82fae621533f9d8fc92f5a8d330ebe94a67ff07d':
  LayoutLib: translucent sys ui bars [DO NOT MERGE]
2015-08-26 05:57:08 +00:00
Deepanshu Gupta
d4be80d996 am 9068539a: Update nav bar icons. [DO NOT MERGE]
* commit '9068539a48e13a7d32342e46db32b6f5fa3d531e':
  Update nav bar icons. [DO NOT MERGE]
2015-08-26 05:57:04 +00:00
Deepanshu Gupta
d1dde05506 am e5afc311: Move the layout code out of RenderSessionImpl. [DO NOT MERGE]
* commit 'e5afc3117be394fdd92496b39e9bad248972902a':
  Move the layout code out of RenderSessionImpl. [DO NOT MERGE]
2015-08-26 05:56:59 +00:00
Deepanshu Gupta
87f5fd6bf2 am c989950d: CalendarView rendering: use R.styleable to find attr. [DO NOT MERGE]
* commit 'c989950dbf18dc294aebfff47c86bfd0349377a0':
  CalendarView rendering: use R.styleable to find attr. [DO NOT MERGE]
2015-08-26 05:56:55 +00:00
Deepanshu Gupta
e3eecca924 am b2fdaca9: Add tools:openDrawer to open a DrawerLayout. [DO NOT MERGE]
* commit 'b2fdaca9590f808fda08e055edbf6fca8030d7d3':
  Add tools:openDrawer to open a DrawerLayout. [DO NOT MERGE]
2015-08-26 05:56:50 +00:00
Deepanshu Gupta
b406070040 am a14ec6f4: Change tools:list_item to listitem. [DO NOT MERGE]
* commit 'a14ec6f450eaff09b6800fc40616a00cf4899df8':
  Change tools:list_item to listitem. [DO NOT MERGE]
2015-08-26 05:56:45 +00:00
Deepanshu Gupta
8bfc5a9d14 am b1e21330: Implement tools:list_item for RecyclerView. [DO NOT MERGE]
* commit 'b1e21330f82ec0940658b16dfe7e14e8da8c5d33':
  Implement tools:list_item for RecyclerView. [DO NOT MERGE]
2015-08-26 05:56:41 +00:00
Jens Ole Lauridsen
67b73b60bf am cd4d5b3f: Support AppBar from Material Design. [DO NOT MERGE]
* commit 'cd4d5b3f38186f845e00454b4b95bec77c3ac8fd':
  Support AppBar from Material Design. [DO NOT MERGE]
2015-08-26 05:56:36 +00:00
Deepanshu Gupta
6f5709ca97 am de13095d: Update tests per new layoutlib_api [DO NOT MERGE]
* commit 'de13095d5d6b404c41d36d18d060fb41a9a4fc31':
  Update tests per new layoutlib_api [DO NOT MERGE]
2015-08-26 05:56:31 +00:00
Deepanshu Gupta
9a13b1e750 am db67caa6: Add missing resolveResValue call. [DO NOT MERGE]
* commit 'db67caa60c6050e7a46d1b90ccb6847a5b8ec661':
  Add missing resolveResValue call. [DO NOT MERGE]
2015-08-26 05:56:27 +00:00
Deepanshu Gupta
ad16968d50 am 6eef1246: LayoutLib: Skip classes from java package. [DO NOT MERGE]
* commit '6eef124657a6e7d2c70b284f22d6c0006cfea93a':
  LayoutLib: Skip classes from java package. [DO NOT MERGE]
2015-08-26 05:56:22 +00:00
Deepanshu Gupta
15e549a81f am 4f5e6c63: Skip warnings for some unresolved references. [DO NOT MERGE]
* commit '4f5e6c631522649796413c63695ae45b8759eba8':
  Skip warnings for some unresolved references. [DO NOT MERGE]
2015-08-26 05:56:08 +00:00
Deepanshu Gupta
669e4969a7 am 3e875dbb: Fix import order. [DO NOT MERGE]
* commit '3e875dbb38c812e3684193fdefa04433c84541db':
  Fix import order. [DO NOT MERGE]
2015-08-26 05:56:00 +00:00
Deepanshu Gupta
c0fd131642 am e5fa12ad: Fix ParserFactory not initialized error. [DO NOT MERGE]
* commit 'e5fa12ad781c1759e0ff94dbc649be0e14844306':
  Fix ParserFactory not initialized error. [DO NOT MERGE]
2015-08-26 05:55:47 +00:00
Deepanshu Gupta
6b836cd06b am a287b842: Fix NPE in BridgeContext.obtainStyledAttributes() [DO NOT MERGE]
* commit 'a287b8428ac6d9073f84f9b2f47ba5fc73939f10':
  Fix NPE in BridgeContext.obtainStyledAttributes() [DO NOT MERGE]
2015-08-26 05:55:42 +00:00
Deepanshu Gupta
91e456d235 am e698bb27: Fix BridgeTypedArray.getType() [DO NOT MERGE]
* commit 'e698bb27f3a0090e01132fd7b5a6d95abcbbfc18':
  Fix BridgeTypedArray.getType() [DO NOT MERGE]
2015-08-26 05:55:37 +00:00
Deepanshu Gupta
8a6295e82a am e481e713: Include Shapes in LayoutLib. [DO NOT MERGE]
* commit 'e481e713f24c83a3347fd83580d07252d589ec3b':
  Include Shapes in LayoutLib. [DO NOT MERGE]
2015-08-26 05:55:33 +00:00
Deepanshu Gupta
66d5f24df0 am ba5a02c5: LayoutLib: Support getting resource arrays. [DO NOT MERGE]
* commit 'ba5a02c5aa3c9850cdd72e592e9fa8a8d92db7ef':
  LayoutLib: Support getting resource arrays. [DO NOT MERGE]
2015-08-26 05:55:26 +00:00
Deepanshu Gupta
b32e44ff0c am a5ffed0b: LayoutLib: Change nullity annotations. [DO NOT MERGE]
* commit 'a5ffed0b69ac41d65aacc6ee586688a22226f64b':
  LayoutLib: Change nullity annotations. [DO NOT MERGE]
2015-08-26 05:55:19 +00:00
Deepanshu Gupta
1754824c28 am c96ef952: Add documentation about hack in commit: f8ea750455 [DO NOT MERGE]
* commit 'c96ef95285e935034377dee30f3b8a0329f6c3a2':
  Add documentation about hack in commit: f8ea750455 [DO NOT MERGE]
2015-08-26 05:55:14 +00:00
Deepanshu Gupta
678f0ea2ba am b318ff54: Make DatePicker rendering not fail (style search fix). [DO NOT MERGE]
* commit 'b318ff54fcd17e7aadd1b0251c34cba348898704':
  Make DatePicker rendering not fail (style search fix). [DO NOT MERGE]
2015-08-26 05:55:07 +00:00
Deepanshu Gupta
2e57c1e23f am cc5e69e4: Inject anonymous inner classes of injected classes [DO NOT MERGE]
* commit 'cc5e69e4fed8bb797dc3f83c1de32eaf4a52f324':
  Inject anonymous inner classes of injected classes [DO NOT MERGE]
2015-08-26 05:55:02 +00:00
Deepanshu Gupta
899daf759e am d7e89906: Update platformDir search in tests. [DO NOT MERGE]
* commit 'd7e89906a453a562a8fef303fc6c4068dfa5c0d0':
  Update platformDir search in tests. [DO NOT MERGE]
2015-08-26 05:54:58 +00:00
Deepanshu Gupta
2f50403fe0 am afedbc47: Make Context.getClassLoader() work. [DO NOT MERGE]
* commit 'afedbc47b3c8f3fa9955496e6ceb7f5702dd90a3':
  Make Context.getClassLoader() work. [DO NOT MERGE]
2015-08-26 05:54:52 +00:00
Deepanshu Gupta
de3ac8f9fc am 92480a9a: Fix include tag rendering. [DO NOT MERGE]
* commit '92480a9ad89a813bdf36185fa8c4d227d8415b4c':
  Fix include tag rendering. [DO NOT MERGE]
2015-08-26 05:54:44 +00:00
Deepanshu Gupta
50e1406a4a am f6b08547: Show better error message for color attr not found. [DO NOT MERGE]
* commit 'f6b08547458b9219da1717a79363f778bfc57dd0':
  Show better error message for color attr not found. [DO NOT MERGE]
2015-08-26 05:54:39 +00:00
Deepanshu Gupta
81990c3f98 am b1370c26: Fix build: udpate parser factory method [DO NOT MERGE]
* commit 'b1370c2687f4b03f7b9b36f89bb636b5b65f9531':
  Fix build: udpate parser factory method [DO NOT MERGE]
2015-08-26 05:54:33 +00:00
Deepanshu Gupta
0a07bb95a1 am aa729889: Don\'t keep LayoutlibCallback reference. [DO NOT MERGE]
* commit 'aa72988955789be6e790c344daba3ef17abfcd98':
  Don't keep LayoutlibCallback reference. [DO NOT MERGE]
2015-08-26 05:54:28 +00:00
Deepanshu Gupta
bbbdc2ad89 am 5c90c4f4: Remove kxml dependency [DO NOT MERGE]
* commit '5c90c4f459c2a7213a197f7ee98ad71e85af31bc':
  Remove kxml dependency [DO NOT MERGE]
2015-08-26 05:54:23 +00:00
Deepanshu Gupta
a1be8b43e4 LayoutLib: Update golden test images. [DO NOT MERGE]
Also update the generated classes from the MyApplication test project.

Change-Id: I97bce3737c0cb528a61fa652988a2edb09ec885d
2015-08-25 17:12:16 -07:00
Deepanshu Gupta
c9862b4429 An ugly hack to render CalendarView. [DO NOT MERGE]
This is an ugly hack to switch the field
android.widget.SimpleMonthView.mDayFormatter from
java.text.SimpleDateFormat to icu's version of the same class. The hack
is only for the L version of the LayoutLib. It's done in a better way in
M and even better in N.

Change-Id: Id84a1d32040211c46b20cdaf3a77119676e748b6
2015-08-25 16:06:57 -07:00
Deepanshu Gupta
b1ad4a1559 LayoutLib: Fix true transparency in status bar. [DO NOT MERGE]
Change-Id: Ieedf23cde9ab3e36c77501d30cc7e808e66a4782
(cherry picked from commit f9662c006c650c9f61f19a5e1ea4a76640eb85ca)
2015-08-25 12:06:59 -07:00
Deepanshu Gupta
da687918e1 Make getInt in BridgeTypedArray accept empty String. [DO NOT MERGE]
The XML editor already warns about the empty strings in places where an
int value is required. There's no need to show another warning for it in
the rendering panel. Also, the rendering might have also failed when the
empty string is encountered. Try an continue the rendering, because no
rendering state is really bad.

Change-Id: I85106f37e4462f237e85f0b065b4ce8a4bfabf4d
(cherry picked from commit 0437cac76c24dc6cac7b530e6d80f789565550ec)
2015-08-25 12:06:58 -07:00
Deepanshu Gupta
8c674fda89 Fix layout mirroring. [DO NOT MERGE]
Change-Id: I7db398aa2d11dac1210e84922138f78f0c23bb9b
(cherry picked from commit a9090705efcc44f015486944e5aeb926173a7968)
2015-08-25 12:06:58 -07:00
Deepanshu Gupta
7aa3612940 Fix typo: s/FullScreen/Fullscreen/ in LayoutLib. [DO NOT MERGE]
Change-Id: Ia8d223ae01f08df945ab05615b07075b98a54a32
(cherry picked from commit 5a8f33f1b09b0311f1bbd1ec6b90db706edb5219)
2015-08-25 12:06:57 -07:00
Deepanshu Gupta
92f373fe32 Fix Matrix_Delegate.native_getValues() [DO NOT MERGE]
The bug manifested itself by not rendering the wifi icon in the status
bar.

Change-Id: I7debf3eef387965d774bf66e856812e67c8552a7
(cherry picked from commit 9f280a9301566c94a583cc45b6abea8a4488e33c)
2015-08-25 12:06:57 -07:00
Deepanshu Gupta
66d914018c Revert to using AppTheme for LayoutLib tests. [DO NOT MERGE]
Use AppTheme for all tests other than testExpand. AppTheme contains an
attribute needed by testArrayCheck. Also, since the AppTheme extends
Theme.Material.Light.DarkActionBar, other tests should be unaffected.

Also, update the golden image for the testArrayCheck.

Change-Id: Ib5f53f3b029c5aceef2b622e5ac63952d6b1972a
(cherry picked from commit 89a045c31f4f08bc0d9d533ef47f321e6423f656)
2015-08-25 12:06:57 -07:00
Deepanshu Gupta
6b1b651fed Fix imports. [DO NOT MERGE]
Also remove null checks on return value of ReflectionUtils.getMethod()
as the method always return non null.

Change-Id: Ib476302c2cf0504a0f54db4e795955ad10e5df3f
(cherry picked from commit 671b7f9b99316f7224c1213d6923d449a2de9b62)
2015-08-25 12:06:56 -07:00
Deepanshu Gupta
5ad4dae157 Fix theme namespace in tests. [DO NOT MERGE]
The tests used framework theme (Material), but the ResourceResolver was
created with project theme. This caused tests to fail becasue of missing
resources.

Change-Id: Ia17ee19054f6689f85e3423e83c1f47a2cc4364f
(cherry picked from commit 4a6ee98d39ab2300b2cd17c60221e43bf4ade8e7)
2015-08-25 12:06:56 -07:00
Deepanshu Gupta
723e136f96 Run setup for full tests only once. [DO NOT MERGE]
Change-Id: Iee64dbd88d473b7be08581f26ccddf649aed8e56
(cherry picked from commit a12ec8f1e28cb5a8601bf606852f1d34d7c91996)
2015-08-25 12:06:55 -07:00
Deepanshu Gupta
3ba16c1d9d LayoutLib: fix layout when nav bar is absent. [DO NOT MERGE]
Change-Id: I0d3ee6fd5a4656156a630d3b298533ea13eb8415
(cherry picked from commit 6e8d8ad2b7cffed751b2a382ac7b761954767188)
2015-08-25 12:06:55 -07:00
Deepanshu Gupta
55a363376b LayoutLib: Fix Status/Navigation Bar color. [DO NOT MERGE]
If the color value for status bar or navigation bar is declared directly
in the theme (i.e. doesn't reference a color resource via @color/foo),
the ResourceType for the attribute is not assigned by the IDE. LayoutLib
used to ignore resources that were not of type color. This change fixes
the issue by also checking the resources without a type.

Change-Id: I94735ec225415282db06ab9db5c3233ad89c052f
(cherry picked from commit e3f9834ebd8a6e4ee155c8e4c9456dfc98e8b832)
2015-08-25 12:06:54 -07:00
Deepanshu Gupta
d861fd81f7 Set support flag for custom layouts for RecyclerView. [DO NOT MERGE]
Change-Id: I3a0349c0482ae45e226b2016a0f24707c85edff4
(cherry picked from commit f7712d3524309c365b68f93497771084e6b5a66b)
2015-08-25 12:06:54 -07:00
Deepanshu Gupta
82fae62153 LayoutLib: translucent sys ui bars [DO NOT MERGE]
Change-Id: I9c294329fc78418c505a5115bc9c07da29595af2
(cherry picked from commit fc8f4aad7395eca11f6d9b82eb266b1f4ee5041b)
2015-08-25 12:06:53 -07:00
Deepanshu Gupta
9068539a48 Update nav bar icons. [DO NOT MERGE]
- Add a script to copy the icons from the original source.
- Update layout used for the navigation bar to be closer to the original
  layout.
- Update test image with the latest rendering.
- Add a nexus 5 landscape device config to help with testing.

Change-Id: I0b6674955e0970a6a8cce148b1b7aa61e1752ccd
(cherry picked from commit 139d6ff12d395a888624113fdd2521861b47d761)
2015-08-25 12:06:53 -07:00
Deepanshu Gupta
e5afc3117b Move the layout code out of RenderSessionImpl. [DO NOT MERGE]
Also, switch to using a RelativeLayout from a LinearLayout. The change
will help in future when enabling transparent status and nav bar.

Change-Id: Ie4db5d28313f1c5ef775603788598a56409f92c7
(cherry picked from commit b1484862e2367d87d3ccbd0fd0a6d2598ed5918a)
2015-08-25 12:06:52 -07:00