34177 Commits

Author SHA1 Message Date
Pierre Imai
68fe236172 Merge "Remove an unnecessary InputStream and prevent leaking memory." into nyc-dev 2016-03-14 02:54:11 +00:00
Carlos Valdivia
83d036f497 Merge "Logging to KEY_INTENT security failure" into nyc-dev 2016-03-12 02:06:39 +00:00
Chris Tate
fcbe17e1e0 Merge "Once restored, the wallpaper needs to actually draw" into nyc-dev 2016-03-12 01:55:19 +00:00
Christopher Tate
41297ff82c Once restored, the wallpaper needs to actually draw
We now wait until both the wallpaper imagery and the metadata have
been restored [if present], and then explicitly regenerate the crop
from the source based on that.

Bug 27423845

Change-Id: I986efd13b6b73d25b5ab1215af516ccea3a5c609
2016-03-11 17:51:33 -08:00
Carlos Valdivia
6ede9c3d22 Logging to KEY_INTENT security failure
To help debugging we would like to know the targetPackageName and uid of
the KEY_INTENT that is being rejected.

Bug: 27598664
Change-Id: Idcf1eea82a96913947975b6fe3aa1e9c6e5109a7
2016-03-11 17:42:55 -08:00
Anthony Hugh
526cb5a26a Merge "Add system wide long-press back button functionality" into nyc-dev 2016-03-11 22:52:59 +00:00
Ruben Brunk
89db9dbedb Merge "Allow per-package exemptions for restricted AppOps" into nyc-dev 2016-03-11 22:48:38 +00:00
Anthony Hugh
34f09ca843 Add system wide long-press back button functionality
This CL adds long-press back button functionality as a system
intercepted keypress.

Incorporated in this is an update to clockwork overlays so that
long-press on back will launch ACTION_VOICE_ASSIST.

BUG: 27313719
BUG: 27427088
Change-Id: Iaff337dc50e0022d2392c19d095cec98563b1c7d
2016-03-11 14:44:09 -08:00
Ruben Brunk
29931bc684 Allow per-package exemptions for restricted AppOps
- When setting blanket user restrictions, per-package
  exemptions may be granted.
- Exempt the current active VrListenerService from the
  blanket restriction on drawing overlays while in VR mode.

Bug: 26775563
Change-Id: I14b17a126502c7905a970ad42d25d6dd600b86b1
2016-03-11 14:05:44 -08:00
Makoto Onuki
5fe29adc81 Merge "ShortcutManager refactor: per-user information class" into nyc-dev 2016-03-11 21:52:21 +00:00
Makoto Onuki
3f4b1ca97a ShortcutManager refactor: per-user information class
Bug 27548047

Change-Id: Id6de8bfbad6281daec5e89be85ba8b140b599268
2016-03-11 13:44:32 -08:00
Wale Ogunwale
207139291a Merge "Display home activity behind pinned activity that should return home" into nyc-dev 2016-03-11 20:18:56 +00:00
Wale Ogunwale
ef21335da7 Merge "Notify task changed listeners when a pinned activity is removed" into nyc-dev 2016-03-11 20:03:47 +00:00
Todd Kennedy
1374af2c7b Merge "Add minSdk to dumpsys" into nyc-dev 2016-03-11 19:26:37 +00:00
Todd Kennedy
89d60189cd Add minSdk to dumpsys
Bug: 27526333
Change-Id: I0148275013ebab899bcb63c07d71a840539c1863
2016-03-11 11:18:32 -08:00
Winson
44dbe294fb Fixing issue where screenshot notification remains non-dismissible.
- Ensure that we start the screenshot as a foreground service to reduce
  likelihood that it is killed while taking a screenshot.
- If the screenshot process times out or gets killed for any reason, 
  ensure that we update the notification with an appropriate error 
  message.

Bug: 27389179
Change-Id: I5007bda95538044bc753e4ceffd2f59a069c857b
2016-03-11 10:39:41 -08:00
Wale Ogunwale
89182d5b47 Notify task changed listeners when a pinned activity is removed
Bug: 27558494
Change-Id: I68573e5654f476e0b3027ad80d0e86496867f128
2016-03-11 10:38:36 -08:00
Makoto Onuki
d51b363c0d Merge "Fix caller validation on secondary user." into nyc-dev 2016-03-11 18:00:40 +00:00
Makoto Onuki
04efe9e5ff Merge "Test for ShortcutManager.updateShortcuts(), also" into nyc-dev 2016-03-11 18:00:18 +00:00
Wale Ogunwale
da4ba96ee4 Display home activity behind pinned activity that should return home
If we are pinning an activity whose task should return home, then move
the home stack forward so that the home activity is visible behind it
instead of the next task in the fullscreen stack.

Bug: 26697763
Change-Id: Iadb7f5453d4351bc4200bcc2feed0ab9fe41e530
2016-03-11 09:37:34 -08:00
Jorim Jaggi
95b69f8231 Merge "Add ability to swap docked/fullscreen stack" into nyc-dev 2016-03-11 12:02:38 +00:00
Yohei Yukawa
607c0a0a09 Merge "Persist isAsciiCapable attribute of additional subtypes." into nyc-dev 2016-03-11 09:02:22 +00:00
Yohei Yukawa
1e1a447000 Persist isAsciiCapable attribute of additional subtypes.
This was somehow missed in the previous commit [1] that added
isAsciiCapable attribute to InputMethodSubtype.

For devices from API level 14 to 23, IME developers might be able to
work around this issue by specifying "AsciiCapable" [2] in
imeSubtypeExtraValue, which is not coverted by CTS though.

  [1]: Ic3ace4b6e0432d56696bcbc0be336aec1dc744a5
       dc8abf6cee0bcf44e2cad8155f0c151105d46471
  [2]: I0bc9954f163a3ec38d08b9ba842a8a31176eb6a6
       8e303cc5dd4860b6050d5725ce60ca7e6fb00c7b

Bug: 27603986
Change-Id: Ifb6bc83e782ac05df180dfe0d689897d07441a0c
2016-03-10 23:46:07 -08:00
Rob Carr
756ac8e073 Merge "Do not enforce minimum size for pinned stack." into nyc-dev 2016-03-11 02:03:50 +00:00
Makoto Onuki
7a6a05f0cc Test for ShortcutManager.updateShortcuts(), also
... fix bugs

Bug 27548047

Change-Id: Ia55d35521912dcba2fb1bb9c20588a83d1a2d004
2016-03-10 18:01:06 -08:00
Pierre Imai
be12d76feb Remove an unnecessary InputStream and prevent leaking memory.
BUG: 27441906
Change-Id: Ib0ff36c0adc09e1f303a38e8355c84382cbc63fb
2016-03-11 10:45:03 +09:00
Makoto Onuki
3ee7f71d5f Fix caller validation on secondary user.
Bug 27548047

Change-Id: Ibf01bc0f9d3dc76cc23403bf076e2faa7d033234
2016-03-10 17:28:55 -08:00
Robert Carr
9c5867d8cd Do not enforce minimum size for pinned stack.
We don't need to enforce a minimum size for the tasks in
the pinned stack as the bounds are controlled by the system.

Bug: 27536840
Change-Id: I9ecb2ebd3792b2739d05e9f403fe0acba969e46a
2016-03-10 16:04:25 -08:00
Makoto Onuki
34d1c919fd Guard against null bitmap path
Bug 27548047

Change-Id: I7130652f5ae6f7ff6bd4ae6a3ace31986a49be30
2016-03-10 14:24:58 -08:00
Makoto Onuki
be4f470038 Merge "Refactor ShortcutService" into nyc-dev 2016-03-10 20:42:27 +00:00
Makoto Onuki
7abfe1b95b Merge "Fix crash-loop on wiped FBE device." into nyc-dev 2016-03-10 20:41:45 +00:00
Makoto Onuki
f3a572b5c0 Fix crash-loop on wiped FBE device.
Bug 27595678

Change-Id: I02708b3c9e5472c5548bda7e6e15189614056471
2016-03-10 12:28:38 -08:00
Zach Kuznia
9a5220866e Merge "Ensure AccessibilityGestureDetector only returns true when a callback returned true." into nyc-dev 2016-03-10 19:27:41 +00:00
Jorim Jaggi
d47e7e1176 Add ability to swap docked/fullscreen stack
Adds tap affordance that moves all tasks of the docked
stack into the fullscreen stack as well as moves the top task
of the fullscreen stack into the docked stack.

Also make sure not to trigger focus switch when tapping the divider
handle. For that, add a method so SysUI can specify the touchable
region which then gets excludes for the focus switch touch region.

Bug: 27358134
Change-Id: I34f39c53cacc0b9c00f87a792b88c3f64a5f61e1
2016-03-10 19:49:45 +01:00
Lifu Tang
4bffe89bef Merge "Checked the flag not set in the correct way" into nyc-dev 2016-03-10 18:30:09 +00:00
Lifu Tang
ccb448802b Checked the flag not set in the correct way
The previous macro always returns false after expansion. Fixed the problem, and
also added a mechanism to catch such kind of mistakes during compile time.

Change-Id: I6870dfa80a8cbbaa0e145ae00f09dd0d78cff157
2016-03-10 10:22:45 -08:00
Wale Ogunwale
d889511162 Merge "Fixed visibility of home stack behind translucent app activity." into nyc-dev 2016-03-10 18:20:46 +00:00
Paul Lawrence
d685353a9b Merge "Fix bug in new encryption API" into nyc-dev 2016-03-10 18:14:22 +00:00
Paul Lawrence
03128dceab Fix bug in new encryption API
Bug: 27583871
Change-Id: I372f0a6a411704dc57ca9bcc53c4c5a10b236772
2016-03-10 10:02:07 -08:00
Chris Wren
46820517e4 Merge "revert recent changes around system listener registrations" into nyc-dev 2016-03-10 17:39:52 +00:00
Chris Wren
b7c810957f revert recent changes around system listener registrations
also guard against the ranker calling the self-service registration functions.
"why do we even have that lever?"

Bug: 27577115
Change-Id: I8a01cfdd801320e53d56bcbf515b9ba17e677166
2016-03-10 11:41:10 -05:00
Oleksandr Peletskyi
655f1df89d Merge "Allow user to get his own icon." into nyc-dev 2016-03-10 16:09:06 +00:00
Michal Karpinski
2f79ae98af Tuning down wtf to warning for setting ro.device_owner property
This was logged to often, especially while running CTS hostside tests
and looked too scary to people.

Bug: 27230864
Change-Id: I9e81d9efe87b4aed18aa473be647c560ff9cfa0d
2016-03-10 15:00:08 +00:00
Oleksandr Peletskyi
cd6fa30fda Allow user to get his own icon.
Fixed behavior in order to let user without MANAGE_USERS permission
to obtain his own icon or any icon of the user's 'user group'.

BUG: 27583869
Change-Id: I71a86b0816db1d9c4543db375de504395a726a8d
2016-03-10 14:17:55 +01:00
Dianne Hackborn
839ff816a5 Merge "DO NOT MERGE: Add separate information about user whitelist." into nyc-dev 2016-03-10 01:46:03 +00:00
Dianne Hackborn
262ae5c8eb DO NOT MERGE: Add separate information about user whitelist.
Use this in the alarm manager to allow user whitelisted apps
to have free access to scheduling alarms.

Coming next: lifting sync/job restrictions.

Bug #26851107: Allow user whitelist apps more freedom

(Cherry-picked to nyc since it got lost in the branch from master.)

Change-Id: I4dc9f07514627ebdb6b6eff7c7a749f2c51a3797
2016-03-09 17:39:40 -08:00
Daichi Hirono
05133ad090 Merge "Skip MTP launch notification for devices having FEATURE_AUTOMOTIVE." into nyc-dev 2016-03-10 01:35:28 +00:00
Makoto Onuki
41066a61b9 Refactor ShortcutService
Move PackageShortcuts to the top level.

Change-Id: If19a7dd979f8697e54a45c3aa654bad235f6259d
2016-03-09 16:56:39 -08:00
Joe Onorato
04a72a2a51 Merge "Add an API for apps to get their System Health / Battery Stats data." into nyc-dev 2016-03-10 00:52:03 +00:00
Makoto Onuki
495d124a67 Merge "ShortcutManaegr: load config from settings, also..." into nyc-dev 2016-03-10 00:18:36 +00:00