7666 Commits

Author SHA1 Message Date
Dianne Hackborn
df89e65bf0 Fix how we hide and show the nav bar.
The PhoneWindowManager is now responsible for hiding and showing
the nav bar.

For hiding, it just moves it off the screen (easy way to get a
nice slide animation on and off).  At the same time, we use a
new WM facility to put up a fake input window to capture all
touch events.

When a touch event is received, we force the system UI to clear
the navigation hiding bit so it will be shown again.

This removes a bunch of code from the system UI for hiding and
showing the nav bar.  Also removes the code calling from userActivity()
to the system UI, which was bad.  (Also no longer using userActivity()
fixes bugs around re-showing the nav bar due to key presses and
other wrong things.)

Change-Id: I8c3174873b5bcaa36a92322a51e8f7993e88e551
2011-10-07 14:32:01 -07:00
Christopher Tate
b317fde4a1 am e47b89ca: Merge "Fix wallpaper restore"
* commit 'e47b89cabe38bb0a711c3b2a87be9696c7a1f074':
  Fix wallpaper restore
2011-10-07 13:38:37 -07:00
Christopher Tate
e47b89cabe Merge "Fix wallpaper restore" 2011-10-07 13:36:09 -07:00
Christopher Tate
bf6ee4f509 Fix wallpaper restore
Following a restore of the wallpaper data files, the settingsRestored()
method was binding the new wallpaper by passing null as the component,
because once upon a time that meant just use the configuration that had
just been loaded from the [newly restored] settings filed.  However, at
some point this broke when the load from settings was made a staging
operation, not also the commitment of the changes.

This CL passes the newly-determined component configuration explicitly
to the bind, overriding the product default that may already have been
emplaced by the time the restore happens.

It also turns off the (minor) debugging that had been enabled in
WallpaperBackupHelper while digging into the issue.

Bug 5416839

Change-Id: I963893c236e24c75d10dde75836805295ea42cbb
2011-10-07 12:37:42 -07:00
Iliyan Malchev
cd041d53e0 am 851a14eb: Merge "Add initialize method to CameraHardwareInterface"
* commit '851a14eb9443996f29617e84dd8b66281876ae8e':
  Add initialize method to CameraHardwareInterface
2011-10-07 09:58:26 -07:00
Tyler Luu
7b6da3c7a2 Add initialize method to CameraHardwareInterface
Add intialize() method to CameraHardwareInterface so we can
return a proper error value to CameraService if open of camera
hardware module fails.

b/5405235

Change-Id: I09c627034ddd22a5753c5163392c4fcff301e0b9
Signed-off-by: Tyler Luu <tluu@ti.com>
Signed-off-by: Iliyan Malchev <malchev@google.com>
2011-10-07 09:24:05 -07:00
Chih-Chung Chang
de21b164b2 am 17f25410: Merge "Allow shutter/recording sound to be adjusted unless it\'s forced."
* commit '17f254105b399c7a4216da2d477e7f9cbdbd7319':
  Allow shutter/recording sound to be adjusted unless it's forced.
2011-10-07 05:46:43 -07:00
Wu-cheng Li
2574798cf1 am 3c02c12c: Merge "Allow Camera.setDisplayOrientation to be called when preview is active."
* commit '3c02c12c73fa8719e49a5da6534750196efe3eba':
  Allow Camera.setDisplayOrientation to be called when preview is active.
2011-10-07 05:46:42 -07:00
Chih-Chung Chang
17f254105b Merge "Allow shutter/recording sound to be adjusted unless it's forced." 2011-10-07 03:20:26 -07:00
Wu-cheng Li
3c02c12c73 Merge "Allow Camera.setDisplayOrientation to be called when preview is active." 2011-10-07 03:08:23 -07:00
Wu-cheng Li
d303362ac2 Allow Camera.setDisplayOrientation to be called when preview is active.
bug:5422679

Change-Id: I4c936ab00428fc158b5947fe8f10b1028869bbdb
2011-10-07 18:01:09 +08:00
Chih-Chung Chang
9143aaafee Allow shutter/recording sound to be adjusted unless it's forced.
Change-Id: I7080d5f50a87f92c8e9395d4cf8f927a6760fa70
2011-10-07 13:39:18 +08:00
Svetoslav Ganov
e99b6895ba am 31743d8c: Merge "Accessibility test automation API not working."
* commit '31743d8cbbd0d54bfe8d2a43154a2b9615c8f282':
  Accessibility test automation API not working.
2011-10-06 17:30:52 -07:00
Svetoslav Ganov
31743d8cbb Merge "Accessibility test automation API not working." 2011-10-06 17:28:51 -07:00
Chia-chi Yeh
0158b427e7 am b7493155: Merge "VPN: temporarily disable the default proxy when VPN is active."
* commit 'b74931559b9e95b22ea632c243acda19fe8ea82c':
  VPN: temporarily disable the default proxy when VPN is active.
2011-10-06 15:32:27 -07:00
Chia-chi Yeh
bb53525152 am 893783ed: Merge "ConnectivityService: detach the logic of global proxy."
* commit '893783ed8768a98cbfea09c4e60093e2580dd22b':
  ConnectivityService: detach the logic of global proxy.
2011-10-06 15:32:26 -07:00
Chia-chi Yeh
b74931559b Merge "VPN: temporarily disable the default proxy when VPN is active." 2011-10-06 15:29:50 -07:00
Chia-chi Yeh
893783ed87 Merge "ConnectivityService: detach the logic of global proxy." 2011-10-06 15:29:43 -07:00
Dianne Hackborn
3c32c7a92e am 85b9edf2: Merge "Fix issue #5371530: SYSTEMUI_FLAG_HIDE_NAVIGATION reasserts itself immediately"
* commit '85b9edf2da0534bc53d139bb88cda8866d265afe':
  Fix issue #5371530: SYSTEMUI_FLAG_HIDE_NAVIGATION reasserts itself immediately
2011-10-06 15:21:12 -07:00
Christopher Tate
2bfbc40a03 am 0ded8c8a: Merge "Prevent concurrent backup operations"
* commit '0ded8c8a563e07b080b8c133cfc81708c55e5bca':
  Prevent concurrent backup operations
2011-10-06 15:18:09 -07:00
Dianne Hackborn
85b9edf2da Merge "Fix issue #5371530: SYSTEMUI_FLAG_HIDE_NAVIGATION reasserts itself immediately" 2011-10-06 15:15:32 -07:00
Dianne Hackborn
9a230e01a1 Fix issue #5371530: SYSTEMUI_FLAG_HIDE_NAVIGATION reasserts itself immediately
This cleans up how ui flags are managed between the client and window manager.
It still reports the global UI mode state to the callback, but we now only clear
certain flags when the system goes out of a state (currently this just means the
hide nav bar mode), and don't corrupt other flags in the application when the
global state changes.

Also introduces a sequence number between the app and window manager, to avoid
using bad old data coming from the app during these transitions.

Change-Id: I40bbd12d9b7b69fc0ff1c7dc0cb58a933d4dfb23
2011-10-06 14:57:37 -07:00
Svetoslav Ganov
b6eca6e669 Accessibility test automation API not working.
1. Due to a previous change that disabled accessibility if not enabled
   and installed serivces are present the automation APIs stopped working
   since they use fake automation service that is not installed.

2. Added clean up of death recipients when binders die.

bug:5374662
bug:5239044

Change-Id: I1f3c8cd1d1c79753a4a64e2b8b2963025abb2939
2011-10-06 14:16:03 -07:00
Christopher Tate
0ded8c8a56 Merge "Prevent concurrent backup operations" 2011-10-06 13:09:52 -07:00
Jeff Sharkey
60e79c4536 am ca35bc5a: Merge "Refine random stats generation."
* commit 'ca35bc5acc80ad1380a9631770f13448677d0d34':
  Refine random stats generation.
2011-10-05 23:40:47 -07:00
Jeff Sharkey
ca35bc5acc Merge "Refine random stats generation." 2011-10-05 23:38:44 -07:00
Jeff Sharkey
293779f9c6 Refine random stats generation.
Offer parameters to pick out specific list of packages, and to change
duration and total data.

Bug: 5416742
Change-Id: I6970a5e76f3198ef23a400c079037212b000ca6b
2011-10-05 23:31:57 -07:00
Michael Jurka
bd1b8bf707 am 093f9b79: Merge "Adding logging to debug widget deletions"
* commit '093f9b79c977cedc7a57ba1ac5884bdea2f74854':
  Adding logging to debug widget deletions
2011-10-05 22:13:19 -07:00
Adam Cohen
7bb9883d05 Adding logging to debug widget deletions
Change-Id: I15a943650f930fd3fb6163c60af85abc2865e684
2011-10-05 18:18:40 -07:00
Eric Laurent
277c13cd13 am 3c892288: Merge "Fix issue 5381089: problem with A2DP music volume"
* commit '3c892288837d165e0273ff1a0f1194c2347d24ac':
  Fix issue 5381089: problem with A2DP music volume
2011-10-05 18:04:52 -07:00
Eric Laurent
3c89228883 Merge "Fix issue 5381089: problem with A2DP music volume" 2011-10-05 18:02:54 -07:00
Eric Laurent
6fccbd04fc Fix issue 5381089: problem with A2DP music volume
This problem only occurs when audio effects are present and
the music volume is applied by one effect engine.
When connecting or disconnecting A2DP, audio effects are moved from
one mixer thread to another. When removed from the source thread,
the effect is stopped but it is not restarted when added to the
destination thread.
This regression was introduced by commit 21b5c47e.

Change-Id: I4cc578d8d760ec65b185032b6fda98c739d331bc
2011-10-05 17:42:25 -07:00
Jeff Brown
b070aff670 am 219f3c71: Merge "Make SENSOR orientation modes trump rotation lock. Bug: 5371750"
* commit '219f3c71269ff0bd8949b88af07f92c4e4eddc67':
  Make SENSOR orientation modes trump rotation lock. Bug: 5371750
2011-10-05 17:27:49 -07:00
Jeff Brown
219f3c7126 Merge "Make SENSOR orientation modes trump rotation lock. Bug: 5371750" 2011-10-05 17:24:29 -07:00
Jeff Brown
4dfce20cac Make SENSOR orientation modes trump rotation lock.
Bug: 5371750

Change-Id: I4d18b6c8ba1de0afd5929ddb8d7123272e35fbe2
2011-10-05 16:12:07 -07:00
Christopher Tate
336a649cd8 Prevent concurrent backup operations
We've seen cases (bug 5417779) where the transport kicked off an immediate
backup operation but then was perfectly content to allow the periodic
timer to start *another* pass concurrently while the first was still in
progress.  This wound up with the backup manager getting mightily
confused and leaking wakelock acquisitions, which is Very Bad(tm).

This patch adds a little bookkeeping so that the backup manager is aware
of backups in flight, and refuses to kick off a new one until the ongoing
one has finished.

Change-Id: If12b54f4db3effc8af36d31c58d8f9b415ddc01e
2011-10-05 16:05:43 -07:00
Mathias Agopian
242ddae76f am 1302d329: Merge "Force a repaint when hwc invalidate hook is called"
* commit '1302d32996100233826598040a8c55bfbecb9322':
  Force a repaint when hwc invalidate hook is called
2011-10-05 15:11:00 -07:00
Mathias Agopian
edaab94c2b Force a repaint when hwc invalidate hook is called
without this prepare() would be called but not set() since the
dirty region is empty.

Change-Id: I038acfbdad4c16015357ccde4d1949391d6f989d
2011-10-05 15:00:22 -07:00
Dianne Hackborn
3f03016ba9 am edc63317: Merge "Always unfreeze display."
* commit 'edc633170fb28fd17395472d000875f19d157e18':
  Always unfreeze display.
2011-10-05 11:26:49 -07:00
Dianne Hackborn
edc633170f Merge "Always unfreeze display." 2011-10-05 11:25:19 -07:00
Dianne Hackborn
eda74be89a am 59ba9856: Merge "Fix issue #5388352: font size change back to normal"
* commit '59ba98565d82fe7542569d1dd0847b47f30655d6':
  Fix issue #5388352: font size change back to normal
2011-10-05 06:37:00 -07:00
Dianne Hackborn
161dc80ea7 Always unfreeze display.
Change-Id: I7a0f3be49fe723fe59cf6268861bc5fe7f49bc62
2011-10-04 19:18:25 -07:00
Dianne Hackborn
59ba98565d Merge "Fix issue #5388352: font size change back to normal" 2011-10-04 18:35:19 -07:00
Dianne Hackborn
09e5b9daf3 Fix issue #5388352: font size change back to normal
This is another place where we are messed up by the stupid default
Configuration having a 1.0 font scale.  Argh.

Change-Id: Iaa2550d4edab92fb8a52f98fbb9fd8ef5fab94b5
2011-10-04 16:32:01 -07:00
Christopher Tate
e706cef1c5 am b5de5985: Merge "Add -nosystem flag to adb backup"
* commit 'b5de598554a97c557a3e0c20c28bbe5454164a6d':
  Add -nosystem flag to adb backup
2011-10-04 16:18:24 -07:00
Christopher Tate
b5de598554 Merge "Add -nosystem flag to adb backup" 2011-10-04 16:16:11 -07:00
Christopher Tate
240c7d2d1f Add -nosystem flag to adb backup
This makes it easy to back up everything that belongs to 3rd party apps, but
nothing that comes with the system per se.  If any system packages are
explicitly named on the command line they will be included in the backup
even if -nosystem was passed.  So, for example, this will back up all 3rd
party apps as well as system settings, but nothing else belonging to
system-deployed apps:

   adb backup -all -nosystem com.android.provider.settings

Bug 5361503

Change-Id: Iebe04b7d7027ca58b9f55e8eb7f219d6cca69269
2011-10-04 15:35:00 -07:00
Jeff Sharkey
3b3f26abb6 am 50a2f8ea: Merge "Read iface stats from single proc file."
* commit '50a2f8ea9d855c58f589cfaa12235a742185021d':
  Read iface stats from single proc file.
2011-10-04 13:53:41 -07:00
Jeff Sharkey
50a2f8ea9d Merge "Read iface stats from single proc file." 2011-10-04 13:52:24 -07:00
Jeff Sharkey
ae2c181083 Read iface stats from single proc file.
When available, use single "iface_stat_all" file instead of reading
values from dozens of files scattered across proc.  Tests to verify.

Bug: 5397840
Change-Id: I0247be518436c1f79b32c4b72216739f49a9e8cc
2011-10-04 13:22:39 -07:00