113449 Commits

Author SHA1 Message Date
Svetoslav Ganov
d91cb3ea61 The list of active print jobs in print service retunring wrong result.
1. The getActivePrintJobs() method in print service is designed to return
   the active print job i.e. ones scheduled to be processed by the print
   service. Now the correct list is returned.

2. The listeners for observing the state of print jobs may be called even
   after being unregistered. Ex: state change occurs and we schedule a
   message on the app's main thread to make the notificaion. Now the app
   unregisretes the callback and on the next loop the notification message
   is handled.

bug:11200258

Change-Id: I4a497b5c9a7287a22023cafe41ce966d14300ca6
2013-10-12 16:09:29 -07:00
Joe Malin
a2c64bb629 am 91245730: am ca338777: am 45edbb70: DOC CHANGE: FileProvider training class
* commit '91245730a103f526a7c3cc0f4f6c3a03c1094703':
  DOC CHANGE: FileProvider training class
2013-10-12 15:52:19 -07:00
Joe Malin
91245730a1 am ca338777: am 45edbb70: DOC CHANGE: FileProvider training class
* commit 'ca3387776037cd00b7bd7114535e3f3365cf3464':
  DOC CHANGE: FileProvider training class
2013-10-12 15:49:09 -07:00
Joe Malin
ca33877760 am 45edbb70: DOC CHANGE: FileProvider training class
* commit '45edbb701ac44891aa07a403a55ee2393da9b25f':
  DOC CHANGE: FileProvider training class
2013-10-12 15:46:02 -07:00
Craig Mautner
faf1a40382 Restore wallpaper positioning between apps.
Simplification where wallpaper was behind all apps didn't work when
keyguard and associated wallpaper needed to be above phone screen when
phone screen animated in and out. Instead phone screen was instantly
hiding the wallpaper.

Fixes most of bug 10932680.

This fixes the wallpaper disappearing as soon as the animation begins
when going from keyguard to phone. There remains jank going from phone
to lockscreen where the animation is not occurring and the phone
blanks out immediately.

Change-Id: Ie5f464acb2f6cefd2fb91f3b920a687ec7c15d76
2013-10-12 15:43:07 -07:00
Svetoslav Ganov
d3c197d972 The callbacks for tracking a printer called more than once without printer change.
When the user selectes a printer in the UI we ask the print service to start tracking
the printer, i.e. to observe changes of the printer state and capabilities. The callback
for the initially selected printer is called twice which breaks the contract and also
may trigger potentially expensive operations on the print service side.

More precisely the printer does not change and we ask the service to start tracking,
stop tracking, and again start tracking.

bug:11199851

Change-Id: Ib761e6da03f670b3098c69b1c0927177a8e4ae6b
2013-10-12 14:28:47 -07:00
Svetoslav Ganov
7d7888d1c7 Printed document size not persisted.
We persist ongoing print jobs so they can be restarted if the device
dies. The data size of the printed document was not persisted to disc.

bug:11199352

Change-Id: I53ef1ee285aa4808917dd6a5c7335226aba1ef0a
2013-10-12 13:18:16 -07:00
Svetoslav Ganov
9b6d3a153f Fail only scheduled print jobs, i.e. handed to a service, if the service is disabled.
When a print service is disabled we assume all print jobs for it failed as we have
no way to know what happens to them. However we are also failing created print jobs,
i.e. ones not given to the service. Such jobs are in process of construction and
the print dialog is up. We should not fail such jobs as the dialog can still modify
their state and potentially select a print from a different service. Therefore, we
leave them alone and they will be failed if when constructed are passed to a
disabled/uninstalled service.

bug:11197432

Change-Id: Ie4fe54327e3e25776b1dd572be2dfafdd700c2e5
2013-10-12 12:35:44 -07:00
Craig Mautner
2219b751b6 Only return to home if the foreground task is removed.
The previous fix that returned to home when a task on top of home was
removed was too broad. If that task was not the foreground task it was
not a good idea to bring the home screen to the front.

Fixes bug 11198552.

Change-Id: I14e5fdc167011f25e0e8490c3e52c5c1dcbffbff
2013-10-12 11:26:08 -07:00
Jim Miller
7d5e00ab2b Fix bug where lockout timeout is shown for SIM in keyguard
Fixes bug 11193577

Change-Id: I62964c478bdb060ea6964009fc99bc3d7b5e3f80
2013-10-11 22:45:57 -07:00
Craig Mautner
5a7831733b Merge "Test for hidden keyguard before waiting for it." into klp-dev 2013-10-12 04:54:42 +00:00
Craig Mautner
6f29590e9a Test for hidden keyguard before waiting for it.
Now that non-null window tokens are coming in in additional situations
(ag/372453) we have to look at whether the keyguard is hidden before
deciding to wait for it.

Fixes bug 1187500.

Change-Id: Ie89d5334ab3d0f5b8f2cf8c87fef84a9b6392b72
2013-10-11 21:43:06 -07:00
Jim Miller
2222a508e7 Merge "Fix problem where PhoneWindowManager waits for keyguard to draw" into klp-dev 2013-10-12 04:29:01 +00:00
Jim Miller
6a3cceb4d9 Fix problem where PhoneWindowManager waits for keyguard to draw
This fixes a problem where PhoneWindowManager times out waiting
for keyguard to draw when it's disabled.  Instead, we pass a null
token back which allows PhoneWindowManager to continue.

Fixes bug 11190932

Change-Id: I041ea1d88dca681476d9477a3aab54559976b312
2013-10-11 21:23:32 -07:00
Jim Miller
e657a82ee1 Disable the camera and search buttons while we're in bouncer mode.
Fixes 11191334

Change-Id: I035f9e4e3d033fac6e1660b2d357ddac6f36bcbf
2013-10-11 19:49:31 -07:00
Craig Mautner
166434eca5 Merge "When removing a task that was on home, put home on top." into klp-dev 2013-10-12 02:42:38 +00:00
Jim Miller
dc70340d48 Merge "Enable time format localization in keyguard" into klp-dev 2013-10-12 01:00:24 +00:00
Jim Miller
0c48689b08 Enable time format localization in keyguard
Fixes bug 11173871

Change-Id: Ife44c93b01770a3349343d034fe6adb1c6d66185
2013-10-11 17:50:35 -07:00
Craig Mautner
8e5695778f When removing a task that was on home, put home on top.
Killing an app that was launched from home was not relaunching home.
Previous situations relaunched the next app (i.e. home) based on the
task flag. However, when an app dies the relaunch is deferred until
the TaskRecord has long been forgotten. This fix rearranges the stacks
immediately upon the TaskRecord being removed from the stack. Then the
next resumeTopActivities() call will start the home task.

Fixes bug 11189555.

Change-Id: I0e09350a7db55ea8b38cce7bf4b69923a6b99494
2013-10-11 17:36:59 -07:00
Robert Greenwalt
72dc0b4391 Merge "Make Wifi Scans more heap-efficient" into klp-dev 2013-10-12 00:30:22 +00:00
Baligh Uddin
ea9aec27cc Merge "Import translations. DO NOT MERGE" into klp-dev 2013-10-12 00:27:15 +00:00
Baligh Uddin
3c10347cdb Merge "Import translations. DO NOT MERGE" into klp-dev 2013-10-12 00:26:44 +00:00
Baligh Uddin
84f5bf8239 Merge "Import translations. DO NOT MERGE" into klp-dev 2013-10-12 00:26:24 +00:00
Svetoslav
036f05b8b0 Merge "Putting the cursor at the end of the copies and range inputs." into klp-dev 2013-10-12 00:21:12 +00:00
Chris Craik
709129ba93 Merge "Document special case in hasOverlappingRendering" into klp-dev 2013-10-12 00:08:08 +00:00
Svetoslav
89ed9fcf9b Putting the cursor at the end of the copies and range inputs.
bug:10983508

Change-Id: I767876fada2f28b00283ed9140fca1a40729f38f
2013-10-11 17:04:34 -07:00
Chris Craik
c09127a7c3 Document special case in hasOverlappingRendering
bug:11121809

Change-Id: I074ac47aa510bd2362cfda7dffc73930f07e925c
2013-10-11 17:00:16 -07:00
Joe Malin
45edbb701a DOC CHANGE: FileProvider training class
Change-Id: Idad8840dec02150733f23cfefdeaf152a260f63a
2013-10-11 16:48:18 -07:00
Baligh Uddin
3532cb4bba Import translations. DO NOT MERGE
Change-Id: I66efc38992968ef463f4d02f1af101053adfb41e
Auto-generated-cl: translation import
2013-10-11 16:31:18 -07:00
Baligh Uddin
9c56db19c5 Import translations. DO NOT MERGE
Change-Id: I8d1fd0e44df5ea45d590e675e1f2d0afda54bc69
Auto-generated-cl: translation import
2013-10-11 16:25:46 -07:00
Baligh Uddin
02242ca813 Import translations. DO NOT MERGE
Change-Id: I0ca278dcf2291ed0919f46eeaff99c1ca61969ae
Auto-generated-cl: translation import
2013-10-11 16:21:25 -07:00
Jim Miller
11def8f06a Merge "Delay all widget additions in keyguard until after boot completes" into klp-dev 2013-10-11 21:38:05 +00:00
Jeff Sharkey
12ad9ce23e Merge "Fix spelling." into klp-dev 2013-10-11 21:30:54 +00:00
Svetoslav
33021d95a8 Merge "Adding timeout if the current printer or its capabilities disappear." into klp-dev 2013-10-11 21:30:02 +00:00
Matthew Williams
32551ae519 Merge "Fix infinite boot-loop bug in SM." into klp-dev 2013-10-11 21:26:19 +00:00
Jeff Sharkey
ed74f8eda2 Fix spelling.
Change-Id: Ibcc5a5b976e185c4a6605b18b645b05a5c00f3ec
2013-10-11 14:25:48 -07:00
Robert Greenwalt
c95d938168 Make Wifi Scans more heap-efficient
We were ending up with 1 reference to every char array
in which a new AP was discovered.  In a busy env this could
cost several hundred K from the dalvik heap.

bug:11087956
Change-Id: I3b14c39fd0c98e4aea08a406e80bcf6af40d0664
2013-10-11 14:18:26 -07:00
Jean-Michel Trivi
7a6ccb8729 Merge "Remote volume changes" into klp-dev 2013-10-11 21:12:22 +00:00
Svetoslav
02dded1a63 Adding timeout if the current printer or its capabilities disappear.
If the current printer becomes unavailable or its capabilities
go away we are scheduling a timeout to declare the printer as
unavailable.

bug:10983508

Change-Id: Iab85cfd35fc0cecc3dd4abac6232347f9da18fb0
2013-10-11 14:02:49 -07:00
Chris Craik
c2245e1ac7 Merge "Workaround fading edge incompatibility with alpha modulation" into klp-dev 2013-10-11 20:57:34 +00:00
Svetoslav
3691dd063f Merge "Print spooler not starting." into klp-dev 2013-10-11 20:55:01 +00:00
Matthew Williams
632515b9d0 Fix infinite boot-loop bug in SM.
Bug:11064918
If the ContentResolver sync API is used with the empty ("")
string as a provider, the ContentService will throw an RTE.
This cl addresses all the entry points of the API that could
allow this, as well as adds an ifEmpty check at the point of
failure.
Also removed RTE throws from public functions(no point in
crashing the phone).

Change-Id: I57427d12a6cafb3e6d7a32ca0c10b05315b20580
2013-10-11 13:18:22 -07:00
Chris Craik
7bcde5009d Workaround fading edge incompatibility with alpha modulation
bug:11121809

Fading edges, such as drawn by a scrolling marquee TextView, don't
behave correctly when their view is modulated, as done by the view
system when alpha is set on a view that returns false from
hasOverlappingRendering.

To work around this, always return true from hasOverlappingRendering
if a TextView has horizontal fading edges enabled.

Change-Id: I64c9b8c653aa1d9ca320292306fd24333e3ee225
2013-10-11 12:55:42 -07:00
Craig Mautner
09cb9bdcc8 Merge "Add test for topmost home stack activity being home." into klp-dev 2013-10-11 19:50:03 +00:00
Svetoslav
54adee86af Print spooler not starting.
1. In my previous change I fixed a typo in the Java constant with
   intent action to launch the print dialog but failed to updated
   the print spooler manifest.

2. Removed dead code - the user id is no longer needed since the
   spooler is an app that runs per user. Every user has its spooler.
   This code was not referenced from anywhere.

3. Added a default icon to the print spooler.

4. Fixed a bug where if the print history is empty the UI goes
   to the all pritners activity.

bug:11059554

Change-Id: If74c23b418a8c67620ba14435ee7f3b2c4527099
2013-10-11 12:39:47 -07:00
Scott Main
1001cf21ed am eae969c1: am 439c4b47: am c0da3f1d: media-formats.html: clarify WebP availability
* commit 'eae969c17a6507c6985b5d9be1f6e0523766f6dd':
  media-formats.html: clarify WebP availability
2013-10-11 12:32:48 -07:00
Scott Main
eae969c17a am 439c4b47: am c0da3f1d: media-formats.html: clarify WebP availability
* commit '439c4b4783ec9e800e9a6fd6fc38dd393c41b77b':
  media-formats.html: clarify WebP availability
2013-10-11 12:30:43 -07:00
Scott Main
439c4b4783 am c0da3f1d: media-formats.html: clarify WebP availability
* commit 'c0da3f1d60f99c3188906d429ed38edbdd934f12':
  media-formats.html: clarify WebP availability
2013-10-11 12:27:13 -07:00
Eino-Ville Talvala
cd92588528 DO NOT MERGE: Hide new camera API.
Not yet ready.

Bug: 11141002

Change-Id: I4704bffb9ba36af47a66dc5b49cbba00be623aae
2013-10-11 19:26:08 +00:00
Jeff Sharkey
6e19feb4f3 Merge "Treat dates near epoch as unknown." into klp-dev 2013-10-11 19:18:51 +00:00