Commit Graph

6793 Commits

Author SHA1 Message Date
Adam Lesinski
4e4e50cd02 SamplingTimer: Fix issue with summary recording too much am: 9edd6be542
am: e5852eb501

Change-Id: Ie4ab1a86f0c28a41ed84e861c83d38bf1a90a4c8
2016-08-13 00:59:35 +00:00
Adam Lesinski
e5852eb501 SamplingTimer: Fix issue with summary recording too much
am: 9edd6be542

Change-Id: Id423f0343c2d435281d47cd6edacb6816baaace8
2016-08-13 00:52:03 +00:00
Adrian Roos
ae96089711 Assist: Allow disabling the disclosure animation am: 2335bd6787
am: 57d1601849

Change-Id: I5954913f4f210e47d5e3a297f25d3f646cdd2a4b
2016-08-12 23:16:53 +00:00
Adam Lesinski
9edd6be542 SamplingTimer: Fix issue with summary recording too much
The summary is supposed to just hold enough data to continue counting
once the device has reset. Since kernel stats reset when the device
resets, and the first update is ignored to account for soft resets where the
kernel continues running, SamplingTimer should not be recording the last value
it saw from /proc/wakelocks in the summary.

Bug:30575302
Change-Id: Ic193bc5af9a0ede514e3abc8146523d7316c47d3
2016-08-12 15:49:44 -07:00
Adrian Roos
57d1601849 Assist: Allow disabling the disclosure animation
am: 2335bd6787

Change-Id: I2a88e088da3062b7bd10581650de526629973c67
2016-08-12 20:35:22 +00:00
Adrian Roos
2335bd6787 Assist: Allow disabling the disclosure animation
Change-Id: I6e7ed00f066fda7cc268119e7aa4133010aa69c1
Fixes: 30809067
2016-08-12 12:04:53 -07:00
Phil Weaver
99633b3700 Don't preserve a11y focus in hierarchy state. am: f40ee509c6
am: 711d7260ba

Change-Id: I7b2f1b2955c279f21f8f7a5ffc7b615ddaa50ff5
2016-08-11 21:03:19 +00:00
Phil Weaver
711d7260ba Don't preserve a11y focus in hierarchy state.
am: f40ee509c6

Change-Id: I14ba7354058eef6942286483b3f61ea0404135ea
2016-08-11 20:53:37 +00:00
Adrian Roos
bbf52f2e85 Only disable trust agents after lockout am: 9d6fc9246b
am: 73b2f5981e

Change-Id: Idec9662345a8ed9f75605d1b5dd39f04ef488389
2016-08-11 02:44:42 +00:00
Adrian Roos
73b2f5981e Only disable trust agents after lockout
am: 9d6fc9246b

Change-Id: I1fd7860a5a2c452e4b3c2e3e8d1073c423c9f054
2016-08-11 02:38:45 +00:00
Andreas Gampe
0d42671cc5 Zygote: allow system server compilation to fail am: e7bc152c20
am: 8253782f5b

Change-Id: I1fc916e9db2e391975b0037853cbfda9b08c706a
2016-08-11 02:16:12 +00:00
Andreas Gampe
8253782f5b Zygote: allow system server compilation to fail
am: e7bc152c20

Change-Id: Ibaea0c9bc3a5eb0e8a64342e4e27b7cfca21c647
2016-08-11 02:11:21 +00:00
Adrian Roos
9d6fc9246b Only disable trust agents after lockout
Previously trust agents would be disabled even after one
wrong attempt. Now we wait for the cooldown (usually 5 attempts),
the same as fingerprint.

Also adds a TrustArchive entry of when device policy changes are sent to
trust agents.

Bug: 30037948
Change-Id: I9e284d994ddae45ef66b5b8b601297c63d8ba667
2016-08-10 18:01:32 -07:00
Andreas Gampe
e7bc152c20 Zygote: allow system server compilation to fail
Do not terminate when the system server classpath cannot be
compiled. This can be the case in fallback mode, e.g., when
a device ran out of space.

Bug: 30765660
Change-Id: I3aca3f2f789e2201e4019e1bf04d239ab54b0d3d
2016-08-10 11:46:14 -07:00
Adrian Roos
425ade9ef0 Notification: Reuse drawable in Header if Icon unchanged am: c4337a3569
am: dd33f36fc4

Change-Id: Ia24b71281669458d544ea34cb643265610ef020a
2016-08-10 17:12:38 +00:00
Adrian Roos
dd33f36fc4 Notification: Reuse drawable in Header if Icon unchanged
am: c4337a3569

Change-Id: I8e7da247e9b4d9a9acd46c29ca29d34409bb9453
2016-08-10 17:06:17 +00:00
Adrian Roos
d4a95806ab Merge "Notification: Reuse drawable in Header if Icon unchanged" into nyc-mr1-dev 2016-08-10 16:52:15 +00:00
Phil Weaver
f40ee509c6 Don't preserve a11y focus in hierarchy state.
This change rolls back functionality added in ag/747748.
The idea was to restore accessibility focus on
configuration changes, but the restoration was happening
too early, which caused ViewRootImpl and the View to
disagree about accessibility focus. This confusion makes
some views unreachable by swiping after a configuration
change.

Bug: 30042251
Change-Id: Iae32b5425a1e7de9a8f5be965feb912fd2d9a0bb
2016-08-09 16:33:30 -07:00
Jorim Jaggi
ba926070ac Fix navigation bar in seascape in BackdropFrameRenderer am: 9a7d0a5f84
am: cbd845adff

Change-Id: I21133f8441ec3ba6ef6a664dd382570ab95f9a1e
2016-08-09 21:42:25 +00:00
Adrian Roos
c4337a3569 Notification: Reuse drawable in Header if Icon unchanged
Mitigates an issue where a LevelListDrawable would constantly
be reloaded even if unchanged. To avoid this, small icons are
now only reloaded if they no longer point to the same resource.

Note that StatusBarIconView already has this logic.

Change-Id: I6be436e5cef7b7ca91a28edc413b1aaa0f1007d5
Fixes: 30496073
2016-08-09 12:31:20 -07:00
Jorim Jaggi
9a7d0a5f84 Fix navigation bar in seascape in BackdropFrameRenderer
Change-Id: I922aaf835011b236f4b4d34f249304e335c3318b
Fixes: 30670517
2016-08-09 13:47:20 +02:00
Tobias Thierer
1c47ebcf84 Merge "Ensure apps cannot prevent uncaught exceptions being logged." am: f61a449ee9 am: 8431c55fb8
am: 62360649c8

Change-Id: I5ab8894481e32ee2c4f40439d920facd095ac952
2016-08-09 09:12:51 +00:00
Tobias Thierer
8431c55fb8 Merge "Ensure apps cannot prevent uncaught exceptions being logged."
am: f61a449ee9

Change-Id: I826c175547a73123cd438ebe6991efee39a433d0
2016-08-09 09:02:27 +00:00
Joe Onorato
0c3de60035 Have BatteryStats track and report the running wakelocks. am: adbee556a9
am: d55f7e646f

Change-Id: I27a7fea00398a717ae28be0dab89ab9c242aa419
2016-08-08 20:13:00 +00:00
Tobias Thierer
addbf9015a Ensure apps cannot prevent uncaught exceptions being logged.
Let RuntimeInit use an UncaughtExceptionPreHandler to log an exception
rather than relying on UncaughtHandler, which apps can replace. This
makes it easier to diagnose application death, especially during app
compatibility testing for a new version of Android.

Test: Verified manually, with the help of a small sample app (not
checked in), that stacktraces for RuntimeExceptions thrown on main
or background threads are logged even when the app set a default
UncaughtExceptionHandler that swallows the exception with no action.

Note that such an inappropriate UncaughtExceptionHandler will still
cause threads to die without the app being killed, which it should be.
In an exception then happens on the main thread, the app will freeze
until the ANR dialog kicks in after a few seconds. I have manually
verified that this behavior is unchanged from before this CL.

No new integration tests are included because the default system
behavior has not changed.

Bug: 29624607
Change-Id: Ie87377b0bcadc3ba4083a8ab1bedb8f3dd95a4bd
2016-08-08 17:59:28 +01:00
Joe Onorato
adbee556a9 Have BatteryStats track and report the running wakelocks.
The times reported are in the screen off / on battery time base.

Bug: 29546924
Change-Id: I025b2959becb256a26cf531e944786d4e9a59149
2016-08-05 16:10:13 -07:00
Adrian Roos
bfe5166ac3 Keyguard: Refactoring for improving trusted unlock while occluded am: d88eb2693b
am: cb5642afae

Change-Id: Id60ae0e1bfcfb2297855810781d8ca040cf46def
2016-08-05 18:53:14 +00:00
Adrian Roos
cb5642afae Keyguard: Refactoring for improving trusted unlock while occluded
am: d88eb2693b

Change-Id: I91f6bfe7a0573ad31785c5a3d1bff03a24d1107c
2016-08-05 18:45:41 +00:00
Adrian Roos
c49dfaf4d6 Merge changes from topic 'smooth_unlock' into nyc-mr1-dev
* changes:
  Keyguard: Improve trusted unlock while occluded
  Keyguard: Refactoring for improving trusted unlock while occluded
2016-08-05 18:37:29 +00:00
Todd Kennedy
8c073e0aad Move EphemeralResolverService am: 31b95e0265
am: fa67fad84e

Change-Id: Ieabd373b5557e03c6a189f070c8f79998e7a5a0a
2016-08-05 17:52:00 +00:00
Todd Kennedy
fa67fad84e Move EphemeralResolverService
am: 31b95e0265

Change-Id: I16533b342433fc1042e0d78e1be8e43a431031a6
2016-08-05 17:47:17 +00:00
TreeHugger Robot
9d9621f472 Merge "Move EphemeralResolverService" into nyc-mr1-dev 2016-08-05 17:37:35 +00:00
Todd Kennedy
31b95e0265 Move EphemeralResolverService
It should not have been under com.android.internal

Fixes: 30673742
Change-Id: I2277aa4a4799fa59bf68af7c4cfcb4e1216aeb8d
2016-08-05 07:17:52 -07:00
Adrian Roos
d88eb2693b Keyguard: Refactoring for improving trusted unlock while occluded
- Adds a trusted signal from Keyguard to PhoneWindowManager
- Allows PhoneWindowManager to exempt DISMISS_KEYGUARD windows from force hiding
- Allows PhoneWindowManager to dismiss Keyguard while occluded

Bug: 27410215
Change-Id: I3ad490b64a5805b6f3888a9f37fcfbdd0116395e
2016-08-05 00:04:07 +00:00
Tobias Thierer
258a554f62 Merge "Stop profiling on uncaught exception." 2016-08-03 10:42:37 +00:00
John Stultz
15cb51e04a Merge "Zygote: Add CAP_WAKE_ALARM to system_server to properly support timerfd alarms" am: 1085be0ce3 am: 5e23ab394a
am: 55b3a9ceb3

Change-Id: Iaf49bda287e258e54ebf72ef1837dfb5f528eecc
2016-08-03 00:23:36 +00:00
John Stultz
5e23ab394a Merge "Zygote: Add CAP_WAKE_ALARM to system_server to properly support timerfd alarms"
am: 1085be0ce3

Change-Id: I23d7c2af33db8621b0c3b3415669543e0e3b740f
2016-08-03 00:12:32 +00:00
Tobias Thierer
8ad86a3d1a Stop profiling on uncaught exception.
When "handling" an uncaught exception, make an attempt to stop
profiling. In case profiling was active, this will avoid losing
the profiling buffer.

This change is required as a base in order for
https://android-review.googlesource.com/#/c/249721/
to merge cleanly.

(Cherry picked from commit 4c79fea9ef)
Bug: 26291225
Change-Id: I35f352e5f28eafe4702da9eae587c3b65c360b3a
2016-08-02 17:32:39 +01:00
Dianne Hackborn
347c006732 Work on issue #30407061: OverflowArrayMap.stopObject unable to find object am: 657153bd28
am: ae7bdd8dde

Change-Id: Id9a3dfa2e18f62b2dc35396ae34ffb450ef8cbdc
2016-07-30 22:27:22 +00:00
Dianne Hackborn
ae7bdd8dde Work on issue #30407061: OverflowArrayMap.stopObject unable to find object
am: 657153bd28

Change-Id: Icf5ac1ea479e098f18972111e44724698086a255
2016-07-30 06:41:23 +00:00
Dianne Hackborn
29cc1b6939 Merge "Work on issue #30407061: OverflowArrayMap.stopObject unable to find object" into nyc-mr1-dev 2016-07-30 00:03:39 +00:00
Dianne Hackborn
657153bd28 Work on issue #30407061: OverflowArrayMap.stopObject unable to find object
Add more debug info when this happens to try to better
understand what is going on.

Change-Id: Id8c979d1c2d3769ce68156fb7e69d5ff9d5ded1c
2016-07-29 14:54:14 -07:00
John Stultz
5733f387be Zygote: Add CAP_WAKE_ALARM to system_server to properly support timerfd alarms
The when the timerfd alarm logic was added to the kernel, an oversight was made
and the interface does not check for the CAP_WAKE_ALARM permissions as required
via other kernel methods to trigger an alarm timer.

In v4.8-rc kernels, the change 2895a5e5b3a ("timerfd: Reject ALARM timerfds
without CAP_WAKE_ALARM") was added by Eric Caruso <ejcaruso@google.com>.

After this change (which may be backported to -stable), the AlarmManager will
fail on the first timerfd_create call, and will not be able to set the time
or handle other necessary functions.

The solution here is to add CAP_WAKE_ALARM to the system_server process.

Change-Id: Ifdb16f3ef42711e553f727165de3922d484b5be4
Signed-off-by: John Stultz <john.stultz@linaro.org>
2016-07-28 12:41:04 -07:00
Adam Lesinski
387c351d5a DO NOT MERGE Change KernelUidCpuTimeReader Slog.wtf to Slog.e am: 82a4d6f93b
am: 52d7fd62a4

Change-Id: I3b5febe3ecbd2ebead013273f5fe867376e2b756
2016-07-28 19:40:59 +00:00
Adam Lesinski
52d7fd62a4 DO NOT MERGE Change KernelUidCpuTimeReader Slog.wtf to Slog.e
am: 82a4d6f93b

Change-Id: I5e3b406b7a3f9a7f367dccaed0094ab5b7a78d2e
2016-07-28 19:23:16 +00:00
Adam Lesinski
533159b4f9 Merge "DO NOT MERGE Change KernelUidCpuTimeReader Slog.wtf to Slog.e" into nyc-mr1-dev 2016-07-28 19:08:30 +00:00
Adam Lesinski
82a4d6f93b DO NOT MERGE Change KernelUidCpuTimeReader Slog.wtf to Slog.e
There is a known issue in the kernel uidcputime module that triggers
the WTF, which has a cost to the system. Convert to a regular log
instead.

Bug:28950306
Change-Id: I7cbb3138f644075f0d9d65ce8b52bd835eb270fd
2016-07-28 19:08:04 +00:00
Chris Banes
19ce4ad1f6 Fix CascadingMenuPopup width if background has padding DO NOT MERGE am: f9e2c1b326
am: be3daf6947

Change-Id: I30624b96a74b5fb1928ada59e8f2a1968ef04426
2016-07-28 08:53:37 +00:00
Chris Banes
be3daf6947 Fix CascadingMenuPopup width if background has padding DO NOT MERGE
am: f9e2c1b326

Change-Id: I1997cde48524dc5c040311f4f9e7824485b55c7d
2016-07-28 08:47:15 +00:00
Chris Banes
7f37f2693f Merge "Fix CascadingMenuPopup width if background has padding DO NOT MERGE" into nyc-mr1-dev 2016-07-28 08:38:40 +00:00