Commit Graph

18478 Commits

Author SHA1 Message Date
Nick Pelly
666fa84e66 am 46848574: Merge "NFC API updates."
* commit '468485747970d9842d94e1d292fe4cced701cad2':
  NFC API updates.
2011-08-31 13:26:23 -07:00
Nick Pelly
4684857479 Merge "NFC API updates." 2011-08-31 13:24:14 -07:00
Jeff Brown
79753f387a am 9d4bc852: Merge "Fix input channel leak. Bug: 5156144"
* commit '9d4bc852ea459c2a4347a87ce0357b3328a25db8':
  Fix input channel leak. Bug: 5156144
2011-08-31 13:03:26 -07:00
Jeff Brown
9d4bc852ea Merge "Fix input channel leak. Bug: 5156144" 2011-08-31 13:01:16 -07:00
satok
8d83c9c467 am bfe561c5: Merge "Add a comment for setAdditionalInputMethodSubtypes"
* commit 'bfe561c54a5addbc7c1fef75d87008ae2b9206eb':
  Add a comment for setAdditionalInputMethodSubtypes
2011-08-31 08:46:02 -07:00
satok
bfe561c54a Merge "Add a comment for setAdditionalInputMethodSubtypes" 2011-08-31 08:43:59 -07:00
satok
75917b603f Add a comment for setAdditionalInputMethodSubtypes
Change-Id: I3a19471b80a6f8a68473cba6f0fc934bd052af10
2011-09-01 00:33:40 +09:00
satok
a4a81714c6 am b59fcd51: Merge "Add a functionality to disable the spell checker"
* commit 'b59fcd516d998892fa0cc0b6ba60cce67e5a6779':
  Add a functionality to disable the spell checker
2011-08-31 05:59:45 -07:00
satok
0158a1e9ff Add a functionality to disable the spell checker
Change-Id: I1c2292f457d1911c149d594c175e638c92ad3917
2011-08-31 21:15:17 +09:00
Narayan Kamath
3ee1420ae4 am 5b8f29d0: Merge "Change the heuristics for waiting for audiotracks to finish."
* commit '5b8f29d077577a94d480579b1d7673d037e4e3ae':
  Change the heuristics for waiting for audiotracks to finish.
2011-08-31 03:54:53 -07:00
Narayan Kamath
5b8f29d077 Merge "Change the heuristics for waiting for audiotracks to finish." 2011-08-31 03:53:03 -07:00
satok
e920070418 am 17b5635d: Merge "Improve the fallback of the locale of the spell checker"
* commit '17b5635d52b9a90b519307513dc7c5fe69c7aacb':
  Improve the fallback of the locale of the spell checker
2011-08-31 02:59:14 -07:00
satok
b669d6d8d8 Improve the fallback of the locale of the spell checker
Change-Id: I79655dd13e60f221b07346596fb05cf7d3d5cf7d
2011-08-31 18:07:06 +09:00
Jeff Brown
cc4f7db698 Fix input channel leak.
Bug: 5156144

Input channels could leak or simply live longer than they should
in some cases.

1. Monitor channels (used by the pointer location overlay) are never
   unregistered, so they would leak.

   Added code to handle failures in the receive callback by closing
   the input channel.

2. The DragState held onto its input window and application handles
   even after the input channel was disposed.

   Added code to null these handles out when they are no longer needed.

3. Input channels previously used as input event targets would stick
   around until the targets were cleared (usually on the next
   event).

   Added code to detect when the input dispatcher is in
   an idle state and to proactively clear the targets then
   to ensure that resources are released promptly.

4. Native input window handles held onto the input channel even
   after the input window was removed from the input dispatcher.
   Consequently, the input channel would not be disposed until
   the input window handle itself was freed.  Since the input
   window handle is held from managed code, this meant that the
   window's input channel could stick around until the next GC.

   Refactored the input window handle to separate the properties
   (info) and identify (handle) state into different objects.
   Then modified the dispatcher to release the properties (info)
   when no longer needed, including the input channel.

7. The pointer location overlay does not actually use its
   standard input channel, only the monitor input channel.

   Added INPUT_FEATURE_NO_INPUT_CHANNEL to allow windows to
   request that they not be provided with an input channel
   at all.

Improved some of the error handling logic to emit the status
code as part of the exception message.

Change-Id: I01988d4391a70c6678c8b0e936ca051af680b1a5
2011-08-30 21:40:28 -07:00
Nick Pelly
82328bfd40 NFC API updates.
o NfcAdapter.set*(): enforce at least one activity is provided at compile time.
o Unhide and update javadoc for some API's scheduled for ICS release.

Change-Id: I2bf4ea101442dcdeb359be26d3869f82e6e3748b
2011-08-30 21:16:32 -07:00
Mathias Agopian
4ca738b6f6 am c21843a8: Merge "fix Surface positions are not floats"
* commit 'c21843a8b5c395cbaae6db0f786bdee556075f5d':
  fix Surface positions are not floats
2011-08-30 19:25:50 -07:00
Mathias Agopian
c21843a8b5 Merge "fix Surface positions are not floats" 2011-08-30 19:24:04 -07:00
Mathias Agopian
34cb9f2a96 fix Surface positions are not floats
Added Surface.setPosition(float, float) which allows to set a surface's
position in float.

Bug: 5239859
Change-Id: I903aef4ad5b5999142202fb8ea30fe216d805711
2011-08-30 18:51:54 -07:00
Adam Powell
7c7a99f63d am 38e1c7a8: Merge "Ellipsize marquee TextViews that aren\'t currently animating"
* commit '38e1c7a8a614a491747d08f91aa6eceaee8123fb':
  Ellipsize marquee TextViews that aren't currently animating
2011-08-30 17:42:48 -07:00
Adam Powell
282e377d8b Ellipsize marquee TextViews that aren't currently animating
On some devices the fading edge effect can be expensive. Offer an
alternative for screens full of textviews.

Change-Id: I0382b4ea0f8b0c6948cb68611f3679dbf5e2898a
2011-08-30 17:35:15 -07:00
Gilles Debunne
87c2c9798a am b5305007: Merge "Add EditTextShortcutSpan to provide edit short cut in the text view."
* commit 'b5305007a6eb10457aa97b9791fed62d3542e3c1':
  Add EditTextShortcutSpan to provide edit short cut in the text view.
2011-08-30 15:56:04 -07:00
Gilles Debunne
b5305007a6 Merge "Add EditTextShortcutSpan to provide edit short cut in the text view." 2011-08-30 15:53:33 -07:00
Dianne Hackborn
9a3fe4744e am 9c93db60: Merge "Fix issues #5233826 and #5209847 -- live wallpapers."
* commit '9c93db60e6d9172e1957e5e31a6c5b82e2494420':
  Fix issues #5233826 and #5209847 -- live wallpapers.
2011-08-30 15:50:35 -07:00
Dianne Hackborn
9e4e727b4a Fix issues #5233826 and #5209847 -- live wallpapers.
5233826	when a live wallpaper starts, it does so regardless of its visibility

The WallpaperService is now very forceful about telling a wallpaper it is
not visible when it first starts.

5209847	Make launcher turn off the wallpaper in all apps.

Fix a bug in the window manager that would not correctly handle the wallpaper
flag changing.

Change-Id: Ie3314043a84664be72a1304a1705408efd789a15
2011-08-30 14:56:31 -07:00
Jamie Gennis
d8cb308f67 am 8d102eb6: Merge changes I33f59705,Ia4c8c822,I2fb695ab,I2e587afc
* commit '8d102eb6720deccfb8b5872fde531ef6ca580077':
  MediaDump: use the MediaPlayer#setSurface method
  HTML5VideoView: switch to MediaPlayer#setSurface
  MediaPlayer: unhide the setSurface method
  Surface: unhide the SurfaceTexture ctor
2011-08-30 14:40:24 -07:00
Jamie Gennis
8d102eb672 Merge changes I33f59705,Ia4c8c822,I2fb695ab,I2e587afc
* changes:
  MediaDump: use the MediaPlayer#setSurface method
  HTML5VideoView: switch to MediaPlayer#setSurface
  MediaPlayer: unhide the setSurface method
  Surface: unhide the SurfaceTexture ctor
2011-08-30 14:38:56 -07:00
Fabrice Di Meglio
e03b7a476c am c6f19da0: Merge "Fix bug #5197549 android.text.cts.StaticLayoutTest#testGetEllipsisCount fails on IRK49E mysid-userdebug"
* commit 'c6f19da0ff703adff8a6a06e0b19ea46abada644':
  Fix bug #5197549 android.text.cts.StaticLayoutTest#testGetEllipsisCount fails on IRK49E mysid-userdebug
2011-08-30 13:44:34 -07:00
Fabrice Di Meglio
c6f19da0ff Merge "Fix bug #5197549 android.text.cts.StaticLayoutTest#testGetEllipsisCount fails on IRK49E mysid-userdebug" 2011-08-30 13:42:34 -07:00
Dave Santoro
0834ae4d23 am d49eea78: Merge "Profile API modifications."
* commit 'd49eea7831d7386fc429984eee0e8ef117a1d927':
  Profile API modifications.
2011-08-30 13:14:17 -07:00
Dave Santoro
d49eea7831 Merge "Profile API modifications." 2011-08-30 13:12:50 -07:00
Narayan Kamath
97171243f8 Change the heuristics for waiting for audiotracks to finish.
This is made necessary by a bug when the utterance is smaller
than the audio buffer size. In that case, we call stop() to
flush the audio to the mixer, but that causes the playstate to
be set to stopped though some audio is still being mixed. This
breaks our waiting loop.

We now wait a fixed amount of time for such short utterances
and do not observe the playback head position.

bug:5220048
Change-Id: Ic81dec751c1faca0b14164caeda6305c8f9815fe
2011-08-30 18:34:51 +01:00
Luca Zanolin
e6d3682189 Add EditTextShortcutSpan to provide edit short cut in the text view.
At the moment, EditTextShortcutSpan allows only the deletion of the text. In the future, we may decide to add extra functionality,
like "retry" where all the text is removed and a specific IME is triggered.

Fix the underline. The underline is not defined in thickness, and not as a multiplier of the default underline thickness.

Change the behaviour of SuggestionRangeSpan to match the specification.

Change-Id: I80437d9887c7a2ff8f62c38afbb0cb7add7ee9c8
2011-08-30 18:04:34 +01:00
Mike Lockwood
97bbefac0c Merge "Make Serial Manager APIs public" into ics-aah 2011-08-30 10:01:05 -07:00
Mike Lockwood
a72177a4e8 Merge "New Serial Manager API:" into ics-aah 2011-08-30 09:59:19 -07:00
Mike Lockwood
1bf3c4bba2 Make Serial Manager APIs public
Change-Id: I9b96ff288a4757c4c4465a6a5ea3b4ed9c432e06
Signed-off-by: Mike Lockwood <lockwood@android.com>
2011-08-30 12:56:33 -04:00
Mike Lockwood
8b3b98d622 New Serial Manager API:
SerialManager: provides access to serial ports
SerialPort: for reading and writing data to and from serial ports

IO with both array based and direct ByteBuffers is supported.

Accessing serial ports requires android.permission.SERIAL_PORT permission

Each platform must configure list of supported serial ports in the
config_serialPorts resource overlay
(this is needed to prevent apps from accidentally accessing the bluetooth
or other system UARTs).

In addition, the platform uevent.rc file must set the owner to the
/dev/tty* files to "system" so the framework can access the port.

Change-Id: I6afa78ceacf08486aaebced4156ecd2e33051879
Signed-off-by: Mike Lockwood <lockwood@android.com>
2011-08-30 12:56:26 -04:00
Narayan Kamath
777a1254ea am 5cdc720d: Merge "Don\'t allow TTS engines to synthesize too for ahead."
* commit '5cdc720dcadaa517766abb8a2f176de1a78a26a8':
  Don't allow TTS engines to synthesize too for ahead.
2011-08-30 09:54:49 -07:00
Narayan Kamath
5cdc720dca Merge "Don't allow TTS engines to synthesize too for ahead." 2011-08-30 09:52:06 -07:00
Gilles Debunne
02242b9db6 am ce4afc14: Merge "Moving action popup window when moving text selection"
* commit 'ce4afc1425cf74b7168a2d3d35c54efe9b5c98af':
  Moving action popup window when moving text selection
2011-08-30 09:49:31 -07:00
Gilles Debunne
2ae8410d4b am 4cbcc2bc: Merge "Bug 5218421: new NPE is SpellChecker when using Japanese language"
* commit '4cbcc2bc06cb228c2c5374920d2d4038685de8a6':
  Bug 5218421: new NPE is SpellChecker when using Japanese language
2011-08-30 09:47:30 -07:00
Gilles Debunne
ce4afc1425 Merge "Moving action popup window when moving text selection" 2011-08-30 09:46:30 -07:00
Gilles Debunne
4cbcc2bc06 Merge "Bug 5218421: new NPE is SpellChecker when using Japanese language" 2011-08-30 09:45:46 -07:00
Jeff Sharkey
d712530185 am 4107beec: Merge "Introduce immediate CONNECTIVITY_ACTION variant."
* commit '4107beecaab18b393e56a0c34b333f0a6e15be2f':
  Introduce immediate CONNECTIVITY_ACTION variant.
2011-08-29 20:01:46 -07:00
Jeff Sharkey
4107beecaa Merge "Introduce immediate CONNECTIVITY_ACTION variant." 2011-08-29 20:00:12 -07:00
Dianne Hackborn
efc1b3b4d9 am 42930641: Merge "Fix issues 5158104 and 4981556 (fragment problems)"
* commit '42930641792ecd23fee6b2913ba1e7cf24634f3d':
  Fix issues 5158104 and 4981556 (fragment problems)
2011-08-29 18:42:29 -07:00
Dianne Hackborn
4293064179 Merge "Fix issues 5158104 and 4981556 (fragment problems)" 2011-08-29 18:40:21 -07:00
Christopher Tate
5e72362245 am 37656214: Merge "Un-hide the new BackupAgent.onFullBackup() API"
* commit '376562143436353bbd745d3cce413f649a09dda8':
  Un-hide the new BackupAgent.onFullBackup() API
2011-08-29 18:13:50 -07:00
Christopher Tate
3765621434 Merge "Un-hide the new BackupAgent.onFullBackup() API" 2011-08-29 18:11:38 -07:00
Dianne Hackborn
6c285977a0 Fix issues 5158104 and 4981556 (fragment problems)
5158104: com.android.contacts: java.lang.IllegalStateException:
Can not perform this action after onSaveInstanceState at
android.app.FragmentManagerImpl.checkStateLoss(FragmentManager.java:1201)

The ViewPager can just commit without worrying about a state loss,
since it can correctly reconstruct its state later.

4981556: Fragment.mImmediateActivity doesn't get restored on orientation change

I am giving up on this thing; I just don't see how it can actually
be correct.  So now instead of getting an exception about a dup
add/remove at point of the add/remove call, this will happen later when
processing the transaction.

Also add an API for controlling the visibility of menus, which ViewPager
can use to have the correct menus shows.  And add a method to get the
name of a back stack entry.

Change-Id: Idcba14cfa2a172545a7a2a2c466cb49ceb789619
2011-08-29 17:58:17 -07:00
John Reck
ce9b2d9218 am 30cca602: Merge "Fix contentInvalidateAll NPE"
* commit '30cca6020df6fede4043a9f6715be470d3132c57':
  Fix contentInvalidateAll NPE
2011-08-29 17:16:14 -07:00