105086 Commits

Author SHA1 Message Date
Deepanshu Gupta
0d1d0f4b96 am 519e77bb: am 44cc867f: (-s ours) am 9a1f13a4: am afc623e3: am bd9e181b: Fix layout rendering for RTL locales [DO NOT MERGE]
* commit '519e77bbf26e0a6ea10f6e94c5b86c4c2d57c633':
  Fix layout rendering for RTL locales [DO NOT MERGE]
2014-05-02 19:28:06 +00:00
Deepanshu Gupta
1ae987554f am 64d1c57a: am 11976058: (-s ours) am b80247d3: am 811b331a: am d4875e19: Add orientation to configuration for layoutlib. [DO NOT MERGE]
* commit '64d1c57a269002af44143dbe4619d30d96d434ca':
  Add orientation to configuration for layoutlib. [DO NOT MERGE]
2014-05-02 19:28:04 +00:00
Deepanshu Gupta
779972f1a2 am 175a1e60: am e821d0cc: (-s ours) am b27d8814: am 21cf9843: am d1084cc0: Add missing native methods. [DO NOT MERGE]
* commit '175a1e60366df522b3146d8ade9cb2b895a29cf9':
  Add missing native methods. [DO NOT MERGE]
2014-05-02 19:27:54 +00:00
Deepanshu Gupta
17e0eebdc6 am 465cb53b: Use ApplicationInfo only when not in edit mode [DO NOT MERGE]
* commit '465cb53ba4b4a5edff9e9a63eb97d396b94d6568':
  Use ApplicationInfo only when not in edit mode [DO NOT MERGE]
2014-05-02 19:24:00 +00:00
Deepanshu Gupta
bb1d24d7c7 am b5cdfd97: Overflow menu popup for Action Bar in Layoutlib [DO NOT MERGE]
* commit 'b5cdfd97a5bbc2c52dec907467362550aff8afc4':
  Overflow menu popup for Action Bar in Layoutlib [DO NOT MERGE]
2014-05-02 19:23:57 +00:00
Deepanshu Gupta
63a6de7947 am 20e0695b: Action bar rendering in layoutlib [DO NOT MERGE]
* commit '20e0695b554e883b095f5223be10b6e1097db49f':
  Action bar rendering in layoutlib [DO NOT MERGE]
2014-05-02 19:23:54 +00:00
Deepanshu Gupta
9b1c46df60 am 3c00b28b: Fix theme/style resolution in Layoutlib [DO NOT MERGE]
* commit '3c00b28bf60ab01b449e16df045238f4bae4d700':
  Fix theme/style resolution in Layoutlib [DO NOT MERGE]
2014-05-02 19:23:50 +00:00
Deepanshu Gupta
7c3a40b636 am b85d30a2: Add missing dependency in layoutlib build file [DO NOT MERGE]
* commit 'b85d30a2c88b6a23e251347b14a75456c4daeca9':
  Add missing dependency in layoutlib build file [DO NOT MERGE]
2014-05-02 19:23:47 +00:00
Deepanshu Gupta
7a0985ec24 am f8144032: Fix visitFieldInsn in layoutlib_create. [DO NOT MERGE]
* commit 'f8144032d1fb7319bfd24914b12597505cfcc91f':
  Fix visitFieldInsn in layoutlib_create. [DO NOT MERGE]
2014-05-02 19:23:44 +00:00
Deepanshu Gupta
15994863df am 89fdc0c5: Layoutlib tests now check methods return value [DO NOT MERGE]
* commit '89fdc0c556cf0fe2562fb8f0476e03cd51045164':
  Layoutlib tests now check methods return value [DO NOT MERGE]
2014-05-02 19:23:42 +00:00
Deepanshu Gupta
edd048fb54 am d4f0073f: Remove references to java package class Objects. [DO NOT MERGE]
* commit 'd4f0073f4805cd1036218f243d9b7c7c5bb90e41':
  Remove references to java package class Objects. [DO NOT MERGE]
2014-05-02 19:23:39 +00:00
Deepanshu Gupta
519e77bbf2 am 44cc867f: (-s ours) am 9a1f13a4: am afc623e3: am bd9e181b: Fix layout rendering for RTL locales [DO NOT MERGE]
* commit '44cc867f7d4ca212b7003057148b8cdabb8f85fb':
  Fix layout rendering for RTL locales [DO NOT MERGE]
2014-05-02 19:23:29 +00:00
Deepanshu Gupta
64d1c57a26 am 11976058: (-s ours) am b80247d3: am 811b331a: am d4875e19: Add orientation to configuration for layoutlib. [DO NOT MERGE]
* commit '1197605876d8c3029238ca9b93a95f9c41ed3266':
  Add orientation to configuration for layoutlib. [DO NOT MERGE]
2014-05-02 19:23:26 +00:00
Deepanshu Gupta
175a1e6036 am e821d0cc: (-s ours) am b27d8814: am 21cf9843: am d1084cc0: Add missing native methods. [DO NOT MERGE]
* commit 'e821d0cc549923d0e3d2535acfa5b70fc89a1ebe':
  Add missing native methods. [DO NOT MERGE]
2014-05-02 19:23:23 +00:00
Deepanshu Gupta
44cc867f7d am 9a1f13a4: am afc623e3: am bd9e181b: Fix layout rendering for RTL locales [DO NOT MERGE]
* commit '9a1f13a47bfe29e344efc05f0ecabbfcb5671e06':
  Fix layout rendering for RTL locales [DO NOT MERGE]
2014-05-02 19:19:42 +00:00
Deepanshu Gupta
1197605876 am b80247d3: am 811b331a: am d4875e19: Add orientation to configuration for layoutlib. [DO NOT MERGE]
* commit 'b80247d351b88f69192260a661dbf3d4d71e9527':
  Add orientation to configuration for layoutlib. [DO NOT MERGE]
2014-05-02 19:19:39 +00:00
Deepanshu Gupta
e821d0cc54 am b27d8814: am 21cf9843: am d1084cc0: Add missing native methods. [DO NOT MERGE]
* commit 'b27d881467869539a5c8ec2510e8415912abb617':
  Add missing native methods. [DO NOT MERGE]
2014-05-02 19:19:36 +00:00
Deepanshu Gupta
9a1f13a47b am afc623e3: am bd9e181b: Fix layout rendering for RTL locales [DO NOT MERGE]
* commit 'afc623e34e5a2bd375da00a52c3c393d5049a1d1':
  Fix layout rendering for RTL locales [DO NOT MERGE]
2014-05-02 19:15:46 +00:00
Deepanshu Gupta
b80247d351 am 811b331a: am d4875e19: Add orientation to configuration for layoutlib. [DO NOT MERGE]
* commit '811b331ae2334161c6082f666d7b3bab788f69a3':
  Add orientation to configuration for layoutlib. [DO NOT MERGE]
2014-05-02 19:15:43 +00:00
Deepanshu Gupta
b27d881467 am 21cf9843: am d1084cc0: Add missing native methods. [DO NOT MERGE]
* commit '21cf98438b77ab58d6c781e09aecb8ad0f682042':
  Add missing native methods. [DO NOT MERGE]
2014-05-02 19:15:40 +00:00
Deepanshu Gupta
afc623e34e am bd9e181b: Fix layout rendering for RTL locales [DO NOT MERGE]
* commit 'bd9e181b291af34f9d70db42715136f3c16ddbde':
  Fix layout rendering for RTL locales [DO NOT MERGE]
2014-05-02 19:12:18 +00:00
Deepanshu Gupta
811b331ae2 am d4875e19: Add orientation to configuration for layoutlib. [DO NOT MERGE]
* commit 'd4875e19f5b7c69226783b0a6590831466159f84':
  Add orientation to configuration for layoutlib. [DO NOT MERGE]
2014-05-02 19:12:16 +00:00
Deepanshu Gupta
21cf98438b am d1084cc0: Add missing native methods. [DO NOT MERGE]
* commit 'd1084cc02549dc9ee67c879f78ae929095ec19b6':
  Add missing native methods. [DO NOT MERGE]
2014-05-02 19:12:12 +00:00
Deepanshu Gupta
bd9e181b29 Fix layout rendering for RTL locales [DO NOT MERGE]
This changeset adds the framework resources for RTL locales and mirrors
the layout if the application is RTL aware.

Use ICU to check the character orientation of the locale - right to left
or left to right. Set the layout direction on the top level layout
accordingly. Also, load the RTL resources for Nav Bar when the locale is
RTL.

Change-Id: I1ed0d516ab64120a0abca413ba678036661508f8
(cherry picked from commit eee0ea7a0b85ea6345eb7b8da5dbf17306c7339c)
2014-05-02 11:45:37 -07:00
Deepanshu Gupta
d4875e19f5 Add orientation to configuration for layoutlib. [DO NOT MERGE]
Update the configuration with the device orientation before rendering.

Change-Id: Icd40901204fd13f90b18353e53a15e25e5b2176c
(cherry picked from commit d97d60c0fa4613a47d591d45736299702be1cc7a)
2014-05-02 11:45:00 -07:00
Deepanshu Gupta
d1084cc025 Add missing native methods. [DO NOT MERGE]
Also contains fixes for native methods specific to the branch.

Change-Id: I7b34e2ec0164520efc658053a80f307791a992b1
(cherry-picked from commit: 279c00e8e0abb20f7e10577c77937c058da080bf)
2014-04-28 15:18:05 -07:00
Deepanshu Gupta
465cb53ba4 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
2014-04-25 20:48:46 -07:00
Deepanshu Gupta
b5cdfd97a5 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-04-25 19:45:33 -07:00
Deepanshu Gupta
20e0695b55 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 4ccc4bd54f85d86818f61d728c6361d2003ddd8e)
2014-04-25 19:22:14 -07:00
Deepanshu Gupta
3c00b28bf6 Fix theme/style resolution in Layoutlib [DO NOT MERGE]
Cherry picked from klp-dev from
Change-Id: If1e7187645f0b0388f7b97d742395efd228b347a which was
cherrypicked from master with the following

Change-Id: Icfb91e566666408802dadc0e2070991151b16b9d
(cherry picked from commit f1e7187645f0b0388f7b97d742395efd228b347a)
2014-04-25 18:58:15 -07:00
Deepanshu Gupta
b85d30a2c8 Add missing dependency in layoutlib build file [DO NOT MERGE]
Add missing dependency on built_ext_data

Change-Id: I4e7cca7f6cbc7f5b7416ac9b85a9aec01e61ecd4
(cherry-picked from commit e345507ca4b7b83c6e0446788f4404eb697f945b)
2014-04-25 18:55:47 -07:00
Deepanshu Gupta
f8144032d1 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-04-25 18:53:38 -07:00
Deepanshu Gupta
89fdc0c556 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 bdd0ad79b9b027280bd371c7b6795b04ed89ac8f)
2014-04-25 18:50:39 -07:00
Deepanshu Gupta
d4f0073f48 Remove references to java package class Objects. [DO NOT MERGE]
Remove references to Java 7 class java.util.Objects and replace it with
a new class that can be loaded on Java 6.

Change-Id: Ibbd9b20b8bc89e247f1d0c48d743d06d1a4f0704
(cherry-picked from commit 45f5cd49fa898a59484edfd8e291dbe10df82db2)
2014-04-25 18:49:40 -07:00
Kenny Root
41ec218e5f am 6888bee5: am 5a0cc789: am 2ed5f771: am 47231936: am 02bc4b04: am 4a62a6dc: am 451ed5f0: am 3ecaa88d: am ecb013db: Merge "Use hidden API to validate APK chains" into jb-dev
* commit '6888bee598b8c88f7a93ef2da06dd5659cc92dc6':
  Use hidden API to validate APK chains
2014-04-18 22:50:12 +00:00
Kenny Root
6888bee598 am 5a0cc789: am 2ed5f771: am 47231936: am 02bc4b04: am 4a62a6dc: am 451ed5f0: am 3ecaa88d: am ecb013db: Merge "Use hidden API to validate APK chains" into jb-dev
* commit '5a0cc78929bf56c153696ffa16b602acfcc40089':
  Use hidden API to validate APK chains
2014-04-18 22:43:08 +00:00
Kenny Root
5a0cc78929 am 2ed5f771: am 47231936: am 02bc4b04: am 4a62a6dc: am 451ed5f0: am 3ecaa88d: am ecb013db: Merge "Use hidden API to validate APK chains" into jb-dev
* commit '2ed5f771c47c16e9c2be1f2025ef0a826f0290c3':
  Use hidden API to validate APK chains
2014-04-18 22:37:38 +00:00
Kenny Root
2ed5f771c4 am 47231936: am 02bc4b04: am 4a62a6dc: am 451ed5f0: am 3ecaa88d: am ecb013db: Merge "Use hidden API to validate APK chains" into jb-dev
* commit '47231936c0593b87c3c9898767327f1516a7ec22':
  Use hidden API to validate APK chains
2014-04-18 22:31:08 +00:00
Kenny Root
47231936c0 am 02bc4b04: am 4a62a6dc: am 451ed5f0: am 3ecaa88d: am ecb013db: Merge "Use hidden API to validate APK chains" into jb-dev
* commit '02bc4b04239c437f88fdb82633b41cdc8a8eff6b':
  Use hidden API to validate APK chains
2014-04-18 22:26:03 +00:00
Kenny Root
02bc4b0423 am 4a62a6dc: am 451ed5f0: am 3ecaa88d: am ecb013db: Merge "Use hidden API to validate APK chains" into jb-dev
* commit '4a62a6dce9a4b48f1c1c64e47a22d2319b852acd':
  Use hidden API to validate APK chains
2014-04-18 22:21:37 +00:00
Kenny Root
4a62a6dce9 am 451ed5f0: am 3ecaa88d: am ecb013db: Merge "Use hidden API to validate APK chains" into jb-dev
* commit '451ed5f077b9f95deae809ae620bc210c253b922':
  Use hidden API to validate APK chains
2014-04-18 22:14:14 +00:00
Kenny Root
451ed5f077 am 3ecaa88d: am ecb013db: Merge "Use hidden API to validate APK chains" into jb-dev
* commit '3ecaa88d83d04a0fd55b494829badbb41016f5a1':
  Use hidden API to validate APK chains
2014-04-18 21:33:04 +00:00
Kenny Root
3ecaa88d83 am ecb013db: Merge "Use hidden API to validate APK chains" into jb-dev
* commit 'ecb013dbff5e33b95c49015fa375579e055911ae':
  Use hidden API to validate APK chains
2014-04-18 18:14:32 +00:00
Kenny Root
ecb013dbff Merge "Use hidden API to validate APK chains" into jb-dev 2014-04-18 17:12:40 +00:00
Kenny Root
16c6b177ee Use hidden API to validate APK chains
Bug: 13678484
Change-Id: I28dedab74b0e24d47ab9f2190298156c909e9d54
2014-04-17 14:03:33 -07:00
Deepanshu Gupta
91f2a7cb30 am 5a125053: Merge changes I66792c4d,I203b6783 into jb-mr2-dev
* commit '5a1250532f159842c364accf02bcfd111a6b900b':
  Improve text rendering and measurement. [DO NOT MERGE]
  Fix the measurement of text bounds. [DO NOT MERGE]
2014-04-16 18:37:02 +00:00
Deepanshu Gupta
0fe634737b am 04b4f8d1: Merge "Set default text style in layoutlib as NORMAL [DO NOT MERGE]" into jb-mr2-dev
* commit '04b4f8d11406c64b94797af67dd7530435187129':
  Set default text style in layoutlib as NORMAL [DO NOT MERGE]
2014-04-16 18:36:58 +00:00
Deepanshu Gupta
87e1418711 am fb120acd: Merge "Add methods for Time_Delegate [DO NOT MERGE]" into jb-mr2-dev
* commit 'fb120acd841f7d8d0e1845f5bdd98abf35cb25b4':
  Add methods for Time_Delegate [DO NOT MERGE]
2014-04-16 18:36:55 +00:00
Deepanshu Gupta
533a52fe3b am b7fd6315: Merge "Fix sans-serif-thin and sans-serif-light fonts in layoutlib. [DO NOT MERGE]" into jb-mr2-dev
* commit 'b7fd6315328c3a38fd7928f3dbb43f44227eb78b':
  Fix sans-serif-thin and sans-serif-light fonts in layoutlib. [DO NOT MERGE]
2014-04-16 18:36:52 +00:00
Deepanshu Gupta
014ac85fec am f14cbb26: Merge "Optimize layout rendering in layoutlib [DO NOT MERGE]" into jb-mr2-dev
* commit 'f14cbb26edcf0838cee333bf0d6ee686bf6de333':
  Optimize layout rendering in layoutlib [DO NOT MERGE]
2014-04-16 18:36:48 +00:00