Commit Graph

256895 Commits

Author SHA1 Message Date
TreeHugger Robot
0810732a2a Merge "Add missing "try ... finally" safeguards" into nyc-dev 2016-05-25 00:09:29 +00:00
Andrew Sapperstein
00e2a3e659 Merge "Replace bluetooth pngs with vector drawables." into nyc-mr1-dev
am: 8943d9dff4

* commit '8943d9dff4accfb20fbea1765b97d94c375e7cb1':
  Replace bluetooth pngs with vector drawables.

Change-Id: I81753a18d1af8a0abb1325bc382010b1687e9439
2016-05-25 00:09:02 +00:00
Dianne Hackborn
7a1aa92610 Merge "Fix issue #28931042: wtf in system server" into nyc-dev 2016-05-25 00:00:07 +00:00
Eric Schmidt
22f5dd2372 docs: Instant Apps broken link, wonky video thumbnail
Bug: 28861513
Bug: 28842359
Change-Id: I8c90d3131f614727a96937702f062a95f998047a
2016-05-24 16:56:45 -07:00
Yohei Yukawa
8e9214b4bd Make IMM more robust to spurious window focus-in
InputMethodManager (IMM) has a latch switch named IMM#mHasBeenInactive
to forcefully refresh IME focus state when an inactive client
(IMM#mActive == false) is gaining window focus.  However, it turns out
that there is a race condition where the latch could be unexpectedly
turned off. This is probably what we have been chasing in bug 25373872.

Imagine the following scenario:

  1. An app receives MSG_WINDOW_FOCUS_CHANGED w/ hasWindowFocus=false
  2. IMM inside the app receives MSG_SET_ACTIVE w/ active=false
  3. The app receives MSG_WINDOW_FOCUS_CHANGED w/ hasWindowFocus=true
  4. The app receives MSG_WINDOW_FOCUS_CHANGED w/ hasWindowFocus=false
  5. The app receives MSG_WINDOW_FOCUS_CHANGED w/ hasWindowFocus=true

Here, our current strategy has been:
  A. Turn on the latch when MSG_SET_ACTIVE (w/active=false) is handled.
  B. Turn off the latch and ask IMMS to start input when
     MSG_WINDOW_FOCUS_CHANGED (w/ hasWindowFocus=true) is handled.

The problem is that in the step B IMMS can reject the request if
WindowManagerService (WMS) tells that the window in question no longer
has window focus. This is not surprising because the app is
just handling messages in the message queue sequentially.  As a result,
the IME focus is not updated expectedly in the step 5, because the latch
is no longer enabled as we expected.

With this CL, the latch will be re-enabled if the app fails to start
input while IMM#mActive is false as a short-term solution.

In future we may want to address this issue in protocol level so that
we can address other known issues such as bug 26851566 at the same time.

Bug: 28281870
Change-Id: I60adb38013b063918b074c7b947649eada77b2c8
2016-05-24 23:55:29 +00:00
Selim Cinek
5f56d85552 Fixed a bug where the expand button was invisible
Since the view wasn't layouted yet it was layouting it wrongly

Change-Id: I62fcdde1eda457bab74765a290865b1749b08dac
Fixes: 28869354
2016-05-24 16:55:13 -07:00
TreeHugger Robot
8943d9dff4 Merge "Replace bluetooth pngs with vector drawables." into nyc-mr1-dev 2016-05-24 23:50:30 +00:00
Suprabh Shukla
64e0dcb989 Updating user restrictions when they are removed
Local user restrictions were not being updated in
AppOpsService#setUserRestrictions when a restriction was removed.

Bug: 28908581
Change-Id: If22f5834fadca33ec8b80bc4fb3993c1e1c29824
2016-05-24 16:47:41 -07:00
Adam Powell
143bf5b0f7 Update preloaded drawables
Remove holo assets and add all material assets referred to through
styles.

Bug 28729750

Change-Id: I34aac1ac55d087ac60f12c2954e612072a93366b
2016-05-24 16:39:16 -07:00
Chong Zhang
f58631a6a2 Destroy saved surfaces if one of the last visible windows gets removed
Also, if by the time the app is closing, a window is still invisible
in layout (or is already removed), mark the window as mAnimatingExit,
so that the surface is destroyed (or saved again). If it's marked
for removal, the window gets removed as well.

bug: 28913302
Change-Id: Ifa3dc0742f9c8c09d741fd64dcdc01b49075628c
2016-05-24 16:28:25 -07:00
Pavlin Radoslavov
e1a60983da Merge "Reduced the impact of "synchronized" statements"
am: 1c3b50a00e

* commit '1c3b50a00ea3ab23569a697ba1f1e756098a01a2':
  Reduced the impact of "synchronized" statements

Change-Id: I7ddeb85696efe31c52db3a97ec2a142cb03bee65
2016-05-24 23:25:03 +00:00
Dianne Hackborn
ae02bfdd28 Merge "Fix issue #28931042: wtf in system server" into nyc-dev 2016-05-24 23:23:35 +00:00
Jorim Jaggi
8800c68e66 Merge "Make navigation bar always slippery" into nyc-mr1-dev
am: b5359a0ccf

* commit 'b5359a0ccf990d3befb0dfa5fa5fe5162a03aac8':
  Make navigation bar always slippery

Change-Id: I527426fc2005b29489261c3d277cff008858bd37
2016-05-24 23:17:40 +00:00
Treehugger Robot
1c3b50a00e Merge "Reduced the impact of "synchronized" statements" 2016-05-24 23:17:36 +00:00
TreeHugger Robot
b5359a0ccf Merge "Make navigation bar always slippery" into nyc-mr1-dev 2016-05-24 23:12:39 +00:00
Jim Miller
18347a3289 resolve merge conflicts of f950ec9 to nyc-dev
Change-Id: I131632cb9d64156d10001b3555e8b3bfa471690d
2016-05-24 16:08:15 -07:00
Chet Haase
f3d5ec05b4 Remove hidden LocaleList default constructor
Previous change hid this constructor. Now removing it entirely for completeness.

Issue #28296200  API Review: LocaleList

Change-Id: I43476994070b101999d338ec1f5d1a1a0a2a7658
2016-05-24 16:07:00 -07:00
Android Build Merger (Role)
ff2067f9dc Merge "Merge "Fix usermanager related tests." into nyc-mr1-dev am: bb883ddf59" into nyc-mr1-dev-plus-aosp 2016-05-24 23:04:01 +00:00
Junda Liu
a2f6a67511 Add restricted card state to telephony manager.
Bug: b/28564314
Change-Id: If19b12036b09a8cd015dce4faf5de26606ee2b97
2016-05-24 16:03:37 -07:00
Sudheer Shanka
624e5d7c4c Merge "Fix usermanager related tests." into nyc-mr1-dev
am: bb883ddf59

* commit 'bb883ddf59420377007b1daa1c6e0c07fb8d5eb4':
  Fix usermanager related tests.

Change-Id: Ie93d691bd34ec2457472661e03e8982fd7c5e32c
2016-05-24 23:03:35 +00:00
Sid Soundararajan
438d5cfae4 Merge "Add support for dismissing in Talkback Mode" into nyc-dev am: a3cb77a9b4
am: 4771bc84d8

* commit '4771bc84d8d5549925f026307c86abd5a9e64cf5':

Change-Id: I94073cfc228646e2c373f944109f4c56a1f326c5
2016-05-24 23:02:38 +00:00
Sid Soundararajan
e6f987f654 Merge "Add support for dismissing in Talkback Mode" into nyc-dev am: a3cb77a9b4
am: cec78d078c

* commit 'cec78d078c2440f619e72d03c258fd27a0823dca':
  Add support for dismissing in Talkback Mode

Change-Id: I74d0d4d76eefb729bf55132123b1d2a5a5f3ddf5
2016-05-24 22:59:38 +00:00
Pavlin Radoslavov
e957a8a0b4 Add missing "try ... finally" safeguards
Safeguards for code protected by ReentrantReadWriteLock.

Bug: 28734075
Bug: 28799467
Change-Id: Ib7f598a92e8df6bd855ca48cdd094c1c73a935f2
2016-05-24 22:57:14 +00:00
TreeHugger Robot
bb883ddf59 Merge "Fix usermanager related tests." into nyc-mr1-dev 2016-05-24 22:55:40 +00:00
Sid Soundararajan
4771bc84d8 Merge "Add support for dismissing in Talkback Mode" into nyc-dev
am: a3cb77a9b4

* commit 'a3cb77a9b451b1c02e668024a6a8e3b779a7781d':
  Add support for dismissing in Talkback Mode

Change-Id: I0bd9c14ce2c9537df981688eaa87f277cf72a5f3
2016-05-24 22:53:05 +00:00
Sid Soundararajan
cec78d078c Merge "Add support for dismissing in Talkback Mode" into nyc-dev
am: a3cb77a9b4

* commit 'a3cb77a9b451b1c02e668024a6a8e3b779a7781d':
  Add support for dismissing in Talkback Mode

Change-Id: I634ee39848e5392c2a38be41e17aa36932329e88
2016-05-24 22:52:52 +00:00
Sid Soundararajan
a3cb77a9b4 Merge "Add support for dismissing in Talkback Mode" into nyc-dev 2016-05-24 22:46:27 +00:00
Dianne Hackborn
a8e6f875bc Fix issue #28931042: wtf in system server
More broadcasts (from telephony) that should be protected.

Also put a little more information in the wtf message to
help determine where broadcasts from out of the system process
are coming from.

Change-Id: Ie3df25c883482ca54c7a7c5db57ca609950f5cbc
2016-05-24 15:35:27 -07:00
Andrew Sapperstein
2522b1f138 Replace bluetooth pngs with vector drawables.
The current pngs are hardcoded to the green accent color.
Instead, the new vector drawable replacements have colorAccent
set as a tint.

Saves a bit on APK size, especially since ic_bt_cellphone
can be auto-mirrored rather than requiring ldrtl variants.

BUG: 28760785
Change-Id: Ifaec204ad28dd6cbd8463388080583bf7cf62044
2016-05-24 15:32:12 -07:00
Ta-wei Yen
67ab168b78 Switch VVM SMS filter to Builder pattern
Bug:27816386
Change-Id: I74c73f0a43530dc563df29f0df7ae1a40845e8f0
2016-05-24 15:25:16 -07:00
Jim Miller
f950ec9b1a Merge "Fix missing permission check when saving pattern/password" into mnc-dev am: 45c77d951a am: 9bf8474c27
am: 89e3f2ba98

* commit '89e3f2ba98ea6d69b1846e996c4c279a9b20c4e9':
  Fix missing permission check when saving pattern/password

Change-Id: Ice157c9ee86cf29380766d3ec266cb57594a5868
2016-05-24 22:20:09 +00:00
Jim Miller
89e3f2ba98 Merge "Fix missing permission check when saving pattern/password" into mnc-dev am: 45c77d951a
am: 9bf8474c27

* commit '9bf8474c27642f48aa27e2edf1bdd83b27d692c1':
  Fix missing permission check when saving pattern/password

Change-Id: I4238a43dc30be54375b6db129b360cc7d0a90b0e
2016-05-24 22:14:24 +00:00
Jim Miller
9bf8474c27 Merge "Fix missing permission check when saving pattern/password" into mnc-dev
am: 45c77d951a

* commit '45c77d951ab5203b8e19c2ed2ce3a0816e42b118':
  Fix missing permission check when saving pattern/password

Change-Id: I81947e95d5365bbf6a4927435f43c73dc4ac2bb0
2016-05-24 22:08:16 +00:00
John Reck
c9bb1a38d3 Fix a translate issue with saveLayer
Bug: 28667141

saveLayer clips the layer to the size it needs to
be and will translate content if necessary, but
the drawLayerOp that results from that was not
translated to handle the shifted draw content.

This fixes that

Change-Id: I3c9ffd5d0282fa1b958bced94c25e9744281e9be
2016-05-24 15:06:01 -07:00
Jim Miller
45c77d951a Merge "Fix missing permission check when saving pattern/password" into mnc-dev 2016-05-24 22:04:37 +00:00
Johan T. Halseth
df296a7e68 Merge "Adding grantPermission for packageName" into nyc-mr1-dev
am: b1f0e9705d

* commit 'b1f0e9705d253350852d6508878b4782578fbda6':
  Adding grantPermission for packageName

Change-Id: I59b23547464b776977b69ffba1ad544fc124ef0e
2016-05-24 22:03:56 +00:00
Mady Mellor
f229d406d0 Fix clipping not being activated on children in groups
Some views were not getting the call to reactivate clipping
this is because only the when the view was made visible
was it reset, views made invisible would be missed.

Fixes: 27364129
Change-Id: Ie6944569f432cd657f7f741c95c4067b346ea98b
2016-05-24 15:01:22 -07:00
Amith Yamasani
1bbc2a1ffc Merge "Don\'t deliver broadcast to apps that are being backed up" into nyc-dev am: fc2a7ce7ac
am: b396f36bc3

* commit 'b396f36bc3cc301eca8406acfb4b791ef4390cca':

Change-Id: I8c4fc0bba5bc5e77dc5a007563239f675661206b
2016-05-24 22:01:19 +00:00
Johan Torås Halseth
b1f0e9705d Merge "Adding grantPermission for packageName" into nyc-mr1-dev 2016-05-24 21:58:00 +00:00
Amith Yamasani
02351ca3c4 Merge "Don\'t deliver broadcast to apps that are being backed up" into nyc-dev am: fc2a7ce7ac
am: b475c89a7b

* commit 'b475c89a7b6b46688cd44f18d53ffe8891c81757':
  Don't deliver broadcast to apps that are being backed up

Change-Id: I7ced9d068f89f0f0854f3afa89ff8260774bbf8c
2016-05-24 21:55:14 +00:00
Amith Yamasani
b396f36bc3 Merge "Don\'t deliver broadcast to apps that are being backed up" into nyc-dev
am: fc2a7ce7ac

* commit 'fc2a7ce7acc5ede8b26f35819c8287df1fed135c':
  Don't deliver broadcast to apps that are being backed up

Change-Id: I531ddd28dd24ff567814cb455059ca9ddb24f145
2016-05-24 21:55:01 +00:00
Jorim Jaggi
c59a23fb1b Make navigation bar always slippery
Bug: 28939265
Change-Id: I47270e4e3a30d39580e700bc40ca172f62ab511d
2016-05-24 14:53:36 -07:00
Amith Yamasani
b475c89a7b Merge "Don\'t deliver broadcast to apps that are being backed up" into nyc-dev
am: fc2a7ce7ac

* commit 'fc2a7ce7acc5ede8b26f35819c8287df1fed135c':
  Don't deliver broadcast to apps that are being backed up

Change-Id: Ia6f492cb909603e1741e09c5138ea3a7160a97a6
2016-05-24 21:50:57 +00:00
Android Build Merger (Role)
d68e7a3dc9 Merge "Merge "Report OTA time statistics" into nyc-dev am: 86f97177e9 am: acf91cd6c5" into nyc-mr1-dev-plus-aosp 2016-05-24 21:48:29 +00:00
Tianjie Xu
ba7cb54c4a Merge "Report OTA time statistics" into nyc-dev am: 86f97177e9
am: acf91cd6c5

* commit 'acf91cd6c59ddf59e864411638eaf64506ff69bf':
  Report OTA time statistics

Change-Id: I53397bec443035fcba05b4b03508bb50cb48dfe4
2016-05-24 21:47:55 +00:00
Tianjie Xu
375a512c0d Merge "Report OTA time statistics" into nyc-dev am: 86f97177e9
am: 7135fab76c

* commit '7135fab76cb3e7f7a68547794b3ddf54f08facca':
  Report OTA time statistics

Change-Id: I82f174bfa383a26a87d45ac6675a3ae5812b50af
2016-05-24 21:47:52 +00:00
Amith Yamasani
fc2a7ce7ac Merge "Don't deliver broadcast to apps that are being backed up" into nyc-dev 2016-05-24 21:43:53 +00:00
Danny Epstein
251f22baec Left and right margins for watch preferences.
BUG: 27779149
Change-Id: I8cc10274a157a244e8ecbdb7681cc8e44786f852
2016-05-24 14:43:52 -07:00
Dianne Hackborn
a8c16935d9 Fix issue #28931042: wtf in system server
Broadcast needs to have a valid action.  We'll just pick
a generic one, since the receiver here doesn't care.

Change-Id: Ifff87626d11dd9fafb4e68819e8c8cecdf7fe1aa
2016-05-24 14:43:47 -07:00
Android Build Merger (Role)
d9d2224a65 Merge "Merge "Deprecate shell-based UI Automator." into nyc-dev am: f298f4a7c7 am: f90c5c5f5a" into nyc-mr1-dev-plus-aosp 2016-05-24 21:42:57 +00:00