Commit Graph

17770 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
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
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
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
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
Makoto Onuki
82c64a485a Merge "Remove ShortcutManager" into nyc-dev
am: 26edcba2c9

* commit '26edcba2c950701ff2dd8794687552bc37e4dfc8':
  Remove ShortcutManager

Change-Id: I4b99a5fe6d73400070ba5829573255283c7b7a5c
2016-05-12 16:36:06 +00:00
Makoto Onuki
26edcba2c9 Merge "Remove ShortcutManager" into nyc-dev 2016-05-12 16:32:56 +00:00
Richard Uhler
d698bf64b2 Merge "Fix --reset argument to \'cmd package compile\'." into nyc-dev
am: e4a3e5e8f1

* commit 'e4a3e5e8f13c4290e3e4c5667bedcd66ce699e63':
  Fix --reset argument to 'cmd package compile'.

Change-Id: Ie171523d64aa8ecd38bba3067756f3736f4ae0ef
2016-05-12 15:17:36 +00:00
Richard Uhler
e4a3e5e8f1 Merge "Fix --reset argument to 'cmd package compile'." into nyc-dev 2016-05-12 15:13:04 +00:00
Jaewan Kim
9504c65986 Merge "Fix continous crash in WindowManager in boot" into nyc-dev
am: 927b6be3d9

* commit '927b6be3d960a42bbc75aacc8dcde792a1d564b4':
  Fix continous crash in WindowManager in boot

Change-Id: I78ae3c06ee5905c55adefa1c03391a25302c3c6a
2016-05-12 12:35:43 +00:00
Jaewan Kim
927b6be3d9 Merge "Fix continous crash in WindowManager in boot" into nyc-dev 2016-05-12 12:32:01 +00:00
Jaewan Kim
3328433f13 Fix continous crash in WindowManager in boot
Bug: 28728894
Change-Id: I660e2709a674eb4089dbb38173375491a87828db
2016-05-12 21:29:26 +09:00