summaryrefslogtreecommitdiffstats
path: root/core/jni
Commit message (Collapse)AuthorAgeFilesLines
* DHCP: Add a native method for making a DHCP socket.Lorenzo Colitti2015-03-161-0/+50
| | | | | Bug: 19704592 Change-Id: Iadd60d39c93aaabd2917e76791101a7d313b34be
* Refactor NetworkUtils interaction with DHCP.Erik Kline2015-03-021-40/+36
| | | | | | | | | | Separate out starting DHCP (DISCOVER) and RENEW operations from fetching the results. Add NetworkUtils.getDhcpResults(), to enable quick checks of any available DhcpResults without extraneous interaction with the DHCP daemon. Bug: 19422416 Change-Id: I58808e529dda8429737e749f5caef56d923c0809
* am a5f301c7: Merge "Legacy: Only set user surface dimensions on output ↵Eino-Ville Talvala2015-02-121-9/+3
|\ | | | | | | | | | | | | surfaces" into lmp-mr1-dev * commit 'a5f301c7fb048461197a6032f66b35772a3157f9': Legacy: Only set user surface dimensions on output surfaces
| * Legacy: Only set user surface dimensions on output surfacesEino-Ville Talvala2015-02-111-9/+3
| | | | | | | | | | | | | | | | The GL layer gets exclusive use of the direct producer dimensions; we should only set the user dimensions. Bug: 16404608 Change-Id: Ie5b720104bdbee6b096b62520baa1c6b518c6c1c
| * Check that bitmap's size does not exceed 32 bits. DO NOT MERGELeon Scroggins III2015-02-101-1/+6
|/ | | | | BUG:19270126 Change-Id: I075d1cefcd3208305a72b4fa629a262e92eb60ea
* Handle bad ninepatch data.Leon Scroggins III2015-01-271-1/+3
| | | | | | | | | | | | | Changes proposed by Ben Hawkes of Google Project Zero. NinePatchPeeker.cpp: Instead of asserting, return false for bad data. ResourceTypes.h: Store ninepatch values as unsigned. BUG:19151999 Change-Id: Ibe35e7569f632c6bb8a34a7701e26bb6ed547ec2
* Merge "Update generationId on bitmaps when decoded into by ↵Chris Craik2015-01-151-0/+1
|\ | | | | | | BitmapRegionDecoder" into lmp-mr1-dev
| * Update generationId on bitmaps when decoded into by BitmapRegionDecoderChris Craik2015-01-141-0/+1
| | | | | | | | | | | | | | | | | | bug:18921087 This fixes issues where bitmaps are cached as textures, and not reuploaded when reused by BitmapRegionDecoder, showing stale content. Change-Id: I7626fd6acd36d8e38723689734855ce9154eb8c8
* | Camera: Clarify JNI exception messageEino-Ville Talvala2015-01-121-1/+2
| | | | | | | | | | | | | | | | This exception may be generated through MediaRecorder method calls as well, so clarify that the issue is an invalid camera object. Bug: 18414095 Change-Id: I189ab1a71ab0d6a432b87c45a82c90fe11d22ef8
* | Merge "Camera2: Fix early EOF in DngCreator#writeByteBuffer." into lmp-mr1-devRuben Brunk2015-01-091-4/+10
|\ \
| * | Camera2: Fix early EOF in DngCreator#writeByteBuffer.Ruben Brunk2015-01-091-4/+10
| | | | | | | | | | | | | | | Bug: 18962278 Change-Id: I8641a03d866930c86bdd2db0a29ccd5560712c90
* | | Check for OOM in BitmapFactory's getMimeTypeString().Vladimir Marko2015-01-071-4/+9
|/ / | | | | | | | | | | | | | | Bug: 18909596 (cherry picked from commit 7ab249a18e08bfefb8c2d60af1fb668c67ba4368) Change-Id: Ie7be228442876d47faf37e3f664e378253dab6e3
* | fix Uss accounting in getPssPid()Iliyan Malchev2014-12-121-2/+2
| | | | | | | | | | Change-Id: I0d1dc81d127afbf3a7d7b4b86865ccb0e8bd7d4c Signed-off-by: Iliyan Malchev <malchev@google.com>
* | camera2: Fix LEGACY YUV production and orientation.Ruben Brunk2014-12-111-16/+19
|/ | | | | Bug: 18486140 Change-Id: I119e57315b67d1f485bea7f1682bfc261ae0f934
* Merge "AudioSystem JNI: Add audio policy custom mixes registration" into ↵Eric Laurent2014-12-101-0/+199
|\ | | | | | | lmp-mr1-dev
| * AudioSystem JNI: Add audio policy custom mixes registrationEric Laurent2014-12-081-0/+199
| | | | | | | | | | | | Bug: 16009464. Change-Id: I3763e79f4fa0331acb56d1d6f575c7a36e0bebd5
* | Merge "Camera2: Allow rendering to arbitrary surface sizes in LEGACY mode." ↵Ruben Brunk2014-12-091-0/+23
|\ \ | | | | | | | | | into lmp-mr1-dev
| * | Camera2: Allow rendering to arbitrary surface sizes in LEGACY mode.Ruben Brunk2014-12-091-0/+23
| | | | | | | | | | | | | | | Bug: 16030677 Change-Id: Ida04e04f41983b9126609522dd12064a7bf9645f
* | | Fix issue with RNA destruction mid-animationJohn Reck2014-12-091-2/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | Bug: 18521508 Fix an issue where an RNA's native object was destroyed before the java-side object was started Change-Id: I487fb476e0ecdf7000515f4f7320e8cfbc50a52b
* | | Merge "Work on issue #18640385: Add procstats test mode" into lmp-mr1-devDianne Hackborn2014-12-091-4/+16
|\ \ \
| * | | Work on issue #18640385: Add procstats test modeDianne Hackborn2014-12-081-4/+16
| | |/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | You can now do "adb shell dumpsys procstats --start-testing" to enable high frequency pss sampling. Also improved the low on RAM mem reporting to separate out RAM from memtrack, in case the data we are getting from that is bad. And fixed meminfo --oom to work correctly again. Change-Id: I7af17eab110a82298bd7b0ce381f8fa5c96c1f6a
* | | Add more -d dalvik details to dumpsysMathieu Chartier2014-12-081-3/+12
|/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Added .NonMoving for the non moving space. Added .Zygote for the zygote. Added .IndirectRef for indirect reference tables (jobjects). Example: Dalvik Details .Heap 2264 2264 0 0 .LOS 80 80 0 0 .GC 144 144 0 0 .Zygote 331 196 0 2428 .NonMoving 540 540 0 0 .IndirectRef 20 20 0 0 Bug: 18672069 Change-Id: Id14e5bc92ceb15fe7a17d9fb035f18aa2925e50c
* | Merge "Update AndroidPixelRef to prevent VM from cleaning up memory ↵Derek Sollenberger2014-12-043-166/+16
|\ \ | | | | | | | | | prematurely." into lmp-mr1-dev
| * | Update AndroidPixelRef to prevent VM from cleaning up memory prematurely.Derek Sollenberger2014-12-033-166/+16
| | | | | | | | | | | | | | | bug:18306529 Change-Id: I1ea94df1dcaf4fcf248b63dc8b0a13f36412570a
* | | Resume RT-animations after a pauseSurfaceJohn Reck2014-12-031-3/+3
|/ / | | | | | | | | | | | | | | | | | | | | | | | | Bug: 18203577 The issue occurs as a result of performTraversals() both doing a window relayout call *and* early-returning because it's not dirty. To fix this pauseSurface() returns whether or not the RT-side is "dirty" to force ViewRootImpl to do a draw even if mDirty is otherwise empty. Change-Id: I534f367e75d18d273ebf14df3927f5c464ef6bef
* | AudioRecord JNI: pass attributes to native AudioRecord.Eric Laurent2014-11-261-1/+2
| | | | | | | | | | Bug: 16006090. Change-Id: Ic6448dda0de65dada3a195cfc2ec73698b04b7b2
* | Fix crash in getNativeCanvas when canvasHandle is NULLBo Liu2014-11-241-0/+3
| | | | | | | | | | BUG: 18261928 Change-Id: I01a5af201fe829d5752433e1bb0db7edc01733d4
* | Merge "It's super critical to call nStart" into lmp-mr1-devJohn Reck2014-11-211-3/+17
|\ \
| * | It's super critical to call nStartJohn Reck2014-11-211-3/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug: 18204974 Even if we are canceling or ending an animation nStart() *must* be called, otherwise the native-side listener is not attached (lazy-attached for JNI cyclic reference reasons), and then Animator::callOnFinishedListener() no-ops as there's no listener set Add a lifecycle verifier to ensure that nStart is always called on animators that are attached and get finished Change-Id: Ibc345b5be97b6d3f95a11c361ebe020d030fd3b6
* | | Merge "Revert "Add a way to override Xfermode DO NOT MERGE"" into lmp-mr1-devChris Craik2014-11-211-8/+0
|\ \ \ | |/ / |/| |
| * | Revert "Add a way to override Xfermode DO NOT MERGE"Chris Craik2014-11-211-8/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Feature no longer needed. bug:18448377 This reverts commit 4678dcc5524258908eadc5fe1e5e1874768967eb. Change-Id: Ib0a19946e966a54857165555827b5fa7b34b6bea
* | | Merge "AudioSystem JNI: fix AudioPortConfig mask usage" into lmp-mr1-devEric Laurent2014-11-191-7/+25
|\ \ \ | |_|/ |/| |
| * | AudioSystem JNI: fix AudioPortConfig mask usageEric Laurent2014-11-191-7/+25
| | | | | | | | | | | | | | | Bug: 18444838. Change-Id: I9151538399001c719b9e0681c00d47a26928896c
* | | Add zygote space to Dalvik HeapMathieu Chartier2014-11-191-0/+1
|/ / | | | | | | | | | | | | | | | | | | | | | | Broken by https://googleplex-android-review.git.corp.google.com/#/c/590612/ This change fixes it by correctly putting the zygote in Dalvik Heap instead of Dalvik Other. Bug: 18447855 Change-Id: I4a58480f1ef1eb17e760245d8690ce92e28ebea3
* | Frameworks/base: Compiled-classes supportAndreas Gampe2014-11-181-0/+6
| | | | | | | | | | | | | | | | Let AndroidRuntime check for /system/etc/compiled-classes and push it to the runtime for boot image creation. Bug: 18410571 Change-Id: I2510316381f2661166af24d7e14b013f4e045556
* | Merge "Implement back-tracking when searching for attributes in XML or ↵Adam Lesinski2014-11-171-62/+73
|\ \ | | | | | | | | | resource bag" into lmp-mr1-dev
| * | Implement back-tracking when searching for attributes in XML or resource bagAdam Lesinski2014-11-041-62/+73
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Shared libraries have their package ID assigned at run-time, so some of the guarantees we used to have about sort order of attributes in bags or XML elements no longer hold. This CL adds back-tracking and can jump to the nearest attribute with the same package ID and continue searching. This means that attributes with the same package ID must be sorted by increasing resource ID, as was the case before. Attributes with the same package ID must be grouped together, but the groups can be in any order. Ex: 0x02010001, 0x02010002, 0x01010000, 0x01010010, 0x7f010032 Bug:17666947 Change-Id: I9c198bbb6ca788849aac85b6323606ea5d9550d6
* | | Merge "Frameworks/base: AndroidRuntime standalone preloaded-classes" into ↵Ying Wang2014-11-171-3/+18
|\ \ \ | | | | | | | | | | | | lmp-mr1-dev
| * | | Frameworks/base: AndroidRuntime standalone preloaded-classesAndreas Gampe2014-11-141-3/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change AndroidRuntime::startVM to give the new standalone preloaded-classes file to the runtime for compilation of images. Bug: 18305157 Change-Id: I32a13357893222b25fbce60bf2367c23fb36ab22
* | | | Merge "Wire up surface width/height to lockHardwareCanvas" into lmp-mr1-devJohn Reck2014-11-171-0/+18
|\ \ \ \ | |/ / / |/| | |
| * | | Wire up surface width/height to lockHardwareCanvasJohn Reck2014-11-131-0/+18
| | | | | | | | | | | | | | | | | | | | Bug: 18338026 Change-Id: I6c37774ef1312278ae81280561060662fef923fb
* | | | AudioRecorder read buffer overflowJon Eklund2014-11-131-1/+1
|/ / / | | | | | | | | | | | | | | | | | | | | | | | | Since function was changed from byte-native to short-native, it's no longer necessary to multiply offset by sizeof(short). Bug 18367580 Change-Id: I669d860334ba40e46c04e534d7008b9e2401d8cd
* | | Add reporting of Parcel memory/count.Dianne Hackborn2014-11-121-0/+13
| | | | | | | | | | | | | | | | | | Also fix issue #18340771: Dumpsys Procstats missing a newline Change-Id: I0c612187a3fb4d7eeafbf97d373efdef732c477e
* | | Merge "Add a way to override Xfermode DO NOT MERGE" into lmp-mr1-devRob Tsuk2014-11-121-0/+8
|\ \ \ | | |/ | |/|
| * | Add a way to override Xfermode DO NOT MERGERob Tsuk2014-11-121-0/+8
| | | | | | | | | | | | | | | | | | | | | Add a non-public API to Canvas/GLES20Canvas to provide a way to draw the touch ripple animation without using a save layer. Change-Id: I6e2095adffe515194f669fb75bb67abf813bd518
* | | Merge "audiosystem JNI: check env pointer before use." into lmp-mr1-devEric Laurent2014-11-121-1/+6
|\ \ \
| * | | audiosystem JNI: check env pointer before use.Eric Laurent2014-11-121-1/+6
| |/ / | | | | | | | | | | | | Bug: 18332935. Change-Id: I1ec820f0282833e13444ec05d50da3ce70d19d8d
* | | Frameworks/base: Right transform in DngCreatorAndreas Gampe2014-11-121-1/+1
|/ / | | | | | | | | | | Use the right calibrationTransform. Change-Id: Ibc633ff1e02d1e48a27ae2a72585d3de2222a2c1
* | Merge "Add a BufferItem parameter to onFrameAvailable" into lmp-mr1-devDan Stoza2014-11-071-2/+2
|\ \
| * | Add a BufferItem parameter to onFrameAvailableDan Stoza2014-11-041-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | Passes the BufferItem for the queued buffer to the onFrameAvailable callback so the consumer can track the BufferQueue's contents. Bug: 18111837 Change-Id: If9d07229c9b586c668e5f99074e9b63b0468feb0