Commit Graph

3085 Commits

Author SHA1 Message Date
Jeff Sharkey
3541354007 Merge "Parcelable classes should always be final." into nyc-dev am: 753c347efd
am: 620ef3f226

* commit '620ef3f22654676cd37df23db059a71e0607d6a9':
  Parcelable classes should always be final.
2016-03-01 00:12:20 +00:00
Jeff Sharkey
753c347efd Merge "Parcelable classes should always be final." into nyc-dev 2016-03-01 00:02:43 +00:00
Jeff Sharkey
50d1c044b5 Parcelable classes should always be final.
Also hide ConnectivityMetricsEvent which isn't being used yet.

Bug: 27415331
Change-Id: Iacdccddda504f3f669185f807b4f35b8dc2b0212
2016-02-29 16:46:09 -07:00
Colin Cross
414c529a4f Merge "Add dumpsys meminfo --unreachable" into nyc-dev 2016-02-29 22:19:40 +00:00
Polina Bondarenko
ce0aad5f99 Merge "Removed IAE from HardwarePropertiesManager." into nyc-dev am: 0097077396
am: 0710ca4270

* commit '0710ca42701377e38c5751d4535bd6869495aead':
  Removed IAE from HardwarePropertiesManager.
2016-02-29 18:49:20 +00:00
Polina Bondarenko
0710ca4270 Merge "Removed IAE from HardwarePropertiesManager." into nyc-dev
am: 0097077396

* commit '00970773960de9f81dafcc7e864f3e278fe53662':
  Removed IAE from HardwarePropertiesManager.
2016-02-29 18:41:48 +00:00
Polina Bondarenko
0097077396 Merge "Removed IAE from HardwarePropertiesManager." into nyc-dev 2016-02-29 18:34:01 +00:00
Jeff Sharkey
e8bd6c7a3f Merge "When system server goes down, crash apps more." into nyc-dev am: 004bf6ade3
am: 917fe2f8a5

* commit '917fe2f8a540fbc181a8647851a8b660da860286':
  When system server goes down, crash apps more.
2016-02-28 00:27:09 +00:00
Jeff Sharkey
917fe2f8a5 Merge "When system server goes down, crash apps more." into nyc-dev
am: 004bf6ade3

* commit '004bf6ade3e7e400c896541cce0e513eef179738':
  When system server goes down, crash apps more.
2016-02-28 00:24:21 +00:00
Jeff Sharkey
f8880561e6 When system server goes down, crash apps more.
Similar to first patch, but now using new "rethrowFromSystemServer()"
method which internally translates DeadObjectException into
DeadSystemException.  New logic over in Log.printlns() now
suppresses the DeadSystemException stack traces, since they're
misleading and just added pressure to the precious log buffer space.

Add some extra RuntimeInit checks to suppress logging-about-logging
when the system server is dead.

Bug: 27364859
Change-Id: I05316b3e8e42416b30a56a76c09cd3113a018123
2016-02-27 17:17:01 -07:00
Jeff Sharkey
c726efeccc Merge "When system server goes down, crash apps." into nyc-dev am: 49607029be
am: de6fe0c800

* commit 'de6fe0c80019430880edab225051fb81b9db927c':
  When system server goes down, crash apps.
2016-02-26 18:26:28 +00:00
Jeff Sharkey
de6fe0c800 Merge "When system server goes down, crash apps." into nyc-dev
am: 49607029be

* commit '49607029bef037d162f64f841468d7b99d862489':
  When system server goes down, crash apps.
2016-02-26 18:19:22 +00:00
Jeff Sharkey
49607029be Merge "When system server goes down, crash apps." into nyc-dev 2016-02-26 18:14:52 +00:00
Andreas Gampe
0ee49af897 Merge "Frameworks/base: Refactor android.os.Debug" into nyc-dev am: 227d7854cc
am: b0751f90f8

* commit 'b0751f90f8aadd81453e4cb250982d565a283a0a':
  Frameworks/base: Refactor android.os.Debug
2016-02-26 17:44:51 +00:00
Andreas Gampe
b0751f90f8 Merge "Frameworks/base: Refactor android.os.Debug" into nyc-dev
am: 227d7854cc

* commit '227d7854cc0fa5c76a61df727c97edb618f17046':
  Frameworks/base: Refactor android.os.Debug
2016-02-26 17:42:24 +00:00
Andreas Gampe
227d7854cc Merge "Frameworks/base: Refactor android.os.Debug" into nyc-dev 2016-02-26 17:39:20 +00:00
Polina Bondarenko
725844d05f Removed IAE from HardwarePropertiesManager.
If unknown temperature type is passed to getDeviceTemperatures, returns
empty array.

Bug: 27365463
Change-Id: I223b5e4e0642aee7b32e44fea84e8dc465b7e90b
2016-02-26 14:17:00 +01:00
Ruchi Kandoi
185101f1cb Merge "PowerManager: Hide the SUSTAINED_PERFORMANCE API." into nyc-dev am: 52cdc1593a
am: b2e2db084a

* commit 'b2e2db084af7ea00a2cdd68487971d78c09963fe':
  PowerManager: Hide the SUSTAINED_PERFORMANCE API.
2016-02-26 02:33:53 +00:00
Ruchi Kandoi
b2e2db084a Merge "PowerManager: Hide the SUSTAINED_PERFORMANCE API." into nyc-dev
am: 52cdc1593a

* commit '52cdc1593aab9336ad06cfe54cd06ca42ab3837e':
  PowerManager: Hide the SUSTAINED_PERFORMANCE API.
2016-02-26 02:30:41 +00:00
Andreas Gampe
8b9f49415f Frameworks/base: Refactor android.os.Debug
Refactor some static fields into a holder. This allows to statically
initialize the class in the boot image. It also has some minimal
positive impact on the class size, a net benefit when tracing is
not used.

Bug: 27248115
Change-Id: I0cdfb6acf916ad8d9a7d82bba32929dba15d4200
2016-02-25 18:03:03 -08:00
Jeff Sharkey
27b2e69787 When system server goes down, crash apps.
Apps making calls into the system server may end up persisting
internal state or making security decisions based on the perceived
success or failure of a call, or the default values returned.

The reality is that if the system process just died, init will be
along shortly to kill all running apps, so we should have no problem
rethrowing the RemoteException as a RuntimeException.

Bug: 27364859
Change-Id: If632cc36f68cd399a34de513b2d979abaa36fcaa
2016-02-25 17:40:12 -07:00
Ruchi Kandoi
302710deaa PowerManager: Hide the SUSTAINED_PERFORMANCE API.
Bug: 27365880
Change-Id: Ia84a5af85f6e8ef0740ce4b41dbc5bab4cbeef05
2016-02-25 16:22:54 -08:00
Lenka Trochtova
a6791cc935 Merge "Prevent ephemeral user from being re-entered after stop." into nyc-dev am: cfdc99ef5e
am: e8a4797e00

* commit 'e8a4797e003b6e8bb747d033b06c173402c5be96':
  Prevent ephemeral user from being re-entered after stop.
2016-02-24 12:40:45 +00:00
Lenka Trochtova
e8a4797e00 Merge "Prevent ephemeral user from being re-entered after stop." into nyc-dev
am: cfdc99ef5e

* commit 'cfdc99ef5e542f61cd405132fc140b14d9ec1620':
  Prevent ephemeral user from being re-entered after stop.
2016-02-24 12:38:00 +00:00
Lenka Trochtova
1ddda4793c Prevent ephemeral user from being re-entered after stop.
Once the ephemeral user stops, the user's deletion is scheduled.
It takes a while before the user actually disappears and it is not
desirable for the user to be re-entered in the meantime.
Mark the user as disabled on stop and check this flag
in the activity manager to prevent the user from being switched
to again. Also hide the user from user-switching UI.

BUG: 26795729
BUG: 26780152

Change-Id: I83a61674958954b5a210114b88ffa5ae55922c1f
2016-02-24 11:55:58 +01:00
Joe Onorato
8e5ca50db7 Merge changes I4e45afed,I2ea19f9a,I922d6f38 into nyc-dev am: 62b9ff4994
am: 1ba39aa54e

* commit '1ba39aa54e49882df0116b7538f73a6a688cb830':
  Add unit tests for BatteryStatsImpl.
  Turn down the logging a little bit.
  Turn down the logging a little bit.
2016-02-23 21:37:21 +00:00
Joe Onorato
1ba39aa54e Merge changes I4e45afed,I2ea19f9a,I922d6f38 into nyc-dev
am: 62b9ff4994

* commit '62b9ff49947ccfca7d9f2ffe0e34006821080819':
  Add unit tests for BatteryStatsImpl.
  Turn down the logging a little bit.
  Turn down the logging a little bit.
2016-02-23 21:24:01 +00:00
Joe Onorato
abded113bd Add unit tests for BatteryStatsImpl.
- Add a Clocks interface to wrap SystemClock.uptimeMillis and
  SystemClock.elapsedRealtime.
- Make the inner classes static so they can be created independently,
  which meant passing explicit pointers to the BatteryStatsImpl and
  the Uid objects in a lot of places.
- Make several fields protected so they can be accessed by the tests (they are
  still @hidden)
- Add a test suite for the battery stats.
- Add the tests

Change-Id: I4e45afedc64f7050985c28a7eb4f5c1ddbaa63fa
2016-02-23 12:44:22 -08:00
Tony Mak
622c00b810 Merge "Update javadoc of DISALLOW_OUTGOING_CALLS" into nyc-dev am: 38e638696a
am: 8d95e5fd05

* commit '8d95e5fd05d26e538a9867f9341c927d2cb83ff6':
  Update javadoc of DISALLOW_OUTGOING_CALLS
2016-02-23 10:34:34 +00:00
Tony Mak
8d95e5fd05 Merge "Update javadoc of DISALLOW_OUTGOING_CALLS" into nyc-dev
am: 38e638696a

* commit '38e638696a054a23150aadf72c9c98e335bb8d9e':
  Update javadoc of DISALLOW_OUTGOING_CALLS
2016-02-23 10:29:04 +00:00
Tony Mak
38e638696a Merge "Update javadoc of DISALLOW_OUTGOING_CALLS" into nyc-dev 2016-02-23 10:24:50 +00:00
Tao Bao
69d01e2376 Merge "Add support for update-on-boot feature." into nyc-dev am: 9de7952aa9
am: 3dd23af6a0

* commit '3dd23af6a0fb58ce7d1f6f078c765890ca839bd3':
  Add support for update-on-boot feature.
2016-02-22 21:10:21 +00:00
Tao Bao
3dd23af6a0 Merge "Add support for update-on-boot feature." into nyc-dev
am: 9de7952aa9

* commit '9de7952aa945eb06148f82b9f30d7d11a2de5d74':
  Add support for update-on-boot feature.
2016-02-22 20:09:58 +00:00
Tao Bao
9de7952aa9 Merge "Add support for update-on-boot feature." into nyc-dev 2016-02-22 19:24:25 +00:00
Tony Mak
eb83ab52b2 Update javadoc of DISALLOW_OUTGOING_CALLS
It is no longer true that we always forward the intent to personal side
after the introcution of work dialer.

Change-Id: I07b247c15d366278a07afab76b23c9d8847b01ef
2016-02-22 18:36:08 +00:00
Polina Bondarenko
4f2d2d3b42 Merge "Added hardwareproperties SystemService" into nyc-dev am: 280c5b2155
am: 5fc731e826

* commit '5fc731e82661aa31904e1473b651525256cc4f4a':
  Added hardwareproperties SystemService
2016-02-22 09:36:32 +00:00
Polina Bondarenko
5fc731e826 Merge "Added hardwareproperties SystemService" into nyc-dev
am: 280c5b2155

* commit '280c5b2155feae857ad514dff81adbfe73e398e9':
  Added hardwareproperties SystemService
2016-02-22 09:32:37 +00:00
Polina Bondarenko
280c5b2155 Merge "Added hardwareproperties SystemService" into nyc-dev 2016-02-22 09:27:21 +00:00
Adam Lesinski
6cad213183 Remove extraneous field from batterystats dumpsys am: 2208e743e4
am: b3d7561883

* commit 'b3d756188309c555f0374315da7ff90bc8dbe65a':
  Remove extraneous field from batterystats dumpsys
2016-02-19 21:14:33 +00:00
Adam Lesinski
b3d7561883 Remove extraneous field from batterystats dumpsys
am: 2208e743e4

* commit '2208e743e4c2da29008f6503c2d678c7e28e7812':
  Remove extraneous field from batterystats dumpsys
2016-02-19 21:08:51 +00:00
Adam Lesinski
2208e743e4 Remove extraneous field from batterystats dumpsys
Change-Id: Iea913e993e61d114c499e6218ad0abf9a8e80690
2016-02-19 21:03:43 +00:00
Tao Bao
e8a403d57c Add support for update-on-boot feature.
Add a separate system service RecoverySystemService to handle recovery
related requests (calling uncrypt to de-encrypt the OTA package on the
/data partition, setting up bootloader control block (aka BCB) and etc).

We used to trigger uncrypt in ShutdownThread before rebooting into
recovery. Now we expose new SystemApi (RecoverySystem.processPackage())
to allow the caller (e.g. GmsCore) to call that upfront before
initiating a reboot. This will reduce the reboot time and get rid of the
progress bar ("processing update package"). However, we need to reserve
the functionality in ShutdownThread to optionally call uncrypt if
finding that's still needed.

In order to support the update-on-boot feature, we also add new
SystemApis scheduleUpdateOnBoot() and cancelScheduledUpdate() into
android.os.RecoverySystem. They allow the caller (e.g. GmsCore) to
schedule / cancel an update by setting up the BCB, which will be read by
the bootloader and the recovery image. With the new SystemApis, an
update package can be processed (uncrypt'd) in the background and
scheduled to be installed at the next boot.

Bug: 26830925
Change-Id: Ic606fcf5b31c54ce54f0ab12c1768fef0fa64560
2016-02-19 11:31:45 -08:00
Polina Bondarenko
f8754ac212 Added hardwareproperties SystemService
Add HardwarePropertiesManagerService which call native methods to
get CPU, GPU, battery temperatures, CPU usage info, fan speeds.
Restrict hardware properties retrieval only for device and profile
owners.

Bug: 26945055
Change-Id: I4d6b30b78e575532d5e9cfa59ef6cd81355439d4
2016-02-19 18:24:29 +01:00
Colin Cross
41bf778441 resolve merge conflicts of bd45c08468 to nyc-dev-plus-aosp
am: 4bf50e486f

* commit '4bf50e486f85d7a9630ded3e36216710c9d1f97d':
  Add dumpsys meminfo --unreachable
2016-02-19 06:32:06 +00:00
Colin Cross
c4fb5f9d4b Add dumpsys meminfo --unreachable
dumpsys meminfo --unreachable will search the native heap for
allocations that are unreachable.

Bug: 27208635
Change-Id: I40ab1c261cb222ca71d04ab8408f355bcb18ed94
(cherry picked from commit 84b1e3554b)
2016-02-18 22:30:49 -08:00
Colin Cross
4bf50e486f resolve merge conflicts of bd45c08468 to nyc-dev-plus-aosp
Change-Id: Ifdf52646440b65ca4b3aadc8bba212b5f1fd0c0d
2016-02-18 22:27:04 -08:00
Colin Cross
bd45c08468 Merge "Add dumpsys meminfo --unreachable"
am: 916ea08119

* commit '916ea081196a47ef3257910a71fa7a7ac609ddb1':
  Add dumpsys meminfo --unreachable
2016-02-19 06:14:50 +00:00
Adam Lesinski
d09e35a69b Merge branch \'nyc-dev\' of /usr/local/google/game/mirror/googleplex-android_googlesource_com/platform/frameworks/base into nyc-dev am: cfd49456ec
am: 1720dd8618

* commit '1720dd86180c27e80fb191ed70be38cbfefc36af':
  Push mapping of package name to appId to kernel.
2016-02-18 22:40:01 +00:00
Jeff Sharkey
2271ba3627 Push mapping of package name to appId to kernel.
The new sdcardfs kernel driver needs to know this mapping for
deriving UID permissions, so push the data through /config when
supported by the kernel.  This also has the nice benefit of letting
us push only the deltas of what actually changes, instead of
re-parsing the entire "packages.list" file.

The mappings for newly installed apps are pushed before the app is
allowed to run, removing some latent race conditions.  Also cleans
up stale mappings when packages are uninstalled, and whenever the
system server reboots.

Bug: 19160983
Change-Id: Iace92efb69616c96b34c0d9d911e4b54e5fd8a67
2016-02-18 15:01:15 -07:00
Felipe Leme
c774bd9614 Merge "Fixed typo on Storage Access Framework." into nyc-dev am: 79c11a8c55
am: e14f8583c5

* commit 'e14f8583c518e476da7f4c677c99dc29b62d87d1':
  Fixed typo on Storage Access Framework.
2016-02-18 00:01:17 +00:00