4088 Commits

Author SHA1 Message Date
Robert Greenwalt
8e7e0a9fd5 Fix data state change callbacks
Initial state should be unknown or we miss the first connected change.
Don't send a disconnected msg when changing network types.
Filter out redundent disconnects.
Add some logging.

bug:3060742
Change-Id: Idc797c1276b7417337a91ed60b12b1bf392d57c0
2010-11-09 16:28:51 -08:00
Tadashi G. Takaoka
0ba75bb22c Revert "Add a history of InputMethodSubtype for getting the last subtype of selected IME when IME was changed."
This reverts commit 1ab852fbcfe155c9d4373b7130f8515591669634.
2010-11-09 12:19:32 -08:00
Johan Alfven
5d0db4d356 Without SD card the shutdown sequence was delayed
If the memory card is not inserted (or removed) from
the phone the shut down process is very long. It
takes almost 24 seconds. For the phone with memory
card the averige is 5-6 seconds

Make sure to send onShutDownComplete even if an SD
card is not mounted and no unmount is done.

Change-Id: I0e79b82e294a971f5e7144cdd3cc16b7ff414b9c
2010-11-09 10:32:25 +01:00
satok
1ab852fbcf Add a history of InputMethodSubtype for getting the last subtype of selected IME when IME was changed.
Change-Id: I66752a881726c0ce2816a9d54de60fb0d992e968
2010-11-09 16:43:00 +09:00
Joe Onorato
646f46eddf make the resolver activity's items visible
Change-Id: Ic02c834c01c3d71d6e1c073f986b87ae5faa1da0
2010-11-08 15:08:56 -08:00
Joe Onorato
1a542c7b8e The CHEEK_TOUCH stuff never worked. Remove it.
Bug: 3104906
Change-Id: Ia37236ba1775fc3ec8c111e2e0b85b105e0dea6a
2010-11-08 13:02:58 -08:00
Jeff Brown
3915bb845b Tell system server whether the app handled input events.
Refactored ViewRoot, NativeActivity and related classes to tell the
dispatcher whether an input event was actually handled by the application.

This will be used to move more of the global default key processing
into the system server instead of the application.

Change-Id: If06b98b6f45c543e5ac5b1eae2b3baf9371fba28
2010-11-08 12:49:43 -08:00
Irfan Sheriff
60029771d2 Merge "add frequency band control API" 2010-11-08 12:24:31 -08:00
Brad Fitzpatrick
3fe3851753 Window manager: cancel animations before losing references to them.
For possible future changes to android.view.animation.Animation to tie
into StrictMode's animation annotations on violations.

Change-Id: I3a23fa9bd5edb0500586bb0e341f83f998b28ae7
2010-11-08 11:22:01 -08:00
Brad Fitzpatrick
5b59e02eb5 Merge "StrictMode: now in more system server threads." 2010-11-08 11:01:41 -08:00
Dianne Hackborn
ab36acb399 Fixe some stuff.
Addresses these bugs:

3061847 - With no headers, PreferenceActivity crashes
2888426 - minor typo in DevicePolicyManagerService.ActiveAdmin.writeToXml()
3159155 - IllegalStateException:"Can not perform this action after
    onSaveInstanceState" while dismissing a DialogFragment
3155995 - PopupWindow.showAtLocation does not respect LayoutParams

Also tweak the new fragment APIs to use abstract classes instead of
interfaces as base classes.

Change-Id: I9c0b4337fe0e304b737b5f7c2762762372bb3020
2010-11-08 10:46:19 -08:00
Brad Fitzpatrick
ec062f63a2 StrictMode: now in more system server threads.
Who knew there were so many Loopers in the system server?

This adds dropbox logging for the activity manager thread, policy
thread, and window manager thread.

The goal's to catch more stuttering.

Change-Id: I999a6ff4a955f0ef549b12a38796b843ade5fe66
2010-11-08 10:39:05 -08:00
Irfan Sheriff
36f7413dab add frequency band control API
Change-Id: I6cc6cdef27d493d4ef76cec17fdca7e49d9dc8d7
2010-11-08 10:09:17 -08:00
Joe Onorato
12b1401262 Merge "Turn off the ALS when the user setting doesn't ask for automatic brightness." 2010-11-06 13:00:35 -07:00
Joe Onorato
d28f753c94 Turn off the ALS when the user setting doesn't ask for automatic brightness.
Bug: 3118027
Change-Id: I24a97adce55b7b403edcbd331bdc8b0fc593b76f
2010-11-06 12:56:53 -07:00
Kenny Root
8806fc729b am 70fc04c8: Reorganize PackageManager dump to avoid NPE
* commit '70fc04c84db8f99ac2ac60fd9719b91057aacc9b':
  Reorganize PackageManager dump to avoid NPE
2010-11-05 13:58:20 -07:00
Dianne Hackborn
ed7bfbf6c8 Fix issue #3163426: Screen corruption when using the watermark feature
Change-Id: I23f76f04fb52bb272eccbbcc55606c09404c6ca9
2010-11-05 13:45:10 -07:00
Kenny Root
70fc04c84d Reorganize PackageManager dump to avoid NPE
versionCode and mVersionName were added recently but ps.pkg can be null
in some situations. Move them to where it will check before
dereferencing it.

Bug: 3152896
Change-Id: If992a1f29ac7b8f595f847b7743fd2374662bb6e
2010-11-05 11:59:45 -07:00
satok
9ef0283bdc Change API for getting InputMethodSubtype's mode from resource id to String
Change-Id: I00aa99f8ab9901d40806a6bb336ab718eb857e8b
2010-11-05 11:40:56 +09:00
Irfan Sheriff
09018c3e53 Merge "Initiate wake up scan only in a disconnected state" 2010-11-04 18:08:36 -07:00
Robert Greenwalt
1678246710 Merge "Tell each VM to flush their DNS cache." 2010-11-04 17:02:44 -07:00
Brian Carlstrom
38b2a89df5 Merge "Fixing CloseGuard reported issue in WiredAccessoryObserver" 2010-11-04 16:46:05 -07:00
Chris Tate
7b362e431f Implement local-window-only drags
Change-Id: I19a9c4a045c532b99e3af9eb878797aed5cda1bf
2010-11-04 16:29:32 -07:00
Brian Carlstrom
237171f8ab Fixing CloseGuard reported issue in WiredAccessoryObserver
This was previously masked by the ArrayIndexOutOfBoundsException so I
missed it on my first pass.

Change-Id: I0bdca9c888c77cb31f21def18809649321aa5427
2010-11-04 16:23:21 -07:00
Dianne Hackborn
373818eeac Revert "StrictMode: now in more system server threads."
This reverts commit 0721861d6111a8a03eb0d4aad14b7a90fd83cab6.
2010-11-04 15:37:47 -07:00
Irfan Sheriff
090813ac95 Initiate wake up scan only in a disconnected state
When wifi is connected to an access point, we should
not wake up the device to initiate scans.

Change-Id: I1a48387a0cac7b23a8d947d8409cafc63da18d38
2010-11-04 15:20:01 -07:00
Brian Carlstrom
a4f03f98f1 Merge "Integrate StrictMode with CloseGuard" 2010-11-04 14:32:33 -07:00
Brian Carlstrom
fd9ddd1a40 Integrate StrictMode with CloseGuard
In additional to adding the StringMode API for controling CloseGuard,
this checkin fixes several CloseGuard issues found booting a device.

Bug: 3041575
Change-Id: I4dffd184f49438d6d477ed81a1c2a2a5b56cc76b
2010-11-04 14:21:33 -07:00
Daniel Sandler
b73617de46 Rotation lock.
IWindowManager now supports two new methods,
freezeRotation() and thawRotation(), that allow a caller to
temporarily stash the device's current rotation as the
default rotation (when no other constraints are present).

The system bar uses this to implement a user-accessible
rotation lock by calling freezeRotation() and then turning
off accelerometer-based display rotation; unless overridden
by an app, the display will continue to appear in the frozen
rotation until the rotation is unlocked by the user (either
via the rotation lock icon in the system bar or by checking
"rotate screen automatically" in Settings).

Bug: 2949639
Change-Id: Icd21c169d1053719590e72401f229424b254622f
2010-11-04 16:55:29 -04:00
Elliott Hughes
1ab022b8c8 Merge "Fix an off-by-one error." 2010-11-04 13:47:13 -07:00
Dianne Hackborn
ea9020e085 Add API to find out if there is a vibrator.
Change-Id: If29f6ee19448222433cad9fad325d0095a8e5737
2010-11-04 13:01:56 -07:00
Elliott Hughes
b55dcc244d Fix an off-by-one error.
I/SystemServer(  104): Wired Accessory Observer
  E/SystemServer(  104): Failure starting WiredAccessoryObserver
  E/SystemServer(  104): java.lang.ArrayIndexOutOfBoundsException: index=3 length=3
  E/SystemServer(  104): 	at com.android.server.WiredAccessoryObserver.<init>(WiredAccessoryObserver.java:79)
  E/SystemServer(  104): 	at com.android.server.ServerThread.run(SystemServer.java:401)

Change-Id: I6d40259d96b8c57c0ff04eab362a66b70e9fcd25
2010-11-04 12:35:01 -07:00
Dianne Hackborn
bbd4a9f916 Merge "StrictMode: now in more system server threads." 2010-11-04 12:21:48 -07:00
Robert Greenwalt
03595d0118 Tell each VM to flush their DNS cache.
bug:3095357
Change-Id: I93de24e3e5a7d8b94d55f4facfffc863a2b8c202
2010-11-04 11:52:35 -07:00
satok
dfe7fd1776 Merge "Find the most applicable subtype when there is no selected subtype but IME has subtypes" 2010-11-03 23:09:46 -07:00
satok
8fbb1e84ee Find the most applicable subtype when there is no selected subtype but IME has subtypes
Change-Id: I1239d67a65abd5eedebd689d02f007961b9c5d73
2010-11-04 14:58:28 +09:00
Brad Fitzpatrick
0721861d61 StrictMode: now in more system server threads.
Who knew there were so many Loopers in the system server?

This adds dropbox logging for the activity manager thread, policy
thread, and window manager thread.

The goal's to catch more stuttering.

Change-Id: I3ce8518ce183b3c90426750a2992e67200fee5d5
2010-11-03 21:11:34 -07:00
Praveen Bharathi
26e3734983 frameworks/base: switch audio to hdmi when cable is plugged in
Change-Id: I01c4ee968bc0ffbb6ce75370935571cc1ff6f8c7
Signed-off-by: Iliyan Malchev <malchev@google.com>
2010-11-03 15:38:12 -07:00
Irfan Sheriff
1997eebd62 Merge "Set country code in the driver and remove channel set" 2010-11-03 12:23:01 -07:00
Chris Tate
5f4b7d8a8a Merge "Fix drag enter/exit reporting" 2010-11-03 12:00:56 -07:00
Irfan Sheriff
ed4f28b492 Set country code in the driver and remove channel set
With dual band support, using country code
settings is the way to go

Bug: 2936741
Change-Id: I760dce4c43b1af19ee205c28f0d287420c8d9e85
2010-11-02 16:35:56 -07:00
Irfan Sheriff
acc863cabb Merge "Use AsynChannel for synchronous API" 2010-11-02 16:12:13 -07:00
Irfan Sheriff
1406bcb751 Use AsynChannel for synchronous API
also cleaned up some unnecessary synchronous commands from state machine,
and fixed an issue with a synchronous WPS command

Change-Id: I55bf4379d9810e11f2ba2e03e2e703b132d1488f
2010-11-02 16:08:35 -07:00
Chris Tate
9d1ab88329 Fix drag enter/exit reporting
Now, each ViewGroup is tracking which of its child views [which might
themselves be ViewGroups] is currently under the drag point, and when the
drag leaves that child, a DRAG_EXITED is synthesized and dispatched all
the way down to the leaf view previously under the point.  ENTERED is
still *not* dispatched down like this; instead, it's calculated and
synthesized directly at each level based on the new LOCATION.

The ViewRoot still tracks the leaf drag target, but solely for the
purpose of reporting changes to the OS after full dispatch of a new
LOCATION -- the entered/exited messaging is no longer initiated at the
ViewRoot level.

Change-Id: I0089cc538b7e33a0440187543fcfd2f8b12e197d
2010-11-02 15:55:39 -07:00
satok
7e63e4df10 Merge "Update the subtype icon properly." 2010-11-02 04:14:17 -07:00
satok
06e0744e9e Update the subtype icon properly.
Change-Id: Ib89959d1ea13f1e6f56e6280f90532e6695c4a00
2010-11-02 20:11:28 +09:00
Jeff Brown
c4b5bf3c76 am 7ab5d2d9: am a87ea46c: Fix bugs related to cheek event suppression.
* commit '7ab5d2d951792c9b1a1e7cfb279280c2d076506f':
  Fix bugs related to cheek event suppression.
2010-11-02 02:34:15 -07:00
Jeff Brown
7ab5d2d951 am a87ea46c: Fix bugs related to cheek event suppression.
* commit 'a87ea46cb023763e0a9b0222da20b0a354f79d8d':
  Fix bugs related to cheek event suppression.
2010-11-01 21:02:05 -07:00
Jeff Brown
a87ea46cb0 Fix bugs related to cheek event suppression.
Two issues:

1. First, due to an inverted conditional in the input dispatcher, we were
   reporting touches as long touches and vice-versa to the power manager.

2. Power manager user activity cheek event suppression also suppresses touch
   events (but not long touch or up events).  As a result, if cheek event
   suppression was enabled, touches would not poke the user activity timer.
   However due to the above logic inversion, this actually affected long
   touches.  Net result, if cheek suppression was enabled in the power manager
   and you held your thumb on the screen long enough, the phone would
   go to sleep!

Cheek event suppression is commonly turned on when making a phone call.
Interestingly, it does not seem to get turned off afterward...

This change fixes the logic inversion and exempts touches from the cheek
suppression.  The reason we do the latter is because the old behavior
was actually harmful in other ways too: a touch down would be suppressed
but not a long touch or the touch up.  This would cause bizarre behavior
if you touched the screen while it was dimmed.  Instead of brightening
immediately, it would brighten either when you lifted your finger or
300ms later, whichever came first.

Bug: 3154895
Change-Id: Ied9ccec6718fbe86506322ff47a4e3eb58f81834
2010-11-01 20:51:58 -07:00
satok
e1bef9404c Merge "Fix a bug that enabled Subtype ID can't be saved propery." 2010-11-01 19:41:44 -07:00