5768 Commits

Author SHA1 Message Date
Abodunrinwa Toki
6be228c111 Fix floating toolbar rendering.
The code to size and position the floating toolbar and it's content
when there was no overflow menu was omitted. This caused bad
rendering of the toolbar and it's content when an existing toolbar
object was updated to go in the "no overflow" state.

Fixed the issue by properly updating the floating toolbar size
and positioning of it's contents in the "no overflow" state.

Bug: 25973599
Change-Id: I9305140f493bc36b87328571cd7645f184d9cf30
2016-01-29 12:22:29 +00:00
Sergey Poromov
7200364e8d Merge "Quota exceeded API in BackupAgent" 2016-01-27 12:15:50 +00:00
Clara Bayarri
8591f86ef7 Merge "Check if the profile password would comply as the device lock" 2016-01-27 10:56:38 +00:00
Rakesh Iyer
e13d22a62d Merge "Allow smart unlock right after boot." 2016-01-27 06:03:01 +00:00
Mihai Nita
137b96e3a4 Visibility changes to allow access by SetupWizard
Also adding a method that is called when the SIM info changes,
to update sugestions.
This is a must for SetupWizard, where the language selection can
be displayed before the SIM is fully initialized.
Might also use it to update suggested locals when SIM status changes
(SIM card replaced, or the user crosses border to a different country)

Bug: 25797548
Change-Id: I1a68b4e71046caa3b2810b37c74be5eeb00a255c
2016-01-26 18:53:41 -08:00
Vladislav Kaznacheev
a74e729fa9 Merge "Fix SecurityException in Editor.onDrop" 2016-01-27 00:38:38 +00:00
Rakesh Iyer
a7aa4d6f0b Allow smart unlock right after boot.
This change enables relaxing the constraint by which
strong authentication is needed after device reboot.

There are very limited use cases where this might be
safe, one of which is in a car. Cars head units usually
are protected physically by the car and have hardware
anti-theft mechanisms so we can potentially allow for
Android to allow users to use smart unlock to avoid the
lockscreen just after boot.

This change adds in a config flag that sets the default
trust flags, which can be set to allow smart unlock after
boot for car head units.

Bug: 26559008
Change-Id: Id6338a97b617ddaf3d2fae5d51235429a42b81cc
2016-01-26 15:57:29 -08:00
Clara Bayarri
d7693917a7 Check if the profile password would comply as the device lock
Bug: 26801330
Change-Id: Ide31464dd0292ca97b03abe08cdde5b41d517b66
2016-01-26 23:04:28 +00:00
Philip P. Moltmann
e33b954165 Merge "Check parameters for callers of IPrintManager" 2016-01-26 22:52:58 +00:00
Vladislav Kaznacheev
c14df8e73d Fix SecurityException in Editor.onDrop
When a content URI is dropped onto EditText, it tries making sense
of the contents, and in the process it accesses the content provider.
If this content provider requires a permission grant, SecurityException
occurs.

This fix does two things:
1. Editor.onDrop now requests DropPermissions and releases is
when it is done. This required the introduction of a new hidden method
DropPermissions.takeTransient, because the existing method required
access to an Activity instance.

2. If the drag originator neglected to allow the permission grant,
DropPermission request would not help, so a try/catch block
is added to Editor.onDrop to avoid breaking the recipient app.

Bug: 26694948
Change-Id: I714429a507e62c83a150d91fbcdee791bced3ad3
2016-01-26 11:53:00 -08:00
Jorim Jaggi
50cd6361d7 Refine divider behavior
- Switch earlier to the dismissing/fullscreen layout, so
we minimize holes.
- For the bottom/right one, switch also earlier to the larger size to
minimize holes. We can't do this for the upper one because it will be
confusing there if the layout bounds doesn't equal the bounds while
snapping.

Change-Id: I8f065514f7aaa15ae76af648794ab8b23302e534
2016-01-26 03:19:15 +00:00
Keisuke Kuroyanagi
0837daa464 Merge "Make scroll bar mouse draggable." 2016-01-26 01:46:53 +00:00
Vladislav Kaznacheev
92b26c5bff Merge "Restore correct mouse pointer after drag and drop" 2016-01-25 22:09:38 +00:00
Maria Garcia Puyol
2c6ffba900 Merge "Add constants for EmergencyInfo app." 2016-01-25 17:56:06 +00:00
Rubin Xu
e6e907ea09 Merge "Show dialog when launching work apps is not possible." 2016-01-25 17:51:22 +00:00
mariagpuyol
64916b72fa Add constants for EmergencyInfo app.
Bug: 23591361
Bug: 26688835
Change-Id: If1039356468d173522132df252e81807cdc756c8
2016-01-25 09:43:30 -08:00
Adrian Roos
4afbe99127 Merge "Improved trust error messaging (1/2)" 2016-01-25 17:20:11 +00:00
Chris Wren
77781d3aaa a step toward enforcing unique metrics log IDs
First of several change lists:
1. Add in the new proto (this CL)
2. Migrate the existing code over to the proto.
3. Remove MetricsConstants once it is unused.

Bug: 26442178
Change-Id: Ic24829246af8ec5b202e39a85960aac5cf336c33
2016-01-25 11:24:08 -05:00
Adrian Roos
c13723f22e Improved trust error messaging (1/2)
Tracks why trust agents are disabled and shows
a generic message on the keyguard. Dedicated strings
in follow-up.

Bug: 22704995
Change-Id: Ibb4fd9c9386c4dc12f0734004502b9a9cc6ded79
2016-01-25 08:04:42 -08:00
Vladislav Kaznacheev
ec6a447c86 Restore correct mouse pointer after drag and drop
This CL introduces IWindow.updatePointerIcon method.
When the drag is complete, this method is called on the window
directly under the pointer.

Same method can be used in the future to update mouse pointer
when a window appears or disappears.

Bug: 24415739
Change-Id: Ia7b0522448cb3cd754da5e24696060d3b3bf2e50
2016-01-22 17:30:10 -08:00
Thierry Strudel
38622c3055 Merge "Don\'t assume kernel tick is 100Hz" into mnc-dr1.5-dev am: 0064c4c793 am: e8b476e8e8
am: afbf1570ac

* commit 'afbf1570acfac5dfc28196c3f4b424fdaef85508':
  Don't assume kernel tick is 100Hz
2016-01-22 22:35:05 +00:00
Thierry Strudel
afbf1570ac Merge "Don\'t assume kernel tick is 100Hz" into mnc-dr1.5-dev am: 0064c4c793
am: e8b476e8e8

* commit 'e8b476e8e81ee8bc4fe70fbc78db2f496b2aa023':
  Don't assume kernel tick is 100Hz
2016-01-22 22:28:41 +00:00
Thierry Strudel
e8b476e8e8 Merge "Don\'t assume kernel tick is 100Hz" into mnc-dr1.5-dev
am: 0064c4c793

* commit '0064c4c79341bcb47bcb5b9ff568871f34f1dc63':
  Don't assume kernel tick is 100Hz
2016-01-22 22:20:30 +00:00
Michael Wright
1262dc0390 Merge "Switch and store keyboard layouts based on IME subtype." 2016-01-22 20:18:29 +00:00
Rubin Xu
58d2599832 Show dialog when launching work apps is not possible.
There are two cases when this could happen. First is when the work
profile is turned off by the user, and the second is when the profile
owner has suspened the package.

Bug: 22776761
Bug: 22541941
Change-Id: Ibc671e93f87dff0168bb7643494b9d6b45a1a7f9
2016-01-22 19:53:01 +00:00
Sergey Poromov
872d3b6e19 Quota exceeded API in BackupAgent
Should be also implemented in GMS BackupTransport.

Bug: 25693504
Change-Id: I6e4b2edb6d62addca0aced3e801d7629fb9394ca
2016-01-22 14:38:52 +01:00
Sergey Poromov
507e2c94a3 Merge "Add BackupManager#isAppEligibleForBackup() method to Backup API." 2016-01-22 12:01:16 +00:00
Jorim Jaggi
c82a7e3443 Merge changes Ifd2de38a,I57633d60
* changes:
  Divider tuning
  Fix unneccesary activity relaunches
2016-01-22 02:54:21 +00:00
Thierry Strudel
b786aaa5a7 Don't assume kernel tick is 100Hz
Bug: 26729731
Change-Id: I094d5fd0e611349becb91d4460bc2e4af255d125
2016-01-21 16:31:21 -08:00
Jorim Jaggi
df012d5102 Divider tuning
- Make it harder to dismiss
- When dragging from the bottom, don't allow dismissing at the top

Change-Id: Ifd2de38abece7b996a813af41dcf777fa5cd1c18
2016-01-21 16:24:58 -08:00
Michael Wright
d5f7ed9fe9 Switch and store keyboard layouts based on IME subtype.
Rather than associate the keyboard layout solely with a specific
hardware model, we should also associate it with a given IME subtype.
This lets users switch between various languages and have the
keyboard change in unison with them so they can use the appropriate
layouts for each language.

This change adds initial support for associating IME subtypes and
keyboard layouts. We still need to:
  - Remove support for the old style of layout association once the
    Settings apps begins to use the new APIs
  - Automatically select an appropriate layout based on the given
    subtype (or set a reasonable universal default such as QWERTY)

Bug: 25752812

Change-Id: Ie88ce1ab77dbfe03ab51d89c1dc9e0a7ddbb3216
2016-01-21 14:03:43 -08:00
Sergey Poromov
9448196076 Add BackupManager#isAppEligibleForBackup() method to Backup API.
Check is done only in framework.
Transport still can deny backup for the package.

Bug: 26443192
Change-Id: Ifcde67a4d11725aa4b15ab4f57d740f55ab2b265
2016-01-21 22:41:39 +01:00
Philip P. Moltmann
76d7e3ee70 Check parameters for callers of IPrintManager
- Propagate nullness and non-null-ness up and down from the interfaces.
- Add non-CTS print tests for IPrintManager binder.

Change-Id: I0c310d9cea8aefba5ce386931521ffaf19712bbb
2016-01-21 13:27:30 -08:00
Kenny Guy
8c32981f12 Merge "Update PackageMonitor and LauncherApps for suspended apps." 2016-01-21 19:04:20 +00:00
Sergey Poromov
d3665f1f0f Merge "Introduce BackupManager#requestBackup & BackupObserver API" 2016-01-21 18:55:28 +00:00
Amith Yamasani
3a9866d801 Merge "Don't allow user creation intent to work on non-admin users" 2016-01-21 18:40:40 +00:00
Ritesh Reddy
395371c1d7 Merge "Stopped closing State FDs in AccountSyncSettingsBackupHelper" 2016-01-21 18:20:56 +00:00
Sergey Poromov
fe06bf64d2 Introduce BackupManager#requestBackup & BackupObserver API
Introduces a way to request immediate backup for list of packages
and receive callbacks on backup progress.

Bug: 25688526
Change-Id: Ib826933d44f4ebf2b981f8be366215b2d37847e2
2016-01-21 19:15:33 +01:00
Kenny Guy
772427555f Update PackageMonitor and LauncherApps for suspended apps.
Allow launchers to read ApplicationInfo from LauncherApps
to support suspended flag.
Provide callback to launchers via LauncherApps for suspend
/unsuspend broadcasts.

Change-Id: I772a121c45f60f926e8343bb6f181bef4e8929d3
2016-01-21 15:15:04 +00:00
Keisuke Kuroyanagi
d85bc5074d Make scroll bar mouse draggable.
This is for Views that have special mouse dragging handling. e.g.
TextView invokes text selection on mouse dragging, so it cannot be
scrolled by mouse dragging.
This provides such Views or ViewGroups a last resort to scroll as we
don't assume that all devices have touch panel, touch pad, or mouse
wheel.

Bug: 20016455

Change-Id: I68a13258a50b5e4ea681b2576da6000a0bb3fa65
2016-01-21 14:50:38 +09:00
Jaesung Chung
69c8cc2930 Merge "Support for CEA-708 closed caption" 2016-01-21 03:41:01 +00:00
Adam Lesinski
e33d41f838 Merge "Record bytes transferred for bluetooth" 2016-01-21 02:22:04 +00:00
Amith Yamasani
96a25b801a Don't allow user creation intent to work on non-admin users
Only allow admin users to create users using an intent.

Bug: 26692650
Change-Id: Iadcc9843baa6996dcc6e662604dfcc8238e7f35b
2016-01-20 14:36:03 -08:00
Mihai Nita
1808ff7cde Re-implements the locales selection with suggestions and search.
This replaces the initial implementation of a two-step locale selection
with a more advanced version, which does suggestions, search, removes
locales that already exist in the user preferences.

Bug: 25800339
Bug: 26414919
Bug: 26278049
Bug: 26275094
Bug: 26266914
Bug: 26266743
Bug: 26266712
Bug: 26266605
Bug: 26266490
Bug: 26266021

Change-Id: I88944c86e4cae5eaa00b7ae4855887ab11989253
2016-01-20 12:29:42 -08:00
Filip Gruszczynski
1937a4c68a Update width available for dialogs on all configuration changes.
Bug: 26504275
Change-Id: I7a0399e4af77ab02df8b3dff68adcf37b36d7ca7
2016-01-19 18:09:05 -08:00
Alan Viverette
7487f90581 Merge "Animate context popup menu around origin point" 2016-01-19 21:43:33 +00:00
Calin Juravle
7bdf3cff92 Merge "Enable profile guided compilation on the framework side" 2016-01-19 19:51:51 +00:00
Calin Juravle
db4a79a5d7 Enable profile guided compilation on the framework side
The background compilation service will trigger a profile based
compilation instead of a full one. If no profile information is
available the compilation is skipped (see installd).

Note that the end decision whether or not to compile a package is taken
by dext2oat. We can't make the decision here because this service runs
under system server which cannot read app's profile data.

Bug: 26080105
Change-Id: I457ea8dea0557839c1f7cdc241770055732b0a4a
2016-01-19 11:44:27 -08:00
Alan Viverette
91098574f9 Animate context popup menu around origin point
Also enables the context popup menu enter transition.

Bug: 25801140
Change-Id: Id7fb384e8ac8974189b32a052352bd2f6cbb176e
2016-01-19 14:07:31 -05:00
Adam Lesinski
50e4760214 Record bytes transferred for bluetooth
Bug:26039657
Change-Id: Iec42459d12f4106d5733f55313e8544d58930285
2016-01-18 18:22:55 -08:00