36681 Commits

Author SHA1 Message Date
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
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
Adam Cohen
9c295482dd Fixing issue #3200503
-StackView was using the wrong view to draw the click feedback

Change-Id: Ibb0a24af2d740fd1e3f6a6345518d730b66673f4
2010-11-18 15:29:03 -08:00
Alex Sakhartchouk
67f2e442a3 Support for cubemaps.
Change-Id: Iaf6087f614451a8e233b3e5bc49c834ab0ad08ee
2010-11-18 15:27:28 -08:00
Jamie Gennis
b04c150314 Set the external display usage bit in Stagefright.
Change-Id: Ie18fa773fdb83508d96300dd7e4e4c7c3cdc4540
2010-11-18 15:23:47 -08:00
Wink Saville
0fa0d40b25 Fix SPN_STRINGS_UPDATED_ACTION.
Change EXTRA_SHOW_SPN and EXTRA_SHOW_PLMN to be false if spn and plmn
are null or empty respectively. For CDMA EXTRA_SHOW_SPN is always false.

bug: 3191159
Change-Id: Ic13b946cee10b123ec4960f2d22e13c8cb1dd20d
2010-11-18 15:16:42 -08:00
Justin Ho
3d019afcdb am 5e5c2a19: (-s ours) am 80381ab4: Merge "DO NOT MERGE - Updated ringtones for Crespo, fixing looping problem" into gingerbread
* commit '5e5c2a199a9e44ef56c6638a52b9a9153f3d8c0d':
  DO NOT MERGE - Updated ringtones for Crespo, fixing looping problem
2010-11-18 15:10:02 -08:00
Justin Ho
5e5c2a199a am 80381ab4: Merge "DO NOT MERGE - Updated ringtones for Crespo, fixing looping problem" into gingerbread
* commit '80381ab4ed44bd69c3e3464a848ca15851365b03':
  DO NOT MERGE - Updated ringtones for Crespo, fixing looping problem
2010-11-18 15:06:51 -08:00
Justin Ho
80381ab4ed Merge "DO NOT MERGE - Updated ringtones for Crespo, fixing looping problem" into gingerbread 2010-11-18 15:03:39 -08:00
Justin Ho
9b14d1d52a DO NOT MERGE - Updated ringtones for Crespo, fixing looping problem
Change-Id: Id5947197bdb6599bb7a3a15ab1e1a9541a4d31b2
2010-11-18 15:02:18 -08:00
Gil Dobjanschi
a0dfa2cdd8 AudioTrack getTimelineDuration clarification.
Change-Id: I276316e851918df227b7246766916fa8572f1b89
2010-11-18 14:54:02 -08:00
Gil Dobjanschi
23c430ca75 Merge "Added IOException to WaveformData constructor" 2010-11-18 14:47:18 -08:00