summaryrefslogtreecommitdiffstats
path: root/services
Commit message (Collapse)AuthorAgeFilesLines
* Add new MotionEvent flag for partially obscured windows.Michael Wright2016-04-214-3/+48
| | | | | | | | | | | | | | | | | | | Due to more complex window layouts resulting in lots of overlapping windows, the policy around FLAG_WINDOW_IS_OBSCURED has changed to only be set when the point at which the window was touched is obscured. Unfortunately, this doesn't prevent tapjacking attacks that overlay the dialog's text, making a potentially dangerous operation seem innocuous. To avoid this on particularly sensitive dialogs, introduce a new flag that really does tell you when your window is being even partially overlapped. We aren't exposing this as API since we plan on making the original flag more robust. This is really a workaround for system dialogs since we generally know their layout and screen position, and that they're unlikely to be overlapped by other applications. Bug: 26677796 Change-Id: I9e336afe90f262ba22015876769a9c510048fd47
* Avoiding flush on-change sensors at subscriptionPeng Xu2015-10-271-4/+9
| | | | | | | | | | | | | | | | | | Initial sensor flush at subscription is a mechanism to avoid sensors to get stale samples before subscription happens. However, there is a slight chance that a most recent sample will be lost during the flush process. This is OK for continuous sensors but problematic in on-change sensor as on-change event does not come continuously and a lost event can cause inconsistent state in client. Flush at subscription of on-change sensor is disabled in this CL to avoid new important on-change event to be discarded during the initial flush process. Bugs: b/24647069 b/25241873 b/24804819 Change-Id: Ibda099c6b9f5fb6e200f13cf13a850b0026e9e7c
* Inputflinger: hook up key event replacement processingDmitry Torokhov2015-09-295-27/+58
| | | | | | | | | | | | | | | Add handling of "replacement" key events in InputReader and EventHub by consulting device's character key map (if exists) for presence of replacement key code for given get code and meta state combination, before passing it to InputDispatcher. This enables defining special keys, such as ESC, on keyboards lacking enough physical keys, via combination of normal keys and modifiers, for example AltR + 1 => ESC. Bug: 24504154 Change-Id: I7e36104808bedcf724436c1fbb63d37c35cca8af
* DO NOT MERGE Cancel touches as well as pointer gestures.Michael Wright2015-09-222-5/+33
| | | | | Bug: 24302031 Change-Id: Idbe964a1a35c190a32f845e2a19542d54652d011
* DO NOT MERGE Revert "am f37143d8: Merge "Cancel touches as well as pointer ↵Michael Wright2015-09-224-191/+19
| | | | | | | | | | | gestures." into mnc-dev" This reverts commit 9b70ab7a3cb260205e81e40ba181a86710d2eb95, reversing changes made to 153008efb5a00ed3c18d588ce15f90d2442a9786. Bug: 24302031 Change-Id: Ia746381b30be3b54cb646ed412b7271962c4b02a
* SF: Add colorTransform to DisplayInfoDan Stoza2015-08-313-3/+26
| | | | | | | | | Adds the colorTransform field, which defines a vendor-specific color transform (e.g., wide gamut, sRGB, etc.) to the DisplayInfo class, and populates it from the HWC interface. Bug: 20853317 Change-Id: I153edc36a361407656f3eb5082b96c2da2ecbec7
* Merge "SF: Track missed frames and optionally drop them" into mnc-dr-devDan Stoza2015-08-052-6/+29
|\
| * SF: Track missed frames and optionally drop themDan Stoza2015-07-232-6/+29
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Adds code to track whether SurfaceFlinger has sent two frames to HWC in the same vsync window. This can occur if one frame is delayed so far it slips into the next window or just if one frame takes an abnormal amount of time. If this occurs, it shows up as FrameMissed in systrace. Also adds a property debug.sf.drop_missed_frames which, if set, tells SurfaceFlinger to skip sending a frame to HWC (i.e., calling prepare/set) when we detect this condition, which can help prevent backpressure from the HWC implementation. Bug: 22513558 Change-Id: I2df0d44cec5fd6edba419388d8c90b5710d1a5b6
* | am d87defaf: SF: Allow present if sideband stream changedDan Stoza2015-07-311-0/+4
|\ \ | |/ |/| | | | | * commit 'd87defaf486ff4e9c0066754564851cfb7be49ed': SF: Allow present if sideband stream changed
| * SF: Allow present if sideband stream changedDan Stoza2015-07-291-0/+4
| | | | | | | | | | | | | | | | Allows the sideband layer to be passed all the way to HWC instead of getting blocked by the updated PTS tracking code. Bug: 22291067 Change-Id: Ic2f20a7528e276fff054e86ca35789c26873b348
* | am 99426810: Merge "Check for the presence of accel and magnetometer sensors ↵Chenjie Luo2015-07-221-2/+8
|\ \ | |/ | | | | | | | | | | before adding AOSP fusion sensors." into mnc-dev * commit '99426810e4828719be84a0f8c186161578512e93': Check for the presence of accel and magnetometer sensors before adding AOSP fusion sensors.
| * Check for the presence of accel and magnetometer sensors before adding AOSP ↵Aravind Akella2015-07-201-2/+8
| | | | | | | | | | | | | | fusion sensors. Bug: 22502485 Change-Id: I3d9018649302b98004e4e216b2173e8411a08501
| * Merge "Cancel touches as well as pointer gestures." into mnc-devMichael Wright2015-07-142-5/+33
| |\
| | * Cancel touches as well as pointer gestures.Michael Wright2015-07-132-5/+33
| | | | | | | | | | | | | | | Bug: 19264992 Change-Id: If48e0953b972c9d69f516906adf7c6faf67e3eb8
* | | Merge "Show charging speed on Keyguard" into mnc-dr-devAdrian Roos2015-07-141-0/+2
|\ \ \
| * | | Show charging speed on KeyguardAdrian Roos2015-07-101-0/+2
| | | | | | | | | | | | | | | | | | | | Bug: 8099739 Change-Id: I2e5c21dd7ec028ce47fb03ab71e74f7fccaa9e36
* | | | am 4904821b: Merge "Rename wakelock held internally by SensorService." into ↵Aravind Akella2015-07-131-2/+2
|\ \ \ \ | |/ / / |/| / / | |/ / | | | | | | | | | mnc-dev * commit '4904821b212a3ee91f22a51295f86f6339cbcc8d': Rename wakelock held internally by SensorService.
| * | Rename wakelock held internally by SensorService.Aravind Akella2015-07-101-2/+2
| |/ | | | | | | | | Bug: 22076400 Change-Id: I62129549b0681f200f40da01f53140245309ed88
* | Merge "Cancel touches as well as pointer gestures." into mnc-devMichael Wright2015-07-095-31/+203
|\ \ | |/ |/|
| * Cancel touches as well as pointer gestures.Michael Wright2015-07-092-5/+33
| | | | | | | | | | Bug: 19264992 Change-Id: Idbe964a1a35c190a32f845e2a19542d54652d011
| * am 6a25a287: am 806334aa: am 1998615f: Merge "sf: Initialize EventThread ↵Dan Stoza2015-06-301-9/+9
| |\ | | | | | | | | | | | | | | | | | | before creating HWC" * commit '6a25a2872852f23058268adcec61600460fcdfb6': sf: Initialize EventThread before creating HWC
| | * am 806334aa: am 1998615f: Merge "sf: Initialize EventThread before creating HWC"Dan Stoza2015-06-301-9/+9
| | |\ | | | | | | | | | | | | | | | | * commit '806334aacd089d1c419ed77021a2b1bb4f7644ef': sf: Initialize EventThread before creating HWC
| | | * sf: Initialize EventThread before creating HWCSaurabh Shah2015-06-171-9/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Once HWC is created, it could use any of the provided hooks, which could lead to a crash if the EventThread (handler) isn't initialized prior to creating HWC. Change-Id: I5ea35fe9bcb150fb74aae1295b798bd787ad6cee
| | | * sf: Fix incorrect state reporting in dumpsysManoj Kumar AVM2015-06-112-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Dumpsys utility accesses layer compositionType variable with out proper protection. These variables are modified during hwc_prepare call. Existing HAL lock protection is not sufficient to address this issue. Failure to do this will result in incorrect state reporting in dumpsys. A new displayLock mutex in HWComposer will be used in both dumpsys and draw calls to ensure correct state is accessed. Change-Id: I8a57de59525adc0e089b3bed95c067c01e42b666
| | | * sf: Add a NULL check in getDisplayConfigsTatenda Chipeperekwa2015-06-111-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Validate the display binder by adding a NULL check in getDisplayConfigs. This will prevent a false match if the caller queries the display configs for an inactive display (whose binder is NULL by default). Without this change we might end up attempting to index the display config array, which is unpopulated for inactive displays, and this will result in a crash. (See getDisplayInfo in SurfaceComposerClient.cpp for an example of this scenario) Change-Id: Ib32a7dc8378d3438df0dba1ecd608bbcfc837717
| | | * SF: Swap w/h when capturing rotated screenshotsDan Stoza2015-06-101-2/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Swaps width and height when capturing a screenshot that is rotated by 90 or 270 degrees. Bug: 8433742 Change-Id: Ibf0b604f541e3cc271e56fe0ad04dc366beb5d79 (cherry picked from commit 3502416204d9dbd905012ee586d8bd145323809f)
| | | * SF: Don't crop surface damage against viewportDan Stoza2015-06-091-3/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Apply the display transform to surface damage, but don't intersect it with the viewport. Bug: 21486007 Change-Id: I94e697cea52096a960385d5f3b89609fdcf30a02 (cherry picked from commit 17833a1b0d70cd5cea342cadea9fdbbf16748bc6)
| | | * libgui/SurfaceFlinger: Add getConsumerNameDan Stoza2015-06-094-0/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Adds a getConsumerName method to IGraphicBufferProducer and Surface. Currently, the name is cached inside of IGBP and is update on connect and dequeueBuffer, which should be good enough for most uses. Bug: 6667401 Change-Id: I22c7881d778e495cf8276de7bbcd769e52429915 (cherry picked from commit c6f30bdee1f634eb90d68cb76efe935b6535a1e8)
| | | * libgui: Add generation numbers to BufferQueueDan Stoza2015-06-084-0/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This change allows producers to set a generation number on a BufferQueue. This number will be embedded in any new GraphicBuffers created in that BufferQueue, and attempts to attach buffers which have a different generation number will fail. It also plumbs the setGenerationNumber method through Surface, with the additional effect that any buffers attached to the Surface after setting a new generation number will automatically be updated with the new number (as opposed to failing, as would happen on through IGBP). Bug: 20923096 Change-Id: I32bf726b035f99c3e5834beaf76afb9f01adcbc2 (cherry picked from commit 812ed0644f8f8f71ca403f4e5793f0dbc1fcf9b2)
| * | | am fd0fdaf7: am 3643c88f: Merge "Send cancelation events to monitors when ↵Michael Wright2015-06-292-1/+16
| |\ \ \ | | |/ / | | | | | | | | | | | | | | | | | | | | injection fails." into mnc-dev * commit 'fd0fdaf73b1e8fbf643152f532f500be70f11a26': Send cancelation events to monitors when injection fails.
| | * | am 3643c88f: Merge "Send cancelation events to monitors when injection ↵Michael Wright2015-06-292-1/+16
| | |\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | fails." into mnc-dev * commit '3643c88f7b557e241d65c4857eaf49e28e7c03a2': Send cancelation events to monitors when injection fails.
| * | \ \ am 488986f4: am f413de05: Merge "libgui: Fix handling of rotated surface ↵Dan Stoza2015-06-261-8/+1
| |\ \ \ \ | | |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | damage" into mnc-dev * commit '488986f4ad7a92b04fdfd761ae07785019d2a9d3': libgui: Fix handling of rotated surface damage
| | * | | am f413de05: Merge "libgui: Fix handling of rotated surface damage" into mnc-devDan Stoza2015-06-261-8/+1
| | |\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | * commit 'f413de05cfb9a1b84b73c8e6c306d4142130c5f7': libgui: Fix handling of rotated surface damage
| * | \ \ \ am e6045537: am 7a1b5d5d: Merge "Fix crash in SensorService. Ignore devices ↵Aravind Akella2015-06-241-0/+2
| |\ \ \ \ \ | | |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | with no sensors." into mnc-dev * commit 'e6045537bbce4c4f98e6a1149187bbcdaff57bcd': Fix crash in SensorService. Ignore devices with no sensors.
| | * | | | am 7a1b5d5d: Merge "Fix crash in SensorService. Ignore devices with no ↵Aravind Akella2015-06-241-0/+2
| | |\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | sensors." into mnc-dev * commit '7a1b5d5dec10f05ec29e7251ada440b47a34c6aa': Fix crash in SensorService. Ignore devices with no sensors.
| * | \ \ \ \ am c8c0992a: am 0638a4fa: Merge "libgui/SF: Propagate SECURE Layer flag ↵Dan Stoza2015-06-233-7/+10
| |\ \ \ \ \ \ | | |/ / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | changes" into mnc-dev * commit 'c8c0992ace7733c983e87e8e7154d844a54e5741': libgui/SF: Propagate SECURE Layer flag changes
| | * | | | | am 0638a4fa: Merge "libgui/SF: Propagate SECURE Layer flag changes" into mnc-devDan Stoza2015-06-233-7/+10
| | |\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '0638a4fac7250e260c0102c770090cb7eefca936': libgui/SF: Propagate SECURE Layer flag changes
| * | \ \ \ \ \ am 7d3ad695: Merge commit \'71997c1a\' into manualmergeMichael Wright2015-06-231-1/+4
| |\ \ \ \ \ \ \ | | |/ / / / / / | | | | | | | | | | | | | | | | | | | | | | | | * commit '7d3ad695304a1f24026227e630add6edd76fd0d6': Add new AINPUT_SOURCE_BLUETOOTH_STYLUS
| | * | | | | | Merge commit '71997c1a' into manualmergeMichael Wright2015-06-231-1/+4
| | |\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: Ia68fbd20ce66571dfd33764e52c3a00e2285e648
| * | \ \ \ \ \ \ am 357e7d7d: am 94188464: Merge "More information in sensor bugreports." ↵Aravind Akella2015-06-223-34/+136
| |\ \ \ \ \ \ \ \ | | |/ / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | into mnc-dev * commit '357e7d7dcdd579d979054daf0a28b0a348d7ee7a': More information in sensor bugreports.
| | * | | | | | | am 94188464: Merge "More information in sensor bugreports." into mnc-devAravind Akella2015-06-223-34/+136
| | |\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '9418846431f494b53a5e9c617aed27693079c163': More information in sensor bugreports.
| * | \ \ \ \ \ \ \ am 407f48c8: am e04e4edc: sf: Fix incorrect state reporting in dumpsysManoj Kumar AVM2015-06-122-0/+4
| |\ \ \ \ \ \ \ \ \ | | |/ / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '407f48c825351e7b5cbf455a85aff2154c696fdd': sf: Fix incorrect state reporting in dumpsys
| | * | | | | | | | am e04e4edc: sf: Fix incorrect state reporting in dumpsysManoj Kumar AVM2015-06-122-0/+4
| | |\ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit 'e04e4edcd1a852058775caa34cf73e2c20dc1066': sf: Fix incorrect state reporting in dumpsys
| * | \ \ \ \ \ \ \ \ am c1d4662f: am 23e16bb5: sf: Add a NULL check in getDisplayConfigsTatenda Chipeperekwa2015-06-111-1/+1
| |\ \ \ \ \ \ \ \ \ \ | | |/ / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit 'c1d4662f0e596021e0d8360cd1c5d213c3c8c4ba': sf: Add a NULL check in getDisplayConfigs
| | * | | | | | | | | am 23e16bb5: sf: Add a NULL check in getDisplayConfigsTatenda Chipeperekwa2015-06-111-1/+1
| | |\ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '23e16bb5dae277cd20a739ca56553ae931c43ccf': sf: Add a NULL check in getDisplayConfigs
| * | \ \ \ \ \ \ \ \ \ am ce5af4b2: am 52720f45: Merge "Use LOCATION_HARDWARE permission for data ↵Aravind Akella2015-06-111-1/+1
| |\ \ \ \ \ \ \ \ \ \ \ | | |/ / / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | injection." into mnc-dev * commit 'ce5af4b234ed6f5d6c39d47426d4e961bf3c2858': Use LOCATION_HARDWARE permission for data injection.
| | * | | | | | | | | | am 52720f45: Merge "Use LOCATION_HARDWARE permission for data injection." ↵Aravind Akella2015-06-111-1/+1
| | |\ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | into mnc-dev * commit '52720f45098e9aed57c906e64a13e4a4a2173ce8': Use LOCATION_HARDWARE permission for data injection.
| * | \ \ \ \ \ \ \ \ \ \ am 355950c1: am d177e044: Merge "SF: Swap w/h when capturing rotated ↵Dan Stoza2015-06-101-2/+6
| |\ \ \ \ \ \ \ \ \ \ \ \ | | |/ / / / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | screenshots" into mnc-dev * commit '355950c1fc19c35c75203ea761882168f0980181': SF: Swap w/h when capturing rotated screenshots
| | * | | | | | | | | | | am d177e044: Merge "SF: Swap w/h when capturing rotated screenshots" into ↵Dan Stoza2015-06-101-2/+6
| | |\ \ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | mnc-dev * commit 'd177e044d129bbecc3900a7fcd442b354de768df': SF: Swap w/h when capturing rotated screenshots
| * | \ \ \ \ \ \ \ \ \ \ \ am f8b34319: am 043bd36b: Merge "Only log dropped input when disabled for ↵Michael Wright2015-06-102-2/+8
| |\ \ \ \ \ \ \ \ \ \ \ \ \ | | |/ / / / / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | the first event." into mnc-dev * commit 'f8b34319a4c1ccce63b5a8e4732f162d228085cb': Only log dropped input when disabled for the first event.