OSDN Git Service

android-x86/frameworks-base.git
7 years agoadd a notice that Work profiles are not compatible with Instant Run Also includes...
smain@google.com [Tue, 30 Aug 2016 18:14:12 +0000 (18:14 +0000)]
add a notice that Work profiles are not compatible with Instant Run Also includes the redirect for links from the Studio UI bug: 31098748
am: 99e44c903c

Change-Id: I6f407f90b8e53849a6d1c0ed70adb1ca8c90234f

7 years agoMerge "Enforce consistent sizes for arrays in SpannableStringInternal" into nyc-dev
Raph Levien [Tue, 30 Aug 2016 17:33:35 +0000 (17:33 +0000)]
Merge "Enforce consistent sizes for arrays in SpannableStringInternal" into nyc-dev
am: 5d628b1e45

Change-Id: I4a2b24becdda847b7cf301d7224c218a1fab7dc7

7 years agoEnforce consistent sizes for arrays in SpannableStringInternal
Raph Levien [Tue, 30 Aug 2016 17:33:33 +0000 (17:33 +0000)]
Enforce consistent sizes for arrays in SpannableStringInternal
am: 9cde7244b6

Change-Id: I461863c5a4dad8f050b14f55d14020ab1a0874f7

7 years agoMerge "Enforce consistent sizes for arrays in SpannableStringInternal" into nyc-dev
Raph Levien [Tue, 30 Aug 2016 17:25:55 +0000 (17:25 +0000)]
Merge "Enforce consistent sizes for arrays in SpannableStringInternal" into nyc-dev

7 years agoMerge "Don't notify on network switch if source network is validated." into nyc-dr1-dev
TreeHugger Robot [Tue, 30 Aug 2016 10:46:30 +0000 (10:46 +0000)]
Merge "Don't notify on network switch if source network is validated." into nyc-dr1-dev

7 years agoMerge "Sanity check ICMP6 router advertisement packets" into nyc-dev
Paul Jensen [Tue, 30 Aug 2016 05:44:34 +0000 (05:44 +0000)]
Merge "Sanity check ICMP6 router advertisement packets" into nyc-dev
am: b9d4f91630

Change-Id: Ibea7e0328b1f7c74bf2edcc054cad2a54def905b

7 years agoSanity check ICMP6 router advertisement packets
Paul Jensen [Tue, 30 Aug 2016 05:42:04 +0000 (05:42 +0000)]
Sanity check ICMP6 router advertisement packets
am: a36213867a  -s ours

Change-Id: I8371809758391158effb378fae4b6fc9aaca553c

7 years agoMerge "Sanity check ICMP6 router advertisement packets" into nyc-dev
TreeHugger Robot [Tue, 30 Aug 2016 05:20:10 +0000 (05:20 +0000)]
Merge "Sanity check ICMP6 router advertisement packets" into nyc-dev

7 years agoSanity check ICMP6 router advertisement packets
Paul Jensen [Wed, 20 Jul 2016 19:01:17 +0000 (15:01 -0400)]
Sanity check ICMP6 router advertisement packets

There is a chance a packet can slip by before we install the filter
on our socket listening for RAs, so add some basic sanity checking
to make sure we've recieved an RA.

Change-Id: I14cf84a0814896a41e00f50af376dfc4988d36cb
Fixes: 29586253

7 years agoMerge "update shared libraries for system apps" into nyc-dev
Todd Kennedy [Tue, 30 Aug 2016 01:48:47 +0000 (01:48 +0000)]
Merge "update shared libraries for system apps" into nyc-dev
am: 689c92db9d

Change-Id: Iea85964ca4ee5557599858572864b51ea7dd53f3

7 years agoupdate shared libraries for system apps
Todd Kennedy [Tue, 30 Aug 2016 01:48:45 +0000 (01:48 +0000)]
update shared libraries for system apps
am: 85a91def5c

Change-Id: Iea6f0e3809bc5e4c77a1d5d83be67d6c285bea65

7 years agoMerge "update shared libraries for system apps" into nyc-dev
TreeHugger Robot [Tue, 30 Aug 2016 01:44:29 +0000 (01:44 +0000)]
Merge "update shared libraries for system apps" into nyc-dev

7 years agoMerge "Cherry pick TextureView fixes" into nyc-dev
John Reck [Mon, 29 Aug 2016 23:41:44 +0000 (23:41 +0000)]
Merge "Cherry pick TextureView fixes" into nyc-dev
am: 8eaa65b867

Change-Id: Iaf8ab16f6a1421ff6a19bf81a54b82111f6747f4

7 years agoCherry pick TextureView fixes
Chris Craik [Mon, 29 Aug 2016 23:41:42 +0000 (23:41 +0000)]
Cherry pick TextureView fixes
am: 2e8a8a2432

Change-Id: I1ae3cdc7181e9bef40e38204ede002de973dee98

7 years agoMerge "Cherry pick TextureView fixes" into nyc-dev
John Reck [Mon, 29 Aug 2016 23:33:55 +0000 (23:33 +0000)]
Merge "Cherry pick TextureView fixes" into nyc-dev

7 years agoupdate shared libraries for system apps
Todd Kennedy [Thu, 28 Jul 2016 20:28:16 +0000 (13:28 -0700)]
update shared libraries for system apps

After removing updates for a system package, we weren't updating its
shared libraries when we should have. Make it so.

NOTE: This didn't affect device boot because we update all of the
shared libraries for all system applications after scanning packages.

Bug: 30266503
Change-Id: I8edf4344228fb3e793e7648ea70a041cb5db6af6
(cherry picked from commit 6058df65e645a81bdc7285dcd9f8b12b9f5b534f)

7 years agoMerge "Make sure IME focus is synced to View focus" into nyc-dev
Yohei Yukawa [Mon, 29 Aug 2016 22:49:24 +0000 (22:49 +0000)]
Merge "Make sure IME focus is synced to View focus" into nyc-dev
am: b7efddfc41

Change-Id: I6a5c98b87dffb4cd3db5e434743b463142a50e1d

7 years agoMake sure IME focus is synced to View focus
Yohei Yukawa [Mon, 29 Aug 2016 22:45:50 +0000 (22:45 +0000)]
Make sure IME focus is synced to View focus
am: 8eb07090a4  -s ours

Change-Id: I32b177a7ea77566ed7b2f1808398b70c64bb756d

7 years agoMerge "Make sure IME focus is synced to View focus" into nyc-dev
TreeHugger Robot [Mon, 29 Aug 2016 22:35:21 +0000 (22:35 +0000)]
Merge "Make sure IME focus is synced to View focus" into nyc-dev

7 years agoMerge "ChooserActivity: Cannot start app that the icon overflows the layout" into...
Chet Haase [Mon, 29 Aug 2016 22:31:37 +0000 (22:31 +0000)]
Merge "ChooserActivity: Cannot start app that the icon overflows the layout" into nyc-dev
am: 59fb472858

Change-Id: I68cef7811c79e264c685fcaae30b501d29789af5

7 years agoChooserActivity: Cannot start app that the icon overflows the layout
Yuichi Biwa [Mon, 29 Aug 2016 22:31:33 +0000 (22:31 +0000)]
ChooserActivity: Cannot start app that the icon overflows the layout
am: cb3e1237b5

Change-Id: I93bb2ff3a13f31f6ce6d2ab7161eba3f1be17999

7 years agoMerge "Set up view state before attaching, jump drawables if needed" into nyc-dev
Chet Haase [Mon, 29 Aug 2016 22:31:28 +0000 (22:31 +0000)]
Merge "Set up view state before attaching, jump drawables if needed" into nyc-dev
am: 22e006214c

Change-Id: Ib19c9f7c09574796d8446f2195323d78aa6b8811

7 years agoSet up view state before attaching, jump drawables if needed
Alan Viverette [Mon, 29 Aug 2016 22:31:24 +0000 (22:31 +0000)]
Set up view state before attaching, jump drawables if needed
am: c328f042a6  -s ours

Change-Id: If8eeea4957a19389c9fea47bd0b31dbcc5d51b21

7 years agoMerge "Force AlertDialogLayout to have gravity start|top" into nyc-dev
Chet Haase [Mon, 29 Aug 2016 22:31:20 +0000 (22:31 +0000)]
Merge "Force AlertDialogLayout to have gravity start|top" into nyc-dev
am: a1bbb76806

Change-Id: I1f1d1efab0844204df403fdc7619b6c6d8b1fb77

7 years agoForce AlertDialogLayout to have gravity start|top
Adam Powell [Mon, 29 Aug 2016 22:31:16 +0000 (22:31 +0000)]
Force AlertDialogLayout to have gravity start|top
am: 00c4f7ba65

Change-Id: If329f03f0475cb0b65ed62d97ee97285f8d24038

7 years agoMerge "FloatingActionMode: Fix screen coordinates." into nyc-dev
Chet Haase [Mon, 29 Aug 2016 22:31:09 +0000 (22:31 +0000)]
Merge "FloatingActionMode: Fix screen coordinates." into nyc-dev
am: c80a4d7ae3

Change-Id: I39589f091b9f34581f20323e721a3d1ab2887c32

7 years agoFloatingActionMode: Fix screen coordinates.
Abodunrinwa Toki [Mon, 29 Aug 2016 22:31:04 +0000 (22:31 +0000)]
FloatingActionMode: Fix screen coordinates.
am: 99c340cad9

Change-Id: If69592a88c5296d1321a08d78231492efaac6645

7 years agoMerge "ChooserActivity: Cannot start app that the icon overflows the layout" into...
Chet Haase [Mon, 29 Aug 2016 22:13:09 +0000 (22:13 +0000)]
Merge "ChooserActivity: Cannot start app that the icon overflows the layout" into nyc-dev

7 years agoMerge "Set up view state before attaching, jump drawables if needed" into nyc-dev
Chet Haase [Mon, 29 Aug 2016 22:12:07 +0000 (22:12 +0000)]
Merge "Set up view state before attaching, jump drawables if needed" into nyc-dev

7 years agoMerge "Force AlertDialogLayout to have gravity start|top" into nyc-dev
Chet Haase [Mon, 29 Aug 2016 22:11:25 +0000 (22:11 +0000)]
Merge "Force AlertDialogLayout to have gravity start|top" into nyc-dev

7 years agoMerge "FloatingActionMode: Fix screen coordinates." into nyc-dev
Chet Haase [Mon, 29 Aug 2016 22:11:07 +0000 (22:11 +0000)]
Merge "FloatingActionMode: Fix screen coordinates." into nyc-dev

7 years agoMerge "Eliminate next-alarm-clock broadcast flapping" into nyc-dev
Christopher Tate [Mon, 29 Aug 2016 21:55:38 +0000 (21:55 +0000)]
Merge "Eliminate next-alarm-clock broadcast flapping" into nyc-dev
am: 2bbfe98062

Change-Id: I05c5b636f7edec76ab85c4e9b9d248c41acb4157

7 years agoEliminate next-alarm-clock broadcast flapping
Christopher Tate [Mon, 29 Aug 2016 21:55:30 +0000 (21:55 +0000)]
Eliminate next-alarm-clock broadcast flapping
am: c60da1edc1

Change-Id: Id45dadd7ccebf91435e197f86f5fba71127c0986

7 years agoMerge "Eliminate next-alarm-clock broadcast flapping" into nyc-dev
TreeHugger Robot [Mon, 29 Aug 2016 21:47:02 +0000 (21:47 +0000)]
Merge "Eliminate next-alarm-clock broadcast flapping" into nyc-dev

7 years agoMerge "Update InCallService#onConnectionEvent comments." into nyc-dr1-dev
Pankaj Kanwar [Mon, 29 Aug 2016 21:37:39 +0000 (21:37 +0000)]
Merge "Update InCallService#onConnectionEvent comments." into nyc-dr1-dev

7 years agoCherry pick TextureView fixes
Chris Craik [Mon, 25 Jul 2016 22:29:59 +0000 (15:29 -0700)]
Cherry pick TextureView fixes

The following changes are in this commit:

Avoid destroying TextureView surfaces for onStop

bug:30238922

TextureViews will hold onto their backing surfaces, which will allow
them to resume gracefully when the app's surfaces are saved.

Now only resources that are destroyed for onStop are DisplayLists.

(cherry picked from commit 391d560402c2902e0fd701f99eabd91025154201)

TextureView: destroy layer on destroyHardwareResources event

bug:30468770

(cherry picked from commit 1c16c37d8646ed25e844af8472eede988ad0c2f0)

Fix NPE in TextureView

Bug: 30651595

(cherry picked from commit 3c2587f26eed32a8723488131d1d8940dc147ee1)

Fix NPE in TextureView

Bug: 30779663

(cherry picked from commit 7e237189c292cdb886733eb95c6069b7ac002527)

Fix maps resume being blank

Bug: 30889568

Fixes an issue where mLayer didn't have
the mSurface set on it in certain resume
scenarios.

(cherry picked from commit 03df0834e63b587dbfb8fdcd0086e3e1e72b9f9d)

7 years agoMerge "DO NOT MERGE -- Fix finishing activity in non-focused stack" into nyc-dev
Andrii Kulian [Mon, 29 Aug 2016 21:17:02 +0000 (21:17 +0000)]
Merge "DO NOT MERGE -- Fix finishing activity in non-focused stack" into nyc-dev
am: c8417676ed

Change-Id: I74e1b45ce3eaf9edec6fb60394da3ad8a818d214

7 years agoDO NOT MERGE -- Fix finishing activity in non-focused stack
Andrii Kulian [Mon, 29 Aug 2016 21:16:59 +0000 (21:16 +0000)]
DO NOT MERGE -- Fix finishing activity in non-focused stack
am: 772c598f66

Change-Id: I890f3b460787682bbe0fdb4d8ce44364f1839dac

7 years agoMerge "DO NOT MERGE -- Fix finishing activity in non-focused stack" into nyc-dev
TreeHugger Robot [Mon, 29 Aug 2016 21:10:31 +0000 (21:10 +0000)]
Merge "DO NOT MERGE -- Fix finishing activity in non-focused stack" into nyc-dev

7 years agoEliminate next-alarm-clock broadcast flapping
Christopher Tate [Wed, 3 Aug 2016 21:57:47 +0000 (14:57 -0700)]
Eliminate next-alarm-clock broadcast flapping

When multiple alarm clocks are scheduled at the same time, we would
flap among the alternatives for considering them the 'next upcoming
alarm clock', which in turn would generate [many] spurious broadcasts
about changes to the upcoming alarm situation.  This is now fixed;
once we have found the soonest upcoming alarm clock, we stick with
that one until it becomes unavailable, eliminating the spurious
broadcast traffic.

Bug 29501073

Change-Id: Ice1892490bb339e05fa8bd9d324fa1c6718b4942
(cherry picked from commit 76389c00d3d3ce79e48d9e87b597707ed3e8970c)

7 years agoBump up the uncrypt timeout to 30 min. am: 8abcfed8a4
Tao Bao [Mon, 29 Aug 2016 19:34:23 +0000 (19:34 +0000)]
Bump up the uncrypt timeout to 30 min. am: 8abcfed8a4
am: c5a17fc39f

Change-Id: Ib637e1f00ddebbac5a3bea6ff31f08854a95b7ea

7 years agoBump up the uncrypt timeout to 30 min.
Tao Bao [Mon, 29 Aug 2016 19:26:43 +0000 (19:26 +0000)]
Bump up the uncrypt timeout to 30 min.
am: 8abcfed8a4

Change-Id: I35340614fe09f96f8c31cc53a99e366580294490

7 years agoMerge "DO NOT MERGE -- Correctly finish activity in non-focused stack" into nyc-dev
Andrii Kulian [Mon, 29 Aug 2016 18:51:55 +0000 (18:51 +0000)]
Merge "DO NOT MERGE -- Correctly finish activity in non-focused stack" into nyc-dev
am: 128a4419e9

Change-Id: I6c28db82c53af5a68c3d875ecca920b9a1364b32

7 years agoDO NOT MERGE -- Correctly finish activity in non-focused stack
Andrii Kulian [Mon, 29 Aug 2016 18:44:11 +0000 (18:44 +0000)]
DO NOT MERGE -- Correctly finish activity in non-focused stack
am: 620040db3f  -s ours

Change-Id: I62703cc7f62bf42967021ce8defa30669e096ec2

7 years agoDO NOT MERGE -- Fix finishing activity in non-focused stack
Andrii Kulian [Fri, 29 Jul 2016 19:55:41 +0000 (12:55 -0700)]
DO NOT MERGE -- Fix finishing activity in non-focused stack

This CL explicitly checks if we're finishing activity in non-focused
stack as there are other cases except this one when we finish paused
activities in FINISH_AFTER_VISIBLE mode.

Bug: 29007436
Bug: 29458854
Change-Id: I67744d23cd72f2fe8861180008bfdd284a7b5e26
(cherry picked from commit 995fa2bd2d334a37e10760c21ac108f4a3595713)

7 years agoMerge "DO NOT MERGE -- Correctly finish activity in non-focused stack" into nyc-dev
Andrii Kulian [Mon, 29 Aug 2016 18:30:06 +0000 (18:30 +0000)]
Merge "DO NOT MERGE -- Correctly finish activity in non-focused stack" into nyc-dev

7 years agoMerge "Fix double status bar icons" into nyc-dev
Jason Monk [Mon, 29 Aug 2016 18:26:00 +0000 (18:26 +0000)]
Merge "Fix double status bar icons" into nyc-dev
am: 2b4e612b10

Change-Id: Ib0d9e51d289215d96525b68d0432b959e9b58f2f

7 years agoFix double status bar icons
Jason Monk [Mon, 29 Aug 2016 18:25:57 +0000 (18:25 +0000)]
Fix double status bar icons
am: 12124d7eca

Change-Id: Ief00496f19d2e249129023a03cd9f53d76fa7bf8

7 years agoMerge "Fixed a bug where notifications could reappear" into nyc-dev
Selim Cinek [Mon, 29 Aug 2016 18:25:54 +0000 (18:25 +0000)]
Merge "Fixed a bug where notifications could reappear" into nyc-dev
am: 4226dcef1e

Change-Id: I7c3c46bf360899387a0d2d33d4beb83a3b096aa0

7 years agoFixed a bug where notifications could reappear
Selim Cinek [Mon, 29 Aug 2016 18:25:51 +0000 (18:25 +0000)]
Fixed a bug where notifications could reappear
am: f3b64692a3

Change-Id: I19719fc6112e82d9600b4196570f571f87291530

7 years agoFixed a bug where the headsup would be stuck disappearing
Selim Cinek [Mon, 29 Aug 2016 18:25:47 +0000 (18:25 +0000)]
Fixed a bug where the headsup would be stuck disappearing
am: a4155bb7c0

Change-Id: Ic82cbac42cf17427ca5d6675a63d6f914a87f6cb

7 years agoMake sure IME focus is synced to View focus
Yohei Yukawa [Fri, 5 Aug 2016 22:38:55 +0000 (15:38 -0700)]
Make sure IME focus is synced to View focus

This CL fixes an edge case that my previous CL [1] forgot to handle.

The goal of my previous CL was to avoid InputMethodManager from getting
confused by a false focus-in event from temporarily detached Views.
However, my CL forgot to take care of the case where the temporarily
detached View is still focused even after the temporary detach mode is
done.

The bad news is that such a situation is relatively easy to trigger by
having a ListView that has EditText as follows, which seems to be
known to be a common technique in Android developer community to put an
EditText in a ListView.
  ListView#listView.addHeaderView(new EditText(context), null, true);

If the ListView is initialized as above, and the EditText has input
focus, View focus and IME focus start to disagree immediatelly after the
ListView's layout is re-evaluated.  This is really easy to trigger, for
example just by dismissing the IME window.

In summary, the root cause is that InputMethodManager#focusIn(View) is
now always ignored as long as the View is temporarily detached, under an
assumption that IMM#focusIn(View) will be called back again with a View
that is not temporarily detached when everything is stable.  Hence the
fix is to do so by hooking up View#dispatchFinishTemporaryDetach() to
call IMM#focusIn(View) again when the View is actually focused in the
final state.

 [1]: Ia79bbd8468f768d546354382b47b39dd31ef7bb5
      a4ed0cfcb6885beeb52f701bfc64c393b668f7ba

Bug: 30022872
Bug: 30578745
Bug: 30706985
Change-Id: Iecbdb00dcef8c72e4f7b31035c9bf0f4a40a578f
(cherry picked from commit dd228fbb4d2cb3d178ed7f1889343bfe177aafa2)

7 years agoMerge "whitelist sms code for TMO-DE and TMO-MK." into nyc-dr1-dev
Vineeta Srivastava [Mon, 29 Aug 2016 18:18:13 +0000 (18:18 +0000)]
Merge "whitelist sms code for TMO-DE and TMO-MK." into nyc-dr1-dev

7 years agoMerge "Fix double status bar icons" into nyc-dev
Jason Monk [Mon, 29 Aug 2016 18:00:00 +0000 (18:00 +0000)]
Merge "Fix double status bar icons" into nyc-dev

7 years agoMerge "Fixed a bug where notifications could reappear" into nyc-dev
TreeHugger Robot [Mon, 29 Aug 2016 17:58:28 +0000 (17:58 +0000)]
Merge "Fixed a bug where notifications could reappear" into nyc-dev

7 years agoFix double status bar icons
Jason Monk [Tue, 26 Jul 2016 17:04:50 +0000 (13:04 -0400)]
Fix double status bar icons

Don't allow the status bar icon slot list to be changed because
it confuses the relationship between StatusBarIconList and
StatusBarIconController.  Set it in the constructor to enforce
this.

Change-Id: Ieeea0a9efad88179d1cccc0e5702899333de2e72
Fixes: 28524184
(cherry picked from commit c6fe61c59c5a3a6ae691256c9afdde3820e3dd9e)

7 years agoDon't notify on network switch if source network is validated.
Lorenzo Colitti [Mon, 29 Aug 2016 05:03:11 +0000 (14:03 +0900)]
Don't notify on network switch if source network is validated.

Sometimes we switch away from a network to another (e.g., wifi to
cell data) not because the old network is unvalidated, but
because the score is lowered by a low signal strength.

In this case, don't notify the user of a network switch.

Bug: 31132499
Change-Id: I996a6e00096f8cb864fa9b00b36921725a4edb53

7 years agoRemoved screen on/off callbacks from NPMS.
Felipe Leme [Wed, 10 Aug 2016 20:00:32 +0000 (13:00 -0700)]
Removed screen on/off callbacks from NPMS.

NetworkPolicyManagerService (NPMS) used to depend on screen on/off
changes to determine if a foreground activity should have network
restrictions, but such check is now redundant since ActivityManager
already changes the proper UID state (like going from TOP to
TOP_SLEEPING) when the screen status is changed.

Removing such code decreases the NPMS lock contention when the screen is
turned on in about 3-5ms.

Change-Id: I2853443efedbf14961ae9a5b2e72689d4d1a646c
BUG: 30785671
(cherry picked from commit 88f40ad9a721ee30708be82f66fb58c64f1d36b5)
(cherry picked from commit f8dd7b4e8d548274c680644a2225951b97e94a4f)

7 years agoForce AlertDialogLayout to have gravity start|top
Adam Powell [Thu, 28 Jul 2016 23:30:10 +0000 (16:30 -0700)]
Force AlertDialogLayout to have gravity start|top

AlertDialogLayout overrides LinearLayout#onMeasure but not onLayout,
meaning that some state initialized for the handling of gravity may
not be valid in LinearLayout#onLayout. As this is an internal class
never used directly by apps, explicitly specify the default gravity of
start|top in @layout/alert_dialog_material to avoid this bug. Apps
that do things like set gravity in their theme (for whatever reason)
could otherwise change its behavior.

Bug 30494039

Change-Id: I71a8be1829a7fe24cf7714a3bd5ed732f85eb887
(cherry picked from commit 39e0bf23f50a3de112b232321c5e0a1013af70c7)

7 years agoBump up the uncrypt timeout to 30 min.
Tao Bao [Sat, 27 Aug 2016 03:52:41 +0000 (20:52 -0700)]
Bump up the uncrypt timeout to 30 min.

Bug: 30490464
Change-Id: I9b65afb10134d79b2f5b5275a6d81065a04e91b9

7 years agoChooserActivity: Cannot start app that the icon overflows the layout
Yuichi Biwa [Mon, 30 Nov 2015 05:43:34 +0000 (14:43 +0900)]
ChooserActivity: Cannot start app that the icon overflows the layout

Symptom:
When sharing an image from Album, ChooserActivity can be shown.
But then the app to be located to the bottom part of the list may not
be started even if user tap it.

Root cause:
ChooserActivity uses ResolverDrawerLayout. And ResolverDrawerLayout
can display only some items on the list (known as "Collapse mode").
When the item clipping along the bottom edge is tapped by the user,
ResolverDrawerLayout tries to expand the list and scroll it to a
better position, instead of starting an application.
In this problem case, ResolverDrawerLayout continues to try to expand
the list whenever tapping, so an application will never start.

Solution:
Change a condition so that mOpenOnClick becomes true only when the list
has been collapsed (mCollapseOffset > 0).

Bug: 30153542

Change-Id: I576fb6c8b6a91d79c1e0d46d069146779f4dbd17
(cherry picked from commit 4f3a843ea9b6ffe2e29e6625ffb3d87fbf143623)

7 years agoFloatingActionMode: Fix screen coordinates.
Abodunrinwa Toki [Fri, 15 Jul 2016 13:40:26 +0000 (14:40 +0100)]
FloatingActionMode: Fix screen coordinates.

Use application context to get the screen's display metrics.

Bug: 30127070
Change-Id: I2c453c494ef210c12d89fc7e3ff026728f9ecb0f
(cherry picked from commit afb38c5cc4226ce82367015f4ce52765018226d6)

7 years agoSet up view state before attaching, jump drawables if needed
Alan Viverette [Thu, 7 Jul 2016 20:39:27 +0000 (16:39 -0400)]
Set up view state before attaching, jump drawables if needed

View attachment calls jumpDrawablesToCurrentState(), so the view state
needs to be set up prior to attachment. For views that are already
attached but are being moved to a new position, manually jump.

Cleans up comments in methods that were modified.

Bug: 29978498
Change-Id: Ica27b2c60ad7ee98b9d1e4912c4f8b8c248af88d
(cherry picked from commit 26489e1688633ee270ff1469d0df38c90bbdf674)

7 years agoMerge "Fixes for ImageView drawable visibility dispatch" into nyc-dr1-dev
Daniel Chapin [Sat, 27 Aug 2016 01:14:33 +0000 (01:14 +0000)]
Merge "Fixes for ImageView drawable visibility dispatch" into nyc-dr1-dev

7 years agoFixed a bug where notifications could reappear
Selim Cinek [Wed, 20 Jul 2016 20:46:49 +0000 (13:46 -0700)]
Fixed a bug where notifications could reappear

With sensitive notifications a user could get into
a situation where the groupsummary would not be cleared
because its dismissability was never updated and based
on the visibility of the veto button. This is now corrected.

This Cl also cleans up the veto button handling overall and
ensures that there's no stale state arond it.

Change-Id: Ic7df8d382146d7863ee551c1daa8ba5ed384c7b5
Fixes: 30056258
(cherry picked from commit 9e624e732aa5646c83d203587be9c2c4e94c9266)

7 years agoFixed a bug where the headsup would be stuck disappearing
Selim Cinek [Wed, 13 Jul 2016 21:34:56 +0000 (14:34 -0700)]
Fixed a bug where the headsup would be stuck disappearing

Change-Id: I56d6be69f6e59c1bec647e7e70e50a36b793f895
Fixes: 30120962

7 years agoEnforce consistent sizes for arrays in SpannableStringInternal
Raph Levien [Mon, 25 Jul 2016 17:05:35 +0000 (10:05 -0700)]
Enforce consistent sizes for arrays in SpannableStringInternal

The grow logic in SpannableStringInternal#setSpan assumes that the
size of mSpanData is consistent with that of mSpans, in particular
that if the latter doesn't need to grow, neither does the former.
The copySpans() method didn't enforce this, creating an mSpanData
array only big enough to hold the data.

This patch documents the invariant in a comment and enforces it.

Bug: 30359314
Change-Id: Ie25db70a76836e97af8476a7f5c10cb4b976c1cf
(cherry picked from commit 83549088c643586aa6013d947ad2c21464a3878e)

7 years agoadd a notice that Work profiles are not compatible with Instant Run
smain@google.com [Fri, 26 Aug 2016 23:25:24 +0000 (16:25 -0700)]
add a notice that Work profiles are not compatible with Instant Run
Also includes the redirect for links from the Studio UI
bug: 31098748

Change-Id: Ief7296e512ccf387d738426026413dfe19785ff7

7 years agoMerge "DO NOT MERGE -- Only use saved surface if started by launcher or moved to...
Chong Zhang [Fri, 26 Aug 2016 23:22:08 +0000 (23:22 +0000)]
Merge "DO NOT MERGE -- Only use saved surface if started by launcher or moved to front" into nyc-dr1-dev

7 years agoDO NOT MERGE -- Correctly finish activity in non-focused stack
Andrii Kulian [Thu, 21 Jul 2016 01:59:28 +0000 (18:59 -0700)]
DO NOT MERGE -- Correctly finish activity in non-focused stack

When activity is finished we first looked for next activity to
show in focused stack. If real next activity to show in place
of finishing one is in the same non-focused stack, we didn't
fully complete the dismissal process and activity was stuck in
FINISHING state.
This CL checks if we're trying to finish visible activity in
paused state and destroy it immediately if top running activity
is visible - same as we do for pinned activities.

Bug: 29458854
Change-Id: I0d5ceb2daa45c0628d89417c8456e132996bcea9
(cherry picked from commit 7318d63ba6dbb3042907d10d5369fcd5ac444d67)

7 years agoFixes for ImageView drawable visibility dispatch
Adam Powell [Thu, 25 Aug 2016 00:09:01 +0000 (17:09 -0700)]
Fixes for ImageView drawable visibility dispatch

Some apps rely on their drawables not getting not-visible hints via
setVisible when the window visibility changes. This manifests as
additional animations, such as crossfading from placeholders when the
window becomes visible again.

Apps should be able to handle this case in the future now that we have
more detailed reporting via onVisibilityAggregated, but to keep
existing apps working as-is, ImageView now operates in a compatibility
mode for targetSdkVersion < N and will only dispatch visibility
signals based on the same triggers used in M. New apps get the more
detailed signals.

Fix a bug where window visibility dispatch via onVisibilityAggregated
would double-dispatch "not visible" when the window is transitioning
from GONE => INVISIBLE or INVISIBLE => GONE.

Make the growing set of compatibility check fields in ImageView
static, matching the pattern from View.

Bug 30216207

Change-Id: I88875260bf6aaa23687c7d51353de8d633383531

7 years agoDO NOT MERGE -- Only use saved surface if started by launcher or moved to front
Chong Zhang [Thu, 25 Aug 2016 19:12:33 +0000 (12:12 -0700)]
DO NOT MERGE -- Only use saved surface if started by launcher or moved to front

Restrict saved surface to launcher start (ACTION_MAIN&CATEGORY_
LAUNCHER), or there is no intent at all (eg. task being brought to
front). If the intent is something else, likely the app is going
to show some specific page or view, instead of what's left last time.

This solves problems like the launcher shortcuts on DeckClock,
each of them is a different intent and will show one specific
view regardless of last states. Another example is Chrome tab
opened directly by action VIEW to open some URL.

(Note that this doesn't solve the problem with Chrome homescreen
shortcuts, it will still start with saved surface (if Chrome
is already open). This is because the shortcut is a trampoline
activity that starts the real chrome tab activity, but when
the trampoline is started, the whole task is already brought
to front, and ChromeTab could become visible with the task
before we actually start it.)

bug: 31055479
bug: 27747315

Change-Id: Id3e61c61ef516b0edc1f174320f02661222f226b
(cherry picked from commit ad24f96def42016049de05220593aa049b136def)

7 years agowhitelist sms code for TMO-DE and TMO-MK.
Vineeta Srivastava [Fri, 26 Aug 2016 21:10:54 +0000 (14:10 -0700)]
whitelist sms code for TMO-DE and TMO-MK.

For Germany (T-D) 73240 and 3011 is added to whitelist
For Macedonia (TMMK) 129005 and 122 added to whitelist

Bug: 30908153
Change-Id: I892a172994de62d90df313e9f7aaa17356092448

7 years agoMerge "Fetch ga script over https to avoid mixed content." into nyc-dev
Dirk Dougherty [Fri, 26 Aug 2016 16:25:46 +0000 (16:25 +0000)]
Merge "Fetch ga script over https to avoid mixed content." into nyc-dev
am: c2b9d55818

Change-Id: I921f581b8d418cc43d3ad50feaec8ddf233af945

7 years agoFetch ga script over https to avoid mixed content.
Dirk Dougherty [Fri, 26 Aug 2016 16:25:43 +0000 (16:25 +0000)]
Fetch ga script over https to avoid mixed content.
am: b5760c1fe7

Change-Id: I9cd19eac7a89c2ab5b5f1fd11a98bcdc7b7850ab

7 years agoMerge "Fetch ga script over https to avoid mixed content." into nyc-dev
Dirk Dougherty [Fri, 26 Aug 2016 16:22:05 +0000 (16:22 +0000)]
Merge "Fetch ga script over https to avoid mixed content." into nyc-dev

7 years agoMerge "Backup system QS tiles" into nyc-dr1-dev
Jason Monk [Fri, 26 Aug 2016 13:18:52 +0000 (13:18 +0000)]
Merge "Backup system QS tiles" into nyc-dr1-dev

7 years agoBackup system QS tiles
Jason Monk [Thu, 25 Aug 2016 19:57:14 +0000 (15:57 -0400)]
Backup system QS tiles

Add QS tiles to the backup list.  Non-system tiles will get removed
since they won't be installed when restore happens.

Change-Id: Iccf6e773384c45bd4d1f10c21aa8af356b3920d2
Bug: 28782938

7 years agoMerge "docs: Fix typo and broken link in AsyncTask.java" into nyc-dev
Mark Lu [Fri, 26 Aug 2016 00:54:02 +0000 (00:54 +0000)]
Merge "docs: Fix typo and broken link in AsyncTask.java" into nyc-dev
am: 314d995ca1

Change-Id: Idf4e30a184c086f360db24b2360cef758e2ea36d

7 years agodocs: Fix typo and broken link in AsyncTask.java
Mark Lu [Fri, 26 Aug 2016 00:53:59 +0000 (00:53 +0000)]
docs: Fix typo and broken link in AsyncTask.java
am: 53415ff24e

Change-Id: I1fd10e79a2af2db5bc175dcc4126d3f88c35f4b1

7 years agoMerge "docs: fix link in Loader reference page" into nyc-dev
Mark Lu [Fri, 26 Aug 2016 00:53:55 +0000 (00:53 +0000)]
Merge "docs: fix link in Loader reference page" into nyc-dev
am: 3c638c1ea1

Change-Id: I90e2cc4100d130299bfd7094fe727c405773f64e

7 years agodocs: fix link in Loader reference page
Mark Lu [Fri, 26 Aug 2016 00:53:53 +0000 (00:53 +0000)]
docs: fix link in Loader reference page
am: 9f52b7a4a8

Change-Id: I32164f55f9b42dc50f13756c942644350a7d643e

7 years agoMerge "docs: Fix typo and broken link in AsyncTask.java" into nyc-dev
Mark Lu [Fri, 26 Aug 2016 00:46:03 +0000 (00:46 +0000)]
Merge "docs: Fix typo and broken link in AsyncTask.java" into nyc-dev

7 years agoMerge "docs: fix link in Loader reference page" into nyc-dev
Mark Lu [Fri, 26 Aug 2016 00:46:00 +0000 (00:46 +0000)]
Merge "docs: fix link in Loader reference page" into nyc-dev

7 years agoMerge "resolve merge conflicts of 270947f to klp-modular-dev am: 76c4b2a7b6 -s ours...
Sudheer Shanka [Thu, 25 Aug 2016 23:58:24 +0000 (23:58 +0000)]
Merge "resolve merge conflicts of 270947f to klp-modular-dev am: 76c4b2a7b6  -s ours am: bbbb514bc9 am: 6a50270944 am: a0994c6d58 am: cdf70ba0a3 am: c2a760e68c am: 77dec89bb3 am: 203d1bee25 am: 7a46fac0cd" into nyc-dev
am: fea9feb30e

Change-Id: Iaca1bc4e5187f8faa716447dad72e21e480d8fb4

7 years agoresolve merge conflicts of 270947f to klp-modular-dev am: 76c4b2a7b6 -s ours am...
Sudheer Shanka [Thu, 25 Aug 2016 23:58:21 +0000 (23:58 +0000)]
resolve merge conflicts of 270947f to klp-modular-dev am: 76c4b2a7b6  -s ours am: bbbb514bc9 am: 6a50270944 am: a0994c6d58 am: cdf70ba0a3 am: c2a760e68c am: 77dec89bb3 am: 203d1bee25 am: 7a46fac0cd
am: d57565864b

Change-Id: Idc453e502aa7b88ded12979c51cb0fc623ab9eb3

7 years agoMerge "Merge "DO NOT MERGE: Clean up when recycling a pid with a pending launch"...
Sudheer Shanka [Thu, 25 Aug 2016 23:49:45 +0000 (23:49 +0000)]
Merge "Merge "DO NOT MERGE: Clean up when recycling a pid with a pending launch" into lmp-dev am: 96052ea905  -s ours am: f368bdee06 am: f21534a288 am: dfc2d0a4bc  -s ours am: 603a69ffb4 am: 97194798ab am: c35a9fed39 am: 71933abbdc  -s ours" into nyc-dev
am: cca29c7284

Change-Id: I61a488a73884cbb0e9bb2886858d8ffe92b6ae34

7 years agoMerge "DO NOT MERGE: Clean up when recycling a pid with a pending launch" into lmp...
Sudheer Shanka [Thu, 25 Aug 2016 23:49:42 +0000 (23:49 +0000)]
Merge "DO NOT MERGE: Clean up when recycling a pid with a pending launch" into lmp-dev am: 96052ea905  -s ours am: f368bdee06 am: f21534a288 am: dfc2d0a4bc  -s ours am: 603a69ffb4 am: 97194798ab am: c35a9fed39 am: 71933abbdc  -s ours
am: 02ba5ef875

Change-Id: Id1c710fc85ba3aa516645bb56b9ab744bdf5eb1e

7 years agoMerge "DO NOT MERGE: Clean up when recycling a pid with a pending launch am: a92810a1...
Amith Yamasani [Thu, 25 Aug 2016 23:49:30 +0000 (23:49 +0000)]
Merge "DO NOT MERGE: Clean up when recycling a pid with a pending launch am: a92810a189  -s ours am: 9be12f8986 am: 03b0f5c3ec am: 7b8140652b  -s ours am: 9080d4462e am: 75c7391a41 am: f6361752ca am: 7586e03e06  -s ours" into nyc-dev
am: 5f5403def8

Change-Id: Id8752560cdf0d732f96d5987a5fe2cc79883ac10

7 years agoDO NOT MERGE: Clean up when recycling a pid with a pending launch am: a92810a189...
Amith Yamasani [Thu, 25 Aug 2016 23:49:28 +0000 (23:49 +0000)]
DO NOT MERGE: Clean up when recycling a pid with a pending launch am: a92810a189  -s ours am: 9be12f8986 am: 03b0f5c3ec am: 7b8140652b  -s ours am: 9080d4462e am: 75c7391a41 am: f6361752ca am: 7586e03e06  -s ours
am: 4a3caefd6c

Change-Id: I46bfb961a022dc383510d9189b4de2dfa91dde9d

7 years agoMerge "Merge "DO NOT MERGE: Clean up when recycling a pid with a pending launch"...
Sudheer Shanka [Thu, 25 Aug 2016 23:49:16 +0000 (23:49 +0000)]
Merge "Merge "DO NOT MERGE: Clean up when recycling a pid with a pending launch" into lmp-mr1-dev am: 5e55214ab7 am: c8aedeeaf6 am: 26bb7bf86c  -s ours am: 86ac88ccdb am: 2490679d7e am: 2f664374fa am: bc5775c18b  -s ours" into nyc-dev
am: 555fbf30d2

Change-Id: I03d222633c7a276b889035faf900e2fa66f7289f

7 years agoMerge "DO NOT MERGE: Clean up when recycling a pid with a pending launch" into lmp...
Sudheer Shanka [Thu, 25 Aug 2016 23:49:14 +0000 (23:49 +0000)]
Merge "DO NOT MERGE: Clean up when recycling a pid with a pending launch" into lmp-mr1-dev am: 5e55214ab7 am: c8aedeeaf6 am: 26bb7bf86c  -s ours am: 86ac88ccdb am: 2490679d7e am: 2f664374fa am: bc5775c18b  -s ours
am: 6a9490f850

Change-Id: I51c3762d21c30d091d33e79b83b4f09dfdf72d19

7 years agoMerge "DO NOT MERGE: Clean up when recycling a pid with a pending launch am: b02862c2...
Amith Yamasani [Thu, 25 Aug 2016 23:49:03 +0000 (23:49 +0000)]
Merge "DO NOT MERGE: Clean up when recycling a pid with a pending launch am: b02862c2cf am: dd0be992c0 am: 117a383099  -s ours am: 368ae62e9d am: 1d513c845a am: 5eed3c9c38 am: a106b52180  -s ours" into nyc-dev
am: 4ee46e5b99

Change-Id: Ifb42c3e05317e63ed428e1f542a691dacfb187a8

7 years agoDO NOT MERGE: Clean up when recycling a pid with a pending launch am: b02862c2cf...
Amith Yamasani [Thu, 25 Aug 2016 23:49:01 +0000 (23:49 +0000)]
DO NOT MERGE: Clean up when recycling a pid with a pending launch am: b02862c2cf am: dd0be992c0 am: 117a383099  -s ours am: 368ae62e9d am: 1d513c845a am: 5eed3c9c38 am: a106b52180  -s ours
am: b6cc1acb63

Change-Id: I589b676604afc0e728d2aa7c7616f53698aec900

7 years agoMerge "docs: Fix typo" into nyc-dev
Mark Goldstein [Thu, 25 Aug 2016 23:48:49 +0000 (23:48 +0000)]
Merge "docs: Fix typo" into nyc-dev
am: 8d660eebad

Change-Id: I4df576fd0f070c4104ff83498eca20987c6a7b07

7 years agodocs: Fix typo
Mark Goldstein [Thu, 25 Aug 2016 23:48:46 +0000 (23:48 +0000)]
docs: Fix typo
am: 1c22ae296b

Change-Id: I9f7f4389583eedbae2df7554f974d49ebe4b9c1e

7 years agoMerge "resolve merge conflicts of 270947f to klp-modular-dev am: 76c4b2a7b6 -s ours...
Android Build Merger (Role) [Thu, 25 Aug 2016 23:41:48 +0000 (23:41 +0000)]
Merge "resolve merge conflicts of 270947f to klp-modular-dev am: 76c4b2a7b6  -s ours am: bbbb514bc9 am: 6a50270944 am: a0994c6d58 am: cdf70ba0a3 am: c2a760e68c am: 77dec89bb3 am: 203d1bee25 am: 7a46fac0cd" into nyc-dev

7 years agoMerge "Merge "DO NOT MERGE: Clean up when recycling a pid with a pending launch"...
Android Build Merger (Role) [Thu, 25 Aug 2016 23:41:39 +0000 (23:41 +0000)]
Merge "Merge "DO NOT MERGE: Clean up when recycling a pid with a pending launch" into lmp-dev am: 96052ea905  -s ours am: f368bdee06 am: f21534a288 am: dfc2d0a4bc  -s ours am: 603a69ffb4 am: 97194798ab am: c35a9fed39 am: 71933abbdc  -s ours" into nyc-dev

7 years agoMerge "DO NOT MERGE: Clean up when recycling a pid with a pending launch am: a92810a1...
Android Build Merger (Role) [Thu, 25 Aug 2016 23:41:30 +0000 (23:41 +0000)]
Merge "DO NOT MERGE: Clean up when recycling a pid with a pending launch am: a92810a189  -s ours am: 9be12f8986 am: 03b0f5c3ec am: 7b8140652b  -s ours am: 9080d4462e am: 75c7391a41 am: f6361752ca am: 7586e03e06  -s ours" into nyc-dev

7 years agoMerge "Merge "DO NOT MERGE: Clean up when recycling a pid with a pending launch"...
Android Build Merger (Role) [Thu, 25 Aug 2016 23:41:16 +0000 (23:41 +0000)]
Merge "Merge "DO NOT MERGE: Clean up when recycling a pid with a pending launch" into lmp-mr1-dev am: 5e55214ab7 am: c8aedeeaf6 am: 26bb7bf86c  -s ours am: 86ac88ccdb am: 2490679d7e am: 2f664374fa am: bc5775c18b  -s ours" into nyc-dev