Commit Graph

56327 Commits

Author SHA1 Message Date
Wale Ogunwale
439381fdbc Clear app token mAppStopped when app resumes.
am: 8d5a542f66

* commit '8d5a542f66beae774354038f15dd1afe7fcf754b':
  Clear app token mAppStopped when app resumes.
2016-03-04 03:08:16 +00:00
Wale Ogunwale
8d5a542f66 Clear app token mAppStopped when app resumes.
It is possible for an activity to be in the stopped state without
setting it's visiblility to false in window manager.
For example, the home acitivty behind the lock screen. Since the
lock screen isn't an activity it doesn't affect the visiblity set
of the home activity, so AM doesn't tell WM to hide the app token.
However, AM uses another channel to detect that the device is locked
and moves the activity into stopped state. WM on the other hand also
detects that the device is locked and hides the window surfaces of
all windows behind the lock screen. So, at this point AM has also
told WM that the activity is stopped. Once you unlock the screen
AM resumes the activity but doesn't report any visiblility changes to WM
since it's internal state didn't change. So, if you go from the home
activity to another app the home activity window will be destroyed
before the activity is stopped because mAppStopped is set to true.
We now set mAppStopped to false when the activity is resumed.

Bug: 27286867
Change-Id: Ic75456d30abd582fa44f932f5aeeb449950157ee
2016-03-03 18:59:26 -08:00
Steve McKay
1f1e4bd8d0 Merge "Make COLUMN_CAPACITY_BYTES public." into nyc-dev
am: 75b19dd208

* commit '75b19dd20843eebc5691eb1d2cdb794abb61693c':
  Make COLUMN_CAPACITY_BYTES public.
2016-03-04 02:16:58 +00:00
Steve McKay
75b19dd208 Merge "Make COLUMN_CAPACITY_BYTES public." into nyc-dev 2016-03-04 02:12:02 +00:00
Keisuke Kuroyanagi
22e01d5611 Merge "Refresh action mode always when selection is modified." into nyc-dev
am: bd4b217a28

* commit 'bd4b217a289edca382b63f2bf5d1dd2017e9cf2e':
  Refresh action mode always when selection is modified.
2016-03-04 00:57:48 +00:00
Keisuke Kuroyanagi
bd4b217a28 Merge "Refresh action mode always when selection is modified." into nyc-dev 2016-03-04 00:53:59 +00:00
Adam Lesinski
732112e37e Merge "Move the guts of Resources to ResourcesImpl" into nyc-dev
am: c4dd2e7d52

* commit 'c4dd2e7d525fc41081ab9138535cd1cf153c4bc6':
  Move the guts of Resources to ResourcesImpl
2016-03-04 00:21:18 +00:00
Adam Lesinski
c4dd2e7d52 Merge "Move the guts of Resources to ResourcesImpl" into nyc-dev 2016-03-04 00:16:47 +00:00
Roozbeh Pournader
f144fc50a7 Merge "Unhide LocaleList.getAdjustedDefault()" into nyc-dev
am: fa207d6097

* commit 'fa207d609719712904dc9c565f836c0489c6447b':
  Unhide LocaleList.getAdjustedDefault()
2016-03-04 00:16:46 +00:00
Roozbeh Pournader
fa207d6097 Merge "Unhide LocaleList.getAdjustedDefault()" into nyc-dev 2016-03-03 23:46:57 +00:00
Keisuke Kuroyanagi
dfd1beda70 Merge "Supress SuggestionPopup for original field." into nyc-dev
am: c1cd17f918

* commit 'c1cd17f91843decf8e8ced6546cbbd634798c525':
  Supress SuggestionPopup for original field.
2016-03-03 23:43:41 +00:00
Keisuke Kuroyanagi
c1cd17f918 Merge "Supress SuggestionPopup for original field." into nyc-dev 2016-03-03 23:34:51 +00:00
Todd Kennedy
c989b5b109 Merge "Fix javadoc" into nyc-dev
am: 39428c1337

* commit '39428c1337e007f393780546d80e5201b68f9943':
  Fix javadoc
2016-03-03 23:34:23 +00:00
Todd Kennedy
39428c1337 Merge "Fix javadoc" into nyc-dev 2016-03-03 23:30:10 +00:00
Felipe Leme
6bff65f657 Merge "Created a firewall chain for power save mode." into nyc-dev
am: 578f19453a

* commit '578f19453a27102358877a1f61076ad1e4ea5ca9':
  Created a firewall chain for power save mode.
2016-03-03 23:29:55 +00:00
Todd Kennedy
dfa93abf2f Fix javadoc
Make referenced constants @SystemApi and change argument name to
match its actual meaning.

bug: 25441401
Change-Id: I4277799b95f394edb4305be05f57437717a86691
2016-03-03 15:24:33 -08:00
Felipe Leme
578f19453a Merge "Created a firewall chain for power save mode." into nyc-dev 2016-03-03 23:20:29 +00:00
Roozbeh Pournader
5a06c663b5 Unhide LocaleList.getAdjustedDefault()
Apps/libraries/widgets that wish to display text their own way (think
WebView/Chrome) or do some resource management themselves should be
able to use LocaleList.getAdjustedDefault(), the same way we use it
in Paint and Resources.

Bug: 26988869
Change-Id: I4b6aac7adb5da15459dca92574923f33f0702433
2016-03-03 14:20:52 -08:00
George Mount
2c141416a2 Merge "Remove animation listener while paused." into nyc-dev
am: 7d09ca79f1

* commit '7d09ca79f158e1fc48a4531b027a5dc549c84084':
  Remove animation listener while paused.
2016-03-03 22:03:34 +00:00
Todd Kennedy
75c1fb0f48 Merge "Splits without restart" into nyc-dev
am: e8498cd006

* commit 'e8498cd0066113068f2b0294144837546f213bd1':
  Splits without restart
2016-03-03 21:52:59 +00:00
Robert Carr
10312fdfc6 Merge "Reimplement PIP animation to not use drag resizing." into nyc-dev
am: adef831761

* commit 'adef831761017d6d84d7bd4a388714a04fb73d66':
  Reimplement PIP animation to not use drag resizing.
2016-03-03 21:50:11 +00:00
Robert Carr
de3d71955b Merge "Fix pinned stack frame computation." into nyc-dev
am: acd7a22cd7

* commit 'acd7a22cd7fe1c2d1a1ba6ed8e97e4e21dd31a1d':
  Fix pinned stack frame computation.
2016-03-03 21:44:08 +00:00
George Mount
7d09ca79f1 Merge "Remove animation listener while paused." into nyc-dev 2016-03-03 21:38:25 +00:00
Ji Yang
20771666db Merge "New CarrierMessagingService API for sms filtering" into nyc-dev
am: 456b9620f0

* commit '456b9620f0bbd91adf18a4f3e1cf8b1ee21faa5c':
  New CarrierMessagingService API for sms filtering
2016-03-03 21:37:01 +00:00
Steve McKay
7542f751e3 Make COLUMN_CAPACITY_BYTES public.
So providers can tell us total capacity.

Change-Id: Id990c417fcae4c6beee3e09dcb633b22e875e08f
2016-03-03 13:35:30 -08:00
Todd Kennedy
e8498cd006 Merge "Splits without restart" into nyc-dev 2016-03-03 21:34:57 +00:00
Rob Carr
adef831761 Merge "Reimplement PIP animation to not use drag resizing." into nyc-dev 2016-03-03 21:23:55 +00:00
Rob Carr
acd7a22cd7 Merge "Fix pinned stack frame computation." into nyc-dev 2016-03-03 21:23:01 +00:00
Ji Yang
456b9620f0 Merge "New CarrierMessagingService API for sms filtering" into nyc-dev 2016-03-03 21:10:46 +00:00
Ji Yang
a8c9c6c593 New CarrierMessagingService API for sms filtering
Add a new sms filtering method to let the carrier app tell
the platform to keep the message while keep it invisible to
the end user.

BUG: 27292180
Change-Id: I306a7dbde6dcb9929e358b3d1bbda9807ef35943
2016-03-03 13:07:13 -08:00
Seigo Nonaka
e40ab5d564 Merge "Fix unexpected ellipsize for long suggestion text." into nyc-dev
am: 71208d6f7b

* commit '71208d6f7b1a56dd6a1af101a65c944109a2bbb4':
  Fix unexpected ellipsize for long suggestion text.
2016-03-03 20:47:33 +00:00
Seigo Nonaka
71208d6f7b Merge "Fix unexpected ellipsize for long suggestion text." into nyc-dev 2016-03-03 20:20:45 +00:00
Robert Carr
0d00c2e25b Reimplement PIP animation to not use drag resizing.
When using drag resizing it is difficult to keep big surface
surfaces (e.g. main app windows) and child windows in sync
as we resize. Furthermore it's difficult to resize child windows
quick enough to achieve more than a few frames a second as we have
to propagate through the client UI thread. Our new implementation
uses window scaling.

Bug: 26454664

Change-Id: Iac96619cefc075b1412cfeba3d3c9bcd7ce22f52
2016-03-03 12:00:58 -08:00
Robert Carr
e627558fef Fix pinned stack frame computation.
We want to compute the frames for pinned like we do for freeform
as we are not constraining layout to the suggested display area by the
PhoneWindowManager. Also update applyGravityAndUpdateFrame
to not clip frames to the display for child windows. In the case
of computeFrameLw this would not be a problem as we would then
go on to overwrite mFrame anyway, but in the case of repositionChild
it could create issues (where we have applyGravityAndUpdateframe without
compute frame).

Bug: 26454664
Change-Id: I6fd4c9f37060d51003d041566368edd2b9eb7afd
2016-03-03 11:51:44 -08:00
Dianne Hackborn
623ebce5fb Merge "Add APIs to find out the time when a process was created." into nyc-dev
am: ef1971ffc5

* commit 'ef1971ffc505f75ca71f7ba78d52fb3ed323fa16':
  Add APIs to find out the time when a process was created.
2016-03-03 19:50:28 +00:00
Dianne Hackborn
ef1971ffc5 Merge "Add APIs to find out the time when a process was created." into nyc-dev 2016-03-03 19:47:56 +00:00
Steve McKay
f3322fccfa Merge "Show proper icons for SD and USB attached storage." into nyc-dev
am: eef85e0c02

* commit 'eef85e0c02a28b610b4611071749baf48ba67e2f':
  Show proper icons for SD and USB attached storage.
2016-03-03 19:43:27 +00:00
Steve McKay
eef85e0c02 Merge "Show proper icons for SD and USB attached storage." into nyc-dev 2016-03-03 19:39:18 +00:00
Steve McKay
ba23e54d26 Show proper icons for SD and USB attached storage.
Use USB icon for MTP devices.

Bug: 26883880
Change-Id: I8ce85ffc915a012dca79a5de1cc7c74361776792
2016-03-03 10:58:36 -08:00
Siyamed Sinir
7919b1f7e5 Merge "TextView should fade edges according to text." into nyc-dev
am: 1ca7c80844

* commit '1ca7c808447737fb38330a013dae5ab21deea9b9':
  TextView should fade edges according to text.
2016-03-03 18:52:21 +00:00
Siyamed Sinir
f1038a8995 Merge "Email address autolink regex updates." into nyc-dev
am: 84d0f8775b

* commit '84d0f8775b2d19597e2a2a29dedcdf93ca613d1e':
  Email address autolink regex updates.
2016-03-03 18:49:21 +00:00
Siyamed Sinir
ea87a00927 Merge "Update EditText.setEllipsize JavaDoc" into nyc-dev
am: 15dfbdd0ea

* commit '15dfbdd0eaf266c49aac07ba127ad28fa1945c95':
  Update EditText.setEllipsize JavaDoc
2016-03-03 18:47:21 +00:00
Siyamed Sinir
1ca7c80844 Merge "TextView should fade edges according to text." into nyc-dev 2016-03-03 18:43:23 +00:00
Siyamed Sinir
84d0f8775b Merge "Email address autolink regex updates." into nyc-dev 2016-03-03 18:42:59 +00:00
Siyamed Sinir
15dfbdd0ea Merge "Update EditText.setEllipsize JavaDoc" into nyc-dev 2016-03-03 18:42:44 +00:00
Adam Powell
d50e0e2e28 Merge "Fix crash for showing linker errors for apps with no label" into nyc-dev
am: f08b7b3698

* commit 'f08b7b3698e09d0aee438108b6a91e92fd805ccd':
  Fix crash for showing linker errors for apps with no label
2016-03-03 17:08:21 +00:00
Felipe Leme
011b98f93a Created a firewall chain for power save mode.
When power-save mode was first implemented, there were no firewall rules
on netd, so the solution was to make all network interface metered and
re-use the bw_penalty_box chain.

This change removes that workaround by creating a explicit fw_powersave
chain, whose behavior is similar to fw_dozable (in fact, it reuses some
of its code); such change not only makes network restrictions on
power-save mode simpler, but it also allows to optimze how the restrict
network rules are changed (which will be done in a separate change).

BUG: 27127112
BUG: 26685616
Change-Id: I7f7a7b1c1855e916c6651ad90da29fe187a7bea2
2016-03-03 09:05:18 -08:00
Adam Powell
f08b7b3698 Merge "Fix crash for showing linker errors for apps with no label" into nyc-dev 2016-03-03 17:04:23 +00:00
Adam Powell
d93f3b10e2 Fix crash for showing linker errors for apps with no label
Use ApplicationInfo#loadLabel to provide the standard fallback chain
of strings to identify an app instead of getString on the raw label
resource id, which will throw a NotFoundException if 0.

Bug 27469189

Change-Id: I344273c600f029361f3accfe5d91b0d332635b3d
2016-03-03 08:43:37 -08:00
George Mount
a06b3f19d4 Remove animation listener while paused.
Bug 27418573

While an animator was paused, it continued to receive
Choreographer callbacks. This has been changed now so
that after the first callback, it is removed.

Change-Id: If73483404b38f1f354a63fc98d07696f442987e6
2016-03-03 08:12:58 -08:00