Commit Graph

6836 Commits

Author SHA1 Message Date
Mitchell Wills
af34bd5cae Merge "Add Log.wtf when transitionTo is used improperly" 2016-08-15 18:34:50 +00:00
Adam Lesinski
3e1cd845e6 SamplingTimer: Fix issue with summary recording too much am: 9edd6be542 am: e5852eb501
am: 4e4e50cd02

Change-Id: If5f2313532774ef113fbb682beba6b51de45b45c
2016-08-14 00:45:24 +00:00
Adrian Roos
1fafcc6f64 Assist: Allow disabling the disclosure animation am: 2335bd6787 am: 57d1601849
am: ae96089711

Change-Id: I3d086e48a7ea312ae972495a157f18b62bc36e13
2016-08-14 00:34:13 +00:00
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
9332022807 Don't preserve a11y focus in hierarchy state. am: f40ee509c6 am: 711d7260ba
am: 99633b3700

Change-Id: I681bd187bc1bc8621a82d177e11033e2845bb437
2016-08-11 21:11:49 +00: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
Mitchell Wills
8d3ed21583 Add Log.wtf when transitionTo is used improperly
Using transitionTo in exit/enter (except in the terminal state) is
documented as undefined behavior and may cause unexpected results.
The current implementation appears to finish the current transition and
then transition to the new target state.

TEST=flash and play with the phone, no sign of immediate WTFs

Change-Id: I38a34b85c43d53c51514339587fc1269a069a454
2016-08-11 13:54:48 -07: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
367e0761c5 Only disable trust agents after lockout am: 9d6fc9246b am: 73b2f5981e
am: bbf52f2e85

Change-Id: I4606854b24313cc8231aaa0ce3ea33ea909f68b0
2016-08-11 02:51:07 +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
3b65013301 Zygote: allow system server compilation to fail am: e7bc152c20 am: 8253782f5b
am: 0d42671cc5

Change-Id: Ib811fe4631339f6edb98e9aba8b76513dc071140
2016-08-11 02:22:58 +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
8171d9e0af Notification: Reuse drawable in Header if Icon unchanged am: c4337a3569 am: dd33f36fc4
am: 425ade9ef0

Change-Id: Ifb22fc29cdfb3adef1bfd4f49dc30753b30f403c
2016-08-10 17:28:14 +00: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
Mitchell Wills
81bf880226 Merge "Reenable the unit tests for StateMachine" 2016-08-10 16:53:24 +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
e01daeb9e2 Fix navigation bar in seascape in BackdropFrameRenderer am: 9a7d0a5f84 am: cbd845adff
am: ba926070ac

Change-Id: I82863f7c907c36ec852a444d5e418022dfa4304f
2016-08-09 21:48:41 +00: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
Mitchell Wills
36afe5b5cc Reenable the unit tests for StateMachine
In order to make the tests run a few methods must be made public so that
they can be called from a class loaded by a different class loader.

Fixed: 28217358
Change-Id: I98ce1e952a78528ae6ebd3a0e843c9ddfe937337
2016-08-09 13:35:46 -07: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
4ebf60b7cf Merge "Ensure apps cannot prevent uncaught exceptions being logged." am: f61a449ee9 am: 8431c55fb8 am: 62360649c8
am: 1c47ebcf84

Change-Id: I7dce05184017dc221f021423acb4215de0a157f4
2016-08-09 09:18:25 +00: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
Evan Rosky
1839645126 Add support for custom user-switch UI
Given config_customUserSwitchUi, AM/UserController will not show any
UI during user-switch (no dialog or screen-freeze).

Provides a mechanism (WM.setSwitchingUser) by which a custom user-switch
UI can notify WM/Keyguard when it expects a user-switch operation to
be running.

Bug: 29329555
Change-Id: Ic903fc251d7ec3a54bc6a77906d3afa45a6a5fac
2016-08-08 10:22:25 -07: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
92c9c4f3e6 Keyguard: Refactoring for improving trusted unlock while occluded am: d88eb2693b am: cb5642afae
am: bfe5166ac3

Change-Id: I760b5f4d780231b06ec8ef733a8a002c3dd2420d
2016-08-05 21:19:30 +00: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
8d69e9c93b Move EphemeralResolverService am: 31b95e0265 am: fa67fad84e
am: 8c073e0aad

Change-Id: I2fb2add1e4431c2c802430990f99807934878e84
2016-08-05 17:58:25 +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
John Stultz
40dcffe7ac Merge "Zygote: Add CAP_WAKE_ALARM to system_server to properly support timerfd alarms" am: 1085be0ce3 am: 5e23ab394a am: 55b3a9ceb3
am: 15cb51e04a

Change-Id: Ia4fbf6264a6ee6806b1c44d00249ce74b5999f3b
2016-08-03 19:52:27 +00:00