Commit Graph

245370 Commits

Author SHA1 Message Date
Adarsh Fernando
2ba8e2a120 Docs: Added new Whitelist feature to Data Saver for DP3
Bug: 28447739
Change-Id: I064d927435b1b71d13b8728493060019f84805c1
2016-05-10 14:19:07 -07:00
Keisuke Kuroyanagi
f2cbf95b6b Merge "Sum up character widths to get the last line width for ellipsis." into nyc-dev 2016-05-10 21:16:02 +00:00
Mary Yanchar
908a8703f0 Updating redirects to correct Studio Tips and Tricks
am: 8e2431513f

* commit '8e2431513fbc32b64e240b9b39995b1217111bc6':
  Updating redirects to correct Studio Tips and Tricks

Change-Id: I16c631bb7ec38fba7ba11132c85e90cb205ff26d
2016-05-10 21:13:51 +00:00
Selim Cinek
6ac3fa8ebd Fixed a bug where the content wasn't transforming in a group
Too many booleans.

Change-Id: I1451484b1abcae3880448db60cff18ad97e9505f
Fixes: 28677158
2016-05-10 17:11:54 -04:00
Paul Crowley
f829c1463b Merge "Revert "Two phases to set the password for disk encryption"" into nyc-dev 2016-05-10 21:07:59 +00:00
Adrian Roos
d390b893ea Fix density change bugs in SystemUI
- Reinflate KeyguardUserSwitcher on density changes.
- Update size of UserAvatar on Keyguard.
- Fix brightness slider width in quick settings.
- Refetch and rescale user icons on density changes.

Change-Id: I961c59b8b224d6ac22cbbb8e115b8a12547a04b9
Fixes: 28535987
Fixes: 28454340
2016-05-10 21:01:43 +00:00
Winson
7c40291b0a Reducing the number of recent tasks we keep.
- This should decrease the time it takes to fetch the recent task list,
  and also reduce the number of tasks we store on-disk.
- Since a user can still open a fair number of tasks within the 
  time-window, and this list includes tasks that are excluded from the 
  UI, we are just reducing it to about half for the time being.

Bug: 28318359
Change-Id: Ie21b3d3d09a567007015fbbecaf914123c71cc06
2016-05-10 21:01:33 +00:00
Adam Lesinski
991357fe25 BluetoothManager: Make requestControllerActivityInfo one call
Instead of making multiple calls into the Bluetooth service,
make one call that can timeout. This helps prevent cases
when the Bluetooth process hangs and the system_server is calling into
it and causes a WATCHDOG restart.

Bug:28658141
Change-Id: I37778b7b6e508be420a21bdf23593ae89b38f5b8
2016-05-10 14:00:03 -07:00
Antonio Cansado
dc5f558640 Merge "Addressing API council comments on NetworkStatsManager." into nyc-dev 2016-05-10 20:58:33 +00:00
Robert Carr
bf9e17b181 PopupWindow: Be more careful with FLAG_LAYOUT_NO_LIMITS
If we intend to clip to the screen we can't pass NO_LIMITS.
Luckily the default behavior for LAYOUT_IN_PARENT_FRAME is to not
clip to the parent frame, so we don't have to do anything except
update our local flag we use for explicit size calculations.

Bug: 28194524
Change-Id: I1465efce7f5412cf646bccd83e23a4b049f4dbc4
2016-05-10 13:56:21 -07:00
Paul Crowley
a1eb750e75 Revert "Two phases to set the password for disk encryption"
This reverts commit 17e5dce511.

Bug: 28694324
Change-Id: I6d89bc26cb429b195c9bcf640666c495617257b7
2016-05-10 20:36:56 +00:00
Amith Yamasani
0df1ca8ab3 Merge "Fix the issue that App crash on startForeground" into nyc-dev 2016-05-10 20:31:47 +00:00
Winson
dfd7be012b Fixing issue with excluded task showing when docking.
- On multi-window state changes, we should not include the front most 
  excluded task when fetching the task list.  This CL also clarifies 
  which tasks are included and excluded.

Bug: 28452689

Change-Id: Ia30eaf75382286a9d4ee5a5b11013dddf8e4ac82
2016-05-10 13:30:48 -07:00
Sudheer Shanka
0e351a945b Merge "Update docs for DELETE_PACKAGES permission." into nyc-dev 2016-05-10 20:28:37 +00:00
Selim Cinek
fa760d4636 Fixed a bug where the positioning on the lockscreen was wrong
Because of a circular dependancy of calculating the notification
heights and setting them to GONE, the views could be laid out in a
wrong fashion. Another issue was that ambient notifications would
still be taken into account as well as removed notifications.

This also lead to a bug where the removal of notifications could
lead to unnecessary add animations when swiping them away.

Change-Id: If9ad81237a520b14dc6851df3af52406d192a7a7
Fixes: 28441832
2016-05-10 16:24:19 -04:00
Antonio Cansado
6965c1869a Addressing API council comments on NetworkStatsManager.
Callbacks
 - DataUsageCallback renamed to UsageCallback
 - DataUsagePolicy removed; passing in params directly to register method
 - making it an abstract class
 - passing in (networkType, subscriberId) that reached its threshold
 - renaming onLimitReached to onThresholdReached to match existing naming
 - only monitor single network,subscriberId
 - no monitoring of specific uids; using device or user wide instead

Tags
 - only owner uid can read its tags
 - exposing only TAG_NONE to match service side

BUG: 27530098

Change-Id: I2b2664da71806868a1e937d2bf4d1f234637509b
2016-05-10 13:24:16 -07:00
Phil Weaver
cdaaaaad90 Merge "Reduce cost of a11y services with magnification." into nyc-dev 2016-05-10 20:18:12 +00:00
Paul Crowley
fcc38e6c35 Merge "Hide notification before tie managed profile lock" into nyc-dev 2016-05-10 20:12:41 +00:00
Chong Zhang
9214704eac Fixes for restoring more than one child surfaces
App may have more than one windows and subwindows. Remember which ones
are visible at the last setAppVisibility time, and restore only those
that was visible then. If the app itself requested to hide a window
before that, we don't want to use the window for early animation.

Also move mAnimatingWithSavedSurface into WindowState as it needs to
be tracked per window.

bug: 27455025
bug: 28296945

Change-Id: I3ed1879634fa7709de699d4518d8fcfc91a85554
2016-05-10 13:10:40 -07:00
Mary Yanchar
8e2431513f Updating redirects to correct Studio Tips and Tricks
Updating the _redirects.yaml to correct the Studio Tips and Tricks
redirect, to match the CL already submitted in Piper (121956464).

Bug: 28680261
Change-Id: I7fc075d26061c37a7b2ba20d91b6deca4dae6557
2016-05-10 12:58:42 -07:00
Andreas Gampe
a8f51e3e46 Merge "Frameworks/base: Shorten system property" into nyc-dev 2016-05-10 19:55:43 +00:00
Andreas Gampe
eff0639345 Frameworks/base: Shorten system property
Otherwise it's too long.

Bug: 26877591
Change-Id: I741186a9fbea6ee50df6cef58d528ec58662c772
2016-05-10 12:52:53 -07:00
Doug Felt
3a64f8140c Remove rifle (1F946) from emoji font.
Bug: 28678310
Change-Id: I60097cd78f28764d83abe0d12b53e2a7e6c974dc
2016-05-10 12:50:25 -07:00
TreeHugger Robot
4b8ab89eca Merge "Don't even try adjusting when dock is minimized" into nyc-dev 2016-05-10 19:47:41 +00:00
Keisuke Kuroyanagi
78f0d83550 Sum up character widths to get the last line width for ellipsis.
To properly apply ellipsis, we virtually concatenate the last line and
overflowed lines after line breaking for a paragraph.
Previously, width of the concatenated line was computed by summing up all
line's width.  However, the width is wrong when there are any trailing
white  spaces that can be normal white spaces by concatenating lines.
With this CL, we sum up widths of all characters in lines except the last
overflowed line.

Bug: 28599066
Change-Id: I41d828ee8eb8a702cd5096d626b307cbb3467047
2016-05-10 12:21:33 -07:00
Amith Yamasani
4f128e4d96 Fix multi-window assiststructure trashing
When multiple activities within the same process
try to handle requests for AssistStructure, the
singleton mLastAssistStructure tends to trash
the old structure when a second window's request
comes in.

This change passes in a sessionId so that the
cache is only cleared if the session id changes.

Bug: 28348867
Change-Id: I07efcd933db7e48aefd25a1c95493b71bbcffe4b
2016-05-10 12:17:51 -07:00
TreeHugger Robot
6e2b3d158a Merge "Simplify permitted-path construction" into nyc-dev 2016-05-10 19:17:03 +00:00
Ricky Wai
8481258303 Hide notification before tie managed profile lock
We should hide the notification asap before setting
managed profile lock, to reduce the time that user is unlocked
while the notification is still showing.

Bug: 28689675
Change-Id: I289302302e3079726998adefebe2e8b113b2e52a
2016-05-10 20:11:59 +01:00
Svetoslav Ganov
01da140ace Merge "Don't throw runtime exceptions for permission flags" into nyc-dev 2016-05-10 18:52:17 +00:00
Cheryl Potter
0158baf9fb docs: Add redirects for deleted files on AS devsite b/28679461 am: bc753be9e3 am: 90f143e1f3
am: 9f2b8642a8

* commit '9f2b8642a8d496cceb0e0ab3ed0f67ae7f357ae0':
  docs: Add redirects for deleted files on AS devsite b/28679461

Change-Id: I3a1ae7b5c76cb6395ea2bfbfe8cea223fecf653a
2016-05-10 18:37:18 +00:00
Cheryl Potter
9f2b8642a8 docs: Add redirects for deleted files on AS devsite b/28679461 am: bc753be9e3
am: 90f143e1f3

* commit '90f143e1f384ae37878e46997e43b171384c421d':
  docs: Add redirects for deleted files on AS devsite b/28679461

Change-Id: I9e5c8225010dbfa631c6f51fad094def57e4db15
2016-05-10 18:34:39 +00:00
Cheryl Potter
90f143e1f3 docs: Add redirects for deleted files on AS devsite b/28679461
am: bc753be9e3

* commit 'bc753be9e3838cedfb2b45ef2076cc71f2cbe9b5':
  docs: Add redirects for deleted files on AS devsite b/28679461

Change-Id: I196bb7059c78439d051a5e3e9daac0033e4c6595
2016-05-10 18:32:01 +00:00
Jorim Jaggi
1ae68bfd59 Don't even try adjusting when dock is minimized
Bug: 28652219
Change-Id: I61fa515ec945e1da6b9e7a53766abea2fb1e606e
2016-05-10 18:25:45 +00:00
Fyodor Kupolov
6c915ead38 Push unlocking/unlocked state to UserManager
Push unlocking/unlocked state to UserManagerInternal when it's changed in
UserController. Use UserManagerInternal.isUserUnlockingOrUnlocked when
updating flags for filtering in PackageManager.

Bug: 28629076
Change-Id: I8440af090f533f93870d0cff0e3871e114c37efa
2016-05-10 11:09:02 -07:00
Cheryl Potter
bc753be9e3 docs: Add redirects for deleted files on AS devsite
b/28679461

Change-Id: I825cf17a4065b1af67fa1792cf66e50c30208e17
2016-05-10 11:06:25 -07:00
Narayan Kamath
6795f0ba19 Merge "Use MetricsLogger.histogram for optimizing app statistics." into nyc-dev 2016-05-10 17:56:22 +00:00
Chong Zhang
0a872f0b12 Merge "Make sure preserved surface is removed when it's no longer needed" into nyc-dev 2016-05-10 17:53:27 +00:00
TreeHugger Robot
8eb290150c Merge "Fixed logic error when calculating window touch exclude region." into nyc-dev 2016-05-10 17:52:29 +00:00
Dimitry Ivanov
eb96b00382 Simplify permitted-path construction
The white list of permitted directories is applied for every
classloader namespace by libnativeloader. LoadedApk no longer
needs to do that.

Add mDataDir to permitted paths in the case if for any reason
it is outside of the whitelisted dirs.

Bug: http://b/28639227
Change-Id: I5b61ac64e281ecee3e3e9b1fe56cf04dc6ee7b25
2016-05-10 10:51:40 -07:00
Yigit Boyar
9afbf9ceb7 Fully detach unused scrap views
This CL fixes a bug in list view where an unused
scrap view would stay in temporarily detached
state until it is re-used.
It is an invalid state for a view and to fix
that issue, I've changed AbsListView to fully
detached scrap views at the end of a layout
pass and also treat them as regular new views once
they are re-used after being fully detached.

Bug: 28672259
Change-Id: I6e3f4da29f8cbca32787862402f5c21f674a7145
2016-05-10 10:49:39 -07:00
Adam Lesinski
8ac51d14b6 Resource shared libraries: fix theme references
Theme values that would reference other theme values would not work
if they were declared in a shared library.

We now introduce a parallel resource type to TYPE_DYNAMIC_REFERENCE,
TYPE_DYNAMIC_ATTRIBUTE, which allows us to lookup and resolve
theme value references from shared libraries.

Bug:28687378
Change-Id: I4f2364e3e8b567679f90784fcaaea12b6b05e926
2016-05-10 10:45:52 -07:00
TreeHugger Robot
046f2c80ae Merge "Keep RemoteInputView visible when focused" into nyc-dev 2016-05-10 17:41:59 +00:00
smain@google.com
77f368fed9 new downloads and notes for studio 2.1.1 security update
Change-Id: Iabe51586dfc1355011a75f6d193e4ee32e480e95
2016-05-10 17:24:03 +00:00
Jason Monk
7002b410de Make collapsed QS work the same as expanded
Change-Id: I59d8de76a5f06a7896fd8b70a661e5c329620c2e
Fixes: 28414350
2016-05-10 12:57:59 -04:00
Benoit Lamarche
1100edb83f Merge "Set jack.assert.policy value to 'always'" into nyc-dev 2016-05-10 16:28:29 +00:00
Paul Jensen
9132f34976 ApfFilter unit test
Bug: 26238573

Change-Id: I5171038228782bd54e91f5bcc663cc529d2c1150
2016-05-10 11:54:42 -04:00
Svet Ganov
a8f9026d22 Persist settings on a dedicated background thread
Settings were persisted on the system background thread but during
first boot the device is under heavy load and persisting settings
competes with other system components using the shared background
thread. As a result persisting settings can be delayed much longer
than the expected 200ms. This can cause issues with setup wizard
being skipped/went over and its component disaabled being persisted
but the setting whether the device is provisioned not being
persisted - now if the device boots it will have no SUW but also
the home button would be missing. Generally, we need a tansactional
abstraction in the system process to peform all delayed operations
atomically.

bug:25472484

Change-Id: I8e0cf7ffa32e86e36e777964eb0c3cc7de02d3c3
2016-05-10 08:48:00 -07:00
Wale Ogunwale
e4dd964531 Fixed logic error when calculating window touch exclude region.
Problem was introduced in ag/960365. We need to properly set the
temp variable to the current task bounds before trying to use it.

Bug: 26962445
Change-Id: I3cded03582e1379e16fa48f69da6ceadb92d8d4b
2016-05-10 08:39:01 -07:00
Svetoslav Ganov
7e01af4243 Don't throw runtime exceptions for permission flags
We were thrwing undocumented runtime exception when
one gets the permission flags - now we just return
default result of the package is gone.

bug:28657926

Change-Id: I42554a86b9304ff83fe9385f3eea930b8ebf0c63
2016-05-10 15:34:36 +00:00
Paul Jensen
dd7bee8772 Use APF program to drop non-IP non-ARP broadcasts
This used to be done by some WiFi firmwares but should now be done by APF
for consistency across the board.

Bug: 28304368
Change-Id: Ic75f408affc1f56e1ecf4d347d0c287aa72250bf
2016-05-10 11:33:30 -04:00