38921 Commits

Author SHA1 Message Date
Andreas Huber
54e6649e4c Squashed commit of the following:
commit eaeaa2672d4e0a82891493b2bde8bdd0c0e79a1b
Author: Andreas Huber <andih@google.com>
Date:   Thu Dec 23 10:26:48 2010 -0800

    Remove lowest bandwidth stream if using the legacy player.

    Change-Id: I2f885e26344996de9152f8fda9fd6bdef89bf953

commit 7d652972615b2750fd8f1c21b9fab0e136df2b82
Author: Andreas Huber <andih@google.com>
Date:   Thu Dec 23 10:14:36 2010 -0800

    Don't clear the packet source's format for legacy discontinuities.

    Change-Id: I9bd5a21b9bd28043ad38bd0658ccc8eda3c1079a

commit 2b18a45aac17cbfe1aa089d0f6510957d438dd64
Author: Andreas Huber <andih@google.com>
Date:   Thu Dec 23 10:13:55 2010 -0800

    Use NuPlayer for HTTP live streaming based on runtime property.

    adb shell setprop media.httplive.enable-nuplayer true

    Change-Id: I22738df3403985dc8e6992b1ab5da5747309f773

commit 50d899fb7b9ea52c3994b0a58e993998d926aeed
Author: Andreas Huber <andih@google.com>
Date:   Wed Dec 22 16:25:22 2010 -0800

    Make ACodec a lot less verbose.

    Change-Id: I94c7e499b61032321ffaf999f5ad2c913cde6a48

commit b19e1740cb4d02990a56844654b5d019987c6405
Author: Andreas Huber <andih@google.com>
Date:   Wed Dec 22 16:22:22 2010 -0800

    Wait until we have fresh codec-specific-data before instantiating the decoders

    after a discontinuity involving a format change.

    Change-Id: I7bcf9b5ae3319f08bf8978a117e8ee5220902e37

commit 06428c006906c9099e430aface3b439ff1d36ecc
Author: Andreas Huber <andih@google.com>
Date:   Wed Dec 22 15:20:38 2010 -0800

    Disable random seeks in the streaming tool for now.

    Change-Id: Ie86fde422dcfc4b2c7a01be51a193fda9c88cd71

commit e19db68f3bea8a61c191f60f6940f30e3a0d5f1b
Author: Andreas Huber <andih@google.com>
Date:   Wed Dec 22 15:20:27 2010 -0800

    Tweak HTTP live parameters.

    Change-Id: If4b71e12485facc523a8a43d8213d0feb190daab

commit 1e9942791538c2256b579d96c6c04264b0d8b087
Author: Andreas Huber <andih@google.com>
Date:   Wed Dec 22 14:48:23 2010 -0800

    Enable http live streaming through NuPlayer for http URLs containing the string m3u8

    Change-Id: I1691fe12ae8f1507fe3673313959cd50bc324624

commit 4c33f96a6e499ee0efe0e70b687094430cb7c1c0
Author: Andreas Huber <andih@google.com>
Date:   Wed Dec 22 14:40:27 2010 -0800

    Support for HTTP live streaming in NuPlayer.

    Change-Id: Iacba1c3ebaeb8d3b972185deaf4cff18c8009c54

commit ddf705ce553708bc5b13d89a878484cf839bd674
Author: Andreas Huber <andih@google.com>
Date:   Wed Dec 22 13:42:47 2010 -0800

    StreamingSource now a subclass of abstract NuPlayer::Source

    Change-Id: Ia6c7c639628910b9d1f37decc55da48b07a70de3

commit 9e04a8406b1882a8e3fdeb7b4d52db5ae70b970a
Author: Andreas Huber <andih@google.com>
Date:   Wed Dec 22 13:33:52 2010 -0800

    Refactor media data sourcing to NuPlayer::Source.

    Change-Id: I1db9fb08c4e527bf7b19c29978cf342c2b0a0bc9

Change-Id: I9610a097481dda58f22142eacda3ac2dba0b63f9
2010-12-23 10:27:40 -08:00
Irfan Sheriff
68b9f6f90a Merge "Fix wifi broadcasts" 2010-12-23 09:17:39 -08:00
Kristian Monsen
d486375c14 Merge "Only store Application context" 2010-12-23 07:35:40 -08:00
Shih-wei Liao
113ec8d41b Merge "Clean-up." 2010-12-23 07:08:54 -08:00
Shih-wei Liao
c5300f14ad Clean-up.
Change-Id: I43045da43a5e48e1bf759cd18c1b90d45f243450
2010-12-23 23:07:02 +08:00
Kristian Monsen
6b91b45e31 Only store Application context
Context from an Activity are not meant to be store past the
lifetime of the Activity.

Fix for bug 3306898

Change-Id: Ib2f12cbdc3ec8aa0a6adf4770e6be4569fa6402c
2010-12-23 12:47:39 +00:00
Xavier Ducrohet
71e83ff537 Merge "LayoutLib: improve bitmap support." 2010-12-23 00:13:24 -08:00
Xavier Ducrohet
afd8d608cf Merge "LayoutLib: support for layers." 2010-12-23 00:09:07 -08:00
Jim Miller
f9905b437a New thumbnail generation and centering in RecentApps
This centers the thumbnail in the given glow background and
reduces compositing by one window per recent item.

Change-Id: I228648022e12214fb3d8b66067e214cef5aaf8e9
2010-12-22 21:29:29 -08:00
Dianne Hackborn
dd830c2114 am 60238734: am 2dda21b9: Merge "Another stab at fixing issue #3149290 java.lang.RuntimeException:..." into gingerbread
* commit '6023873463331d30b7ed12942c3323f1b6975ed8':
  Another stab at fixing issue #3149290 java.lang.RuntimeException:...
2010-12-22 18:40:56 -08:00
Dianne Hackborn
6023873463 am 2dda21b9: Merge "Another stab at fixing issue #3149290 java.lang.RuntimeException:..." into gingerbread
* commit '2dda21b93f8a8e0fb70de44eae826bc68349813c':
  Another stab at fixing issue #3149290 java.lang.RuntimeException:...
2010-12-22 18:37:08 -08:00
Dianne Hackborn
2dda21b93f Merge "Another stab at fixing issue #3149290 java.lang.RuntimeException:..." into gingerbread 2010-12-22 18:34:40 -08:00
Dianne Hackborn
7becaeea7b Another stab at fixing issue #3149290 java.lang.RuntimeException:...
...Unable to pause activity
{com.android.settings/com.android.settings.applications.StorageUse}

Change-Id: Ibfa28a1c5af50dd150dfcafe71e905426d312643
2010-12-22 18:29:32 -08:00
Jeff Brown
182f7950b8 Merge "Enable touch splitting by default for Honeycomb apps." 2010-12-22 18:29:19 -08:00
Dianne Hackborn
00ee5b4685 Merge "Fix issue #3299143: Problem report for Hanping Chinese Dictionary Pro" 2010-12-22 17:44:14 -08:00
Dianne Hackborn
3b99ede362 Fix issue #3299143: Problem report for Hanping Chinese Dictionary Pro
Let's not crash if there is no clip.

Change-Id: I295031adf37fdd0997c39a2cffc2c6f602d7694e
2010-12-22 17:37:34 -08:00
Jim Miller
7b3724dd30 Merge "Fix 3298264: Update LockScreen DigitalClock with new font" 2010-12-22 17:35:26 -08:00
Jeff Brown
995e774319 Enable touch splitting by default for Honeycomb apps.
Also fixed some bad comments I noticed along the way.

Change-Id: I4328c8aaa22f48a5c1fd274e889abb7823747330
2010-12-22 17:00:33 -08:00
Jeff Brown
eb9f7a01b0 Fix policy issues when screen is off. (DO NOT MERGE)
Rewrote interceptKeyBeforeQueueing to make the handling more systematic.
Behavior should be identical except:
- We never pass keys to applications when the screen is off and the keyguard
  is not showing (the proximity sensor turned off the screen).
  Previously we passed all non-wake keys through in this case which
  caused a bug on Crespo where the screen would come back on if a soft key
  was held at the time of power off because the resulting key up event
  would sneak in just before the keyguard was shown.  It would then be
  passed through to the dispatcher which would poke user activity and
  wake up the screen.
- We propagate the key flags when broadcasting media keys which
  ensures that recipients can tell when the key is canceled.
- We ignore endcall or power if canceled (shouldn't happen anyways).

Changed the input dispatcher to not poke user activity for canceled
events since they are synthetic and should not wake the device.

Changed the lock screen so that it does not poke the wake lock when the
grab handle is released.  This fixes a bug where the screen would come
back on immediately if the power went off while the user was holding
one of the grab handles because the sliding tab would receive an up
event after screen turned off and release the grab handles.

Bug: 3144874
Change-Id: Iebb91e10592b4ef2de4b1dd3a2e1e4254aacb697
2010-12-22 16:00:21 -08:00
John Reck
ba5c41212f Fix testGetAllVisitedUrls to match BP1 behavior
Bug: 3306953
 Previously with BrowserProvider1 all bookmarks were considered
 visited URLs. Updated Browser.getAllVisitedUrls to match that behavior
 when using BrowserProvider2

Change-Id: I15e6e4e91af4e7d1b21860aabf4ce5a5c6a9d81e
2010-12-22 15:58:21 -08:00
Jaikumar Ganesh
057898a9b5 Enable Bluetooth reverse tethering.
Change-Id: I84a508b64f18a1445b8ac424f2a36d56ef432375
2010-12-22 15:24:18 -08:00
Jaikumar Ganesh
15c7439acb Add TYPE_BLUETOOTH network interface for reverse tethering.
Change-Id: I2aa61ce15f57aea9e8fd3a4cb56799c8bc51e998
2010-12-22 15:24:18 -08:00
Dianne Hackborn
93e7d00f3f am 0dc0dab7: am 3b10aea5: Merge "Improve performance of WindowState.toString()"
* commit '0dc0dab71024e07431eb6d20b6165822da734902':
  Improve performance of WindowState.toString()
2010-12-22 15:00:08 -08:00
Dianne Hackborn
0dc0dab710 am 3b10aea5: Merge "Improve performance of WindowState.toString()"
* commit '3b10aea50c1044ff33d02727829c47c061f6e1c8':
  Improve performance of WindowState.toString()
2010-12-22 14:56:50 -08:00
Irfan Sheriff
b45e726bf5 Fix wifi broadcasts
Add the missing wifi disable broadcast and also send out
supplicant disconnect on shutdown.

Added unit test cases.

Bug: 3294055

Change-Id: Ia56a8ec9d17784c5aac5b8b369c04837f9057c54
2010-12-22 14:43:13 -08:00
Alon Albert
d41fe75f09 Improved ignore-backoff handling
Allow a non-epidited ignore-backoff op to pass through
an expidited backed off op.

To do this, I first refactored the complicated if statement:

            if (best == null
                    || ((bestSyncableIsUnknownAndNotARetry == syncableIsUnknownAndNotARetry)
                        ? (best.expedited == op.expedited
                           ? opRunTime < bestRunTime
                           : op.expedited)
                        : syncableIsUnknownAndNotARetry)) {
                best = op;
                bestSyncableIsUnknownAndNotARetry = syncableIsUnknownAndNotARetry;
                bestRunTime = opRunTime;
            }

Into a more readable:
            boolean setBest = false;
            if (best == null) {
                setBest = true;
            } else if (bestSyncableIsUnknownAndNotARetry == syncableIsUnknownAndNotARetry) {
                if (best.expedited == op.expedited) {
                    if (opRunTime < bestRunTime) {
                        //  if both have same level, earlier time wins
                        setBest = true;
                    }
                } else {
                    if (op.expedited) {
                        setBest = true;
                    }
                }
            } else {
                if (syncableIsUnknownAndNotARetry) {
                    setBest = true;
                }
            }
            if (setBest) {
                best = op;
                bestSyncableIsUnknownAndNotARetry = syncableIsUnknownAndNotARetry;
                bestRunTime = opRunTime;
            }

The refactoring was all done automatically with IntelliJ to avoid human error
in the conversion.

After verifying this code still behaved as expected including the error
condition in the bug, I added handling for the cases when a non-expidited op
may override an expedited op if certain conditions occur, specificaly, if the
expidited op is backed off and the non-expidited op is not.

Finally, refactored to make it testable and added tests and logging.

Bug: 3128963

Change-Id: I131cbcec6073ea5fe425f6b5aa88ca56c02b6598
2010-12-22 14:40:43 -08:00
Vasu Nori
6f35c0ecba fix all flaky tests to make them work consistently.
Change-Id: I688f7e058511089bec7fa21e972e23780604d98a
2010-12-22 14:35:56 -08:00
Jim Miller
3d80811579 Merge "Fix 3290446: Reduce number of recents to fit in a single binder" 2010-12-22 14:27:25 -08:00
Martin Hibdon
760c881a30 Merge "Correctly save Activity's state in saveInstanceState" 2010-12-22 14:08:42 -08:00
James Dong
2116dc91e9 Expose AMRNB/WB and AAC encoder and related file output formats
Cherry-picked from GB

bug - 3305667

Change-Id: I116ba908666d712495a1bd2bcc47c35f274c7fae
2010-12-22 13:42:36 -08:00
Martin Hibdon
6bcda6387f Correctly save Activity's state in saveInstanceState
Prior to this change, saveInstanceState would
call directly to Activity.onSaveInstanceState(),
rather than performSaveInstanceState().
This meant that saveManagdDialogs() was not called,
so Activities running under a LocalActivityManager
do not get their dialogs restored on configuration changes.

Change-Id: Id45110a8716a86958c14f4b1ea5a84c9cdf107f1
2010-12-22 13:05:52 -08:00
James Dong
3d8b073a40 am 27d4ad2a: (-s ours) am 2bf89b21: Merge "Expose AMRNB/WB and AAC encoder and related file output formats - do not merge" into gingerbread
* commit '27d4ad2a5771ad025fa69f64b093d7429d94bfd3':
  Expose AMRNB/WB and AAC encoder and related file output formats - do not merge
2010-12-22 12:44:22 -08:00
James Dong
27d4ad2a57 am 2bf89b21: Merge "Expose AMRNB/WB and AAC encoder and related file output formats - do not merge" into gingerbread
* commit '2bf89b2197674ccc414ea60a61199562df9dc52b':
  Expose AMRNB/WB and AAC encoder and related file output formats - do not merge
2010-12-22 12:40:57 -08:00
James Dong
2bf89b2197 Merge "Expose AMRNB/WB and AAC encoder and related file output formats - do not merge" into gingerbread 2010-12-22 12:38:11 -08:00
Dianne Hackborn
4985874115 Merge "Fix issue #3194697: default orientation for portrait-mode apps on stingray is backward?" 2010-12-22 12:33:40 -08:00
Dianne Hackborn
07f3d66497 Fix issue #3194697: default orientation for portrait-mode apps on stingray is backward?
Change-Id: Ia01963d1dcdda12ef1b4c56af2bd389e5dadbce1
2010-12-22 12:31:31 -08:00
James Dong
d609ca7f6a Expose AMRNB/WB and AAC encoder and related file output formats - do not merge
bug - 3305667

Change-Id: I8f137af7f87cb010f75cae1777b9ec6b6af8214f
2010-12-22 12:12:12 -08:00
Mattias Petersson
658ecc1869 am 2f209e88: am 1622eee2: Improve performance of WindowState.toString()
* commit '2f209e885a86b8396fe1344043cf9858751fcb64':
  Improve performance of WindowState.toString()
2010-12-22 12:04:43 -08:00
Jeff Hamilton
8e5ba659df am 7a9f17c3: am 3ce86481: Remove canBeFormatted().
* commit '7a9f17c3563be3eb5fc0927e20d9bc7ec09e20c3':
  Remove canBeFormatted().
2010-12-22 12:04:32 -08:00
James Dong
6cba61ee68 Merge "Avoid using private Bitmap constructor to generate bitmaps" 2010-12-22 12:03:39 -08:00
James Dong
0e4b535b43 Avoid using private Bitmap constructor to generate bitmaps
bug - 2433195

Change-Id: Ic74225286c9884055ae751cf76a1d65e8e70b3ae
2010-12-22 11:45:42 -08:00
Hung-ying Tyan
33808c6d24 am aec9a33f: am e0bd2688: Merge "Check if VoIP API is supported in SipManager." into gingerbread
* commit 'aec9a33f1cfc7c32690bc8e24aefaeb137ab9859':
  Check if VoIP API is supported in SipManager.
2010-12-22 11:35:14 -08:00
Robert Greenwalt
efe5bd77eb am 46f98746: am 5d0fafe8: Merge "Be sure and report NO_CONNECTIVITY when needed." into gingerbread
* commit '46f987465c1df4ec984e725747d4d79fc592abb7':
  Be sure and report NO_CONNECTIVITY when needed.
2010-12-22 11:35:06 -08:00
Dianne Hackborn
ed4f1cd7c1 am 20c915d8: am 5261cea2: Merge "Fix issue #3224616: TimeUtils.formatDuration() can drop 0s." into gingerbread
* commit '20c915d80356859d8716f014a7d4950f06c38cfc':
  Fix issue #3224616: TimeUtils.formatDuration() can drop 0s.
2010-12-22 11:34:59 -08:00
Jean-Baptiste Queru
56ce933cf1 am b3177c13: (-s ours) am 749c627f: Merge "Support for KSC5601 on SIM."
* commit 'b3177c135bb7a3db3318893335a9ac0bc39d9cf8':
  Support for KSC5601 on SIM.
2010-12-22 11:34:50 -08:00
Simon Wilson
30b25b3e32 am 490db31b: (-s ours) am 0c8ad64d: Merge "fix [3127755] Launcher is missing anti-aliasing" into gingerbread
* commit '490db31b851af9195f8f5bd4c5b21f59be56b207':
  fix [3127755] Launcher is missing anti-aliasing
2010-12-22 11:29:07 -08:00
Mattias Petersson
2f209e885a am 1622eee2: Improve performance of WindowState.toString()
* commit '1622eee2e48678b17a4668641957f09213f98905':
  Improve performance of WindowState.toString()
2010-12-22 11:25:32 -08:00
Dianne Hackborn
3b10aea50c Merge "Improve performance of WindowState.toString()" 2010-12-22 11:21:21 -08:00
Mattias Petersson
1622eee2e4 Improve performance of WindowState.toString()
This fix improves the performance by caching the string that should
be returned, and reuse it next time if possible.
This will make it faster to switch between activities, approximately
half the time to create the new view when changing from landscape to
portrait. Also, the time for starting a new application is be reduced
as WindowState.toString is being called thousands of times in this
case.

Change-Id: I2b8b9bc1e251d1af43b6c85f049c01452f2573a2
2010-12-22 10:42:47 -08:00
Xavier Ducrohet
b1da1afa74 LayoutLib: improve bitmap support.
Change-Id: I703c2bdf51380b54fd5c20b08d3bc74833d9bc6e
2010-12-22 10:30:53 -08:00