33610 Commits

Author SHA1 Message Date
Simran Basi
473a16e492 frameworks/base: Add APCT tests to the device-tests suite.
This CL adds the APCT tests within this project to
a similar suite as CTS known as device-tests.

The current method of running APCT tests in the infrastructure
is unaffected.

Bug: 35882476
Test: `make dist device-tests -j` and local builds of
      continuous_instrumentation_tests & continuous_native_tests

Change-Id: Ifa382fe691842c1cd76897775b9e2a1653449eb5
2017-03-15 14:46:27 -07:00
fionaxu
da578042ae integrate portal webview to the default app
Based on the UX review feedback, we plan to implement portal webview
function inside the carrier default app instead of reusing the existing
portal app. This will give us more flexibility and control, also will
improve UX flow by getting rid of the some unwanted dialogues.

Test: Manual
Bug: 36002256
Change-Id: I2627d5a43039ce433006c058bb4f2c1a39113e59
2017-03-15 14:42:55 -07:00
fionaxu
6bb41a42cb integrate portal webview to the default app
Based on the UX review feedback, we plan to implement portal webview
function inside the carrier default app instead of reusing the existing
portal app. This will give us more flexibility and control, also will
improve UX flow by getting rid of the some unwanted dialogues.

new added CaptivePortalLoginActivity is a copy paste from
com.android.captiveportallogin/CaptivePortalLoginActivity combined
with logic from deleted LaunchCaptivePortalActivity.
All webview UI was inherited from com.android.captiveportal

Test: Manual
Bug: 36002256
Merged-in: I2627d5a43039ce433006c058bb4f2c1a39113e59
Change-Id: If422fa12c5f24d9b9e2c9380b3edf94df74bb85f
2017-03-15 14:38:43 -07:00
Casey Burkhardt
74922c63e1 Display magnification via the nav bar Accessibility Button
Adds support for invoking display magnification by first selecting
the Accessibility Button, then touching an area of the screen to
magnify.

Bug: 30960346
Test: Manual
Change-Id: Ifd8a355562f204182e34bd37f71a3637d85cf0e1
2017-03-15 14:12:51 -07:00
Chad Brubaker
67383eda56 Merge "Expose settings provider to Instant Apps" 2017-03-15 18:11:59 +00:00
Mady Mellor
81d406104a Enables drag to dismiss for PiP and adds a dark scrim when dismissing
- Adds a scrim that fades in as the PiP is dragged past the bottom movement
  bounds.
- Tweaks the values for minimizing the PiP and dismissing the PiP
- Fixes an issue where the PiP could be minimized in the bottom corners
  of the screen

Test: Manual - drag PiP to bottom of screen to dismiss or swipe down on
PiP when it's at the bottom of the screen
Bug: 35358768
Bug: 35358628
Change-Id: Ib4ad5ed7094fef76ea979b46ea7e03d746625d00
2017-03-15 11:00:32 -07:00
TreeHugger Robot
7d754b150f Merge "Fix duplicate status bars once and for all" 2017-03-15 17:07:39 +00:00
TreeHugger Robot
13b13f0816 Merge "Remove qs_footer_dialog_network_logging_icon_alpha" 2017-03-15 15:47:03 +00:00
Jason Monk
0a7d9f275e Fix duplicate status bars once and for all
Save the state when the fragment is getting re-created so we come
back up in the same state we left in.

Fixes: 36082443
Test: Change density using "adb shell wm density"
Change-Id: I531de728b1f4bf59d4def7ebc5562b3a1ee6694b
2017-03-15 11:03:42 -04:00
Jason Monk
60c5cf2e69 Fix light status bar transition
It always thought the keyguard was going away which was messing with
a bunch of transitions.

Change-Id: Ie50fe71e3f75aa123db7e147ac0402d459b80536
Fixes: 34975365
Test: Open app with light status bar
2017-03-15 10:26:37 -04:00
Robin Lee
5760fd9b9c Remove qs_footer_dialog_network_logging_icon_alpha
This washes out the network logging icon in the network monitoring
dialog, making it look strange compared to the dark VPN key.

Fix: 35620542
Test: inspection of dialog
Change-Id: I72bc6337b88b16235dab7b48d11efee4410ede5e
2017-03-15 14:06:59 +00:00
TreeHugger Robot
2be4186842 Merge "Fix the number of levels returned by getLevels()." 2017-03-15 01:45:33 +00:00
TreeHugger Robot
f753b30580 Merge changes from topic 'WifiDetails'
* changes:
  Consolidate getRssi logic to return mRssi.
  Necessary AccessPoint visibility change for WifiNetworkDetailsFragment.
2017-03-15 01:03:23 +00:00
TreeHugger Robot
eb4be4d362 Merge "Permission enforcement for A11y volume changes" 2017-03-15 01:00:35 +00:00
TreeHugger Robot
b40c82f230 Merge "Move out test utilities to a Testables library" 2017-03-15 00:55:20 +00:00
Adrian Roos
48e57c9aab Merge "Fix flakey KeyguardIndicationControllerTest" 2017-03-14 23:43:07 +00:00
Sundeep Ghuman
aaa8a1b54a Fix the number of levels returned by getLevels().
This was previously out of sync with WifiManager.RSSI_LEVELS which
caused UI issues where the wrong number of bars were shown in various
places. This is the permanent fix to a previous temporary fix.

Bug: 1948619
Test: runtest --path
frameworks/base/packages/SettingsLib/tests/integ/src/com/android/settingslib/wifi/AccessPointTest.java

Change-Id: Iadb2a6131ee9fbc4f297766d0bc3bc82eca40a4d
2017-03-14 15:43:17 -07:00
Sundeep Ghuman
54bdcfa081 Consolidate getRssi logic to return mRssi.
Changed previous getRssi method to updateeRssi in order to clarify
process, and also changed logic to return current mRssi when the given
AP is active. mRssi is set directly from WifiInfo for active networks.
For non-active networks we return the highest Rssi for any recently seen
BSSID (multiple APs with the same SSID are grouped together).

Change getSeen to updateSeen for consistency, although seen is never
used anywhere.

Also fixes b/34889252.

Bug: b/36077865
Test: runtest --path
frameworks/base/packages/SettingsLib/tests/integ/src/com/android/settingslib/wifi/AccessPointTest.java

Change-Id: Ic52df41b8eb317e83d835c745b404007a53cf5d7
2017-03-14 15:43:17 -07:00
Sundeep Ghuman
dc6cf4b683 Necessary AccessPoint visibility change for WifiNetworkDetailsFragment.
Refactor constant name in WifiTracker for readability.

Bug: 34713316
Test: runtest --path
frameworks/base/packages/SettingsLib/tests/integ/src/com/android/settingslib/wifi/AccessPointTest.java
runtest --path
frameworks/base/packages/SettingsLib/tests/integ/src/com/android/settingslib/wifi/WifiTrackerTest.java

Change-Id: I41b0d69303d0452e2c2c22bcbddc34ae3932e99e
2017-03-14 15:43:07 -07:00
Adrian Roos
af45b60e90 Fix flakey KeyguardIndicationControllerTest
The test in question would pass only when the device was
not charging, because the KeyguardIndicationController registers
itself with the KeyguardUpdateMonitor and shows indications when
the device starts charging.

Fixed by not registering the controller with the KeyguardUpdateMonitor
and instead driving the controller's callback directly.

Change-Id: I6828a97a36572be9e7520ce9a82afddf474d4008
Fixes: 36211361
Test: runtest -x frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/KeyguardIndicationControllerTest.java -m transientIndication_releasesWakeLock_afterHidingDelayed
2017-03-14 14:21:40 -07:00
Jason Monk
340b0e5216 Move out test utilities to a Testables library
Test: runtest --path frameworks/base/tests/testablets/tests
        && runtest systemui

Change-Id: Ideef4aef5f26136b1741c556b9be5884f38842a0
2017-03-14 17:17:54 -04:00
Doris Ling
0acbdda13e Merge "Update sort order for settings category tiles." 2017-03-14 20:20:43 +00:00
Peter Qiu
de91bfd277 Osu: temporarily comment out the usage of deprecated intent definitions
am: 06b63dcb9f

Change-Id: I6c418dbecc72ac5c4e245fff06fabfe23b443c23
2017-03-14 16:21:06 +00:00
Geoffrey Pitsch
a7c9a5a518 Merge "@Ignore for KeyguardControllerTest" 2017-03-14 16:15:32 +00:00
Treehugger Robot
5df03b3d74 Merge changes from topics 'Passpoint API update', 'Passpoint intent update'
* changes:
  hotspot2: update Passpoint configuration management APIs
  hotspot2: hide validate method for Passpoint configuration
  Osu: temporarily comment out the usage of deprecated intent definitions
  hotspot2: update Passpoint intent definitions
2017-03-14 16:07:47 +00:00
Dmitri Plotnikov
4fd2455141 Merge "Enabling bugreport notifications on TV" 2017-03-14 15:28:16 +00:00
Dmitri Plotnikov
ce42134828 Enabling bugreport notifications on TV
Bug: 36175844
Test: by generating a bugreport (long-press DPAD_CENTER + BACK)
Test: verified that BugreportProgressServiceTest still passes
Change-Id: If5bf53512c60a359838aa76dc61b90d4e67a45df
2017-03-14 08:19:13 -07:00
Geoffrey Pitsch
164c648d18 @Ignore for KeyguardControllerTest
transientIndication_releasesWakeLock_afterHidingDelayed is slightly
flaky.

Test: runtest systemui
Bug: 36211361
Change-Id: I0e71c445efae54c45cca418653a8d6df2888d722
2017-03-14 10:52:58 -04:00
TreeHugger Robot
376c6471da Merge "Associate rotation watchers with displays" 2017-03-14 08:30:05 +00:00
Donghyun Cho
f24d7255c2 Merge "CEC: Revisit the behavior of HDMI_SYSTEM_AUDIO_ENABLED" 2017-03-14 04:54:38 +00:00
Andrii Kulian
35fa3c26ad Associate rotation watchers with displays
Displays can be rotated separately and rotation watcher clients
are only interested in rotation of some specific display. This CL
adds displayId to rotation watchers and only informs them about
changes on their display.

Bug: 34242678
Test: Manual and debug.
Change-Id: If0f03804da0392c2b14a4e7c2d6a06068ad8760b
2017-03-13 18:27:24 -07:00
fionaxu
5b30456b44 Merge "carrier default app notification polish" am: b2bb98e62d am: 921a49f7f8
am: 7c825ee40d

Change-Id: I2542b486de47071837407d1bb94ba89da0fb283a
2017-03-14 01:20:28 +00:00
fionaxu
921a49f7f8 Merge "carrier default app notification polish"
am: b2bb98e62d

Change-Id: I78101dd7dc4bd7f222c5e6cc095b7179ce03f362
2017-03-14 01:10:51 +00:00
TreeHugger Robot
84505af39b Merge "Provide proper rect in animation spec for transition to assistant stack." 2017-03-14 01:08:33 +00:00
Jean-Michel Trivi
ab2d9315d1 Permission enforcement for A11y volume changes
Make modifying the STREAM_ACCESSIBILITY volume conditional
  to have the BIND_ACCESSIBILITY_SERVICE permission.
Add BIND_ACCESSIBILITY_SERVICE permission to sysUI.

Test: cts-tradefed run cts -m CtsMediaTestCases -t android.media.cts.AudioManagerTest#testAccessibilityVolume
Bug: 34379420
Bug: 30448020
Change-Id: I9f26affccd953bd8473d06822857edf92fef4ba8
2017-03-14 00:26:16 +00:00
fionaxu
7c4ad78907 carrier default app notification polish
change notification string and app name

Bug: 36002256
Test: Manual
Change-Id: Iec2658850522585157bdc7edd7330ac930bf751d
2017-03-13 16:09:43 -07:00
Winson Chung
a0dde8ab20 Provide proper rect in animation spec for transition to assistant stack.
Bug: 35363819
Test: Enter recents from the assistant and relaunch it.
Change-Id: I498d914b31bed32e206e1eab3c97a7266dae8334
2017-03-13 14:44:46 -07:00
Doris Ling
ce31159be7 Update sort order for settings category tiles.
- change the sort to first compare priority, then compare package name.
- do not normalize the tile's priority for all package.

Change-Id: I5501a8c3d5ca0a7f9e100411348d28cfe373c87a
Fix: 35928954
Test: make RunSettingsLibRoboTests
2017-03-13 12:56:10 -07:00
TreeHugger Robot
37fb496763 Merge "Refactoring accessibility class out to own file." 2017-03-13 19:54:37 +00:00
TreeHugger Robot
fa71ecb08a Merge "Move battery percent constant to Settings" 2017-03-13 19:09:52 +00:00
Peter Qiu
06b63dcb9f Osu: temporarily comment out the usage of deprecated intent definitions
Bug: 35857805
Test: mmma frameworks/base/packages/Osu
Change-Id: Iadaede1806cfe7bcaf57ed185618a6de4451e321
Merged-In: Ie4ea352e11b10a7c1f8780557554486bc2b4fcef
2017-03-13 11:21:13 -07:00
Winson Chung
fe1fa64b0f Refactoring accessibility class out to own file.
Bug: 34773134
Test: Open PIP, turn on talk back and use it.
Change-Id: I8a73eb7230ee02afd16997513fe19c2f0805d094
2017-03-13 10:51:22 -07:00
Sid Soundararajan
7616234117 Merge "RecentsTV : Remove all Recents TV Code" 2017-03-13 17:44:55 +00:00
Evan Laird
bcf631d48b Move battery percent constant to Settings
This switch is moving to system settings so it should also be declared
by Settings. Also changed the constant's name to make sense in the
System context.

Test: runtest systemui
Bug: 32539932
Change-Id: I7cce21b50702f31465328dd8faed3fbac47528ea
2017-03-13 13:42:11 -04:00
TreeHugger Robot
764edd7627 Merge changes from topics 'Passpoint API update', 'Passpoint intent update'
* changes:
  hotspot2: update Passpoint configuration management APIs
  hotspot2: hide validate method for Passpoint configuration
  Osu: temporarily comment out the usage of deprecated intent definitions
  hotspot2: update Passpoint intent definitions
2017-03-13 17:30:36 +00:00
Peter Qiu
457411af20 Osu: temporarily comment out the usage of deprecated intent definitions
Bug: 35857805
Test: mmma frameworks/base/packages/Osu
Change-Id: Ie4ea352e11b10a7c1f8780557554486bc2b4fcef
2017-03-13 09:46:07 -07:00
TreeHugger Robot
d9e529b398 Merge "Update enterprise disclosure strings" 2017-03-13 15:18:27 +00:00
Donghyun Cho
c1fa9afbcd CEC: Revisit the behavior of HDMI_SYSTEM_AUDIO_ENABLED
Currently the system setting, HDMI_SYSTEM_AUDIO_ENABLED, is used to
store the latest system audio mode status so that TV can keep this
status over reboot. But because the name is a little confusing and the
behavior isn't intuitive, it is likely to use this in a wrong way.
This change renames this setting to HDMI_SYSTEM_AUDIO_CONTROL_ENABLED
and tweak the purpose of it. Now, it will act more like a switch for
System Audio Control feature, so user can disable or enable this feature
entirely. With this way, implementation of audio output option will
also become easier.

Bug: 31449672
Test: Tested on archer
Change-Id: Ice8717135272d4b86665a3452bfe7527c0d6c08b
(cherry picked from commit 7b7aa8fb31ccf0cd3f36162a52f080263dd89e77)
2017-03-13 20:00:58 +09:00
TreeHugger Robot
dc159ee593 Merge "Import translations. DO NOT MERGE" 2017-03-12 22:23:07 +00:00
TreeHugger Robot
82257acba9 Merge "Import translations. DO NOT MERGE" 2017-03-12 19:50:36 +00:00