summaryrefslogtreecommitdiffstats
path: root/services
Commit message (Collapse)AuthorAgeFilesLines
* Merge "Break apart queries to getInstalled* API DO NOT MERGE" into honeycomb-mr2Kenny Root2011-05-261-45/+95
|\
| * Break apart queries to getInstalled* API DO NOT MERGEKenny Root2011-05-261-45/+95
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | To avoid blowing past the Binder IPC limit, change the PackageManagerService to have a DB-like interaction where the client tells the service the last "row" that it read. The fact that we use a HashMap instead of a TreeMap makes this problematic. For now we're just making a new ArrayList for the keys and then sorting them for each call. This can make the API slower for callers of this, but it's probably greatly overshadowed by the cost of the data transfer itself. Bug: 4064282 Change-Id: Ia3a8cdaa94581ed9336f2e05694b8c8a5f757bce
* | I am a dummy.Dianne Hackborn2011-05-261-1/+1
| | | | | | | | Change-Id: Ie6908a8931954f83ab0e9b905173b576dbf3661d
* | Rework how we decide whether to use system or status bar.Dianne Hackborn2011-05-261-20/+27
|/ | | | | | | | | | | The PhoneWindowManager is now responsible for determing this, since it needs to do this before we can generate the configuration since we need to take into account the system bar size we will use. Also the Display should now report the screen height without including the system bar. Change-Id: I82dfcc5e327e4d13d82c373c6c870f557a99b757
* Merge "Spiffy new compatibility mode UI." into honeycomb-mr2Dianne Hackborn2011-05-255-22/+235
|\
| * Spiffy new compatibility mode UI.Dianne Hackborn2011-05-255-22/+235
| | | | | | | | Change-Id: I1207eaafae59a434fcc979ad60a83e2d685288af
* | Touch pad UX improvements.Jeff Brown2011-05-255-52/+158
| | | | | | | | | | | | | | | | | | | | | | | | | | Fade the pointer spot when swiping or performing a freeform gesture. Support configuring the gesture mode in the device IDC file. Added workaround for devices that report individual finger movements one at a time instead of all at once. Bug: 4124987 Change-Id: I44628b00382ad59306e4ec5c4717d69cc6fbebb8
* | Fix deadlock in dispatcher. (DO NOT MERGE)Jeff Brown2011-05-251-1/+0
| | | | | | | | | | | | This regression was caused due to a bad cherry-pick / merge. Change-Id: I79e84285bbfd4cd4b66681461543fb185b60d3ba
* | Fix bug reporting presence of orientation axis. (DO NOT MERGE)Jeff Brown2011-05-251-0/+2
| | | | | | | | Change-Id: I20aecca392d2843601e6e0ec4ac913c8ccdbbf89
* | Add tap/drag touchpad gesture. (DO NOT MERGE)Jeff Brown2011-05-253-68/+162
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The mapper sends a DOWN when the finger is released then starts a short timer. If the finger is not pressed again before the timer elapses, then the mapper sends an UP to complete the tap. If the finger is pressed again then the mapper starts sending MOVEs as part of a drag. Double/triple taps work as intended because we also start watching for a new tap when the finger is pressed again. If a new tap occurs the old tap is also finished. So each individual finger short press/release cycle constitutes a distinct tap. Change-Id: Id0a6ee10dd27e723f6cb04e56b43939abe9e940c
* | Initial checkin of spot presentation for touchpad gestures. (DO NOT MERGE)Jeff Brown2011-05-2512-726/+1263
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Added a new PointerIcon API (hidden for now) for loading pointer icons. Fixed a starvation problem in the native Looper's sendMessage implementation which caused new messages to be posted ahead of old messages sent with sendMessageDelayed. Redesigned the touch pad gestures to be defined in terms of more fluid finger / spot movements. The objective is to reinforce the natural mapping between fingers and spots which means there must not be any discontinuities in spot motion relative to the fingers. Removed the SpotController stub and folded its responsibilities into PointerController. Change-Id: Ib647dbd7a57a7f30dd9c6e2c260df51d7bbdd18e
* | Add a sprite controller. (DO NOT MERGE)Jeff Brown2011-05-2510-219/+904
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Refactored PointerController to extract the surface management code to a new component called a SpriteController so that it can be used to move finger tracking spots around the screen as well. The SpriteController is designed to fully decouple the client from any latency introduced by surface transactions and drawing. All sprite updates are performed asynchronously on the Looper using a copy of the sprite state. Added a stub SpotController implementation for touch pad UX. It will be implemented in a subsequent patch. Fixed a little bug in pointer orientation changes when entering DISPLAY_ORIENTATION_90 the x offset was clobbered. Change-Id: I6d59d80df9af61e93af50290e7776337d10c9d5a
* | Coalesce input events that arrive faster than 333Hz. (DO NOT MERGE)Jeff Brown2011-05-253-21/+101
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Some drivers report individual finger updates one at a time instead of all at once. When 10 fingers are down, this can cause the framework to have to handle 10 times as many events each with 10 times as much data. Applications like PointerLocation would get significantly bogged down by all of the redundant samples. This change coalesces samples that are closely spaced in time, before they are dispatched, as part of the motion event batching protocol. Increased the size of the InputChannel shared memory buffer so that applications can catch up faster if they accumulate a backlog of samples. Change-Id: Ibc6abf8af027d9003011ac75caa12941080caba3
* | Allow batching samples onto the pending motion event. (DO NOT MERGE)Jeff Brown2011-05-251-0/+28
| | | | | | | | | | | | | | | | This enlarges the window of opportunity for batching to encompass time spent for the window to become ready (while it is busy processing the last event). Change-Id: I8870cc3081d27a4de659fb4e375f888fe966460b
* | Merge "Support chorded fallback keys. (DO NOT MERGE)" into honeycomb-mr2Jeff Brown2011-05-253-101/+227
|\ \
| * | Support chorded fallback keys. (DO NOT MERGE)Jeff Brown2011-05-243-101/+227
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Also be more careful about canceling fallback keys during focus transitions, when the application handles the key, or when the policy decides to do something different. Fixed a crash due to JNI CallObjectMethod returning an undefined value (not null) when an exception is thrown. Fixed a crash due to the policy trying to create a Dialog for recent apps on the dispatcher thread. It should happen on the policy's Looper instead. Bug: 4187302 Change-Id: I043f82913830f411b3bb4018d6422467b6ca454f
* | | Merge "Fix focused application handle. (DO NOT MERGE)" into honeycomb-mr2Jeff Brown2011-05-252-4/+5
|\ \ \ | |/ /
| * | Fix focused application handle. (DO NOT MERGE)Jeff Brown2011-05-242-4/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix a bug where we were always setting the focused application handle to NULL. This broke ANR processing while starting applications and caused input events to be dropped while starting applications. Bug: 4174573 Change-Id: Ice7ce3a2b65219568a8227fc1383bafb294666b5
* | | Merge "Optimize EventHub to process events in big chunks. (DO NOT MERGE)" ↵Jeff Brown2011-05-255-138/+183
|\ \ \ | |/ / | | | | | | into honeycomb-mr2
| * | Optimize EventHub to process events in big chunks. (DO NOT MERGE)Jeff Brown2011-05-245-138/+183
| | | | | | | | | | | | | | | | | | | | | When 10 fingers are down, reduces the CPU time spent by the InputReader thread from ~30% to ~5% on Stingray. Change-Id: I42ee5c67b8521af715cbab43e763a4af4eb1f914
* | | Merge "Refactor how timeouts are calculated. (DO NOT MERGE)" into honeycomb-mr2Jeff Brown2011-05-256-24/+94
|\ \ \ | |/ /
| * | Refactor how timeouts are calculated. (DO NOT MERGE)Jeff Brown2011-05-236-24/+94
| | | | | | | | | | | | | | | | | | | | | | | | Added a timeout mechanism to EventHub and InputReader so that InputMappers can request timeouts to perform delayed processing of input when needed. Change-Id: I89c1171c9326c6e413042e3ee13aa9f7f1fc0454
* | | Merge "Improve VelocityTracker numerical stability. (DO NOT MERGE)" into ↵Jeff Brown2011-05-251-4/+3
|\ \ \ | |/ / | | | | | | honeycomb-mr2
| * | Improve VelocityTracker numerical stability. (DO NOT MERGE)Jeff Brown2011-05-231-4/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Replaced VelocityTracker with a faster and more accurate native implementation. This avoids the duplicate maintenance overhead of having two implementations. The new algorithm requires that the sample duration be at least 10ms in order to contribute to the velocity calculation. This ensures that the velocity is not severely overestimated when samples arrive in bursts. The new algorithm computes the exponentially weighted moving average using weights based on the relative duration of successive sample periods. The new algorithm is also more careful about how it handles individual pointers going down or up and their effects on the collected movement traces. The intent is to preserve the last known velocity of pointers as they go up while also ensuring that other motion samples do not count twice in that case. Bug: 4086785 Change-Id: I95054102397c4b6a9076dc6a0fc841b4beec7920
* | | Merge "Use touch pad gestures to manipulate the pointer. (DO NOT MERGE)" ↵Jeff Brown2011-05-254-262/+1384
|\ \ \ | |/ / | | | | | | into honeycomb-mr2
| * | Use touch pad gestures to manipulate the pointer. (DO NOT MERGE)Jeff Brown2011-05-234-262/+1384
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 1. Single finger tap performs a click. 2. Single finger movement moves the pointer (hovers). 3. Button press plus movement performs click or drag. While dragging, the pointer follows the finger that is moving fastest. This is important if there are additional fingers down on the touch pad for the purpose of applying force to an integrated button underneath. 4. Two fingers near each other moving in the same direction are coalesced as a swipe gesture under the pointer. 5. Two or more fingers moving in arbitrary directions are transformed into touches in the vicinity of the pointer. This makes scale/zoom and rotate gestures possible. Added a native VelocityTracker implementation to enable intelligent switching of the active pointer during drags. Change-Id: I7b7ddacc724fb1306e1590dbaebb740d3130d7cd
* | | Merge "Make adb shell am display-size persistent." into honeycomb-mr2Joe Onorato2011-05-251-1/+31
|\ \ \ | |_|/ |/| |
| * | Make adb shell am display-size persistent.Joe Onorato2011-05-251-1/+31
| | | | | | | | | | | | Change-Id: If3d5d18729f4e89eb7e689994deadd996fd487e9
* | | Fix issue #4445007: DPM initializes some values to 1, instead of 0Dianne Hackborn2011-05-251-38/+79
|/ / | | | | | | | | | | | | | | | | Also fix not writing the settings file when an admin is removed. And take care of an old to-do about not removing an admin until after it has received the broadcast about it being disabled. Change-Id: I4ebe0ea0461222b65425b2c5438b646b572f18c8
* | Merge "GPS: Change NTP polling interval from 4 to 24 hours" into honeycomb-mr2Mike Lockwood2011-05-231-2/+2
|\ \
| * | GPS: Change NTP polling interval from 4 to 24 hoursMike Lockwood2011-05-231-2/+2
| | | | | | | | | | | | | | | | | | | | | 4 hours is excessive, and we want to save bandwidth on the NTP servers Change-Id: Ic5ac4f4a8e62167206f3f620ea51635a2ea771d6 Signed-off-by: Mike Lockwood <lockwood@android.com>
* | | MountService: Add StorageVolume as extra in storage related broadcasts.Mike Lockwood2011-05-231-30/+36
| |/ |/| | | | | | | Change-Id: I8e1a21ae233ba9812e58b363b59a66b260a01cbf Signed-off-by: Mike Lockwood <lockwood@android.com>
* | Do not merge. Backport two fixes for InputMethethodFrameworksatok2011-05-201-19/+58
| | | | | | | | | | | | | | | | | | Bug: 3420384 backport cl1: Iaf293cf6c6fb35a994f344b0afc30e9f523032f4 backport cl2: I29d2555aeb7d0e51205d9f1fe0da708df0890942 Change-Id: Ia71ba27957fa818dc4ef8ff05b5fdb120b9650e0
* | Add new "-swNNNdp" resource qualifier.Dianne Hackborn2011-05-191-11/+39
|/ | | | Change-Id: I0101e88ca9d8d44138bdcaf571f24b0352f4f6ce
* Merge "Move softap config handling to WifiConfigStore" into honeycomb-mr2Irfan Sheriff2011-05-191-45/+6
|\
| * Move softap config handling to WifiConfigStoreIrfan Sheriff2011-05-181-45/+6
| | | | | | | | | | | | | | | | Move softap config to flat file and read/write on a seperate handler thread Bug: 4391796 Change-Id: Iafe43200d7f829df7ced20a4e7b0ed451ad22a05
* | Fix fake display size when rotated.Dianne Hackborn2011-05-181-2/+16
| | | | | | | | Change-Id: Ic8a1dbe32cf0cb3c5cdc9b9294b98e810558f875
* | Merge "Improve compat mode scaling implementation." into honeycomb-mr2Dianne Hackborn2011-05-175-281/+149
|\ \
| * | Improve compat mode scaling implementation.Dianne Hackborn2011-05-175-281/+149
| |/ | | | | | | | | | | | | | | | | | | | | Rip out the old funky code for trying to restrict the app window sizes to be within the compat mode range. Instead, we know rely entirely on scaling -- we deal with windows always with the scaling applied so that the window manager doesn't have to deal with them specially. Instead, we just apply the inverse scale at the few points we need to do something the app sees. Change-Id: I785409dd4513b5f738684e1635dc8f770c249651
* | StorageVolume: Add getStorageId() accessorMike Lockwood2011-05-171-0/+5
|/ | | | | | | This ID is used for MTP as well as per volume querying in the media provider. Change-Id: Ic4fc986d972bd477730643f7e9450c390c0b3a4b Signed-off-by: Mike Lockwood <lockwood@android.com>
* Add new command line option to change global screen size.Dianne Hackborn2011-05-163-95/+308
| | | | | | | | For example: adb shell am display-size 1024x600 Change-Id: I5df462acd3323bdaaaefa3126faea7dd8595b726
* Merge "DO NOT MERGE. From main -- Start work on simulating ↵Dianne Hackborn2011-05-161-62/+134
|\ | | | | | | landscape/portrait when orientation is locked." into honeycomb-mr2
| * DO NOT MERGE. From main -- Start work on simulating landscape/portrait when ↵Dianne Hackborn2011-05-161-62/+134
| | | | | | | | | | | | | | | | | | | | | | | | orientation is locked. Not yet working, so turned off. Also fix a bug where the display size configuration became inconsistent after a configuration change -- we now figure out everything about the display size when computing a new configuration. Change-Id: Id155f133c0bf108508a225ef64ed3ca398a90a58
* | Merge "DO NOT MERGE: From master -- Fix bug in deciding which rotation to ↵Dianne Hackborn2011-05-162-7/+8
|\ \ | |/ | | | | use for an orientation." into honeycomb-mr2
| * DO NOT MERGE: From master -- Fix bug in deciding which rotation to use for ↵Dianne Hackborn2011-05-162-7/+8
| | | | | | | | | | | | an orientation. Change-Id: Ie271123271a662f3f753f381ce4c43ad7904dc4a
* | Merge "DO NOT MERGE. Integrate from master: Rework display size access." ↵Dianne Hackborn2011-05-164-23/+57
|\ \ | |/ | | | | into honeycomb-mr2
| * DO NOT MERGE. Integrate from master: Rework display size access.Dianne Hackborn2011-05-164-23/+57
| | | | | | | | | | | | | | | | Applications now get the display size from the window manager. No behavior should be changed yet, this is just prep for some real changes. Change-Id: I47bf8b55ecd4476c25ed6482494a7bcc5fae45d2
* | Merge "StorageManager: Clean up and generalize storage configuration ↵Mike Lockwood2011-05-161-13/+96
|\ \ | |/ |/| | | resources" into honeycomb-mr2
| * StorageManager: Clean up and generalize storage configuration resourcesMike Lockwood2011-05-161-13/+96
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Replace config_emulateExternalStorage, config_externalStorageRemovable, config_externalStoragePaths, config_externalStorageDescriptions and config_mtpReserveSpaceMegabytes resources with an XML resource file to describe the external storages that are available. Add android.os.storage.StorageVolume class StorageManager.getVolumeList() now returns an array of StorageVolume Change-Id: I06ce1451ebf08b82f0ee825d56d59ebf72eacd3d Signed-off-by: Mike Lockwood <lockwood@android.com>
* | DO NOT MERGE. Integrate from master: Improve activity manager debug dumps.Dianne Hackborn2011-05-135-239/+683
|/ | | | | | | | | Activity manager now does all dump requests into apps asynchronously, so it can nicely timeout if there is an app problem. Also lots of general cleanup of the am dump output. Change-Id: I99447b87f77a701af52aeca984d93dfe931f065d