Commit Graph

3094 Commits

Author SHA1 Message Date
Fyodor Kupolov
3fa9f47147 Merge "Disable switching users if the user is in a call" into nyc-dev am: 285bec2641
am: cef5ba5adc

* commit 'cef5ba5adc070e31fb1a568bd8c48b5d631f1cf4':
  Disable switching users if the user is in a call
2016-03-02 06:03:15 +00:00
Fyodor Kupolov
285bec2641 Merge "Disable switching users if the user is in a call" into nyc-dev 2016-03-01 23:21:29 +00:00
Felipe Leme
a917f1b5fd Merge "Created metric events for scoped directory access API." into nyc-dev am: c50bf8e33e
am: 8127a3cd75

* commit '8127a3cd751aacaa9f9d89dcedeb6cb254c006ff':
  Created metric events for scoped directory access API.
2016-03-01 20:27:59 +00:00
Calin Juravle
75a54f3e04 Merge "Restrict the cases when we profile guided compile an apk" into nyc-dev am: e1ac71fe99
am: 48175a5959

* commit '48175a59590a7e3f49bc3dabeea6602c5aa9b230':
  Restrict the cases when we profile guided compile an apk
2016-03-01 19:52:14 +00:00
Felipe Leme
c50bf8e33e Merge "Created metric events for scoped directory access API." into nyc-dev 2016-03-01 18:58:28 +00:00
Felipe Leme
3e166b27fc Created metric events for scoped directory access API.
BUG: 27334821
Change-Id: I8a1bfc328dcd26b42bb66884d14b34ad11aa232f
2016-03-01 10:12:58 -08:00
Calin Juravle
e1ac71fe99 Merge "Restrict the cases when we profile guided compile an apk" into nyc-dev 2016-03-01 17:59:20 +00:00
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
Fyodor Kupolov
523c404612 Disable switching users if the user is in a call
Also disable "Remove guest" option, which switches the user.

Bug: 20652663
Change-Id: Id3ada14c0b3bfe70e9e1ab7034d27098924d7b45
2016-02-29 10:40:55 -08: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
Calin Juravle
d479b52d12 Restrict the cases when we profile guided compile an apk
Do not use profile guided compilation if the apk is loaded by another
app. The decision if an apk was used or not by another app is done
by looking into the foreign profile directory. Apks which where
loaded in others apps will have a file marker in the profile directory.
The marker is  named after the canonical location of the apk file where
'/' is replaced by '@'.

Also, refactor the profile paths to the Environment.

Bug: 27334750
Bug: 26080105
Change-Id: Ic2ac5a7a231670ecb4462166c34fdd5b4c631178
2016-02-25 11:53:54 +00: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