214 Commits

Author SHA1 Message Date
Dan Sandler
d52ea0c218 Show "Android System" instead of "System UI" in screenshot notifications.
Bug: 26517701
Change-Id: I0f4a58531066c49fed90bcdd78c92a4f212ada3b
2016-04-23 14:43:57 +00:00
Andrei Stingaceanu
0bf096f1b4 Keyboard shortcuts: dismiss when activities start via shortcut
* introduced a new intent DISMISS_KEYBOARD_SHORTCUTS and
and new public API in Activity (which sends a broadcast
to KeyboardShortcutsReceiver) which applications can
use to dismiss the keyboard shortcuts.

* plumbing and implementation for a new call to dismiss
keyboard shortcuts from PhoneWindowManager and used it:
** when starting activities invoked via Search+key
** when starting activities invoked via META
** when starting activities via application launch keys

* removed unused variable in
Activity#onProvideKeyboardShortcuts

Note that for apps started via touch (aka non-shortcut)
like tapping the Settings gear icon from the notification
bar the menu is not automatically dismissed.

Bug: 28012198
Change-Id: I83a8d4f342bb8a08115a648648834d0d2bac19fd
2016-04-22 16:57:25 +01:00
Jason Monk
8af20ef6a8 Merge "The return and fixing of demo mode" into nyc-dev 2016-04-12 18:53:20 +00:00
Jason Monk
98d7c7a84d The return and fixing of demo mode
Change-Id: I2bcf3435b92c80b4ab3c46cba02902820c942c7c
Fixes: 27919212
2016-04-12 13:08:31 -04:00
Daniel Sandler
064e612779 Merge changes from topic 'vr-fixes' into nyc-dev
* changes:
  Suppress immersive mode confirmation in VR mode.
  Suppress heads-up notifications in VR mode.
2016-04-12 14:57:41 +00:00
Dan Sandler
dc34df5d31 Suppress heads-up notifications in VR mode.
Fixes: 27884853
Change-Id: I14d2dd66bea5b18e4d710c74d443e88cfbb3c028
2016-04-11 12:42:14 -04:00
Clara Bayarri
eb3c2d3e63 Expose the Keyboard Shortcuts Helper in Activity
This allows apps to trigger it from their own menus

Bug: 27811273
Change-Id: I028caa5a88bb0e1c51238db28bb496293b78f90b
2016-04-07 13:35:23 +01:00
Winson Chung
fef8cfc3f0 Merge changes I1bad66e2,Ibc93597e,Id985fc28 into nyc-dev
* changes:
  Remove the highlight on the overview button in the screen pinning dialog
  Fixing bad regression in alt-tab layout.
  Workaround to ensure that a SystemUI process is always available.
2016-04-06 17:50:31 +00:00
Winson
3c2c34bb03 Workaround to ensure that a SystemUI process is always available.
- For a non-primary user, this CL will ensure that the SystemUI process
  is started when we are switched to the user.  This allows us to
  maintain our current user-management model for Recents, which depends
  on this process for preloading and state management.

Bug: 27175589
Change-Id: Id985fc2876e6daf06f303b44c0f9d1d3fd377842
2016-04-05 15:54:59 -07:00
Jaewan Kim
10a86910aa PIP: Fix regressions caused by previous commit a0d4d25
This includes two fixes
- Restore PIP location when PIP menu is closed.
- Prevent PIP from moving to fullscreen when it's resized directly
  via ActivityManager with animation.

These are regressions caused by
a0d4d25 PIP: Apply the animation spec for the PIP in Recents

Bug: 27540465
Change-Id: Id5b131faa3052a809138ab058bcfe65ce6a820b7
2016-04-06 07:10:18 +09:00
Jorim Jaggi
2adba07d75 Show a scrim activity if task is not resizable
Add a callback to TaskStackChangeListener which gets fired when the system
might need to inform the user that a specific app might not work in
multi-window.

Use that callback in SysUI to show a translucent activity which scrims the
activity behind to inform that it might not be resizable.

Debounce the information to once per multi-window session, to not make it
annoying.

Introduce launchTaskId to start an activity in an existing task, and protect
that with START_TASKS_FROM_RECENTS permission.

Bug: 27327287
Bug: 27431869
Change-Id: I89e8d653872ab01ba3c1e252b426e5481da0e6ca
2016-03-25 14:23:41 -07:00
Julia Reynolds
a014e20bf0 Fix Sysui crash on volume change.
Bug: 27765028
Change-Id: I812dcf19d497cacde9698fc61d1e1f8686460593
2016-03-22 13:03:32 -07:00
Jeff Sharkey
8a372a0a28 Refactoring FBE APIs based on council feedback.
Mostly consists of removing the word "encryption" from most APIs,
since we can't actually make promises about the data being encrypted.

Bug: 27531029
Change-Id: Iace9d7c4e64716abf86ed11847c40f3947e1d625
2016-03-17 14:49:08 -06:00
Ian Pedowitz
358e51f3d1 Revert "Permissions: Get rid of GET_ACCOUNTS"
This reverts commit d39600585bcb720d739ef6f0091066e3d4f77765.

Bug: 27665091
Change-Id: I7d017ba7062ac594225229436d2877c7d21fb065
2016-03-15 17:08:27 +00:00
Carlos Valdivia
d39600585b Permissions: Get rid of GET_ACCOUNTS
Second attempt. Still need to add strict mode violation checks and
logging.

Bug: 21901286

This reverts commit bf33bd4d31cfec895c96990525b0cb856407c8d6.

Change-Id: I5d73343544c32ce4fc4c377ba44db8e677a1287d
2016-03-13 17:13:54 -07: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
Sid Soundararajan
1008cc2586 Add Launch Task Animation, re-do values for red-lines.
This is a cherry-pick of https://googleplex-android-review.git.corp.google.com/#/c/859952/
Adjusted to fix merge conflicts.

Change-Id: I8395a4172bd34faff88094913ee4afd97f71076a
2016-03-02 10:43:10 -08:00
Dianne Hackborn
e5ad41bc02 Fix issue #27317952: PendingIntent.getIntent() should be protected
Change-Id: Ib05135cd94f5251942a6fc6df542ed39083f7827
2016-02-29 18:02:43 -08:00
Wale Ogunwale
dc62575dd2 Changed sys-ui manifest to use resizeableActivity attribute...
Instead of resizeable attribute. resizeableActivity is what is used
for multi-window. The code currently works because it targets N :/

Change-Id: I82f1b1b46f66ea39ae682ed1d45f97bc6247b0bd
2016-02-23 10:02:58 -08:00
Jaewan Kim
ebc8f8f1ad PIP: Prevent onboarding activity from launching on pinned stack
Bug: 27153338
Change-Id: I7a3b5c5306e0760495b43b0deb612b3e711ad56e
2016-02-15 22:17:52 +00:00
Jaewan Kim
977dcdc3cd PIP: Implement the initial version of onboarding screen
Redlines and assets will be applied later.

Bug: 26676479
Change-Id: I1a42fad0b918681c64ae84abb1bff8fac3289004
2016-02-02 11:48:38 +09:00
Sid Soundararajan
d1e2332ea3 Merge "Initial Commit of a Horizontal Grid View based recents UI for TV." 2016-01-28 21:16:51 +00:00
Sid Soundararajan
b58c46acec Initial Commit of a Horizontal Grid View based recents UI for TV.
Change-Id: I048210e6fc91abafa41300ccb219b7bb9c84e835
2016-01-28 11:13:23 -08:00
Adam Powell
e7c74cc96e Revert "Pinning components in ChooserActivity"
This reverts commit ec6bc41e1835804533fd21b3ef8047ecd893bcfd.

Bug 26842512

Change-Id: I9fc775d21081885d0e26fca4ade412a18da45b7c
2016-01-28 09:04:20 -08:00
Adam Powell
ec6bc41e18 Pinning components in ChooserActivity
Move ChooserActivity to SystemUI. This is a safer place for it to live
and still be able to persist data to storage.

Add a context menu to long press for chooser targets allowing users to
'pin' a target component from an app. This causes it to sort to the
front of the list so that a user's favorite apps are always available
from share UIs, etc. Similarly, all ChooserTargets from a pinned
component receive an impossibly large boost for sorting so that they
will always appear first.

Bug 26791843

Change-Id: Ib4e603d9d4263403e98ce619287452ddab593044
2016-01-27 17:17:31 -08:00
Wale Ogunwale
133f299c16 Removed handling of layoutDirection configuration change
We thought this was required for resizing, but it isn't.

Bug: 26742139
Change-Id: I2b25ac8b188f8cafaf9d7472f79ca947cfe824c0
2016-01-25 10:49:13 -08:00
Jorim Jaggi
c82a7e3443 Merge changes Ifd2de38a,I57633d60
* changes:
  Divider tuning
  Fix unneccesary activity relaunches
2016-01-22 02:54:21 +00:00
Jorim Jaggi
a95ca8de4d Fix unneccesary activity relaunches
When going from fullscreen to non-fullscreen configuration, task config
changes was always non-zero because in fullscreen, task override config
was empty. Instead, use the actual previous configuration to calculate
diff.

Also make recents handle screenLayout changes.

Bug: 26593320
Change-Id: I57633d60b1e0fc4ae506e276410191a44e1fe221
2016-01-21 16:13:16 -08:00
Youngsang Cho
ad8ceb037e Close picture-in-picture when a fullscreen app starts to play a video
Bug: 26549507
Change-Id: I27e8f7b1847bf0e34e7c47bf6303c425c3eb9127
2016-01-21 17:06:32 +00:00
Sudheer Shanka
7ae8b9aac8 Add permission MANAGE_DEVICE_ADMINS to SystemUI.
Change-Id: Ic9fcfc6b2d76297d1226da4329e7dd7a66131ec2
2016-01-18 19:53:08 +00:00
Youngsang Cho
f164792472 Initial check-in of picture-in-picture system-ui
Bug: 26549507
Change-Id: I6c69b5e2b5492858fc997657b5a06d3e50ca16e3
2016-01-15 15:27:13 -08:00
Sudheer Shanka
9a2eb85a03 Add permission MANAGE_PROFILE_AND_DEVICE_OWNERS.
It is required to query getUserRestrictions from DevicePolicyManager.

Change-Id: I5218f8cbe225ddd9ed8a74db94133bda5b571cc3
2016-01-15 17:20:55 +00:00
Jason Monk
c06fbb1298 Move battery saver notification to QS
Remove the battery saver notification and instead create a detail
panel within QS that allows it to be turned on and off.

Change-Id: I54654d26183586fa171fda04877a840701f8ef33
2016-01-11 14:29:23 -05:00
Jeremy Klein
d42209db96 Add a TETHER_PRIVILEGED permission and use it where needed.
BUG: 26247383
Change-Id: I73f7227d77926faa9081e83eccb83c8ddee33e08
2016-01-07 10:11:24 -08:00
Julia Reynolds
be8fdee532 Differentiate between apps that use topics and those that don't.
Bug: 22451710
Change-Id: Idb567a4fc511a03cb999179765cfa4cbeb63dcb7
2015-12-18 15:57:43 -05:00
Jason Monk
87ccd55e8a Switch Tuner to support prefs (and some improvements)
Change-Id: I2ef62c0c56d4af69f9f34e1cfd297999d59b7da6
2015-12-16 19:41:25 +00:00
Mindy Pereira
a59301a44e Add quick settings permission to system ui
Makes it possible to use the new quick settings api from:
I82b6bebb0b21a5c9eb926cb1a761cac340a293df

Change-Id: I053bb2b28284c4f49d67339b617ef72ede1f2843
2015-12-10 19:25:08 +00:00
Jason Monk
ba2318eff3 Remove visibility from tiles, make them always visible
Some tiles are statically not available on boot, etc.
based on hardware availability or settings, but most
are just always visible.

Change-Id: Ib1a45ef5b029fe710f9957cb997496dcb14f5875
2015-12-08 10:52:10 -05:00
Filip Gruszczynski
64cdc1458b Remove dock divider surface when it's not visible.
We achieve the removal by notifying System UI about the visibility of
the dock divider. This way System UI can change visibility of the root
view, which in turn will cause the WMS to destroy or create the surface
as necessary.

Bug: 25844096
Bug: 25683717

Change-Id: Idbc33368db697a059af49106dfadb80c3d7d06c1
2015-11-30 15:21:48 -08:00
Jeff Sharkey
f9fc6d6cc0 More file-based encryption work.
Add granular StorageManager APIs for key creation/destruction and
unlocking/locking.  Start passing through an opaque token as part
of the unlock command, but leave it empty for now.  We now have a
separate "prepare" method that sanity checks that user directories
are correctly setup.

Define a handful of system properties used for marking devices that
should be operating in FBE mode, and if they're emulating FBE.  Wire
a command to "sm", but persisting will come later.

Start using new "encryptionAware" flag on apps previously marked with
coreApp flag, which were apps running in the legacy CryptKeeper
model.  Small tweaks to handle non-encryptionAware voice interaction
services.  Switch PackageManager to consult StorageManager about the
unlocked state of a user.

Bug: 22358539
Change-Id: Ic2865f9b81c10ea39369c441422f7427a3c3c3d6
2015-11-11 10:47:23 -08:00
Jorim Jaggi
339e884bc0 Handle configuration changes in recents manually
Change-Id: I0c62fffbed25e4b51fef4b34f8cab2ab69b76c32
2015-10-30 11:06:16 +00:00
Winson
190fe3bf88 Refactoring secondary user recents logic.
- Removing old broadcasts in favor of direct aidl interface between
  system and secondary users.  Also moving user specific implementation
  into RecentsImpl, allowing Recents to handle proxying between users.

Change-Id: I4bd5ef1d1ee47309b7c754f50a5e8b2e2aab988f
2015-10-22 12:26:21 -07:00
Michael Wright
244f776855 resolve merge conflicts of f013c3f111 to master.
Change-Id: I2045187f8fa948a1733cb9a2cdc0a69ae97b5907
2015-10-20 23:48:55 +01:00
Michael Wright
9209c9cd9a Add SystemUI component to watch for keyboard attachment.
Add a new SystemUI component to watch for keyboard attachment /
detachment. If the config specifies the name of a keyboard that is
packaged with the device, then SystemUI will ask the user if they
would like to enable BT (if disabled) and then attempt to pair to the
device.

Bug: 22876536
Change-Id: I786db35524d49706d5e61d8b8bc71194d50113f3
2015-10-12 15:21:37 +01:00
Winson
6aa91e6357 Removing unused resources.
Change-Id: Ie013b164892eaccaaab7b8c2bcdd3cb5ac51a485
2015-09-25 20:13:25 +00:00
Winson
147ecaf3ba Ensure RecentsActivity is resizeable.
- Removing old code related to multi-stack layouts.

Change-Id: Ib9b820d2a65ff15e9cd8e5255e3e858b611e5aa9
2015-09-17 16:34:15 -07:00
Fyodor Kupolov
4f5de340c9 Renamed primaryUserOnly to systemUserOnly
In the split mode, broadcast receivers and activities marked as
systemUserOnly will be running as system. This is a non-functional change for
non-split system user mode.

Bug: 22958572
Change-Id: I0f7d4f4a81275bc326bf630a776c695e8b5291a6
2015-08-25 18:26:49 -07:00
Jim Miller
4ea5152bd8 am 849b9e58: am ce6fb7bb: am 7ef77271: am bea9d7b9: Merge "Reset fingerprint lockout timer when strong auth is used." into mnc-dr-dev
* commit '849b9e58d6775a393f7d86a6305b658c6af9d16f':
  Reset fingerprint lockout timer when strong auth is used.
2015-08-19 02:21:58 +00:00
Jim Miller
e0507bbbf9 Reset fingerprint lockout timer when strong auth is used.
Fixes bug 22565462

Change-Id: I4842877839845e7fe103396d8ca8104928568c04
2015-08-18 13:01:31 -07:00
Daniel Sandler
26df5a6263 am cf59d059: am 98e684e7: am b66e755b: am 64b05c0f: am 9f238a94: Merge "Introducing M Land." into mnc-dev
* commit 'cf59d059a51f33cd28b05f4c248c164bd22f95f4':
  Introducing M Land.
2015-08-16 03:02:26 +00:00