Piotr Jastrzebski
07aaff33ef
am 58524b2a: am e7e92381: Merge "Register DDM handlers at the beginning of main method."
...
* commit '58524b2aa620ae1ea709ae48b8b8598548cc7202':
Register DDM handlers at the beginning of main method.
2015-02-16 12:59:37 +00:00
Piotr Jastrzebski
58524b2aa6
am e7e92381: Merge "Register DDM handlers at the beginning of main method."
...
* commit 'e7e923818096a8a046ad183e932454428218c867':
Register DDM handlers at the beginning of main method.
2015-02-16 12:52:59 +00:00
Piotr Jastrzebski
e7e9238180
Merge "Register DDM handlers at the beginning of main method."
2015-02-16 12:47:08 +00:00
tiger_huang
713abc2879
Prevent leaking surfaces from exiting windows
...
AM would set the exiting app to be invisible twice by calling
setAppVisibility(). If the screen is turned off during these calls,
the window surfaces of this exiting app won't be destroyed.
The flow:
1. Screen is on
2. App A is finished
3. AM calls setAppVisibility() token=App A, visible=false
4. WM sets a dummy animation to App A
5. WM marks App A's wtoken.inPendingTransaction=true
6. Screen is turned off
7. AM calls setAppVisibility() token=App A, visible=false
8. WM calls setTokenVisibilityLocked() directly (screen is off)
9. WM sends app visibility to App A's client (ViewRootImpl)
10. WM clears the dummy animation from App A
11. App A's client calls WMS.relayoutWindow() to be not visible
12. WM sets App A's window mExiting=true but not destroy its surface
13. App A's window surface leaks...
Note:
a. The call in 3. is from ActivityStack.finishActivityLocked
b. The call in 7. is from ActivityStack.resumeTopActivityInnerLocked
c. In 10., App A won't get the real animation while screen is off
d. In 12., App A's inPendingTransaction=true; WM takes it's animating
e. mExiting won't be cleared because App A has no animation to
trigger WindowStateAnimator.finishExit()
After applying this patch, WM would destroy the surface in 12. of the
above flow.
Change-Id: I18b79ba96695ec80d57a85dc15cf92a9e7d3a6ef
2015-02-16 08:27:28 +00:00
Yohei Yukawa
32acf753e8
am 83c804be: Merge "Prevent duplicated registration of OnComputeInternalInsetsListener" automerge: efd9abb
...
* commit '83c804be9c1f33ff4bafbfd60218751a00c7d2b9':
Prevent duplicated registration of OnComputeInternalInsetsListener
2015-02-14 15:17:17 +00:00
Yohei Yukawa
83c804be9c
Merge "Prevent duplicated registration of OnComputeInternalInsetsListener"
...
automerge: efd9abb
* commit 'efd9abb7dfd8d5015e73ab52b4f9b7854df4b02c':
Prevent duplicated registration of OnComputeInternalInsetsListener
2015-02-14 15:11:37 +00:00
Yohei Yukawa
efd9abb7df
Merge "Prevent duplicated registration of OnComputeInternalInsetsListener"
2015-02-14 15:08:07 +00:00
David Friedman
efb69b003e
am 53ec037f: am 03efba0e: Merge "This file is misplaced, and serves no purpose. I am sending it to oblivion." into lmp-docs
...
* commit '53ec037f9eb0e29f958faa334cf23c35f079eb85':
This file is misplaced, and serves no purpose. I am sending it to oblivion.
2015-02-14 02:50:49 +00:00
David Friedman
53ec037f9e
am 03efba0e: Merge "This file is misplaced, and serves no purpose. I am sending it to oblivion." into lmp-docs
...
* commit '03efba0e3a64cf4b0084bed056c24fbe8a2030c9':
This file is misplaced, and serves no purpose. I am sending it to oblivion.
2015-02-14 02:42:44 +00:00
David Friedman
03efba0e3a
Merge "This file is misplaced, and serves no purpose. I am sending it to oblivion." into lmp-docs
2015-02-14 02:36:34 +00:00
Filip Gruszczynski
f1df1970db
am 88a9a2a4: Merge "Support for faster brightness response to light changes." into lmp-mr1-modular-dev
...
* commit '88a9a2a46eb77ea340175f5d272433f4de1b6f93':
Support for faster brightness response to light changes.
2015-02-14 02:27:19 +00:00
Filip Gruszczynski
88a9a2a46e
Merge "Support for faster brightness response to light changes." into lmp-mr1-modular-dev
2015-02-14 02:21:42 +00:00
Rich Slogar
38f2242e39
docs: studio mipmap update
...
Change-Id: Id493c079186585a29a8c6b1ba57d921a7327868d
2015-02-13 17:17:41 -08:00
Rich Slogar
0726a31f2b
docs: studio proxy setting setup
...
b/18332702
Change-Id: If3a78fc7b906bb94cfa74fc07b95ef72a84cf825
2015-02-13 16:44:32 -08:00
Rich Slogar
9bd6de1eac
docs: studio revision 1-1
...
Change-Id: I7464ace70e9b9e430fd0f03329e20b64b1e1a56a
2015-02-13 15:19:31 -08:00
Rich Slogar
3150bb78e6
docs: android plugin for gradle revisions page
...
Change-Id: I15750eb11f69f9286fdd542c8e5a5e702b1a1255
2015-02-13 14:58:10 -08:00
Deepanshu Gupta
068499111c
am ad879adb: Merge "Add Asset management support for fonts." into lmp-dev
...
* commit 'ad879adb65ffa577844738522ab6d7d30aba2ead':
Add Asset management support for fonts.
2015-02-13 22:38:23 +00:00
Diego Perez
a912fedbc5
am 98c3461a: Merge "Do not paint shadow if outside of the clip area" into lmp-dev
...
* commit '98c3461acd6699ab0448f1785909d0d39cd61b5a':
Do not paint shadow if outside of the clip area
2015-02-13 22:38:17 +00:00
Deepanshu Gupta
4e47416012
am 12c9e498: Merge "Changes made by intelliJ 14.1" into lmp-dev
...
* commit '12c9e4980e889d1c72656a4062f9cee9a0e6f15a':
Changes made by intelliJ 14.1
2015-02-13 22:38:07 +00:00
Deepanshu Gupta
ad879adb65
Merge "Add Asset management support for fonts." into lmp-dev
2015-02-13 22:34:36 +00:00
Diego Perez
98c3461acd
Merge "Do not paint shadow if outside of the clip area" into lmp-dev
2015-02-13 22:34:16 +00:00
Deepanshu Gupta
12c9e4980e
Merge "Changes made by intelliJ 14.1" into lmp-dev
2015-02-13 22:33:48 +00:00
Narayan Kamath
b6b044ae82
Fix a couple of issues with system_server forking.
...
- Remove the obsolete --runtime-init arg. its prescence
was preventing other arguments from being parsed.
- Be stricter about unparsed args - throw if we see arguments
we don't expect. This was already implemented but broken
(probably implemented by a crap programmer).
bug: 19378905
Change-Id: Id8b6158db7ef6368dd13ae61f591cdf2b278dfd1
2015-02-13 17:45:06 +00:00
Filip Gruszczynski
d81ecd12ce
Support for faster brightness response to light changes.
...
Bug: 18572096
Change-Id: Ic9448db672b036779d16883f3476249cea45d97a
2015-02-13 09:40:15 -08:00
Piotr Jastrzebski
da74a628f5
Register DDM handlers at the beginning of main method.
...
Compiler initializes RuntimeInit during compilation and stores an
initialized version of the class in oat file. Same thing happens to
DdmServer which handles DDM packets in JDWP thread started during JVM
creation. This means that after the creation of JVM all
DDM packets are handled by DdmServer.dispatch and since it's already
initialized during compilation it has all framework related handlers
already registered. If a packet arrives before AndroidRuntime.startReg
is called then framework native methods are not yet registered and the
processing of the packet fails with UnsatisfiedLinkError.
To fix this problem the registration of framework related DDM handlers
is moved to the beginning of ZygoteInit.main and RuntimeInit.main. This
means that the handlers won't be registered until main method is called
and that's guaranteed to be after AndroidRuntime.startReg is called. It
also guarantees that DDM packets will be properly handled as soon as
Java code is executed.
Bug: 18081539.
Change-Id: I9c674f53f3f62d58c46886e0b60698182e08f0c3
2015-02-13 13:32:25 +00:00
Narayan Kamath
a511eea83b
am aee7f64c: am b4a5c04c: Merge "Remove code that sets user.* system properties."
...
* commit 'aee7f64c10ffd2135dc98f7a540836ad7a32438b':
Remove code that sets user.* system properties.
2015-02-13 12:09:31 +00:00
Narayan Kamath
aee7f64c10
am b4a5c04c: Merge "Remove code that sets user.* system properties."
...
* commit 'b4a5c04c305a04a876728397dec7cc809e26b823':
Remove code that sets user.* system properties.
2015-02-13 12:04:36 +00:00
Narayan Kamath
b4a5c04c30
Merge "Remove code that sets user.* system properties."
2015-02-13 11:57:39 +00:00
Narayan Kamath
70e8f6600d
Remove code that sets user.* system properties.
...
This has been disallowed by the SELinux for several years now,
so can safely be removed. Given that saveLocaleLocked is
simplified quite a bit, we can now inline into its only caller.
bug: 18910417
Change-Id: I18251f77e4a25a0e7ecda8e85a9b3fcdc2dc7b05
2015-02-13 11:57:08 +00:00
David Friedman
d350c5ced5
This file is misplaced, and serves no purpose. I am sending it to oblivion.
...
Change-Id: I91ed7bc228849f3181591357037b368b4b261eee
2015-02-12 21:30:59 -08:00
Svetoslav
04057e5d14
am 5136791b: am 599c1042: Accessibility: Ensure fresh accessilbity focused and input focused nodes. automerge: 27ad2e9
...
* commit '5136791b3429d1964b9202fb7caad52719408a61':
Accessibility: Ensure fresh accessilbity focused and input focused nodes.
2015-02-13 03:49:40 +00:00
Svetoslav
5136791b34
am 599c1042: Accessibility: Ensure fresh accessilbity focused and input focused nodes. automerge: 27ad2e9
...
* commit '599c1042896564906935bc688bbb85515a6dfa45':
Accessibility: Ensure fresh accessilbity focused and input focused nodes.
2015-02-13 03:43:29 +00:00
Svetoslav
599c104289
Accessibility: Ensure fresh accessilbity focused and input focused nodes.
...
automerge: 27ad2e9
* commit '27ad2e95b40fd0ca76de384695498ea114d627ca':
Accessibility: Ensure fresh accessilbity focused and input focused nodes.
2015-02-13 03:37:00 +00:00
Jeff Brown
f80fa0b5d9
am 6c477a29: am ec403e8f: Merge "Call startInput on return from sleep mode"
...
* commit '6c477a29bfc604f6dbf90e0d4ac5c99bc0ed2ff7':
Call startInput on return from sleep mode
2015-02-13 02:11:43 +00:00
Jeff Brown
6c477a29bf
am ec403e8f: Merge "Call startInput on return from sleep mode"
...
* commit 'ec403e8f476c817b87c0ef9297fdb548e8b1e4e4':
Call startInput on return from sleep mode
2015-02-13 02:06:01 +00:00
Jeff Brown
ec403e8f47
Merge "Call startInput on return from sleep mode"
2015-02-13 02:00:02 +00:00
Svetoslav
27ad2e95b4
Accessibility: Ensure fresh accessilbity focused and input focused nodes.
...
Change-Id: Ia3c84284843a415cdbbc2b6a9b06d9ddffbe0e04
2015-02-13 01:59:11 +00:00
Ruben Brunk
5cef9f8f3f
am fb7c14c5: am 41af9d59: Merge "camera2: Fix legacy scaling factor application." into lmp-mr1-dev automerge: d2ccbd4
...
* commit 'fb7c14c5f974cad8b74e51cc8fab86c276626780':
2015-02-13 01:39:42 +00:00
Ruben Brunk
ff475c0ea7
Merge "camera2: Fix legacy scaling factor application." into lmp-mr1-dev automerge: d2ccbd4
...
automerge: 41af9d5
* commit '41af9d592efbae88ed95ab77a856dd4e8fbab998':
camera2: Fix legacy scaling factor application.
2015-02-13 01:36:13 +00:00
Ruben Brunk
fb7c14c5f9
am 41af9d59: Merge "camera2: Fix legacy scaling factor application." into lmp-mr1-dev automerge: d2ccbd4
...
* commit '41af9d592efbae88ed95ab77a856dd4e8fbab998':
camera2: Fix legacy scaling factor application.
2015-02-13 01:33:42 +00:00
Ruben Brunk
41af9d592e
Merge "camera2: Fix legacy scaling factor application." into lmp-mr1-dev
...
automerge: d2ccbd4
* commit 'd2ccbd43d24a79122e404206c528995600a6507d':
camera2: Fix legacy scaling factor application.
2015-02-13 01:28:23 +00:00
Ruben Brunk
d2ccbd43d2
Merge "camera2: Fix legacy scaling factor application." into lmp-mr1-dev
2015-02-13 01:22:26 +00:00
Andrew Solovay
c860242cc1
docs: Noted that purchaseToken is long and cannot be truncated.
...
Noted in reference and integration doc that the token for Google Play
purchases may be up to 1,000 chars long, and the entire token must
be returned (not abbreviated or truncated) to any method that needs
it.
See first comment for doc stage location.
bug: 19099521
Change-Id: I0a0f187293ea522c218f6c3287b4c36ee6725a90
2015-02-12 17:05:43 -08:00
Luan Nguyen
15ebb4daab
am 96a99bc3: am b9f9408c: am 474746c7: am 2ea209ab: am 8d0df9b8: Merge "docs: Update device art generator to include Wear generic devices." into lmp-docs automerge: fe2c687
...
* commit '96a99bc3c1f57298c551254fcb8854410ff4e53f':
docs: Update device art generator to include Wear generic devices.
2015-02-13 00:33:29 +00:00
Luan Nguyen
4317ab134b
am 86391a2f: am b967f720: am 71cf2b6d: am e726495a: am fe5e7e92: Merge "docs: Fix issue with onCreate() method declaration in file backup section" into lmp-docs automerge: e0306bb
...
* commit '86391a2f63d60513279481e02c7234367cbced85':
docs: Fix issue with onCreate() method declaration in file backup section
2015-02-13 00:33:24 +00:00
Luan Nguyen
968db3619a
am b8f9e048: am e88f3522: am b14aec1b: am b6de0316: am e1f90b4e: Merge "docs: Fix notification api guide issues (7461154, 12765600)" into lmp-docs automerge: 946bf2d
...
* commit 'b8f9e04867aefe3b2f8fba05664c652f12bedc18':
docs: Fix notification api guide issues (7461154, 12765600)
2015-02-13 00:33:18 +00:00
Luan Nguyen
96a99bc3c1
am b9f9408c: am 474746c7: am 2ea209ab: am 8d0df9b8: Merge "docs: Update device art generator to include Wear generic devices." into lmp-docs automerge: fe2c687
...
* commit 'b9f9408c22ca95913643a60bac34bda07aa44173':
docs: Update device art generator to include Wear generic devices.
2015-02-13 00:25:26 +00:00
Luan Nguyen
86391a2f63
am b967f720: am 71cf2b6d: am e726495a: am fe5e7e92: Merge "docs: Fix issue with onCreate() method declaration in file backup section" into lmp-docs automerge: e0306bb
...
* commit 'b967f7201a42227a359412441cadc13b42a348ef':
docs: Fix issue with onCreate() method declaration in file backup section
2015-02-13 00:25:23 +00:00
Luan Nguyen
b8f9e04867
am e88f3522: am b14aec1b: am b6de0316: am e1f90b4e: Merge "docs: Fix notification api guide issues (7461154, 12765600)" into lmp-docs automerge: 946bf2d
...
* commit 'e88f352264714dd394731a01dcadbb67c1665be6':
docs: Fix notification api guide issues (7461154, 12765600)
2015-02-13 00:25:19 +00:00
Luan Nguyen
b9f9408c22
am 474746c7: am 2ea209ab: am 8d0df9b8: Merge "docs: Update device art generator to include Wear generic devices." into lmp-docs automerge: fe2c687
...
* commit '474746c7b08842cefecc9c1408c7837d93cff823':
docs: Update device art generator to include Wear generic devices.
2015-02-13 00:19:29 +00:00