summaryrefslogtreecommitdiffstats
path: root/services
Commit message (Collapse)AuthorAgeFilesLines
* GLConsumer: Stop using default constructor paramsDan Stoza2014-06-241-1/+1
| | | | | | | | Removes the dependency on default constructor parameters for GLConsumer so that a different constructor prototype can safely be added. Change-Id: I0da924bbd4c141edbf305598c1be8bc575654680
* Use openssl's SHA1 instead of bionic's.Dan Albert2014-06-202-7/+11
| | | | | | Bionic is removing its SHA1. Change-Id: I7d15986ebac9e0f0eb7ff93457780bd90a4f1d4f
* Merge "SurfaceFlinger: send VSYNC power hints to IPowerManager"Ruchi Kandoi2014-06-205-34/+63
|\
| * SurfaceFlinger: send VSYNC power hints to IPowerManagerRuchi Kandoi2014-06-185-34/+63
| | | | | | | | | | | | | | | | VSYNC power hints are now sent via binder to IPowerManager. SurfaceFlinger no longer loads a second copy of the PowerHAL. VSYNC power hints are sent in batches and not on per frame basis. Change-Id: Ia5a839ab3c857cffae7089f810b4315d4ed23fcf
* | Merge "SurfaceFlinger: Fix rect out-of-bounds checks"Dan Stoza2014-06-171-4/+4
|\ \ | |/ |/|
| * SurfaceFlinger: Fix rect out-of-bounds checksDan Stoza2014-06-111-4/+4
| | | | | | | | | | | | | | | | Rects' right and bottom edges are treated as exclusive, so when checking against maximum width and height, we should use > instead of >=. Change-Id: Ifcdf6813c13fcab1a55f16c21064e765e93d49f0
* | Add two new display info fieldsAndy McFadden2014-06-171-2/+18
| | | | | | | | | | | | | | | | | | This adds SurfaceFlinger's app VSYNC offset and buffer deadline values to DisplayInfo. Bug 14612039 Change-Id: Ie0ab21d388fe2764f2b6f71bd1cefa33dc861a73
* | Merge "Surface reportingMode for Sensors."Aravind Akella2014-06-121-17/+24
|\ \
| * | Surface reportingMode for Sensors.Aravind Akella2014-06-121-17/+24
| |/ | | | | | | Change-Id: Iac8dd3408c90eb7d285a2e8043131fab3a7e58fa
* | Merge "surfaceflinger: Replace blank/unblank with setPowerMode"Prashant Malani2014-06-126-119/+78
|\ \
| * | surfaceflinger: Replace blank/unblank with setPowerModePrashant Malani2014-06-056-119/+78
| |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We replace the blank/unblank calls in surfaceFlinger with a more generic setPowerMode() routine. Some displays support different power modes (for example, with reduced color palettes). Depending on the use case we should be able to toggle these modes, so as to achieve incremental power savings. Initially, three power modes will be supported: - HWC_POWER_MODE_OFF - HWC_POWER_MODE_DOZE - HWC_POWER_MODE_NORMAL HWC_POWER_MODE_OFF will correspond to blanking the display, while HWC_POWER_MODE_NORMAL will correspond to unblanking. HWC_POWER_MODE_DOZE will put the display into a low power setting, if it is supported in hardware. If such a low power mode is not supported, it should be treated as a call to set the mode to HWC_POWER_MODE_NORMAL. As a consequence of adding the mPowerMode field, the mScreenAcquired is no longer required, and thus references to it are removed and replaced equivalent references to mPowerMode. We also add the glue code to connect the services invocation of setting a power mode and the HAL implementation in HWComposer. Bug: 13472578 Change-Id: I431595ecf16d2f2c94259272db3dd42f29636204 Signed-off-by: Prashant Malani <pmalani@google.com>
* | am 20914f0a: am a4e345e1: Merge "sensorservice: 64-bit compile issues"Mark Salyzyn2014-06-122-17/+20
|\ \ | | | | | | | | | | | | * commit '20914f0ad3691d977f61f1d4b92b49535e8f6f33': sensorservice: 64-bit compile issues
| * \ am a4e345e1: Merge "sensorservice: 64-bit compile issues"Mark Salyzyn2014-06-122-17/+20
| |\ \ | | | | | | | | | | | | | | | | * commit 'a4e345e169fd9101011e358abdfb9308bc065bdb': sensorservice: 64-bit compile issues
| | * | sensorservice: 64-bit compile issuesMark Salyzyn2014-06-102-17/+20
| | | | | | | | | | | | | | | | Change-Id: Ied7b779f39e71d041791729f7355b052b63903c5
* | | | Merge "inputflinger: 64-bit compile issues"Mark Salyzyn2014-06-121-24/+25
|\ \ \ \
| * | | | inputflinger: 64-bit compile issuesMark Salyzyn2014-06-101-24/+25
| | |_|/ | |/| | | | | | | | | | Change-Id: I9861f96a8234d5f57b664baead7a465771b63bd5
* | | | am 20071e50: am e3d37a7b: Enable support RGBX_8888 for omap3Wengang Wu2014-06-112-15/+0
|\ \ \ \ | | |/ / | |/| | | | | | | | | | * commit '20071e5028adb6d7ced81843d33e4d0baa0768ed': Enable support RGBX_8888 for omap3
| * | | am e3d37a7b: Enable support RGBX_8888 for omap3Wengang Wu2014-06-112-15/+0
| |\ \ \ | | | | | | | | | | | | | | | | | | | | * commit 'e3d37a7b55f86f5d005dd67f828dcf51fe60c0f6': Enable support RGBX_8888 for omap3
| | * | | Enable support RGBX_8888 for omap3Wengang Wu2014-06-112-15/+0
| | | | | | | | | | | | | | | | | | | | | | | | | Bug: 14995811 Change-Id: Iaeb5a5ad0e3bcf215613f24f2570ae0d8267c016
| * | | | am 4ae6a267: am f3e4fda0: Merge "Remove dependencies on runtime_libdvm and ↵Brian Carlstrom2014-05-291-6/+9
| |\ \ \ \ | | | |_|/ | | |/| | | | | | | | | | | | | | | | | | | | | | libdvm.so in general" * commit '4ae6a26719feb21b7fa1cc5f307b591858a30f26': Remove dependencies on runtime_libdvm and libdvm.so in general
| | * | | am f3e4fda0: Merge "Remove dependencies on runtime_libdvm and libdvm.so in ↵Brian Carlstrom2014-05-291-6/+9
| | |\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | general" * commit 'f3e4fda09106cb93bddea35a2cc7dbd4b2c281e9': Remove dependencies on runtime_libdvm and libdvm.so in general
| | | * | | Remove dependencies on runtime_libdvm and libdvm.so in generalBrian Carlstrom2014-05-291-6/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug: 14298175 (cherry picked from commit aefe55f0fb9e69be205497ef4fc3432d2f7a2d8b) Change-Id: I05b1a7dd1ef30b3366b52b46bfc7b39cfb3be198
| | * | | | Merge commit '6d05ef2310bdc84811d5b0385b009ad11447a749' into HEADBill Yi2014-04-294-25/+17
| | |\ \ \ \ | | | |/ / / | | |/| | |
| | | * | | am cdbf28b3: Merge "native frameworks: 64-bit compile issues"Mark Salyzyn2014-03-1316-33/+35
| | | |\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit 'cdbf28b3f7f5327f4cb0eb95b8326bf4c24c87ba': native frameworks: 64-bit compile issues
| | | * \ \ \ am 112aa42e: Merge "SurfaceFlinger: fix 64-bit format string warnings"Greg Hackmann2014-03-114-9/+12
| | | |\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '112aa42e91b4bb0cde334753e2ad05e3f248b377': SurfaceFlinger: fix 64-bit format string warnings
| | | * \ \ \ \ am c9bf3ba4: Merge "Virtual Display async mode is overridden"Jesse Hall2014-03-111-10/+10
| | | |\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit 'c9bf3ba411c66dd1d977c81f1aca08109cbf8c86': Virtual Display async mode is overridden
| | | * \ \ \ \ \ am 6b4ecf31: Merge "surfaceflinger: add BoardConfig.mk variable to force 32-bit"Colin Cross2014-03-071-0/+4
| | | |\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '6b4ecf314461067c0e05130edaf785fb010f471a': surfaceflinger: add BoardConfig.mk variable to force 32-bit
| | | * \ \ \ \ \ \ am 19d64819: Bug fix for SensorFusion data rate.Aravind Akella2014-03-072-13/+4
| | | |\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '19d648195673b106152610e3787c95886946460f': Bug fix for SensorFusion data rate.
| | | | * | | | | | | Bug fix for SensorFusion data rate.Aravind Akella2014-03-062-13/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | SensorFusion is always returning data at the slowest possible sampling rate (5 Hz). batch() is getting called twice, first time with the requested rate and second time with the slowest rate (which overwrites the requested rate). Fix batch call in SensorFusion::activate() Bug: 12064319 Change-Id: If62f3e514233f69810336fd22b136b4395b667d3 (cherry picked from commit 88509090387eeb400771a786171866710cca230c)
| * | | | | | | | | | am b6601961: Merge "DO NOT MERGE Add "dumpsys SurfaceFlinger --dispsync"" ↵Andy McFadden2014-05-094-1/+57
| |\ \ \ \ \ \ \ \ \ \ | | | |_|_|_|_|_|_|/ / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | into klp-modular-dev * commit 'b66019615da8750588f1233a77b9c686b0a248c3': DO NOT MERGE Add "dumpsys SurfaceFlinger --dispsync"
| | * | | | | | | | | DO NOT MERGE Add "dumpsys SurfaceFlinger --dispsync"Andy McFadden2014-05-094-1/+57
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Dumps the current DispSync state. Bug 14651879 (this is a near-cherrypick of Ide4e6dbd58b117bc1a6b97b57d10cd92ec86dc84) Change-Id: I6e6c8452ede5c2d5098db1b884d28226e77d9a03
| * | | | | | | | | | am f3c07d4f: Fix virtual display nestingDan Stoza2014-04-238-20/+48
| |\ \ \ \ \ \ \ \ \ \ | | |/ / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit 'f3c07d4f70f33c2fe5b14ca8fbcdfa4133cc72c7': Fix virtual display nesting
| | * | | | | | | | | Fix virtual display nestingDan Stoza2014-04-228-20/+48
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This fixes the cycling rendering loop caused by nesting virtual displays by preventing them from recomposing if their contents haven't changed. (cherry-pick from master I600365c0fd5d3ad93e04295d26cf9de177ffc79b) Bug: 12101046 Change-Id: I6182993d53537781aedb522f97a50f06eed8b80f
* | | | | | | | | | | Replace "lower power mode" experimentAndy McFadden2014-06-113-34/+32
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This replaces the previous low-power mode experiment, which discarded refresh events, with a new experiment that alters the refresh period. (see also I2849e5ea335c0d2509fea1c315392bce7f20451d ) The feature is enabled by specifying a nonzero value for the "refresh skip count", which indicates the number of periods to skip. For example, the command: adb shell service call SurfaceFlinger 1016 i32 1 sets a skip count of '1', yielding a 30Hz refresh rate on a device with a 60Hz display. Changing the last value to '2' would set the refresh to 20Hz. '0' returns to the default behavior. Bug 15523257 Change-Id: I00039c22a55750e74035644c63800e4bee1c774a
* | | | | | | | | | | Disable DispSync resync when not neededAndy McFadden2014-06-103-50/+61
| |_|_|_|_|_|_|_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If app and SF events aren't using phase offsets, we don't need to maintain the DispSync model. We just turn hardware VSYNC on whenever something wants to draw. This avoids some edge cases where we were doing too much resync work. Also, updated the systrace output. The "VsyncOn" line was a combination of SF and app event threads, and would occasionally be very weird. Removed VsyncOn, renamed VSYNC to VSYNC-app, and added VSYNC-sf. Also, added more details to the --dispsync dumpsys output. Also, renamed global constants to not look like local variables. Bug 15516453 Change-Id: I0da10b72f0d9a7b7eb5202d87cc18967f698adbd
* | | | | | | | | | am aefe55f0: Remove dependencies on runtime_libdvm and libdvm.so in generalBrian Carlstrom2014-05-291-6/+9
|\ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit 'aefe55f0fb9e69be205497ef4fc3432d2f7a2d8b': Remove dependencies on runtime_libdvm and libdvm.so in general
| * | | | | | | | | | Remove dependencies on runtime_libdvm and libdvm.so in generalBrian Carlstrom2014-05-281-6/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug: 14298175 Change-Id: I74b4a3dabf89c6b53bfe688c45d6e1167880fd95
* | | | | | | | | | | Merge "SurfaceFlinger: Add sourceCrop to screenshot"Dan Stoza2014-05-288-23/+75
|\ \ \ \ \ \ \ \ \ \ \
| * | | | | | | | | | | SurfaceFlinger: Add sourceCrop to screenshotDan Stoza2014-05-238-23/+75
| |/ / / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Adds a sourceCrop Rect parameter to screenshot commands, which allows clients to capture only a portion of the screen instead of the whole screen. Bug: 15137922 Change-Id: I629447573cd34ffb96334cde7ba02490b9ea06d8
* | | | | | | | | | | Surface maxDelay and isWakeUpSensor flag in Sensor.java.Aravind Akella2014-05-232-4/+0
|/ / / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: Idd1e9045190beeca87b086b272e8cbf0bed05bae
* | | | | | | | | | Add IMPLEMENTATION_DEFINED to dumpAndy McFadden2014-05-201-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The "dumpsys SurfaceFlinger" output shows pixel formats in human-readable form now. Add IMPLEMENTATION_DEFINED. Change-Id: If567e34dad4b940fbfb4d0b70c65f6ab8cd5f5e7
* | | | | | | | | | BatteryProperty: Add property ENERGY_COUNTER and 64-bit integer propertiesTodd Poynor2014-05-161-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Also fixup comments to match recent changes in BatteryManager. Change-Id: I6f40924f9e66d564ad1175f9650e2bfd2ad39a3a
* | | | | | | | | | Merge "Add "dumpsys SurfaceFlinger --dispsync""Andy McFadden2014-05-094-1/+56
|\ \ \ \ \ \ \ \ \ \
| * | | | | | | | | | Add "dumpsys SurfaceFlinger --dispsync"Andy McFadden2014-05-084-1/+56
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Dumps the current DispSync state. Bug 14651879 Change-Id: Ide4e6dbd58b117bc1a6b97b57d10cd92ec86dc84
* | | | | | | | | | | Merge "Add mutex"Andy McFadden2014-05-081-0/+1
|\ \ \ \ \ \ \ \ \ \ \ | |/ / / / / / / / / /
| * | | | | | | | | | Add mutexAndy McFadden2014-05-081-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: I81072031e74a5cca8384e4e8bce4babf2187d8bb
* | | | | | | | | | | Merge "Enable changing display configuration"Dan Stoza2014-05-064-124/+192
|\ \ \ \ \ \ \ \ \ \ \
| * | | | | | | | | | | Enable changing display configurationDan Stoza2014-05-054-124/+192
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This allows querying and switching display device configurations through the ISurfaceComposer/SurfaceComposerClient interface. Bug: 14320401 Change-Id: I8c22165698950e5da32204c1c4da92122f91a715
* | | | | | | | | | | | Merge "Change InputMessage.motion.pointerSize to a uint32_t."Narayan Kamath2014-05-061-2/+2
|\ \ \ \ \ \ \ \ \ \ \ \ | |_|/ / / / / / / / / / |/| | | | | | | | | | |
| * | | | | | | | | | | Change InputMessage.motion.pointerSize to a uint32_t.Narayan Kamath2014-05-021-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This ensures it's the same size in both 32 and 64 bit processes and also brings it in line with struct MotionEntry. Change-Id: I66bb8b8d8664763e7dcbd489686051f563d5e1dc