• R/O
  • HTTP
  • SSH
  • HTTPS

List of commits

Tags
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

frameworks/base


RSS
Rev. Time Author
1896b7e cm-14.1-x86 2018-01-22 13:17:33 Chih-Wei Huang

input: simulate long press properly

The original implementation of long press sends two ACTION_DOWN events
which would be interpreted as a double tap. For example, sending
a long press POWER key will launch the camera:

11-21 16:27:37.320 2223 2223 I Input : injectKeyEvent: KeyEvent { action=ACTION_DOWN, keyCode=KEYCODE_POWER, scanCode=0, metaState=0, flags=0x0, repeatCount=0, eventTime=39641, downTime=39641, deviceId=-1, source=0x101 }
11-21 16:27:37.321 2223 2223 I Input : injectKeyEvent: KeyEvent { action=ACTION_DOWN, keyCode=KEYCODE_POWER, scanCode=0, metaState=0, flags=0x80, repeatCount=1, eventTime=39641, downTime=39641, deviceId=-1, source=0x101 }
11-21 16:27:37.322 1411 1565 I GestureLauncherService: Power button double tap gesture detected, launching camera. Interval=0ms
11-21 16:27:37.322 2223 2223 I Input : injectKeyEvent: KeyEvent { action=ACTION_UP, keyCode=KEYCODE_POWER, scanCode=0, metaState=0, flags=0x0, repeatCount=0, eventTime=39641, downTime=39641, deviceId=-1, source=0x101 }

This is unexpected and incorrect.

Just simulate the long press by delaying ACTION_UP one second.

0b3e42a 2018-01-22 13:17:31 Chih-Wei Huang

Add a shebang to the script

Without the shebang the init can't exec it.

4b83d26 2018-01-22 13:17:29 Chih-Wei Huang

Revert "Fix black background for android-x86"

This is unnecessary now since SwiftShader doesn't have the black
background issue.

This reverts commit da9a2891f8b2f6bb01d60f0811644b965bbff4d5.

373957a 2018-01-22 13:11:23 Chih-Wei Huang

Merge remote-tracking branch 'lineage/cm-14.1' into cm-14.1-x86

3b1e7fb 2018-01-22 05:39:00 meganukebmp

SystemUI: Fix crash when taking screenshot in partial screenshot view

Bug caused by the region selector and the animation using the same view.
This fix makes a dedicated view for the selector.

Change-Id: I12532ece4b3a742cba8f5c3852813fa339a04341

1f240e8 2018-01-22 05:03:35 Michael Bestas

GlobalActions: Misc power menu cleanup

* Update drawable size to match AOSP icons
* Update airplane mode drawables
* Remove unused changes to modes we don't use
* Remove dead code
* Cleanup based on lineage-15.1 bringup comments

Change-Id: I59b7246857acd34d18baaedc286a66820560fa49

8344a15 2018-01-22 05:03:35 Italian Quadcore

GlobalActions: Fix setting ringer mode in global actions

* It looks like we missed some fixes while forward porting
this feature from cm-13.0. Squash the following commits:

Author: Italian Quadcore <myawfulchat@gmail.com>
Date: Tue Jun 9 10:48:25 2015 +0200

Add Sound Panel to Power Menu (Part 1/2)

Change-Id: I5a638b1817b3de82d891935e0071c6e42856c59e

Author: d34d <clark@cyngn.com>
Date: Mon Feb 1 14:19:01 2016 -0800

GlobalActions: Fix setting ringer mode in global actions

It looks like we did not bring in this full feature for cm-13.0.
This patch updates SilentModeTriStateAction to match cm-12.1 with
one minor change. We can no longer set the zen mode by writing to
Global settings directly. The ZenModeHelper class actually checks
when a change is made and resets it. The fix is to use
INotificationManager.setZenMode() instead.

Change-Id: Ib2423a19da3a2ca95f73cb92247e0a38bff8bbee
TICKET: CYNGNOS-1808

Author: Dave Kover <kover@cyngn.com>
Date: Tue Mar 1 13:37:57 2016 -0800

Fix GlobalActions sound panel iconography.

The priority and none icons were using old zen icons and did not
match up with the status bar iconography. We are now in sync. Also
aligning the prefix to match the other icons present in this dialog.
Lastly, creating new drawables for the two sound options so that
we don't clash designs with the Settings view, which also used the
same icons.

Change-Id: I0a0cee6c7f0f7b014a0b2cdd95b7f7e5cb8e5f38
Ticket: CYNGNOS-2172

Author: d34d <clark@cyngn.com>
Date: Tue Apr 12 10:13:22 2016 -0700

GlobalActions: Always use setZenMode

When set to silent mode, the user cannot change the ringer mode to
vibrate or ring. Notification manager listens for changes to the
zen mode setting and will switch it back if there is a mismatch.
Using INotificationManager.setZenMode takes care of changing the mode
and keeping track of the updated change.

Change-Id: I5139a9a8cde4ca59f64bd21cf7c184d4745a7d59
TICKET: CYNGNOS-2417 BACON-4658

Change-Id: I5a638b1817b3de82d891935e0071c6e42856c59e

b83b533 2018-01-22 05:03:35 Tom Marshall

fw: GlobalActions: Always dismiss any existing dialog

The check for "mUiContext == null" is always false after the initial
dialog is created, causing the dismiss logic to never trigger. All
code uses getUiContext() now, so the check is not necessary. Remove
it and re-align the create/dismiss logic with AOSP.

Jira: BACON-4069

Change-Id: Ibba7b38a5fdc8410824db6d0a6f726f4a2822c9d

b0ac125 2018-01-22 05:03:35 longyu.huang

The DUT can't screen shot in guest mode

Change-Id: I6c40f8b5399ed1a8f9d52ddf0ed28266eea8f48c

f3b6cc7 2018-01-19 04:29:04 Gabriele M

Keyguard: Don't apply input restriction if disabled by profile

setKeyguardEnabled() applies some input restrictions when disabling
the lockscreen. This causes issues when a system profile disables the
lockscreen via this method, e.g. the home button stops working until
a profile re-enables the lockscreen with setKeyguardEnabled(). If the
current profile is disabling keyguard, don't restrict the inputs.

BUGBASH-504

Change-Id: Iaaaabecaf19a18911d276a47f826dec3dec045c1

9678ef8 2018-01-17 11:52:42 Paul Keith

PhoneWindowManager: Make sure KeyDisabler is always called on boot

* Otherwise, some KeyDisabler classes are left in a weird state
* Because we don't keep track of whether an initial state was ever set,
we never call KeyDisabler on boot if the setting is set to 0
* To remedy this, keep track of whether an initial state was set

Change-Id: Ib432ed3278dd8f4f4cba3ba488879b3c1cd9c8f4

ad38167 2018-01-16 23:24:54 Beverly

DO NOT MERGE Backporting potential usb tapjacking precaution.

Bug: 62187985
Test: manual, backport
Change-Id: Iaceff6bb1da5fbf3d80a8e85923199bd8cab06bd
MERGED-IN: I3bdcd1876cd6dbe8a728bbce74edb52ab79f3e4c
MERGED-IN: Ic58ddd6d54e96f522445e67b90760dcfed13c27d

5a280fb 2018-01-16 23:24:54 Chong Zhang

mtp: fix double free of thumbnail data

bug: 67864232
Change-Id: I6eb51be839df12317273830521c70a4ed80f9496
(cherry picked from commit e6b98532ee03d0ac1ca93382699893172454a946)

e4c0c23 2018-01-16 23:24:54 Leon Scroggins III

Throw OOME if Bitmap.nativeCreate fails

Bug:33846679
Test: I6ab6cb7a3b3151641a9f9b02b0bfc484e0a4524b

This matches the old behavior, prior to switching from Java allocated
pixel memory to native allocations (b/27762775). It also better matches
what has happened - we ran out of memory. (Better than the current
behavior - NullPointerException in the Java code, or an alternative
solution of returning null, which would likely result in NPEs in the
calling code.)

Merged-In: I3958ed1106ac94fb1d3f30e044b620d984875211
Change-Id: I3958ed1106ac94fb1d3f30e044b620d984875211
(cherry picked from commit 5906a4869cdf5c39eba1d9a3125aff894c5e804d)

51e18df 2018-01-16 23:24:54 Adam Vartanian

Adjust Uri host parsing to use last instead of first @.

Malformed authority segments can currently cause the parser to produce
a hostname that doesn't match the hostname produced by the WHATWG URL
parsing algorithm* used by browsers, which means that a URL could be seen
as having a "safe" host when checked by an Android app but actually visit
a different host when passed to a browser. The WHATWG URL parsing
algorithm always produces a hostname based on the last @ in the authority
segment, so we do the same.

* https://url.spec.whatwg.org/#authority-state resets the "buffer", which
is being used to build up the host name, each time an @ is found, so it
has the effect of using the content between the final @ and the end
of the authority section as the hostname.

Bug: 68341964
Test: vogar android.net.UriTest (on NYC branch)
Test: cts -m CtsNetTestCases (on NYC branch)
Change-Id: Idca79f35a886de042c94d6ab66787c2e98ac8376
(cherry picked from commit cd6228dd377b2a0caa02a1e6df92f3d9ae702a95)

381f499 2018-01-15 07:38:44 Alexander

SysUI: Add Russian translation for accessibility_battery_level_charging

Change-Id: I6594d67c572c90e44b01335bf2a0785f47bc4ecf

1186786 2018-01-14 00:16:12 Michael W

Automatic translation import

Change-Id: I91439c40d8349ae2a50a2ec7c6d55d541097555a

9abeb4e nougat-x86 2018-01-04 17:31:43 Chih-Wei Huang

Android 7.1.2 Release 36 (N2G48H)
-----BEGIN PGP SIGNATURE-----

iF0EABECAB0WIQRDQNE1cO+UXoOBCWTorT+BmrEOeAUCWicTdgAKCRDorT+BmrEO
eLUtAJ9n+RoBwYF16+UZY760WJEQpoqxSACfQqcUNapFbI/RHsR2n6/3BXeNZGw=
=QXGL
-----END PGP SIGNATURE-----

Merge tag 'android-7.1.2_r36' into nougat-x86

Android 7.1.2 Release 36 (N2G48H)

7c34557 oreo-x86 2017-12-29 12:27:32 shitao.li

Handle mouse hover event in AbsListView

On Android 8.0 and 8.1 a change of ViewRootImpl exits touch mode on
mouse/stylus click. As a result, AbsListView will keep selection on
position 0, and will not action if click the list which can be seen
by scrolling to visible.

Add onHoverEvent to handle the mouse event and deal with selection.

Bug: https://issuetracker.google.com/issues/69774628
Test: Scroll a long listview to the end, check the last item is clickable.
Fixes: 7614cdf9 ("Exit touch mode on mouse/stylus click")
Tested-by: Chih-Wei Huang <cwhuang@linux.org.tw>
Change-Id: Ic6acc33779283342abc14d37a7d0514488a5cd1f

4df0991 2017-12-20 01:16:40 Miroslav Sustek

SystemUI: fix enabling burnIn protection

Enabling the setting did not work because the SYSTEMUI_BURNIN_PROTECTION
string had wrong prefix and was not registered as tunable.

Change-Id: I6a99a7616b2e980aa8d4dfd86ba82351508825b2

283159d 2017-12-17 21:25:08 Michael W

SystemUI: KeyGuardMonitor: Prevent ConcurrentModificationException

* Instead of accessing the original ArrayList, which might be modified
while processing the loop, create a copy of the list and work with that
one
* This ensures that no exception is thrown when some other part unregisters
its listener while the list is already being processed

BUGBASH-1289

Change-Id: Ie8404d88c7c87c4ec8fcd64fdd5218b25806f24f

612b847 2017-12-17 21:25:08 Michael W

SystemUI: Recents: Improve code for long app titles being overlapped

* Take all buttons into account when calculating the margin for title
* Don't check every combination of buttons but just add a margin for
each of them

Change-Id: I8e3da14ee00f0d16667866585cceef48ef1348c4

7bcc40e 2017-12-17 21:14:39 Unpublished

We don't want to feel deprecated...

use official api instead of deprecated internal method that prints an
error everytime we call it

Change-Id: Ie00efe5f514ff8db2b82eeade3a588a17af8cfb4

13e529d 2017-12-17 04:32:58 Abhisek Devkota

Automatic translation import

Change-Id: I434bebf88b227bc88bb7447596b8e1eab56943de

f119123 2017-12-12 14:54:47 Abhisek Devkota

Automatic translation import

Change-Id: I264296d5b20361666503fb6eaac02e5d79722c9c

3a2b846 2017-12-11 00:43:51 Chih-Wei Huang

input: simulate long press properly

The original implementation of long press sends two ACTION_DOWN events
which would be interpreted as a double tap. For example, sending
a long press POWER key will launch the camera:

11-21 16:27:37.320 2223 2223 I Input : injectKeyEvent: KeyEvent { action=ACTION_DOWN, keyCode=KEYCODE_POWER, scanCode=0, metaState=0, flags=0x0, repeatCount=0, eventTime=39641, downTime=39641, deviceId=-1, source=0x101 }
11-21 16:27:37.321 2223 2223 I Input : injectKeyEvent: KeyEvent { action=ACTION_DOWN, keyCode=KEYCODE_POWER, scanCode=0, metaState=0, flags=0x80, repeatCount=1, eventTime=39641, downTime=39641, deviceId=-1, source=0x101 }
11-21 16:27:37.322 1411 1565 I GestureLauncherService: Power button double tap gesture detected, launching camera. Interval=0ms
11-21 16:27:37.322 2223 2223 I Input : injectKeyEvent: KeyEvent { action=ACTION_UP, keyCode=KEYCODE_POWER, scanCode=0, metaState=0, flags=0x0, repeatCount=0, eventTime=39641, downTime=39641, deviceId=-1, source=0x101 }

This is unexpected and incorrect.

Just simulate the long press by delaying ACTION_UP one second.

1e6492f 2017-12-11 00:43:50 Chih-Wei Huang

Add a shebang to the script

Without the shebang the init can't exec it.

6b79e12 2017-12-11 00:43:50 Ladehunter

Fix bug of ForceOrientation

Signed-off-by: Ladehunter <ladehunter@gmail.com>

c283ba1 2017-12-11 00:43:50 Mauro Rossi

fd_utils: fix DEBUG mode booting issue

Porting to oreo-x86 codebase of nougat-x86 commit
bca7b1f81f "fd_utils: fix DEBUG mode booting issue"

Original commit message:

Remove the "/android/" prefix before the white list checking.

Suggested by Chris Vandomelen <chris@sightworks.com>.

37ecb16 2017-12-11 00:43:50 Chih-Wei Huang

DisplayManagerService: disable display blanking on suspend

A workaround for black screen that SurfaceFlinger never recovers from.
The kernel does this anyway.

Re-worked from the original kitkat-x86 patch of Kyle Evans.