Commit Graph

69085 Commits

Author SHA1 Message Date
TreeHugger Robot
3dc99ea200 Merge "Break out static update method" 2016-08-04 19:00:47 +00:00
Chris Wren
836569cbcf only rate limit notification updates am: a61f179c3d am: aefa21b65e
am: 064d019bd0

Change-Id: I87fde03094acd30df18755186229e034cf09993f
2016-08-04 18:57:42 +00:00
Chris Wren
064d019bd0 only rate limit notification updates am: a61f179c3d
am: aefa21b65e

Change-Id: I9ac96d81c273139d08481185b829189ac01cac4d
2016-08-04 18:50:52 +00:00
Chris Wren
aefa21b65e only rate limit notification updates
am: a61f179c3d

Change-Id: I1b140eb26b2cb69c314bcc2f3543dbe3431290c3
2016-08-04 18:40:08 +00:00
Tom O'Neill
2e856b2d34 Merge "Resign ourselves to using legacy storage of location setting" 2016-08-04 17:39:23 +00:00
Todd Kennedy
13715d521f Break out static update method
Simply getting package settings could changes stored state. Break out
the majority of the method to modify local variables and not change
any stored state. The top-level getPackageLPw() method will still
mutate stored state. This will be changed in a future CL.

Also add a set of tests to verify the behaviour of updatePackageSetting()

Bug: 30219944
Change-Id: I3360a36ce238e816246ee8ca7ecabfbbcdf0b89d
2016-08-04 10:38:39 -07:00
Chris Wren
a61f179c3d only rate limit notification updates
Updates to progress bars are the main culprit in system
performance events caused by apps spamming the notification
service. Rate-limiting only updates allows us to set a lower
threshold wihtout the owrry of mistakenly dropping bursts of
notifications being quickly posted after a network sync.

Also reduce logspam caused by the rate-limit events.

Bug: 30132961
Change-Id: I49acda6a2831204da45e899ddd3d62d571d7174b
2016-08-04 17:04:02 +00:00
John Reck
9ffce33024 Fix NPE in TextureView am: 3c2587f26e am: 8fe31ec0e0
am: 2f072bae6e

Change-Id: I8c1a2c4505086f5022fb4e0893cf32e201c2a31b
2016-08-04 16:54:33 +00:00
John Reck
2f072bae6e Fix NPE in TextureView am: 3c2587f26e
am: 8fe31ec0e0

Change-Id: I1f36262f8c09b4d75910bd5b3943b0931f57f477
2016-08-04 16:49:04 +00:00
John Reck
8fe31ec0e0 Fix NPE in TextureView
am: 3c2587f26e

Change-Id: I79f35e5029cb3abb5fa74a60e448cd09835e2112
2016-08-04 16:43:29 +00:00
TreeHugger Robot
3242a9a7fd Merge "Remove another fw.show_hidden_users" 2016-08-04 16:20:35 +00:00
Tom O'Neill
87c7fad580 Resign ourselves to using legacy storage of location setting
- Too many apps assume the storage is based on the legacy storage
mechanism, it's not worth changing.

- Bug: 10491283

Change-Id: I287b1c70c30e74f3f1140b6ee3398900ebf305bb
2016-08-04 08:16:12 -07:00
Robin Lee
434a74f558 Remove another fw.show_hidden_users
We've finished developing managed profiles now.

Change-Id: Ic587fce990e06c676d0819c63439a31b9ca07dcb
2016-08-04 15:58:08 +01:00
John Reck
3c2587f26e Fix NPE in TextureView
Bug: 30651595
Change-Id: Ic6cc2a1598de173aaadb4061562236a563a662b3
2016-08-04 07:55:38 -07:00
Adam Lesinski
88971b8a01 ResourcesManager: Return null on failure to create Resources am: 53fafdfbe7 am: dc477a9e6c
am: cf42572c3c

Change-Id: Ife13753fd7f7a19495d4ea7d7cda7c18ba5db7fc
2016-08-04 00:44:13 +00:00
Jakub Pawlowski
d92a9bbff7 Merge "Remove write type from GATT descriptor writes (1/4)" am: b7eb1d7eaf am: 0aa5797976 am: ed042c00e0
am: 9dd9e1a635

Change-Id: I418e61d8d60d53980c43c15a2d01ce32005c5eb3
2016-08-04 00:34:12 +00:00
Adam Lesinski
cf42572c3c ResourcesManager: Return null on failure to create Resources am: 53fafdfbe7
am: dc477a9e6c

Change-Id: I6eee09bf6911b0e885a833feb864f9bbcb053b84
2016-08-04 00:28:18 +00:00
Adam Lesinski
dc477a9e6c ResourcesManager: Return null on failure to create Resources
am: 53fafdfbe7

Change-Id: I47c891d2c21c2ba95cc05d4972332ea128b2d444
2016-08-04 00:19:23 +00:00
Jakub Pawlowski
9dd9e1a635 Merge "Remove write type from GATT descriptor writes (1/4)" am: b7eb1d7eaf am: 0aa5797976
am: ed042c00e0

Change-Id: I524d324c44f545989cd10a79143928ad57f8332d
2016-08-04 00:19:14 +00:00
Jakub Pawlowski
ed042c00e0 Merge "Remove write type from GATT descriptor writes (1/4)" am: b7eb1d7eaf
am: 0aa5797976

Change-Id: I7131629944d7a2569440ced1e48900ec5ff883d7
2016-08-04 00:12:46 +00:00
TreeHugger Robot
1584d5d6e2 Merge "ResourcesManager: Return null on failure to create Resources" into nyc-mr1-dev 2016-08-04 00:08:21 +00:00
Jakub Pawlowski
0aa5797976 Merge "Remove write type from GATT descriptor writes (1/4)"
am: b7eb1d7eaf

Change-Id: Ibe16bab7ec21d19d6f3cfd5cb65768b06a5ca829
2016-08-04 00:01:25 +00:00
sergeyv
024cdbc740 TextureView: destroy layer on destroyHardwareResources event am: 1c16c37d86 am: ab7b865ef6
am: 221b1f7b46

Change-Id: I7f7d9133e168906524b892a5c4e5388e0b3a33bc
2016-08-03 22:32:28 +00:00
sergeyv
221b1f7b46 TextureView: destroy layer on destroyHardwareResources event am: 1c16c37d86
am: ab7b865ef6

Change-Id: Idb0c2484c3ef2230bc4637c6b9cfaa9fe636e95e
2016-08-03 22:24:23 +00:00
sergeyv
ab7b865ef6 TextureView: destroy layer on destroyHardwareResources event
am: 1c16c37d86

Change-Id: I75a9c06c81f696b8a65d128f4ec20ca9d3083a07
2016-08-03 22:08:13 +00:00
Srinath Sridharan
1a61a0ae43 Adding a new getThreadScheduler() method.
bug:  30226969
Change-Id: Icbd57e99740ebf6ba744a103e6fa69a3160c9422
2016-08-03 15:00:17 -07:00
Sergei Vasilinetc
ba3d4f6ea1 Merge "TextureView: destroy layer on destroyHardwareResources event" into nyc-mr1-dev 2016-08-03 21:54:10 +00:00
Adam Lesinski
53fafdfbe7 ResourcesManager: Return null on failure to create Resources
A lot of calling framework code expects a null value on failure,
and didn't catch the previous exception. There were some strange
corner cases where previously a null value was not checked for
in framework code, allowing the null Resources object to be
returned to the caller. Introducing an exception changed the
semantics and can crash certain apps.

Bug:30422475
Change-Id: I51d34ae43c9ec605a8790989c56cf85b815ff5b8
2016-08-03 14:44:52 -07:00
Tobias Thierer
c0cc71e076 Merge "Fixes the system server crash issue caused by uncatched exception." am: b68106cf2a am: ca7a43b5da am: 3b5e46bf9b
am: ca08f14d6b

Change-Id: I09dbe007a20414ed8598b660bc2af59b221b6567
2016-08-03 20:24:10 +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
Yigit Boyar
bb1115f1ff Target API check for margin params fix am: 2dd20a61e9 am: 6efd207022
am: 5eede8910b

Change-Id: I748d223c4dcec4f0234b0e4e808ae982efbd0bd5
2016-08-03 19:46:33 +00:00
Jakub Pawlowski
8e970d6ab4 Remove write type from GATT descriptor writes (1/4)
According to the Bluetooth Core specification v4.2, Vol 3, Part G,
section 4.12.3: "The Attribute Protocol WRITE REQUEST is used
for this sub-procedure".

Change-Id: I141dd24ed5911d5d485b52a1b661835b9960921a
2016-08-03 10:42:47 -07:00
Jorim Jaggi
526694ea52 resolve merge conflicts of 3c1b0f0 to master
Change-Id: I2314728cba47c28ff580f4dfc69868f8cb5ff5db
2016-08-03 16:23:28 +00:00
Kirill Grouchnikov
95288e41a5 Merge "Document exception throwing in TabHost" 2016-08-03 13:16:08 +00:00
Jakub Pawlowski
ca08f14d6b Merge "GATT Server refactoring (2/4)" am: d13954e8c6 am: fe4b1e47fc
am: f8b8f56b73

Change-Id: Ia82c41019c18342f4971b4803fa898999c67d7b9
2016-08-03 13:12:02 +00:00
Jakub Pawlowski
f8b8f56b73 Merge "GATT Server refactoring (2/4)" am: d13954e8c6
am: fe4b1e47fc

Change-Id: Id4a88b39102b3acbc09e203e09637c40ae81bb89
2016-08-03 13:05:48 +00:00
Jakub Pawlowski
fe4b1e47fc Merge "GATT Server refactoring (2/4)"
am: d13954e8c6

Change-Id: I10383d95f79409282d96ae60b294c72754df5641
2016-08-03 12:59:24 +00:00
Tobias Thierer
258a554f62 Merge "Stop profiling on uncaught exception." 2016-08-03 10:42:37 +00:00
Jakub Pawlowski
d13954e8c6 Merge "GATT Server refactoring (2/4)" 2016-08-03 10:21:44 +00:00
TreeHugger Robot
ed2e7c894e Merge "Have BatteryStats track and report the running wakelocks." 2016-08-03 01:49:50 +00:00
Joe Onorato
92fd23fc62 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-02 17:27:01 -07: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
55b3a9ceb3 Merge "Zygote: Add CAP_WAKE_ALARM to system_server to properly support timerfd alarms" am: 1085be0ce3
am: 5e23ab394a

Change-Id: If1d303010a604bf6c1c745ea9e2d920eea20f5aa
2016-08-03 00:17:56 +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
Treehugger Robot
1085be0ce3 Merge "Zygote: Add CAP_WAKE_ALARM to system_server to properly support timerfd alarms" 2016-08-03 00:04:19 +00:00
TreeHugger Robot
391dfcfa68 Merge "Revert "Add per-user versions of set{Component,Application}EnabledSetting."" 2016-08-02 23:56:55 +00:00
Tejas Khorana
81f7c4b6c4 Merge "Account Manager Push API" 2016-08-02 23:29:00 +00:00
sergeyv
1c16c37d86 TextureView: destroy layer on destroyHardwareResources event
bug:30468770
Change-Id: I5174808e3fa6e4a87e3522246522c4e6d7ee2c3c
2016-08-02 15:40:27 -07:00
Sudheer Shanka
38c67d3c0f Revert "Add per-user versions of set{Component,Application}EnabledSetting."
This reverts commit 0e6bfff6c1.

Change-Id: I4eafa9fc052e9eba9e26fd32c09b5e759fe63b00
2016-08-02 22:13:17 +00:00
Tejas Khorana
5edff3b8b1 Account Manager Push API
Account Push API: Designed to repurpose existing Account Discovery APIs.
Bug#30562311

Bug: https://b.corp.google.com/issues/30562311

Change-Id: If1b22dc96c5cff21550e93bd26942faa5bcdabbf
2016-08-02 14:57:06 -07:00