summaryrefslogtreecommitdiffstats
path: root/libs
Commit message (Collapse)AuthorAgeFilesLines
* Fix idmap leak in zygote processneo.chae2017-02-031-0/+1
| | | | | | | | | | | | | | | Fix a idmap leak in AssetManager::addSystemOverlays. And, The fix could also prevent fd leak of idmap. Test: none Bug: 32691930 Signed-off-by: Hyangseok Chae <neo.chae@lge.com> (cherry picked from commit 6a742a38509693f8b39ee9a5ad2803fca12688bf) Change-Id: Idc4af77db2b0cb739bd6b009b6af0f9123be1aac (cherry picked from commit 0244ca8d10dfc27e14f481fe649b89f7638c48eb)
* Fix random crash in libhwuiKeith Mok2016-07-181-0/+1
| | | | | | | | | | | | | | | | | | | | On some cases (noticed from log) that there is a crash in libhwui.so, future debug log shows that the light center position values are nan, causing an out of bound access in hull function in SpotShadow.cpp for parameter retPoly which assume to be of maximum length of pointsLength only but not the case when all points are nan. More log shows that a Snapshot was created (new) without mRelativeLightCenter begin set, and Layer.cpp trying to use it by calling updateLightPosFromRenderer. Those values are random values in stack which causing math calc based on that value returning nan also. Initialize mRelativeLightCenter to 0 in Snapshot.cpp to avoid the problem. Change-Id: I9e24f6f1f856d053d09db1b1aae100f219f2a6de
* Themes: Fix theming of cmsdk assetsd34d2016-05-191-5/+9
| | | | | | | Missed the pkgid assignment bits in I4f64d53d82c9edafbe624c3b2eafcda7332587fb Change-Id: Ie442c8922f0d9eac3ed5bab70a99d3e065b719c4 TICKET: CYNGNOS-2723
* libhwui: Remove opaque check for everythingKetut Putu Kumajaya2016-04-221-12/+0
| | | | | | | | * Devices still exhibit issues here even when using an AOSP codebase. This problem exists upstream, so make this the default codepath for everything. Change-Id: I49e4e1ad3f294844a4e865d727776bc99f0df439
* Merge tag 'android-6.0.1_r22' of ↵Steve Kondik2016-03-111-2/+2
|\ | | | | | | | | | | | | | | https://android.googlesource.com/platform/frameworks/base into cm-13.0 Android 6.0.1 release 22 Change-Id: I0d31899b234156a91accb61e0a7fb3d8d16d5062
| * Pulling in https://android-review.googlesource.com/#/c/186482/1Nancy Zheng2016-01-133-4/+4
| | | | | | | | | | | | | | | | | | | | | | Fix memory leak in HWUI std::unique_ptr::release just releases the ownership of the managed object. To delete the object, std::unique_ptr::reset function should be called. Bug: 26116596 Change-Id: If65f74085b1fc2be3a9fffc433326e0bcdb40ff3
| * In CanvasContext::doFrame, make a separate call to computeFrameTimeNanosMatthew Bouyack2016-01-121-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | and save the result. Then pass that value to UiFrameInfoBuilder::setVsync as both arguments. The order of function argument evaluation is undefined in C++. Because the value returned from TimeLord::latestVsync may be changed by the preceding call to TimeLord::computeFrameTimeNanos the values of the arguments passed to UiFrameInfoBuilder::setVsync is also undefined. This change removes any ambiguity. Change-Id: Ie71ee453f9ccc725edfe5f7cc9b277f2a809dfdc
| * Merge "Revert "Remove -ffast-math from libhwui makefile"" into mnc-dr-devChris Craik2015-11-051-1/+1
| |\
| | * Revert "Remove -ffast-math from libhwui makefile"Chris Craik2015-11-051-1/+1
| | | | | | | | | | | | | | | | | | This reverts commit e02ec7c37a92fd63748a610bac6a23d0409788cf. Change-Id: Iea7fadf04c4ffa62be28f783342ae749f89bf931
| * | Merge "When the incoming light source is invalid, don't generate any shadow" ↵Tenghui Zhu2015-11-051-0/+5
| |\ \ | | | | | | | | | | | | into mnc-dr-dev
| | * | When the incoming light source is invalid, don't generate any shadowTeng-Hui Zhu2015-11-041-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | b/25417885 Change-Id: I4b87e35ca68091fd0409cb9fe9b9400af860a507
| * | | Merge "Early return when the scale is 0." into mnc-dr-devChris Craik2015-11-043-5/+10
| |\ \ \ | | |_|/ | |/| |
| | * | Early return when the scale is 0.Teng-Hui Zhu2015-11-043-5/+10
| | |/ | | | | | | | | | | | | | | | | | | b/24534579 Change-Id: Ib3581ec99387ca70ca036026f64857a49657d94b (cherry picked from commit 8d0ec389531d071529fb0a800f10733b057205d9)
| | * Revert "Use clang for libhwui"John Reck2015-11-041-3/+0
| | | | | | | | | | | | | | | | | | | | | | | | Bug 25462107 This reverts commit d354fd2c66855d116440eb4c936317f124241225. Change-Id: Ib7c50b5becf247f837f3cc20f9128d9411d22563
| | * Use clang for libhwuiChris Craik2015-11-031-0/+3
| | | | | | | | | | | | | | | | | | bug:25417885 Change-Id: I0ef8034d79ba3682925e3c2a4b7ccd833fd4f156
| * | Remove -ffast-math from libhwui makefileChris Craik2015-11-041-1/+1
| |/ | | | | | | | | | | bug:25417885 Change-Id: I8244bd28c2d46fc449398b9bf5104bf7cbaded8a
* | Remove opaque check in preparing dirty region for all QCOM devicedianlujitao2016-03-091-1/+1
| | | | | | | | Change-Id: I7ea61090824cd04c76e7c39639edff7059c8b7ba
* | Performance Optimization: Align texture dirty rectywen2016-02-241-4/+10
| | | | | | | | | | | | | | Align x offset and width to 32, y offset and height to 4. It improves the font texture upload performance. Change-Id: I967eeed90658f2ce1eb08cb2740d5dc34c72f40b
* | tests: Fix compilation issue for themes unit testsSandeep Chawla2016-01-252-163/+51
| | | | | | | | | | | | | | - Revert header file for tests to AOSP - Revert Android.mk to CM 12.1 version Change-Id: Ie7ef8bad6ebe6579eb4350000af995f8b9f5964a
* | libhwui: fix texture memory leakDohyun Lee2016-01-232-0/+5
| | | | | | | | | | | | | | | | | | | | | | When there is not enough space and we cannot delete any Texture in TextureCache to secure space, a new Texture is created over and over again for the same SkBitmap and there is the case that it is not deleted. This patch avoids such cases. Change-Id: Ic5353995e6d0716c31fe3bb49c60ec1a71574643 Signed-off-by: Dohyun Lee <leedhyun11@gmail.com>
* | Themes: Reference app resource when compiling theme [2/2]d34d2016-01-221-0/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This allows us to pass in the path to the target apk as an additional included resource apk, allowing theme designers to reference styles and attributes from the original package without needing to duplicate them. Duplicating attributes never worked quite well, and causes all sorts of issues, including crashing apps. Instead of a theme declaring attributes, that are app specific, it can simply reference the originals. This way things like colors that are style specific get included correctly. Here's an example of stat_sys_wifi_signal_4_fully.xml using this feature. By using ?com.android.systemui:attr/ we are able to reference attributes defined in SystemUI directly in our themed resource. <vector xmlns:android="http://schemas.android.com/apk/res/android" android:width="17.25dp" android:height="18dp" android:viewportWidth="46.0" android:viewportHeight="48.0"> <path android:fillColor="?com.android.systemui:attr/backgroundColor" android:pathData="M20.4,18.0"/> <path android:fillColor="?com.android.systemui:attr/fillColor" android:pathData="M42.0,32.0l0.0,-4.0L26.0,18.0L26.0,7.0c0.0,-1.7 -1.3,-3.0 -3.0, -3.0c-1.7,0.0 -3.0,1.3 -3.0,3.0l0.0,11.0L4.0,28.0l0.0,4.0l16.0,-5.0l0.0,11.0l-4.0, 3.0l0.0,3.0l7.0,-2.0l7.0,2.0l0.0,-3.0l-4.0,-3.0L26.0,27.0L42.0,32.0z"/> </vector> Change-Id: Icc794da9af2cd48099d42f9d7fbadaad8612b5db TICKET: CYNGNOS-1645
* | fix race condition between HWUI cache and renderThreadThomas Buhot2016-01-212-0/+7
| | | | | | | | | | | | | | | | | | | | | | getMaximumBitmapWidth() and getMaximumBitmapHeight() of DisplayListCanvas need HWUI cache instance. Since the initialization of the cache is asynchronous it may crash if not yet ready. Add a staticFence() call to guarantee the cache has been created prior issuing the call. Change-Id: I5ed9e5cc084444c8d1872a77fef50e294ae14e93 Signed-off-by: Thomas Buhot <thomas.buhot@intel.com> Signed-off-by: Zhiquan Liu <zhiquan.liu@intel.com>
* | hwui: Allow devices to opt-out of asynchronouse setSurface initializationChristopher R. Palmer2015-12-222-0/+8
| | | | | | | | | | | | | | Not all devices seem to be able to deal with this so let them opt out of it, even though it does provide a UI slow-down. Change-Id: I402193c2c930e815ba69071142b9093a0630b590
* | libhwui: make setSurface asynchronousThomas Buhot2015-12-164-8/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | On the critical path of the cold launch of applications the main thread of the started application tells the RenderThread to create a surface. This process is synchronous and blocks the main thread of the application until the creation of the EGLContext is complete. As a consequence the launch time of the application is delayed by time spent allocating the EGL Context in the RenderThread. With this optimization the launch time of any application is improved (for example settings by 20 to 40 ms). Change-Id: I41cfe4e18f2d26af5058b8b17c19df60ac1e5d85 Signed-off-by: Thomas Buhot <thomas.buhot@intel.com> Signed-off-by: Zhiquan Liu <zhiquan.liu@intel.com>
* | Fix memory leak in HWUISangkyu Lee2015-12-163-4/+4
| | | | | | | | | | | | | | | | std::unique_ptr::release just releases the ownership of the managed object. To delete the object, std::unique_ptr::reset function should be called. Change-Id: If65f74085b1fc2be3a9fffc433326e0bcdb40ff3
* | Merge tag 'android-6.0.1_r3' of ↵Steve Kondik2015-12-073-5/+10
|\ \ | | | | | | | | | | | | | | | | | | | | | https://android.googlesource.com/platform/frameworks/base into cm-13.0 Android 6.0.1 release 3 Change-Id: I59b9e5a943e0860d43bcfb36ee0e8b8b072412ea
| * | Revert "Remove -ffast-math from libhwui makefile"Chris Craik2015-11-051-1/+1
| | | | | | | | | | | | | | | | | | This reverts commit e02ec7c37a92fd63748a610bac6a23d0409788cf. Change-Id: Iea7fadf04c4ffa62be28f783342ae749f89bf931
| * | When the incoming light source is invalid, don't generate any shadowTeng-Hui Zhu2015-11-051-0/+5
| | | | | | | | | | | | | | | | | | b/25417885 Change-Id: I4b87e35ca68091fd0409cb9fe9b9400af860a507
| * | Early return when the scale is 0.Teng-Hui Zhu2015-11-043-5/+10
| | | | | | | | | | | | | | | | | | | | | b/24534579 Change-Id: Ib3581ec99387ca70ca036026f64857a49657d94b (cherry picked from commit 8d0ec389531d071529fb0a800f10733b057205d9)
| * | Remove -ffast-math from libhwui makefileChris Craik2015-11-041-1/+1
| | | | | | | | | | | | | | | | | | bug:25417885 Change-Id: I8244bd28c2d46fc449398b9bf5104bf7cbaded8a
| * | Revert "Use clang for libhwui"John Reck2015-11-041-3/+0
| | | | | | | | | | | | | | | | | | | | | | | | Bug 25462107 This reverts commit d354fd2c66855d116440eb4c936317f124241225. Change-Id: Ib7c50b5becf247f837f3cc20f9128d9411d22563
| * | Use clang for libhwuiChris Craik2015-11-031-0/+3
| |/ | | | | | | | | | | bug:25417885 Change-Id: I0ef8034d79ba3682925e3c2a4b7ccd833fd4f156
* | Revert "libhwui: make setSurface asynchronous"Steve Kondik2015-12-072-4/+1
| | | | | | | | | | | | This reverts commit 3973c59b77243793c9f5d9aed7a44483decf8c17. Change-Id: I9348e68bcecb30a66a71e571fdce587f786aad7d
* | Revert "libhwui: make surface buffer allocation asynchronous"Steve Kondik2015-12-071-5/+0
| | | | | | | | | | | | This reverts commit a9cdd4ff38aed1fb1bac64caec97bfb0b72d0ce9. Change-Id: I3be8069c365cc213c9d57d513c1de5be42ace055
* | libhwui: make surface buffer allocation asynchronousThomas Buhot2015-11-291-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | On the critical path of the cold launch of applications the main thread of the started application allocates the surface buffer. The allocation is synchronous and blocks the main thread of the application. As a consequence the launch time of the application is delayed by the time spent doing the allocation. With this optimization the allocation is performed asynchronously in the RenderThread. This optimization will benefit to the launch of all applications. Change-Id: I4bc145cfc3ba6fe1efbca519bcee2e4ea6617ae7 Signed-off-by: Thomas Buhot <thomas.buhot@intel.com> Signed-off-by: Zhiquan Liu <zhiquan.liu@intel.com>
* | libhwui: make setSurface asynchronousThomas Buhot2015-11-292-1/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | On the critical path of the cold launch of applications the main thread of the started application tells the RenderThread to create a surface. This process is synchronous and blocks the main thread of the application until the creation of the EGLContext is complete. As a consequence the launch time of the application is delayed by time spent allocating the EGL Context in the RenderThread. With this optimization the launch time of the settings application is reduced by 20 ms to 40 ms. This optimization applies to the launch of all applications. Change-Id: Ibf47aaa0abb8dedf7aa00693073db3785d9d6b08 Signed-off-by: Thomas Buhot <thomas.buhot@intel.com> Signed-off-by: Zhiquan Liu <zhiquan.liu@intel.com>
* | Remove opaque check in preparing dirty regionRama Vaddula2015-11-201-0/+11
| | | | | | | | | | | | | | | | | | | | Since preserve swap is enabled, we need to clear the color buffer when the scissor rect is prepared for a new process. This prevents garbage being present from the previous process in the color buffer. CRs-Fixed: 549755 Change-Id: Icd12ae388077b8c9ed329c37314e896500078543
* | Fix HWUI Path Cache dangling pointerDigish Pandya2015-11-113-1/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | When precache, PathTexture is added to PathCache, and it is released after drawn if we want to clean it. But the PathCache LRU still holds the entry of the PathTexture object. When trim the cache in the end of each frame, LRU finds that its mListener is not NULL and invoke the functor, however, mListerer points to the released PathTexture object and is a dangling pointer, thus leads to crash. Smart pointer don't help here since they only manage scopes, while PathTexture is also controled by its cleanup field. The fix is to also remove the LRU entry of PathTexture*, it will also release the texture object and there won't be texture leaks. Change-Id: Iaa0621df5dc71532e9e75b38ad94384353930b95
* | Fix memory corruption in SpotShadowKeith Mok2015-11-111-1/+1
| | | | | | | | | | | | The array list is too small and causing stack corruption Change-Id: I0e34dad39357fb63977d2ce6f183ced7b6a632be
* | When the incoming light source is invalid, don't generate any shadowTeng-Hui Zhu2015-11-101-0/+5
| | | | | | | | | | | | b/25417885 Change-Id: I4b87e35ca68091fd0409cb9fe9b9400af860a507
* | Don't unregister Fonts from renderer at destructionChris Craik2015-11-073-12/+0
| | | | | | | | | | | | | | | | | | | | bug:24584749 Fonts are only destroyed when the renderer is destroyed, this prevents modifying the FontRenderer's LruCache while it's being iterated through in FontRenderer::~FontRenderer. Change-Id: I0e2c9f87981bfa50454ec8689df05851839e288e
* | Merge tag 'android-6.0.0_r26' into HEADRicardo Cerqueira2015-11-051-1/+3
|\ \ | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Android 6.0.0 release 26 Conflicts: cmds/bootanimation/BootAnimation.cpp core/java/android/accounts/AccountManager.java core/java/android/app/AppOpsManager.java core/java/android/os/PowerManagerInternal.java core/java/android/os/storage/IMountService.java core/java/android/provider/Settings.java core/java/com/android/internal/widget/ILockSettings.aidl core/res/res/values-mcc204-mnc12/config.xml core/res/res/values-mcc219-mnc02/config.xml core/res/res/values-mcc730-mnc07/config.xml core/res/res/values/config.xml core/res/res/values/symbols.xml packages/SystemUI/res/values/config.xml packages/SystemUI/src/com/android/systemui/doze/DozeService.java packages/SystemUI/src/com/android/systemui/statusbar/CommandQueue.java packages/SystemUI/src/com/android/systemui/statusbar/ExpandableOutlineView.java packages/SystemUI/src/com/android/systemui/statusbar/phone/DozeParameters.java packages/SystemUI/src/com/android/systemui/statusbar/phone/DozeScrimController.java packages/SystemUI/src/com/android/systemui/statusbar/phone/NavigationBarView.java packages/SystemUI/src/com/android/systemui/statusbar/phone/NotificationPanelView.java packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBarHeaderView.java packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBarKeyguardViewManager.java packages/SystemUI/src/com/android/systemui/statusbar/stack/StackScrollAlgorithm.java services/core/java/com/android/server/LocationManagerService.java services/core/java/com/android/server/am/ActivityManagerService.java services/core/java/com/android/server/pm/PackageManagerService.java services/core/java/com/android/server/power/PowerManagerService.java telecomm/java/android/telecom/Phone.java telephony/java/android/telephony/CarrierConfigManager.java telephony/java/android/telephony/RadioAccessFamily.java telephony/java/android/telephony/ServiceState.java telephony/java/android/telephony/SignalStrength.java telephony/java/android/telephony/TelephonyManager.java telephony/java/com/android/ims/ImsCallProfile.java telephony/java/com/android/ims/ImsReasonInfo.java telephony/java/com/android/ims/ImsSuppServiceNotification.aidl telephony/java/com/android/ims/ImsSuppServiceNotification.java telephony/java/com/android/ims/internal/IImsRegistrationListener.aidl telephony/java/com/android/internal/telephony/RILConstants.java Change-Id: I99c6edb8e25a77145b5adef97d0d55bfbe676959
| * am 0b804542: Merge "Constrain drawBitmap matrix-to-rect optimization" into ↵Chris Craik2015-08-191-1/+3
| |\ | | | | | | | | | | | | | | | | | | mnc-dev * commit '0b8045425ff58f992046ff2be35bc91001dabf7b': Constrain drawBitmap matrix-to-rect optimization
| * \ am 70e5db94: Merge "Fix crash in kModeProcessNoContext" into mnc-devJohn Reck2015-08-041-3/+9
| |\ \ | | | | | | | | | | | | | | | | * commit '70e5db9413f82bf1f000bd99b3d2dbecf6e4ab04': Fix crash in kModeProcessNoContext
| * \ \ am c03ab87a: Merge "Disable skipping frames on empty damage" into mnc-devJohn Reck2015-08-041-4/+5
| |\ \ \ | | | | | | | | | | | | | | | | | | | | * commit 'c03ab87ac9f721ff22bfe5e9c0cd0e5be64f261e': Disable skipping frames on empty damage
| * \ \ \ am 730c0f65: Merge "Fix stencil mask usage in HWUI" into mnc-devChris Craik2015-07-301-8/+14
| |\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | * commit '730c0f6591b1c99699e9d0ecf36d696f7d87629f': Fix stencil mask usage in HWUI
| * \ \ \ \ am fd44b56d: Merge "AAPT: Fix printing of resource configurations" into mnc-devAdam Lesinski2015-07-281-1/+7
| |\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit 'fd44b56d599bc6c6e7397dcdfaa6d613805a88cb': AAPT: Fix printing of resource configurations
| * \ \ \ \ \ am 8b1154c4: Merge "Move updateMatrix() call to animateCommon" into mnc-devJohn Reck2015-07-241-1/+1
| |\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '8b1154c487c25388107dc024376435f3b0ae2385': Move updateMatrix() call to animateCommon
| * \ \ \ \ \ \ am 2abf0f24: Fix a race condition that could cause lockupJohn Reck2015-07-231-5/+0
| |\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '2abf0f24af60b8644d5b61eed9666793083546ee': Fix a race condition that could cause lockup
| * \ \ \ \ \ \ \ am 1fddd3ef: Merge "Mark isInUse per-window" into mnc-devJohn Reck2015-07-217-21/+25
| |\ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '1fddd3efa9ac10e794d7bdf457b7b52c7e4614f7': Mark isInUse per-window