73488 Commits

Author SHA1 Message Date
Jeff Brown
47847f3f4d Support enabling WAL using a flag when DB is opened.
Using enableWriteAheadLogging() to enable WAL is inefficient because
we previously disabled WAL mode when the database was opened.
Switching from WAL to PERSIST then back to WAL is inefficient
and could slow down application launch time.  It would be better
to leave the database in WAL mode when we open it to begin with.

To do that, we need to know ahead of time whether we will want to
have WAL enabled for the newly opened database.

Using this flag also reduces the chance that we will encounter
an error enabling WAL mode due to there being other open connections
to the database.

Bug: 6124556
Change-Id: I38ec7a528baeda9f1ef77e25e88b3ca4b6296200
2012-03-23 13:26:26 -07:00
Christopher Tate
3c4da3cad0 Merge "Sanity-check backup agent name prior to instantiation" 2012-03-23 13:13:27 -07:00
Christopher Tate
9c2efb35e2 Sanity-check backup agent name prior to instantiation
Fixes a crash that would occur if an app with a pending backup
pass in the pipeline was updated to remove its agent declaration
from the manifest (or other more esoteric ways that a backup
pass was expected to run for an app without their own agent).

Bug 5776591

Change-Id: I5a8bc8c12de6a2bfa82f5093fe3a15b754109ab1
2012-03-23 13:00:05 -07:00
Russell Brenner
b7b3894a8e Merge "Improved comments for vendor fonts xml" 2012-03-23 12:38:38 -07:00
Fabrice Di Meglio
2c4eabced0 Merge "Reduce memory footprint for View (part 2)" 2012-03-23 11:12:29 -07:00
Andreas Huber
8d5986549c Merge "Fix the file mimetype reported by the mpeg4 extractor." 2012-03-23 09:32:56 -07:00
Alex Sakhartchouk
00da68de8e Merge "Wrapping new api's with proper RS_VERSION" 2012-03-23 09:08:10 -07:00
Alex Sakhartchouk
f8338c40b7 Merge "More rearrangement and renaming." 2012-03-23 09:07:46 -07:00
Andreas Huber
6f64c90c84 Fix the file mimetype reported by the mpeg4 extractor.
Change-Id: I72474c17757dba5867f55b0e99e76e9e4e32ce7b
related-to-bug: 6217289
2012-03-23 08:39:04 -07:00
Colin Cross
2e842a58eb Merge "frameworks/base: move Zip* from libandroidfw to libutils" 2012-03-22 23:15:31 -07:00
James Dong
9346c28c82 Merge "Change Android.mk file to use the new location after /frameworks/media/libvideoeditor source files are moved" 2012-03-22 23:07:13 -07:00
satok
460f457e4a Merge "Re-start input when the IME is deactivated but window is focused" 2012-03-22 22:48:24 -07:00
Romain Guy
4d992dbe41 Merge "Don't make GLRenderer aware of GLES20Renderer" 2012-03-22 19:19:02 -07:00
Romain Guy
5d6999e1ca Don't make GLRenderer aware of GLES20Renderer
Change-Id: Ic9bab34070a3046b9252f6fd576b4d40553374fc
2012-03-22 19:16:40 -07:00
James Dong
798cda73e1 Change Android.mk file to use the new location after /frameworks/media/libvideoeditor source files are moved
o related-to-bug: 6214141

Change-Id: Ic9f07a8558e944237ccaba4f756fcab59f84e78f
2012-03-22 19:11:43 -07:00
Jeff Brown
19c9d98e90 Merge "Do not enable WAL mode for the WebView database." 2012-03-22 18:54:45 -07:00
Colin Cross
a982dc05d7 frameworks/base: move Zip* from libandroidfw to libutils
ZipUtils is needed by build/tools, move it from libandroidfw
(frameworks/base) to libutils (frameworks/native).

Change-Id: I2b4b7adcdf68eb25ee7cba5dd3b69eadf0523af3
2012-03-22 18:43:07 -07:00
Jeff Brown
9ac2d3bcde Do not enable WAL mode for the WebView database.
There is no need to enable WAL for the WebView database because it
does not require high throughput.

Enabling WAL increases memory usage and can also cause problems if
the same database is opened in multiple processes, which can happen
if an application has UI code running in multiple processes.  Normally,
we would use a content provider to ensure that the database is only
opened within one process (and then accessed remotely view RPC), but
we can't do that for WebView because it is part of the framework.

Deleted the call to setLockingEnabled.  It does nothing.

Bug: 6124556
Change-Id: Ic397c74872fe6b1246da0c859eab0d5147045c86
2012-03-22 18:11:55 -07:00
Craig Mautner
54c546223c Merge "Separate animation into separate class." 2012-03-22 17:15:17 -07:00
Alex Sakhartchouk
dc60cc4253 Wrapping new api's with proper RS_VERSION
Change-Id: Ib8656cb2b6d0b8adeab15edfd704620451ce56ad
2012-03-22 16:59:38 -07:00
Craig Mautner
764983d169 Separate animation into separate class.
Introduction of the class WindowAnimator which takes care of all
animations stepping and Surface operations.

Change-Id: I78f1c269fa57df0616c08adbe156e3059709ae48
2012-03-22 16:46:01 -07:00
Mike Lockwood
8dde7e29fb Merge "Merge remote-tracking branch 'goog/ics-aah-exp' into merge" 2012-03-22 15:47:49 -07:00
Glenn Kasten
8b80a7ea8d Merge "AudioFlinger does not need libmedia any more" 2012-03-22 15:46:16 -07:00
Adam Powell
dd6dc5fcec Merge "Let users reach app details from ResolverActivity" 2012-03-22 15:33:11 -07:00
Mike Lockwood
fad55222db Merge remote-tracking branch 'goog/ics-aah-exp' into merge 2012-03-22 15:32:51 -07:00
Jeff Sharkey
6143f31537 Merge "NetworkPolicy multi-user tests." 2012-03-22 15:29:40 -07:00
Adam Powell
2d80962b2e Let users reach app details from ResolverActivity
A long press on a list item in ResolverActivity (shown when users are
asked to choose an activity to complete an action) will now open
the app detail settings for the package providing that item.

This is a work in progress; awaiting more UX input on other changes
and better discoverability of this feature.

Change-Id: I2cc07c5520fdd23cf1a43f169b114295f5d9d0ac
2012-03-22 15:29:37 -07:00
Glenn Kasten
c920dee060 AudioFlinger does not need libmedia any more
Change-Id: Ifd2c61882109ec36ca68072a2bf6506e08c8cf34
2012-03-22 15:24:22 -07:00
Jeff Sharkey
cae04a29da NetworkPolicy multi-user tests.
Bug: 6214004
Change-Id: If13023a689dadfefe1475e0ef2f192922f2e7753
2012-03-22 15:18:57 -07:00
Mike Lockwood
ced11a5bc4 Merge changes I35a76a27,I04bb7ad4,If38a1a10,Ice5be6e5,I009e443f,I968ddf90,I69d4e518,I09b1dfc9
* changes:
  Merge commit '74803dc'
  add config_bluetooth_default_profiles config var and use it to disable bt profiles
  Do not allow Surface creation on machines without SurfaceFlinger We will fail later anyways, but this change makes it much easier to track down places where we are inadvertently doing operations that depend on the flinger.
  fix setting only usb mode
  Detect (at runtime) kernel support for the "hdmi_audio" switch.
  Add a config resource to disable key-chord screenshotting
  Do not assume that there is always a running activity (Necessary for headless devices)
  Add batch volume adjust support to adjustMasterVolume() in AudioManager and AudioService.
2012-03-22 15:16:03 -07:00
Mike Lockwood
1c8e0a074b Merge "Fix Audio ramping code" 2012-03-22 15:14:29 -07:00
Mike Lockwood
ca1f596677 Merge changes Ifbc8b4dd,I96a4e3bf
* changes:
  Add config_wifi_driver_stop_delay to public.xml to fix build
  WifiStateMachine: Move wifi teardown delay to a framework resource
2012-03-22 15:14:05 -07:00
Mike Lockwood
11c0ab9a08 Merge "ActivityManagerService: Disable app crashed dialog on headless builds" 2012-03-22 15:13:20 -07:00
Amith Yamasani
ad812a23df Merge "Package restrictions per user" 2012-03-22 15:11:51 -07:00
Mike Lockwood
1b6989cdc2 Merge commit '74803dc'
Change-Id: I35a76a27390c75a47e6387fb0ee853a5a689a56f
2012-03-22 15:09:52 -07:00
Travis Geiselbrecht
a91da5da56 add config_bluetooth_default_profiles config var and use it to disable bt profiles
For devices that don't care about the previously default bluetooth profiles,
add a config var to disable them.

Change-Id: I04bb7ad4b1235bc37227645f472fdf5b918f6a31
2012-03-22 15:09:44 -07:00
Kevin Hester
b85c933d85 Do not allow Surface creation on machines without SurfaceFlinger
We will fail later anyways, but this change makes it much easier to track
down places where we are inadvertently doing operations that depend on the
flinger.

Change-Id: If38a1a10061a594dba5c220a86b32eec7b5ec901
2012-03-22 15:09:40 -07:00
RoboErik
dab2072365 fix setting only usb mode
If you cleared the last usb mode it would fail (and so would setting
it if you started with none). This fixes it to set and unset the
last property correctly.

Change-Id: Ice5be6e57b6ca6b8c9241b0ac62071a3bc72606a
2012-03-22 15:09:36 -07:00
John Grossman
5e64321ebf Detect (at runtime) kernel support for the "hdmi_audio" switch.
A new switch was introduced in AndroidAtHome to deal with a race
condition between the WiredAccessoryObserver and the HW composer HAL.
When the new switch ("hdmi_audio") is present, we want to pay
attention to it instead of paying attention to the old switch
("hdmi").  This change checks at startup for the presence or absence
of the new switch and uses it if available, otherwise it falls back on
classic behavior.

see change ID I960cfc2f3e8df5342e7248a26fd313fdad2ca322 for the kernel
side changes.

see bug 6023647 for a discussion of the issue.

Change-Id: I009e443f25662e7beb233e892ca71034b05ebfc2
Signed-off-by: John Grossman <johngro@google.com>
2012-03-22 15:09:29 -07:00
Christopher Tate
e90585f89d Add a config resource to disable key-chord screenshotting
The key chord screenshot mechanism introduces significant latency into
processing of volume-key input; enough to be quite noticeable and
annoying on some kinds of device.  This patch introduces a new config
resource entry ("config_enableScreenshotChord"), true by default, so
that products on which this functionality is inapplicable can avoid
its runtime overhead.

Bug 6039047

Change-Id: I968ddf9046741da35988310b7893fae2c0369beb
2012-03-22 15:09:25 -07:00
Kevin Hester-Chow
d87a9be444 Do not assume that there is always a running activity
(Necessary for headless devices)

Change-Id: I69d4e518df99a02f2fbf19a9d86a693cea292f80
2012-03-22 15:09:21 -07:00
Lei Zhang
6c798970cc Add batch volume adjust support to adjustMasterVolume() in AudioManager and
AudioService.

Change-Id: I09b1dfc93f14ca836e1ba2a400c00caed01fd541
2012-03-22 15:09:18 -07:00
RoboErik
24b082f87e Fix Audio ramping code
The audio ramping was being ignored and we were always adjusting
by the same amount.

Change-Id: Id4a6587fd488132816ae26776c0f798782470b1d
2012-03-22 15:09:12 -07:00
Mike Lockwood
c1c0ced669 Add config_wifi_driver_stop_delay to public.xml to fix build
Change-Id: Ifbc8b4dd97f20a343119b414423fdb609331e482
Signed-off-by: Mike Lockwood <lockwood@google.com>
2012-03-22 15:09:09 -07:00
Mike Lockwood
09a12bcfab WifiStateMachine: Move wifi teardown delay to a framework resource
Bug: 5931171

Change-Id: I96a4e3bf1d044ea4a4d2955775703b6f0ce862ed
Signed-off-by: Mike Lockwood <lockwood@google.com>
2012-03-22 15:09:05 -07:00
Mike Lockwood
86548c472a ActivityManagerService: Disable app crashed dialog on headless builds
Change-Id: I78bf2cb2cd9f99db57f447b7bfaca80c4fefbd66
Signed-off-by: Mike Lockwood <lockwood@android.com>
2012-03-22 15:09:00 -07:00
Jeff Brown
df78cd5ee9 Merge "Work around problems changing the database journal mode." 2012-03-22 15:07:48 -07:00
Jeff Brown
d67c8c6789 Work around problems changing the database journal mode.
Because we always disable WAL mode when a database is first opened
(even if we intend to re-enable it), we can encounter problems if
there is another open connection to the database somewhere.
This can happen for a variety of reasons such as an application opening
the same database in multiple processes at the same time or if there is a
crashing content provider service that the ActivityManager has
removed from its registry but whose process hasn't quite died yet
by the time it is restarted in a new process.

If we don't change the journal mode, nothing really bad happens.
In the worst case, an application that enables WAL might not actually
get it, although it can still use connection pooling.

Bug: 6124556
Change-Id: Ia2ffdbbc8f82721b170f3bf71bd5242dfd56d9ac
2012-03-22 14:53:01 -07:00
Andreas Huber
4355b001cb Merge "Use NuPlayer for media playback everywhere" 2012-03-22 14:00:53 -07:00
Wink Saville
3558486c13 Merge "Telephony: Move Cat to IccCard" 2012-03-22 13:54:09 -07:00