114615 Commits

Author SHA1 Message Date
Jeff Sharkey
d99f9caba6 Skip writing PFD status when comm is closed.
If the remote side of PFD has already written a status message, then
they've also closed their end of the comm FD, and we're going to
EPIPE if we try sending our own status.  So, skip writing status if
a remote status is present.

Only one end of the openFile() comm socket needs to be blocking,
otherwise detachFd() would end up blocking forever.

Bug: 11385467
Change-Id: I346d40cc1ca4a6683cec4c2d2b7db2b32ac94a55
2013-10-25 11:34:35 -07:00
Svetoslav Ganov
4d4c66dd38 Update the documentaton of the android.print package.
bug:10551786
bug:10551697
bug:10705082
bug:10741641
bug:11318976
bug:10550979
bug:10551761

Change-Id: I46ceb66a69b6d32d6b417356178f67f2e25e891a
2013-10-25 11:33:34 -07:00
John Spurlock
c19418e3f5 Reset our status bar window fade color on screen off.
Previously, turning the screen off with the panel expanded would
run one time through panelExpansionChanged, leaving the background
in an intermediate state.

This has probably been around for a while, only uncovered now
that we can see it (if the status bar is translucent).

Bug:11357145
Change-Id: I55b768696c8791f82265a61d2c0f665503ad8bb0
2013-10-25 14:25:09 -04:00
Raph Levien
bcd8ad2ed4 am ec646dc9: Merge "Change yMax of Roboto fonts from 2146 to 2163" into klp-dev
* commit 'ec646dc9cf08d288d516521a45f343a0fd529e01':
  Change yMax of Roboto fonts from 2146 to 2163
2013-10-25 11:04:48 -07:00
Raph Levien
ec646dc9cf Merge "Change yMax of Roboto fonts from 2146 to 2163" into klp-dev 2013-10-25 18:03:02 +00:00
Dianne Hackborn
8aee64d18b Fix issue #11290095: Parcel change causing crashing in KLP...
...when reading from empty byte[]

Better handling of empty bundles and parcels.

Change-Id: Ie9182e43a52b8f163e8fb20bd1d110e0832683e6
2013-10-25 10:41:50 -07:00
Adam Powell
fd08694e40 am 215add2e: Merge "Hide TransitionManager default transition methods" into klp-dev
* commit '215add2eb5f1ec6185723465e608fd3bd431dc31':
  Hide TransitionManager default transition methods
2013-10-25 10:06:17 -07:00
Adam Powell
215add2eb5 Merge "Hide TransitionManager default transition methods" into klp-dev 2013-10-25 17:04:09 +00:00
Wink Saville
4bc3565064 am 604cfc2d: Merge "Enhance pin/puk support" into klp-dev
* commit '604cfc2de963c17ed53fef745b93e3afcfd5a5f8':
  Enhance pin/puk support
2013-10-25 09:43:00 -07:00
Adam Koch
625eb8bf9e am 7c900126: Doc fix: update Displaying Bitmaps training class code snippet Bug: 11372790
* commit '7c900126c4591b6ba8e1017f858bf326a4c1b867':
  Doc fix: update Displaying Bitmaps training class code snippet Bug: 11372790
2013-10-25 09:42:56 -07:00
Wink Saville
604cfc2de9 Merge "Enhance pin/puk support" into klp-dev 2013-10-25 16:40:55 +00:00
Adam Koch
7c900126c4 Doc fix: update Displaying Bitmaps training class code snippet
Bug: 11372790

Change-Id: Ifb484b03ac4085eeccadb1602dace37690dc2d6b
2013-10-25 10:14:55 -04:00
Jean-Michel Trivi
0b60534917 Limit RemoteControlClient generation ID changes
At the beginning of each song, the Music app re-registers its
 media button event and requests audio focus, which causes
 the reevaluation of each corresponding stack of clients. Each
 reevaluation is accompanied by the incrementation of the
 RemoteControlClient generation ID, which causes RemoteController
 to issue a notification that the client has changed. The lockscreen
 correctly interprets this as a reason to dump the current
 RemoteControlClient data (including the artwork) because it will
 receive the new data if new one is available. This is what causes
 the "flashing" of the wallpaper on the lockscreen: for an instant,
 no client data is available.
The fix consists in not causing the client generation ID to be
 incremented when registrations don't cause any change in the
 RemoteControlClient stack. Even though Music re-registers everything,
 nothing has changed: it still is the current media button receiver,
 and it still has the same RemoteControlClient.

Bug 11307382

Change-Id: I4d2404b571e88aeedb0eca6bd19d39f7ec4fc8b1
2013-10-24 19:10:24 -07:00
Adam Powell
1e9f3d868b Hide TransitionManager default transition methods
Pending future API consideration.

Change-Id: Ia4b162392e1c96b485bc28781a199bc2979ec53f
2013-10-24 18:54:33 -07:00
Roozbeh Pournader
6a0ef07e1f Change yMax of Roboto fonts from 2146 to 2163
This is needed so that other UI fonts don't clip, since
they have been designed assuming that a yMax of at least
2163 is available to them.

The change is achieved by modifying an invisible tiny
square that already existed at the extrema of the the glyph
for U+FFFD REPLACEMENT CHARACTER that was already the
tallest glyph in the fonts.

Bug: 10699356
Change-Id: Ib03ea071b7a82066cacf2b3ae9769db0c449a479
2013-10-24 18:50:25 -07:00
Jean-Michel Trivi
9c267f8d70 am 5504537e: Merge "Missing LoudnessEnhancer constructor and UUID in public API" into klp-dev
* commit '5504537e74571fc23a1ff029cf8645f07805a1f2':
  Missing LoudnessEnhancer constructor and UUID in public API
2013-10-24 16:44:24 -07:00
Jean-Michel Trivi
5504537e74 Merge "Missing LoudnessEnhancer constructor and UUID in public API" into klp-dev 2013-10-24 23:42:13 +00:00
Adam Powell
1fcdee0d4e am 92da1779: Merge "Fix bug in Scene\'s use of setTag" into klp-dev
* commit '92da1779a932aed9c6ce32c117d0334f8d6a7273':
  Fix bug in Scene's use of setTag
2013-10-24 16:23:38 -07:00
Erin Dahlgren
204b1e2817 am fe470c37: Merge "Have the package manager write mimetype of preferred activities to xml." into klp-dev
* commit 'fe470c37deda6b1d51b0a208ae31e101e90c7e1b':
  Have the package manager write mimetype of preferred activities to xml.
2013-10-24 16:23:34 -07:00
Adam Powell
92da1779a9 Merge "Fix bug in Scene's use of setTag" into klp-dev 2013-10-24 23:21:57 +00:00
Erin Dahlgren
fe470c37de Merge "Have the package manager write mimetype of preferred activities to xml." into klp-dev 2013-10-24 23:21:16 +00:00
Craig Mautner
6f6d56fd4d Do not take screenshots when launching activities...
Unless they are in another task.

Fixes bug 11374158.

Change-Id: I961d4ce9520bc84a182806db2ccb072501c8357a
2013-10-24 16:02:07 -07:00
Adam Powell
f3c1577212 Fix bug in Scene's use of setTag
setTagInternal must be used for framework resource IDs.

Bug 11374402

Change-Id: If4d256dbf05055dac70796edd8d7b94bf65d947d
2013-10-24 16:01:34 -07:00
Jeff Sharkey
180e484ef0 am be416248: Merge "Remove persisted stacks when app removed/cleared." into klp-dev
* commit 'be416248631c001b846297597b25be9bccc960eb':
  Remove persisted stacks when app removed/cleared.
2013-10-24 15:37:45 -07:00
Jeff Sharkey
be41624863 Merge "Remove persisted stacks when app removed/cleared." into klp-dev 2013-10-24 22:32:58 +00:00
Erin Dahlgren
707a59dc9a Have the package manager write mimetype of preferred activities to xml.
Issue: 11372979
Change-Id: I5ea4e94c978845426e2650946d0bba076d161c19
2013-10-24 15:13:39 -07:00
Craig Mautner
052f7f0d4e am 7c2a2ef2: Merge "Track window position with task position." into klp-dev
* commit '7c2a2ef2ee71d65ac43acf3dad95df1629dfc674':
  Track window position with task position.
2013-10-24 14:28:41 -07:00
Craig Mautner
7c2a2ef2ee Merge "Track window position with task position." into klp-dev 2013-10-24 21:26:11 +00:00
Christopher Tate
525322ecba am f9f740da: Merge "Support different watchdog timeouts for different entities" into klp-dev
* commit 'f9f740dae19a63deb92c6bbe5ebeab8c852910a7':
  Support different watchdog timeouts for different entities
2013-10-24 13:55:09 -07:00
Christopher Tate
f9f740dae1 Merge "Support different watchdog timeouts for different entities" into klp-dev 2013-10-24 20:52:23 +00:00
Craig Mautner
77df2ee9de Track window position with task position.
Windows were previously ordered by TaskStack/ActivityStack order. This
change provides a data structure in DisplayContent that tracks task
movement. Previously Recents and Home activity windows were always
adjacent because they were on the same stack. With this change windows
from other activities can be placed between the two.

Fixes bug 11338594.

Change-Id: Ie34443ff22f330d015141d97db79370c54920d28
2013-10-24 12:47:07 -07:00
Aravind Akella
1ba907867d am 28e26eb3: Merge "Fix for ClassCastException in SystemSensorManager." into klp-dev
* commit '28e26eb38d38c5058006f90d5a22347e6186532e':
  Fix for ClassCastException in SystemSensorManager.
2013-10-24 12:36:50 -07:00
Amith Yamasani
d58317b282 am 368daafc: Merge "Only simulate the first click if "Always use" button is available" into klp-dev
* commit '368daafc34de1a7831d485b6a06fbe0d6bcf1cd4':
  Only simulate the first click if "Always use" button is available
2013-10-24 12:32:47 -07:00
Aravind Akella
28e26eb38d Merge "Fix for ClassCastException in SystemSensorManager." into klp-dev 2013-10-24 19:32:01 +00:00
Amith Yamasani
368daafc34 Merge "Only simulate the first click if "Always use" button is available" into klp-dev 2013-10-24 19:21:12 +00:00
Jeff Sharkey
8dd4c1d062 am 5ecfb557: Merge "Long-press on GET_CONTENT app shows its details." into klp-dev
* commit '5ecfb557b1d38537b7a484505b550000980d17f1':
  Long-press on GET_CONTENT app shows its details.
2013-10-24 12:15:40 -07:00
Jeff Sharkey
686fa2db5b am c832ef0d: Merge "Show spinner while waiting for mutations." into klp-dev
* commit 'c832ef0d434f9c3834ef312dcabef43b2787e5ff':
  Show spinner while waiting for mutations.
2013-10-24 12:15:37 -07:00
Jeff Sharkey
5ecfb557b1 Merge "Long-press on GET_CONTENT app shows its details." into klp-dev 2013-10-24 18:23:17 +00:00
Jeff Sharkey
c832ef0d43 Merge "Show spinner while waiting for mutations." into klp-dev 2013-10-24 18:23:11 +00:00
Jeff Sharkey
758f97e46d Remove persisted stacks when app removed/cleared.
When an app's data is cleared, or it's uninstalled, remove any
persisted stacks.

Bug: 11355566
Change-Id: I4e5cf0ec710591ad62f1ad52c2e358616631af41
2013-10-24 11:22:20 -07:00
Craig Mautner
bcd681862d am d0d23f6a: Merge "Disable time consuming debugging code." into klp-dev
* commit 'd0d23f6ae1e289ec781078e7c4d9d733893a5540':
  Disable time consuming debugging code.
2013-10-24 11:01:37 -07:00
Craig Mautner
d0d23f6ae1 Merge "Disable time consuming debugging code." into klp-dev 2013-10-24 17:57:24 +00:00
Adam Lesinski
9137b65cf7 am bb8aae5b: Merge "Improve Jank for translucent activities" into klp-dev
* commit 'bb8aae5b1973b2a94174af475662c02834a8310d':
  Improve Jank for translucent activities
2013-10-24 10:47:11 -07:00
Christopher Tate
e6f81cf1f6 Support different watchdog timeouts for different entities
We need to be able to perform very lengthy operations on some threads
(e.g. the I/O thread responsible for installing multi-gigabyte APKs) but
still have long-run deadlock/hang detection applied to those threads.
Previously the watchdog mechanism applied the same policy to all
monitored threads: unresponsive after 60 seconds => restart the system.

Now, each monitored entity can have its own independent timeout after
which the watchdog declares deadlock and restarts the runtime.  The
halfway-finished intermediate thread stacks are dumped based on the
specific entity's declared timeout, not the global 30 second checking
interval.

With that new mechanism in place, the Package Manager's lengthy-I/O
thread watchdog timeout is raised to 10 minutes.

Bug 11278188

Change-Id: I512599260009c31416b2385f778681e5b9597f05
2013-10-24 10:46:28 -07:00
Adam Lesinski
bb8aae5b19 Merge "Improve Jank for translucent activities" into klp-dev 2013-10-24 17:44:58 +00:00
Daniel Sandler
6714471bff am 9279d45b: DessertCase memory improvements
* commit '9279d45b8d26c88c69fa917816ea396142627020':
  DessertCase memory improvements
2013-10-24 10:42:22 -07:00
Daniel Sandler
9279d45b8d DessertCase memory improvements
- reuse intermediate bitmaps when loading resources
  - only use hardware layers on views that are animating

Bug: 11269977
Change-Id: I39ad7aff16468632da47448404416404f3b54cc4
2013-10-24 17:27:33 +00:00
Craig Mautner
4697bea3fd Disable time consuming debugging code.
Scanning bitmaps for monochromicity takes time. Lots of time. Don't do
it.

Fixes bug 11366278.

Change-Id: I7a8ad42751311fc39efc27fb4c51522fc1ba0523
2013-10-24 09:13:14 -07:00
Baligh Uddin
215f2f83f1 am da13330d: (-s ours) Merge "Import translations. DO NOT MERGE" into klp-dev
* commit 'da13330d9b1dc994ae2ea4e5c39b0f6ff6f87ac9':
  Import translations. DO NOT MERGE
2013-10-23 19:29:34 -07:00
Baligh Uddin
1f067222c6 am ffbc7154: (-s ours) Merge "Import translations. DO NOT MERGE" into klp-dev
* commit 'ffbc7154dc2ee436c7b9efd9a26d0d77b3917c6a':
  Import translations. DO NOT MERGE
2013-10-23 19:29:31 -07:00