Commit Graph

4241 Commits

Author SHA1 Message Date
Sudheer Shanka
36310290a4 Merge "Add time spent by uid per cpu frequency to batterystats." into oc-dev am: 5df9c5570e
am: 3ae1662024

Change-Id: I1954ae85025dabfebf452228b199cab07e892be2
2017-05-12 18:18:24 +00:00
Sudheer Shanka
3ae1662024 Merge "Add time spent by uid per cpu frequency to batterystats." into oc-dev
am: 5df9c5570e

Change-Id: Ia15bc54c61a692a37ad9b84a28643afc798b52c7
2017-05-12 18:09:36 +00:00
Sudheer Shanka
9b735c5c1a Add time spent by uid per cpu frequency to batterystats.
Currently we have total user and system cpu time spent by the uid
in the batterystats. This change will add times spent by the uid
at each different cpu frequency to the batterystats dump which will
help in better understanding the battery usage.

Bug: 34133340
Test: manual
Change-Id: I567dc75875eb58543c0e71572d0b440e87dbb4b9
2017-05-11 20:56:46 -07:00
Jocelyn Dang
61960cec37 Merge "Don't allocate new array in Parcel#readByteArray" 2017-05-11 23:48:40 +00:00
Dianne Hackborn
a54a0df596 Merge "Fix issue #37360626: Apps can schedule alarms (and other things) with temp whitelist" into oc-dev am: c3b938ca5e
am: 8b4c4f09f6

Change-Id: Ia6dd41e08ea31ccc902c4d9ba714e6448898fac4
2017-05-11 19:34:30 +00:00
Dianne Hackborn
8b4c4f09f6 Merge "Fix issue #37360626: Apps can schedule alarms (and other things) with temp whitelist" into oc-dev
am: c3b938ca5e

Change-Id: I585bf57074064761c7d216f05be23d7f044208fa
2017-05-11 18:45:00 +00:00
Dianne Hackborn
c3b938ca5e Merge "Fix issue #37360626: Apps can schedule alarms (and other things) with temp whitelist" into oc-dev 2017-05-11 18:28:46 +00:00
Fyodor Kupolov
10f628cda2 Merge "Added isUserNameSet" into oc-dev am: a9154ab391
am: 0e861d3e25

Change-Id: I335995890354ce7e4e591782af1188c093e89a6d
2017-05-11 09:35:14 +00:00
Michael Wachenschwanz
6517ae695a Merge "WTF Logging for catching memory issue in Parcel" into oc-dev am: 9254322192
am: c7373d1f5e

Change-Id: If27d23f8423337bf7c9290d9e00a55fb021679ff
2017-05-11 06:59:10 +00:00
Fyodor Kupolov
0e861d3e25 Merge "Added isUserNameSet" into oc-dev
am: a9154ab391

Change-Id: I013381eab8809b98d17e7cf9063a62e4884b0e2a
2017-05-11 05:22:19 +00:00
TreeHugger Robot
a9154ab391 Merge "Added isUserNameSet" into oc-dev 2017-05-11 03:19:52 +00:00
Michael Wachenschwanz
c7373d1f5e Merge "WTF Logging for catching memory issue in Parcel" into oc-dev
am: 9254322192

Change-Id: I2471901f1504c242b9020f575126c56375036498
2017-05-11 02:01:55 +00:00
Michael Wachenschwanz
9254322192 Merge "WTF Logging for catching memory issue in Parcel" into oc-dev 2017-05-11 01:26:11 +00:00
Dianne Hackborn
983055231b Fix issue #37360626: Apps can schedule alarms (and other things) with temp whitelist
There is now an IBinder "token" that must be specified when setting
the whitelist duration for an Intent.  To have the whitelist supplied,
the caller to send a PendingIntent must pass in the same token.  The
PendingIntent and IntentSender classes now internally maintain this token
to pass in when their send() is called.

The big complexity for making this work is we now need to associate this
whitelist token correctly with the actual PendingIntent objects that
applications and other code is getting.  To do this, we propagate the
token in the Notification object, and have a new API on Parcel that allows
us to make it available to PendingIntent when it is unmarshalled.  And
this allows to deal with PendingIntents appearing in nested bundles, as
we can propagate that information from the original Parcel to the new
Parcel that Bundle keeps to delay unmarshalling.

Test: manual
Change-Id: Idda00490ccfe2be37e4ab21354b9ab7528a52750
2017-05-10 17:23:02 -07:00
Fyodor Kupolov
605b12a6d0 Added isUserNameSet
It can be used to check that the value returned by getUserName() was set
by the user and is not a default value returned by the system.

Test: UserManagerServiceUserInfoTest pass
Bug: 38138381
Change-Id: I0ca37970fda548508190bffd1fa7be95d4a15076
2017-05-10 15:58:09 -07:00
Michael Wachenschwanz
101e38cbec WTF Logging for catching memory issue in Parcel
Catch an exception sent from native code looking for a specific known
bug and report via wtf which code path is hitting the bug. Revert this
change once bug has been resolved.

Bug: 37298089
Test: manual

Change-Id: Ieb98a8a82a9a2cffe4d0cfbbc8333f453b3e36d5
Signed-off-by: Michael Wachenschwanz <mwachens@google.com>
2017-05-10 15:38:30 -07:00
Ahmed ElArabawy
0a4e11480b power hal: Use power HAL API 1.1
Switch framework to use Power HAL 1.1

Many subsystems (e.g.wifi) could be living on an
independent power island (sourced from VBatt directly)
and might even have their own dedicated XTAL to source
their clocks. Since these SOCs are capable of
autonomously operating (while the platform is in one
of the sleep states), they are still drawing power
from the VBatt. Hence it is critical to understand
the  (SOC) level low power statistics as well when
the battery level changes and be able to find any
correlation in event of unexpected battery drain.

This commit directs framework to use Power HAL 1.1

Bug: 29339696
Test: Manual
Change-Id: I0d779365536e84de5ec50b97d50f0162738383da
Signed-off-by: Ahmed ElArabawy <arabawy@google.com>
2017-05-09 14:35:22 -07:00
Jocelyn Dang
4610044cb9 Don't allocate new array in Parcel#readByteArray
Fixes: 36951854
Test: manual

Change-Id: I8545e5ee1fcd702f728da75d856959b1a6df6c1a
2017-05-09 11:43:04 -07:00
Bookatz
8b46904e73 Merge "Add BLE results counter to batterystats" into oc-dev am: 7080fa5282
am: eb5a068cbc

Change-Id: I2e3bb04a7283d9aa64181e221462cff7b40839af
2017-05-09 17:48:49 +00:00
Bookatz
eb5a068cbc Merge "Add BLE results counter to batterystats" into oc-dev
am: 7080fa5282

Change-Id: I8e485d5a97d46f6787b5b32c17ab5b85463f2653
2017-05-09 17:08:03 +00:00
TreeHugger Robot
7080fa5282 Merge "Add BLE results counter to batterystats" into oc-dev 2017-05-09 16:03:27 +00:00
Bookatz
9f704778fe Merge changes from topic 'wakelockTotalDuration' into oc-dev am: 6b1989c7e2
am: 6103e0445f

Change-Id: I5dcff27685fa96f6cdc0159ee454720c9d5e1e01
2017-05-08 19:04:22 +00:00
Bookatz
cfb2ea8b48 Added actual (unpooled) partial wakelock times. am: 506a8183fd
am: 6d70b7aa2f

Change-Id: I76e27cc342049590e46ff141f65b0282e4064d49
2017-05-08 19:03:03 +00:00
Bookatz
6103e0445f Merge changes from topic 'wakelockTotalDuration' into oc-dev
am: 6b1989c7e2

Change-Id: I04a7323ed927ebfad40129166d7e0cc61be7b3af
2017-05-08 18:57:34 +00:00
Bookatz
6d70b7aa2f Added actual (unpooled) partial wakelock times.
am: 506a8183fd

Change-Id: I684b9287bf7bec032da54c497744f863768917e2
2017-05-08 18:56:33 +00:00
TreeHugger Robot
6b1989c7e2 Merge changes from topic 'wakelockTotalDuration' into oc-dev
* changes:
  Wakelock durations are 0 instead of -1 if unused
  Added actual (unpooled) partial wakelock times.
2017-05-08 18:34:42 +00:00
Michael Wright
daca7890bf Merge "Also log the value of the IAEs thrown in VibrationEffect" into oc-dev am: 00487cf936
am: b9e1b02f72

Change-Id: I65e4b422849689cf5cfbac6a5c2d4f06fcc9bc8d
2017-05-08 14:59:21 +00:00
Michael Wright
b9e1b02f72 Merge "Also log the value of the IAEs thrown in VibrationEffect" into oc-dev
am: 00487cf936

Change-Id: Iee08e297248aa57179a434f81f27e3e7924aa201
2017-05-08 14:53:51 +00:00
TreeHugger Robot
00487cf936 Merge "Also log the value of the IAEs thrown in VibrationEffect" into oc-dev 2017-05-08 14:49:27 +00:00
Yifan Hong
d197656a48 Merge "Merge "android.os.VintfObject: add API for EDI." into oc-dev am: 718688f39b" into oc-dev-plus-aosp
am: d73937d3cc

Change-Id: I8220845a2ac54d5793087bda676b630a765693db
2017-05-05 22:34:47 +00:00
Yifan Hong
6d62f812e9 Merge "android.os.VintfObject: add API for EDI." into oc-dev
am: 718688f39b

Change-Id: I937b7972b40747e36b9fe3a2ff008c1052652962
2017-05-05 22:05:08 +00:00
TreeHugger Robot
718688f39b Merge "android.os.VintfObject: add API for EDI." into oc-dev 2017-05-05 21:47:47 +00:00
Yifan Hong
687113a082 android.os.VintfObject: add API for EDI.
Add APIs for EDI (extensive device information).

Test: CtsDeviceInfo
Bug: 28656227
Change-Id: I609d4f1f07e20717827ef024ff8cbe124d7e54a6
2017-05-04 14:11:22 -07:00
Ian Pedowitz
e2c45a5e20 Merge "Revert "O is API 26"" into oc-dev am: b42b9a22df
am: c96a358318

Change-Id: If16a559a068f93f79c7c398323fe3f1bafe1aaf9
2017-05-04 00:23:27 +00:00
Ian Pedowitz
c96a358318 Merge "Revert "O is API 26"" into oc-dev
am: b42b9a22df

Change-Id: Ic869f9f6f627c960222cb5364e04e6f4491c0a88
2017-05-04 00:18:19 +00:00
Ian Pedowitz
b42b9a22df Merge "Revert "O is API 26"" into oc-dev 2017-05-04 00:07:10 +00:00
Yifan Hong
d6fb4193f4 Merge "Add compatibility matrices to VintfObject.report()" into oc-dev am: 0e0a37635e
am: 2e5ed49e86

Change-Id: Iae5650ba5186dc73e0dc2b20bf1feee127100db4
2017-05-03 22:55:46 +00:00
Yifan Hong
2e5ed49e86 Merge "Add compatibility matrices to VintfObject.report()" into oc-dev
am: 0e0a37635e

Change-Id: I6e2c660971c296f363b66baa43231e18464ffc34
2017-05-03 22:48:32 +00:00
Ian Pedowitz
12025857cd Revert "O is API 26"
This reverts commit 9bcef8e2da.

Reason for revert:  b/37355569

Bug: 37480230
Bug: 37355569
Change-Id: I39b4a7fd9bda77df0746c7bc32b87f0c2b722f2b
2017-05-03 22:00:56 +00:00
Tianjie Xu
4d2954b1d1 Merge "Add error/cause code reporting for Non A/B OTA failures" am: 2db2f6d265 am: c2a0d6776c am: 1b0da0cdfd
am: f2e1a43ac5

Change-Id: I45210f7127b92a68b419f5b8248d090d0607e716
2017-05-03 18:02:02 +00:00
Tianjie Xu
f2e1a43ac5 Merge "Add error/cause code reporting for Non A/B OTA failures" am: 2db2f6d265 am: c2a0d6776c
am: 1b0da0cdfd

Change-Id: I967edc50dff44d830e475b94678c0194a379dba1
2017-05-03 17:56:39 +00:00
Yifan Hong
75ffd667a9 Add compatibility matrices to VintfObject.report()
Test: FrameworksCoreTests
Bug: 36814503
Change-Id: I27eaea136437afb2102581d410b657e810612a0a
2017-05-03 10:53:53 -07:00
Tianjie Xu
2db2f6d265 Merge "Add error/cause code reporting for Non A/B OTA failures" 2017-05-03 17:34:29 +00:00
Michael Wright
0ef6edd0a5 Also log the value of the IAEs thrown in VibrationEffect
Bug: 36827833
Test: manual
Change-Id: I64b85e746bd046a2718b690cc21c897950e34050
2017-05-03 15:05:46 +01:00
Jorim Jaggi
60e305ce8c Merge "Fix lock contention: Call into power manager service from handler" into oc-dev am: 251894b134
am: 53f6c02354

Change-Id: I83c68cf4bad91f7baa5016aab0f66f1d5fe2700f
2017-05-03 13:28:39 +00:00
Jorim Jaggi
53f6c02354 Merge "Fix lock contention: Call into power manager service from handler" into oc-dev
am: 251894b134

Change-Id: I63323963266b4194f61c8e6d6cc30a63f9af78eb
2017-05-03 13:21:52 +00:00
TreeHugger Robot
251894b134 Merge "Fix lock contention: Call into power manager service from handler" into oc-dev 2017-05-03 13:16:32 +00:00
Jorim Jaggi
86c39f9ede Fix lock contention: Call into power manager service from handler
Make sure to not hold the wm lock when calling into power manager
service, because PWM will acquire a lock that might be contended.

Test: Make sure user activity timeout is still respected on
Keyguard
Test: Have activity with screenBrightness=1.0, make sure screen
is fully bright when opened

Bug: 37888898
Bug: 36631902
Change-Id: I4b5433dbaf8aa151465ae32232d3b3b8597715df
2017-05-03 13:22:47 +02:00
Tianjie Xu
223edeb272 Add error/cause code reporting for Non A/B OTA failures
Read and report the error_code & cause_code from last_install.

Bug: 36866437
Test: mma & observe the sysui event in logcat -b events
Change-Id: I5357861fc758e14ed3235bfc8cc76d7561ccea58
2017-05-02 23:02:11 -07:00
Bookatz
941d98feba Wakelock durations are 0 instead of -1 if unused
Previously, wakelock max/current/total durations were initialized to -1,
instead of 0. So if, e.g., an app held a full wakelock but not a partial
wakelock, then the partial wakelock would return -1 for these data. This
cl changes that to be 0. The value will only be -1 if the data is not
tracked (as is currently the case for full and window wakelocks), in
which case if the wakelock was held, -1 will be given to signify the
lack of tracking.

Test: manually confirm 0 instead of -1 in batterystats dump.
Change-Id: I934022294ba5adafb2e4d9a5be1dc20aab045cb0
2017-05-02 19:25:18 -07:00