Commit Graph

354742 Commits

Author SHA1 Message Date
Tony Wickham
fb63fe85f2 Add swipe up onboarding from apps
After launching 3 apps, we create a window at the bottom
attached to the nav bar to teach users to swipe for recents.
There is an X on this window to dismiss it, but we will keep
showing the onboarding every time they open apps until they
perform the swipe up action.

Test: manual

Bug: 70180942
Change-Id: I4b15fac918b7b1633a3c09ab0819f2acb1dce697
2018-01-23 16:02:27 -08:00
Nancy Zheng
a17274fb05 Merge "Fix ForceAppStandbyTrackerTest." 2018-01-19 18:46:43 +00:00
Makoto Onuki
bd9b0cf9b0 Merge "Make DEBUG_FPS_DIVISOR updatable via setting for possible experiments" 2018-01-19 18:11:01 +00:00
Winson Chung
296cc17a5f Merge "Fix Recents regressions" 2018-01-19 18:08:53 +00:00
Leif Wilden
357ae21266 Merge "Move instrumentation classes to SettingsLib to share between mobile/TV." 2018-01-19 17:58:00 +00:00
TreeHugger Robot
8bd6865532 Merge "Notify device owner when user is started / stopped / switched" 2018-01-19 17:56:28 +00:00
TreeHugger Robot
5e1f854620 Merge "Rename the dimension_in_what/condition as fields_in_what/condition in MetricConditionLink proto." 2018-01-19 17:39:57 +00:00
TreeHugger Robot
bf2d3fa9b9 Merge "Fix regression in launch settings performance" 2018-01-19 17:17:24 +00:00
Nancy Zheng
a18c1f1dbb Fix ForceAppStandbyTrackerTest.
Bug: 72170020
Test: atest frameworks/base/services/tests/servicestests/src/com/android/server/ForceAppStandbyTrackerTest.java
Change-Id: I48c3c420a3f0586b243a33b3bb26e537461f3de7
2018-01-19 09:14:57 -08:00
TreeHugger Robot
e5b3296316 Merge "Allow <adopt-permissions> tag in manifest" 2018-01-19 17:10:29 +00:00
TreeHugger Robot
f4e08c3efe Merge "Add canChildBeDraggable() method to SwipeHelper's callback" 2018-01-19 17:06:12 +00:00
Lorenzo Colitti
7f0087be48 Merge changes Id8776d14,Ifa291c62,I5ea9d200 am: c48f4cb7f1 am: b36b423230
am: cfbf873dd1

Change-Id: I12108d96e29bfe71406106c2af950a6d6a9f8351
2018-01-19 16:46:11 +00:00
Lorenzo Colitti
cfbf873dd1 Merge changes Id8776d14,Ifa291c62,I5ea9d200 am: c48f4cb7f1
am: b36b423230

Change-Id: I1ac9d349850d607c5fbf4a47760bc09de1c18043
2018-01-19 16:37:44 +00:00
Lorenzo Colitti
b36b423230 Merge changes Id8776d14,Ifa291c62,I5ea9d200
am: c48f4cb7f1

Change-Id: I7a0b01cba8bdee67cffabddacb4ff5f4591cbc34
2018-01-19 16:30:17 +00:00
TreeHugger Robot
6f7734a64d Merge "Remove use of streams in TransportManager" 2018-01-19 15:47:14 +00:00
TreeHugger Robot
4852106787 Merge "Renamed Setting's Directory Access constants." 2018-01-19 15:41:20 +00:00
Julia Reynolds
0fbbf7c098 Merge "Display the active volume stream." 2018-01-19 15:40:35 +00:00
Robert Berry
c5ec8934a2 Merge "Revert "Calc job standby runnability based on last job execution..."" 2018-01-19 15:25:29 +00:00
Alex Chau
2c082aeeb7 Notify device owner when user is started / stopped / switched
- Similar to onUserAdded / onUserRemoved, notify DPC when user is started / stopped / switched, as these operation is asynchronous.
Use cases:
1. As a asynchronous callback for startUserInBackground / stopUser / logoutUser / switchUser
2. For COMP, can be used to detect work mode turning on or off

Bug: 72092112
Test: com.android.cts.devicepolicy.DeviceOwnerTest#testCreateAndManageUser_StopOnStart
Test: com.android.cts.devicepolicy.DeviceOwnerTest#testCreateAndManageUser_LogoutOnStart
Change-Id: I6fa28711419053694131d7792f3e0d1d2e76ac29
2018-01-19 15:17:00 +00:00
Treehugger Robot
c48f4cb7f1 Merge changes Id8776d14,Ifa291c62,I5ea9d200
* changes:
  Track and persist in stats whether traffic is on the default network.
  Add the default network to NetworkStats and NetworkStatsCollection.
  Pass all default networks to NetworkStatsService
2018-01-19 14:48:52 +00:00
TreeHugger Robot
3733b8ed7b Merge "DisplayCutout: device-independent emulation overlay" 2018-01-19 14:42:13 +00:00
TreeHugger Robot
bb06403cb2 Merge "Import translations. DO NOT MERGE" 2018-01-19 14:28:26 +00:00
TreeHugger Robot
a070145d09 Merge "Import translations. DO NOT MERGE" 2018-01-19 13:37:19 +00:00
Vladislav Kuzkokov
34bc846497 Merge "Implement Policy to disable printing." 2018-01-19 13:36:09 +00:00
Robert Berry
e2369a4dcf Revert "Calc job standby runnability based on last job execution..."
This reverts commit f0ce101552.

Reason for revert: broken master

Test: manual
Bug: 72207660
Change-Id: Ib760dadfd51c4457744b0688f714de8f61570f50
2018-01-19 13:28:34 +00:00
Jeff Sharkey
71253ff635 Merge "Alert user on rapid/heavy data usage." 2018-01-19 12:27:22 +00:00
Jeff Sharkey
fa15daba2c Merge "Use data plans for better job scheduling." 2018-01-19 12:21:01 +00:00
Bernardo Rufino
a4517cdb7d Remove use of streams in TransportManager
Test: m -j RunFrameworksServicesRoboTests
Change-Id: Ie5d81ca9e8c8fcda482fa520aa46841800b88210
2018-01-19 12:09:15 +00:00
Adrian Roos
16693f3466 DisplayCutout: device-independent emulation overlay
Adds an option to use dp instead of px when specifying the cutout bounds.
Also centers the coordinate system in the middle, making it easier to specify
the usually centered cutouts.

Also makes the emulated cutout a bit prettier.

Bug: 65689439
Test: adb shell overlay enable com.android.display.cutout.emulation
Change-Id: I3bd16af15f1dad2af204d436abaa35fb9e5ae146
2018-01-19 12:55:01 +01:00
Michal Karpinski
8f0d71e3ee Merge "Add validators for all Settings.Global settings that are backed up" 2018-01-19 11:44:13 +00:00
Michal Karpinski
ebd9998326 Merge "Add SettingsValidators class and a test for validators enforcement" 2018-01-19 11:42:52 +00:00
TreeHugger Robot
480e156bfb Merge "Remove junit classes from android.jar" 2018-01-19 11:40:20 +00:00
Ricky Wai
d61f7fafb4 Merge "Apply differential privacy on watchlist report" 2018-01-19 11:28:06 +00:00
David Chaloupka
cfd1b4b263 Merge "Handle multiple packages of same name in 'aapt2 convert'" 2018-01-19 10:57:53 +00:00
Lorenzo Colitti
d3e4a1e250 Track and persist in stats whether traffic is on the default network.
This change adds the defaultNetwork to the ident based on current
system networking state, and persists that value to flash.

Bug: 35142602
Test: runtest frameworks-net
Test: downloaded files using default/non-default networks while watching dumpsys netstats
Change-Id: Id8776d149b2977548a9eb455ad4926af55e25aba
2018-01-19 19:49:16 +09:00
Lorenzo Colitti
ada23ed56a Add the default network to NetworkStats and NetworkStatsCollection.
This allows us to maintain NetworkStats entries that track
whether the traffic was on the default network.

At the moment, the stats collection code always passes in
DEFAULT_NETWORK_NO. However, this value is a no-op, since it is
not persisted to disk. Only the ident, the uid/set/tag, and the
packet/byte/operation counters are persisted.

A future change will add defaultNetwork to the ident and start
persisting it.

Bug: 35142602
Test: runtest frameworks-net
Change-Id: Ifa291c62c0fa389b88e5561086a29dcd7cee2253
2018-01-19 19:49:16 +09:00
TreeHugger Robot
24de6a45aa Merge "Initial commit for VideoView2Impl" 2018-01-19 09:57:15 +00:00
Jeff Sharkey
2e4714575f Alert user on rapid/heavy data usage.
Now that we have accurate information about a user's carrier data
plan, we can alert them if the current usage patterns would end up
with a nasty surprise towards the end of the current billing cycle.

For example, a single abusive app could use 90% of the user's budget
within the first few days of a billing cycle, leaving the user to
limp along for the remainder of the month.

The simple algorithm here extrapolates to see if the average usage
over the last 4 days would be more than 150% of the data limit for
the full billing cycle.  This period is short enough to catch rapid
recent usage, but long enough to smooth over short-term habit
changes, such as a weekend getaway.  This was chosen after
backtesting the proposed algorithm against real-world data usage
from a handful of internal users.

Fix NPMS unit tests, and write new ones, but leave the existing
@Ignored annotation intact for now.

Test: bit FrameworksServicesTests:com.android.server.NetworkPolicyManagerServiceTest
Bug: 64133169
Change-Id: I0d394b133257e8569a9aa2631b57638839d870ce
2018-01-19 18:18:51 +09:00
TreeHugger Robot
319294134f Merge "Only load preinstalled updatable in release" 2018-01-19 09:18:39 +00:00
Paul Duffin
fb48139a41 Remove junit classes from android.jar
Bug: 30188076
Test: make checkbuild
Change-Id: Ia90b8a81495299165d6f8d373ab8c5937e2a5290
2018-01-19 08:16:36 +00:00
Amit Mahajan
de5db0fb06 Merge "Added new SIM state related broadcasts." am: 0fc9900802 am: 6ada16b386
am: 1644137343  -s ours

Change-Id: I3b6f80f86f5a422d768f92ded609a2bc0ee61d86
2018-01-19 08:02:04 +00:00
Amit Mahajan
1644137343 Merge "Added new SIM state related broadcasts." am: 0fc9900802
am: 6ada16b386

Change-Id: Id2b6996e712675b387d0f6b89043b02f39fb1af9
2018-01-19 07:54:45 +00:00
Amit Mahajan
6ada16b386 Merge "Added new SIM state related broadcasts."
am: 0fc9900802

Change-Id: I10b5f7a9307012e1097712acd36a91c5f6969c11
2018-01-19 07:47:21 +00:00
Lorenzo Colitti
c78da2937c Pass all default networks to NetworkStatsService
This will allow NetworkStatsService to treat traffic on these
networks differently from traffic where the app selects a network
that is not the default.

Bug: 35142602
Test: runtest frameworks-net
Change-Id: I5ea9d200d9fb153490c6108bb9390bf152f297da
2018-01-19 16:40:10 +09:00
Christofer Åkersten
3661ad03d2 Only load preinstalled updatable in release
Test: Instantiate MediaController2
Change-Id: I8da88cf9291ee1365143ca86fa64d3f2fde8e225
2018-01-19 16:20:37 +09:00
TreeHugger Robot
4b60648be6 Merge "Only pass resources to updatable" 2018-01-19 07:14:46 +00:00
Jeff Sharkey
9252b34065 Use data plans for better job scheduling.
Now that we have data plan information from the carrier, we can start
using it to influence when we schedule jobs.  As a first pass
algorithm:

-- If the network is congested, and a job is less than 50% through
its runnable window, then we'll defer it for awhile.
-- If the network has a surplus of data, we'll consider using some
of it to improve the user experience by running prefetching jobs.

Provider APIs for carrier apps to override their connections to be
temporarily marked as either "unmetered" or "congested", along with
automatic timeouts if desired.

Flag for developers to indicate which jobs will have a material
positive impact on end users.  (We don't want to promote jobs that
are simply doing logs upload; for example.)  Glue code to quickly
return targetSdk of a specific package.

More tweaking to the exact algorithms will come in future CLs.

Test: bit FrameworksServicesTests:com.android.server.job.
Bug: 64133169
Change-Id: Iabb9f90a7a65958ad648b091edec378fc3bf785a
2018-01-19 15:50:12 +09:00
Jeff Sharkey
c694cde7bb Merge "Add DataUnit to clarify SI-vs-IEC units." 2018-01-19 06:38:48 +00:00
Bill Yi
71e118d4e3 Import translations. DO NOT MERGE
Change-Id: If8ac5eb5604380c537ddfa2ae118b7fc3f873211
Auto-generated-cl: translation import
2018-01-18 22:34:01 -08:00
Bill Yi
0c9a011260 Import translations. DO NOT MERGE
Change-Id: Icf032c113be4120f53b881992df53e3450720404
Auto-generated-cl: translation import
2018-01-18 22:28:46 -08:00