4427 Commits

Author SHA1 Message Date
Dianne Hackborn
1563966ca0 am 98d169ea: am 5d9d03a0: Maybe fix issue #3093599: java.lang.IndexOutOfBoundsException...
* commit '98d169eacd65e6278bb8eab354f0278065771e9f':
  Maybe fix issue #3093599: java.lang.IndexOutOfBoundsException...
2011-01-24 22:31:26 -08:00
Dianne Hackborn
98d169eacd am 5d9d03a0: Maybe fix issue #3093599: java.lang.IndexOutOfBoundsException...
* commit '5d9d03a0234faa3cffd11502f973057045cafe82':
  Maybe fix issue #3093599: java.lang.IndexOutOfBoundsException...
2011-01-24 22:12:36 -08:00
Dianne Hackborn
5d9d03a023 Maybe fix issue #3093599: java.lang.IndexOutOfBoundsException...
...Invalid index 0, size is 0 at
android.app.ActivityThread.performPauseActivity(ActivityThread.java:2326)

It looks like if an arrow key is dispatched between the time the
list view is told its data set has changed and it does the resulting
layout pass, we could try to move the position to a now invalid
index.  This may prevent that from happening.

Also put in a better error message if saving state of a fragment
whose target is no longer in the fragment manager.

And fix a bug in PackageManager where we could return a null from
queryIntentActivities().

And add a new API to find out whether a fragment is being removed,
to help fix issue #3306021: NPE at
android.app.AlertDialog.getDefaultDialogTheme(AlertDialog.java)

Next, for new HC apps we can delay committing data to
storage until the activity is stopped.

Finally, use the new multi-threaded AyncTask executor in a few
places, so we don't have worked blocked by long-running tasks from
the application.

Change-Id: I27b2aafedf2e1bf3a2316309889613fa539760f3
2011-01-24 21:23:03 -08:00
Jeff Brown
d1953bcbc7 am 747aee5a: am 8bb7e488: Merge "Fix regression setting input windows." into honeycomb
* commit '747aee5ab96503796e55fcd444c440197cecd39a':
  Fix regression setting input windows.
2011-01-24 17:02:14 -08:00
Jeff Brown
747aee5ab9 am 8bb7e488: Merge "Fix regression setting input windows." into honeycomb
* commit '8bb7e488e2564b75d8d920850891675090debcca':
  Fix regression setting input windows.
2011-01-24 17:00:28 -08:00
Jeff Brown
2e44b0788f Fix regression setting input windows.
Change-Id: I24d58a02f69ae40f03b133d487354a883585e93e
2011-01-24 16:44:18 -08:00
Dianne Hackborn
8e11b4f4eb am 81ac92df: am 6d92cde2: am 35f4d32d: Merge "frameworks/base: Track owner in appropriate owners list of Uri"
* commit '81ac92df33ba146a51fbbf3d5108379a9eb346b1':
  frameworks/base: Track owner in appropriate owners list of Uri
2011-01-24 14:37:21 -08:00
Dianne Hackborn
81ac92df33 am 6d92cde2: am 35f4d32d: Merge "frameworks/base: Track owner in appropriate owners list of Uri"
* commit '6d92cde287b6399d5c90f3eaccb73602d6d51313':
  frameworks/base: Track owner in appropriate owners list of Uri
2011-01-24 14:34:46 -08:00
satok
ff0ada3767 am 47f92f47: am 57ffc002: Add a way that subtype will be excluded from a last input method
* commit '47f92f479cb2c6c18de4c1e429531d0c04e90472':
  Add a way that subtype will be excluded from a last input method
2011-01-24 13:30:18 -08:00
Joe Onorato
10f4126a36 resolved conflicts for merge of faf083ef to master
Change-Id: I316a1b4356f6dba6c3880ccb02dbb2fa00d21a85
2011-01-24 13:16:08 -08:00
satok
57ffc00239 Add a way that subtype will be excluded from a last input method
Bug: 3382702

- Added SUBTYPE_EXTRAVALUE_EXCLUDE_FROM_LAST_IME and if subtype has this extra value,
It will be excluded from a last input method which will be called from switchToLastInputMethod

Change-Id: I03ae10e07f978dcc3a83dd77b10613048dce7f22
2011-01-25 00:52:53 +09:00
Joe Onorato
4c541b1303 Merge "visibility ("lights out") API." into honeycomb 2011-01-23 19:26:13 -08:00
Joe Onorato
664644d9e0 visibility ("lights out") API.
1. Views may setSystemUiVisibility() to recommend that
the system chrome (status bar or other UI) show or hide
itself.  (This functionality was previously available only
via the FLAG_FULLSCREEN window flag for some SystemUI
implementations.)

2. Views may register a OnSystemUiVisibilityChangedListener
on a view, and find out when the system UI actually
appears or disappears, allowing apps to coordinate the
appearance of their own UI if desired.

Bug: 3241144
Change-Id: Ia1758d94099182d49a1e3688ea2738ae4995b829
2011-01-23 19:22:52 -08:00
Dianne Hackborn
ee18bc7e3c am 802fb15d: am 9476f045: Merge "Fix issue #3215261: NPE in WiFi Settings" into honeycomb
* commit '802fb15d2a9d6e094627c561100aabbac3689d94':
  Fix issue #3215261: NPE in WiFi Settings
2011-01-23 17:50:23 -08:00
Dianne Hackborn
89ba6750e5 Fix issue #3215261: NPE in WiFi Settings
And also fix #3343369: EGL_BAD_DISPLAY and/or broadcast intent
TIME_SET before boot completion

And a few more tweaks to animations to keep the wallpaper displayed
when needed.

And make more use of the drag and drop "rotation disabled" thing to
also use it while animating the screen rotation, since if we try to
start a new rotation while doing the animation we end up with a mess.

Change-Id: I373af305a6e23a92835abed96229a83e173f67ce
2011-01-23 17:35:08 -08:00
Jeff Brown
a6b5024b0b am 21c38db8: am c9ce1f24: Merge "Fix spurious resizes during rotation animation." into honeycomb
* commit '21c38db8ec9dff97631ad8de1d13e5d470a97f6c':
  Fix spurious resizes during rotation animation.
2011-01-23 13:44:54 -08:00
Jeff Brown
c9ce1f24df Merge "Fix spurious resizes during rotation animation." into honeycomb 2011-01-23 13:39:10 -08:00
Jeff Brown
fbae722d2a Fix spurious resizes during rotation animation.
Fixed a bug in WindowManagerService where it would set mSurfaceResized
to true even if the surface was just moved and not resized.  As a result,
we would send dozens of spurious resize messages to all applications
during orientation changes since the rotation animation changes the
positions of surfaces as they swing into place.  Among other things,
the spurious resizes caused the wallpaper to be redrawn dozens of time.

Change-Id: I2be7278c0d6a00aaef665a65e268d8da1771e51f
2011-01-23 13:07:25 -08:00
Dianne Hackborn
ccb9a0a9f0 am 11a5d424: am b149f5c8: Merge "Fix issue #3302006: Cannot see the dialog lunched from a transparent activity." into honeycomb
* commit '11a5d42454fad1f61eb4874855113c5416396888':
  Fix issue #3302006: Cannot see the dialog lunched from a transparent activity.
2011-01-23 12:05:43 -08:00
Dianne Hackborn
ff801ec713 Fix issue #3302006: Cannot see the dialog lunched from a transparent activity.
The activity manager was not performing the layout pass on the new window,
because its app token was still hidden, because the activity manager / window
manager were still waiting for it to be ready to show.

Just ignore whether the app token is hidden for this case.

Also fixes some problems with animations, and tweaks the ViewConfiguration
values for xlarge screens.

Change-Id: Icbe9c77ba8127d1e02df2d6f27b8e86ec842e50a
2011-01-22 18:13:13 -08:00
Mike Lockwood
347750862c Merge "New APIs for USB host support:" 2011-01-22 15:57:32 -08:00
Mike Lockwood
e7d511e148 New APIs for USB host support:
UsbManager:
- is now a service retrievable via Context.getSystemService(Context.USB_SERVICE).
- provides support for returning a list all connected USB devices
- broadcasts ACTION_USB_DEVICE_ATTACHED and USB_DEVICE_DETACHED when devices
  are added and removed from the USB host bus

UsbDevice:
- represents an attached USB device.

UsbInterface:
- represents an interface on a USB device
- devices may have multiple interfaces if they provide multiple
   sets of functionality (for example, android phones typically have interfaces
   for both USB mass storage and adb)

UsbEndpoint:
- represents an endpoint on a USB interface
- endpoints are used for sending or receiving data
  (only in one or the other direction)

UsbRequest:
- encapsulates a send or receive request to be sent over an endpoint

Change-Id: Ieef3e434c62760770ea839070cf5eba1a705967a
Signed-off-by: Mike Lockwood <lockwood@android.com>
2011-01-22 15:56:09 -08:00
Dianne Hackborn
e3e6a157df am 8a0f1756: am 5503d803: Merge "Fix issue #3377999: Activities need to be stopped when sleeping" into honeycomb
* commit '8a0f17560080077b972c97bf9d5b68961f148fe3':
  Fix issue #3377999: Activities need to be stopped when sleeping
2011-01-22 11:54:31 -08:00
Dianne Hackborn
6d92cde287 am 35f4d32d: Merge "frameworks/base: Track owner in appropriate owners list of Uri"
* commit '35f4d32dc2f0c383323e780ecc7e2764704c5d2c':
  frameworks/base: Track owner in appropriate owners list of Uri
2011-01-22 11:50:41 -08:00
Dianne Hackborn
5503d803ec Merge "Fix issue #3377999: Activities need to be stopped when sleeping" into honeycomb 2011-01-22 11:38:48 -08:00
Vairavan Srinivasan
91c12c27ef frameworks/base: Track owner in appropriate owners list of Uri
The owner isn't kept track it URI's writeOwners when
grantUriPermissionUncheckedLocked is invoked to provide both
read and write access to the URI. Fix is to check for both
read and write permissions and add owner to appropriate lists.

Change-Id: Id23688b96aefeb0a4911ee52ad47124bc5904fa0
2011-01-21 18:26:06 -08:00
Jeff Brown
0f0fdda8c4 am 2866b229: am 75a0e448: Merge "Optimize call to drawBitmap during screen rotation." into honeycomb
* commit '2866b22971a1aff0cb88cfef080e93a13fb4fddb':
  Optimize call to drawBitmap during screen rotation.
2011-01-21 15:34:27 -08:00
Jeff Brown
e3fbf59683 am ea5e0bb3: am cab11490: Merge "Reduce number of calls to updateInputWindows by 60%." into honeycomb
* commit 'ea5e0bb358990c05f9b07a6aee9047ea398c4f43':
  Reduce number of calls to updateInputWindows by 60%.
2011-01-21 15:34:23 -08:00
Jeff Brown
75a0e44831 Merge "Optimize call to drawBitmap during screen rotation." into honeycomb 2011-01-21 15:29:46 -08:00
Jeff Brown
cab114906d Merge "Reduce number of calls to updateInputWindows by 60%." into honeycomb 2011-01-21 15:29:39 -08:00
Jeff Brown
8db9ac4b7d Optimize call to drawBitmap during screen rotation.
Using SRC mode reduces drawBitmap time from 50ms to 15ms.

Change-Id: Ibde82f358d92bd330b8c78c9db1ded6a0b4ba135
2011-01-21 14:39:52 -08:00
Jeff Brown
3a22cd90bc Reduce number of calls to updateInputWindows by 60%.
Change-Id: Ida9069dd58be2070f3c9d312aa9d868bd98eb8e2
2011-01-21 14:09:43 -08:00
Dianne Hackborn
4eba96bb31 Fix issue #3377999: Activities need to be stopped when sleeping
This is a band-aid over the existing kludgy stopping mechanism
where the semantics of stop are different in the activity manager
than in the clients.

This change is intended to be as unobtrusive as possible, only
impacting the sleep case.  I have a different change that
completely reworks how we stop activities to simply this all
a lot by unifying the semantics between the server and client.
However, it is too late in HC for such an extensive change.  Later
I'll revert this one and put in the better solution.

Change-Id: Id77f2db1ec83469cdd888acb8fbc4679daa7766e
2011-01-21 13:42:26 -08:00
Jason parks
ca615748cf am a55e3670: am 0512d080: Merge "Add and enforce the permission for encrypting/decrypting." into honeycomb
* commit 'a55e367027fcd37aae83bf3e61225c45db0cf1cf':
  Add and enforce the permission for encrypting/decrypting.
2011-01-21 12:39:55 -08:00
Jason parks
18e9cf0faa am bee8a768: am 0f2ef34b: Merge "Update encryption commands." into honeycomb
* commit 'bee8a7686d380a7dc696756699411696d7685551':
  Update encryption commands.
2011-01-21 12:39:49 -08:00
Jason parks
0512d080a5 Merge "Add and enforce the permission for encrypting/decrypting." into honeycomb 2011-01-21 11:59:15 -08:00
Jason parks
0f2ef34b5a Merge "Update encryption commands." into honeycomb 2011-01-21 11:39:15 -08:00
Andy Stadler
568d9b6119 am 174a6fce: am c2ff2ec0: Merge "Read actual device encryption status" into honeycomb
* commit '174a6fce8ab1a08b85e45f636dc2682f6a62e8d1':
  Read actual device encryption status
2011-01-21 11:02:57 -08:00
satok
90a09e0546 am 026de9ed: am 6a0d924e: Merge "Show implicitly enabled subtypes in the input method selection dialog" into honeycomb
* commit '026de9ed7f39c46260e7ac79dea2fcc32b151d19':
  Show implicitly enabled subtypes in the input method selection dialog
2011-01-21 11:01:29 -08:00
satok
6a32272af5 am d57c1fcf: am 0e5bf505: Merge "Show ime switch icon when there is a hard keyboard" into honeycomb
* commit 'd57c1fcf5a4f8fd9451e4a09aa50ed14c7f94ff2':
  Show ime switch icon when there is a hard keyboard
2011-01-21 10:59:32 -08:00
Andy Stadler
c2ff2ec0d9 Merge "Read actual device encryption status" into honeycomb 2011-01-21 10:27:46 -08:00
satok
bb4aa0683c Show implicitly enabled subtypes in the input method selection dialog
bug: 3367646

Change-Id: I9550f17f163950d80113fbcb8c9dd8a7d014cf6a
2011-01-21 20:20:02 +09:00
Jason parks
8888c597c4 Add and enforce the permission for encrypting/decrypting.
Change-Id: Ia292d8a5981266c2703743beb79fd786d77b375d
2011-01-21 00:07:49 -06:00
Jason parks
9ed98bcdc9 Update encryption commands.
* Changed to inplace encryption.
* Changed decryption to return the proper error code. It will now return success or the number of failed attempts.
* Be lazy and post a message 2 seconds later to call restart. I don't feel like messing with binder interfaces for a proper callback.

Change-Id: Iae2de7057aa66f248fd2df3f29777ad3368442f0
2011-01-21 00:06:20 -06:00
satok
0e5bf5051b Merge "Show ime switch icon when there is a hard keyboard" into honeycomb 2011-01-20 19:47:43 -08:00
satok
865b97761c Show ime switch icon when there is a hard keyboard
Change-Id: Ife3a8733b1a1bf43b195ecf4b8c5082b6538d0a0
2011-01-21 12:28:01 +09:00
Andy Stadler
0fe45dea92 Read actual device encryption status
Bug: 3346770
Change-Id: Ie70c14b1b4584a5f340a27102145f7860ba9e14b
2011-01-20 16:35:09 -08:00
Irfan Sheriff
4624d669e4 Merge "Add untether call during softap shutdown" 2011-01-20 09:47:15 -08:00
Ken Wakasa
f41e1af8c0 am 7fff9d8e: am 586f0513: Refine InputMethodInfo API
* commit '7fff9d8e0489455363eb2d70111b7164adab46ff':
  Refine InputMethodInfo API
2011-01-20 08:16:05 -08:00
Ken Wakasa
586f051375 Refine InputMethodInfo API
bug: 3370297
Change-Id: I2a18f3bdbe2fccb22e22cdae0f75aec5c703ad6d
2011-01-21 01:02:58 +09:00