36691 Commits

Author SHA1 Message Date
Andreas Huber
783f68398b Fix an artifact of going from off_t to off64_t
Change-Id: I999fb60a290f9b2db5b73bf926392c8f4e1b7829
2010-11-19 10:08:23 -08:00
Andreas Huber
5af53d4363 Merge "Squashed commit of the following:" 2010-11-19 10:07:28 -08:00
Andreas Huber
61c79b6df9 Squashed commit of the following:
commit 610ed879d57785cb0457f7f127889496d325f732
Author: Andreas Huber <andih@google.com>
Date:   Fri Nov 19 09:28:52 2010 -0800

    HTTP header keys are to be treated case insensitive.

    Change-Id: I9690880528a6b0f611958de7996c2753948a03c3

commit 554a2499a293d8d53907d01d972a9cfe9b92738e
Author: Andreas Huber <andih@google.com>
Date:   Fri Nov 19 09:22:45 2010 -0800

    Remove one more legacy "string" implementation.

    Change-Id: I7638d849427a39bbc040082a8663b3b9b81a632b

Change-Id: I626a60abdcd1dd6403be880dad4d0499d77ca71f
2010-11-19 09:36:13 -08:00
Mike Lockwood
49fd5d9957 Remove command line mtp host tool
I don't need this any more, and don't have time to finish nor maintain it.

Change-Id: I35c5d003e1ad163d429832eb1d0c8d880058c7f1
Signed-off-by: Mike Lockwood <lockwood@android.com>
2010-11-19 12:24:03 -05:00
Kenny Root
9c950b41c5 Merge "Use different version of CLDR data in DatePicker" 2010-11-19 09:11:42 -08:00
Scott Main
92d735ac4f Merge "new docs for fragments" 2010-11-19 09:09:33 -08:00
Amith Yamasani
65340f1c41 Merge "Update screen timeout again." 2010-11-19 08:47:36 -08:00
Mike Lockwood
cc34eed58d Merge "PTP: Improve performance and reliability of file importing" 2010-11-19 08:33:21 -08:00
Mike Lockwood
954c267725 PTP: Improve performance and reliability of file importing
Now the file copy is done completely within the media process
rather than pushing data to the client via ContProvider.openFile().

File system writes are now interleaved with USB reads, which allows us
to copy the data faster and prevents the camera from timing out during transfer.

File is automatically inserted in the media provider after a successful import
and a Uri is returned to the client.

BUG: 2994234

Change-Id: Ie75c63da76f623343d3d966c6a707aa1ae871972
Signed-off-by: Mike Lockwood <lockwood@android.com>
2010-11-19 11:30:10 -05:00
Brad Fitzpatrick
251384a759 Merge "Improve performance when getting styled string." 2010-11-19 07:41:39 -08:00
Kristian Monsen
9803d7f870 Merge "Find mime from file extension if the mime is empty" 2010-11-19 06:58:01 -08:00
Kristian Monsen
9d005a1039 Find mime from file extension if the mime is empty
Fix for bug 3170039

Change-Id: I6d32ae157ec276575aad8fbcd73f02c48fe219d0
2010-11-19 14:53:44 +00:00
Henrik Hall
95bc625e29 Enabling cell broadcast (SMS-CB) support in the platform.
Adding a simple API enabling applications to control SMS-CB reception.
Implementing parsing, assembly and dispatching of SMS-CB messages over GSM.

Change-Id: Iee841605a45a3af60c7602af175056afb03a38da
2010-11-19 15:00:00 +01:00
Wu-cheng Li
99a3f3e4e0 Improve camera documentation.
bug:3212606
Change-Id: Iee7106e4665c08a4c75471114010b75d63ac74ce
2010-11-19 16:20:04 +08:00
Jesse Wilson
a8bbc11afc Merge "Decode JSON literal types eagerly and with our own decoder." 2010-11-18 23:09:44 -08:00
Jesse Wilson
9d9b4e70a1 Decode JSON literal types eagerly and with our own decoder.
Previously we relied on Double.parseDouble() to decode tokens. Since
that method is expensive, we deferred calling it unless absolutely
necessary.

Now we decode the literal type immediately. For efficiency we decode
the token right out of the char buffer. This makes things more
complicated but it saves many calls to charAt().

With this change overall performance is 7% faster for JSON documents
cited in the bug.

    benchmark                     run  ms linear runtime                    %
GsonParseFull no switch, no int parse 309 ============================    93%
GsonParseFull                baseline 330 ============================== 100%

http://b/3201883
Change-Id: I436b6769956b1357a17c807a327d3a234691c73f
2010-11-18 23:06:50 -08:00
Xavier Ducrohet
55acd60be3 Layoutlib: support viewkey in include nodes.
When an include tag is parsed, the custom bridge
code never has access to both parsers at the same
time.
The child parser is created out of an in (representing
the layout id), and the code inflating the content of
the include layout doesn't see the parent parser either.

This changeset adds a parser stack in the BridgeContext
in order to allow access to the parent parser when setting
the viewkey. This is only used if the current parser depth
is 1 (top node), as we only want to set the include
node to the top node of the included layout.

Change-Id: I2ac3b72a0c84a269d9019f44f98cbc0b615ab959
2010-11-18 22:17:14 -08:00
Xavier Ducrohet
60899fac2b Merge "Layoutlib: use int[] wrapper to use as map keys." 2010-11-18 21:00:59 -08:00
Dianne Hackborn
f532eec860 Merge "Some work on issue #3201795: Improve transition when keyboard comes up" 2010-11-18 20:05:19 -08:00
Xavier Ducrohet
1fba35011d Merge "Layoutlib: Properly dispose of bitmap delegate." 2010-11-18 20:03:31 -08:00
Dianne Hackborn
8e11ef0d94 Some work on issue #3201795: Improve transition when keyboard comes up
Now try to slide dialogs if they end up moving due to the IME (or
other system things) showing/hiding.  Pretty hackish, but seems to
work.

Change-Id: Icd297e941cf847fa920c9605145c46be63043d52
2010-11-18 19:57:49 -08:00
Xavier Ducrohet
755b46d597 Layoutlib: use int[] wrapper to use as map keys.
This fixes the SlidingDrawer that failed to load.

For some reason, in case of the SlidingDrawer, when the constructor
uses android.R.styleable.SlidingDrawer it's the same values but not
the same instance as the array read from android.R through reflection.

So what works for all other widgets, and has worked since the very first
layoutlib isn't working anymore, and we'll now have to use a wrapper
similarly to what we use in ADT in the project callback.

We should probably provide a single int[] wrapper class in layoutlib
API for all to use.

Change-Id: I4d7d038540f8a24541a588696f1059a020b589e5
2010-11-18 19:51:30 -08:00
Dirk Dougherty
9f7580d8d1 doc change: Docs for SDK Tools r8, ADT 8
Change-Id: I4af977d17d1a505dde2fbc9102abad4e2a0e52b1
2010-11-18 19:40:51 -08:00
Hiroshi Takekawa
dc1a26eb78 StagefrightMediaScanner: Call endFile() for MIDI and OGG files.
addStringTag() caches non-ascii metadata strings for later
processing, and then endFile() will be called at the end of
processFile() to convert non-ascii strings from locale's charset
to utf-8 if required.

Stagefright's processFile() failed to call endFile() when the
processing file is a MIDI file or an OGG file.  This patch fixes
this problem to populate metadata correctly.

Reviewed by: Brad Fitzpatrick, Marco Nelissen.

Change-Id: I072e79d81dce1fec63297d2b5d2b870a72e5b66e
2010-11-19 12:14:37 +09:00
Xavier Ducrohet
5a09488a15 Layoutlib: Properly dispose of bitmap delegate.
This is done by initializing the android.util.Finalizers that's
reponsible for calling out to the native bitmap destructor.
Also implemented the native bitmap destructor

Also fix Bridge by removing obsolete API methods, and removing
some unneeded synchronized blocks now that the whole rendering
(and scene creation) is protected by a synchronized on the bridge
object anyway.

Change-Id: Ie1792da6db354836542dfc11f457fe4a6d78ddfb
2010-11-18 18:26:55 -08:00
Brad Fitzpatrick
82829ef3b7 StrictMode: use Log.isLoggable
Change-Id: Ic28450066a43a168cfe3026d6d4b06b752f8423c
2010-11-18 18:25:29 -08:00
James Dong
71d4ecb185 Merge "64-bit file size/offset support for media framework" 2010-11-18 18:19:30 -08:00
Stephen Hines
9db9a29109 Merge "Remove unnecessary export_func pragma." 2010-11-18 17:48:58 -08:00
Eric Laurent
52aa91b6f8 Merge "Fix issue 3192794." 2010-11-18 17:45:48 -08:00
Adam Powell
0788bc9db2 Merge "Make holo widget styles public" 2010-11-18 17:23:54 -08:00
Eric Fischer
6a8519acea Merge "Add date format strings for the new locales." 2010-11-18 17:20:43 -08:00
Gil Dobjanschi
b9401d9010 Merge "AudioTrack getTimelineDuration clarification." 2010-11-18 17:14:14 -08:00
Eric Fischer
ec5e0cd80a Merge "Import initial translations for 20 new locales." 2010-11-18 17:12:43 -08:00
Wink Saville
4c93d69db6 Merge "Use TextUtils.isEmpty to simplify code." 2010-11-18 17:10:04 -08:00
Stephen Hines
732779a0c0 Remove unnecessary export_func pragma.
Change-Id: Ibe5c5f186cfc12a31f3fb4f0f7472e3b60836394
2010-11-18 17:04:50 -08:00
Irfan Sheriff
19d245b792 Split SupplicantStateTracker and refactor
- Move SupplicantStateTracker into a seperate file. In the
process clean up code that needs to be present only in SupplicantStateTracker

- Retry twice for password failures

- Clean up supplicant state handling. Dont treat supplicant states
as HSM what values. Instead, just retain SUPPLICANT_STATE_CHANGE

- Add event logging in SupplicantStateTracker

- Move scan handling out SupplicantStateTracker

Change-Id: I083e1c40ef5a858164493b1440b82c5751b3bfb5
2010-11-18 16:58:08 -08:00
Adam Powell
113744cef2 Make holo widget styles public
Change-Id: Ibd427601d9eb31b4c832485c8d19191ed08fe245
2010-11-18 16:47:56 -08:00
Amith Yamasani
79373f660b Update screen timeout again.
Bug: 3165933
2010-11-18 16:41:30 -08:00
Alex Sakhartchouk
77df3e1ac6 Merge "Fixing the state restore bug." 2010-11-18 16:39:42 -08:00
Alex Sakhartchouk
2f08ce0332 Fixing the state restore bug.
Change-Id: I30446a2d552b98fc69878bc7b4fc1a0fd358fc99
2010-11-18 16:36:47 -08:00
Eric Laurent
3fc78a59b6 Fix issue 3192794.
Delay uevent registration and initialization or wired accessories state
until boot is completed.

Change-Id: I272fc9fbf6c34e17d211360c30c712f72ac5bb5e
2010-11-18 16:18:27 -08:00
Adam Cohen
51d8b46a8c Merge "Fixing issue #3200503" 2010-11-18 16:15:03 -08:00
Wink Saville
a0d712694a Use TextUtils.isEmpty to simplify code.
Change-Id: I189c7c124419373c747c42504e656343728d0a15
2010-11-18 16:07:42 -08:00
Alex Sakhartchouk
a332678135 Merge "Support for cubemaps." 2010-11-18 15:58:17 -08:00
Mathias Agopian
04d93980ec am 550b1e17: am 671a6ff4: Add support for virtual sensors.
* commit '550b1e17c332b1302299af0b3a8a2fa81d7cde65':
  Add support for virtual sensors.
2010-11-18 15:55:31 -08:00
Eric Fischer
24fcd54c91 Add date format strings for the new locales.
Change-Id: I8fed7d72ebed542084cc9ac39ad20bc1dab71cb3
2010-11-18 15:55:04 -08:00
Mathias Agopian
550b1e17c3 am 671a6ff4: Add support for virtual sensors.
* commit '671a6ff4be11b3e2d8eb017e0c7a78e6133fb2b8':
  Add support for virtual sensors.
2010-11-18 15:52:14 -08:00
Jamie Gennis
d91dfd584f Merge "Set the external display usage bit in Stagefright." 2010-11-18 15:42:59 -08:00
Wink Saville
36d26c9290 Merge "Fix SPN_STRINGS_UPDATED_ACTION." 2010-11-18 15:42:04 -08:00
Mathias Agopian
671a6ff4be Add support for virtual sensors.
Rework sensorservice to allow "virtual sensors", that is
sensors that report a synthetized value based on real sensors.

the main change to sensorservice is around managing which real
sensor need to be activated and which rate to use.

The logic for all this has been moved into SensorDevice, which
essentially wraps the sensor HAL but adds two features to it:
- it keeps track of which sensors need to be activated
- it keeps track of what rate needs to be used

For this purpose an "identity" is associated with each real sensor
activation, so we can track them.

On start-up we check for gravity, linear-acceleration and
rotation-vector sensors, if they're not present in the HAL, we
synthetize them in sensor-service.

Change-Id: I841db2c1b37ef127ed571efa21732ecc5adf1800
2010-11-18 15:29:05 -08:00