Commit Graph

52031 Commits

Author SHA1 Message Date
Fabrice Di Meglio
07755a4dab am f7c087ba: am 4d5f8fbf: am e2f43948: Merge "Add user selectable Default Browser feature - part 6" into mnc-dev
* commit 'f7c087ba5726c2cd1e2c9bfe6b6b940c4530a3c5':
  Add user selectable Default Browser feature - part 6
2015-05-12 01:25:54 +00:00
Fabrice Di Meglio
f7c087ba57 am 4d5f8fbf: am e2f43948: Merge "Add user selectable Default Browser feature - part 6" into mnc-dev
* commit '4d5f8fbf6e48bba209506f5291cfeebf7aff6177':
  Add user selectable Default Browser feature - part 6
2015-05-12 01:14:26 +00:00
Fabrice Di Meglio
e2f43948d1 Merge "Add user selectable Default Browser feature - part 6" into mnc-dev 2015-05-12 00:52:58 +00:00
Fabrice Di Meglio
3453e081e0 Add user selectable Default Browser feature - part 6
- if a default Browser is not defined and if a Browser App
is selected into the disambiguation dialog, then make it as
the default Browser
- clear default Browser saved data (package name) when
the default Browser App is removed

See bug #20144393

Change-Id: Ia8621d7a61ec2cb60deded9d70f75f1e1d88d123
2015-05-11 17:46:23 -07:00
Svet Ganov
49b6b72a03 am f152ef2f: am 0bf290b9: am 981de3c5: Merge "Add permission meta-state flags to support grant/revoke permission policy." into mnc-dev
* commit 'f152ef2fd5b0d3e1251e1b1866e5c57a73dc7b0b':
  Add permission meta-state flags to support grant/revoke permission policy.
2015-05-12 00:43:38 +00:00
Svet Ganov
f152ef2fd5 am 0bf290b9: am 981de3c5: Merge "Add permission meta-state flags to support grant/revoke permission policy." into mnc-dev
* commit '0bf290b9622f4cdbf372e7ec97d19fadfafc6bc0':
  Add permission meta-state flags to support grant/revoke permission policy.
2015-05-12 00:33:57 +00:00
Svet Ganov
981de3c57c Merge "Add permission meta-state flags to support grant/revoke permission policy." into mnc-dev 2015-05-12 00:15:37 +00:00
Svet Ganov
8c7f700a59 Add permission meta-state flags to support grant/revoke permission policy.
We now maintain a mata-state with each permission in the form of flags
specyfying the policy for this permission. This enables support of the
following use cases:

1. The user denies a permission with prejudice in which case an app cannot
   request the permission at runtime. If an app requests such a permssion
   it gets a denial unless the user grants the permission from settings.

2. A legacy app with disabled app-ops being upgraded to support runtime
   permissions. The disabled app ops are converted to permission revocations.
   The app ops manager is a part of the activity manger which sits on top
   of the package manager, hence the latter cannot have a dependency on the
   former. To avoid this the package installer which is the global
   permission managment authority marks the permission as revoked on
   upgrade and the package manager revokes it on upgrade.

3. A device policy fixing a permission in a granted or revoked state. This
   additional information is folded in the meta-state flags and neither
   apps can request such permissions if revoked not the user can change
   the permission state in the UI.

Change-Id: I443e8a7bb94bfcb4ff6003d158e1408c26149811
2015-05-11 17:13:57 -07:00
Dianne Hackborn
b570ded1ef am 48453bf3: am 485d0b06: am 9c8600e1: Merge "Implement device idle in power manager." into mnc-dev
* commit '48453bf36dc03726ba82438531945b9b5d1771a1':
  Implement device idle in power manager.
2015-05-11 22:51:36 +00:00
Dianne Hackborn
48453bf36d am 485d0b06: am 9c8600e1: Merge "Implement device idle in power manager." into mnc-dev
* commit '485d0b06262129f76ee096a59ddc9374a04ff7ce':
  Implement device idle in power manager.
2015-05-11 22:38:02 +00:00
Dianne Hackborn
9c8600e1af Merge "Implement device idle in power manager." into mnc-dev 2015-05-11 22:22:36 +00:00
Dianne Hackborn
8d66b3fbf5 Implement device idle in power manager.
When in device idle mode, we now prevent most apps
from being able to hold partial wake locks.  The
device idle controller now pushes its white list of
app uids into the power manager, so it can apply this
policy correctly to only apps that are not whitelisted.

The implementation adds a new "disabled" flag to a wake
lock which is set when we want to apply this policy.  When
set, we ensure that we tell battery stats that the wake lock
is not being held and ignore that wake lock when computing
the power state summary.

Also add new SDK APIs to schedule alarms that are allowed
to execute while in idle mode.

Finally add new dumpsys commands to the device idle controller
to completely disable and re-enable its operation, to use
for testing.

Change-Id: I1f16672c6ac06d03bb538f9854d5843db9aa6f27
2015-05-11 15:16:47 -07:00
Doris Liu
6c892be4f3 am f39708c3: am 803a1e84: am a2f04382: Merge "Use ArrayMap instead of HashMap for storing relavant nodes" into mnc-dev
* commit 'f39708c3e46006273411a0fb54a87fc23c697e77':
  Use ArrayMap instead of HashMap for storing relavant nodes
2015-05-11 22:10:32 +00:00
Doris Liu
f39708c3e4 am 803a1e84: am a2f04382: Merge "Use ArrayMap instead of HashMap for storing relavant nodes" into mnc-dev
* commit '803a1e8428731390689357750f87b408c2f20f8e':
  Use ArrayMap instead of HashMap for storing relavant nodes
2015-05-11 21:55:33 +00:00
Doris Liu
a2f043822b Merge "Use ArrayMap instead of HashMap for storing relavant nodes" into mnc-dev 2015-05-11 21:31:42 +00:00
Doris Liu
d7444427d9 Use ArrayMap instead of HashMap for storing relavant nodes
This fix is to take advantage of ArrayMap, which is a key-value
mapping data structure that is more memory efficient than HashMap.

Bug: 11604254
Change-Id: I57006880de570a4d7f3899e274cf0a06355d116b
2015-05-11 13:23:31 -07:00
Adam Powell
2ddde23c50 am f003c792: am 44e89c49: am 5fccffd5: Merge "Bringing new Chooser UI closer to spec" into mnc-dev
* commit 'f003c7925692a22e9a4c0ad539f941cea886eb30':
  Bringing new Chooser UI closer to spec
2015-05-11 19:40:21 +00:00
Adam Powell
f003c79256 am 44e89c49: am 5fccffd5: Merge "Bringing new Chooser UI closer to spec" into mnc-dev
* commit '44e89c496202ae4ee5bf5b7ebfd16c332f908c00':
  Bringing new Chooser UI closer to spec
2015-05-11 19:29:57 +00:00
Adam Powell
5fccffd573 Merge "Bringing new Chooser UI closer to spec" into mnc-dev 2015-05-11 19:17:29 +00:00
Adam Powell
7d7580019e Bringing new Chooser UI closer to spec
Separate the chooser targets into rows by type. Remove some API that
was redundant with LabeledIntent, simplifying ChooserTarget.

Change-Id: I90de471825f05d85e6ffbe72a32fb597be824a30
2015-05-11 12:16:19 -07:00
Chirag Shah
a03934ce95 am d0a15765: am 23c0fca3: am 3ce72722: Merge "Revert the AssistAction class." into mnc-dev
* commit 'd0a15765eb81c5d065ddd83f16b6c2c0791677e1':
  Revert the AssistAction class.
2015-05-11 18:21:00 +00:00
Chirag Shah
d0a15765eb am 23c0fca3: am 3ce72722: Merge "Revert the AssistAction class." into mnc-dev
* commit '23c0fca337e522a45741c763c0da07013a0238bf':
  Revert the AssistAction class.
2015-05-11 18:08:14 +00:00
George Mount
79fcf9e194 am 42240e1f: am 96f1d461: am 3dec0d47: Merge "Disable input during Activity Transition." into mnc-dev
* commit '42240e1fe20d5e3dfd8a704eee8a200d98c0212f':
  Disable input during Activity Transition.
2015-05-11 17:55:58 +00:00
Chirag Shah
3ce72722ca Merge "Revert the AssistAction class." into mnc-dev 2015-05-11 17:39:49 +00:00
George Mount
42240e1fe2 am 96f1d461: am 3dec0d47: Merge "Disable input during Activity Transition." into mnc-dev
* commit '96f1d4612c50d0944dc10a313992de8160f9fc13':
  Disable input during Activity Transition.
2015-05-11 17:36:15 +00:00
George Mount
3dec0d4721 Merge "Disable input during Activity Transition." into mnc-dev 2015-05-11 17:19:03 +00:00
Amith Yamasani
550b4e9a1f am ec2f3d50: am db8d9ea0: am a5b2684c: Merge "Rename *AppIdle to *AppInactive per api-council" into mnc-dev
* commit 'ec2f3d50124e51bd9915b4fc0cf28f82a10495a4':
  Rename *AppIdle to *AppInactive per api-council
2015-05-11 16:46:03 +00:00
Amith Yamasani
ec2f3d5012 am db8d9ea0: am a5b2684c: Merge "Rename *AppIdle to *AppInactive per api-council" into mnc-dev
* commit 'db8d9ea0d4d3d99a2f29e55c7a55ca7bff42e568':
  Rename *AppIdle to *AppInactive per api-council
2015-05-11 16:33:08 +00:00
John Spurlock
8f080d0724 am 31f6e2dc: am e1e7b05b: am 4cf2ae9c: Merge "Add new metrics categories for the two notification access screens." into mnc-dev
* commit '31f6e2dcb2ea28aa8174967021a58ca400b0d82a':
  Add new metrics categories for the two notification access screens.
2015-05-11 16:12:46 +00:00
Paul McLean
92940e95e7 am 9feba6e7: am 7238cdc3: am 1c82b221: Merge "Changes as per API council review." into mnc-dev
* commit '9feba6e7744d5235f81fc9e5be0e8f3d149ad599':
  Changes as per API council review.
2015-05-11 16:12:41 +00:00
Amith Yamasani
a5b2684c25 Merge "Rename *AppIdle to *AppInactive per api-council" into mnc-dev 2015-05-11 16:11:14 +00:00
Abodunrinwa Toki
1720865b3a am a98c2791: am 33808e8b: am f864d925: Merge "Set FloatingToolbar width for portrait and landscape." into mnc-dev
* commit 'a98c27913e4e4d4e187b46e6e59f183c1c5ec812':
  Set FloatingToolbar width for portrait and landscape.
2015-05-11 16:03:17 +00:00
John Spurlock
31f6e2dcb2 am e1e7b05b: am 4cf2ae9c: Merge "Add new metrics categories for the two notification access screens." into mnc-dev
* commit 'e1e7b05b54799d12b2290eacf5d812b413ad25ba':
  Add new metrics categories for the two notification access screens.
2015-05-11 16:02:09 +00:00
Paul McLean
9feba6e774 am 7238cdc3: am 1c82b221: Merge "Changes as per API council review." into mnc-dev
* commit '7238cdc314678eb9c9165a12b52bc3594f268720':
  Changes as per API council review.
2015-05-11 16:02:04 +00:00
Abodunrinwa Toki
a98c27913e am 33808e8b: am f864d925: Merge "Set FloatingToolbar width for portrait and landscape." into mnc-dev
* commit '33808e8ba785c29e2c0a7ba32be0bd03058d5c9a':
  Set FloatingToolbar width for portrait and landscape.
2015-05-11 15:51:30 +00:00
John Spurlock
4cf2ae9c55 Merge "Add new metrics categories for the two notification access screens." into mnc-dev 2015-05-11 15:48:47 +00:00
Chris Wren
77045d7b8a am 542731ff: am 100cf21f: am df2e2809: Merge "log more settings actions" into mnc-dev
* commit '542731ffb399baedd641f55b89403566e291a3eb':
  log more settings actions
2015-05-11 15:40:10 +00:00
Paul McLean
1c82b221d4 Merge "Changes as per API council review." into mnc-dev 2015-05-11 15:39:29 +00:00
Chris Wren
542731ffb3 am 100cf21f: am df2e2809: Merge "log more settings actions" into mnc-dev
* commit '100cf21fced76b907c503af197798598211b2848':
  log more settings actions
2015-05-11 15:28:09 +00:00
Abodunrinwa Toki
f864d925bf Merge "Set FloatingToolbar width for portrait and landscape." into mnc-dev 2015-05-11 15:27:26 +00:00
John Spurlock
cfc66e3339 Add new metrics categories for the two notification access screens.
Bug: 20916418
Change-Id: Iafcaccaa465a2f121a6a1a2ba54b122173e45dc6
2015-05-11 11:19:55 -04:00
Chris Wren
df2e2809bf Merge "log more settings actions" into mnc-dev 2015-05-11 15:07:21 +00:00
Abodunrinwa Toki
c0fa6bd7ac Set FloatingToolbar width for portrait and landscape.
Bug: 20711006
Change-Id: Iee061a1031406780eb0f85201543b644fbb4d813
2015-05-11 14:28:48 +01:00
Nick Kralevich
03db3f99cc am 0ca72da6: am f1a904fd: am d9c7f245: UsbManager / UsbService / UsbDeviceManager: delete unused code
* commit '0ca72da655d50b0ba5fda49560b8ba15325c225f':
  UsbManager / UsbService / UsbDeviceManager: delete unused code
2015-05-11 05:45:08 +00:00
Nick Kralevich
0ca72da655 am f1a904fd: am d9c7f245: UsbManager / UsbService / UsbDeviceManager: delete unused code
* commit 'f1a904fdbb2786fb4f7067930bfc841f918ef80d':
  UsbManager / UsbService / UsbDeviceManager: delete unused code
2015-05-11 05:32:53 +00:00
Nick Kralevich
d9c7f24569 UsbManager / UsbService / UsbDeviceManager: delete unused code
These functions are never called.

Change-Id: Ic436e1036bed717d2c64701fddd9a810abb9443e
2015-05-10 21:57:56 -07:00
Jeff Sharkey
69fe6b50d2 am 10b247e6: am 6221dae2: am fced534d: Fix devices with primary physical storage.
* commit '10b247e6d5d375398e9c1f824933b86022e9d751':
  Fix devices with primary physical storage.
2015-05-10 22:31:25 +00:00
Jeff Sharkey
10b247e6d5 am 6221dae2: am fced534d: Fix devices with primary physical storage.
* commit '6221dae23f9813eab638e62371f8898ae68807fb':
  Fix devices with primary physical storage.
2015-05-10 22:20:30 +00:00
Jeff Sharkey
fced534dec Fix devices with primary physical storage.
Always assume the factory-reset default primary storage before parsing
storage settings.  Without this, we'd always default to picking
internal emulated storage during first boot or upgrade.

Bump version code to re-evaluate this for devices that default to
physical storage as primary.

Also restrict available move targets when storage is physical, since
we can't really translate between multi-user and non-multi-user aware
storage.

Bug: 20836019
Change-Id: I186ded1aa3dd9cea67497a4f53b0973031174ccd
2015-05-10 14:53:37 -07:00
Chris Wren
9e7283f6a3 log more settings actions
airplane: quick and slow settings
  bluetooth: quick and slow settings
  cellular data: quick and slow settings
  dnd: quick and slow settings
  wifi: quick settings (slow already done)
  cast: quick settings
  user: quick settings

include state of the toggle in the action log

Back away slowly from the over-generalization of logging
around handleClick, the semantics of mState are particular
to the individual tiles.

Bug: 20264417
Change-Id: I4cecbd3361af64d08de9fb41b8dca210a8086a80
2015-05-08 22:25:40 -04:00