summaryrefslogtreecommitdiff
path: root/libs/input/SpriteController.cpp
Commit message (Collapse)AuthorAgeFilesLines
* SpriteController: Reparent SurfaceControls to null before disposingPrabir Pradhan2021-11-181-6/+13
| | | | | | Bug: 206650086 Test: manual: see repro insructions in the bug Change-Id: Ib8e39780002ecb74ade64791bdb98b8b9c969bce
* SpriteController: Reparent pointer surfaces under DisplayContentPrabir Pradhan2021-11-111-5/+6
| | | | | | | | | | | | | | | | When using MediaProjection to mirror a display, only surfaces that are inside the mirrored DisplayContent's hierarcy show up in the mirror surface. Previously, since pointer icons created by SpriteController were not part of SF's hierarcy under the DisplayContent's SurfaceControl, they did not show up in the mirror surface. In this CL, we reparent pointer sprite surfaces to the the DisplayContent's SurfaceControl whenever there are surface changes, ensuring that they show up in screen recordings. Bug: 202258016 Test: manual: Start screen recording from quick settings tile Change-Id: Ib404ed36bd13b0fc8cc4a6fb593dc54b3e35dd1a
* Merge "Use ui::LayerStack"TreeHugger Robot2021-08-131-1/+2
|\
| * Use ui::LayerStackDominik Laskowski2021-07-271-1/+2
| | | | | | | | | | | | Bug: 182939859 Test: Build Change-Id: I4658471996939713a6330a9c4a7d05cf4c91833a
* | Update SurfaceControl buffer size when increasing pointer sizePrabir Pradhan2021-08-091-2/+1
|/ | | | | | Bug: 187541012 Test: manual: toggle "Large mouse pointer" in settings, observe. Change-Id: I6ab1dae702ba20d40eed706685ef78d118cdb96d
* Isolate SpriteIcon into its own file.Garfield Tan2020-05-281-39/+7
| | | | | | | | | | | This is to isolate differences between internal master and AOSP so that the open source intern can work on a relatively new project. It also isolates a divergent piece of code into SpriteIcon.cpp. Bug: None Test: Pointer icons in ApiDemos still work. Change-Id: I1bf8f23411ad7170de2497d6fee0f70b015e9b5f
* Create C API for accessing android.graphics.Bitmap in native code.Derek Sollenberger2019-09-101-31/+20
| | | | | | | | | Restrict access to SkBitmap for libandroid_runtime.so to be only within the boundaries of the graphics module. Test: CtsUiRenderingTestCases Bug: 137655431 Change-Id: I4d0ea227e91d22068966513c4e3a55021b9e924f
* Add cursor type and hotspot to surface metadata.Garfield Tan2019-08-151-2/+23
| | | | | | | | | | Also bootstrap unit tests for PointerController. Need to mark 3 functions of SpriteController virtual so their behaviors can be overridden. Bug: 130822623 Test: SurfaceFlinger can get cursor type and hotspot. Change-Id: I739cd03214364144bb4e22a166ecc7abfd3492fe
* Support mouse pointer on external displays (2/2)Arthur Hung2019-01-091-3/+21
| | | | | | | | | | | | | | | | | Limit mouse boundary to one display viewport. Currently if desktop mode is enable, selects the topmost freeform display, or find first external display if there is no freeform display. Return the default display if desktop mode is not enable. - Add getPointerDisplayId to find the preferred display. - Limit update viewports from InputReader. - obtainPointerController would also find the associated display id. - Reload cursor resources if resolution or display changed. Bug: 113559891 Test: atest inputfliger_tests Test: ActivityView test app Change-Id: Iffd01e27f5010ccfb0481a028658b7290ca6316d
* Revert "Support mouse pointer on external displays (2/3)"Andrii Kulian2018-12-171-21/+3
| | | | | | | | | | | This reverts commit 84cdf9cc3b849679e6b4f6d3ccb66270f0abad2f. Reason for revert: b/120864177 Test: Presubmit Bug: b/120864177 Change-Id: Ia65e704169527b54cf1d1d470445f96a65fa0294
* Support mouse pointer on external displays (2/3)Andrii Kulian2018-12-101-3/+21
| | | | | | | | | | | | | | | | | Limit mouse boundary to one display viewport. Currently if desktop mode is enable, selects the topmost freeform display, or find first external display if there is no freeform display. Return the default display if desktop mode is not enable. - Add getPointerDisplayId to find the preferred display. - Limit update viewports from InputReader. Also implements updatePointerDisplay to find and associate with the specified display viewport. - Reload cursor resources if resolution or display changed. Bug: 113559891 Test: atest inputfliger_tests Test: ActivityView test app Change-Id: Ief3410a517be457dfe6f1180342bb1dc88833635
* Refactor String8 to std::string callsSiarhei Vishniakou2018-07-111-4/+0
| | | | | | | | | | DisplayViewport::uniqueId is now std::string, so change the calls appropriately. Do some additional cleanups and conversions. This almost completely removes the dependency on String8. Test: build only Bug: 111108021 Change-Id: Ibbb6ca59e9061954d4a5fb930ef03d42cb0230db
* Use new SurfaceFlinger transaction API.Robert Carr2017-10-091-65/+37
| | | | | | | | | | | For now we reimplement global transactions in the Java side JNI layer. Bug: 64815723 Bug: 64816140 Bug: 64815766 Test: Existing tests pass. go/wm-smoke Change-Id: I6c0a7b5e65b1b6cc844ac61f3269629af60a4244
* Remove uses of SkBitmap::copyToMatt Sarett2017-04-261-1/+5
| | | | | | | | | This API is being deleted: skbug.com/6464 Test: Refactor Change-Id: Id78653ca45d6bfee2e4f9c9c24c2414b888f0df5
* Don't use deprecated canvas methodsMike Reed2017-04-041-4/+4
| | | | | | | | Allows skia to remove SK_SUPPORT_LEGACY_CANVAS_HELPERS Test: Existing tests cover the change. Change-Id: I764c11f7a9bd7b87fba8563968160ee7dc9a99a2
* resolve merge conflicts of 082a1721b516 to masterMark Salyzyn2017-01-111-2/+2
|\ | | | | | | | | | | | | Test: compile Bug: 26552300 Bug: 31289077 Change-Id: I17f178f425975c1c0dbd48091d25b101956d505e
| * Replace cutils/log.h and log/logger.h with log/log.hMark Salyzyn2017-01-091-2/+2
| | | | | | | | | | | | | | Test: compile Bug: 26552300 Bug: 31289077 Change-Id: I578b15b48f0fc2807a92abbc69a377c3d2191496
* | use SkBlendModeMike Reed2016-11-021-1/+0
| | | | | | | | | | | | | | | | skbug.com/5814 Test: compile only Change-Id: Ibbaff43df1117b2ca77fd8f917f03d88cc476330 (cherry picked from commit 26edbcba8a2ed4cb300e7f87e679e3b73cec2772)
* | use SkBlendMode instead of SkXfermodeMike Reed2016-10-131-1/+1
|/ | | | | | use sk_sp versions of paint setters/getters Change-Id: I86591a0a8ec92e6039776cbf00424ea24f585b28
* Frameworks/base: Wall Werror in libs/inputAndreas Gampe2014-11-101-0/+4
| | | | | | Enable -Wall -Werror in libs/input. Mask warnings from Skia. Change-Id: I0deeffde07fcf3a09eadec2852e9bf5666b55ee8
* Add cursor flags into SpriteController to suppor async cursor updates.Riley Andrews2014-07-281-1/+2
| | | | | | - This is fairly blindly taken from nvidia's implementation. Change-Id: I825ecbd9cb4b394793dce079591b37efca546bbe
* kNative_8888_SkColorType is now kN32_SkColorTypeMike Reed2014-07-071-1/+1
| | | | Change-Id: I13421a21de611203c62c1c1c36570a8cc803907b
* stop using (deprecated) SkBitmap::ConfigMike Reed2014-06-201-3/+2
| | | | Change-Id: Ic75b5fc6996578e9d95bd3a220439ec1541d7c3b
* Update to call new Skia APIs.Leon Scroggins2014-04-041-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | I816129d49c0118453222916f3c818eccac33663d merges a new version of Skia that updates various APIs. Call the new ones. SkBitmap::copyTo now takes an SkColorType instead of an SkBitmap::Config, so do the conversion with SkBitmapConfigToColorType or use the enum when it makes sense. Call SkImageDecoder::decodeSubset instead of (deprecated) SkImageDecoder::decodeRegion. Override SkCanvas::ClipVisitor::clipRRect in ClipCopier. In Canvas::clip calls, call SkCanvas::isClipEmpty(), which was previously called inside the clip call, to determine the return value. For various SkPaint effects, call the new factories (as the constructors have been made protected). Implement SkJavaOutputStream::bytesWritten(), overriding a new pure virtual function on SkWStream. Update Matrix calls to always return true (since SkMatrix calls no longer return a value). Depends on I816129d49c0118453222916f3c818eccac33663d (skia). Change-Id: I5cdcea827ebff587df0bbddc0965e3e0fbf48002
* am 9158825f: Move some system services to separate directoriesAmith Yamasani2013-12-191-2/+2
| | | | | * commit '9158825f9c41869689d6b1786d7c7aa8bdd524ce': Move some system services to separate directories
* Move some system services to separate directoriesAmith Yamasani2013-12-191-0/+482
Refactored the directory structure so that services can be optionally excluded. This is step 1. Will be followed by another change that makes it possible to remove services from the build. Change-Id: Ideacedfd34b5e213217ad3ff4ebb21c4a8e73f85