19535 Commits

Author SHA1 Message Date
Nick Kralevich
34c47c8558 Don't rely on the system locale for converting to/from bytes.
By default, when java converts Strings to bytes, it uses the
default system locale.  This can be specified by the -Dfile.encoding
option.  If no file encoding is specified, java uses ISO8859_1.

Unfortunately, not all unicode characters can be mapped to
ISO8859_1.  Unmappable characters may be replaced by a byte
within ISO8859_1, which may change the meaning of the String.
This is especially problematic for password strings, and has
been used to compromise the security of passwords in the
past.

Thankfully, Android uses UTF-8 by default, so this bug doesn't
effect Android devices.  However, it's recommended to explicitly
list the character set when converting to/from bytes to
avoid the potential ambiguity.

Change-Id: Iec927e27ed3fc103696c439f6bd3e8779a37ade8
2010-03-10 11:25:53 -08:00
Andreas Huber
15b3287994 Merge "Use a more descriptive user-agent string (similar to PV's before) in stagefright http requests." 2010-03-09 09:09:27 -08:00
Leon Scroggins
3dc02fecbe For flash trackball, send several downs followed by a single up.
Change-Id: I2ca892bc409372ab1389f2da8254f13b2d84351c
2010-03-09 11:27:34 -05:00
Steve Block
33d1fdd6aa Merge "Removes from DumpRenderTree the superfluous result file for tests that time out." 2010-03-09 07:02:18 -08:00
Cary Clark
31b8367570 requestChildRectangleOnScreen takes layers into account
Call native LayerAndroid::subtractLayers so
the layers can be removed from the visible portion of the screen
when computing how much to scroll.

companion fix in external/webkit

Change-Id: Ib441b826ab5b2baaba20f41f392848a28a9e09ee
http://b/2453841
2010-03-09 10:00:30 -05:00
Steve Block
5ac2a3bd69 Removes from DumpRenderTree the superfluous result file for tests that time out.
This file is currently not used. Tests that time out are reported as failures.

Also fixes naming in code for tests that have no text results.

Change-Id: I6412db4dcf9884abdc80f5cff525ef9431bad001
2010-03-09 14:36:00 +00:00
Steve Block
8e461c9add Merge "Removes regex tests from the DumpRenderTree skipped list" 2010-03-09 05:42:09 -08:00
Steve Block
9902279abb Removes regex tests from the DumpRenderTree skipped list
It looks like these were previously exluded due to taking too long. However,
they run in a reasonable time on passion.

Also removes AppleScript from the skipped list, as this directory no longer exists.

Change-Id: I98e3d0b3222dcd79287b15c512430341fab4f0f8
2010-03-09 12:29:59 +00:00
Steve Block
9b90a7e842 Merge "Add shared workers tests to DumpRenderTree skipped list" 2010-03-09 04:25:13 -08:00
Steve Block
432e0eade7 Add shared workers tests to DumpRenderTree skipped list
Change-Id: I307bf718253ad3e340d3a95b1056523f37d150be
2010-03-09 12:20:48 +00:00
Brad Fitzpatrick
1bd62bd3ca Cache hot settings in-memory in the SettingsProvider.
This brings down Settings lookups to 0.5 ms on sholes.  (down from
~10.5 ms originally, and ~2.5 ms after the ContentProvider.call()
interface)

Change-Id: Ibde7c3d21e0b0e5714714a2075f314726edfc19d
2010-03-08 22:20:43 -08:00
Brad Fitzpatrick
f19d43d880 Merge "Fix Parcel leak in ContentProvider.call()" 2010-03-08 22:18:52 -08:00
Brad Fitzpatrick
dfb437e17c Fix Parcel leak in ContentProvider.call()
This manifested itself as memory allocation and Binder failures during
my load testing / benchmarking.

BUG=2498615

Change-Id: I260fd916f97777fc98bee98d10474f12deb21dee
2010-03-08 22:12:49 -08:00
Dmitri Plotnikov
4a8a310aae New (hidden) API for ContactsProvider status.
Bug: 2498528
Change-Id: I95ab8b68c3d3caa5698e79c60ccb9794091e8b8a
2010-03-08 19:43:21 -08:00
Mathias Agopian
85b8d12207 improve SF logging/debugging a little bit
Change-Id: I6a57f89c25defc293fd748cc1fbd710031c02ec2
2010-03-08 19:30:56 -08:00
Dan Morrill
50ab63f583 Adding definitions & APIs for features that are newly-optional in FroYo.
This also refactors the files containing the features so that they are more
modular. Note that this also changes data/etc/Android.mk so that
required_hardware.xml is NOT copied automatically for all devices
anymore. Accordingly, that file is removed.
2010-03-08 19:28:28 -08:00
Mathias Agopian
8d8a915a93 Merge "Fix a small bug where we could compute SharedBufferStack's tail incorrectly." 2010-03-08 19:24:27 -08:00
Mathias Agopian
4119c54302 Fix a small bug where we could compute SharedBufferStack's tail incorrectly.
Also add "tail" to the debug dump().

Change-Id: I04b1ea375dfc9ddcc22f0c6b6cd01300e507572e
2010-03-08 19:23:26 -08:00
Dan Egnor
ca14320fa2 Merge "More consistent and clear traces.txt reporting." 2010-03-08 19:23:01 -08:00
Dan Egnor
efd1393801 More consistent and clear traces.txt reporting.
Print ANR traces.txt even if it's old.
Print more detailed error messages about VM trace dumps.

Change-Id: I067c90b8f3b3647b6136528eff3120e6cfea5715
2010-03-08 19:21:32 -08:00
Adam Powell
eb6a592a28 Merge "Fix issues with ListView.smoothScrollBy" 2010-03-08 19:11:16 -08:00
Adam Powell
029cfbd6f2 Fix issues with ListView.smoothScrollBy
Change-Id: I4a2752c56a1d2ad3227644f764d6be7a02c9eb8d
2010-03-08 19:07:14 -08:00
Jean-Baptiste Queru
2e2096fc08 Add comments in CleanSpec.mk
Change-Id: Iaa1f9f38c0e621d2988e341a5fcff3164a62cf66
2010-03-08 18:11:37 -08:00
Dmitri Plotnikov
c4e26a5c99 Merge "Showing phonetic name in the contact header." 2010-03-08 18:04:24 -08:00
Chia-chi Yeh
3eeffc1857 Merge "keystore: add AID_ROOT into the user table." 2010-03-08 17:50:56 -08:00
Romain Guy
56ec3c888a Merge "Fix scrolling bug in AutoCompleteTextView. Bug #2495033" 2010-03-08 17:46:36 -08:00
Romain Guy
3e14168500 Fix scrolling bug in AutoCompleteTextView.
Bug #2495033

This fixes various issues. ACTV would sometimes not update its popup to match
its size/location.

Change-Id: Ic662bddf40e49b09482b15ff91666be3709da1d5
2010-03-08 17:44:40 -08:00
Chia-chi Yeh
4165dd2159 keystore: add AID_ROOT into the user table.
Change-Id: I4b9cf24d75ca79583d7913bbb2c33745a2316cde
2010-03-09 09:44:07 +08:00
The Android Open Source Project
9161e202d1 merge from open-source master
Change-Id: I66d3db4c9ed3f54ce17a8d64ca0c6cce6941cdaa
2010-03-08 17:14:25 -08:00
Daniel Lehmann
f1f90d4aba Merge "Expose the Uri of the newly created contact Bug: 2448065" 2010-03-08 17:10:03 -08:00
Eric Fischer
2ba1af34f9 Merge "Guard against calls to getTextAfterCursor() in text that has no cursor." 2010-03-08 16:59:48 -08:00
Andreas Huber
29a02a95cb Use a more descriptive user-agent string (similar to PV's before) in stagefright http requests.
Change-Id: I4e8ea856327bdb65989f75dab3673baeaf9637c8
2010-03-08 16:50:44 -08:00
Dianne Hackborn
2509d3c11f Clear active password in device admin when password is cleared.
Fixes issue #2480213: DevicePolicyManagerService returning true
for isActivePasswordSufficient even though the current password
on the device is not sufficient.

Change-Id: I3cb11311d8696670726d969712a63a7c00cd1ce4
2010-03-08 16:48:23 -08:00
Eric Fischer
1127895fd4 Guard against calls to getTextAfterCursor() in text that has no cursor.
Act like the cursor is at 0 in this case instead of crashing.

Bug 2497485

Change-Id: I5ce9b83b323d895e3be75e3133ff2f8e33cc203d
2010-03-08 16:38:03 -08:00
Tom Taylor
823961a319 Merge "Remove mms-common library" 2010-03-08 16:35:38 -08:00
Robert Greenwalt
a9729deb9c Merge "Update the Mcc Table for Canada." 2010-03-08 16:35:13 -08:00
Tom Taylor
a87afd07c0 Remove mms-common library
Put the Mms files back in the framework where they've been since 1.0.

Change-Id: I3c449468053ddd82d35c45a06d71957de660bf99
2010-03-08 16:34:53 -08:00
Wu-cheng Li
27dd40bc27 Merge "Add camera parameter string constant for "true"." 2010-03-08 16:31:57 -08:00
Robert Greenwalt
e640a5aee4 Update the Mcc Table for Canada.
Changing the mnc length from 2 to 3.  We don't have any canandian APNs with 2 digit mncs
and wikipedia doesn't list any canadian carriers with 2 digit mncs.

Rogers was reporting some sims with 72 and others with the correct 720 - a sample "72" sim
didn't have the mnc-length field set so we went with 2.  With this fix all rogers sims will
be picked up correctly.
2010-03-08 16:26:34 -08:00
Dmitri Plotnikov
aeae357f63 Showing phonetic name in the contact header.
Change-Id: I83f608ddf3a01ba6c29687f9e78212800e4ad4b1
2010-03-08 16:05:41 -08:00
Andreas Huber
147113ee54 Merge "The audio track was accidentally not participating in the prefetch since it wasn't started at the time prepare() was called. Also, properly report the cached duration even near the end when the source has no more data to fetch." 2010-03-08 16:02:16 -08:00
Andreas Huber
dc9927d464 The audio track was accidentally not participating in the prefetch since it wasn't started at the time prepare() was called. Also, properly report the cached duration even near the end when the source has no more data to fetch.
Change-Id: I66a92fec24c9bfb25f1c186f1c877127bae2b4f9
related-to-bug: 2444425
2010-03-08 15:46:13 -08:00
Amith Yamasani
156c435455 Move lockscreen settings to secure table to prevent tampering. b/2343673
Migrate old settings to secure on upgrade.
2010-03-08 15:42:48 -08:00
Mathias Agopian
9e7b076cad Merge "fixes for [2474091] Saw Poor behaviour playing a video." 2010-03-08 15:35:44 -08:00
Wu-cheng Li
d9ef5d7f13 Add camera parameter string constant for "true".
bug:2458926
Change-Id: I11eaae8ff031765e23f2627ded5873eabc09cead
2010-03-08 15:28:48 -08:00
Daniel Lehmann
b1b1371150 Expose the Uri of the newly created contact
Bug: 2448065

Change-Id: Ie1de3c02981ae471b7772cac289a07f0fc870f31
2010-03-08 15:14:19 -08:00
Dianne Hackborn
453e60db6e Merge "Hold wake lock while shutting down." 2010-03-08 14:58:25 -08:00
Romain Guy
31e78e0725 Merge "Report scroll events from ScrollView and HorizontalScrollView. Bug #2342763" 2010-03-08 14:44:00 -08:00
Andreas Huber
0e0b0c9e3d Merge "Apparently a MemoryHeapPMem must be slap()ed for SurfaceFlinger to use the contained buffers." 2010-03-08 14:29:38 -08:00
Andreas Huber
4c987433da Apparently a MemoryHeapPMem must be slap()ed for SurfaceFlinger to use the contained buffers.
Change-Id: I86916a14c6cf9e65145711c6ded433b864f84456
related-to-bug: 2474091
2010-03-08 13:43:35 -08:00