Commit Graph

6762 Commits

Author SHA1 Message Date
Adrian Roos
bfe5166ac3 Keyguard: Refactoring for improving trusted unlock while occluded am: d88eb2693b
am: cb5642afae

Change-Id: Id60ae0e1bfcfb2297855810781d8ca040cf46def
2016-08-05 18:53:14 +00:00
Adrian Roos
cb5642afae Keyguard: Refactoring for improving trusted unlock while occluded
am: d88eb2693b

Change-Id: I91f6bfe7a0573ad31785c5a3d1bff03a24d1107c
2016-08-05 18:45:41 +00:00
Todd Kennedy
8c073e0aad Move EphemeralResolverService am: 31b95e0265
am: fa67fad84e

Change-Id: Ieabd373b5557e03c6a189f070c8f79998e7a5a0a
2016-08-05 17:52:00 +00:00
Todd Kennedy
fa67fad84e Move EphemeralResolverService
am: 31b95e0265

Change-Id: I16533b342433fc1042e0d78e1be8e43a431031a6
2016-08-05 17:47:17 +00:00
Todd Kennedy
31b95e0265 Move EphemeralResolverService
It should not have been under com.android.internal

Fixes: 30673742
Change-Id: I2277aa4a4799fa59bf68af7c4cfcb4e1216aeb8d
2016-08-05 07:17:52 -07:00
Adrian Roos
d88eb2693b Keyguard: Refactoring for improving trusted unlock while occluded
- Adds a trusted signal from Keyguard to PhoneWindowManager
- Allows PhoneWindowManager to exempt DISMISS_KEYGUARD windows from force hiding
- Allows PhoneWindowManager to dismiss Keyguard while occluded

Bug: 27410215
Change-Id: I3ad490b64a5805b6f3888a9f37fcfbdd0116395e
2016-08-05 00:04:07 +00:00
John Stultz
15cb51e04a Merge "Zygote: Add CAP_WAKE_ALARM to system_server to properly support timerfd alarms" am: 1085be0ce3 am: 5e23ab394a
am: 55b3a9ceb3

Change-Id: Iaf49bda287e258e54ebf72ef1837dfb5f528eecc
2016-08-03 00:23:36 +00:00
John Stultz
5e23ab394a Merge "Zygote: Add CAP_WAKE_ALARM to system_server to properly support timerfd alarms"
am: 1085be0ce3

Change-Id: I23d7c2af33db8621b0c3b3415669543e0e3b740f
2016-08-03 00:12:32 +00:00
Dianne Hackborn
347c006732 Work on issue #30407061: OverflowArrayMap.stopObject unable to find object am: 657153bd28
am: ae7bdd8dde

Change-Id: Id9a3dfa2e18f62b2dc35396ae34ffb450ef8cbdc
2016-07-30 22:27:22 +00:00
Dianne Hackborn
ae7bdd8dde Work on issue #30407061: OverflowArrayMap.stopObject unable to find object
am: 657153bd28

Change-Id: Icf5ac1ea479e098f18972111e44724698086a255
2016-07-30 06:41:23 +00:00
Dianne Hackborn
657153bd28 Work on issue #30407061: OverflowArrayMap.stopObject unable to find object
Add more debug info when this happens to try to better
understand what is going on.

Change-Id: Id8c979d1c2d3769ce68156fb7e69d5ff9d5ded1c
2016-07-29 14:54:14 -07:00
John Stultz
5733f387be Zygote: Add CAP_WAKE_ALARM to system_server to properly support timerfd alarms
The when the timerfd alarm logic was added to the kernel, an oversight was made
and the interface does not check for the CAP_WAKE_ALARM permissions as required
via other kernel methods to trigger an alarm timer.

In v4.8-rc kernels, the change 2895a5e5b3a ("timerfd: Reject ALARM timerfds
without CAP_WAKE_ALARM") was added by Eric Caruso <ejcaruso@google.com>.

After this change (which may be backported to -stable), the AlarmManager will
fail on the first timerfd_create call, and will not be able to set the time
or handle other necessary functions.

The solution here is to add CAP_WAKE_ALARM to the system_server process.

Change-Id: Ifdb16f3ef42711e553f727165de3922d484b5be4
Signed-off-by: John Stultz <john.stultz@linaro.org>
2016-07-28 12:41:04 -07:00
Adam Lesinski
387c351d5a DO NOT MERGE Change KernelUidCpuTimeReader Slog.wtf to Slog.e am: 82a4d6f93b
am: 52d7fd62a4

Change-Id: I3b5febe3ecbd2ebead013273f5fe867376e2b756
2016-07-28 19:40:59 +00:00
Adam Lesinski
52d7fd62a4 DO NOT MERGE Change KernelUidCpuTimeReader Slog.wtf to Slog.e
am: 82a4d6f93b

Change-Id: I5e3b406b7a3f9a7f367dccaed0094ab5b7a78d2e
2016-07-28 19:23:16 +00:00
Adam Lesinski
533159b4f9 Merge "DO NOT MERGE Change KernelUidCpuTimeReader Slog.wtf to Slog.e" into nyc-mr1-dev 2016-07-28 19:08:30 +00:00
Adam Lesinski
82a4d6f93b DO NOT MERGE Change KernelUidCpuTimeReader Slog.wtf to Slog.e
There is a known issue in the kernel uidcputime module that triggers
the WTF, which has a cost to the system. Convert to a regular log
instead.

Bug:28950306
Change-Id: I7cbb3138f644075f0d9d65ce8b52bd835eb270fd
2016-07-28 19:08:04 +00:00
Chris Banes
19ce4ad1f6 Fix CascadingMenuPopup width if background has padding DO NOT MERGE am: f9e2c1b326
am: be3daf6947

Change-Id: I30624b96a74b5fb1928ada59e8f2a1968ef04426
2016-07-28 08:53:37 +00:00
Chris Banes
be3daf6947 Fix CascadingMenuPopup width if background has padding DO NOT MERGE
am: f9e2c1b326

Change-Id: I1997cde48524dc5c040311f4f9e7824485b55c7d
2016-07-28 08:47:15 +00:00
Chris Banes
7f37f2693f Merge "Fix CascadingMenuPopup width if background has padding DO NOT MERGE" into nyc-mr1-dev 2016-07-28 08:38:40 +00:00
Andrii Kulian
5d0649a35e Don\\'t delay child pressed state in freeform mode am: a6aea9876e
am: 5b637aed1c

Change-Id: If94ef4d5fbf5142044797722bc0ffa86d0aa0dc4
2016-07-27 22:52:24 +00:00
Andrii Kulian
5b637aed1c Don\'t delay child pressed state in freeform mode
am: a6aea9876e

Change-Id: I68c9d42ca9b3bda6a2ea823db27f8a11046b0e50
2016-07-27 22:01:07 +00:00
Andrii Kulian
671bc2052a Merge "Don't delay child pressed state in freeform mode" into nyc-mr1-dev 2016-07-27 21:29:46 +00:00
Jeff Davidson
19af77d2cb Add support for carrier \"associated\" apps.
am: 24b9d96007

Change-Id: I1de92977f3a0635d88e6517210f6bbb06ab3d0f0
2016-07-27 21:18:07 +00:00
Jeff Davidson
94ae1e739f Merge "Add support for carrier "associated" apps." into nyc-mr1-dev 2016-07-27 17:57:39 +00:00
Chris Banes
f9e2c1b326 Fix CascadingMenuPopup width if background has padding DO NOT MERGE
Happens because CascadingMenuPopup calls setWidth() rather
than setContentWidth() like StandardMenuPopup does.

BUG: 30365568
Change-Id: Id850baaf1d9c5664220766e5e37869e2ec361a2d
2016-07-27 14:53:38 +01:00
Andrii Kulian
a6aea9876e Don't delay child pressed state in freeform mode
DecorCaptionView is used in app view hierarchy in freeform mode
and it inherits default ViewGroup#shouldDelayChildPressedState
implementation, which returns true by default for compatibility
reasons.
This results in touch not delivered to child views in some cases
until there is movement or up action. E.g. touch on SeekBar will
not change the position of control instantly in freeform, while
it does in other modes.
This CL disables delaying child pressed state for DecorCaptionView.

Bug: 30037893
Change-Id: I4917143610b6c0d404d2395670de9525c10f2a6c
2016-07-26 18:42:46 -07:00
Jeff Davidson
24b9d96007 Add support for carrier "associated" apps.
The platform currently supports the notion of default carrier apps.
These apps are set to DISABLED_UNTIL_USED until a SIM is inserted
which grants them carrier privileges, at which point they are enabled.
Apps are not touched if they have been updated from the version on
/system or if their state has been modified externally (e.g. by the
user).

This CL extends this notion to associated apps, which may not have
carrier privileges themselves, but should be enabled/disabled
alongside a particular carrier app. This should include helper apps
that should not be visible to users who don't use the given carrier
unless the user explicitly enables the app.

As additional protection, we add a check to ensure that we never
disable apps after the first time we've run. Since we need to store
this information in secure settings, we also move the call site from
PackageManagerService#main() to PackageManagerService#systemReady(),
which enables use of secure settings but still occurs before
third-party apps can be started.

Bug: 30141427
Change-Id: Iee72ba4e70e5ca97999c9147a65af82c670a23e8
2016-07-26 14:54:53 -07:00
Michael Kwan
f704097df4 Add titles to PreferenceFragments and PreferenceScreens for watches.
am: 744be16ffa

Change-Id: I54847a5ef3ddb4e09cc835433d80e121cf32b725
2016-07-26 21:11:47 +00:00
Michael Kwan
744be16ffa Add titles to PreferenceFragments and PreferenceScreens for watches.
Preferences lack a title on watch type devices due to lack of ActionBar
support. A custom ListView was added to use a custom wrapper adapter to
add a persistent header view at the top of the ListView that developers
would not be able to remove via the ListView API.

Bug: 27962897
Change-Id: I6bccecf85592d9507e0c7a04c9a035617001e9ef
2016-07-26 10:57:56 -07:00
Michael Kwan
253bc8d035 Add top and bottom panel overlay to lists in AlertDialog for watch.
am: 55e4030f77

Change-Id: I383c2ad50871265c1f521ecfd7f46d15027dc29c
2016-07-25 23:05:43 +00:00
Michael Kwan
ad74941699 Merge "Add top and bottom panel overlay to lists in AlertDialog for watch." into nyc-mr1-dev 2016-07-25 22:15:39 +00:00
Michael Kwan
55e4030f77 Add top and bottom panel overlay to lists in AlertDialog for watch.
For watch devices, AlertDialogs added the title and button bar as header and
footer views in the ListView. This broke compatibility, hence a solution to
overlay the panels instead with a wrapper layout.

Bug: 27482353
Bug: 30075032
Bug: 29833395
Bug: 29277843

Change-Id: I2ecbe56ae8f7d7e99c7ca2dad2a2092499212199
2016-07-22 13:04:42 -07:00
Selim Cinek
3f769aba2a Changed the appearance of fullscreen intent notifications again
am: 981962e6ad

Change-Id: Ib26d711e48aaff99a4e64e86feb67dbf987d67e2
2016-07-22 19:29:52 +00:00
TreeHugger Robot
0ff47b64cd Merge changes Idd0b38b4,I511356a8 into nyc-mr1-dev
* changes:
  Fixed a bug where the fade in from dark would not work properly
  Changed the appearance of fullscreen intent notifications again
2016-07-22 19:20:49 +00:00
Selim Cinek
981962e6ad Changed the appearance of fullscreen intent notifications again
Change-Id: I511356a8dc0fe253541c625fb7b43ed0c7bafaca
Fixes: 28269355
2016-07-22 12:13:11 -07:00
Dianne Hackborn
af52a9d1bf Merge \"Add reporting of long wake locks.\" into nyc-mr1-dev
am: ca37695ebc

Change-Id: I98b06d561945fddef5be4b749b5b2128b8622add
2016-07-20 15:53:17 +00:00
Dianne Hackborn
ca37695ebc Merge "Add reporting of long wake locks." into nyc-mr1-dev 2016-07-20 15:45:36 +00:00
Dianne Hackborn
d0db6f0043 Add reporting of long wake locks.
These appear as a new event in the battery stats history,
"longwake" in the long version and "Elw" in the checkin.

The power manager keeps track of which wake locks are held
for a long time and reports them to battery stats.  Long
is currently considered 1 minute or more.  Once it is long,
the start event will appear, and once if is released the
event will end.

In the case of a wake lock changing (typically its work
source changing), for purposes of this accounting this is
considering a pure release of the old state and start of
the new state...  so the timer will reset back to one
minute until the wake lock is considered long.  This is done
to prevent things that make lots of changes to wake lock
work sources from spamming the log.

Bug: 28753137

Change-Id: I33b6168c57a7ea6ea558273dec731704123124a5
2016-07-19 14:16:50 -07:00
Michael Kwan
e42b256d0d Merge \"Fix padding on round devices for AlertDialogs.\" into nyc-mr1-dev
am: 0cd4addd36

Change-Id: I5287b5cae2d18edc5dc2c5fbc2998c63fadbe583
2016-07-19 18:57:11 +00:00
TreeHugger Robot
0cd4addd36 Merge "Fix padding on round devices for AlertDialogs." into nyc-mr1-dev 2016-07-19 18:48:31 +00:00
Yuichi Biwa
8b059e8aa1 Merge \"ChooserActivity: Cannot start app that the icon overflows the layout\" into nyc-mr1-dev
am: 586f23c14b

Change-Id: Ie6abdf3303e9f91ae474aca112e39576685d0e5d
2016-07-19 18:33:40 +00:00
Michael Kwan
814508166c Fix padding on round devices for AlertDialogs.
Bug: 27482353
Change-Id: Ic9ee4abe84f9172db64dba398af2c0058921fa3f
2016-07-19 10:18:41 -07:00
Yuichi Biwa
4f3a843ea9 ChooserActivity: Cannot start app that the icon overflows the layout
Symptom:
When sharing an image from Album, ChooserActivity can be shown.
But then the app to be located to the bottom part of the list may not
be started even if user tap it.

Root cause:
ChooserActivity uses ResolverDrawerLayout. And ResolverDrawerLayout
can display only some items on the list (known as "Collapse mode").
When the item clipping along the bottom edge is tapped by the user,
ResolverDrawerLayout tries to expand the list and scroll it to a
better position, instead of starting an application.
In this problem case, ResolverDrawerLayout continues to try to expand
the list whenever tapping, so an application will never start.

Solution:
Change a condition so that mOpenOnClick becomes true only when the list
has been collapsed (mCollapseOffset > 0).

Bug: 30153542

Change-Id: I576fb6c8b6a91d79c1e0d46d069146779f4dbd17
2016-07-19 10:04:41 -07:00
Adam Lesinski
d279c1291e Merge \"Record UID of wakeup packets\" into nyc-mr1-dev
am: 117cf8de91

Change-Id: Id4e843eef00a623353fe3027de13460aa92e699f
2016-07-18 21:15:48 +00:00
Jim Miller
623362c5ab Merge \"Fix vulnerability in LockSettings service\" into nyc-mr1-dev
am: 6ad9c16ffd

Change-Id: Id4db555de3df2d73046aa6358e6b559f4529890d
2016-07-18 21:09:37 +00:00
TreeHugger Robot
117cf8de91 Merge "Record UID of wakeup packets" into nyc-mr1-dev 2016-07-18 20:58:15 +00:00
TreeHugger Robot
6ad9c16ffd Merge "Fix vulnerability in LockSettings service" into nyc-mr1-dev 2016-07-18 20:54:45 +00:00
Adam Lesinski
5f056f6d87 Record UID of wakeup packets
Bug:28931278
Change-Id: I50a3b6a8026b4d06aaa2730cd531658d280ddb73
2016-07-18 12:30:46 -07:00
Abodunrinwa Toki
73746d5d24 Merge \"DO NOT MERGE: FloatingToolbar - Check that app supports RTL.\" into nyc-mr1-dev
am: 63b31d5729

Change-Id: I77c82ad4ce15368c92041d994e10c8a44a33667c
2016-07-18 18:05:32 +00:00
Abodunrinwa Toki
97dd8eee10 DO NOT MERGE: FloatingToolbar - Check that app supports RTL.
Port I36c0d72984e0abc7c6430cc7d52d8efd7341820e to nyc-mr1-dev.

Bug: 29932935
Change-Id: Icd085508f7d1dd412f4d0805e8fd01734743648e
2016-07-17 19:25:27 +01:00