33912 Commits

Author SHA1 Message Date
TreeHugger Robot
70c429d37a Merge "SettingsLib: wifi: encapsulate Passpoint configuration in AccessPoint" into oc-dev 2017-03-31 17:54:17 +00:00
Jason Monk
110e5f6c16 QS: Add transient animations for bluetooth and wifi
Test: runtest systemui
Change-Id: I04a81e1b36a6595bfb102603ad07b079c8b0ee77
Fixes: 26781226
2017-03-31 13:51:03 -04:00
Peter Qiu
ced37dba7b SettingsLib: wifi: encapsulate Passpoint configuration in AccessPoint
The configurations that are managed by "Saved Networks" page are
centered around the abstraction of AccessPoint.  Since we will
need to manage Passpoint configuration in the "Saved Networks"
(for configuration removal), encapsulate necessary information
in an AccessPoint for a Passpoint configuration.

Bug: 34207710
Test: manual test
Test: runtest --path
      frameworks/base/packages/SettingsLib/tests/integ/src/com/android/settingslib/wifi/AccessPointTest.java
Change-Id: Ide556f5ec6c4ef9e1f82016efe17dc9860f298de
2017-03-31 10:50:45 -07:00
Jason Monk
e645aee45a QS: Add transient icon for hotspot
Will make the loading time more clear.

Test: visual
Bug: 32270851
Change-Id: I0ea7591da132ff65fb7fc16b03b2891891e66598
2017-03-31 13:49:21 -04:00
Winson Chung
ac52f2892d Ensure we show the PiP menu in response to KEYCODE_WINDOW.
Bug: 36687605
Test: android.server.cts.ActivityManagerPinnedStackTests
Test: #testWindowButtonEntersPip
Change-Id: I0bb35fd666eb6a438e4676267f6726b44bffb3db
2017-03-31 10:42:53 -07:00
Adrian Roos
da11e9391b Merge "A11y: Prefer EXTRA_TITLE to ticker for status bar icon content description" into oc-dev
am: f667aebe20

Change-Id: Iae45c9efabc48d27d11211a63e50bf94abe98300
2017-03-31 17:39:40 +00:00
Mady Mellor
722ec3df34 Merge "Update PIP dismiss to show scrim + info text at the bottom of the screen" into oc-dev
am: 8565eab156

Change-Id: I6ea47f95853616bb9198e02606d62a57d25e993a
2017-03-31 17:35:28 +00:00
Adrian Roos
f667aebe20 Merge "A11y: Prefer EXTRA_TITLE to ticker for status bar icon content description" into oc-dev 2017-03-31 17:31:50 +00:00
Mady Mellor
8565eab156 Merge "Update PIP dismiss to show scrim + info text at the bottom of the screen" into oc-dev 2017-03-31 17:27:41 +00:00
Karthik Ravi Shankar
ebc1b48922 Allow shell uid to access Vr APIs
Some of the Vr APIs in VrManagerService need to be accessed via shell to
be used for testing and for easy access. Add
android.permission.RESTRICTED_VR_ACCESS to shell uid.

Bug: 36071574
Test: adb shell vr set-persistent-vr-mode-enabled true
      adb shell dumpsys vrmanager
      >> Persistent VR mode is currently: enabled
      adb shell vr set-persistent-vr-mode-enabled false
      adb shell dumpsys vrmanager
      >> Persistent VR mode is currently: disabled

Change-Id: I486fa19f93d5c6999aa479fdf7e5f2f48f765240
Signed-off-by: Karthik Ravi Shankar <karthikrs@google.com>
2017-03-31 08:37:13 -07:00
Jason Monk
ae39cb9c60 Fix tuner sub-screens attach
Seems that when preferences are attached has changed, so we need to
make sure any sub preference screense explicitly own their preferences.

Test: manual
Change-Id: Id28c30367417fc7dbe74c3970a8e19a031ea6d8d
Fixes: 36766199
2017-03-31 11:31:25 -04:00
Jason Monk
6eb906ecc3 Fix losing status bar icons on config changes
The DarkIconManager was not correctly calling set when icons
were added, leaving them blank after a config change until a new
set came in.

Do some refactoring to fix this and make it more testable.

Test: runtest systemui
Change-Id: I0b231021f2ce7d82a3f84ebb281b4e4fc902a0aa
Fixes: 35367550
2017-03-31 10:53:29 -04:00
Bill Yi
b12c4e6435 Import translations. DO NOT MERGE
Change-Id: Ic5ddb29c72414f5b06e61f9bb13b69489b2ac715
Auto-generated-cl: translation import
2017-03-31 02:03:59 -07:00
Bill Yi
a06a809423 Import translations. DO NOT MERGE
Change-Id: I0464cc4b75e0258a5928867ab11e9c47a2b69319
Auto-generated-cl: translation import
2017-03-31 00:57:17 -07:00
Bill Yi
8e79b3a9a0 Import translations. DO NOT MERGE
Change-Id: I789e7f6f9910fb2bfceec085555a42335853f1dd
Auto-generated-cl: translation import
2017-03-31 00:39:13 -07:00
Bill Yi
c14149a06a Import translations. DO NOT MERGE
Change-Id: I77938df9a45d62d2abf436670857c2a594b1533b
Auto-generated-cl: translation import
2017-03-31 00:29:46 -07:00
Adrian Roos
6e782a5e4e A11y: Prefer EXTRA_TITLE to ticker for status bar icon content description
Change-Id: I08d5439f0f593d32044d5a59fc7b8f24e33a15a9
Test: manual - post notification, check that Talkback utterance is correct on status bar icon.
Fixes: 30739573
2017-03-30 18:54:01 -07:00
Mady Mellor
60421c9d45 Update PIP dismiss to show scrim + info text at the bottom of the screen
- Rather than testing how far off screen the PIP is, instead tests how far
  past the nav bar / on screen bars the PIP is to determine if it is a
  dismiss
- When dragging PIP around screen, display info text + scrim at bottom
  these are above the PIP in z-order
- On lift up or when PIP is dismissed, info text + scrim also hide
- Alters dismiss animation to use end point on trajectory of finger and
  use FlingAnimationUtils when flinging

Test: Drag PIP around screen, notice dismiss scrim + text appear, dismiss
      PIP and scrim / text also disappear
Bug: 35358628
Change-Id: Ibc0f6a884903f7d1b3ca2fd5c20647b4acf15a71
2017-03-30 17:30:38 -07:00
Bill Yi
77b4933090 Import translations. DO NOT MERGE
Change-Id: Ic5a973c3de1b80ab3ed1d4cea084d6bb5cb52b0a
Auto-generated-cl: translation import
2017-03-30 14:15:33 -07:00
Winson Chung
1176231c27 Merge "Tweaking PiP for accessibility." into oc-dev
am: d584a5e65b

Change-Id: I3831451d1a668bbfcd69bddd84934961da167bed
2017-03-30 20:05:12 +00:00
TreeHugger Robot
d584a5e65b Merge "Tweaking PiP for accessibility." into oc-dev 2017-03-30 19:56:39 +00:00
Jason Monk
1cbf5fbd7a Switch cast over to support library dialog
Makes UI more consistent and removes the cast detail panel from QS.

Test: visual
Change-Id: I9a70b9695511c5f1e4235a838a071079506963a6
Fixes: 35407111
2017-03-30 15:23:43 -04:00
Jason Monk
6c1e6ca48e Disable sounds on menu button
They are played by the app receiving them when it receives them,
so don't send them as it will cause multiple click sounds.

Test: Auditory
Change-Id: Ib8b977bb775c86eb1fb9ec7426f7d93e399b411e
Fixes: 34099789
2017-03-30 14:12:13 -04:00
Winson Chung
0f873de5ff Tweaking PiP for accessibility.
- Disabling timeout when the PiP menu is invoked via an accessibility event
- Increasing default duration before menu times out and collapses
- Fixing issue where temporary bundle data was being clobbered

Bug: 36103023
Test: Launch PiP activity with accessibility, ensure menu does not time out
Change-Id: I4beda18ef2fb2e2b638b0ff6bac9a71ed1986639
2017-03-30 10:26:48 -07:00
Geoffrey Pitsch
8637cbeac5 Merge "Wait to unlock before changing notification importance" into oc-dev
am: a07ce03d3c

Change-Id: I243682f02fe2c5de131e8aaed4dd2a499cc3f8e1
2017-03-30 16:18:03 +00:00
TreeHugger Robot
a07ce03d3c Merge "Wait to unlock before changing notification importance" into oc-dev 2017-03-30 16:14:03 +00:00
Geoffrey Pitsch
5278d3d38c Wait to unlock before changing notification importance
Test: runtest systemui
Change-Id: I66614de96e0a5c725ac6f6e7b76f64b39326ba6b
Fixes: 36264464
2017-03-30 09:55:51 -04:00
TreeHugger Robot
5acdc8c3d5 Merge "Import translations. DO NOT MERGE" into oc-dev 2017-03-30 01:30:09 +00:00
TreeHugger Robot
ce3cf36652 Merge "Make public getFragments() and onGetLayoutInflater() methods" into oc-dev 2017-03-30 01:26:13 +00:00
TreeHugger Robot
4e7bc119ae Merge "Add new internal API: enableOptionalCodecs()/disableOptionalCodecs()" into oc-dev 2017-03-30 01:17:23 +00:00
Pavlin Radoslavov
011597b5a9 Add new internal API: enableOptionalCodecs()/disableOptionalCodecs()
This API can be used to enable the optional codecs, or disable them
and use only the mandatory SBC.
Internally, it is implemented by raising the SBC priority to
highest (so SBC will be used/selected), or reducing the SBC priority
to its default value (lowest).

Test: A2DP streaming and enabling/disabling/selecting optional codecs
Bug: 35873828
Change-Id: Ia82036ac33590a3a402b1f5a36102264d47a9029
(cherry picked from commit 61075105ca95a2389c23733bf72b5d49b0da4b28)
2017-03-29 15:58:25 -07:00
TreeHugger Robot
834c260e98 Merge "Fix battery warning color lookup" into oc-dev 2017-03-29 22:50:31 +00:00
TreeHugger Robot
f1cc8b82b3 Merge "wifi: add test for tracking Passpoint AP on devices with Passpoint disabled" into oc-dev 2017-03-29 22:50:03 +00:00
Pavlin Radoslavov
25105f6561 Merge "Add new internal API: enableOptionalCodecs()/disableOptionalCodecs()"
am: 3c7fce3579

Change-Id: Ic8483107e72a61e8b07f26f343e36254fe57cfd9
2017-03-29 22:47:28 +00:00
Bill Yi
f3491a913b Import translations. DO NOT MERGE
Change-Id: If44ef7a09f2efa1aea4792fe2e938fcc86b7a7f0
Auto-generated-cl: translation import
2017-03-29 15:41:14 -07:00
George Mount
c7146beabe Make public getFragments() and onGetLayoutInflater() methods
Bug 34703669
Test: I846ef668e3dd7d664cfb56d2b9400467ba9b79f4
Change-Id: Ie202960ada86b25e964f98a639b5f5740c8fdb79
2017-03-29 14:58:42 -07:00
TreeHugger Robot
c463bed8db Merge "Make sure TileServices get onTileRemoved on reset" into oc-dev 2017-03-29 20:04:04 +00:00
TreeHugger Robot
c16142239f Merge "Removing duplicate string in Recents." into oc-dev 2017-03-29 19:51:57 +00:00
TreeHugger Robot
477b1b0361 Merge "Dismiss the PiP if user changes setting while PiP is open." into oc-dev 2017-03-29 19:40:57 +00:00
Jason Monk
d866b8aa03 Fix battery icon dark initialization
Test: visual
Change-Id: I333436dd0ffb4a7791a98caa53054d01e9ff18ef
Fixes: 36443516
2017-03-29 15:30:44 -04:00
Jason Monk
7c8564e6ad Fix battery warning color lookup
Test: visual
Change-Id: Ia3db18f27d83c079b19fc555387e1f7be8963298
Fixes: 36552063
2017-03-29 15:21:36 -04:00
TreeHugger Robot
9c847fdc7e Merge "Removing PiP notification channel." into oc-dev 2017-03-29 19:13:13 +00:00
Winson Chung
bd0fdb19fd Merge "Prevent invisible PiP menu activity from having touch focus." into oc-dev 2017-03-29 18:18:11 +00:00
Pavlin Radoslavov
61075105ca Add new internal API: enableOptionalCodecs()/disableOptionalCodecs()
This API can be used to enable the optional codecs, or disable them
and use only the mandatory SBC.
Internally, it is implemented by raising the SBC priority to
highest (so SBC will be used/selected), or reducing the SBC priority
to its default value (lowest).

Test: A2DP streaming and enabling/disabling/selecting optional codecs
Bug: 35873828
Change-Id: Ia82036ac33590a3a402b1f5a36102264d47a9029
2017-03-29 10:58:48 -07:00
Winson Chung
26db39793e Prevent invisible PiP menu activity from having touch focus.
- Mark the decor view as invisible when the the PiP menu activity is
  hidden.  We don't call Activity.setVisible() as that alters other
  internal states that affect the system's understanding of whether
  the activity will draw or not.

Bug: 36225602
Test: android.server.cts.ActivityManagerPinnedStackTests

Change-Id: I6b1ed7098e1f0ff427f0655c45e566ca60979623
(cherry picked from commit 8c8ba19e0d3214f28dccec91549df9c3cd64ae10)
2017-03-29 17:28:56 +00:00
Winson Chung
664758cf0a Dismiss the PiP if user changes setting while PiP is open.
Bug: 36070720
Test: Open PiP, launch setting, disable PiP for package
Change-Id: Ia193b079d6ae27fc5fb5b1e8950cf42dfdd28450
2017-03-29 10:28:19 -07:00
Jason Monk
903556b162 Make sure TileServices get onTileRemoved on reset
Test: runtest systemui
Change-Id: Ic23eb6759f99c9cfe45ab975b3bb723dae56e0d8
Fixes: 34481238
2017-03-29 13:13:51 -04:00
Winson Chung
5cd54168e7 Removing PiP notification channel.
- Using the General channel instead.

Bug: 36670134
Test: Ensure no PiP channel in settings
Change-Id: If186a2565bb6911c6e15b25788908fd909a54287
2017-03-29 09:57:43 -07:00
Philip P. Moltmann
d0e44c5ee3 Do not allow printing until preview is updated
Otherwise we might end up in the situation where we print something that
was not previewed.
This is of course bad for the user as he prints something he has not seen.
It is also bad for the print spooler as in the case the layout did not
describe the amount of pages, we do not know the number of pages available
until the update is complete.

We now allow changing of printer at any time unless printing is in final
stage. If we don't allow this the changing of printer would be blocked
until the intial document was written which might take some time.

Fixes: 36599750
Test: cts-tradefed run cts-dev -m Print
Change-Id: I93e910c02f2a770008b845028f0adf17b3d410e2
(cherry picked from commit 378cddbc41dae55e9a11faaa251b80fb90878b34)
2017-03-29 16:13:32 +00:00
Tony Mak
ec319aba34 Introduce AMS.getLastResumedActivityUserId to fix work profile icon issue
Problem:
Work profile status bar icon feeature is relied on two callbacks
1. onForegroundProfileSwitch  (AMS.setResumedActivityLocked)
2. appTransitionStarting (WMS)

We assume callback 1 is always called before 2, but it is not the case.
These two callbacks are triggered by two handlers in two different threads,
and hence race condition happens.

Solution:
Not rely on onForegroundProfileSwitch to update mManagedProfileFocused
flag anymore. Query getLastResumedActivityUserId in appTransitionStarting.
Also, make sure mLastResumedActivity is updated before sending message
to WMS in setResumedActivityLocked.

Test: Start a work app, observe that the work icon is shown.
Test: Start a personal app, observe that work icon is gone.
Test: Dock the work app, tap on it (give it focus), observe that work
      icon is shown.
Test: Start a work app, switch user, can see the icon is gone. Switch back,
      icon is back.

Bug: 34159089

Change-Id: I2cee141d18e8b7d5607b26dd7a2fd5bc9cd0ebb3
2017-03-29 10:03:39 +00:00