summaryrefslogtreecommitdiffstats
path: root/core/java/android/service
Commit message (Collapse)AuthorAgeFilesLines
* Merge branch 'cm-13.0' of ↵HEADreplicant-6.0-0001replicant-6.0Wolfgang Wiedmeyer2017-05-021-0/+5
|\ | | | | | | https://github.com/LineageOS/android_frameworks_base into replicant-6.0
| * Prevent writing to FRP partition during factory reset.Charles He2017-03-221-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Avoid potential race condition between FRP wipe and write operations during factory reset by making the FRP partition unwritable after wipe. Bug: 30352311 Test: manual CVE-2017-0498 Change-Id: If3f024a1611366c0677a996705724458094fcfad (cherry picked from commit a629c772f4a7a5ddf7ff9f78fb19f7ab86c2a9c2) (cherry picked from commit a9437bd1caeeb38780d920a81bde8cc7ca280fe0) (cherry picked from commit 1c4d535d0806dbeb6d2fa5cea0373cbd9ab6d33b)
* | Merge branch 'cm-13.0' of ↵Wolfgang Wiedmeyer2016-12-121-0/+4
|\ \ | |/ | | | | https://github.com/CyanogenMod/android_frameworks_base into replicant-6.0
| * NullPointerException when starting VoiceInteractionManagerServiceEdward Savage-Jones2016-03-271-0/+4
| | | | | | | | | | | | | | | | | | | | | | If an end user disables the package that implements support for Voice Assist (Google App) and reboots, an NPE is thrown during boot, which results in the device getting stuck at the boot animation. Recovery is not possible without USB debugging enabled, leaving factory reset/user data wipe as the only other option. Change-Id: I9c161fff7f096deee13bf8e37d951e20898ae3ff
* | WallpaperService: change pixel format to RGBA8888Wolfgang Wiedmeyer2016-08-251-1/+1
|/ | | | | | | The wallpapers are now sometimes displayed correctly when using llvmpipe. Needs more investigation. Signed-off-by: Wolfgang Wiedmeyer <wolfgit@wiedmeyer.de>
* Revert "[2/2] framework/base: Add EdgeGesture service."Steve Kondik2016-03-105-264/+0
| | | | | | | | | * This is shadowing functionality in SystemGesturesPointerEventListener and breaking things. It's also deprecated. Remove it. This reverts commit 7ae073bef3703ed7d6a141e35ae8d2a7c0137fc8. Change-Id: Ia0b547cddd412cdf1b19bad5a08bf1ccd28c3ee5
* Merge tag 'android-6.0.1_r3' of ↵Steve Kondik2015-12-071-23/+48
|\ | | | | | | | | | | | | | | https://android.googlesource.com/platform/frameworks/base into cm-13.0 Android 6.0.1 release 3 Change-Id: I59b9e5a943e0860d43bcfb36ee0e8b8b072412ea
| * Add 'until next alarm' option to QS zen panel.Julia Reynolds2015-10-151-23/+48
| | | | | | | | | | | | | | | | | | | | | | Unlike the implementation in LMR1, this is a countdown condition (a countdown until the time of what was the next alarm when the rule was created). The rule will not change if alarms change. Also, alarms up to 7 days in the future will be considered. Bug: 21648799 Change-Id: Id7fa9dbdbad1539e4da19b1d0e0c4395bb13e6cb (cherry picked from commit 0842fe87b27b9e4a7aecfec25b93dba2d39f398a)
* | DreamManager: be aware of device lidRoman Birg2015-10-271-0/+2
| | | | | | | | | | | | | | | | | | If the device lid controls whether the screen goes to sleep, the DreamManager (and so also DozeMode) should be aware and not try to activate itself if the cover is closed. Change-Id: Ie855a8a403548bcabbf1e0824e5cb128110066c2 Signed-off-by: Roman Birg <roman@cyngn.com>
* | ambient display: Fix volume key music controlChristopher R. Palmer2015-10-262-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | Previously the dream service would only report whether or not it was dreaming. Ambient display counts as dreaming. When dreaming, the volume inputs are passed back to the application which is not what we want for ambient display. Fix this by exposing isDozing() and allow volume keys to control music when we are dreaming and have moved into doze mode (aka, sleeping). Change-Id: I3b1e72b95ec8b1b63ef0219259dfee77a5d339d3
* | [2/2] framework/base: Add EdgeGesture service.Kyrylo Mikos2015-10-255-0/+264
| | | | | | | | | | | | Based on code of PieService. Change-Id: I053737e36340a5ec6814b21eb87575f9689c7e88
* | Support GESTURE_SENSOR input device type with GestureServiceEthan Chen2015-10-181-0/+11
|/ | | | | | | | | | | | | | | | | | | | | * The GESTURE_SENSOR input device type is meant to support touch sensors which are meant for gesture input only, very similar to a touchpad, but without the pointer capability. * Define separate service to handle gestures from GESTURE_SENSOR device type. Change-Id: I9b273df2a3cc141774d7f7cd81e43a90ea5b230b Hide InputDevice.SOURCE_GESTURE_SENSOR from API Change-Id: If009e9595fc593594b0e7764669996de137483a1 GestureInput : Allow doubletap/longpress configuration Allows devices to specify pending intents for double tap and long press events. Change-Id: I7e7cc2f9f96a01d8f6232e5cf0e19832fdfd5359
* Merge changes from topic 'fix-media-notifications' into mnc-devDaniel Sandler2015-07-301-0/+24
|\ | | | | | | | | | | * changes: Fully support Icons in Notification actions. Fix media notification action icons.
| * Fix media notification action icons.Dan Sandler2015-07-291-0/+24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In addition to cleaning up some bare references to the icon slot, we now apply updates to notification RemoteViews in the context of the supplying app's package. This ensures we can find the drawables inside any Icon objects that were constructed without a proper package name, such as is the case with Actions (because the builder and constructor are Context-free and so don't know the package name). This CL also makes clear what was previously only implied: Non-resource action icons are not actually supported yet since they can't be pushed to TextView compound drawables using today's RemoteViews APIs. That will require an API change. Bug: 22600607 Change-Id: Ie6b88aed36e4db05be35f843ea3bc1898d4a5c96
* | Work on issue #21516866: Implement voice interaction in ResolverActivityDianne Hackborn2015-07-282-0/+130
|/ | | | | | | | | | | | | | | The main change here is to not allow the dialog to go in to its "focus on the last app the user selected" when running in voice interaction mode, instead just always giving a simple list. This also fixes some problems with cleaning up active commands when an activity finishes and not forcing the current session to go away when the screen is turned off. Also added some debug help, having activity print the state of the voice interactor. Change-Id: Ifebee9c74d78398a730a280bb4970f47789dadf5
* Merge "Add callback to voice interaction session for lockscreen shown" into ↵Jorim Jaggi2015-07-212-0/+18
|\ | | | | | | mnc-dev
| * Add callback to voice interaction session for lockscreen shownJorim Jaggi2015-07-212-0/+18
| | | | | | | | | | Bug: 22402726 Change-Id: Iaf83e2f2b0389d74b6ecf480aa91a34443803f7b
* | Fix issue #22564918: Request is inactiveDianne Hackborn2015-07-201-2/+32
|/ | | | | | | | | Add Request.isActive() API. Also improve documentation to tell people what things cause it to become inactive. And fix a race where we were modifying the active list from outside the main thread without locking it. Change-Id: I9248e014126cb121612edbe595108ace753456e2
* Merge "Fix issue #22531747: Assist info should declare if user has ↵Dianne Hackborn2015-07-201-5/+38
|\ | | | | | | disabled..." into mnc-dev
| * Fix issue #22531747: Assist info should declare if user has disabled...Dianne Hackborn2015-07-201-5/+38
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ...context and/or screenshot Added new API to find out what contextual data has been globally disabled. Also updated various documentation to make it clear what kind of contextual data you will get (and when it will be null). Also added a new Activity.showAssist() API because... well, I was already in there, it was easy to do, it is safe, and maybe people will build cool things with it. Change-Id: Ia553d6bcdd098dc0fce4b9237fbfaca9652fc74b
* | Update ChooserTarget constructor to take ComponentName, BundleAdam Powell2015-07-163-96/+39
|/ | | | | | | | | | | | | | Simplify ChooserTarget handling by requiring a target component and an extras bundle instead of a full PendingIntent/IntentSender. This simplifies the handling of URI grants from sending apps. Prune ChooserTargets that point at ComponentNames that don't share a package with the original matching Activity target or that aren't exported so that we don't show the user something they can't launch. Bug 22516282 Change-Id: I3439c0910b4fa4f95c7a881b529942c96ffc953e
* Merge "Implement issue #22403908: Enable assistant to refuse context ↵Dianne Hackborn2015-07-152-3/+56
|\ | | | | | | sharing" into mnc-dev
| * Implement issue #22403908: Enable assistant to refuse context sharingDianne Hackborn2015-07-152-3/+56
| | | | | | | | | | | | | | New APIs allow the voice interaction service to set/retrieve a filter for which of the show flags are allowed. Change-Id: I588cbe55afee0548ad3afa22d3a7d3bc43cb54a6
* | Fix issue #22124996: VI: Command Request not ActiveDianne Hackborn2015-07-151-1/+6
|/ | | | | | | This stupid thing wasn't even completely implemented in HandlerCaller! D'oh! Change-Id: I0dac42c208fa0f08a6e20a6cb17b072f51efcaa7
* Improve tracking of screen on reasons.Dianne Hackborn2015-07-151-1/+2
| | | | | | | | | | | | | | | | | - New screen on app op to record the last time each app has caused the screen to be turned on. - New battery stats event that tells us the reason the screen has been asked to turn on. - Propagate out power manager API to specify the reason a caller is asking to have the screen turned on. Note that currently the window flag to turn the screen on bypasses much of this because it is being handled in the window manager by just directly telling the power manager to turn the screen on. To make this better we need a new API where it can specify who it is calling the API for. Change-Id: I667e56cb1f80508d054da004db667efbcc22e971
* Fix issue #22328792: Fix scalability issues in AssistStructureDianne Hackborn2015-07-091-11/+61
| | | | | | | | | | | | | | | We can now stream the AssistStructure across processes, avoiding IPC size limitations for large structures. There is also a new API that gets called on the VoiceInteractionSession if there is a failure retrieving the assist data. Also fix issue #22351981: Runtime restart due to ANR in system server, getting rid of a deadlock. And also tweak object lifecycles to try to avoid keeping around in an app the previous AssistStructure after we request a new one. Change-Id: Ifb136a0d31a14e56a8db6b90768d9fc65557a17f
* am aabc9869: am 03850591: Handle outsets when resized is called due to rotation.Filip Gruszczynski2015-07-021-2/+3
|\ | | | | | | | | * commit 'aabc9869a95928660271b7022e2756fff2654013': Handle outsets when resized is called due to rotation.
| * am 03850591: Handle outsets when resized is called due to rotation.Filip Gruszczynski2015-07-021-2/+3
| |\ | | | | | | | | | | | | * commit '03850591954faf5280fd581dd04cd6958eda0124': Handle outsets when resized is called due to rotation.
| | * Handle outsets when resized is called due to rotation.Filip Gruszczynski2015-07-011-2/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Rotation might change while the wallpaper is displayed. If outsets are present, this must trigger a resized callback and the wallpaper must take these accounts immediately into account before requesting relayout. Bug: 22209764 Change-Id: I97f2670f384ccac792e7c2727eb0ef017ec66188
* | | Merge "Fix issue #20672970: Notifications are not dismissed on hot word ↵Dianne Hackborn2015-07-011-0/+15
|\ \ \ | | | | | | | | | | | | detection" into mnc-dev
| * | | Fix issue #20672970: Notifications are not dismissed on hot word detectionDianne Hackborn2015-07-011-0/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Add new VoiceInteractionSession.closeSystemDialogs() API that closes everything except the session itself. Change-Id: If45f1e120d8ca095b6c8055b6485acb5e710820e
* | | | Merge "resolved conflicts for merge of 300ccf4a to mnc-dev" into mnc-devFilip Gruszczynski2015-07-011-1/+1
|\ \ \ \ | |/ / / |/| | |
| * | | resolved conflicts for merge of 300ccf4a to mnc-devFilip Gruszczynski2015-06-301-1/+1
| |\ \ \ | | |/ / | | | | | | | | Change-Id: Ia315e314bfde0c066a2c25d93f8cbdc71fee0a14
| | * | am 0ec1328f: Calculate outset hint when adding window.Filip Gruszczynski2015-06-301-1/+1
| | |\ \ | | | |/ | | | | | | | | | | | | * commit '0ec1328f85a08a610868856c688ebb8196c79c17': Calculate outset hint when adding window.
| | | * Calculate outset hint when adding window.Filip Gruszczynski2015-06-301-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Outsets aren't dynamic so they are a great candidate for a hint when the window is added through the window manager. Thanks to this during first view hierarchy measure or wallpaper window layout they are immediately available and don't require multiple measure/layout passes. Bug: 21593814 Change-Id: I573c15ffbbe4fcd8a6ed9c5e4fcd6cfbbcd7434f
* | | | Fix issue #22124996: VI: Command Request not ActiveDianne Hackborn2015-06-303-150/+56
|/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Just forgot to add the request to the active set. Also eradicate a bunch of old cruft that has been replaced by the final APIs, and improve voice interaction test to sit fully on top of the final APIs and have a test for command request. Change-Id: Ieff7a6165ebf2a4c5fb80c1ebd020511a2ae63ee
* | | Merge "Clarify the intention of setNotificationsShown" into mnc-devAmith Yamasani2015-06-261-1/+3
|\ \ \
| * | | Clarify the intention of setNotificationsShownAmith Yamasani2015-06-231-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Updated javadoc with a bit more detail. Bug: 21572672 Change-Id: I6b24e47fecd5142bb4bac979cb91f7a6359990d5
* | | | Update CarrierService long lived binding APIZach Johnson2015-06-231-13/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Should take a metadata approach instead of a separate intent. b/21080696 Change-Id: Ib6e2ec0d3258e419aa14ae9e598a8147505feb84
* | | | Fix issue #20654534: API Review: android.app.assistDianne Hackborn2015-06-221-13/+0
|/ / / | | | | | | | | | | | | | | | Remove the old classes. Change-Id: I949350cadc5fc304e2651d7db0ffd38e45db9b6e
* | | Merge "drop corrupt notifications in the Listener" into mnc-devChris Wren2015-06-191-10/+36
|\ \ \
| * | | drop corrupt notifications in the ListenerChris Wren2015-06-181-10/+36
| | | | | | | | | | | | | | | | | | | | Bug: 21471255 Change-Id: I184507dfafa49b71b91406a1ae0131f930adbb77
* | | | Merge "Fixing voice panel centering issues in landscape on phone" into mnc-devStefan Kuhne2015-06-181-1/+2
|\ \ \ \
| * | | | Fixing voice panel centering issues in landscape on phoneStefan Kuhne2015-06-181-1/+2
| |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The new assist panel (long press on home) was not centered in landscape mode on phones. This was caused by ignoring the stable insets in the PhoneWindowManager. bug: 21708971 Change-Id: I97a968a41c2966b09eba496fbe57c840affdf9ec
* | | | Merge "Remove FRP wipe support for device initializers" into mnc-devCraig Lafayette2015-06-182-77/+0
|\ \ \ \
| * | | | Remove FRP wipe support for device initializersCraig Lafayette2015-06-112-77/+0
| |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Remove ManagedProvisioning NFC parameter key from DevicePolicyManager - Remove wipeIfAllowed from PersistentDataBlockManager Bug: 21558883 Change-Id: I59354b7bb1ef7e0b0346ff9a7d1654780231dff0
* | | | Merge "Request application of WindowInsets when setting a content view" into ↵Adam Powell2015-06-171-1/+1
|\ \ \ \ | | | | | | | | | | | | | | | mnc-dev
| * | | | Request application of WindowInsets when setting a content viewAdam Powell2015-06-171-1/+1
| |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | For both PhoneWindow and VoiceInteractionSession, call requestApplyInsets when the content view(s) change. This is generally what the developer expects if the new view tree responds to insets in any way. Bug 21620924 Change-Id: I60a88af55bf85217c3587aa37f03fdc3fdce686d
* | | | Bring back screenshot API.Dianne Hackborn2015-06-161-2/+0
|/ / / | | | | | | | | | Change-Id: Ia6bdfa300398d39119239f6a88c9992673edb3e0
* | | Merge "Null check when reconstituting legacy icon data." into mnc-devDan Sandler2015-06-101-1/+1
|\ \ \