3949 Commits

Author SHA1 Message Date
Filip Gruszczynski
f77a6dbac6 Merge "Refactoring: Delete AppWindowToken.willBeHidden field." 2015-09-27 21:50:49 +00:00
Filip Gruszczynski
8aafd3a81b Refactoring: Delete AppWindowToken.willBeHidden field.
The only time AppWindowToken.willBeHidden is used is for determining
if the app should contribute to calculating orientation. In the same
check AppWindowToken.hiddenRequested will be or-ed with willBeHiden,
so it's enough that hiddenRequested to be set.

The only place where willBeHidden is set, is right before
WMS.setAppVisibility is called, which will set hiddenRequested.
Because of this willBeHidden is unnecessary.

Change-Id: Iea35f39f72e7f0dcd76205ef580f3a74cac72d08
2015-09-26 15:40:58 -07:00
Deepanshu Gupta
ef6439c857 am e5346dca: am 51a05d74: Merge "Fix TypedArray.getTextArray()" into mnc-ub-dev
* commit 'e5346dca479ecf87d5a3e412307e5f7ebe28ccb9':
  Fix TypedArray.getTextArray()
2015-09-23 23:26:52 +00:00
Deepanshu Gupta
e5346dca47 am 51a05d74: Merge "Fix TypedArray.getTextArray()" into mnc-ub-dev
* commit '51a05d74a81aeb334ef095fc6f1aa98e5163763f':
  Fix TypedArray.getTextArray()
2015-09-23 23:17:22 +00:00
Deepanshu Gupta
6649ca3711 Fix TypedArray.getTextArray()
Change-Id: Ic55b52840892fbf2a4258ba97ed31ca0283da8ed
2015-09-23 16:03:02 -07:00
Diego Perez
184427444b am 36152328: am 0e766de7: Avoid calling scrollBy(0,0) on render
* commit '361523281c88a7e453e0eef961ed7f16a55785a5':
  Avoid calling scrollBy(0,0) on render
2015-09-22 20:05:30 +00:00
Diego Perez
361523281c am 0e766de7: Avoid calling scrollBy(0,0) on render
* commit '0e766de7c52d7e375e04676c93a872cb2d6eea63':
  Avoid calling scrollBy(0,0) on render
2015-09-22 16:56:35 +00:00
Diego Perez
0e766de7c5 Avoid calling scrollBy(0,0) on render
Usually scrollBy(0, 0) won't have any effect but when called on the
NumberPicker but, in some cases, it seems to cause an endless loop.
When called from layoutlib, this will hold the read lock causing all
operations trying to acquire the write lock to block forever.

Bug: http://b.android.com/182506
Change-Id: Ib25427d3f32d804d1c481d979795eee71fbdbc6d
2015-09-22 16:44:37 +00:00
Wale Ogunwale
61b009e059 Don't crop home activity windows to stack bounds.
We crop windows to their stack bounds when the docked stack
exists. We don't want to do this for the home activity since
the docked stack isn't visible when the home activity is visible.

Change-Id: Ibb3157dabbb6c979358ddc2098a01c6ddf6540e8
2015-09-16 22:23:47 -07:00
Adam Lesinski
90959887e9 AAPT2: Fix issue with parsing escape sequences when the parser only gives us part at a time
Change-Id: I671955f350b57577a991dd88f6a7319ec0b36c07
2015-09-15 17:42:15 +00:00
Christopher Wiley
c972c4cebf am 84ba0725: am 3a86b41f: Add a textual hint as to where aidl has gone
* commit '84ba072538612accd775da2902afa33a3fbb7d09':
  Add a textual hint as to where aidl has gone
2015-09-14 16:14:26 +00:00
Christopher Wiley
84ba072538 am 3a86b41f: Add a textual hint as to where aidl has gone
* commit '3a86b41f8414193e05c27284d434b07992e164ce':
  Add a textual hint as to where aidl has gone
2015-09-14 16:06:52 +00:00
Christopher Wiley
5cfa89f7a1 am 026cbbfb: am 27a0be36: resolved conflicts for ddf53180 to stage-aosp-master
* commit '026cbbfbda2d3db388bcaf7d8c3897f7856af1f8':
  Remove the aidl tool
2015-09-14 15:55:57 +00:00
Christopher Wiley
3a86b41f84 Add a textual hint as to where aidl has gone
Bug: 23691099
Change-Id: I3fb917b4c0e66a83c6299add02869a7088010adc
2015-09-14 08:54:23 -07:00
Christopher Wiley
026cbbfbda am 27a0be36: resolved conflicts for ddf53180 to stage-aosp-master
* commit '27a0be36eeee9d1d03076727977dfb1e725fcd77':
  Remove the aidl tool
2015-09-14 15:47:38 +00:00
Christopher Wiley
27a0be36ee resolved conflicts for ddf53180 to stage-aosp-master
Change-Id: I265ab876ef29dc731e6abb6f964c10f2e71324be
2015-09-14 07:34:50 -07:00
Chong Zhang
173b6c2d1a Fix build break with startMovingTask API
Change-Id: I4dc44ca04c75a9dfed079338e4906d317f50a1e3
2015-09-12 15:22:24 -07:00
Chong Zhang
8e89b31a62 Move window moving and resizing handling to WindowManager
- add a startMoving API to initiate a window move from app, once
  the move starts WindowManager will take over the event handling.

- detect touch events along window's outside border and start
  a resize if necessary

Change-Id: Ic7e8baba34e0aa27a43173e044ffb46e93e219e0
2015-09-11 17:15:19 -07:00
Christopher Wiley
73ea1230fc Remove the aidl tool
This has been moved into its own repository at

//system/tools/aidl

Test: Built aosp_arm-eng from scratch.
Bug: 23691099

Change-Id: Ic45d55682b9dcafe894efe0a6317792f9c1236c6
2015-09-11 14:41:36 -07:00
Brian Carlstrom
a72c5cf746 am 02d750ef: am 2519f9c6: am de2ad457: Merge "Revert "Grab macros from libbase instead of duplicating""
* commit '02d750efde238837989a6968ea66ac5eb13c639e':
  Revert "Grab macros from libbase instead of duplicating"
2015-09-11 05:29:47 +00:00
Brian Carlstrom
02d750efde am 2519f9c6: am de2ad457: Merge "Revert "Grab macros from libbase instead of duplicating""
* commit '2519f9c6b822ed0201a3a6f1bb73d486609cd677':
  Revert "Grab macros from libbase instead of duplicating"
2015-09-11 05:22:29 +00:00
Brian Carlstrom
2519f9c6b8 am de2ad457: Merge "Revert "Grab macros from libbase instead of duplicating""
* commit 'de2ad45784499388d09f2c2c3bcf2fa1966cf018':
  Revert "Grab macros from libbase instead of duplicating"
2015-09-11 05:15:37 +00:00
Brian Carlstrom
de2ad45784 Merge "Revert "Grab macros from libbase instead of duplicating"" 2015-09-11 05:09:17 +00:00
Casey Dahlin
3dd64c6da5 am 3f7c4bdb: am 449274a7: am 8b25009d: Merge "Revert change to win32 isatty stub"
* commit '3f7c4bdbc20e005dc55b4bbebd0fd9bdb9e65e7b':
  Revert change to win32 isatty stub
2015-09-11 03:51:10 +00:00
Casey Dahlin
5f85e1d677 am 6b747f9d: am 3230b2b2: am ec4cbf4f: Merge "Grab macros from libbase instead of duplicating"
* commit '6b747f9d55d146b37ef4f2de461a4ffc576230a5':
  Grab macros from libbase instead of duplicating
2015-09-11 03:51:03 +00:00
Casey Dahlin
517214d4a6 am 68a6dcc0: am d880e1cb: am 7e8586fc: Merge "Convert to C++ Bison output"
* commit '68a6dcc0c15249617b3c8af067b9796bd80e220d':
  Convert to C++ Bison output
2015-09-11 03:50:55 +00:00
Casey Dahlin
1e3137169e am c48778ee: am 6929b5fa: am c71fdabd: Merge "First pass on reentrant C++-ish parser"
* commit 'c48778ee31878c3239bbf85c485eac64e5a06b59':
  First pass on reentrant C++-ish parser
2015-09-11 03:50:25 +00:00
Casey Dahlin
3f7c4bdbc2 am 449274a7: am 8b25009d: Merge "Revert change to win32 isatty stub"
* commit '449274a774f5c51807f16c13e772550dbd3c5d53':
  Revert change to win32 isatty stub
2015-09-11 02:51:08 +00:00
Casey Dahlin
6b747f9d55 am 3230b2b2: am ec4cbf4f: Merge "Grab macros from libbase instead of duplicating"
* commit '3230b2b2b7225fc44515a1650ad79022b959b08e':
  Grab macros from libbase instead of duplicating
2015-09-11 02:51:01 +00:00
Casey Dahlin
68a6dcc0c1 am d880e1cb: am 7e8586fc: Merge "Convert to C++ Bison output"
* commit 'd880e1cb0c4fa61328297cae659a7edd94e5ca83':
  Convert to C++ Bison output
2015-09-11 02:50:55 +00:00
Casey Dahlin
f3c2ed13d0 Revert "Grab macros from libbase instead of duplicating"
This reverts commit 2535cae005512494469fc5cea1fe630288ecb083.

Change-Id: I373844b6a0f429e88d6bcc1cdd5ac62325da55b3
2015-09-11 02:47:54 +00:00
Casey Dahlin
449274a774 am 8b25009d: Merge "Revert change to win32 isatty stub"
* commit '8b25009d92626e7f1bb3b8fdf2774df20ec7a769':
  Revert change to win32 isatty stub
2015-09-11 02:41:51 +00:00
Casey Dahlin
3230b2b2b7 am ec4cbf4f: Merge "Grab macros from libbase instead of duplicating"
* commit 'ec4cbf4f93ddb14653c27bfd7a169e010b87286c':
  Grab macros from libbase instead of duplicating
2015-09-11 02:41:43 +00:00
Casey Dahlin
d880e1cb0c am 7e8586fc: Merge "Convert to C++ Bison output"
* commit '7e8586fc1e40e7d860b05757882c3617df968fb8':
  Convert to C++ Bison output
2015-09-11 02:41:35 +00:00
Casey Dahlin
3e50f04dfa Revert change to win32 isatty stub
This is attempting to fix build breakage caused by redefining the isatty stub
for win32.

Change-Id: I5f854934cb9d2b2981f6349045e85d9ad737aa77
Signed-off-by: Casey Dahlin <sadmac@google.com>
2015-09-10 19:13:49 -07:00
Casey Dahlin
c48778ee31 am 6929b5fa: am c71fdabd: Merge "First pass on reentrant C++-ish parser"
* commit '6929b5fab007281d3c35deec905feb8fdc506a31':
  First pass on reentrant C++-ish parser
2015-09-11 01:55:49 +00:00
Adam Lesinski
09ffc62fdb Merge "AAPT: Don't try to rewrite String constants when loading shared lib" 2015-09-11 01:48:05 +00:00
Casey Dahlin
6929b5fab0 am c71fdabd: Merge "First pass on reentrant C++-ish parser"
* commit 'c71fdabdd7dc46ef2914ee6fd3ba541689c91844':
  First pass on reentrant C++-ish parser
2015-09-11 01:47:28 +00:00
Adam Lesinski
eed585821a AAPT: Don't try to rewrite String constants when loading shared lib
Bug:20138255
Change-Id: Ieb6a31ee9afe0de3d1c99b21f78aa48fe07015c6
2015-09-10 18:43:34 -07:00
Casey Dahlin
2535cae005 Grab macros from libbase instead of duplicating
Change-Id: I1802f60a4dac45ddee8cd5715a73c77e4371d7e8
Signed-off-by: Casey Dahlin <sadmac@google.com>
2015-09-10 18:43:04 -07:00
Casey Dahlin
96786829c2 Convert to C++ Bison output
We have to step up to a GLR parser to do this without exceptions (for no
reason other than Bison happens to use exceptions for the LALR(1) template and
not for the GLR one), but this should let us smooth out integration going
forward.

Change-Id: Iff44662914b4a65dfa5612d07c3a1ede07e6e4a9
Signed-off-by: Casey Dahlin <sadmac@google.com>
2015-09-10 18:29:09 -07:00
Casey Dahlin
9941dcc7aa First pass on reentrant C++-ish parser
We're flipping Flex/Bison in to reentrant mode, cutting down on global
variables, and exposing a more C++-like interface earlier. This is the first
phase. There's still a couple of weird hacks to deal with the previous code's
reckless disregard for scope sanity, but the outline of things to come is
starting to appear, and this CL really doesn't need to get any bigger.

Change-Id: Ife2d70db026d7ab1319bdf6c586959315666d0bb
Signed-off-by: Casey Dahlin <sadmac@google.com>
2015-09-10 16:55:18 -07:00
Tao Bai
ab5bca1519 Merge "Load app resource as shared library." 2015-09-09 16:08:12 +00:00
Tao Bai
a6d7e3fb9c Load app resource as shared library.
- Added aapt command line flag --app-as-shared-lib to build app resources
  that could be loaded as shared lib at runtime.
- Added new method AssetManager.addAssetPathAsSharedLibrary() to load an
  app resource as shared library.

Bug 22487604

Change-Id: Ib9b33c35f9c2b7129f3ba205de03d4564623ea39
2015-09-08 18:48:42 -07:00
Dan Willemsen
33abaca11d am a0c61efa: am 03c26b27: am 596fd38a: Merge "Whitelist windows module"
* commit 'a0c61efab913bc91f65b427ade0b879c701e5c8f':
  Whitelist windows module
2015-09-06 23:08:07 +00:00
Dan Willemsen
a0c61efab9 am 03c26b27: am 596fd38a: Merge "Whitelist windows module"
* commit '03c26b274aed35c0a580b309567264d00cb643f2':
  Whitelist windows module
2015-09-04 22:00:26 +00:00
Dan Willemsen
03c26b274a am 596fd38a: Merge "Whitelist windows module"
* commit '596fd38af207727d508a63fca39506c90ba29c44':
  Whitelist windows module
2015-09-04 21:48:35 +00:00
Dan Willemsen
8d6f9bf3c8 Whitelist windows module
Bug: 23566667
Change-Id: I030733ffd2b43a0ea74b0fd5f34a0d13ef8dcf7c
2015-09-04 14:22:17 -07:00
Deepanshu Gupta
44c75820b4 am b3382661: am ee1eed7e: am 7209945f: am 0e150a8b: am 0c5fd7e3: am eb541727: am dd21212f: am eb26f5ce: LayoutLib: Fix typedArray caching.
* commit 'b3382661eb3af61815812bd762ac1fcc2f5d9ef5':
  LayoutLib: Fix typedArray caching.
2015-09-03 05:03:04 +00:00
Deepanshu Gupta
b3382661eb am ee1eed7e: am 7209945f: am 0e150a8b: am 0c5fd7e3: am eb541727: am dd21212f: am eb26f5ce: LayoutLib: Fix typedArray caching.
* commit 'ee1eed7e711228008dc91a7da800be6527539e87':
  LayoutLib: Fix typedArray caching.
2015-09-03 04:24:04 +00:00