Commit Graph

536 Commits

Author SHA1 Message Date
Makoto Onuki
e67f4c7ad3 Merge "ShortcutManager: Cleanup package info handling" into nyc-dev am: 7b71a6f
am: 8de4c90

* commit '8de4c909579fecba9f2662d8598dc124c6caabfd':
  ShortcutManager: Cleanup package info handling
2016-03-28 21:16:44 +00:00
Makoto Onuki
905e8855e7 ShortcutManager: Cleanup package info handling
Bug 27548047

Change-Id: I598b25d1901230cec6fb3760fe5efeff3b3fef96
2016-03-28 10:46:08 -07:00
Makoto Onuki
973ead7ce5 Merge "ShortcutManager: Handle package broadcasts." into nyc-dev am: ec1a2da
am: c15288f

* commit 'c15288facfad39bbfb1c37980d9cb61b9c46612c':
  ShortcutManager: Handle package broadcasts.
2016-03-28 16:50:09 +00:00
Makoto Onuki
0acbb14574 ShortcutManager: Handle package broadcasts.
- Do a cleanup when an app is gone.
- Record the app version and signatures.
- Also make saveToXml() capable of saving for backup.

Bug 27548047

Change-Id: I7eb2bbec7665b4d625630e7312c0f2a8b03c5ffa
2016-03-25 15:39:38 -07:00
Felipe Leme
93a8799b6e Merge "Refactored NetworkManagerService to support Data Saver." into nyc-dev am: 771d0c2
am: 244089a

* commit '244089a3806282e20d603d9be8942d3e550f03b1':
  Refactored NetworkManagerService to support Data Saver.
2016-03-25 20:50:21 +00:00
Felipe Leme
771d0c2be4 Merge "Refactored NetworkManagerService to support Data Saver." into nyc-dev 2016-03-25 20:39:59 +00:00
Felipe Leme
65be3025fd Refactored NetworkManagerService to support Data Saver.
Netd provides 2 bandwidth control rules to restrict which uids can use
metered networks:

- bw_penalty_box is a blacklist-based firewall chain used to determine
  which uids do not have access to metered interfaces.

- bw_happy_box is whitelist-based firewall chain used to determine which
  uids have access to metered interfaces.

Currently, both NetworkManagerService (NMS) and
NetworkPolicyManagerService (NPMS) uses just the bw_penalty_box rule,
which makes turning Data Saver mode on / off too slow (since NPMS needs
to build the bw_penalty_box on demand); this CL adds support for both
rules on NMS, although NPMS doesn't take advantage of it yet (it will be
refactored in a separate CL).

BUG: 27127112
BUG: 26685616
Change-Id: Ib954574f7c86269fc9b4cf8ce4ba72ba5878c23d
2016-03-25 12:33:47 -07:00
Erik Kline
7ecd343628 Merge "Request vendor info option (43) to get metered hint" into nyc-dev am: a5265e4
am: 922c21d

* commit '922c21d6d680f835a20d03269987abd52a2e704a':
  Request vendor info option (43) to get metered hint
2016-03-25 07:17:51 +00:00
Erik Kline
1d511ab13d Request vendor info option (43) to get metered hint
Bug: 26241591
Change-Id: I688029826a79f9cbf0116fb197f82026980788af
2016-03-25 11:55:19 +09:00
Makoto Onuki
e8e853ec22 Merge "ShortcutManager: Extract helper classes." into nyc-dev am: 6ebc08b
am: 329cf2a

* commit '329cf2ab3b2d7f8e867984f48e5ea11609d6dbe4':
  ShortcutManager: Extract helper classes.
2016-03-22 18:42:46 +00:00
Makoto Onuki
3145924596 ShortcutManager: Extract helper classes.
Bug 27548047

Change-Id: I08656291a8dd509fde169f229ca9c503362254f3
2016-03-22 11:24:53 -07:00
Erik Kline
34f0b4dafe Merge "Support registering a request for the default network" into nyc-dev am: d36ba73
am: e96834c

* commit 'e96834c583f99fb31bb9c80bddc8a73387fed028':
  Support registering a request for the default network
2016-03-22 07:33:25 +00:00
Erik Kline
a2d29407d0 Support registering a request for the default network
Change-Id: I079f5be97b585cf5692dd4c7a144b993d168a9a5
2016-03-22 15:44:16 +09:00
Makoto Onuki
7cb8b096ad Merge "ShortcutManager: Clean up for uninstalled packages." into nyc-dev am: da70ee4
am: 709432d

* commit '709432d99d340cb7b44b258c95b0a2f5a11937dd':
  ShortcutManager: Clean up for uninstalled packages.
2016-03-22 00:21:29 +00:00
Makoto Onuki
cdc78f7137 ShortcutManager: Clean up for uninstalled packages.
Bug 27548047

Change-Id: I95ca832af496fbf71023eb27a7e2647c124ffb86
2016-03-21 15:54:27 -07:00
Victor Chang
40240b17c9 Merge "Api change of DPM.setApplicationRestrictionsManagingPackage()" into nyc-dev am: d3c0cf5
am: 6918dbc

* commit '6918dbc87144d273fae62dae7c524993f0cbba7b':
  Api change of DPM.setApplicationRestrictionsManagingPackage()
2016-03-21 13:15:12 +00:00
Victor Chang
d3c0cf50b6 Merge "Api change of DPM.setApplicationRestrictionsManagingPackage()" into nyc-dev 2016-03-21 13:08:14 +00:00
Victor Chang
cd14c0a9da Api change of DPM.setApplicationRestrictionsManagingPackage()
Throws NameNotFoundException instead of IllegalArgumentException

Can't throw NameNotFoundException directly from DPMS as
aidl doesn't support checked exception

Bug: 27532565
Change-Id: I202721f41057f92ad2dd851d4769ba4502a8f9b3
2016-03-18 16:44:21 +00:00
Suprabh Shukla
8eeb4f2b86 Merge "Added a unit test for TaskPersister" into nyc-dev am: 07317df
am: 197b8d3

* commit '197b8d308390aaa629ed0e6e73763d27e8260522':
  Added a unit test for TaskPersister
2016-03-18 02:26:44 +00:00
Suprabh Shukla
07317df6ab Merge "Added a unit test for TaskPersister" into nyc-dev 2016-03-18 02:19:40 +00:00
Suprabh Shukla
f50b458e71 Added a unit test for TaskPersister
Added a simple unit test which checks the methods used to save and load the set
of taskids to file. The test creates a user, adds some task ids to the
set of taskids for that user, saves it and loads it to see whether the
set loaded is the same as the one that was saved.

Change-Id: If92be8abf9a7e3ef90630a3786867f0e1ba12f3e
2016-03-17 18:14:15 -07:00
Makoto Onuki
fd5e7ab3cf Merge "Improve ShortcutSrvice" into nyc-dev am: 45c1827
am: 706928d

* commit '706928df5d361e15623108a8f47fae28cad5a9d7':
  Improve ShortcutSrvice
2016-03-17 23:42:34 +00:00
Makoto Onuki
aa8b94aa79 Improve ShortcutSrvice
- Delayed save
- Reset logic update

Bug 27548047

Change-Id: Ibd52f90a7986991974301b7ff1f1d8520f9ef0d9
2016-03-17 14:37:14 -07:00
Makoto Onuki
20c9b4f5ef Merge "Support multi-launcher" into nyc-dev am: fb3f3f5
am: 7572efa

* commit '7572efad408d94ecbeed28aa7c2a89437ee8ac40':
  Support multi-launcher
2016-03-17 19:09:39 +00:00
Lorenzo Colitti
e6c88a0c1e Merge changes Idf0cfee8,I27307e2e into nyc-dev am: 7d0e392
am: e77e70d

* commit 'e77e70d00f3da6dd856f2d641d46080fbebacd0a':
  Use native netd binder interface in NetworkManagementService.
  Fix IdleableHandlerThread.
2016-03-17 19:09:06 +00:00
Makoto Onuki
fb3f3f5b28 Merge "Support multi-launcher" into nyc-dev 2016-03-17 17:27:10 +00:00
Lorenzo Colitti
5eaaf747b4 Fix IdleableHandlerThread.
Occasionally, ConnectivityServiceTest fails with "BUG: only one
idle handler allowed". I have not been able to reproduce this
consistently, but code inspection reveals an unsafe access to
mIdleHandler inside queueIdle. Wrap that in a synchronized block.

Change-Id: I27307e2e55fa8d937d7f043bd436894091c3c667
2016-03-17 10:52:57 +09:00
Makoto Onuki
de66737ae9 Support multi-launcher
Each launcher can have its won set of pinned shortcuts.
- Shortcuts pinned by others should look like not pined to this
  launcher.  This affects how ShortcutQueryFLAG_GET_PINNED works,
  as well as what ShortcutInfo.isPinned() returns.

- When pinning a shortcut, it should be a visible one to itself --
  a non-dynamic shortcut that's pinned by another launcher but
  not by the caller is not visible, so this launcher cannot pin it
  either.

- Also clean up the dynamic shortcut adding.

Bug 27548047

Change-Id: Ia478a2ea19b7d35557ec6ea42384c79a84d6b8de
2016-03-15 16:55:04 -07:00
Makoto Onuki
fdc8d14ce5 Merge "Fix launcher side callback" into nyc-dev am: ed1b89878b
am: de40929c65

* commit 'de40929c65a28525629c962d859758ff5e61e412':
  Fix launcher side callback
2016-03-15 21:15:33 +00:00
Makoto Onuki
ed1b89878b Merge "Fix launcher side callback" into nyc-dev 2016-03-15 21:02:48 +00:00
Mahaver Chopra
588ad4a563 Merge "Update DPM.reboot with new restriction" into nyc-dev am: 8a8e8ea19a
am: 648c70a3b7

* commit '648c70a3b79264467512916ca7852c4147fd06d3':
  Update DPM.reboot with new restriction
2016-03-15 20:00:54 +00:00
Mahaver Chopra
1216ae5d02 Update DPM.reboot with new restriction
DPM.reboot() should not be called when there is an ongoing call on the
device.

Bug:27531799
Change-Id: Idc1fa4c7aa79b20ec9c2afcccf855455ee316787
2016-03-15 19:46:05 +00:00
Makoto Onuki
4dbe0ded4a Fix launcher side callback
- Fix crash in work profile case
- Calculate shortcuts for each caller
- Add tests

Bug 27548047

Change-Id: I1a5b6a96956abac75d01eb5cc1cec9a9e8e379a3
2016-03-15 12:38:41 -07:00
Makoto Onuki
1093879292 Merge "Make "reset-throttling" per-user" into nyc-dev am: 84dce8cba9
am: 624c917192

* commit '624c9171922da2ad1d2ff4013568434b6b7449cc':
  Make "reset-throttling" per-user
2016-03-15 00:38:33 +00:00
Makoto Onuki
4554d0e5b6 Make "reset-throttling" per-user
Also don't reset the counter when the time is invalid

Bug 27549307

Change-Id: Ib9ad030e348ec5e32936709f1284e3c76e88e254
2016-03-14 15:53:59 -07:00
Makoto Onuki
613eb64018 Merge "Implement the launcher side permission." into nyc-dev am: 49f6fbcd1f
am: 6c525ae97b

* commit '6c525ae97b76d9d6dd864c913e32b9249ca93199':
  Implement the launcher side permission.
2016-03-14 22:25:55 +00:00
Makoto Onuki
49f6fbcd1f Merge "Implement the launcher side permission." into nyc-dev 2016-03-14 22:12:16 +00:00
Makoto Onuki
2d5b465fa9 Implement the launcher side permission.
Only the default launcher can call the LauncherApps shortcut APIs.

Bug 27548047

Change-Id: I6d597fcad80c5201a2f93b8cbecd567fc79926d8
2016-03-14 15:00:58 -07:00
Jeff Davidson
941b85793d Merge "NetworkStats.Bucket API polish." into nyc-dev am: 1c0c14febf
am: cb4ad1548e

* commit 'cb4ad1548ec10019760bbfd76268805809301fd6':
  NetworkStats.Bucket API polish.
2016-03-14 19:37:56 +00:00
Jeff Davidson
1c0c14febf Merge "NetworkStats.Bucket API polish." into nyc-dev 2016-03-14 19:30:23 +00:00
Jeff Davidson
1f7e05eda6 NetworkStats.Bucket API polish.
-Add @IntDef constants for STATE_ and ROAMING_.
-Expand docs for ROAMING_ constants.
-Use ROAMING_NO/YES instead of ROAMING_DEFAULT/ROAMING.

Bug: 27531260
Change-Id: I54ecfb4148caa549214df0bee9983036ffa4cb55
2016-03-14 11:24:12 -07:00
Makoto Onuki
c2c0db67ab Merge "Add ENCRYPTION_STATUS_ACTIVE_PER_USER to..." into nyc-dev am: c070a099f5
am: d0a90344fd

* commit 'd0a90344fdd11b9b639d45678fd1914f1c42719c':
  Add ENCRYPTION_STATUS_ACTIVE_PER_USER to...
2016-03-14 16:03:41 +00:00
Makoto Onuki
d4c9e541ec Add ENCRYPTION_STATUS_ACTIVE_PER_USER to...
getStorageEncryptionStatus()
Use StorageManager APIs to get the encryption
state instead of from the system properties
directly.

Bug 26547262

Change-Id: Ic27baa9489d43a93873f8bb0428084f8886aed67
2016-03-11 15:50:04 -08:00
Makoto Onuki
94ae124147 Merge "Test for ShortcutManager.updateShortcuts(), also" into nyc-dev am: 04efe9e5ff
am: 0408672bcb

* commit '0408672bcbc9a23ff2c83962ceb8399aa0dbc087':
  Test for ShortcutManager.updateShortcuts(), also
2016-03-11 18:10:04 +00:00
Makoto Onuki
7a6a05f0cc Test for ShortcutManager.updateShortcuts(), also
... fix bugs

Bug 27548047

Change-Id: Ia55d35521912dcba2fb1bb9c20588a83d1a2d004
2016-03-10 18:01:06 -08:00
Makoto Onuki
903f462bda Merge "Refactor ShortcutService" into nyc-dev am: be4f470038
am: 7f16c30f8c

* commit '7f16c30f8cf8a8a2e93ab771fdc785e38d8a917a':
  Refactor ShortcutService
2016-03-10 20:48:55 +00:00
Makoto Onuki
41066a61b9 Refactor ShortcutService
Move PackageShortcuts to the top level.

Change-Id: If19a7dd979f8697e54a45c3aa654bad235f6259d
2016-03-09 16:56:39 -08:00
Makoto Onuki
7e4a7fcfae Merge "ShortcutManaegr: load config from settings, also..." into nyc-dev am: 495d124a67
am: 837a5fd72d

* commit '837a5fd72d4ee48b94d3c9f5dc9a409ecfd3caf9':
  ShortcutManaegr: load config from settings, also...
2016-03-10 00:24:23 +00:00
Makoto Onuki
495d124a67 Merge "ShortcutManaegr: load config from settings, also..." into nyc-dev 2016-03-10 00:18:36 +00:00
Jeff Sharkey
5b416edcff Merge "Log when pre-N apps send too much to DropBox." into nyc-dev am: 93720d5729
am: 7051cad205

* commit '7051cad205e3ea3269c51811f5586e165d533af0':
  Log when pre-N apps send too much to DropBox.
2016-03-09 23:39:22 +00:00