15096 Commits

Author SHA1 Message Date
Christopher Tate
11ae768cf1 Add payload-size preflight stage to full transport backup
We now peform a total-size preflight pass before committing data to the
wire.  This is to eliminate the large superfluous network traffic that
would otherwise happen if the transport enforces internal quotas: we
now instead ask the transport up front whether it's prepared to accept
a given payload size for the package.

From the app's perspective this preflight operation is indistinguishable
from a full-data backup pass.  If the app has provided its own full-data
handling in a subclassed backup agent, their usual file-providing code
path will be executed.  However, the files named for backup during this
pass are not opened and read; just measured for their total size.  As
far as component lifecycles, this measurement pass is simply another
call to the agent, immediately after it is bound, with identical
timeout semantics to the existing full-data backup invocation.

Once the app's file set has been measured the preflight operation
invokes a new method on BackupTransport, called checkFullBackupSize().
This method is called after performFullBackup() (which applies any
overall whitelist/blacklist policy) but before any data is delivered
to the transport via sendBackupData().  The return code from
checkFullBackupSize() is similar to the other transport methods:
TRANSPORT_OK to permit the full backup to proceed; or
TRANSPORT_REJECT_PACKAGE to indicate that the requested payload is
unacceptable; or TRANSPORT_ERROR to report a more serious overall
transport-level problem that prevents a full-data backup operation
from occurring right now.

The estimated payload currently does not include the size of the
source-package metadata (technically, the manifest entry in its
archive payload) or the size of any widget metadata associated with
the package's install.  In practice this means the preflighted size
underestimates by 3 to 5 KB.  In addition, the preflight API currently
cannot distinguish between payload sizes larger than 2 gigabytes;
any payload estimate larger than that is passed as Integer.MAX_VALUE
to the checkFullBackupSize() query.

Bug 19846750

Change-Id: I44498201e2d4b07482dcb3ca8fa6935dddc467ca
2015-03-26 18:57:36 -07:00
Skuhne
8aa7d161a1 Adding menu to arrange one or two tasks and arrange them accordingly
Added dialog with buttons for task arrangement upon click on decorator
icon.

BUG: 19492945,19868830,19656507

Change-Id: Ie31e2788efb097db1c1f54f0ef1b2fda1ccc71ec
2015-03-24 09:20:51 -07:00
Michael Wright
d99c5f6fb6 am 72261270: am b42baaa8: am 978cfc39: Merge "SystemUI needs the SET_WALLPAPER permission"
* commit '722612707e7eef745dab573ff226e2bd904295cb':
  SystemUI needs the SET_WALLPAPER permission
2015-03-24 02:56:08 +00:00
Christopher Tate
7b9a28c7f0 Back up and restore the set of enabled IMEs
The restored set of enabled IMEs/subtypes is merged into the
current state of the system, rather than simply replacing it.
This is because we do not want to accidentally disable or
reconfigure something that the user is currently relying on.

There's a certain amount of repetitive activity here, rebuilding
the enabled-state data structures in a different format, but it's
important for maintainability that the restore code be able to
rely on the core InputMethodUtils implementation of reading/writing
the settings element.

Bug 19822542

Change-Id: If0104151b3526da6ecc669adde3119a239ecafeb
2015-03-23 16:28:21 -07:00
Winson Chung
f21ef3d25a Merge "Adding null check for focused stack before trying to switch affiliated tasks." 2015-03-23 22:16:38 +00:00
Winson Chung
98127fb818 Adding null check for focused stack before trying to switch affiliated tasks.
Bug: 19870065
Change-Id: I674914b9d4a63cb9c73fa71bbc4b82c210e2001f
2015-03-23 15:12:53 -07:00
Wale Ogunwale
e0cc2f652b Changed recent multi-window UI to use persist.sys.debug.multi_window
Consistent with what is been set under developer options.

Change-Id: I871ba1b612e344846c33fae68ad3286f7bec1b4b
2015-03-23 13:44:36 -07:00
Michael Wright
b42baaa829 am 978cfc39: Merge "SystemUI needs the SET_WALLPAPER permission"
* commit '978cfc39a10e1b95f9d6dfb5c8e9eb58a10ce0ec':
  SystemUI needs the SET_WALLPAPER permission
2015-03-23 15:55:53 +00:00
Geoff Mendal
521c125d56 Import translations. DO NOT MERGE
Change-Id: I7298b94a7d28dc5e674054aa7204d5c652fb12a9
Auto-generated-cl: translation import
2015-03-23 06:15:29 -07:00
Samuel Asteberg
8d516a80a0 SystemUI needs the SET_WALLPAPER permission
If changing wallpaper when low on memory, retrieving the default
wallpaper may return null, which triggers error handling in
ImageWallpaper. This error handling tries to perform
WallpaperManager.clear(), but for that it needs SET_WALLPAPER
permission, which it does not have.

For users with apps that auto change wallpaper, this issue can
be frequent in low-memory conditions.

The solution is to add the permisson.

Change-Id: I81503c1667e3952c2dd15599969f7dcc51623e5b
2015-03-23 13:50:09 +01:00
Geoff Mendal
c2eef6c5aa Merge "Import translations. DO NOT MERGE" 2015-03-21 07:02:46 +00:00
Geoff Mendal
273c6f2e00 Import translations. DO NOT MERGE
Change-Id: I0acc044f88445fe6d48f84bcaee6a971409ad144
Auto-generated-cl: translation import
2015-03-21 02:02:20 -05:00
Geoff Mendal
ed4267d0d6 Merge "Import translations. DO NOT MERGE" 2015-03-21 06:57:46 +00:00
Geoff Mendal
3997c05782 Import translations. DO NOT MERGE
Change-Id: Ia2267065864b0a7ff750e2956f0bab7507b8c32c
Auto-generated-cl: translation import
2015-03-20 23:56:54 -07:00
Geoff Mendal
ff88dba81c Merge "Import translations. DO NOT MERGE" 2015-03-21 06:54:25 +00:00
Geoff Mendal
672aab38b6 Import translations. DO NOT MERGE
Change-Id: I3b918278be7f5c4849a49821ab35385abaf440e4
Auto-generated-cl: translation import
2015-03-20 23:53:59 -07:00
Geoff Mendal
f2ab5f6e55 Merge "Import translations. DO NOT MERGE" 2015-03-21 06:43:42 +00:00
Geoff Mendal
ed963393c3 Import translations. DO NOT MERGE
Change-Id: I05e39854eb2d78c22192faebdbfab579831b162a
Auto-generated-cl: translation import
2015-03-20 23:42:27 -07:00
Geoff Mendal
2b37ae6e3c Merge "Import translations. DO NOT MERGE" 2015-03-21 06:40:03 +00:00
Geoff Mendal
d397039876 Import translations. DO NOT MERGE
Change-Id: I43f19279f08e1c5b204836ee69e715c1f889acc7
Auto-generated-cl: translation import
2015-03-20 23:39:30 -07:00
Geoff Mendal
23d3a54673 Merge "Import translations. DO NOT MERGE" 2015-03-21 06:37:07 +00:00
Geoff Mendal
6536f65afb Import translations. DO NOT MERGE
Change-Id: Ifac523c71970a048540fcfdbdb81b1b6d02e630a
Auto-generated-cl: translation import
2015-03-20 23:36:23 -07:00
Geoff Mendal
b72ae7a8f3 Merge "Import translations. DO NOT MERGE" 2015-03-21 06:30:13 +00:00
Geoff Mendal
c549f8f4a9 Import translations. DO NOT MERGE
Change-Id: I4f9a97623c88e65d32873d996f29725024d9f37e
Auto-generated-cl: translation import
2015-03-20 23:28:43 -07:00
Geoff Mendal
3f7aee5808 Merge "Import translations. DO NOT MERGE" 2015-03-21 06:26:41 +00:00
Geoff Mendal
c6d8b937d0 Import translations. DO NOT MERGE
Change-Id: I274a842ea3e3811e64c35791e2eb3a7603509184
Auto-generated-cl: translation import
2015-03-20 23:25:50 -07:00
Geoff Mendal
427de1b691 Merge "Import translations. DO NOT MERGE" 2015-03-21 06:23:56 +00:00
Geoff Mendal
b91a3309b6 Import translations. DO NOT MERGE
Change-Id: I5d8cc25c94f71a9f3f14307fbb2f09e0779f4d6e
Auto-generated-cl: translation import
2015-03-20 23:23:01 -07:00
Geoff Mendal
ddb47ba186 Merge "Import translations. DO NOT MERGE" 2015-03-21 06:20:27 +00:00
Geoff Mendal
c98146b556 Import translations. DO NOT MERGE
Change-Id: Iac1b987545c21b2e4b29787b13fbaf3414a6a2fb
Auto-generated-cl: translation import
2015-03-20 23:20:04 -07:00
Geoff Mendal
24284b578d Merge "Import translations. DO NOT MERGE" 2015-03-21 06:17:48 +00:00
Geoff Mendal
0ae2b12c29 Import translations. DO NOT MERGE
Change-Id: I1bdbaf86f8f5fd957938b9d186e824d115054e10
Auto-generated-cl: translation import
2015-03-20 23:17:07 -07:00
Geoff Mendal
1e0cde0ada Merge "Import translations. DO NOT MERGE" 2015-03-21 06:15:15 +00:00
Geoff Mendal
9bf5801545 Import translations. DO NOT MERGE
Change-Id: I6fd85e17705e81326d3440fc3ef2180683c968b3
Auto-generated-cl: translation import
2015-03-20 23:14:05 -07:00
Geoff Mendal
43c0e5bf3c Import translations. DO NOT MERGE
Change-Id: Ia6706068d602792edfbbca15f3832b0447b9b13e
Auto-generated-cl: translation import
2015-03-20 23:11:02 -07:00
Winson Chung
a92c07809c Merge "Fixing issue with screen-pinning for secondary users." 2015-03-20 16:59:59 +00:00
Winson Chung
d0aa8a374f Fixing issue with screen-pinning for secondary users.
- Proxy the screen pinning request to the SystemUI for the primary user.

Bug: 19395305
Change-Id: I6252d4ee05b2bea4e76b2a4d0b903e2866fffa76
2015-03-19 14:11:27 -07:00
Alan Viverette
eef3bcbbe4 Merge "Replace usages of deprecated Resources.getColor() and getColorStateList()" 2015-03-19 01:54:09 +00:00
Alan Viverette
4a357cd2e5 Replace usages of deprecated Resources.getColor() and getColorStateList()
Change-Id: I8f64fe6c4c44a92ff6d07250223ba590a1d691b0
2015-03-18 18:37:18 -07:00
Dan Sandler
61bc9d535b am b509a809: am fbd99e9f: am 76620791: am b3a1b663: Merge "Avoid crashing on corrupted notifications." into lmp-mr1-dev
* commit 'b509a809b20d1eae76613b43a93059c32c4a8435':
  Avoid crashing on corrupted notifications.
2015-03-18 23:48:31 +00:00
Chris Craik
43c410eaac Merge "Remove HardwareCanvas" 2015-03-18 21:36:56 +00:00
Dan Sandler
b509a809b2 am fbd99e9f: am 76620791: am b3a1b663: Merge "Avoid crashing on corrupted notifications." into lmp-mr1-dev
* commit 'fbd99e9fecea1cf467c082d2096cb1c3868685d4':
  Avoid crashing on corrupted notifications.
2015-03-18 18:42:47 +00:00
Dan Sandler
fbd99e9fec am 76620791: am b3a1b663: Merge "Avoid crashing on corrupted notifications." into lmp-mr1-dev
* commit '76620791600af3b3d6f6ad8ba3534320265153db':
  Avoid crashing on corrupted notifications.
2015-03-18 18:35:20 +00:00
Dan Sandler
7662079160 am b3a1b663: Merge "Avoid crashing on corrupted notifications." into lmp-mr1-dev
* commit 'b3a1b6632e403926fed995e851a8e44fc944c663':
  Avoid crashing on corrupted notifications.
2015-03-18 18:29:48 +00:00
Geoff Mendal
44b789ee50 Merge "Import translations. DO NOT MERGE" 2015-03-18 13:53:31 +00:00
Geoff Mendal
05cc0270d8 Import translations. DO NOT MERGE
Change-Id: I383533e102441de910bcee9f10662cc0dd082e59
Auto-generated-cl: translation import
2015-03-18 06:49:50 -07:00
Geoff Mendal
d253343da0 Import translations. DO NOT MERGE
Change-Id: I85066a98008872466f6cb03770ceb2ff94abed0e
Auto-generated-cl: translation import
2015-03-18 06:11:15 -07:00
Geoff Mendal
54064f66c9 Import translations. DO NOT MERGE
Change-Id: Ifd3f512fcd1aabd685f10218eceda8f4f83bb116
Auto-generated-cl: translation import
2015-03-18 06:04:44 -07:00
Geoff Mendal
8d889a67d0 Import translations. DO NOT MERGE
Change-Id: I046ce211561d45c3ee6b1763a7578d9ac54f3c90
Auto-generated-cl: translation import
2015-03-18 05:47:44 -07:00
Skuhne
7438f814f1 Merge "Change resize logic: Use resizeTask and remove stack resize UI/logic" 2015-03-17 23:35:38 +00:00