Commit Graph

309172 Commits

Author SHA1 Message Date
Wale Ogunwale
387e4c6133 Display on-going notification for apps using alert windows.
Allows the user to associate alert windows with specific apps
and revoke the permission if they want.

Test: manual
Bug: 33256752
Change-Id: Ie28325b6bb799b3df253770ebe655f97ebbadd90
2017-02-17 13:45:24 -08:00
Pulkit Bhuwalka
d98a4e5021 Remove outdated emulator check which causes BT to not start
ro.kernel.qemu based check to determine whether Bluetooth should be
started or not was an old hack used when "features" was not available to
determine hardware availability. This was later fixed with the
hasSystemFeature check. However, the old check was not removed.

The presence of the old check causes Bluetooth to not start on Android
Things devices which have ro.kernel.qemu set for graphics usage. It's
also preferable to depend on the system API rather than on build
configs. Related CLs modify the emulator builds to correct the config in
builds.

Bug: 35361545
Change-Id: I219ce5e14709c76dcba43af4693093e985269d43
Test: Verified by launching bluetooth on local devices after removing
the old check. Also verified by booting up the emulator and verifying
that Bluetooth Services do not start.
2017-02-17 13:44:33 -08:00
Colin Cross
313e645801 Merge changes I82aa8140,Ib62a5dd6,I2c4d64e2
* changes:
  Enable multidex for SystemUITests
  Add missing transitive dependencies
  Revert "Remove support of disabling Jack."
2017-02-17 21:44:21 +00:00
Wale Ogunwale
943002b473 Set importance for processes displaying app-overlays based on visibility
We were previously setting this based on when the window was added and
removed. This can lead to issues where an app isn't allowed to show
alert windows so window manager hides the window after the permission is
revoked, but the window still exist in the system so the process
importance will still be high. We now set the process importance based
on if it has visible window surfaces or not.

Bug: 33256752
Test: cts/.../run-test CtsAppTestCases android.app.cts.AlertWindowsTests
Change-Id: I4e406a94683ec0eecc0911d0195e641c693e1c4a
2017-02-17 13:44:18 -08:00
George Mount
e718151625 Ensure transactions cannot be run during controller state change
Bug 35349893

When the FragmentManager is being brought up or down, the state
of fragments is changed. Any fragment using commitNow() during
the state change was being allowed through instead of throwing.

This CL locks out reentrant fragment transctions during
FragmentManager state changes.

Test: Iea6029ccfa660e8eea5ea7472f641dada1a6c269
Change-Id: I735d86a42951c6f58f048e4930be925da9c8247e
2017-02-17 13:36:50 -08:00
Treehugger Robot
855889b086 Merge "Show connection error reason for Passpoint AP" 2017-02-17 21:34:35 +00:00
Etan Cohen
647f2e1493 Merge "[AWARE] Remove enableUsage/disableUsage API" 2017-02-17 21:33:40 +00:00
Selim Cinek
9e87cba5a9 Making the notification always center horizonally
The notification panel always center horizontal, since
it could lead to an offcenter notification sometimes.
Also applying the gravity correctly.

Change-Id: I2056dae0dfc1e4625e7903511464dc3edd8ac3f5
Fixes: 27566718
Test: rotate, observe HUN location after rotation
2017-02-17 13:29:54 -08:00
Etan Cohen
17532ec02e Merge "[AWARE] Add discovery window period configuration" 2017-02-17 21:26:04 +00:00
Suprabh Shukla
2e7d6d64b9 Modifying dpm.setSecureSetting call for install_non_market_apps
Starting from O, install_non_market_apps is deprecated and will not be
checked by the package installer. Device admin apps should be using the
user restriction instead.
Since on managed profiles, the default value blocked install from
unknown sources, the system will set the user restriction on behalf of
the profile owners (if the profile has one).
For non-managed profiles, the user had access to the settings to change
the value of install_non_market_apps. So going forward, any request to
change it's value by dpm#setSecureSetting in such users is going to be
ignored.

Test: Manually tested that:
1. For a profile with PO, when install_non_market_apps was set to 0,
user restriction is set on upgrade
2. For a profile with PO, when install_non_market_apps was set to 1,
user restriction is not set on upgrade
3. After upgrade, newly created managed profiles with PO have user
restriction set

Bug: 33947615
Change-Id: I063e9ee608b52086ffdf8ed2b24e2928574c58cd
2017-02-17 13:25:14 -08:00
TreeHugger Robot
96b9832163 Merge "API for accessing preloaded files cache" 2017-02-17 21:09:28 +00:00
Meng Wang
ac495240b1 TelephonyManager#setAllowedCarriers: comment update
Will return -1 on null input

Bug: 35374455
Test: make
Change-Id: I6c4943298383e765ad7da17d3ff167b384360ba6
2017-02-17 12:58:42 -08:00
Mady Mellor
4c97b0a992 Fix leak in NotificationStackScroller by nulling out translatingParent
Once a notification is removed we don’t need to keep reference to
mTranslatingParentView.

Fixes: 35323108
Test: runtest systemui
Change-Id: Ibbecfde4b4f1ee56e3c4e0ec59fadf1284f6c6ce
2017-02-17 12:58:13 -08:00
TreeHugger Robot
cd1af32eda Merge "Add autoFillMode attribute to View" 2017-02-17 20:50:18 +00:00
Evan Rosky
1228e2cb83 Merge "Fixed default-cluster and empty-cluster navigation behavior" 2017-02-17 20:48:55 +00:00
TreeHugger Robot
137f1962da Merge "Add more metrics constants for new Storage settings." 2017-02-17 20:48:33 +00:00
TreeHugger Robot
4e43b811e7 Merge "Add multi-dex to SettingsLibTests when buliding with coverage" 2017-02-17 20:47:52 +00:00
TreeHugger Robot
19657b359a Merge "Revert "Revert "remove app-ephemeral""" 2017-02-17 20:46:12 +00:00
TreeHugger Robot
8c9a6b0089 Merge "Revert "Revert "Per user setting for instant app""" 2017-02-17 20:46:12 +00:00
Leonard Mosescu
2acd0cfaf0 Merge "Add missing break statement." am: 7a4b88de49 am: 080456edd6
am: 5d2af16008  -s ours

Change-Id: Iac5e03fa786cfef832dd8a77b6208a0bf9a1a3f0
2017-02-17 20:41:56 +00:00
Hiroaki Kuriyama
aa514313a5 Merge "PrintSpooler: Remove recommendation if Play Store is not installed" am: 57b966eee1 am: 7cd04745f4
am: 2ab70d213b

Change-Id: I9d4e003492c5d2b8463725e454ac985481958db7
2017-02-17 20:40:49 +00:00
Leonard Mosescu
5d2af16008 Merge "Add missing break statement." am: 7a4b88de49
am: 080456edd6

Change-Id: I2acd644f0bb5916f9c90a1103b023544a7eebddb
2017-02-17 20:34:48 +00:00
Brad Ebinger
9459d0e3da Merge "Adds @hide ImsService APIs" am: 2b879016d3 am: f46aa6f9ee
am: c9c8b590c5  -s ours

Change-Id: Iedc914d5b822f5f1d9a7a1404016e74731f9dd5a
2017-02-17 20:34:34 +00:00
Leonard Mosescu
080456edd6 Merge "Add missing break statement."
am: 7a4b88de49

Change-Id: I3323063130b71f831d7c6356d0657161f84c9e38
2017-02-17 20:31:15 +00:00
Hiroaki Kuriyama
2ab70d213b Merge "PrintSpooler: Remove recommendation if Play Store is not installed" am: 57b966eee1
am: 7cd04745f4

Change-Id: I04a0d5afbaedbef3a1d7b005dba124888fd213ca
2017-02-17 20:30:36 +00:00
Brad Ebinger
c9c8b590c5 Merge "Adds @hide ImsService APIs" am: 2b879016d3
am: f46aa6f9ee

Change-Id: I12e10d796a7b2d56cacf8e9b53bb5e228b79ecc3
2017-02-17 20:29:13 +00:00
Mathias Agopian
f1cb02e7b5 fallout of splitting rect.h out of libandroid.
- Main goal here: libandroid now links against 
libarect and export its includes.

- Also fix some wrongful makefiles that included 
headers without proper dependency list.

Test: built and booted device
Bug: 35164655
Change-Id: Iae17b966bba00fe53424486a75eebff468873787
2017-02-17 12:25:26 -08:00
Leonard Mosescu
7a4b88de49 Merge "Add missing break statement." 2017-02-17 20:22:07 +00:00
TreeHugger Robot
0df4c60716 Merge "Fix trampoline activities when relaunching PiP" 2017-02-17 20:14:24 +00:00
Jason Monk
95fc719738 Merge "Add ongoing notification for instant apps" 2017-02-17 20:13:45 +00:00
Hyunyoung Song
be8835e86b Change MaskableIconDrawable to AdaptiveIconDrawable
Test: $ make -j31 dist

Bug: 35399620
Change-Id: I5e54f75b3df21ffe546e0e54dbd7ea29499d1789
2017-02-17 12:13:22 -08:00
Hiroaki Kuriyama
7cd04745f4 Merge "PrintSpooler: Remove recommendation if Play Store is not installed"
am: 57b966eee1

Change-Id: I48c070c4b3e1cf3d1d6ff71612c7ad6d44e6cb1f
2017-02-17 19:52:32 +00:00
Jerry Zhang
f970636072 Allow the shell to set USB functions.
Bug: 25596495
Test: svc usb setFunction mtp true
Change-Id: I4472464a1c7ed100cb257dbad83d1d8cfef88fc7
2017-02-17 11:50:30 -08:00
TreeHugger Robot
ae6db2f95c Merge "Add a disabled reason for recommendation providers" 2017-02-17 19:48:51 +00:00
TreeHugger Robot
a42ba85b0e Merge "Clarify extra data argument nullness." 2017-02-17 19:47:02 +00:00
Treehugger Robot
57b966eee1 Merge "PrintSpooler: Remove recommendation if Play Store is not installed" 2017-02-17 19:45:06 +00:00
Brad Ebinger
f46aa6f9ee Merge "Adds @hide ImsService APIs"
am: 2b879016d3

Change-Id: Ia8b557ee006d3ffdbbe420934b97b0e7feb2ca80
2017-02-17 19:33:02 +00:00
Romain Guy
172873f5e6 Merge "Add RGBA 10:10:10:2 format for surfaces" 2017-02-17 19:25:08 +00:00
Santos Cordon
a093a89b17 Merge "Back up VR screen brightness setting." 2017-02-17 19:23:13 +00:00
Filip Pavlis
b07c6f621a Fix incorrect title in PreferenceActivity.
When navigating from a preference panel back to the headers in single pane,
the title was not restored and the original one (of the previous
preference panel) was kept instead.

Bug: b/35468759
Test: Is covered in ag/1761868
Change-Id: I30cc4c1d2a53d05411cc849ce8423b694c76976a
2017-02-17 19:23:04 +00:00
Treehugger Robot
2b879016d3 Merge "Adds @hide ImsService APIs" 2017-02-17 19:21:45 +00:00
Adam Lesinski
28aa703a36 Shared library test case addition
Test: manual (inspection)
Change-Id: Ia71e3a744a9032acedf1977ea7a82361844bf47d
2017-02-17 11:17:45 -08:00
TreeHugger Robot
2ec8d8403e Merge "Exit persistent VR mode on edge swipe." 2017-02-17 19:03:53 +00:00
Colin Cross
a7cfd57759 Add multi-dex to SettingsLibTests when buliding with coverage
Building with coverage enabled pushes SettingsLibTests over the dex
limit, enable multi-dex.

Test: builds
Change-Id: Ia72db71a2e46e2fdc8cf3e5484f122fa985f25c7
2017-02-17 18:54:37 +00:00
Dongwon Kang
f1f59ce91a TIF: specify the type for COLUMN_INTERACTION_COUNT
Test: documentation change.
Bug: 35217547
Change-Id: Ia693ebc1ad9029910cd91882a783edd15235073d
2017-02-17 10:44:39 -08:00
Fyodor Kupolov
61221290f5 API for accessing preloaded files cache
Added @SystemAPI method Context.getPreloadsFileCache.

Bug: 31008665
Test: manual
Change-Id: Id61ab5e1b78d8bfbd40f61985406a8de4082b30f
2017-02-17 10:40:54 -08:00
Android Build Merger (Role)
54dc4cb096 Merge "Merge "Update dalvik.bytecode package" am: 3f827b5e33 am: fd63280dd2 am: 2e6a473f20 am: 2dc835dd1c" 2017-02-17 18:40:27 +00:00
Orion Hodson
2b7c037aee Merge "Update dalvik.bytecode package" am: 3f827b5e33 am: fd63280dd2 am: 2e6a473f20
am: 2dc835dd1c

Change-Id: I1534a0f78da4b8ccee8c1cb96c2f9f0d0fe16ecf
2017-02-17 18:39:13 +00:00
TreeHugger Robot
a4f3891d28 Merge "Mark clearDeviceOwnerApp/clearProfileOwner as deprecated" 2017-02-17 18:38:36 +00:00
Conrad Chen
7a9e2fb857 Merge "TIF: Fix current position not reported issue" 2017-02-17 18:36:42 +00:00