summaryrefslogtreecommitdiffstats
path: root/tools/layoutlib/bridge
Commit message (Collapse)AuthorAgeFilesLines
...
| | | * Fix imports. [DO NOT MERGE]Deepanshu Gupta2015-08-253-23/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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)
| | * | am 4a213763: am 5ad4dae1: Fix theme namespace in tests. [DO NOT MERGE]Deepanshu Gupta2015-08-261-1/+1
| | |\ \ | | | |/ | | | | | | | | | | | | * commit '4a2137639aba761dcf289f1e2cc2e48dd42e7a3f': Fix theme namespace in tests. [DO NOT MERGE]
| | | * Fix theme namespace in tests. [DO NOT MERGE]Deepanshu Gupta2015-08-251-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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)
| | * | am f988761c: am 723e136f: Run setup for full tests only once. [DO NOT MERGE]Deepanshu Gupta2015-08-261-26/+36
| | |\ \ | | | |/ | | | | | | | | | | | | * commit 'f988761c0acc02bb4b21b6357e418da7799f11e7': Run setup for full tests only once. [DO NOT MERGE]
| | | * Run setup for full tests only once. [DO NOT MERGE]Deepanshu Gupta2015-08-251-26/+36
| | | | | | | | | | | | | | | | | | | | Change-Id: Iee64dbd88d473b7be08581f26ccddf649aed8e56 (cherry picked from commit a12ec8f1e28cb5a8601bf606852f1d34d7c91996)
| | * | am e54dbc4a: am 3ba16c1d: LayoutLib: fix layout when nav bar is absent. [DO ↵Deepanshu Gupta2015-08-261-12/+19
| | |\ \ | | | |/ | | | | | | | | | | | | | | | | | | | | NOT MERGE] * commit 'e54dbc4ac74d110c4121932a22d04447a0e15b65': LayoutLib: fix layout when nav bar is absent. [DO NOT MERGE]
| | | * LayoutLib: fix layout when nav bar is absent. [DO NOT MERGE]Deepanshu Gupta2015-08-251-12/+19
| | | | | | | | | | | | | | | | | | | | Change-Id: I0d3ee6fd5a4656156a630d3b298533ea13eb8415 (cherry picked from commit 6e8d8ad2b7cffed751b2a382ac7b761954767188)
| | * | am 147c0506: am 55a36337: LayoutLib: Fix Status/Navigation Bar color. [DO ↵Deepanshu Gupta2015-08-261-2/+16
| | |\ \ | | | |/ | | | | | | | | | | | | | | | | | | | | NOT MERGE] * commit '147c0506d5425633f0d45e1489262d4e27a35921': LayoutLib: Fix Status/Navigation Bar color. [DO NOT MERGE]
| | | * LayoutLib: Fix Status/Navigation Bar color. [DO NOT MERGE]Deepanshu Gupta2015-08-251-2/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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)
| | * | am e093bbf3: am d861fd81: Set support flag for custom layouts for ↵Deepanshu Gupta2015-08-261-1/+1
| | |\ \ | | | |/ | | | | | | | | | | | | | | | | | | | | RecyclerView. [DO NOT MERGE] * commit 'e093bbf3997de7d2dddc2122c1349f734478f09f': Set support flag for custom layouts for RecyclerView. [DO NOT MERGE]
| | | * Set support flag for custom layouts for RecyclerView. [DO NOT MERGE]Deepanshu Gupta2015-08-251-1/+1
| | | | | | | | | | | | | | | | | | | | Change-Id: I3a0349c0482ae45e226b2016a0f24707c85edff4 (cherry picked from commit f7712d3524309c365b68f93497771084e6b5a66b)
| | * | am 8a50ecea: am 82fae621: LayoutLib: translucent sys ui bars [DO NOT MERGE]Deepanshu Gupta2015-08-266-62/+113
| | |\ \ | | | |/ | | | | | | | | | | | | * commit '8a50ecea2ea0218377f7af8b4334b4ee4d386ef7': LayoutLib: translucent sys ui bars [DO NOT MERGE]
| | | * LayoutLib: translucent sys ui bars [DO NOT MERGE]Deepanshu Gupta2015-08-256-62/+113
| | | | | | | | | | | | | | | | | | | | Change-Id: I9c294329fc78418c505a5115bc9c07da29595af2 (cherry picked from commit fc8f4aad7395eca11f6d9b82eb266b1f4ee5041b)
| | * | am d4be80d9: am 9068539a: Update nav bar icons. [DO NOT MERGE]Deepanshu Gupta2015-08-2623-14/+149
| | |\ \ | | | |/ | | | | | | | | | | | | * commit 'd4be80d9962cdf5d68dccd3291ed1cabb76b6df2': Update nav bar icons. [DO NOT MERGE]
| | | * Update nav bar icons. [DO NOT MERGE]Deepanshu Gupta2015-08-2523-14/+149
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - 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)
| | * | am d1dde055: am e5afc311: Move the layout code out of RenderSessionImpl. [DO ↵Deepanshu Gupta2015-08-2611-490/+511
| | |\ \ | | | |/ | | | | | | | | | | | | | | | | | | | | NOT MERGE] * commit 'd1dde055060d63f8981ba51aeb75ab8a459db9b4': Move the layout code out of RenderSessionImpl. [DO NOT MERGE]
| | | * Move the layout code out of RenderSessionImpl. [DO NOT MERGE]Deepanshu Gupta2015-08-2511-490/+511
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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)
| | * | am 87f5fd6b: am c989950d: CalendarView rendering: use R.styleable to find ↵Deepanshu Gupta2015-08-261-19/+123
| | |\ \ | | | |/ | | | | | | | | | | | | | | | | | | | | attr. [DO NOT MERGE] * commit '87f5fd6bf2c0d72fd37fb923b4d38225caa55d55': CalendarView rendering: use R.styleable to find attr. [DO NOT MERGE]
| | | * CalendarView rendering: use R.styleable to find attr. [DO NOT MERGE]Deepanshu Gupta2015-08-251-19/+123
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Not all attr are added to R.attr. This results in some attr not being found and hence a broken rendering. Fix the issue by adding all attr referenced in R.styleable to the map of attr before adding any remaining values from R.attr. Change-Id: I1ebf8a394b9e1edbf7490e011833d20a00d38317 (cherry picked from commit e8018480dbefc896bd26e5eedfdde802ce3731a7)
| | * | am e3eecca9: am b2fdaca9: Add tools:openDrawer to open a DrawerLayout. [DO ↵Deepanshu Gupta2015-08-266-6/+111
| | |\ \ | | | |/ | | | | | | | | | | | | | | | | | | | | NOT MERGE] * commit 'e3eecca924e7c7961c54eb37336767c995c936e7': Add tools:openDrawer to open a DrawerLayout. [DO NOT MERGE]
| | | * Add tools:openDrawer to open a DrawerLayout. [DO NOT MERGE]Deepanshu Gupta2015-08-256-6/+111
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Store a list of drawer layouts with tools:openDrawer encountered and call openDrawer on them during the post-inflation processing. Change-Id: Idee299a9af1bb106509a03bb2e8424c372b93dc5 (cherry picked from commit ccbc11770397888cf7780925bb4c7cf1d2f2f80e)
| | * | am b4060700: am a14ec6f4: Change tools:list_item to listitem. [DO NOT MERGE]Deepanshu Gupta2015-08-261-1/+3
| | |\ \ | | | |/ | | | | | | | | | | | | * commit 'b406070040d1370b6ef6154cba3965c4ab016d66': Change tools:list_item to listitem. [DO NOT MERGE]
| | | * Change tools:list_item to listitem. [DO NOT MERGE]Deepanshu Gupta2015-08-251-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The listitem is already in use for ListView. Reuse the same attribute for RecyclerView rather than creating a new one. Change-Id: I82aabe7d04fbe3e61645bc427a81c14c454d03c5 (cherry picked from commit 111dc04a28f0181bf429e5ded9024d3fdff7be50)
| | * | am 8bfc5a9d: am b1e21330: Implement tools:list_item for RecyclerView. [DO ↵Deepanshu Gupta2015-08-265-51/+79
| | |\ \ | | | |/ | | | | | | | | | | | | | | | | | | | | NOT MERGE] * commit '8bfc5a9d14000a436e54350099bd460f55418f27': Implement tools:list_item for RecyclerView. [DO NOT MERGE]
| | | * Implement tools:list_item for RecyclerView. [DO NOT MERGE]Deepanshu Gupta2015-08-255-51/+79
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | It's now possible to use tools:list_item attribute for RecyclerView to point to a default layout, rather than always using a TextView. Change-Id: I5d522b2f0ca38b420fddfcb0f73a26d95707da79 (cherry picked from commit 61f23e9bf7d784e7a52168196758c4f6c6853e77)
| | * | am 67b73b60: am cd4d5b3f: Support AppBar from Material Design. [DO NOT MERGE]Jens Ole Lauridsen2015-08-264-1/+182
| | |\ \ | | | |/ | | | | | | | | | | | | * commit '67b73b60bf9c9f433ed282abdc3691ee0cc6dda0': Support AppBar from Material Design. [DO NOT MERGE]
| | | * Support AppBar from Material Design. [DO NOT MERGE]Jens Ole Lauridsen2015-08-254-1/+182
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This CL is a start for making the design able to render the AppBar. We are still missing support for: system menu and the app icon. Change-Id: I19600f8ee1e7e6492186a0b7ae7fb38c82e15c02 (cherry picked from commit 4dfe4d43ce5634f059a3ba669e3cac4551c3a3ee)
| | * | am 6f5709ca: am de13095d: Update tests per new layoutlib_api [DO NOT MERGE]Deepanshu Gupta2015-08-261-1/+1
| | |\ \ | | | |/ | | | | | | | | | | | | * commit '6f5709ca97b27db9877c2fc65b083783d3f41e02': Update tests per new layoutlib_api [DO NOT MERGE]
| | | * Update tests per new layoutlib_api [DO NOT MERGE]Deepanshu Gupta2015-08-251-1/+1
| | | | | | | | | | | | | | | | | | | | Change-Id: Idc89ffceaf171abcf2b579f4e934b514ef209210 (cherry picked from commit d7b846c1814de34f2cea8507907f70618ec7cae0)
| | * | am 9a13b1e7: am db67caa6: Add missing resolveResValue call. [DO NOT MERGE]Deepanshu Gupta2015-08-261-1/+1
| | |\ \ | | | |/ | | | | | | | | | | | | * commit '9a13b1e7502734fbe54d6f0e1c386f5382dfa662': Add missing resolveResValue call. [DO NOT MERGE]
| | | * Add missing resolveResValue call. [DO NOT MERGE]Deepanshu Gupta2015-08-251-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | Bug: http://b.android.com/178504 Change-Id: I7dde8094cf762893e4f7ea0d3de87a281c9602cd (cherry picked from commit 5d1eaf4a197130f561b16c4ed083cf016b20ab92)
| | * | am 15e549a8: am 4f5e6c63: Skip warnings for some unresolved references. [DO ↵Deepanshu Gupta2015-08-261-0/+41
| | |\ \ | | | |/ | | | | | | | | | | | | | | | | | | | | NOT MERGE] * commit '15e549a81f59daf016f29c6ed6f1aa3d5f65d41c': Skip warnings for some unresolved references. [DO NOT MERGE]
| | | * Skip warnings for some unresolved references. [DO NOT MERGE]Deepanshu Gupta2015-08-251-0/+41
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Some applications rename the newer RTL attributes to the older attributes in order to target RTL locales, but not need to include two attributes everywhere it's needed. For example, iosched renames paddingStart to paddingLeft (among other attributes) for API 17 and above. This leads to hundreds of warnings about missing attributes. This change suppresses such warnings. Also, skip adding unresolved attributes to the typed array. This is more in line with the actual implementation on device, and prevents unexpected warnings/errors/crashes later. Change-Id: Iee616fa6295aa9731ede0cf9dcd6dd2bd1fe8f20 (cherry picked from commit b3e872be9e634c8d1f34d07778ea753880bbf2d9)
| | * | am 669e4969: am 3e875dbb: Fix import order. [DO NOT MERGE]Deepanshu Gupta2015-08-261-1/+1
| | |\ \ | | | |/ | | | | | | | | | | | | * commit '669e4969a7245cf9d1febc5d4e67a0f2063e87fb': Fix import order. [DO NOT MERGE]
| | | * Fix import order. [DO NOT MERGE]Deepanshu Gupta2015-08-251-1/+1
| | | | | | | | | | | | | | | | | | | | Change-Id: I50bfbf4011290683a1c6adb94e0b6fa301dcc75b (cherry picked from commit b9b8aef94e5bad8f5f03f686a2d3d8a09c045a7b)
| | * | am c0fd1316: am e5fa12ad: Fix ParserFactory not initialized error. [DO NOT ↵Deepanshu Gupta2015-08-261-3/+3
| | |\ \ | | | |/ | | | | | | | | | | | | | | | | | | | | MERGE] * commit 'c0fd131642f21eabec570147cf9f4116c900e8a0': Fix ParserFactory not initialized error. [DO NOT MERGE]
| | | * Fix ParserFactory not initialized error. [DO NOT MERGE]Deepanshu Gupta2015-08-251-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | Bug: http://b.android.com/175129 Change-Id: I2111673767e0f62ee910560022b559a177d55abd (cherry picked from commit 996458b76c944f78eee26d7bd8cb4d39303b9119)
| | * | am 6b836cd0: am a287b842: Fix NPE in BridgeContext.obtainStyledAttributes() ↵Deepanshu Gupta2015-08-261-1/+2
| | |\ \ | | | |/ | | | | | | | | | | | | | | | | | | | | [DO NOT MERGE] * commit '6b836cd06b1a2ebe5d31336486bb1b54e42439df': Fix NPE in BridgeContext.obtainStyledAttributes() [DO NOT MERGE]
| | | * Fix NPE in BridgeContext.obtainStyledAttributes() [DO NOT MERGE]Deepanshu Gupta2015-08-251-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Replace direct member access with getter that checks for nullness. Change-Id: I4a56a0ee903ae7d8c89b91d74b128302e1965586 (cherry picked from commit d758e042ce08c46712db3db2d63fc84795028dfe)
| | * | am 91e456d2: am e698bb27: Fix BridgeTypedArray.getType() [DO NOT MERGE]Deepanshu Gupta2015-08-261-2/+119
| | |\ \ | | | |/ | | | | | | | | | | | | * commit '91e456d235256c385a7da1e45f098386bc68e86a': Fix BridgeTypedArray.getType() [DO NOT MERGE]
| | | * Fix BridgeTypedArray.getType() [DO NOT MERGE]Deepanshu Gupta2015-08-251-2/+119
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Also includes some fixes for BridgeTypedArray.getInt() - when value is a color, when value is an octal int, when value is true/false. Bug: http://b.android.com/162438 Change-Id: I0b985ea3437be8018d0e116e7a599843cc7aacd6 (cherry picked from commit 5779ad71eabed3aabaefef1e4749693f8320816e)
| | * | am 66d5f24d: am ba5a02c5: LayoutLib: Support getting resource arrays. [DO ↵Deepanshu Gupta2015-08-2622-14/+244
| | |\ \ | | | |/ | | | | | | | | | | | | | | | | | | | | NOT MERGE] * commit '66d5f24df0c3627028812ee23da8d4f08cc83e5c': LayoutLib: Support getting resource arrays. [DO NOT MERGE]
| | | * LayoutLib: Support getting resource arrays. [DO NOT MERGE]Deepanshu Gupta2015-08-2522-14/+244
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Don't crash when Resources.get<Type>Array() is called. - If the IDE supports it, actually return the value. - Add tests for getArray. - Update test app to latest gradle plugin version. - Switch to using AppTheme for tests, since the tests depend on some custom theme attributes. The AppTheme now inherits from Material.Light.DarkActionBar, so other tests should be unaffected. Depends on a newer version of sdk-common, which fixes the parsing of array resource in value files. Bug: 12372031 Change-Id: I313b61511e98ac1402d75056ebfdeeb005ebb96d (cherry picked from commit 642cff50f8f7a67eed09eac1e56d7133b26a192c)
| | * | am b32e44ff: am a5ffed0b: LayoutLib: Change nullity annotations. [DO NOT MERGE]Deepanshu Gupta2015-08-2628-35/+42
| | |\ \ | | | |/ | | | | | | | | | | | | * commit 'b32e44ff0c5fd410720bb28c87bc9cea83556edf': LayoutLib: Change nullity annotations. [DO NOT MERGE]
| | | * LayoutLib: Change nullity annotations. [DO NOT MERGE]Deepanshu Gupta2015-08-2528-35/+42
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Switch from using tools nullity annotations (com.android.annotations) to android framework annotations (android.annotation). A new sdk-common prebuilt is required for LayoutLib tests. The new sdk-common requires an updated tools-common. The updated tools-common doesn't have nullity annotations. So, instead of adding the annotation dependency, just reuse the platform ones. This also paves the way to include other platform annotations like IdRes etc. Change-Id: I87b8f767d3681d914abe7d1329e26a87f49f50a7 (cherry picked from commit 476e582d2ffdf25102d4c55f8c242baa3d21d37f)
| | * | am 1754824c: am c96ef952: Add documentation about hack in commit: f8ea750455 ↵Deepanshu Gupta2015-08-261-0/+14
| | |\ \ | | | |/ | | | | | | | | | | | | | | | | | | | | [DO NOT MERGE] * commit '1754824c2835d6f3a17c4a2c0ab668991797fcf9': Add documentation about hack in commit: f8ea750455 [DO NOT MERGE]
| | | * Add documentation about hack in commit: f8ea750455 [DO NOT MERGE]Deepanshu Gupta2015-08-251-0/+14
| | | | | | | | | | | | | | | | | | | | Change-Id: I9ce871a67fb67e02e0c4df1eb5c3261ea52a914b (cherry picked from commit 6330971ed293a2777bbdab09288f90ea4b2d0255)
| | * | am 678f0ea2: am b318ff54: Make DatePicker rendering not fail (style search ↵Deepanshu Gupta2015-08-261-26/+32
| | |\ \ | | | |/ | | | | | | | | | | | | | | | | | | | | fix). [DO NOT MERGE] * commit '678f0ea2ba47f06387670e9f75b13637a6446899': Make DatePicker rendering not fail (style search fix). [DO NOT MERGE]
| | | * Make DatePicker rendering not fail (style search fix). [DO NOT MERGE]Deepanshu Gupta2015-08-251-26/+32
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Only cherry picked for the style not found fix. Change-Id: Ied2b71de5b32bcb640bf4ec445e8a39509f800e9 (cherry picked from commit d5b82845450beac2d3c7db9cd80e9fc34d43a297)
| | * | am 899daf75: am d7e89906: Update platformDir search in tests. [DO NOT MERGE]Deepanshu Gupta2015-08-261-2/+7
| | |\ \ | | | |/ | | | | | | | | | | | | * commit '899daf759e02bef0de14dc1a14b96b4d71f0b9fc': Update platformDir search in tests. [DO NOT MERGE]