50650 Commits

Author SHA1 Message Date
Julia Reynolds
73ed76bc6f Allow companion device mgrs channel access
- Callbacks when channels and groups are modified
- Allow them to read and update channels and groups

Test: runtest systemui-notification
Change-Id: Ie4d02bd4583f71f9faf27603bcc59a1ec0eeaf46
2017-04-11 19:08:59 +00:00
Conrad Chen
558acf96db TIF: add TvInputManager methods to notify apps
Adds TvInputManager methods to notify apps with protected broadcasts
for:
1. Disabling browsable state of preview and watch next programs.
2. Adding preview programs to watch next programs.

Test: build and verify manually to check if notifications are
      broadcasted.
Bug: 35881266

Change-Id: I20fd5b63f42b2c74277315bbbd251b71c649e5c1
2017-04-11 12:03:04 -07:00
Jorim Jaggi
4d384aa34e Merge "Revert "Revert "Handle case when snapshot dimensions don't match""" into oc-dev
am: 971fe468a4

Change-Id: Id22f93bb9250f587c678a401fa57507784a58ebc
2017-04-11 18:30:18 +00:00
Todd Kennedy
6f590d0913 Merge "add debug logs" into oc-dev
am: 7fa473b1aa

Change-Id: I1ea353968caff9d4e1ce2ef56267a40e3801be14
2017-04-11 18:29:02 +00:00
TreeHugger Robot
971fe468a4 Merge "Revert "Revert "Handle case when snapshot dimensions don't match""" into oc-dev 2017-04-11 18:16:00 +00:00
Todd Kennedy
7fa473b1aa Merge "add debug logs" into oc-dev 2017-04-11 18:14:23 +00:00
Wale Ogunwale
7004a8801d Ensure visible activities when device is unlocked.
When the device is locked we transition all activities to the stopped
state. However, we were only resuming the activity in the focused stack
when the device is unlocked. We now:
- Ensure all visible acitvities when the device is unlocked regardless
of stack.
- If the activity is marked as visible, but in the STOPPED state, we go
ahead and restart it.
- Correctly set ActivityRecord.stopped to false when we restart an
activity into the PAUSED state.

Fixes: 37119770
Bug: 37244415
Test: Make sure docked activity state isn't STOPPED when device is
unlocked.

Change-Id: I1498eeddaa3c1f5dd5135dca56271ffc22b704f2
2017-04-11 11:13:04 -07:00
Dan Sandler
0b4ceb3fab Minor text fixes.
Bug: 14292528
Fixes: 36712548
Test: adb shell dumpsys notification; 
      adb shell dumpsys notification --noredact
Change-Id: I5a6cfbd7fe8078f00780026389565d07149f0d5e
2017-04-11 17:26:48 +00:00
Todd Kennedy
bf297bcf29 Allow instant app resolution for any user
Change-Id: Iaf26cfda3a8226d97eb147b0a9e62f051b33e81b
Fixes: 37215608
Test: Swtich to secondary user and see that instant apps resolve and launch
2017-04-11 09:37:16 -07:00
Andreas Gampe
c3118992fb Merge "OtaDexOptService: Log post-reboot moves" am: ac293515b3 am: 4e04b5882f
am: 5e81820123

Change-Id: Ibad423bf2f49ec4af474ade4dd74fb772f50c50a
2017-04-11 16:03:46 +00:00
Geoffrey Pitsch
752567179c Merge "Fix race condition in removeForegroundServiceFlag" into oc-dev
am: f4077aa374

Change-Id: I0ba4947f1cf1c67a39333c1aff5aacc3c5131083
2017-04-11 15:46:01 +00:00
Andreas Gampe
5e81820123 Merge "OtaDexOptService: Log post-reboot moves" am: ac293515b3
am: 4e04b5882f

Change-Id: I6a94ee15c203a5386c5e92f49b65544d75d55e18
2017-04-11 15:38:05 +00:00
Geoffrey Pitsch
cadb5dc537 Toast whenever a notification fails to post
Help developers find their missing notifications.
Incremental change to move towards an all-channel world.

Bug: 35378789
Test: runtest systemui-notification
Change-Id: Ie3f3e307ff1f6450f5fc8eb9e34e5f566614c1f9
2017-04-11 11:35:02 -04:00
Soonil Nagarkar
6b3be41e30 Fix foreground importance bug in LocationManagerService.
Bug: 37121975
Test: tested locally
Change-Id: I2563408d10edfac74d04d68116cbf2a2ac66e9a3
(cherry picked from commit ebda0286d4326c67d9e13202180f37ee41b5323a)
2017-04-11 15:33:57 +00:00
TreeHugger Robot
f4077aa374 Merge "Fix race condition in removeForegroundServiceFlag" into oc-dev 2017-04-11 15:32:12 +00:00
Andreas Gampe
3e1b6ad1e3 OtaDexOptService: Log post-reboot moves
Disable artifact checks for non-upgrade booting. Log the number of
successfully move artifacts.

(cherry picked from commit 95349c0e9664ec6392a959893f96390310e3b8a4)

Bug: 37158297
Test: m
Test: manual
Change-Id: Ic81531950582ce937e2e3b7815fb9132888d9a42
2017-04-11 08:24:37 -07:00
Wale Ogunwale
a6f3d1b77a Merge "Don't ensure config for activity that is about to be invisible" into oc-dev
am: 2d008a5fc1

Change-Id: I1cee8d490faf07b8b593543b53694ede3f177f57
2017-04-11 12:56:19 +00:00
TreeHugger Robot
2d008a5fc1 Merge "Don't ensure config for activity that is about to be invisible" into oc-dev 2017-04-11 12:47:00 +00:00
Svet Ganov
de369349a0 Merge "Move API for disabling an autofill service to the manager" into oc-dev
am: 7a6df3b777

Change-Id: I4805b84a3f585b6828307a32dd6d475e8d94de1a
2017-04-11 06:17:05 +00:00
TreeHugger Robot
7a6df3b777 Merge "Move API for disabling an autofill service to the manager" into oc-dev 2017-04-11 06:10:13 +00:00
Hugo Benichi
b03272c9b5 Captive portal: fix probe urls at network creation
This patch changes how url configuration values for captive portal
detection are read: instead of re-reading the settings at every probe
detection, the settings are read once when the NetworkMonitor associated
to a network is created.

If the settings are updated, the new values are picked up by new
networks, but not by existing networks. Since captive portal detection
is most important when joining WiFi networks, the newest available
settings values will still be used.

This change prepares introducing further changes for rotating probe
urls. Especially it helps making the detection strategy stateful with
respect to the lifecycle of a single NetworkMonitor.

Test: built, flashed, tested manually with various portal networks
Bug: 36532213
Change-Id: I71cc8bb8b996462f27f50798d67bceee5ffb898d
2017-04-11 13:23:38 +09:00
Jaewan Kim
329b35f231 Add documentation for 'am start-foreground-service'
Bug: 35263881
Test: manual (Checked the am help)
Change-Id: Ibd7bbfdb65cf61b7e86d861d5a4f85ea57377f22
2017-04-11 11:20:37 +09:00
Jaekyun Seok
42d53f6b18 Bring back the priority feature for static RRO
Supporting the priority feature is requested by partners because they
want to layer RRO for their customers.
Applying the priority feature on non-static RRO isn't feasible because
their priority should be managed directly by users.

Test: building succeeded and tested on sailfish device.
Bug: 37185740
Change-Id: I8ef83c5e3178bd395ec7e6498764a535f24ef235
2017-04-11 10:29:34 +09:00
Christopher Tate
bf5d13c19b Merge "Ensure the system boots with a halfway sane time/date" into oc-dev
am: 45fe7eef89

Change-Id: I66e62280f5cb406535a7fd10990b699671e2c736
2017-04-11 01:19:34 +00:00
Jorim Jaggi
30d64f3a93 Revert "Revert "Handle case when snapshot dimensions don't match""
This reverts commit ba53d8ae410976709e1413b74173a791e8dead15.

Also fixes that we always had a size mismatch.

Test: TaskSnapshotSurfaceTest
Test: Open app in different orientation than snapshot, make sure
looks ok.

Bug: 36991071
Change-Id: If572b68fd72cec7679984fdff0be5905caba69f4
Fixes: 36703868
2017-04-10 18:10:44 -07:00
Fyodor Kupolov
101a03b58c Merge "Cache mEphemeralAppsDisabled state" into oc-dev
am: aedca2e55d

Change-Id: I18518d886b623fc8afc8daf2926f4bd2374ea6fa
2017-04-11 01:09:00 +00:00
TreeHugger Robot
45fe7eef89 Merge "Ensure the system boots with a halfway sane time/date" into oc-dev 2017-04-11 01:05:43 +00:00
Jaekyun Seok
467ef375b7 Rebase enabled overlays for every PackageParser.generateActivityInfo() call
PackageParser.generateActivityInfo() generates ApplicationInfo as well.
So enabled overlays should be rebased for the ApplicationInfo to keep
the overlay path info correctly.

Test: building succeeded and tested on sailfish device.
Bug: 37179769
Change-Id: I12727fd27c1d4cf37ad63b333792108a82efccd6
2017-04-11 09:53:42 +09:00
Svet Ganov
f20a037ba2 Move API for disabling an autofill service to the manager
Test: the topic has a CTS test

bug:37170723

Change-Id: I2be18968ea8df0fd3fb070fe2efc3e811b0e5a76
2017-04-10 17:43:44 -07:00
TreeHugger Robot
aedca2e55d Merge "Cache mEphemeralAppsDisabled state" into oc-dev 2017-04-11 00:43:39 +00:00
Adam Lesinski
475752ad50 Merge "OverlayManagerService: Make broadcasts/updates explicit" into oc-dev
am: ec8f353668

Change-Id: Ied4fc0b2fe79c69e6fd1b8677a5d615300119b39
2017-04-11 00:13:41 +00:00
Adam Lesinski
ec8f353668 Merge "OverlayManagerService: Make broadcasts/updates explicit" into oc-dev 2017-04-11 00:04:41 +00:00
Daniel Nishi
fcf746b27c Merge "Fix crash when measuring storage." into oc-dev
am: a6bd937c93

Change-Id: I33eaab3e22b9e3de0db3e5a9328cb52bf93113ab
2017-04-10 23:27:51 +00:00
Daniel Nishi
a6bd937c93 Merge "Fix crash when measuring storage." into oc-dev 2017-04-10 23:12:21 +00:00
Andreas Gampe
95349c0e96 OtaDexOptService: Log post-reboot moves
Disable artifact checks for non-upgrade booting. Log the number of
successfully move artifacts.

Bug: 37158297
Test: m
Test: manual
Change-Id: Ic81531950582ce937e2e3b7815fb9132888d9a42
2017-04-10 15:48:50 -07:00
Sudheer Shanka
9260d568da Fix the issue of voice interactor getting reset after reboot.
Bug: 35308046
Test: manual
Change-Id: I71ca106f1186e3cebc7899eca30f7b7746fe1e6c
2017-04-10 15:32:52 -07:00
Todd Kennedy
7cf918ed2d add debug logs
Test: TreeHugger
Change-Id: I4b12acb43aa4af7a5587842fe5e2528fee8f4fed
2017-04-10 15:11:22 -07:00
Todd Kennedy
41d82e619f Merge "send broadcast to the right users" into oc-dev
am: 4a30689414

Change-Id: I25077adff02d451493f487432a174aa3fbbff2d8
2017-04-10 20:33:48 +00:00
Wale Ogunwale
aba6084239 Merge "Do not set outActivity if value is null." into oc-dev
am: a09111e745

Change-Id: I5bae5f17d2b50f845f1b147458b3351bbf99b615
2017-04-10 20:32:17 +00:00
Todd Kennedy
4a30689414 Merge "send broadcast to the right users" into oc-dev 2017-04-10 20:10:17 +00:00
Wale Ogunwale
a09111e745 Merge "Do not set outActivity if value is null." into oc-dev 2017-04-10 20:04:10 +00:00
Fyodor Kupolov
433d68713f Cache mEphemeralAppsDisabled state
Init mEphemeralAppsDisabled in systemReady when settings provider
is available.

Registered content observers for ENABLE_EPHEMERAL_FEATURE and
WEB_ACTION_ENABLED.

Test: manual triggering enable_ephemeral_feature=1/0
Fixes: 36869938
Fixes: 36895304
Change-Id: I0051c45bb209d86041b967a409f8a95967df21dc
2017-04-10 12:53:47 -07:00
Christopher Tate
24757146d1 Ensure the system boots with a halfway sane time/date
Just in case the kernel or vendor glue don't initialize the system time
sensibly, we now make sure the current time at boot is at least up to the
build time of the system disk image.

Bug 36736983
Test: manual

Change-Id: I46f776300ca4f5ad01396fc17c83fc833e1713f9
2017-04-10 12:44:09 -07:00
Sudheer Shanka
1bbe822a5c Merge "NetworkPolicyManagerService: fix deadlock" into oc-dev
am: 73edcd7328

Change-Id: I8428663ed86cc4257b24ad10488d69b89666537d
2017-04-10 19:37:21 +00:00
Andrii Kulian
f44551b505 Merge "Fix activity move between displays" into oc-dev
am: c2ec7bf965

Change-Id: I7831bea7832d4a0ddd1f841c9ce2cce5bda403c7
2017-04-10 19:35:28 +00:00
Sudheer Shanka
73edcd7328 Merge "NetworkPolicyManagerService: fix deadlock" into oc-dev 2017-04-10 19:28:31 +00:00
Andrii Kulian
c2ec7bf965 Merge "Fix activity move between displays" into oc-dev 2017-04-10 19:20:37 +00:00
Dmitry Dementyev
a7dd87ce2d Merge "Make visible only accounts for which authenticator supports contacts operations for callers with READ_CONTACTS permission." into oc-dev
am: d401163599

Change-Id: Ia6c1d5008ed4884f7214d589f1d2b4e02413cf8e
2017-04-10 19:14:52 +00:00
Todd Kennedy
4efa14c784 send broadcast to the right users
Change-Id: Ibda2d922cd58d6ca1c1a4ecdccaa25e5c71c6320
Fixes: 37192695
Test: manual; create restricted profile and see that users haven't been removed
2017-04-10 12:12:11 -07:00
Jerry Zhang
0015a15353 Merge "Just broadcast intent to bring up MTP/PTP as soon as switching function" into oc-dev 2017-04-10 18:52:00 +00:00