summaryrefslogtreecommitdiffstats
path: root/services
Commit message (Collapse)AuthorAgeFilesLines
* DO NOT MERGE: KeyguardManager: Add isKeyguardLocked() and isKeyguardSecure()Mike Lockwood2011-02-261-0/+8
| | | | | | | BUG: 3402847 Change-Id: I7cb199763e8d5386914b4c2173c9e1579b08674c Signed-off-by: Mike Lockwood <lockwood@android.com>
* DO NOT MERGE Add support for background scanningIrfan Sheriff2011-02-231-0/+12
| | | | | | | | | | | Background scanning (preferred network offload) allows us the host to sleep while the dongle monitors the presence of any preferred networks. This allows us for significant power savings since the system does not have to wake up often to initiate a scan Bug: 3453021 Change-Id: I73dcf4e1c9ab4de280c40b6df6147a74ac003123
* Merge "Fix issue #3414328: A couple panics observed during an attempted..." ↵Dianne Hackborn2011-02-041-2/+2
|\ | | | | | | into honeycomb
| * Fix issue #3414328: A couple panics observed during an attempted...Dianne Hackborn2011-02-041-2/+2
| | | | | | | | | | | | ...pairing to IHF1700 - IKXEVEREST-3627 Change-Id: I3d5b42d65a03ed19b8460c607ff5de862bccb4e6
* | Merge "Ongoing notification for GPS use." into honeycombDaniel Sandler2011-02-031-4/+29
|\ \ | |/ |/|
| * Ongoing notification for GPS use.Daniel Sandler2011-02-031-4/+29
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This change improves upon the notification priority API introduced in change I9e738cc4, allowing privileged clients to set the priority of a notification when posting it directly to INotificationManager. StatusBarTest is updated to test this new feature. The new LocationController in SystemUI uses this facility to post a high-priority ongoing notification whenever GPS is in use (replacing the functionality of the legacy GPS status bar icon). Also happens to fix http://b/3325472 (adding a log message when notifications are dropped because of a missing icon). Bug: 3412807 Change-Id: I523016ffa53bf979be98ddc4a2deb55a6270c68a
* | Fix issue #3420898: More wallpaper issuesDianne Hackborn2011-02-032-54/+60
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - The ImageWallpaper wasn't watching for the desired dimensions to change, at which point it needs to resize its surface. - The system process has been running with the small dalvik heap limit, which is too tight with these huge wallpapers; this would cause switching wallpapers to eventually stop working as it couldn't get the memory it needed to load the new one. - The compatibility mode background surface had a bunch of issues, such as moving its windows to the right by the window size to make them disappear. This of course doesn't play well with the now super-sized wallpaper surface. This code is re-worked to not require such shenanigans. Change-Id: I64fde4059645d8507f1c4761ba6c17b89877a5c0
* | Merge "fix [3421350] Killing a game that uses the accelerometer renders the ↵Mathias Agopian2011-02-032-6/+9
|\ \ | |/ |/| | | device unable to sleep" into honeycomb
| * fix [3421350] Killing a game that uses the accelerometer renders the device ↵Mathias Agopian2011-02-032-6/+9
| | | | | | | | | | | | | | | | | | | | unable to sleep when an app dies, make sure to disable all sensors that process is connected to, regardless of wether this was the LAST connection to this sensor. Change-Id: I9c72b1792eee03815304674d5c2f25b5270e4748
* | Fix issue 3371080Eric Laurent2011-02-035-39/+31
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Modified default volume control logic in AudioService: 1 IN_CALL volume if in video/audio chat 2 NOTIFICATION if notification is playing or was playing less than 5s ago. 3 MUSIC Modified silent mode: - now also affect MUSIC stream type - entering silent mode when VOL- hard key is pressed once while selected stream volume is already at 0 (except for VOICE_CALL stream). - exiting silent mode when pressing VOL+ hard key while in silent mode Play sound FX (audible selections, keyboard clicks) at a fixed volume. Modified audio framework: - isStreamActive() method now implemented in AudioPolicyManagerBase (previously AudioFlinger) - iStreamActive() now specifies a time window during which the stream is considered active after it actually stopped. Change-Id: I7e5a0724099450b9fc90825224180ac97322785f
* | Fix issue #3418265: Rotation animation on wallpaper is brokenDianne Hackborn2011-02-022-30/+98
| | | | | | | | | | | | | | | | | | Two problems: 1. The wallpaper offsets were being applied at the wrong place in the xform. 2. The background black needs become a clip around the newly revealed UI. Change-Id: I3b46aea2ace3c8c5a36fc5e37b4e2b67fff1b289
* | [3418265] apply layer transformations to the DimLayer.Mathias Agopian2011-02-023-35/+1
|/ | | | | | | with this change DimLayers will behave just like any other layer, in particular they'll respect the layer transformations. Change-Id: Icb4a1275e8bca9e3deb5f57c9f9219aaa69f9877
* Fix issue #3415137: New wallpaper size breaks thumbnails.Dianne Hackborn2011-02-021-0/+3
| | | | Change-Id: I3ce4fa8f532cc378c390138bab0ff3126fe0f0c3
* Merge "Fix keyboard hidden flag." into honeycombJeff Brown2011-01-311-6/+9
|\
| * Fix keyboard hidden flag.Jeff Brown2011-01-311-6/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Configuration.hardKeyboardHidden should be set to HARDKEYBOARDHIDDEN_YES when no keyboard is present or when it is disabled. The code in PhoneWindowManager.adjustConfigurationLw does the right thing. It also takes care of setting keyboardHidden correctly when only a soft keyboard is available. So it turns out that all we need to do to disable the hard keyboard is to set Configuration.keyboard to KEYBOARD_NOKEYS *before* asking the policy to adjust the configuration. Bug: 3406101 Change-Id: I3519d02af30d8068198cb3d6b8fdde601c2fe8b4
* | Merge "Do not check features in PackageManagerService" into honeycombDianne Hackborn2011-01-311-20/+0
|\ \
| * | Do not check features in PackageManagerServiceKenny Root2011-01-311-20/+0
| |/ | | | | | | | | | | | | | | | | | | | | PackageManagerService shouldn't check features that a package declares that it uses because this will cause problems in the future when we add more features that older phones didn't explicitly declare. We must rely on markets to know about phones and filter them for us to avoid this situation. Bug: 3409434 Change-Id: I419a5b936be3572b83a485081a6c81b2f1c8741c
* | Not to update IME when Settings version is older than the last updated version.satok2011-02-011-0/+17
|/ | | | | | | | | | | | - Check if just old version or not. - Sometimes, ContentObserver.onChange is called before finishing to save the actual value. This can be verified by checking the system settings version. If the version is not updated, cached value will be returned from Settings.Secure, and this should not be handled. Bug: 3406300 Change-Id: Ie3f5b484b5574e10a41dfc209ed31271a474b828
* Merge "Check for the STATUS_BAR permission for the system UI properties." ↵Joe Onorato2011-01-301-0/+10
|\ | | | | | | into honeycomb
| * Check for the STATUS_BAR permission for the system UI properties.Joe Onorato2011-01-301-0/+10
| | | | | | | | | | | | | | If the app doesn't have that permission, just mask out the bits. Also makes the systemUiVisibility field visible in hierarchyviewer. Change-Id: Ic3d3a3aed96b5c6448832755b4b2e6175117e5be
* | Merge "Reset ANativeWindow crop on buffer geometry changes." into honeycombJamie Gennis2011-01-301-5/+3
|\ \ | |/ |/|
| * Reset ANativeWindow crop on buffer geometry changes.Jamie Gennis2011-01-281-5/+3
| | | | | | | | | | | | | | | | | | This changes the ANativeWindow API and the two implementations to reset the window's crop rectangle to be uncropped when the window's buffer geometry is changed. Bug: 3359604 Change-Id: I64283dc8382ae687787ec0bebe6a5d5b4a0dcd6b
* | Mass merge from gingerbread - do not mergeThe Android Open Source Project2011-01-303-2/+11
|\ \ | | | | | | | | | Change-Id: I45dc3596bf4211d8f91c64f2d1d00588878df629
| * \ Merge 0ef57993 from gingerbreadJean-Baptiste Queru2011-01-291-1/+2
| |\ \ | | | | | | | | | | | | Change-Id: If10fee1ae387a8130356dd62fe678495402d5edf
| | * | Fix issue 2988031.Eric Laurent2011-01-271-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | Limit SYSTEM stream volume when a headset is connected and music is playing. Change-Id: Ieb44ae5bb53ffa9cd5fe8e317798eed279b78df8
| | * | do not merge bug 3370834 Cherrypick from masterJean-Michel Trivi2011-01-263-22/+38
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Cherripick from master CL 79833, 79417, 78864, 80332, 87500 Add new audio mode and recording source for audio communications other than telelphony. 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. Add a recording source used to designate a recording stream for voice communications such as VoIP. 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. SIP calls should set the audio mode to MODE_IN_COMMUNICATION, Audio mode MODE_IN_CALL is reserved for telephony. SIP: Enable built-in echo canceler if available. 1. Always initialize AudioRecord with VOICE_COMMUNICATION. 2. If echo canceler is available, disable our echo suppressor. Note that this CL is intentionally not correcting the getAudioSourceMax() return value in MediaRecorder.java as the new source is hidden here. Change-Id: Ie68cd03c50553101aa2ad838fe9459b2cf151bc8
| * | | am 138757db: Merge "Make OBB results a one-way call" into gingerbreadKenny Root2011-01-291-1/+1
| |\ \ \ | | |/ / | | | | | | | | | | | | * commit '138757db4f19cb626ef5c1d371d4fca004304a08': Make OBB results a one-way call
| | * | Merge "Make OBB results a one-way call" into gingerbreadKenny Root2011-01-261-1/+1
| | |\ \
| | | * | Make OBB results a one-way callKenny Root2011-01-251-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | OBB result back to an application needs to be a one-way binder call. Bug: 3353699 Change-Id: I0e625914d18a001c2fa9d764ea6463f34cf96743
| | * | | fix [3361121] hang in glClear() - device unresponsive, OTA fails (DO NOT MERGE)Mathias Agopian2011-01-256-43/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Generally we never want to lock a buffer for write access if it is at the "head" on the surfaceflinger side. The only exception (1) is when the buffer is not currently in use AND there is at least one queued buffer -- in which case, SurfaceFlinger will never use said buffer anymore, because on the next composition around, it will be able to retire the first queued buffer. The logic above relies on SurfaceFlinger always retiring and locking a buffer before composition -- unfortunately this didn't happen during a screenshot. This could leave us in a situation where a buffer is locked by the application for write, and used by SurfaceFlinger for texturing, causing a hang. Here, we fix this issue by never assuming the exception (1), it was intended as an optimization allowing ANativeWindow::lockBuffer() to return sooner and was justified when most of SF composition was done in software. The actual buffer locking is now ensured by gralloc. We could have handled screenshots in a similar way to a regular composition, but it could have caused glitches on screen, essentially, taking a screenshot could cause to skip a frame. 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.
| | * | | partially fix [3306150] HTML5 video with H/W acceleration blackout (DO NOT ↵Mathias Agopian2011-01-254-1/+59
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | MERGE) We used to guarantee that a layer in SurfaceFlinger would never be destroyed before all references (to its ISurface) on the client side would be released. At some point, this guarantee got relaxed to allow to free gralloc resources sooner. This last change was incorrect, because: - in implementations with reference-counting the gralloc resources wouldn't be released anyways, until all the mapping were gone - in implementations without ref counting, the client side would most likely crash or do something bad - it also caused the SharedBufferStack slot to be reallocated to another surface, which could be problematic if the client continued to use the surface after the window manager destroyed it. So, we essentially reinstate the guarantee that layers won't be destroyed until after all references to their ISurface are released. NOTE: This doesn't entirely fix 3306150 because there is another problem there where the Browser continues to use a surface after it has been destroyed. also improve SurfaceFlinger 'dumpsys' log list the purgatory, which shows windows that have been closed, but for which the client still has references.
| | * | | fix a small bug that caused screenshot to show garbage in some cases (DO NOT ↵Mathias Agopian2011-01-251-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | MERGE) we were not clearing the screen entirely, which caused garbage when the screen wasn't entirely covered by windows. Change-Id: Ia7aa13c36a8a314e0e8427d419b16b9aa2165ddf
| | * | | workaround [3201922] display not on: log full of gralloc errors (DO NOT MERGE)Mathias Agopian2011-01-251-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | we make sure to call compositionComplete after everytime we do composition with the GPU (even for the screenshot case), which is where the buffer locks are released. Change-Id: I450430d1e4d1ee9ce1023970642378c42cdcfa4c
| | * | | minor clean-up. SurfaceFlinger doesn't need libpixelflinger.so. (DO NOT MERGE)Mathias Agopian2011-01-251-1/+0
| | |/ / | | | | | | | | | | | | Change-Id: I1ddbbbec4fa5b2521ef3787bc28efe1bc90d0060
| | * | do not merge - Fix issue 3371096.Eric Laurent2011-01-201-8/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | EffectModule::process() was copying effect chain input buffer to output buffer if no effect was active instead of accumulating it. Change-Id: If4ca75601ea69a088d0f71d88aec53e90a1dec89
| | * | 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: Iac290a716cc47a78337a8f0e45b103e49b4d9d78
| | * | Watchdog can get deadlocked on activity managerBrad Fitzpatrick2011-01-181-3/+16
| | | | | | | | | | | | | | | | | | | | Bug: 3351719 Change-Id: Idf3907709340062849a09dd094137e86256ed739
| | * | Merge "Do not add unsolicited events to queue" into gingerbreadIrfan Sheriff2011-01-181-5/+7
| | |\ \
| | | * | Do not add unsolicited events to queueIrfan Sheriff2011-01-161-5/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Adding unsolicited events to response queue results in doCommand() returning the wrong result. Pulling this change from master. Bug: 3258529 Change-Id: I2a4b0bd8bb30b31682d7d61ee94a0d246bf10de2
| | * | | Merge "Filter virtual keys after touches. (DO NOT MERGE)" into gingerbreadJeff Brown2011-01-182-2/+32
| | |\ \ \
| | | * | | Filter virtual keys after touches. (DO NOT MERGE)Jeff Brown2011-01-112-2/+32
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Adds a new virtualKeyQuietTimeMillis configuration resource that sets the duration for which virtual keys will be dropped after recent touches on screen. The default value is 0; it is intended to be overridden per device using a resource overlay. This change is designed to help in two cases: 1. Swipes from touchscreen into virtual key area. 2. Accidental taps in virtual key area while using on-screen keyboard. Bug: 3089163 Change-Id: Id6733c83c2e2bc8d9553aa0e5c1fd74b741bec6e
| | * | | | Revert "Add the {get,set}PackageObbPaths calls to API"Kenny Root2011-01-171-108/+0
| | | |/ / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This reverts commit 6c4d904851772313930f800ac7c323cf90c709bb. Going with a different tactic that doesn't dump stuff on PackageManagerService. Bug: 3214719 Change-Id: I0bbeccf3c21d264deda4256eb53713d2c98284f4
| | * | | Deep clone settings for system package update DO NOT MERGEKenny Root2011-01-141-12/+70
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The copyFrom() method was not written to create a clone of the PackageSetting, so just create a new constructor that actually does a clone. Bug: 3349588 Change-Id: I24bdce6c3559e097ecb64b61585ef3b12bca491f
| | * | | Merge "Add the {get,set}PackageObbPaths calls to API" into gingerbreadKenny Root2011-01-121-13/+83
| | |\ \ \
| | | * | | Add the {get,set}PackageObbPaths calls to APIKenny Root2011-01-091-13/+83
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add getPackageObbPaths() and setPackageObbPaths() to the public API. Bug: 3214719 Change-Id: Icb9f2f92f8c59bb3d31317f609854e81abbd1449
| | * | | | Merge "Allow updated system apps to retain priority" into gingerbreadKenny Root2011-01-122-6/+16
| | |\ \ \ \ | | | |_|/ / | | |/| | |
| | | * | | Allow updated system apps to retain priorityKenny Root2011-01-112-6/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Previously any updated system apps would not be able to have a greater than 0 priority on an activity intent filter. Moving the priority check later in the package scanning allows it to apply to updated system packages as well. Bug: 2572398 Change-Id: I9fdf7906809518b28b49ffec31afec1442d85d3c
| * | | | | am 91c459ec: Copy user info from PackageSetting as wellKenny Root2011-01-261-0/+8
| |\ \ \ \ \ | | |/ / / / | | | | | | | | | | | | | | | | | | * commit '91c459ec7dba6d56816ff5cbd92c627e0f718915': Copy user info from PackageSetting as well
| | * | | | Copy user info from PackageSetting as wellKenny Root2011-01-111-0/+8
| | |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In order not to clobber the internal system's settings, we duplicate it before putting it back into mPackages, but the PackageSetting has a couple extra pieces of information that weren't being copied. Bug: 3339279 Change-Id: I047087ac3477c7b2d5ce23e5e0a5e8c094bd0d3f
| | * | | Merge "Referencing of "r.record.name" is occured, when "r.record" is null." ↵Dianne Hackborn2011-01-091-1/+1
| | |\ \ \ | | | | | | | | | | | | | | | | | | into gingerbread