summaryrefslogtreecommitdiffstats
path: root/services
Commit message (Collapse)AuthorAgeFilesLines
* Return the enabled subtypes for the current InputMethod when the input value ↵satok2010-11-181-9/+14
| | | | | | of getEnabledInputMethodSubtypeList was null Change-Id: I6892064dbc2214946871a0ba4ad08e00a2eb6c7b
* frameworks:audio: Correct accessory detection at power upPraveen Bharathi2010-11-171-24/+33
| | | | | | | | | | In the init loop, when all the accessories are detected the state of previous accessory is overridden by the state of the next accessory. Adding the one line change keeps the state of all the detected accessories intact. Change-Id: I4347d8daa27800426dcfb23aac199bed4add67de Signed-off-by: Praveen Bharathi <pbharathi@motorola.com>
* Merge "Add new audio mode for audio communications other than telelphony."Jean-Michel Trivi2010-11-172-16/+32
|\
| * Add new audio mode for audio communications other than telelphony.Jean-Michel Trivi2010-11-162-16/+32
| | | | | | | | | | | | | | | | | | | | | | | | | | | | The audio mode MODE_IN_CALL signals the system the device a phone call is currently underway. There was no way for audio video chat or VoIP applications to signal a call is underway, but not using the telephony resources. This change introduces a new mode to address this. Changes in other parts of the system (java and native) are required to take this new mode into account. The generic AudioPolicyManager is updated to not use its phone state variable directly, but to use two new convenience methods, isInCall() and isStateInCall(int) instead. Change-Id: Id744cd26520ea1d1a4795eabe6a1f0c58789af76
* | Add a function to get enabledInputMethodAndSubtypesatok2010-11-171-4/+33
| | | | | | | | Change-Id: Ie97635343249aa63e33028c2843cab103125ca92
* | Merge "Permission fix: don't require BACKUP perm for self-restores"Chris Tate2010-11-161-9/+52
|\ \
| * | Permission fix: don't require BACKUP perm for self-restoresChris Tate2010-11-161-9/+52
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The public API is not supposed to require the BACKUP permission in order for an application to restore its own last-known-good backup data. However, as currently implemented, BackupManager.requestRestore() [the public API in question] depends on private Backup Manager methods that *do* enforce that permission. The net result is that the method cannot be successfully used by third party applications: it will throw an exception if attempted. This CL restructures the permission checking involved. First, the underlying beginRestoreSession() operation can now be passed a 'null' transport name; if this is done, then the restore session is begun on whatever the currently-active transport is. Looking up the name of the active transport is one of the permission-guarded actions that was required with the initial implementation. Second, a package name can now be passed to beginRestoreSession(). If this is done, then the restore session can only be used to perform a single-package restore of that one application. The BACKUP permission is not required if the caller is tying the restore to its own package name. In combination, these changes permit BackupManager.requestRestore() to function without the calling app needing to hold any special permission. The no-permission case is intentionally quite narrow: the caller must hold the permission unless they both (a) pass 'null' for the transport name, thereby accepting whatever the currently active transport is, and (b) pass their own package name to restrict the restore session only to their own app. External bug http://code.google.com/p/android/issues/detail?id=10094 Internal bug 3197202 Change-Id: Ibc9d652323f2da03727d850f991b4096af6520d2
* | | Fix more things that CloseGuard found.Brad Fitzpatrick2010-11-152-4/+17
| |/ |/| | | | | | | | | Not terribly happy with how the code looks after, though. Change-Id: I7bf5f78ef6c0ac82339a2e49488ca6e64d13c05e
* | am f11bf284: am 305bc0fe: Merge "Fix a race condition in sensormanager" into ↵Mathias Agopian2010-11-152-1/+8
|\ \ | |/ |/| | | | | | | | | gingerbread * commit 'f11bf284d355e2a8378c6a37a7ed702705ec6144': Fix a race condition in sensormanager
| * am 305bc0fe: Merge "Fix a race condition in sensormanager" into gingerbreadMathias Agopian2010-11-152-1/+8
| |\ | | | | | | | | | | | | * commit '305bc0fe977f6197bfae847dbaf58916cf8980ba': Fix a race condition in sensormanager
| | * Fix a race condition in sensormanagerMathias Agopian2010-11-142-1/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | the per-connection state assumed the main sensorservice lock was held during access. This is however not true while pre-processing the events just before sending them to clients. Therefore, there was a small window during which this state could be modified while being used. we now have an internal lock that protects this state. Change-Id: I594680f20f09d6a4f1f38f093a1d3f650dcef1be
* | | Close some things in system_server that CloseGuard found.Brad Fitzpatrick2010-11-152-0/+2
| | | | | | | | | | | | Change-Id: I788c022235caddcb1972a34131442a683cd51eb5
* | | Get rid of the extended themes.Dianne Hackborn2010-11-143-7/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We now decide whether to use a bitmap background based on whether the window's drawing is hardware accelerated. To do this, there is a new "state_accelerated" that state list drawables can be parameterized on, and the standard window background uses this to select a solid color or bitmap drawable as appropriate. Introduces a little hackery to have wm preview windows pretend like they are hardware accelerated even if they aren't, so the preview looks closer to the actual app. Also Add a DialogWhenLarge variation for the light theme. Change-Id: I215a79d5df65ba3eed52ab363cade9d8218a6588
* | | Add a setter of InputMethodSubtype to InputMethodManagersatok2010-11-131-2/+17
| | | | | | | | | | | | | | | | | | - Public API: void setCurrentInputMethodSubtype(int pos) Change-Id: I55daa19ba924999def544bf841f00bf54852f3e1
* | | Reset IME to the build-in IME when there is something wrong with the current ↵satok2010-11-131-5/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | IME. Bug: 3186000 - By this change, there will be no need to find new applicable IME in Settings application - This change handles the edge case that there is something wrong with the current IME Change-Id: Idb42b6184ac135370064b967305faa81f1b382b2
* | | Add a function to switch back to the last used IMEsatok2010-11-131-0/+15
| | | | | | | | | | | | Change-Id: Iac7bcc2ee16dd04d91a3e75b160622d246788c9a
* | | Add support for audio recording source in generic audio policy mgr.Jean-Michel Trivi2010-11-121-4/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | Update the platform-independent audio policy manager to pass the nature of the audio recording source to the audio policy client interface through the AudioPolicyClientInterface::setParameters() method. Change-Id: I6b4fd0f8a3acea0d7d30bbad98edd1977dc012bf
* | | Add password expiration support to DevicePolicyManager.Jim Miller2010-11-111-2/+196
| | | | | | | | | | | | Change-Id: Ib2629ec547c123ac489d7f4cbd4e0a1d4aa07620
* | | Merge "Temporary workaround for issue 3187563"Eric Laurent2010-11-111-0/+4
|\ \ \
| * | | Temporary workaround for issue 3187563Eric Laurent2010-11-111-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The audio HAL does not always handle properly simultaneous input and output stream state changes. This happens in particular when starting video record because output stream starts and stops while input is active. Temporary disable the video record jingle the time the audio HAL issues are solved. Change-Id: I3b923d81af543a335deae9e22d7f396bb5791d91
* | | | Merge "Implement reducing the buffer count of a Surface."Jamie Gennis2010-11-112-4/+50
|\ \ \ \
| * | | | Implement reducing the buffer count of a Surface.Jamie Gennis2010-11-112-4/+50
| | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: I7f979c60c06d654aa8265002836277434bc1a64f Bug: 3095167
* | | | | am 792b847e: am fcab475c: Merge "record the last event received regardless ↵Mathias Agopian2010-11-112-14/+22
|\ \ \ \ \ | |_|/ / / |/| | / / | | |/ / | |/| | | | | | | | | | of having clients or not" into gingerbread * commit '792b847ee117c3c21b2859635caa7e7ec39d9c20': record the last event received regardless of having clients or not
| * | | am fcab475c: Merge "record the last event received regardless of having ↵Mathias Agopian2010-11-112-14/+22
| |\ \ \ | | | |/ | | |/| | | | | | | | | | | | | | | | | clients or not" into gingerbread * commit 'fcab475c906da5c159bc56a32c2610f6f55eafd9': record the last event received regardless of having clients or not
| | * | record the last event received regardless of having clients or notMathias Agopian2010-11-102-14/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We only recorded the last received event (which is needed when a sensor is activated on a connection) when there was some connection active. This should fix an issue where sometimes the light sensor doesn't return an event whent activated. we also didn't need to hold the main lock while dispatching events to clients. Change-Id: I6c6386c040051ce205e3c0516c678e0603fa45e1
* | | | Merge "Remove a problematic empty update optimization."Jamie Gennis2010-11-111-4/+0
|\ \ \ \
| * | | | Remove a problematic empty update optimization.Jamie Gennis2010-11-101-4/+0
| | |_|/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This change removes an optimization from SurfaceFlinger that skipped composition when it got window updates that had an empty dirty region. This optimization caused problems because it would skip the hwcomposer set call, which could leave the window's previous frame buffer bound to an overlay plane. When the application subsequently dequeued and tried to lock its next buffer (which would be the buffer currently bound to the overlay), the lock call would block until the next hwcomposer set call (which may never happen). Change-Id: I563b626a1d52c1f30eb82489eae0ceb4edc79936 Bug: 3138752
* | | | StrictMode.Span supportBrad Fitzpatrick2010-11-111-1/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Support for annotating critical regions (e.g. animations) with a tag to be uploaded. Change-Id: I412fc78f40dc05c9a3c9f62a4b0463201dbdb767
* | | | Save the history of InputMethodSubtype for reverting the subtype when IME ↵satok2010-11-111-47/+228
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | was changed. - Re-revert the change https://android-git.corp.google.com/g/#q,78962,n,z *** If you want to see the diff between reverted change and new change, please see the diff between patch set 1 and the latest patch set - TODO: Add a public function "switchToLastInputMethod" Change-Id: Ic85d54b3b68e47a22360acaeb81202a366a34586
* | | | Adding widget auto-advance capabilityAdam Cohen2010-11-101-0/+2
|/ / / | | | | | | | | | Change-Id: I058573f40a48fd7b5c2efa5f1041a1199919a51a
* | | am bf44ebae: am 9de93424: Merge "Without SD card the shutdown sequence was ↵Brad Fitzpatrick2010-11-101-0/+11
|\ \ \ | |/ / | | | | | | | | | | | | | | | delayed" * commit 'bf44ebae04f837596b9942ccb15d3d47bad4acec': Without SD card the shutdown sequence was delayed
| * | am 9de93424: Merge "Without SD card the shutdown sequence was delayed"Brad Fitzpatrick2010-11-101-0/+11
| |\ \ | | | | | | | | | | | | | | | | * commit '9de93424cc05446e3a216f406c55a3937c028416': Without SD card the shutdown sequence was delayed
| | * | Without SD card the shutdown sequence was delayedJohan Alfven2010-11-091-0/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | | Merge "Fix data state change callbacks"Robert Greenwalt2010-11-101-8/+11
|\ \ \ \
| * | | | Fix data state change callbacksRobert Greenwalt2010-11-091-8/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | | | Implement new task transition animations.Dianne Hackborn2010-11-091-12/+56
| | | | | | | | | | | | | | | | | | | | Change-Id: I62c10e7b2afac4371b3739f1cd5948c655edc125
* | | | | Add recording source for voice communicationJean-Michel Trivi2010-11-091-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add a recording source used to designate a recording stream for voice communications such as VoIP. Change-Id: I4091d67069b1a0170c1a5ca5e6acd51eb0aa08f9
* | | | | Revert "Add a history of InputMethodSubtype for getting the last subtype of ↵Tadashi G. Takaoka2010-11-091-226/+47
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | selected IME when IME was changed." This reverts commit 1ab852fbcfe155c9d4373b7130f8515591669634.
* | | | | Add a history of InputMethodSubtype for getting the last subtype of selected ↵satok2010-11-091-47/+226
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | IME when IME was changed. Change-Id: I66752a881726c0ce2816a9d54de60fb0d992e968
* | | | | am f8c24a66: am cd43fbb4: Merge "improve sensorservice dumpsys and increase ↵Mathias Agopian2010-11-083-5/+16
|\ \ \ \ \ | | |/ / / | |/| | | | | | | | | | | | | | | | | | | | | | | the max sensor rate to 1 ms (1000Hz)" into gingerbread * commit 'f8c24a66a7318554604ae63d0ae4948c41b0d6e1': improve sensorservice dumpsys and increase the max sensor rate to 1 ms (1000Hz)
| * | | | am cd43fbb4: Merge "improve sensorservice dumpsys and increase the max ↵Mathias Agopian2010-11-083-5/+16
| |\ \ \ \ | | | |_|/ | | |/| | | | | | | | | | | | | | | | | | | | | | sensor rate to 1 ms (1000Hz)" into gingerbread * commit 'cd43fbb4537487a9c3185e919904f8b0c93daee6': improve sensorservice dumpsys and increase the max sensor rate to 1 ms (1000Hz)
| | * | | improve sensorservice dumpsys and increase the max sensor rate to 1 ms (1000Hz)Mathias Agopian2010-11-083-5/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | the increased maximum rate is needed for proper gyro integration, current gyro parts can sample at up to 800Hz Change-Id: Ide75f6d5bc7a0fdafeb2dafd72db39e7afb9e794
| * | | | am 70fc04c8: Reorganize PackageManager dump to avoid NPEKenny Root2010-11-051-2/+2
| |\ \ \ \ | | |/ / / | | | | | | | | | | | | | | | * commit '70fc04c84db8f99ac2ac60fd9719b91057aacc9b': Reorganize PackageManager dump to avoid NPE
| | * | | Reorganize PackageManager dump to avoid NPEKenny Root2010-11-051-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | | | make the resolver activity's items visibleJoe Onorato2010-11-081-1/+1
| | | | | | | | | | | | | | | | | | | | Change-Id: Ic02c834c01c3d71d6e1c073f986b87ae5faa1da0
* | | | | The CHEEK_TOUCH stuff never worked. Remove it.Joe Onorato2010-11-081-23/+3
| | | | | | | | | | | | | | | | | | | | | | | | | Bug: 3104906 Change-Id: Ia37236ba1775fc3ec8c111e2e0b85b105e0dea6a
* | | | | Tell system server whether the app handled input events.Jeff Brown2010-11-083-7/+58
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | | | Merge "add frequency band control API"Irfan Sheriff2010-11-081-0/+32
|\ \ \ \ \
| * | | | | add frequency band control APIIrfan Sheriff2010-11-081-0/+32
| | |_|/ / | |/| | | | | | | | | | | | | Change-Id: I6cc6cdef27d493d4ef76cec17fdca7e49d9dc8d7
* | | | | Window manager: cancel animations before losing references to them.Brad Fitzpatrick2010-11-081-3/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | For possible future changes to android.view.animation.Animation to tie into StrictMode's animation annotations on violations. Change-Id: I3a23fa9bd5edb0500586bb0e341f83f998b28ae7