OSDN Git Service

Change BridgeResources to Resources_Delegate [DO NOT MERGE]
authorDeepanshu Gupta <deepanshu@google.com>
Fri, 4 Mar 2016 14:01:28 +0000 (19:31 +0530)
committerDeepanshu Gupta <deepanshu@google.com>
Fri, 4 Mar 2016 14:48:23 +0000 (20:18 +0530)
commit9b137e27d34efb89024543ffd2def2b37307aa0c
tree9a8078d3eaf0998ac9b39d7880bb4a0b48d12a17
parentb75a0426d8c2339f2d552f96cc4dfcd86deb3447
Change BridgeResources to Resources_Delegate [DO NOT MERGE]

Do not merge because the resource implementation has changed in N and
the change is no longer valid there.

This is a very hacky fix to make layoutlib work with the latest support
lib. Inject a couple of fields in android.content.res.Resources to
allow using most of the earlier code as is.

Bug: 27403642
Bug: http://b.android.com/201934
Change-Id: I186cad32b1b4de64164fbad937d989e0110c6976
tools/layoutlib/bridge/src/android/content/res/BridgeTypedArray.java
tools/layoutlib/bridge/src/android/content/res/Resources_Delegate.java [moved from tools/layoutlib/bridge/src/android/content/res/BridgeResources.java with 63% similarity]
tools/layoutlib/bridge/src/android/graphics/BitmapFactory_Delegate.java
tools/layoutlib/bridge/src/com/android/layoutlib/bridge/android/BridgeContext.java
tools/layoutlib/bridge/src/com/android/layoutlib/bridge/util/NinePatchInputStream.java [new file with mode: 0644]
tools/layoutlib/create/src/com/android/tools/layoutlib/create/AsmGenerator.java
tools/layoutlib/create/src/com/android/tools/layoutlib/create/CreateInfo.java
tools/layoutlib/create/src/com/android/tools/layoutlib/create/FieldInjectorAdapter.java [new file with mode: 0644]