summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* | | | Merge changes from topic 'button_actions' into mnc-devMichael Wright2015-05-1415-119/+244
|\ \ \ \ | |_|_|/ |/| | | | | | | | | | | | | | | * changes: Fix input tests to work with new MotionEvent member Revert "Revert "Add new MotionEvent actions for button press and release.""
| * | | Fix input tests to work with new MotionEvent memberMichael Wright2015-05-144-11/+13
| | | | | | | | | | | | | | | | Change-Id: I0dde0f91f693903f26edc116b5dbcbf33bac2b93
| * | | Revert "Revert "Add new MotionEvent actions for button press and release.""Michael Wright2015-05-1412-108/+231
| | | | | | | | | | | | | | | | This reverts commit 70b41ef580644fd0fe6fa9b8ac7e4a745cfb6db3.
* | | | Merge "Revert "Add new MotionEvent actions for button press and release."" ↵Michael Wright2015-05-1412-231/+108
|\ \ \ \ | |/ / / | | | | | | | | into mnc-dev
| * | | Revert "Add new MotionEvent actions for button press and release."Michael Wright2015-05-1412-231/+108
| | | | | | | | | | | | | | | | This reverts commit 48a8a0e4322969e1551536d6183af3a1faa2240b.
* | | | Merge "Add new MotionEvent actions for button press and release." into mnc-devMichael Wright2015-05-1412-108/+231
|\ \ \ \ | |/ / /
| * | | Add new MotionEvent actions for button press and release.Michael Wright2015-05-1412-108/+231
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Introduce ACTION_BUTTON_PRESS and ACTION_BUTTON_RELEASE as actions to signal a button press or release. If these actions happen simulanteously with a DOWN or UP event then they're explicitly ordered to happen after the DOWN or preceding the UP in order to send them to the most recently targeted view. Also, introduce new stylus button constants that differ from the constants we use for mouse buttons. Bug: 20704355 Change-Id: Ib960a5004db5429ad2fc8db020704773e2978327
* | | | Merge "Switch libGLESv1_CM/libGLESv2 to hash-style=both" into mnc-devDmitriy Ivanov2015-05-131-0/+6
|\ \ \ \
| * | | | Switch libGLESv1_CM/libGLESv2 to hash-style=bothDmitriy Ivanov2015-05-131-0/+6
| | |_|/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Old version of unity uses custom linker to link itself and libmono. The custom linker does not support lookups with gnu-hash style. Switching libraries needed by libunity.so to --hash-style=both fixes this problem. Bug: http://b/20093774 Change-Id: I2a4887cf7a5ee80a8976ecaad54b52dc62518e55
* | | | Merge "Replace JNI primitive array critical calls with non-critical ones." ↵Hiroshi Yamauchi2015-05-1315-161/+395
|\ \ \ \ | |/ / / |/| | | | | | | into mnc-dev
| * | | Replace JNI primitive array critical calls with non-critical ones.Hiroshi Yamauchi2015-05-1215-161/+395
| | | | | | | | | | | | | | | | | | | | | | | | | | | | The glgen part. Bug: 19235243 Change-Id: I69dfa84f15366808b964517c1ba270ddeb3c5940
* | | | Merge "Use previous pressure value if the current fusion data is zero." into ↵Michael Wright2015-05-132-8/+14
|\ \ \ \ | | |/ / | |/| | | | | | mnc-dev
| * | | Use previous pressure value if the current fusion data is zero.Michael Wright2015-05-122-8/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Occasionally we'll receive the stylus up signal (pressure = 0) before we receive the touch screen up signal. Rather than giving pointer a pressure value of 0 (which is one of the signals of hovering) or falling back to the touchscreen pressure values (which would make for an inconsistent stream), use the previous pressure value which should always be non-zero for a stream of fused data. Bug: 20449776 Change-Id: I71eb97e7c4ea53e42b0eb54fc1f8ae7f89aad9d1
* | | | Merge "Synthesize events for pressure and button changes." into mnc-devMichael Wright2015-05-132-20/+41
|\ \ \ \ | |/ / /
| * | | Synthesize events for pressure and button changes.Michael Wright2015-05-122-20/+41
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Even when there isn't movement on the touchscreen we should produce events for pressure and button state changes generated by external stylii. Change-Id: I9fd7ba85902d5d6bfb28d5e5ff5d8f340a94c2bf
* | | | Merge "Fix PTS handling for buffer replacement" into mnc-devDan Stoza2015-05-1314-99/+98
|\ \ \ \
| * | | | Fix PTS handling for buffer replacementDan Stoza2015-05-1214-99/+98
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This changes the way that SurfaceFlinger's shadow buffer management works such that instead of tracking the size of the shadow queue in the BufferQueue, SF tracks the last frame number it has seen, and passes that into the acquireBuffer call. BufferQueueConsumer then ensures that it never returns a buffer newer than that frame number, even if that means that it must return PRESENT_LATER for an otherwise valid buffer. Change-Id: I3fcb45f683ed660c3f18a8b85ae1f8a962ba6f0e
* | | | | Merge "Verify that the native handle was created" into mnc-devAdam Lesinski2015-05-131-0/+4
|\ \ \ \ \
| * | | | | Verify that the native handle was createdAdam Lesinski2015-05-121-0/+4
| | |_|_|/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The inputs to native_handle_create can cause an overflowed allocation, so check the return value of native_handle_create before accessing the memory it returns. Bug:19334482 Change-Id: I1f489382776c2a1390793a79dc27ea17baa9b2a2
* | | | | Merge "libgui: Always allow allocation on connect" into mnc-devDan Stoza2015-05-121-0/+1
|\ \ \ \ \ | |_|_|_|/ |/| | | |
| * | | | libgui: Always allow allocation on connectDan Stoza2015-05-121-0/+1
| | |/ / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This change places BufferQueue into a predictable state where allocation is allowed whenever a producer connects. This allows clients to disconnect and reconnect without having to worry about being locked out of allocation. Bug: 20554276 Change-Id: Ic0f920a3d4204f2cafdfa69e46f3bb4204571d7e
* | | | Merge "Improve logging in SensorService dump output." into mnc-devAravind Akella2015-05-123-139/+279
|\ \ \ \ | |/ / / |/| | |
| * | | Improve logging in SensorService dump output.Aravind Akella2015-05-123-139/+279
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Maintain a per sensor circular buffer of last 10 sensor_events and the wall clock time at which each event is received. Change-Id: Ia50c825ab5a7aaf0932ce7dce7ac8b9be7071e77
* | | | Merge "libEGL: whitelist the EGL_KHR_create_context_no_error extension" into ↵Jesse Hall2015-05-122-0/+6
|\ \ \ \ | | | | | | | | | | | | | | | mnc-dev
| * | | | libEGL: whitelist the EGL_KHR_create_context_no_error extensionJesse Hall2015-05-122-0/+6
| | |/ / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Allow EGL implementations to expose the EGL_KHR_create_context_no_error extension if they wish. https://www.khronos.org/registry/egl/extensions/KHR/EGL_KHR_create_context_no_error.txt Change-Id: I3290ccc2a69a1fa0b00ec3f1aa4f876906c64bfb
* | | | libgui: Hook up onFrameReplacedDan Stoza2015-05-115-22/+42
|/ / / | | | | | | | | | | | | | | | | | | This completes the plumbing from ConsumerListener::onFrameReplaced into SurfaceFlinger (and other consumers that may care). Change-Id: I376e78ace95d6748e8662e6b4d47c0dfa697a300
* | | Merge "Fix the arguments to memcpy." into mnc-devAravind Akella2015-05-091-1/+1
|\ \ \
| * | | Fix the arguments to memcpy.Aravind Akella2015-05-081-1/+1
| |/ / | | | | | | | | | Change-Id: Ieaee26f46f43a9d412537047566178985370198b
* | | Merge "SF: Apply pending transactions to new sidebands" into mnc-devDan Stoza2015-05-081-0/+4
|\ \ \
| * | | SF: Apply pending transactions to new sidebandsDan Stoza2015-05-051-0/+4
| | |/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | When a Layer's sideband stream is set, apply any pending transactions. Otherwise they would never be applied since sideband streams don't trigger updates by pushing new buffers. Bug: 20125898 Change-Id: I0c7a91cdf84e6205801f4ab64eee0b09e4c0b3e0 (cherry picked from commit 3b04e1383eca6cb1d43ebe23a421c427007690c7)
* | | Merge "surfaceflinger: Fix range check for getFormat" into mnc-devPat Tjin2015-05-071-1/+1
|\ \ \
| * | | surfaceflinger: Fix range check for getFormatAjay Dudani2015-05-071-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix potential buffer overflow error in getFormat with indices greater than MAX_HWC_DISPLAYS. Change-Id: I5e5b69d8d043e900f5e33ca9a62e94ae5f857b68
* | | | Fix broken NDK sensor manager API.Svet Ganov2015-05-072-0/+81
|/ / / | | | | | | | | | Change-Id: I21bb8b0dcfd3f1c812753a9fd77dea792e7155f2
* | | Added Voltage and Current regulator ftrace events to atraceAaron Schulman2015-05-071-0/+3
|/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Cherry-pick of c2c6ecd1195481f5813a721a7d20a73c0795c135 from AOSP Tracing the state of the voltage and current regulators enables a developer to attribute power consumption measurements to specific perhipherals and cores. Unlike other indirect methods of tracing when peripherals and cores are toggled, the regulator ftrace event indicates the exact point in time when the kernel switches on or off the device. For example, in the following trace, a developer can see exactly when the krait2 core starts receiving power, and and when the voltage is set for voltage scaling. mpdecision-2172 [000] ...1 1566.665481: regulator_enable: name=krait2 mpdecision-2172 [000] ...1 1566.665493: regulator_enable_delay: name=krait2 mpdecision-2172 [000] ...1 1566.665495: regulator_enable_complete: name=krait2 <...>-4133 [002] ...1 1566.666891: regulator_set_voltage: name=krait2 (1075000-1100000) Change-Id: Ia322206ef74496daf1d9baa03545d8e89e398487 Signed-off-by: Aaron Schulman <aschulman@google.com>
* | Merge "libgui: Clear frame number while freeing slot" into mnc-devDan Stoza2015-05-042-1/+4
|\ \
| * | libgui: Clear frame number while freeing slotDan Stoza2015-05-012-1/+4
| | | | | | | | | | | | | | | | | | | | | | | | Clears the frame number of a slot when it is freed, since it is used to determine if a released buffer is stale. Bug: 20445852 Change-Id: I02415e7b25a1eafe7414d6eb1cedf62ac5543cd9
* | | SensorServiceTest: Fix build, warnings.Sasha Levitskiy2015-05-021-4/+5
| | | | | | | | | | | | | | | Change-Id: I3ed5247d3eb6c43d185049cf9011c2ee01b5662e Signed-off-by: Sasha Levitskiy <sanek@google.com>
* | | Merge "Add body sensors app op - framework native" into mnc-devSvetoslav2015-05-0118-78/+195
|\ \ \
| * | | Add body sensors app op - framework nativeSvetoslav2015-05-0118-78/+195
| | | | | | | | | | | | | | | | Change-Id: I727a2bb1e28ae9158f2df9c74dd0aee977dfd47f
* | | | dumpstate: report per-partition MMC performanceMark Salyzyn2015-05-013-1/+141
| | | | | | | | | | | | | | | | | | | | | | | | (Cherry pick from commit 540e3de99fa1baa5eaf3eb3d49f4e98fd9f5bd91) Change-Id: If5cabe186d8377056effa1c0672a90e277cd7221
* | | | Merge "SurfaceFlinger: Fix PTS on stale buffers" into mnc-devDan Stoza2015-05-019-4/+100
|\ \ \ \ | |/ / / |/| | |
| * | | SurfaceFlinger: Fix PTS on stale buffersDan Stoza2015-05-019-4/+100
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | SurfaceFlinger's (Layer's) shadow copy of the BufferQueue queue was getting out of sync for a few reasons. This change fixes these by doing the following: - Adds a check to re-synchronize the shadow copy every time we successfully acquire a buffer by first dropping stale buffers before removing the current buffer. - Avoids trying to perform updates for buffers which have been rejected (for incorrect dimensions) by SurfaceFlinger. - Adds IGraphicBufferConsumer::setShadowQueueSize, which allows the consumer to notify the BufferQueue that it is maintaining a shadow copy of the queue and prevents it from dropping so many buffers during acquireBuffer that it ends up returning a buffer for which the consumer has not yet received an onFrameAvailable call. Bug: 20096136 Change-Id: I78d0738428005fc19b3be85cc8f1db498043612f (cherry picked from commit 2e36f2283f48ab764b496490c73a132acf21df3a)
* | | Merge "Offer to move both code and data together." into mnc-devJeff Sharkey2015-05-015-98/+201
|\ \ \ | |/ / |/| |
| * | Offer to move both code and data together.Jeff Sharkey2015-04-305-98/+201
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We now move code under /data/app/com.example when a complete move is requested. This really only works for new cluster-style installs that also have native libraries and OAT contained inside. Teach measuring code about cluster-style installs when measuring app footprint. Also offer to measure private data space for all users. Bug: 19993667, 20275578 Change-Id: I6df7b947cb5cc8a4552f56f4b64a661e8512389f
* | | Merge "SurfaceFlinger: Limit to 4k Layers" into mnc-devDan Stoza2015-04-302-9/+24
|\ \ \
| * | | SurfaceFlinger: Limit to 4k LayersDan Stoza2015-04-302-9/+24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Sets a limit of 4k Layers which SurfaceFlinger will allow to be in existence at any given time. An attempt to create Layers in excess of this limit will fail with NO_MEMORY. Bug: 20674586 Change-Id: I2dfaf59643d826f982b2fa44e8a9ed643176d972 (cherry picked from commit e7f8dde3f3c398c1ea1bec14e76725a760f71d31)
* | | | Merge "SurfaceFlinger: Fix integer overflow in Mesh ctor" into mnc-devDan Stoza2015-04-301-2/+28
|\ \ \ \
| * | | | SurfaceFlinger: Fix integer overflow in Mesh ctorDan Stoza2015-04-301-2/+28
| |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Performs range checking on the inputs to Mesh::Mesh() before allocating the storage array. Bug: 20674682 Change-Id: I4fc918a8c312d967dd6d9f91a098b2e0a7081027 (cherry picked from commit ab79e33ef3a21a2b14bf15bc4c85aef247b4ad95)
* | | | Close Fence FDs in error cases of Surface and GraphicBufferMapperTaiju Tsuiki2015-04-302-0/+9
|/ / / | | | | | | | | | | | | | | | | | | | | | Surface::{cancel,queue}Buffer and GraphicBufferMapper::lockAsyncYCbCr take the ownership of |fenceFd|s. Though they don't close it on error cases. Change-Id: I49a7ce8837d5c510c4ac4ad4649f310d18610e80 (cherry picked from commit c7263fb43297744eb04b11025424c0c526d5584c)
* | | Avoid closing invalid FD in Surface and GraphicBufferMapperTaiju Tsuiki2015-04-301-4/+8
|/ / | | | | | | | | | | | | | | GraphicBufferMapper::lockAsync{,YCbCr} close the fence FD even when the FD is invalid. Change-Id: Ia2b4dae3b2c06426e34f623f19ba92435f486ab7 (cherry picked from commit dcfe91e1f3f15b68793a69650f9bd0ca6a58ff4c)