Commit Graph

37031 Commits

Author SHA1 Message Date
Jorim Jaggi
c38966194b Don\'t allow any app to specify rotation unless in home task
am: 0f6a6c4bc1

* commit '0f6a6c4bc15fee726ef9aeb0d99b1204767f431d':
  Don't allow any app to specify rotation unless in home task

Change-Id: Id53a86c7c4878e90021d0d82172a1fbb49cc13fe
2016-05-13 21:26:52 +00:00
Jorim Jaggi
0f6a6c4bc1 Don't allow any app to specify rotation unless in home task
The previous logic was racy/buggy in a sense so that the non-home app
could still force the orientation when the divider was still minimized.
The logic is cleaned up so only the home task can force the orientation
in multi-window.

Change-Id: I9eccf86d9fa442375d6eca400cb6ac0815c9fa10
Fixes: 28675152
2016-05-13 21:17:53 +00:00
Chong Zhang
03da19d43a Merge "Update stack bounds for fullscreen if rotated after updateDisplayInfo" into nyc-dev
am: 918084e9ae

* commit '918084e9ae9620c745e4d6212f6648771051e706':
  Update stack bounds for fullscreen if rotated after updateDisplayInfo

Change-Id: Id63563c3c8ea8233e3e4d5204d3eb7ca33cf5db5
2016-05-13 20:54:39 +00:00
Wale Ogunwale
c33568f1f8 Merge "Fixed some issues with fullscreen dimming" into nyc-dev
am: e208bd4cbe

* commit 'e208bd4cbea7468c989d25ef582e5a9ed7ecabf1':
  Fixed some issues with fullscreen dimming

Change-Id: Ib215528bf25972ef0bac0217029a67721fd69fde
2016-05-13 20:52:01 +00:00
Chong Zhang
918084e9ae Merge "Update stack bounds for fullscreen if rotated after updateDisplayInfo" into nyc-dev 2016-05-13 20:48:32 +00:00
TreeHugger Robot
e208bd4cbe Merge "Fixed some issues with fullscreen dimming" into nyc-dev 2016-05-13 20:42:21 +00:00
Chong Zhang
ccc335cfc7 Update stack bounds for fullscreen if rotated after updateDisplayInfo
Rotation could change again after updateDisplayInfo is called. We
need to set stack bounds even for fullscreen stacks in this case.
Otherwise the bounds will be incorrect until it's rotated again.

bug: 28611814
Change-Id: I31289524a9ceacaaaa66924e9bf6cbe88fd83f99
2016-05-13 11:07:22 -07:00
xu.peng
5676ca8978 Merge "Fix "TelephonyRegistry notifies wrong data status"" am: 3b2f202599
am: ff3a7571c7

* commit 'ff3a7571c78796b9f0ffdbb324f2a3d4895cede1':
  Fix "TelephonyRegistry notifies wrong data status"

Change-Id: I8868f7fc6eafcb710b33c84f63f602e7e71a64c3
2016-05-13 17:57:32 +00:00
xu.peng
ff3a7571c7 Merge "Fix "TelephonyRegistry notifies wrong data status""
am: 3b2f202599

* commit '3b2f202599bca3da369667bf69ab39df9d8d894d':
  Fix "TelephonyRegistry notifies wrong data status"

Change-Id: I2d9ecd7132c8028c79b008b737b4b7d6d87211b3
2016-05-13 17:54:56 +00:00
Treehugger Robot
3b2f202599 Merge "Fix "TelephonyRegistry notifies wrong data status"" 2016-05-13 17:46:41 +00:00
Paul Jensen
919306690a Merge "Use APF program to drop non-IP non-ARP broadcasts" into nyc-dev
am: 90ba8cf379

* commit '90ba8cf3799fa60138d212e092cc7f0a5e79374f':
  Use APF program to drop non-IP non-ARP broadcasts

Change-Id: I17fd739c51c45ab8152b1ebf1a108fb74cf85ef2
2016-05-13 17:23:30 +00:00
Felipe Leme
e90dee0077 Merge "Fixed connectivity state in some power saving scenarios." into nyc-dev
am: 25018d41f4

* commit '25018d41f482fe21a45eb2e739f22dc7cc937428':
  Fixed connectivity state in some power saving scenarios.

Change-Id: I7ebe3864657d2147034ffae400312e94deb5ef35
2016-05-13 17:23:24 +00:00
Adam Powell
ac3f24fabd Merge "Show package icon/label for resolved package-targeted implicit intents" into nyc-dev
am: e89dc40706

* commit 'e89dc40706f325e039de7dd6714223908dfb9b17':
  Show package icon/label for resolved package-targeted implicit intents

Change-Id: I178045e372dd962383fbc6d26fe7b99b20f6cf88
2016-05-13 17:17:48 +00:00
Paul Jensen
90ba8cf379 Merge "Use APF program to drop non-IP non-ARP broadcasts" into nyc-dev 2016-05-13 17:14:47 +00:00
TreeHugger Robot
25018d41f4 Merge "Fixed connectivity state in some power saving scenarios." into nyc-dev 2016-05-13 17:14:13 +00:00
Fyodor Kupolov
bcdbdaad76 Merge "Call isUserUnlockingOrUnlocked with cleared identity" into nyc-dev
am: b7bd2e645d

* commit 'b7bd2e645db390373d4f0847c7637d06faa1d4da':
  Call isUserUnlockingOrUnlocked with cleared identity

Change-Id: I2b80b409fb8f5829813aec7485d97fcf88ab4959
2016-05-13 17:12:04 +00:00
TreeHugger Robot
e89dc40706 Merge "Show package icon/label for resolved package-targeted implicit intents" into nyc-dev 2016-05-13 17:11:14 +00:00
Fyodor Kupolov
b7bd2e645d Merge "Call isUserUnlockingOrUnlocked with cleared identity" into nyc-dev 2016-05-13 17:07:59 +00:00
Andreas Gampe
9f768c3436 Merge "System server: Add Bluetooth to native processes" into nyc-dev
am: 3264b60738

* commit '3264b60738b0c8c611334d448aca4480eaffc1cc':
  System server: Add Bluetooth to native processes

Change-Id: Ia2f3acf70364886cb4a088e716bf480550779cd8
2016-05-13 16:31:45 +00:00
Andreas Gampe
3264b60738 Merge "System server: Add Bluetooth to native processes" into nyc-dev 2016-05-13 16:27:58 +00:00
Adam Powell
86100d18ad Show package icon/label for resolved package-targeted implicit intents
If we're going to show metadata about a resolved implicit intent that
is targeted to a single package with multiple potential targets,
populate the ResolveInfo with the label and icon of the target
package's ApplicationInfo and set resolvePackageName. This helps use
cases such as EXTRA_INITIAL_INTENTS in ChooserActivity, where
sometimes apps set target packages but not components.

Bug 28739056

Change-Id: I8070d341fccc139463c5ac8d66db45fce02252e5
2016-05-13 08:34:37 -07:00
Paul Jensen
c6154624f2 Merge "ApfFilter unit test" into nyc-dev
am: b742495cf5

* commit 'b742495cf54c09c5780c7c22f4d389b92e22449d':
  ApfFilter unit test

Change-Id: I97bdf703c24c8c3008113c09f5f441cd1d74bc81
2016-05-13 14:38:13 +00:00
Paul Jensen
b742495cf5 Merge "ApfFilter unit test" into nyc-dev 2016-05-13 14:33:25 +00:00
Erik Kline
2ac64d96e4 Support IPv4-only and IPv6-only provisioning
am: 2ec229a0ed

* commit '2ec229a0ed5a462c20549d86bda5f2de9ec2858e':
  Support IPv4-only and IPv6-only provisioning

Change-Id: I588ce57d75d14d43221851027c52ea316d083eac
2016-05-13 05:59:19 +00:00
xu.peng
9071ced8b0 Fix "TelephonyRegistry notifies wrong data status"
TelephonyRegistry should notify data status by correct subId,
otherwise in some case, SIM1 data status will be overried
by SIM2 data status.
Such as screen on/off action.If in fact SIM1 is data connected
to download something, but SIM2 is not,then sreen off,
both SIM1 and SIM2 will be notified to update data status.
Then SIM1 data status will be overried by SIM2 to be "no data
connected", before SIM1 data downloading is finished,SIM1
will not be able to show "data conneced" status.

Change-Id: Ia7d0767b3b4520294ee0d024903f7522cb0a0110
2016-05-13 05:38:21 +00:00
Erik Kline
2ec229a0ed Support IPv4-only and IPv6-only provisioning
Bug: 28437662
Change-Id: I95b2d6eeb48cc526c8e6e015c5130ff9141fb898
2016-05-13 13:21:25 +09:00
Chong Zhang
8f6a9ca5e2 Merge "Fix a flicker when window is removed during entering animation" into nyc-dev
am: a285fdeb16

* commit 'a285fdeb160e822a2e1fe2fb6bd80ce91afcf181':
  Fix a flicker when window is removed during entering animation

Change-Id: If69708ffa782088d9d50064a110d75ca2c81c066
2016-05-13 02:03:51 +00:00
Chong Zhang
a285fdeb16 Merge "Fix a flicker when window is removed during entering animation" into nyc-dev 2016-05-13 01:58:52 +00:00
Keisuke Kuroyanagi
727b2bcc92 Merge "Adjust divider when IME height is changed." into nyc-dev
am: 36d1296cf4

* commit '36d1296cf4f074599015b424161402f9b07da8ab':
  Adjust divider when IME height is changed.

Change-Id: I2a4d8a16028350c6634ce5f11eca644019325ce1
2016-05-13 01:53:55 +00:00
Keisuke Kuroyanagi
36d1296cf4 Merge "Adjust divider when IME height is changed." into nyc-dev 2016-05-13 01:46:10 +00:00
Wale Ogunwale
29bfbb878d Fixed some issues with fullscreen dimming
- Always dim home stack and task fullscreen. The home stack could be
in split-screen mode, but we still want to dim dialogs that are
associated with the stack or task in fullscreen. The dialogs are not
really activities, but they are associated with the home stack for
things like dimming. Don't ask me why...
- Update the fullscreen dim layer bounds anytime the dim layer is
adjusted so we always have up-to-date bounds after rotation.

Bug: 28575624
Change-Id: I805c771153a2d25fb199bd9987bbf78a5967f6b9
2016-05-12 18:23:16 -07:00
Chong Zhang
8e4bda9e0f Fix a flicker when window is removed during entering animation
When animation is started with saved surfaces, app may decide to
remove one of the child windows during early animation and replace
it with a new window. This causes the app below (usually Recents)
to show through for one or more frames.

If we started animation early with a window, delay removal of
that window until the app is allDrawn in the "traditional sense"
(i.e. allDrawn without using any saved surfaces).

bug: 28742353
Change-Id: I4ef663a947b737aae96c3ccfe13a9f4c1d0567f0
2016-05-12 16:58:01 -07:00
Chong Zhang
c624b78907 Merge "Fix replacing window timeouts" into nyc-dev
am: a63e1325b5

* commit 'a63e1325b595d84dea7d33cb2e2c149acb326204':
  Fix replacing window timeouts

Change-Id: Iea960b772b0eacf6e6bc37fe33e2dfcd554fd3c8
2016-05-12 23:55:51 +00:00
Keisuke Kuroyanagi
19d9a8f476 Adjust divider when IME height is changed.
Previously, divider was adjusted for IME when IME window visibility is
changed. However, IME size can be changed without changing IME window
visibility. For example, when hardware keyboard key is pressed to show
emoji layout.
This CL checks if IME height has been changed and adjust divider position
properly.

Bug: 28389933
Change-Id: I9a561bd4796a0513c8b5c493884946883f160907
2016-05-12 16:49:02 -07:00
Chong Zhang
a63e1325b5 Merge "Fix replacing window timeouts" into nyc-dev 2016-05-12 23:48:36 +00:00
Chong Zhang
32de365bd8 Fix replacing window timeouts
Do not post app token with the timeout message, instead put the token
in a list and post empty message only.

bug: 28744782
Change-Id: If809d8ee16bcc31067f25ae5696b62d09ea4b864
2016-05-12 16:01:53 -07:00
Andreas Gampe
cf9e79b901 System server: Add Bluetooth to native processes
Add Bluetooth service to the interesting native processes to dump
during watchdog abort and ANRs. This may help if the process gets
wedged and cannot react normally to Java-side ANR dump requests.

Bug: 28658141
Change-Id: I788b7c299cc95748fdcddaa2be1d0e2d78f25ef1
2016-05-12 15:45:00 -07:00
Philip Cuadra
0513394f85 Merge "Pinner service for pinning files into memory" into nyc-dev
am: b41088b4df

* commit 'b41088b4dfa8b077541cd3be69c51bd4bba4e938':
  Pinner service for pinning files into memory

Change-Id: I6dc3f40dbbb5e327976f665de1451eb1d416ee2a
2016-05-12 22:04:26 +00:00
Philip Cuadra
b41088b4df Merge "Pinner service for pinning files into memory" into nyc-dev 2016-05-12 21:55:29 +00:00
Chris Wren
7be0d1ca4e Merge "fix filter for listeners that are not the rocket" into nyc-dev
am: 2e35847a8f

* commit '2e35847a8f9557b59198fc053524eee0b965aab8':
  fix filter for listeners that are not the rocket

Change-Id: I00092556795bb085060508cb18f62fbeecf42d09
2016-05-12 21:08:56 +00:00
TreeHugger Robot
2e35847a8f Merge "fix filter for listeners that are not the rocket" into nyc-dev 2016-05-12 21:05:37 +00:00
Philip Cuadra
7bd0fdd639 Pinner service for pinning files into memory
Pin key files into memory to prevent having to fetch from flash
after boot.  Improves system performance by preventing page cache
thrash.  Retrieves files from a device-specific overlay to allow
specialization.

bug 28251566

Change-Id: I8532f52bd70271794dd7576976d13a524849ce7b
2016-05-12 13:12:20 -07:00
Robert Carr
7c98d0211f Merge "Don\'t notify windows of resize during PIP animation." into nyc-dev
am: 562ea5ceb5

* commit '562ea5ceb5e10a3ea4dfd3825b2d639fbc6506b0':
  Don't notify windows of resize during PIP animation.

Change-Id: Ib2c41bf5097755419ceb56aa62982ee5963d7316
2016-05-12 19:42:21 +00:00
TreeHugger Robot
562ea5ceb5 Merge "Don't notify windows of resize during PIP animation." into nyc-dev 2016-05-12 19:35:25 +00:00
Felipe Leme
781ba14af2 Fixed connectivity state in some power saving scenarios.
NetworkPolicyManagerService (NPMS) manages 4 type of network restriction
when apps are running on background:

- Data Saver Mode (data usage restriction on metered-networks)
- Battery Saver Mode (power restriction on all networks)
- Doze Mode (power restriction on all networks)
- App Idle (power restriction on all networks)

These restrictions affects 2 parts of the system:

- Internal framework state on NPMS which is propagated to other internal
  classes.
- External firewall rules (managed by netd).

Although each of the power-related restrictions have their own external firewall
rules, internally apps are whitelisted to them through the same
whitelist, and the current code is only updating the internal state (and
notifying the internal listeners) when Battery Saver Mode is on.

As a consequence of this problem, there are scenarios where an app
correctly does not have internet access (because the firewall rules are
properly set), but the NetworkInfo state returns the wrong state (like
CONNECTED / CONNECTED).

This CL fixes this problem by splitting the power-related logic from
updateRulesForRestrictBackgroundLocked() into its own
method (updateRulesForPowerRestrictionsLocked()), and making sure such
method is called whenever the firewall rules are updated.

Externally to this change, the CTS tests were also improved to verify
the apps get the proper connection state; it can be verified by running:

cts-tradefed run commandAndExit cts -m CtsHostsideNetworkTests \
    -t com.android.cts.net.HostsideRestrictBackgroundNetworkTests

BUG: 28521946
Change-Id: Id5187eb7a59c549ef30e2b17627ae2d734afa789
2016-05-12 12:33:23 -07:00
Robert Carr
00c4404576 Merge "Fix surfaceInset adjustment." into nyc-dev
am: 663330a325

* commit '663330a325c4b324eb19cdb4f83189f342e01060':
  Fix surfaceInset adjustment.

Change-Id: I648b66bc468cb7d9e48126a69ca44af3c9116614
2016-05-12 19:01:54 +00:00
TreeHugger Robot
663330a325 Merge "Fix surfaceInset adjustment." into nyc-dev 2016-05-12 18:57:58 +00:00
Chris Wren
0c4eeb4985 fix filter for listeners that are not the rocket
Bug: 28664037
Change-Id: Id1e4b243ed7423dbd2d4a8ead829cba9b20f30cd
2016-05-12 14:54:44 -04:00
Robert Carr
e4874a1a4d Don't notify windows of resize during PIP animation.
We are notifying windows of resize as the frame moves (even though the
size does not change) during the pinned animation, confusing and
upsetting the client. We do want to notify it of the one resize
at the beginning or end of the animation, so we can't just block
reportResized on bounds animating. Luckily the other area that adds
windows to reportResized (Task) is smart enough to only do so if the
size has actually changed and not just movement, so we let those reports
go through and block ones initiating from here (which doesn't perform
a check that the size has actually changed).

Bug: 28559097
Change-Id: If1f983e7cc875175ce1d098c385478a9922dea67
2016-05-12 11:26:47 -07:00
Phil Weaver
14a9987d99 Merge "Don\'t disrupt a11y state when user is unlocked." into nyc-dev
am: 18e9f13b24

* commit '18e9f13b24867fb4a41391c5512376db413449a8':
  Don't disrupt a11y state when user is unlocked.

Change-Id: Ic5ad0d452e5296edecec98bdfc08b6ea8ad3c9da
2016-05-12 18:07:35 +00:00