42957 Commits

Author SHA1 Message Date
Andreas Huber
7765c65dbe Merge "Linux sockets suck, closing a socket descriptor does not abort pending recv/send calls." into honeycomb 2011-01-26 11:24:13 -08:00
Andreas Huber
2ffbb18053 Protect notification callback parameters with a mutex.
This avoids the race condition where notifications are dispatched to a NULL receiver
after notifications have been disabled.

Change-Id: I6d351ffbee97616e2c35559c132a6c5e6a66948a
related-to-bug: 3394139
2011-01-26 11:20:42 -08:00
Jean-Michel Trivi
2ba92c71b5 do not merge bug 3370834 Cherrypick from master
Cherripick from master CL 79833, 79417, 78864, 80332, 87500

Add new audio mode and recording source for audio communications
 other than telelphony.

The audio mode MODE_IN_CALL signals the system the device a phone
 call is currently underway. There was no way for audio video
 chat or VoIP applications to signal a call is underway, but not
 using the telephony resources. This change introduces a new mode
 to address this. Changes in other parts of the system (java
 and native) are required to take this new mode into account.
The generic AudioPolicyManager is updated to not use its phone
 state variable directly, but to use two new convenience methods,
 isInCall() and isStateInCall(int) instead.

Add a recording source used to designate a recording stream for
voice communications such as VoIP.

Update the platform-independent audio policy manager to pass the
 nature of the audio recording source to the audio policy client
 interface through the AudioPolicyClientInterface::setParameters()
 method.

SIP calls should set the audio mode to MODE_IN_COMMUNICATION,
 Audio mode MODE_IN_CALL is reserved for telephony.

SIP: Enable built-in echo canceler if available.
1. Always initialize AudioRecord with VOICE_COMMUNICATION.
2. If echo canceler is available, disable our echo suppressor.

Note that this CL is intentionally not correcting the
 getAudioSourceMax() return value in MediaRecorder.java as the
 new source is hidden here.

Change-Id: Ie68cd03c50553101aa2ad838fe9459b2cf151bc8
2011-01-26 11:20:01 -08:00
Jason Sams
ca11318ac0 DO NOT MERGE
Remove the rs_quaternion functions until mr1

Change-Id: I1c48624a308ce6f5c4a13215170f34c810b4cf00
2011-01-26 11:16:23 -08:00
JP Abgrall
1436341b4f Merge "dumpstate: improved collection, better error handling." 2011-01-26 11:13:28 -08:00
Andreas Huber
d030359ff1 Merge "Instead of not feeding the AudioTrack any data after EOS, play silence instead." into honeycomb 2011-01-26 11:11:50 -08:00
Kenny Root
7dbf0696ef resolved conflicts for merge of 2c1d0967 to honeycomb-plus-aosp
Change-Id: Ie9b0166b0260ee7eea7bdd275e64f2714024bf1c
2011-01-26 11:10:36 -08:00
Kenny Root
2c1d0967ba Merge "Make ObbActionListener a on-way call" into honeycomb 2011-01-26 11:01:14 -08:00
Romain Guy
f5240cddbd am 7c55da5d: am f5b27e35: Merge "Fix NPE in YouTube. Bug #3385339" into honeycomb
* commit '7c55da5db50400400efbcd53a5cdc1a79c04cc63':
  Fix NPE in YouTube. Bug #3385339
2011-01-26 10:59:11 -08:00
JP Abgrall
8935bcacd2 dumpstate: improved collection, better error handling.
- Some of the commands used by dumpstate, which drops root, will not collect
anything during a bug report. E.g. df fails on /mnt/secure/asec.
- force flushing of error message
  . without the flush (using gingerbread and not master)
     *** netcfg: Exit code 255
  . with the flush()
     *** exec(netcfg): Permission denied
     *** netcfg: Exit code 255
- add a check before using WEXITSTATUS()

Change-Id: Ia3924b9cc8a12cecab894cbf7f2c79614a358d34
Signed-off-by: JP Abgrall <jpa@google.com>
2011-01-26 10:58:29 -08:00
Romain Guy
7c55da5db5 am f5b27e35: Merge "Fix NPE in YouTube. Bug #3385339" into honeycomb
* commit 'f5b27e35c1e0e46ffd882606d0783875e1a1ff7b':
  Fix NPE in YouTube. Bug #3385339
2011-01-26 10:56:08 -08:00
Romain Guy
d30b36d3cd Fix NPE in YouTube.
Bug #3385339

Change-Id: Id7b307994e343cdb808161a7fae590536f04252e
2011-01-26 10:54:43 -08:00
Romain Guy
f5b27e35c1 Merge "Fix NPE in YouTube. Bug #3385339" into honeycomb 2011-01-26 10:54:23 -08:00
Jeff Brown
dc9988feec am f0ea11d7: am 8b557459: Merge "Fix emulator touchscreen." into honeycomb
* commit 'f0ea11d7128f3e654d91683ea6efe59ac714b9ef':
  Fix emulator touchscreen.
2011-01-26 10:50:30 -08:00
Jeff Brown
f0ea11d712 am 8b557459: Merge "Fix emulator touchscreen." into honeycomb
* commit '8b557459da3e1ac27d8aaa527be2eb795e61d926':
  Fix emulator touchscreen.
2011-01-26 10:48:22 -08:00
Joe Onorato
14782f705e Expose the window flags for lights out mode.
I hadn't wanted to do this, but it makes porting the FLAG_FULLSCREEN
stuff over to this simpler because you don't have to go find a view
to proxy through.

This change also clears the flag everywhere when the window manager
notifies the views that the change has come back.

Change-Id: I48392c7550925bcca50c5bb9e1f263e99de6c7bc
2011-01-26 10:47:39 -08:00
Jeff Brown
8b557459da Merge "Fix emulator touchscreen." into honeycomb 2011-01-26 10:46:29 -08:00
Shih-wei Liao
ed469907c4 am 969b3ae4: am 39740e1e: Merge "Fix b/2943524: On-device linking the rs_cl." into honeycomb
* commit '969b3ae440d9bef1a7a0f3c642ac9c81b37e2c32':
  Fix b/2943524: On-device linking the rs_cl.
2011-01-26 10:42:00 -08:00
Andreas Huber
4aeec2da39 Instead of not feeding the AudioTrack any data after EOS, play silence instead.
Change-Id: I9aa797cf5bb58eefed51d732f4e5d09450551158
related-to-bug: 3347428
2011-01-26 10:41:38 -08:00
Jeff Brown
77ef8b5061 Fix emulator touchscreen.
Bug: 3393763
Change-Id: Ief16640344d61d283aac08ef4b53e85d7ee3c73f
2011-01-26 10:40:10 -08:00
Shih-wei Liao
969b3ae440 am 39740e1e: Merge "Fix b/2943524: On-device linking the rs_cl." into honeycomb
* commit '39740e1e96baa9db399ef2bdc236974b3ae049af':
  Fix b/2943524: On-device linking the rs_cl.
2011-01-26 10:39:46 -08:00
Shih-wei Liao
39740e1e96 Merge "Fix b/2943524: On-device linking the rs_cl." into honeycomb 2011-01-26 10:37:08 -08:00
Joe Onorato
55bf3809b9 Make TabletStatusBar call into StatusBarManagerService when it goes out of lights out mode on its
own.

Bug: 3241144
Change-Id: Id09437a4f32f1d64daa7ae65e41c99897b5964d7
2011-01-26 10:32:18 -08:00
Joe Onorato
644f9c3ad9 Make FLAG_FULLSCREEN not go into lights out mode anymore.
Change-Id: I4a0aa8789f537717f82df4efb6a35108e1ab1784
2011-01-26 10:32:18 -08:00
Wink Saville
3947716e69 am c3a2747f: am d8b525c3: Merge "Increase the default timeout from 30 to 60 seconds." into honeycomb
* commit 'c3a2747fee9f96fdcd075f582b5b4892cbecf7df':
  Increase the default timeout from 30 to 60 seconds.
2011-01-26 10:19:00 -08:00
Wink Saville
c3a2747fee am d8b525c3: Merge "Increase the default timeout from 30 to 60 seconds." into honeycomb
* commit 'd8b525c398aeda1f583ed4ed90450e0a0fc9b6ef':
  Increase the default timeout from 30 to 60 seconds.
2011-01-26 10:16:43 -08:00
Andreas Huber
231640950e Linux sockets suck, closing a socket descriptor does not abort pending recv/send calls.
Change-Id: Id53e7831761619f72ddc61f63571230011c93f16
related-to-bug: 3362836
2011-01-26 10:14:38 -08:00
Wink Saville
d8b525c398 Merge "Increase the default timeout from 30 to 60 seconds." into honeycomb 2011-01-26 10:14:20 -08:00
Kenny Root
29a208e12c am ff271a22: am 2ec4af59: am 138757db: Merge "Make OBB results a one-way call" into gingerbread
* commit 'ff271a2288f375fc7a5854ac0d1f7c969d91996d':
  Make OBB results a one-way call
2011-01-26 10:13:54 -08:00
Kenny Root
ff271a2288 am 2ec4af59: am 138757db: Merge "Make OBB results a one-way call" into gingerbread
* commit '2ec4af59209ab3a7088a001bbbcb10ef0b846564':
  Make OBB results a one-way call
2011-01-26 10:11:21 -08:00
Leon Scroggins
2fbb623afa am 666158e0: am 8b2d4825: Merge "Move last touch point when moving the cursor node." into honeycomb
* commit '666158e09b694a6883a9d8207fe33de4fe4eca3e':
  Move last touch point when moving the cursor node.
2011-01-26 10:09:47 -08:00
Leon Scroggins
666158e09b am 8b2d4825: Merge "Move last touch point when moving the cursor node." into honeycomb
* commit '8b2d4825e1d7ca22aab9ae9fdfa1ecd34f154e22':
  Move last touch point when moving the cursor node.
2011-01-26 10:08:17 -08:00
Leon Scroggins
8b2d4825e1 Merge "Move last touch point when moving the cursor node." into honeycomb 2011-01-26 10:06:42 -08:00
Daniel Sandler
970e94cdd1 am f96e0eb4: am 66a9f48b: Merge "Wrong clock font in system bar. Whoops." into honeycomb
* commit 'f96e0eb49f7ed4f49a1a9ea3e256f1280851207e':
  Wrong clock font in system bar. Whoops.
2011-01-26 09:40:47 -08:00
Daniel Sandler
f96e0eb49f am 66a9f48b: Merge "Wrong clock font in system bar. Whoops." into honeycomb
* commit '66a9f48bbf9c2dfc25c1e520fcc05e3d5c2abe84':
  Wrong clock font in system bar. Whoops.
2011-01-26 09:37:34 -08:00
Daniel Sandler
66a9f48bbf Merge "Wrong clock font in system bar. Whoops." into honeycomb 2011-01-26 09:35:03 -08:00
Kenny Root
2ec4af5920 am 138757db: Merge "Make OBB results a one-way call" into gingerbread
* commit '138757db4f19cb626ef5c1d371d4fca004304a08':
  Make OBB results a one-way call
2011-01-26 09:25:43 -08:00
Jaikumar Ganesh
4ff8f51ef2 am b774f261: am ff3b3ade: Merge "Revert "Temporary Changes for certification of SCO."" into honeycomb
* commit 'b774f261ea63c44ec70b5d337b19368269800a06':
  Revert "Temporary Changes for certification of SCO."
2011-01-26 09:21:53 -08:00
Wink Saville
b260fe75c1 Increase the default timeout from 30 to 60 seconds.
The DEFAULT_WAKE_LOCK_TIMEOUT should be longer than the timeouts
of the vendor ril, aka. rild. We are seeing timeouts which are
30secs and possibly longer. An alternative would be to add
TelephonyManager.PROPERTY_WAKE_LOCK_TIMEOUT for but I feel a 60
second default is appropriate for all platforms.

Bug: 3392618
Change-Id: I63f6b211b584857999174524d4ea4efa1994dfba
2011-01-26 09:21:32 -08:00
Jaikumar Ganesh
b774f261ea am ff3b3ade: Merge "Revert "Temporary Changes for certification of SCO."" into honeycomb
* commit 'ff3b3ade7fa1da60d391d1a746cdc0868c24f4bf':
  Revert "Temporary Changes for certification of SCO."
2011-01-26 09:19:31 -08:00
Kenny Root
138757db4f Merge "Make OBB results a one-way call" into gingerbread 2011-01-26 09:17:28 -08:00
Justin Ho
939c8939da am 721a2253: am 93a0110e: Merge "New stat_notify icons in hdpi and mdpi" into honeycomb
* commit '721a225339f446ae03751201785fb5f8cc5b170e':
  New stat_notify icons in hdpi and mdpi
2011-01-26 09:17:17 -08:00
Jaikumar Ganesh
ff3b3ade7f Merge "Revert "Temporary Changes for certification of SCO."" into honeycomb 2011-01-26 09:16:07 -08:00
Justin Ho
721a225339 am 93a0110e: Merge "New stat_notify icons in hdpi and mdpi" into honeycomb
* commit '93a0110e94da1144d949fc06070ba8250f9a1825':
  New stat_notify icons in hdpi and mdpi
2011-01-26 09:14:57 -08:00
Justin Ho
93a0110e94 Merge "New stat_notify icons in hdpi and mdpi" into honeycomb 2011-01-26 09:12:01 -08:00
Robert Greenwalt
0216e61819 Make the interface with DHCP IPv6 capable.
It doesn't work (yet) for IPv6, but we can remove v4-centric notions from the framework.

bug:2542681
Change-Id: I21c058f5c88d07706c9265bf0ea902fc90357e56
2011-01-26 09:10:01 -08:00
Jaikumar Ganesh
5a9ac240fe Revert "Temporary Changes for certification of SCO."
This reverts commit 75c2701454f4506664d9056988c8ce5fd0ca73ba.

Change-Id: Ic63cdbbb06b9ed2d9c48e8b29cc376059ecadebf
2011-01-26 09:08:50 -08:00
Jaikumar Ganesh
59399e2e4f am b8a1a415: am 8ef1179e: Merge "Improve readability of java docs for the public APIs." into honeycomb
* commit 'b8a1a415f37680304bf2edb73a5450d6c464334a':
  Improve readability of java docs for the public APIs.
2011-01-26 09:07:23 -08:00
Jaikumar Ganesh
b8a1a415f3 am 8ef1179e: Merge "Improve readability of java docs for the public APIs." into honeycomb
* commit '8ef1179efce1c8b1107df707afdce8f85404d39e':
  Improve readability of java docs for the public APIs.
2011-01-26 09:04:47 -08:00
Jaikumar Ganesh
8ef1179efc Merge "Improve readability of java docs for the public APIs." into honeycomb 2011-01-26 09:02:12 -08:00