summaryrefslogtreecommitdiffstats
path: root/services
Commit message (Collapse)AuthorAgeFilesLines
* Fix crashes caused by some input devices.Jeff Brown2011-01-256-35/+99
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The touch screen sometimes reports more than 10 pointers even though that's all we asked for. When this happens, we start dropping events with more than 10 pointers. This confuses applications and causes them to crash. Raised the limit to 16 pointers. Bug: 3331247 The default behavior was to identify all touch devices as touch screens. External devices that are plugged in are more likely to be touch pads not attached to a screen. Changed the default to be a touch pad and renamed some internal constants to avoid confusion. A certain mouse happens to also behave like a touch pad. That caused problems because we would see multiple concurrent traces of motion events coming from the same input device so we would batch them up. Added code to ensure that we don't batch events unless they come from the same *source* in addition to coming from the same *device*. Due to batching or misbehaving drivers, it's possible for the set of pointer ids to be different from what we expect when it comes time to split motion events across windows. As a result, we can generate motion events with 0 pointers. When we try to deliver those events, we cause an error in the InputTransport so we tear down the InputChannel and kill the application. Added code to check out assumption about pointer ids and drop the event gracefully instead. Patched up the tests to take into account the change in default behavior for identifying touch screens and touch pads. Change-Id: Ic364bd4cb4cc6335d4a1213a26d6bdadc7e33505
* Merge "Fix tethering when switching default connection" into honeycombRobert Greenwalt2011-01-251-2/+17
|\
| * Fix tethering when switching default connectionRobert Greenwalt2011-01-231-2/+17
| | | | | | | | | | | | | | | | | | If the default connection is suitable use that rather than a random interface. This permits us to deterministically switch back to wifi after hanging out on DUN APN. bug:3374236 Change-Id: Iee5137b9f09c358f262e7a62f20282e79f7d889f
* | Fix the return value of switch to last ime.satok2011-01-261-7/+20
| | | | | | | | Change-Id: I5fe8cc696433a7ee72973d16d8f121d3362ab0e0
* | Maybe fix issue #3093599: java.lang.IndexOutOfBoundsException...Dianne Hackborn2011-01-241-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ...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
* | tone down the log spew regarding taking screenshots.Mathias Agopian2011-01-241-18/+1
| | | | | | | | Change-Id: I673806bda23eba6aab25f7505b7e0170afc9920b
* | Fix regression setting input windows.Jeff Brown2011-01-241-32/+26
| | | | | | | | Change-Id: I24d58a02f69ae40f03b133d487354a883585e93e
* | Add a way that subtype will be excluded from a last input methodsatok2011-01-251-1/+19
| | | | | | | | | | | | | | | | | | 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
* | Merge "visibility ("lights out") API." into honeycombJoe Onorato2011-01-232-1/+22
|\ \
| * | visibility ("lights out") API.Joe Onorato2011-01-232-1/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | Fix issue #3215261: NPE in WiFi SettingsDianne Hackborn2011-01-232-29/+46
| |/ |/| | | | | | | | | | | | | | | | | | | | | | | | | 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
* | Merge "Fix spurious resizes during rotation animation." into honeycombJeff Brown2011-01-231-33/+43
|\ \ | |/ |/|
| * Fix spurious resizes during rotation animation.Jeff Brown2011-01-231-33/+43
| | | | | | | | | | | | | | | | | | | | | | 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
* | Fix issue #3302006: Cannot see the dialog lunched from a transparent activity.Dianne Hackborn2011-01-224-6/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | Merge "Fix issue #3377999: Activities need to be stopped when sleeping" into ↵Dianne Hackborn2011-01-223-29/+179
|\ \ | |/ |/| | | honeycomb
| * Fix issue #3377999: Activities need to be stopped when sleepingDianne Hackborn2011-01-213-29/+179
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | Merge "Optimize call to drawBitmap during screen rotation." into honeycombJeff Brown2011-01-211-2/+6
|\ \
| * | Optimize call to drawBitmap during screen rotation.Jeff Brown2011-01-211-2/+6
| | | | | | | | | | | | | | | | | | Using SRC mode reduces drawBitmap time from 50ms to 15ms. Change-Id: Ibde82f358d92bd330b8c78c9db1ded6a0b4ba135
* | | Merge "Reduce number of calls to updateInputWindows by 60%." into honeycombJeff Brown2011-01-211-34/+78
|\ \ \ | |_|/ |/| |
| * | Reduce number of calls to updateInputWindows by 60%.Jeff Brown2011-01-211-34/+78
| |/ | | | | | | Change-Id: Ida9069dd58be2070f3c9d312aa9d868bd98eb8e2
* | Merge "Add and enforce the permission for encrypting/decrypting." into honeycombJason parks2011-01-211-3/+6
|\ \
| * | Add and enforce the permission for encrypting/decrypting.Jason parks2011-01-211-3/+6
| | | | | | | | | | | | Change-Id: Ia292d8a5981266c2703743beb79fd786d77b375d
* | | Merge "Update encryption commands." into honeycombJason parks2011-01-211-8/+25
|\ \ \ | |/ /
| * | Update encryption commands.Jason parks2011-01-211-8/+25
| | | | | | | | | | | | | | | | | | | | | | | | * 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
* | | Merge "Read actual device encryption status" into honeycombAndy Stadler2011-01-211-1/+9
|\ \ \
| * | | Read actual device encryption statusAndy Stadler2011-01-201-1/+9
| | | | | | | | | | | | | | | | | | | | Bug: 3346770 Change-Id: Ie70c14b1b4584a5f340a27102145f7860ba9e14b
* | | | Show implicitly enabled subtypes in the input method selection dialogsatok2011-01-211-51/+48
| | | | | | | | | | | | | | | | | | | | | | | | bug: 3367646 Change-Id: I9550f17f163950d80113fbcb8c9dd8a7d014cf6a
* | | | Merge "Show ime switch icon when there is a hard keyboard" into honeycombsatok2011-01-201-0/+2
|\ \ \ \ | |/ / / |/| | |
| * | | Show ime switch icon when there is a hard keyboardsatok2011-01-211-0/+2
| | | | | | | | | | | | | | | | Change-Id: Ife3a8733b1a1bf43b195ecf4b8c5082b6538d0a0
* | | | Merge "fix [3369743] SurfaceFlinger reads hardware composer hints before ↵Mathias Agopian2011-01-201-20/+26
|\ \ \ \ | | | | | | | | | | | | | | | calling hwc.prepare()" into honeycomb
| * | | | fix [3369743] SurfaceFlinger reads hardware composer hints before calling ↵Mathias Agopian2011-01-191-20/+26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | hwc.prepare() Change-Id: If3277c7b9d4cb8ef20d1706155fac7b87e64fb20
* | | | | Merge "clean-up unneeded code" into honeycombMathias Agopian2011-01-206-42/+0
|\ \ \ \ \ | |_|_|/ / |/| | | |
| * | | | clean-up unneeded codeMathias Agopian2011-01-206-42/+0
| | |_|/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | now that we removed the notion of a "inUse" buffer in surfaceflinger a lot of code can be simplified / removed. noteworthy, the whole concept of "unlockClient" wrt. "compositionComplete" is also gone. Change-Id: I210413d4c8c0998dae05c8620ebfc895d3e6233d
* | | | Merge "Fix issue 3371096." into honeycombEric Laurent2011-01-201-8/+10
|\ \ \ \
| * | | | Fix issue 3371096.Eric Laurent2011-01-191-8/+10
| | |/ / | |/| | | | | | | | | | | | | | | | | | | | | | EffectModule::process() was copying effect chain input buffer to output buffer if no effect was active instead of accumulating it. Change-Id: I2838af2e7b6654d0a76547625929a5453da68d02
* | | | Refine InputMethodInfo APIKen Wakasa2011-01-211-23/+32
| | | | | | | | | | | | | | | | | | | | bug: 3370297 Change-Id: I2a18f3bdbe2fccb22e22cdae0f75aec5c703ad6d
* | | | Add android.provider.Settings.EXTRA_INPUT_METHOD_IDTadashi G. Takaoka2011-01-211-2/+1
| | | | | | | | | | | | | | | | Change-Id: Iecb7a9c265cafe96e7eec099341133da8e966f6f
* | | | Merge "Rename action to ACTION_INPUT_METHOD_SUBTYPE_SETTINGS" into honeycombTadashi G. Takaoka2011-01-201-1/+1
|\ \ \ \
| * | | | Rename action to ACTION_INPUT_METHOD_SUBTYPE_SETTINGSTadashi G. Takaoka2011-01-201-1/+1
| | | | | | | | | | | | | | | | | | | | Change-Id: I27c318777355991ae4ad72d0b2480e93c8c5044e
* | | | | Make VpnService synchronous API.Hung-ying Tyan2011-01-201-0/+3
| |_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This eases VpnSettings on dealing with multiple-activity-instance problem (i.e., SettingsActivity and VpnSettingsActivity). + Most of the code is moved from the VpnServices package to vpn/java/. + VpnManager and VpnServiceBinder are revised to provide synchronous API. + Add a new method isIdle() to IVpnService.aidl. Related bug: 3293236 (need to deal with multiple-activity-instance problem) Change-Id: I03afa3b3af85d7b4ef800683cd075c356a9266c4
* | | | Merge "Fix getSwitchState." into honeycombJeff Brown2011-01-192-2/+2
|\ \ \ \
| * | | | Fix getSwitchState.Jeff Brown2011-01-192-2/+2
| | |_|/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | InputReader::getSwitchState always returns AKEY_STATE_UNKNOWN because SwitchInputMapper::getSources() returns 0 which cannot match any source mask including AINPUT_SOURCE_ANY. As a result initial lid switch detection is broken. This change adds a new source constant AINPUT_SOURCE_SWITCH that indicates that the source has switches. Change-Id: I5321ecf0ce84f1c2b4535f6c163d3f4dcf9b7a9b
* | | | Merge "fix [3369027] Sensor.TYPE_ROTATION_VECTOR is unstable and returns ↵Mathias Agopian2011-01-192-4/+4
|\ \ \ \ | |_|/ / |/| | | | | | | NaNs when running slowly" into honeycomb
| * | | fix [3369027] Sensor.TYPE_ROTATION_VECTOR is unstable and returns NaNs when ↵Mathias Agopian2011-01-192-4/+4
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | running slowly The cut-off frequency of the lowpass filter was too high for the sampling rate used by DELAY_NORMAL. Now we use the same filters used for the gravity vector (cascaded biquad at 1.5 Hz) Change-Id: I319dc4f449a3abd553d61b196a9ddcf7782f912d
* | | Make the drag input window fullscreen touchable againChristopher Tate2011-01-191-1/+1
|/ / | | | | | | | | | | | | | | | | | | Having it non-touchable was making it possible to e.g. touch buttons and launch new activities out from under an in-flight drag operation. Bug 3370698 Change-Id: I46fe70a8fe8fbaa5cca48f6bb478ed7ded1f1cc3
* | Merge "Fail more gracefully when window state changes during drags" into ↵Christopher Tate2011-01-191-2/+6
|\ \ | | | | | | | | | honeycomb
| * | Fail more gracefully when window state changes during dragsChristopher Tate2011-01-191-2/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In particular, if a new window was created out from under the drag, the drag-move event dispatch logic would wind up blithly assuming that it would find a valid touch-dispatchable window under the finger. When this was untrue, it would NPE, but the NPE was caught and discarded safely by higher-level guard code. With this change, we now avoid the NPE entirely and report the spurious condition as part of the debugging log stream. (Also add the local-state object to DragEvent.toString()'s output.) Change-Id: Idfa5f45d049e48415ee59c8b0ffb5b0ed4098ce3
* | | Merge "improve SurfaceFlinger 'dumpsys' log" into honeycombMathias Agopian2011-01-193-0/+43
|\ \ \
| * | | improve SurfaceFlinger 'dumpsys' logMathias Agopian2011-01-193-0/+43
| | |/ | |/| | | | | | | | | | | | | | | | list the purgatory, which shows windows that have been closed, but for which the client still has references. Change-Id: I5168bb88cb328d5d77d71d0871deb9190f493126
* | | Merge "StrictMode: class instance limits (track object "leaks")" into honeycombBrad Fitzpatrick2011-01-191-0/+3
|\ \ \ | |_|/ |/| |