summaryrefslogtreecommitdiffstats
path: root/core/jni
Commit message (Collapse)AuthorAgeFilesLines
* Merge branch 'cm-13.0' of ↵Wolfgang Wiedmeyer2017-02-112-8/+71
|\ | | | | | | https://github.com/LineageOS/android_frameworks_base into replicant-6.0
| * Zygote: Additional whitelisting for legacy devices.Narayan Kamath2017-02-031-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | On M and below, we provide a blanket whitelist for all files under "/vendor/zygote_whitelist". This path is whitelisted purely to allow this patch to be applied easily on legacy devices and configurations. Note that this does not amount to a loosening of our security policy because whitelisted files are reopened anyway. Bug: 32691930 Test: manual Change-Id: If5b53f6f0a707f8d36603c09bfd3f72dbfbbbb99 (cherry picked from commit 5e2f7c6229d7191183888d685b57a7d0a2835fce)
| * Zygote: Additional whitelists for runtime overlay / other static resources.Narayan Kamath2017-02-031-3/+41
| | | | | | | | | | | | | | | | | | | | | | | | | | Partially cherry picked from commit 1c15c635785c64a. These files are safe to reopen for the same reason that files in /system/framework are. They're regular files and will not change after the first zygote fork. Bug: 32618130 Change-Id: I119e0bfcbf397cb331064adf148d92a5cd3ea92f (cherry picked from commit 4e8ba1d73eee1311bb78144be43862b393548d5d)
| * Zygote : Block SIGCHLD during fork.Narayan Kamath2017-02-031-5/+24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix merge conflict into mnc-mr2-release We close the android logging related sockets prior as late as possible before every fork to avoid having to whitelist them. If one of the zygote's children dies after this point (but prior to the fork), we can end up reopening the logging sockets from the SIGCHLD signal handler. To prevent this from happening, block SIGCHLD during this critical section. Bug: 32693692 Test: Manual (cherry picked from commit e9a525829a354c92983a35455ccab16d1b0d3892) Zygote: Unblock SIGCHLD in the parent after fork. Follow up to change e9a525829a354c92983a. Allows the zygote to receive SIGCHLD again and prevents the zygote from getting into a zombie state if it's killed. Contributed-By: rhed_jao <rhed_jao@htc.com> Bug: 32693692 Test: manual (cherry picked from commit 1480dc3e97b661f5bfa3a5c2fbce72385b8d2be6) Change-Id: If89903a29c84dfc9b056f9e19618046874bba689
* | Camera: Working barcode scanning with software renderingWolfgang Wiedmeyer2017-01-041-0/+43
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Barcode scanner apps expect YUV as preview format. However, the software renderer cannot handle YUV. Thus, RGB 565 is used. Barcode scanner apps only need the first plane Y which is basically greyscale. The solution is a conversion from RGB to greyscale of preview frames that are requested by apps for processing. Apps request preview frames via onPreviewFrame(). The conversion is done using native code for optimal speed. The conversion algorithm is based on the implementations in the RGBLuminanceSource class of ZXing[1] and the RGB565LuminanceSource class of FastBarcodeScanner[2]. Signed-off-by: Wolfgang Wiedmeyer <wolfgit@wiedmeyer.de> [1] https://github.com/zxing/zxing/blob/cc16a72c85e4958ce406af9547764e5eee9adb6e/core/src/main/java/com/google/zxing/RGBLuminanceSource.java [2] https://github.com/tschaumburg/FastBarcodeScanner/blob/5a4c166a722730d0099d4c6a1c15d312b93547da/tracking-barcode-scanner/src/main/java/dk/schaumburgit/trackingbarcodescanner/RGB565LuminanceSource.java
* | Merge branch 'cm-13.0' of ↵Wolfgang Wiedmeyer2016-12-128-45/+633
|\ \ | |/ | | | | https://github.com/CyanogenMod/android_frameworks_base into replicant-6.0
| * zygote: Allow device to append extra whitelisted pathsLuca Stefani2016-11-172-1/+35
| | | | | | | | Change-Id: Ic5b056d7ead520da8648db9be28e16a81ec27c73
| * zygote: Add /proc/ged to the FD whitelistRicardo Cerqueira2016-11-121-1/+2
| | | | | | | | | | | | This is used by some platforms' gfx stack Change-Id: Ife6e1b0df30fc23eff7fb6a16ff95c3e7b16a9c7
| * Add CMSDK resource APK to Zygote FD whitelistSteve Kondik2016-11-101-1/+2
| | | | | | | | Change-Id: Ica91b23e467db61f142b183316db4afee2a2a283
| * Merge tag 'android-6.0.1_r74' into HEADJessica Wagantall2016-11-096-10/+597
| |\ | | | | | | | | | | | | | | | CYNGNOS-3303 Android 6.0.1 release 74
| | * Ensure munmap matches mmapJohn Reck2016-09-274-10/+11
| | | | | | | | | | | | | | | | | | Bug: 31350622 Change-Id: I6d3f9faec32d54360caa6706d17405e20b50966c (cherry picked from commit aa394dd42c049479bface1991f11b863dc1a0922)
| | * Backport changes to whitelist sockets opened by the zygote.Narayan Kamath2016-09-272-0/+586
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is the backport of the following commits : Commit c5f27a7cb2ec816f483a65255034a1b57a8aa22: ----------------------------------------------- Reopen whitelisted zygote file descriptors after a fork. We don't want these descriptors to be shared post-fork, so we'll have to close and reopen them when the zygote forks. The set of open descriptors is checked against a whitelist and it is a fatal error if a non whitelisted FD is opened. It is also a fatal error if anything other than a regular file / character device or socket is opened at the time of forking. This work is done in two stages : - An initial list of FDs is constructed and cached prior to the first zygote fork. - On each subsequent fork, we check whether the list of open FDs has changed. We are currently tolerant of changes, but in the longer term, it should be a fatal error if the set of open file descriptors in the zygote changes. - Post fork, we traverse the list of open descriptors and reopen them if necessary. bug: 30963384 Commit 3764a260f0c90dcb323caeda14baf903cc108759: ----------------------------------------------- Add a whitelist of sockets on fork. Maintain a whitelist of AF_UNIX sockets that are permitted to exist at the time of forking. If an open socket does not belong to the whitelist (or is not AF_UNIX), the process will abort. If an open socket is whitelisted, it will be redirected to /dev/null after a sucessful fork. This allows us to unify our handling of the special zygote sockets (/dev/socket/zygote[_secondary]) with the existing whitelist of non socket file descriptors. This change also removes non-fatal ALOGW messages since they have the side effect of reopening the logging socket. bug: 30963384 Commit 0b76d6a28e6978151bf245a775329cdae5e574d5: ----------------------------------------------- fd_utils: Fix broken usage of iterators. There were two separate issues here : - RestatInternal was using an iterator after a call to erase(). This will not work because it will be invalidated. - The "standard" for loop idiom for iterating over a map while making structural changes to it is broken. Switch to a while loop and treat cases where elements are erased differently from cases where they aren't. bug: 31092930 bug: 30963384 Plus additional changes: ----------------------------------------------- - add /dev/__properties__ to the whitelist. Change-Id: I709a7f4913e807a8fec8a58c81e98fe5b5222820 (cherry picked from commit 41ca1bce01af7e86aeff9009df54bbc81e3c77d0)
| * | media: Remove effect session callbacks from the frameworkSteve Kondik2016-04-271-36/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * This API is moving to CMSDK. Revert "media: Add flags, channelMask, and UID to audio session callbacks" This reverts commit e0554d493e870ea5e323ed06f54becb93c19fa04. Revert "audiosystem: Add API for listening to effect session events" This reverts commit 9957394df71db6f01802091858216582c58eab67. Change-Id: I5f18fdb3390db25285a5b819dfe2136ae111c0b3
| * | media: Add flags, channelMask, and UID to audio session callbacksSteve Kondik2016-04-081-3/+4
| | | | | | | | | | | | | | | | | | | | | * This is to allow us to implement more sophisticated logic in the application on when to apply effects to a stream. Change-Id: I2931daa1546591e18d98acc91775c1fdafa3d453
* | | Merge branch 'cm-13.0' of ↵Wolfgang Wiedmeyer2016-03-186-3/+91
|\ \ \ | |/ / | | | | | | https://github.com/CyanogenMod/android_frameworks_base into replicant-6.0
| * | Merge tag 'android-6.0.1_r22' of ↵Steve Kondik2016-03-112-1/+26
| |\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | https://android.googlesource.com/platform/frameworks/base into cm-13.0 Android 6.0.1 release 22 Change-Id: I0d31899b234156a91accb61e0a7fb3d8d16d5062
| | * | Log errno when dup fd cannot be allocatedErik Wolsheimer2015-11-161-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | BUG: 25165471 Change-Id: I7342e2b4c566325fc2e15643a7c7b6ba989ee8c7
| | * | Merge "Limit persistent ashmem backed fds to a minimum of 128kB." into ↵Ian Pedowitz2015-11-031-1/+2
| | |\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | mnc-dr-dev am: 966d6040c6 * commit '966d6040c6b171c75e9fb0ca942e84f9cf4d0dff': Limit persistent ashmem backed fds to a minimum of 128kB.
| | | * | Limit persistent ashmem backed fds to a minimum of 128kB.Riley Andrews2015-11-031-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug 25256717 Change-Id: Ieb356006df0a6545b89de44d3d8fd4b46312b3b8 Signed-off-by: Riley Andrews <riandrews@google.com>
| | * | | Merge "Revert "Revert "Track ashmem memory usage in Parcel""" into mnc-dr-devAdrian Roos2015-10-231-15/+23
| | |\ \ \ | | | |/ / | | | | | | | | | | | | | | | | | | | | | | | | | am: 93a6b4c129 * commit '93a6b4c12904bd1804a540d006c183851b0aea33': Revert "Revert "Track ashmem memory usage in Parcel""
| | * | | Merge "Revert "Track ashmem memory usage in Parcel"" into mnc-dr-devIan Pedowitz2015-10-221-23/+15
| | |\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 09fd4ecf90 * commit '09fd4ecf90c7ae2536a6848e8c88c4878e0e0c24': Revert "Track ashmem memory usage in Parcel"
| | * \ \ \ Merge "Track ashmem memory usage in Parcel" into mnc-dr-devAdrian Roos2015-10-221-15/+23
| | |\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 33e1d376eb * commit '33e1d376ebd643cba5b507d0005b87d49e246bb5': Track ashmem memory usage in Parcel
| | * \ \ \ \ Merge "Fix read_mapinfo to recognize free list large object space" into ↵Mathieu Chartier2015-10-191-1/+3
| | |\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | mnc-dr-dev am: 7f2deeeef5 * commit '7f2deeeef53887dcad74b8aed86936983353cec4': Fix read_mapinfo to recognize free list large object space
| | * \ \ \ \ \ am c03443b2: Fix lens shading map origin calculation.Ruben Brunk2015-10-171-2/+3
| | |\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit 'c03443b23de0b474080168d892cd685283c3285b': Fix lens shading map origin calculation.
| | * \ \ \ \ \ \ am 63aa02e4: Merge "Load binary hyphen data files" into mnc-dr-devRoozbeh Pournader2015-10-151-4/+12
| | |\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '63aa02e47fa0fdd877b9fde7f1f6eda75b645f92': Load binary hyphen data files
| | * \ \ \ \ \ \ \ am 0b887e57: Merge "SurfaceControl: Add colorTransform to DisplayInfo" into ↵Dan Stoza2015-09-031-0/+5
| | |\ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | mnc-dr-dev * commit '0b887e579b766012c09626e7089a3fade5415ee6': SurfaceControl: Add colorTransform to DisplayInfo
| | * \ \ \ \ \ \ \ \ Merge "DO NOT MERGE Add 'bluetooth' user to the 'system' group." into cw-e-devSharvil Nanavati2015-09-031-1/+25
| | |\ \ \ \ \ \ \ \ \
| | | * | | | | | | | | DO NOT MERGE Add 'bluetooth' user to the 'system' group.Sharvil Nanavati2015-08-311-1/+25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Also grant the Bluetooth process CAP_BLOCK_SUSPEND so it can acquire wake locks directly from /sys/power/wake_lock. Bug: 23375670 Change-Id: Ib094c5752d49488c2560897ff6bb821daf98a281
| * | | | | | | | | | | intel: Pick the best ABI based on number of libs, not just priorityChristopher R. Palmer2016-03-102-2/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The normal package loading will open the APK and find the highest priority ABI that contains one or more native libraries. This works well for 64-bit vs. 32-bit but doesn't work very well for ARM vs. Intel ABIs. There are many broken apps in the market which fail to run when installed as x86. I believe that there are so many apps because an app that doesn't itself have native x86 libs but imports a 3rd party lib that does support x86 will end up installin the x86 libs for the support library which fools the package installer. As a simple heuristic, pick the ABI that contains the most shared libraries. That works around the common case of missing the app's own shared libraries. Note: the consequences of picking incorrectly are actually quite small since the app should still run, although it will run less efficiently because it is emulated. Note: if two ABIs have the same number of libs, we pick the higher priority one as a tie-breaker. Change-Id: Ie4880810f46875869ce054b3c46acac64b953996
| * | | | | | | | | | | audiosystem: Add API for listening to effect session eventsSteve Kondik2016-03-081-0/+35
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * This API will allow attaching a global listener which will notify the application when audio effect sessions are attached or removed on a stream. This requires that the policy is configured to automatically attach a set of effects. Change-Id: Iaf1ca133765045322b005d4148e2c4e86a9c3913
| * | | | | | | | | | | runtime: Handle prebundles on BOARD_NEEDS_VENDORIMAGE_SYMLINK.Adnan Begovic2016-02-191-0/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If a target device (ex: angler) sets BOARD_NEEDS_VENDORIMAGE_SYMLINK, the prebundled applications within the system.img will be extracted under `system/bundled-app`. Handle this scenario by setting the right PREBUNDLED_ROOT environment variable on boot, based on existance of a file. Change-Id: I25a7d6638b0032ecff4bc37124bb2e378950c3b2 TICKET: CYNGNOS-2092
* | | | | | | | | | | | Merge branch 'cm-13.0' of ↵Wolfgang Wiedmeyer2016-01-281-0/+6
|\ \ \ \ \ \ \ \ \ \ \ \ | |/ / / / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | https://github.com/CyanogenMod/android_frameworks_base into replicant-6.0 Signed-off-by: Wolfgang Wiedmeyer <wolfgit@wiedmeyer.de>
| * | | | | | | | | | | fix race condition between HWUI cache and renderThreadThomas Buhot2016-01-211-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
* | | | | | | | | | | | check not only if we are in an emulator, but also if the device has only ↵Wolfgang Wiedmeyer2015-12-181-3/+8
|/ / / / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | software rendering Change-Id: I276865d9a7995ae99488fc9044cfdd64529fd81a
* | | | | | | | | | | libhwui: make setSurface asynchronousThomas Buhot2015-12-161-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
* | | | | | | | | | | Merge tag 'android-6.0.1_r3' of ↵Steve Kondik2015-12-075-23/+43
|\ \ \ \ \ \ \ \ \ \ \ | | |_|_|_|_|_|_|_|_|/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | https://android.googlesource.com/platform/frameworks/base into cm-13.0 Android 6.0.1 release 3 Change-Id: I59b9e5a943e0860d43bcfb36ee0e8b8b072412ea
| * | | | | | | | | | Limit persistent ashmem backed fds to a minimum of 128kB.Riley Andrews2015-11-031-1/+2
| | |_|_|_|_|_|_|_|/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug 25256717 Change-Id: Ieb356006df0a6545b89de44d3d8fd4b46312b3b8 Signed-off-by: Riley Andrews <riandrews@google.com>
| * | | | | | | | | Revert "Revert "Track ashmem memory usage in Parcel""Adrian Roos2015-10-221-15/+23
| | |_|_|_|_|_|_|/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This reverts commit e2adb2cf0f2c90c77fab3f09285a92e05e70b567. Bug: 25004154 Change-Id: I9b432d1ebc39f3bbcd7afdefc403f0fb6ced8158
| * | | | | | | | Revert "Track ashmem memory usage in Parcel"Ian Pedowitz2015-10-221-23/+15
| | |_|_|_|_|_|/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This reverts commit ab3f9724035046d65124a72db2a09c824b3d5c67. Bug: 25169267 Bug: 25191602 Bug: 25004154 Change-Id: Ic51e62515273e4687359dfd9ff770a4d06c0c667
| * | | | | | | Track ashmem memory usage in ParcelAdrian Roos2015-10-221-15/+23
| | |_|_|_|_|/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug: 25004154 Change-Id: Id9d5656dd0605f1b50525596b75601309f67ebdc (cherry picked from commit 4701a496a5477a7de01fbc9eaf4af9812f83770c)
| * | | | | | Fix read_mapinfo to recognize free list large object spaceMathieu Chartier2015-10-191-1/+3
| | |_|_|_|/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug: 25081604 (cherry picked from commit 6421da8f46e2a60da55939d8a4f7d91ab286dfcf) Change-Id: If676c2309e3e397676fa8cef21405c34db7d5db2
| * | | | | Fix lens shading map origin calculation.Ruben Brunk2015-10-171-2/+3
| | |_|_|/ | |/| | | | | | | | | | | | | | | | | | Bug: 24816235 Change-Id: Id4609f3349f86c811cbc3d5e1839f880da926486
| * | | | Load binary hyphen data filesRaph Levien2015-10-141-4/+12
| | |_|/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Support for loading the pre-compiled binary format for hyphenation patterns. Bug: 21562869 Bug: 21826930 Bug: 24570591 Change-Id: Iaeaa9c9ac9dac236af6b0d7894c2e2396bc8447d (cherry picked from commit 091dba2de1e5fa7d4db9f8ccbf1f86e5825d0f52)
* | | | Merge branch 'LA.BF64.1.2.2_rb4.7' of ↵Steve Kondik2015-11-162-11/+22
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | git://codeaurora.org/platform/frameworks/base into cm-13.0 Change-Id: I008f052e4e27b44457c8343d20f6e1ba943c8e1f
| * | | | Add additional checks for overriding ABI for appsShibin George2015-11-041-10/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Scan 'assets' folder for native libraries only if ABI after scanning 'lib' folder was not set to 32-bit. Change-Id: I55e4a8531d2a772037e634a34c40280cc33fab8e
| * | | | binder: adjust GC interval for binder opsWei Wang2015-10-311-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The current value is too conservative, and causes janks in certain use cases due to frequent explict GC. Change-Id: Iba8eecd4e8ed7dce879c144fdc4407c12f76a749
| * | | | frameworks/base: fix: string out of boundary.Mallikarjuna Reddy Amireddy2015-10-231-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | String length should use GetStringLengh() and the resultant buffer should be GetStringUTFLength(). So Update the code accordigly to fix the string out of boundary. Bug: 921692 Change-Id: I2c3d37ac713b2545e740787bdf1804e15c4c5be6
* | | | | WindowManager: Upper level changes to expose blur effectByunghun Jeon2015-11-091-0/+41
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Upper level changes to expose blur-behind and blur-mask effect Change-Id: I6d37b43888c8c5e028974bd714596d8178cb5114 WindowManager: Adding template for BlurLayer file Cyanogen changes: * Use config.xml instead of settings * Don't break stuff if not supported in SF * Incremental fade for insecure lockscreen * Disabled extra effects for now Change-Id: Icefe452f7a015656661e8543849c9b88889dbb40 SystemUI: hide blur when showing keyguard media It's still showing up behind eating up cycles Change-Id: I8b1a0f2cfafcc1dcf2a9a472fc15b987e4a3992b Signed-off-by: Roman Birg <roman@cyngn.com>
* | | | | Frequently used OpenGL ES methods whitelisted for fast JNI pathDaniil Sokolov2015-11-072-76/+76
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The patch lists ~70 methods of OpenGL ES 2.0 wrapper as fast JNI. This significantly reduces JNI overhead for OpenGL Java applications. Which results in faster rendering and reduced JANK (e. g. 10 % Jank reduction on Google Maps). None of the whitelisted methods can block forever according to OpenGL spec. So, this change is safe from fastJNI point of view (can not introduce any deadlocks). As measured is a separate experiemnt the whitelisted methods take less than 1 ms in vast majority (99.9+) of the cases, and always complete within 100 ms. As shown in this thread https://soco.intel.com/thread/766188 such level of delays should not have any practical impact on GC pauses, but reduces the JNI overhead significantly. Signed-off-by: DaniilSokolov <daniil.y.sokolov@intel.com> Change-Id: I04ed94aef64686d6ee6a1b6a0ef62570687c5f5b Signed-off-by: Zhiquan Liu <zhiquan.liu@intel.com>
* | | | | Camera: Longshot with Burst Functionality.Vijay Kumar Tumati2015-11-051-3/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | New Longshot stop command is sent after receiving all the required YUV callbacks or releasing the shutter before reaching Max number. Change-Id: I264d94cde624b5f2ead88236bdff8d6db41e12e6