OSDN Git Service

android-x86/frameworks-base.git
6 years agoMerge "Add validators for all Settings.Secure settings that are backed up"
TreeHugger Robot [Fri, 19 Jan 2018 21:53:29 +0000 (21:53 +0000)]
Merge "Add validators for all Settings.Secure settings that are backed up"

6 years agoMerge "Merge "Make LTE signal bar thresholds customizable with carrier configuration...
Android Build Merger (Role) [Fri, 19 Jan 2018 21:48:44 +0000 (21:48 +0000)]
Merge "Merge "Make LTE signal bar thresholds customizable with carrier configuration" am: 8fb3bdc36f am: 5d90d0e2b7 am: 337a9ef04f  -s ours"

6 years agoMerge "Make LTE signal bar thresholds customizable with carrier configuration" am...
Jordan Liu [Fri, 19 Jan 2018 21:46:45 +0000 (21:46 +0000)]
Merge "Make LTE signal bar thresholds customizable with carrier configuration" am: 8fb3bdc36f am: 5d90d0e2b7
am: 337a9ef04f  -s ours

Change-Id: Icd92f19bbaebd7137dadf86e571954b153dadc65

6 years agoMerge changes I8031de0c,I390523b0
Roshan Pius [Fri, 19 Jan 2018 21:43:39 +0000 (21:43 +0000)]
Merge changes I8031de0c,I390523b0

* changes:
  config.xml: Add configuration to enable/disable 80211AC
  config.xml: Add configuration to enable/disable ACS

6 years agoMerge "GPS Signal Quality added to BatteryStats"
Siddharth Ray [Fri, 19 Jan 2018 21:40:07 +0000 (21:40 +0000)]
Merge "GPS Signal Quality added to BatteryStats"

6 years agoMerge "Make LTE signal bar thresholds customizable with carrier configuration" am...
Jordan Liu [Fri, 19 Jan 2018 21:36:06 +0000 (21:36 +0000)]
Merge "Make LTE signal bar thresholds customizable with carrier configuration" am: 8fb3bdc36f
am: 5d90d0e2b7

Change-Id: Ia3fe7265126023ec8c2ba5aaa6d09cd1ed1e9c43

6 years agoMerge "WifiConfiguration: Add support for auto-selecting AP band"
Roshan Pius [Fri, 19 Jan 2018 21:33:47 +0000 (21:33 +0000)]
Merge "WifiConfiguration: Add support for auto-selecting AP band"

6 years agoMerge "fix bug in CpuTimePerUidFreqPuller to pull the correct file"
TreeHugger Robot [Fri, 19 Jan 2018 21:33:22 +0000 (21:33 +0000)]
Merge "fix bug in CpuTimePerUidFreqPuller to pull the correct file"

6 years agoMerge "Make LTE signal bar thresholds customizable with carrier configuration"
Jordan Liu [Fri, 19 Jan 2018 21:29:10 +0000 (21:29 +0000)]
Merge "Make LTE signal bar thresholds customizable with carrier configuration"
am: 8fb3bdc36f

Change-Id: Icf95b62e2828de2175b2c9767741138c507c0e5b

6 years agoMerge "Binding on-demand #11: Dump TransportClients"
Bernardo Rufino [Fri, 19 Jan 2018 20:57:49 +0000 (20:57 +0000)]
Merge "Binding on-demand #11: Dump TransportClients"

6 years agoMerge "Add metric for restricted app detail page"
Lei Yu [Fri, 19 Jan 2018 20:47:52 +0000 (20:47 +0000)]
Merge "Add metric for restricted app detail page"

6 years agoMerge "Fixed the possibility to report rejected touch events"
TreeHugger Robot [Fri, 19 Jan 2018 20:43:19 +0000 (20:43 +0000)]
Merge "Fixed the possibility to report rejected touch events"

6 years agoMerge "Add cluster&active cost to cpu power"
TreeHugger Robot [Fri, 19 Jan 2018 20:41:45 +0000 (20:41 +0000)]
Merge "Add cluster&active cost to cpu power"

6 years agoMerge "Make LTE signal bar thresholds customizable with carrier configuration"
Jordan Liu [Fri, 19 Jan 2018 20:39:43 +0000 (20:39 +0000)]
Merge "Make LTE signal bar thresholds customizable with carrier configuration"

6 years agoMerge "Add Tunnel Interface APIs to IpSecManager" am: 08d07aec50 am: 696cff166c
nharold [Fri, 19 Jan 2018 20:25:18 +0000 (20:25 +0000)]
Merge "Add Tunnel Interface APIs to IpSecManager" am: 08d07aec50 am: 696cff166c
am: 0174b8afcf

Change-Id: I094751d965b679e85a0f200b2382f1715d69e400

6 years agoMerge "Add Tunnel Interface APIs to IpSecManager" am: 08d07aec50
nharold [Fri, 19 Jan 2018 20:16:38 +0000 (20:16 +0000)]
Merge "Add Tunnel Interface APIs to IpSecManager" am: 08d07aec50
am: 696cff166c

Change-Id: I0cd07c51e9512b7e9471e1a09c977fca2bf12e48

6 years agoMerge "similar to the samplers in batterystats, when we do diff, if the value is...
TreeHugger Robot [Fri, 19 Jan 2018 20:12:47 +0000 (20:12 +0000)]
Merge "similar to the samplers in batterystats, when we do diff, if the value is not monotically increasing, we should take the absolute value as the diff."

6 years agoMerge "Add Tunnel Interface APIs to IpSecManager"
nharold [Fri, 19 Jan 2018 20:08:38 +0000 (20:08 +0000)]
Merge "Add Tunnel Interface APIs to IpSecManager"
am: 08d07aec50

Change-Id: I4186bdf52cc1c2c8927ca1a0dd61b71fae236e1a

6 years agoMerge "Enable phone apps to mute the VOICE_CALL stream"
Nadav Bar [Fri, 19 Jan 2018 20:05:18 +0000 (20:05 +0000)]
Merge "Enable phone apps to mute the VOICE_CALL stream"

6 years agoMerge "Add Tunnel Interface APIs to IpSecManager"
nharold [Fri, 19 Jan 2018 19:43:17 +0000 (19:43 +0000)]
Merge "Add Tunnel Interface APIs to IpSecManager"

6 years agoAdd validators for all Settings.Secure settings that are backed up
Michal Karpinski [Fri, 19 Jan 2018 16:28:26 +0000 (16:28 +0000)]
Add validators for all Settings.Secure settings that are backed up

A few no longer used settings were removed from SETTINGS_TO_BACKUP.

And extend the unit test to fail if new ones are added without
a validator. Also fail to boot in that case.

Ref: go/android-p-backed-up-settings
Test: atest frameworks/base/core/tests/coretests/src/android/provider/SettingsValidatorsTest.java
Bug: 64988620
Change-Id: I94b4039c9f54c341aec72b62579be3dd8bd84dbb

6 years agoMake LTE signal bar thresholds customizable with carrier configuration
Kitta Koutarou [Fri, 1 Dec 2017 10:19:49 +0000 (19:19 +0900)]
Make LTE signal bar thresholds customizable with carrier configuration

Move config_lteDbmThresholds to KEY_LTE_RSRP_THRESHOLDS_INT_ARRAY
to control the LTE signal bar thresholds by carrier configuration.

Test: manual - Checked that the LTE signal bar thresholds can be
controlled by carrier config.
Test: auto - Confirmed that run
ServiceStateTrackerTest#testSignalStrength and it has no problem.
Bug: 70698348
Change-Id: Ia613663956ff00fbf299dcf69113733eae5a3458
Merged-In: Ia613663956ff00fbf299dcf69113733eae5a3458

6 years agoMerge "Fix ForceAppStandbyTrackerTest."
Nancy Zheng [Fri, 19 Jan 2018 18:46:43 +0000 (18:46 +0000)]
Merge "Fix ForceAppStandbyTrackerTest."

6 years agosimilar to the samplers in batterystats, when we do diff,
Chenjie Yu [Wed, 10 Jan 2018 17:37:10 +0000 (09:37 -0800)]
similar to the samplers in batterystats, when we do diff,
if the value is not monotically increasing, we should take
the absolute value as the diff.

Test: unit tested
Change-Id: Idd8a248b4092b1863eb8e50539f8f14b3ac9af9e

6 years agoMerge "Make DEBUG_FPS_DIVISOR updatable via setting for possible experiments"
Makoto Onuki [Fri, 19 Jan 2018 18:11:01 +0000 (18:11 +0000)]
Merge "Make DEBUG_FPS_DIVISOR updatable via setting for possible experiments"

6 years agoMerge "Fix Recents regressions"
Winson Chung [Fri, 19 Jan 2018 18:08:53 +0000 (18:08 +0000)]
Merge "Fix Recents regressions"

6 years agoMerge "Move instrumentation classes to SettingsLib to share between mobile/TV."
Leif Wilden [Fri, 19 Jan 2018 17:58:00 +0000 (17:58 +0000)]
Merge "Move instrumentation classes to SettingsLib to share between mobile/TV."

6 years agoMerge "Notify device owner when user is started / stopped / switched"
TreeHugger Robot [Fri, 19 Jan 2018 17:56:28 +0000 (17:56 +0000)]
Merge "Notify device owner when user is started / stopped / switched"

6 years agoMerge "Rename the dimension_in_what/condition as fields_in_what/condition in MetricCo...
TreeHugger Robot [Fri, 19 Jan 2018 17:39:57 +0000 (17:39 +0000)]
Merge "Rename the dimension_in_what/condition as fields_in_what/condition in MetricConditionLink proto."

6 years agoMerge "Fix regression in launch settings performance"
TreeHugger Robot [Fri, 19 Jan 2018 17:17:24 +0000 (17:17 +0000)]
Merge "Fix regression in launch settings performance"

6 years agoFix ForceAppStandbyTrackerTest.
Nancy Zheng [Fri, 19 Jan 2018 00:29:59 +0000 (16:29 -0800)]
Fix ForceAppStandbyTrackerTest.

Bug: 72170020
Test: atest frameworks/base/services/tests/servicestests/src/com/android/server/ForceAppStandbyTrackerTest.java
Change-Id: I48c3c420a3f0586b243a33b3bb26e537461f3de7

6 years agoMerge "Allow <adopt-permissions> tag in manifest"
TreeHugger Robot [Fri, 19 Jan 2018 17:10:29 +0000 (17:10 +0000)]
Merge "Allow <adopt-permissions> tag in manifest"

6 years agoMerge "Add canChildBeDraggable() method to SwipeHelper's callback"
TreeHugger Robot [Fri, 19 Jan 2018 17:06:12 +0000 (17:06 +0000)]
Merge "Add canChildBeDraggable() method to SwipeHelper's callback"

6 years agoMerge changes Id8776d14,Ifa291c62,I5ea9d200 am: c48f4cb7f1 am: b36b423230
Lorenzo Colitti [Fri, 19 Jan 2018 16:46:11 +0000 (16:46 +0000)]
Merge changes Id8776d14,Ifa291c62,I5ea9d200 am: c48f4cb7f1 am: b36b423230
am: cfbf873dd1

Change-Id: I12108d96e29bfe71406106c2af950a6d6a9f8351

6 years agoMerge changes Id8776d14,Ifa291c62,I5ea9d200 am: c48f4cb7f1
Lorenzo Colitti [Fri, 19 Jan 2018 16:37:44 +0000 (16:37 +0000)]
Merge changes Id8776d14,Ifa291c62,I5ea9d200 am: c48f4cb7f1
am: b36b423230

Change-Id: I1ac9d349850d607c5fbf4a47760bc09de1c18043

6 years agoMerge changes Id8776d14,Ifa291c62,I5ea9d200
Lorenzo Colitti [Fri, 19 Jan 2018 16:30:17 +0000 (16:30 +0000)]
Merge changes Id8776d14,Ifa291c62,I5ea9d200
am: c48f4cb7f1

Change-Id: I7a0b01cba8bdee67cffabddacb4ff5f4591cbc34

6 years agoMerge "Remove use of streams in TransportManager"
TreeHugger Robot [Fri, 19 Jan 2018 15:47:14 +0000 (15:47 +0000)]
Merge "Remove use of streams in TransportManager"

6 years agoMerge "Renamed Setting's Directory Access constants."
TreeHugger Robot [Fri, 19 Jan 2018 15:41:20 +0000 (15:41 +0000)]
Merge "Renamed Setting's Directory Access constants."

6 years agoMerge "Display the active volume stream."
Julia Reynolds [Fri, 19 Jan 2018 15:40:35 +0000 (15:40 +0000)]
Merge "Display the active volume stream."

6 years agoMerge "Revert "Calc job standby runnability based on last job execution...""
Robert Berry [Fri, 19 Jan 2018 15:25:29 +0000 (15:25 +0000)]
Merge "Revert "Calc job standby runnability based on last job execution...""

6 years agoNotify device owner when user is started / stopped / switched
Alex Chau [Wed, 17 Jan 2018 18:26:03 +0000 (18:26 +0000)]
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

6 years agoBinding on-demand #11: Dump TransportClients
Bernardo Rufino [Wed, 17 Jan 2018 15:04:29 +0000 (15:04 +0000)]
Binding on-demand #11: Dump TransportClients

And adjust logs.

Change-Id: I04fcfb77bac14db36cc30288878bbb65332deb81
Ref: http://go/br-binding-on-demand
Bug: 17140907
Test: adb shell dumpsys backup

6 years agoMerge changes Id8776d14,Ifa291c62,I5ea9d200
Treehugger Robot [Fri, 19 Jan 2018 14:48:52 +0000 (14:48 +0000)]
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

6 years agoMerge "DisplayCutout: device-independent emulation overlay"
TreeHugger Robot [Fri, 19 Jan 2018 14:42:13 +0000 (14:42 +0000)]
Merge "DisplayCutout: device-independent emulation overlay"

6 years agoMerge "Import translations. DO NOT MERGE"
TreeHugger Robot [Fri, 19 Jan 2018 14:28:26 +0000 (14:28 +0000)]
Merge "Import translations. DO NOT MERGE"

6 years agoMerge "Import translations. DO NOT MERGE"
TreeHugger Robot [Fri, 19 Jan 2018 13:37:19 +0000 (13:37 +0000)]
Merge "Import translations. DO NOT MERGE"

6 years agoMerge "Implement Policy to disable printing."
Vladislav Kuzkokov [Fri, 19 Jan 2018 13:36:09 +0000 (13:36 +0000)]
Merge "Implement Policy to disable printing."

6 years agoRevert "Calc job standby runnability based on last job execution..."
Robert Berry [Fri, 19 Jan 2018 10:52:19 +0000 (10:52 +0000)]
Revert "Calc job standby runnability based on last job execution..."

This reverts commit f0ce10155244b8e7361dc61640a2d0beac22471b.

Reason for revert: broken master

Test: manual
Bug: 72207660
Change-Id: Ib760dadfd51c4457744b0688f714de8f61570f50

6 years agoMerge "Alert user on rapid/heavy data usage."
Jeff Sharkey [Fri, 19 Jan 2018 12:27:22 +0000 (12:27 +0000)]
Merge "Alert user on rapid/heavy data usage."

6 years agoMerge "Use data plans for better job scheduling."
Jeff Sharkey [Fri, 19 Jan 2018 12:21:01 +0000 (12:21 +0000)]
Merge "Use data plans for better job scheduling."

6 years agoRemove use of streams in TransportManager
Bernardo Rufino [Fri, 19 Jan 2018 11:22:44 +0000 (11:22 +0000)]
Remove use of streams in TransportManager

Test: m -j RunFrameworksServicesRoboTests
Change-Id: Ie5d81ca9e8c8fcda482fa520aa46841800b88210

6 years agoDisplayCutout: device-independent emulation overlay
Adrian Roos [Thu, 18 Jan 2018 16:45:52 +0000 (17:45 +0100)]
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

6 years agoMerge "Add validators for all Settings.Global settings that are backed up"
Michal Karpinski [Fri, 19 Jan 2018 11:44:13 +0000 (11:44 +0000)]
Merge "Add validators for all Settings.Global settings that are backed up"

6 years agoMerge "Add SettingsValidators class and a test for validators enforcement"
Michal Karpinski [Fri, 19 Jan 2018 11:42:52 +0000 (11:42 +0000)]
Merge "Add SettingsValidators class and a test for validators enforcement"

6 years agoMerge "Remove junit classes from android.jar"
TreeHugger Robot [Fri, 19 Jan 2018 11:40:20 +0000 (11:40 +0000)]
Merge "Remove junit classes from android.jar"

6 years agoMerge "Apply differential privacy on watchlist report"
Ricky Wai [Fri, 19 Jan 2018 11:28:06 +0000 (11:28 +0000)]
Merge "Apply differential privacy on watchlist report"

6 years agoMerge "Handle multiple packages of same name in 'aapt2 convert'"
David Chaloupka [Fri, 19 Jan 2018 10:57:53 +0000 (10:57 +0000)]
Merge "Handle multiple packages of same name in 'aapt2 convert'"

6 years agoTrack and persist in stats whether traffic is on the default network.
Lorenzo Colitti [Thu, 18 Jan 2018 16:12:04 +0000 (01:12 +0900)]
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

6 years agoAdd the default network to NetworkStats and NetworkStatsCollection.
Lorenzo Colitti [Thu, 18 Jan 2018 16:05:20 +0000 (01:05 +0900)]
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

6 years agoMerge "Initial commit for VideoView2Impl"
TreeHugger Robot [Fri, 19 Jan 2018 09:57:15 +0000 (09:57 +0000)]
Merge "Initial commit for VideoView2Impl"

6 years agoAdd cluster&active cost to cpu power
Mike Ma [Wed, 25 Oct 2017 18:08:57 +0000 (11:08 -0700)]
Add cluster&active cost to cpu power

Add logic to read per UID cluster and active CPU time from the kernel in
BatteryStatsImpl, store them in BatteryStats.Uid, then use these data to
calculate CPU power more accurately in CpuPowerCalculator.

Change-Id: I06a84d2bba8b97445466b310f15092614ff3477f
Bug: 67752294
Test: PowerProfileTest
Test: KernelUidCpuActiveTimeReaderTest
Test: KernelUidCpuClusterTimeReaderTest
Test: BatteryStatsCpuTimesTest

6 years agoAlert user on rapid/heavy data usage.
Jeff Sharkey [Fri, 19 Jan 2018 09:02:47 +0000 (18:02 +0900)]
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

6 years agoMerge "Only load preinstalled updatable in release"
TreeHugger Robot [Fri, 19 Jan 2018 09:18:39 +0000 (09:18 +0000)]
Merge "Only load preinstalled updatable in release"

6 years agoRemove junit classes from android.jar
Paul Duffin [Mon, 18 Dec 2017 12:53:43 +0000 (12:53 +0000)]
Remove junit classes from android.jar

Bug: 30188076
Test: make checkbuild
Change-Id: Ia90b8a81495299165d6f8d373ab8c5937e2a5290

6 years agoMerge "Added new SIM state related broadcasts." am: 0fc9900802 am: 6ada16b386
Amit Mahajan [Fri, 19 Jan 2018 08:02:04 +0000 (08:02 +0000)]
Merge "Added new SIM state related broadcasts." am: 0fc9900802 am: 6ada16b386
am: 1644137343  -s ours

Change-Id: I3b6f80f86f5a422d768f92ded609a2bc0ee61d86

6 years agoMerge "Added new SIM state related broadcasts." am: 0fc9900802
Amit Mahajan [Fri, 19 Jan 2018 07:54:45 +0000 (07:54 +0000)]
Merge "Added new SIM state related broadcasts." am: 0fc9900802
am: 6ada16b386

Change-Id: Id2b6996e712675b387d0f6b89043b02f39fb1af9

6 years agoMerge "Added new SIM state related broadcasts."
Amit Mahajan [Fri, 19 Jan 2018 07:47:21 +0000 (07:47 +0000)]
Merge "Added new SIM state related broadcasts."
am: 0fc9900802

Change-Id: I10b5f7a9307012e1097712acd36a91c5f6969c11

6 years agoPass all default networks to NetworkStatsService
Lorenzo Colitti [Thu, 18 Jan 2018 15:50:48 +0000 (00:50 +0900)]
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

6 years agoconfig.xml: Add configuration to enable/disable 80211AC
Roshan Pius [Wed, 17 Jan 2018 23:29:03 +0000 (15:29 -0800)]
config.xml: Add configuration to enable/disable 80211AC

Bug: 34669770
Test: Compiles
Change-Id: I8031de0c61d334fb3f0f2c23799e4d2ef22c8e32

6 years agoconfig.xml: Add configuration to enable/disable ACS
Roshan Pius [Wed, 17 Jan 2018 23:28:25 +0000 (15:28 -0800)]
config.xml: Add configuration to enable/disable ACS

Bug: 69065316
Test: Compiles
Change-Id: I390523b0879f5ec71806abdd39dddeb15dfc5940

6 years agoWifiConfiguration: Add support for auto-selecting AP band
Roshan Pius [Fri, 12 Jan 2018 00:52:14 +0000 (16:52 -0800)]
WifiConfiguration: Add support for auto-selecting AP band

Add new constant indicating the band/channel for SoftAp operation will
be determined during softap initialization.

The term 'ANY' for this option to be consistent with terminology used
in hostapd.

Bug: 68763822
Test: Compiles
Change-Id: I9676caf5188601ca16c9229aaa8be2d0e43404a6

6 years agoOnly load preinstalled updatable in release
Christofer Åkersten [Fri, 19 Jan 2018 07:20:37 +0000 (16:20 +0900)]
Only load preinstalled updatable in release

Test: Instantiate MediaController2
Change-Id: I8da88cf9291ee1365143ca86fa64d3f2fde8e225

6 years agoMerge "Only pass resources to updatable"
TreeHugger Robot [Fri, 19 Jan 2018 07:14:46 +0000 (07:14 +0000)]
Merge "Only pass resources to updatable"

6 years agoUse data plans for better job scheduling.
Jeff Sharkey [Thu, 18 Jan 2018 22:58:35 +0000 (07:58 +0900)]
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

6 years agoMerge "Add DataUnit to clarify SI-vs-IEC units."
Jeff Sharkey [Fri, 19 Jan 2018 06:38:48 +0000 (06:38 +0000)]
Merge "Add DataUnit to clarify SI-vs-IEC units."

6 years agoImport translations. DO NOT MERGE
Bill Yi [Fri, 19 Jan 2018 06:34:01 +0000 (22:34 -0800)]
Import translations. DO NOT MERGE

Change-Id: If8ac5eb5604380c537ddfa2ae118b7fc3f873211
Auto-generated-cl: translation import

6 years agoImport translations. DO NOT MERGE
Bill Yi [Fri, 19 Jan 2018 06:28:46 +0000 (22:28 -0800)]
Import translations. DO NOT MERGE

Change-Id: Icf032c113be4120f53b881992df53e3450720404
Auto-generated-cl: translation import

6 years agoMerge "Camera: Update MOTION_TRACKING requirements"
TreeHugger Robot [Fri, 19 Jan 2018 06:08:23 +0000 (06:08 +0000)]
Merge "Camera: Update MOTION_TRACKING requirements"

6 years agoMerge "Add 4 new fields to KeychainSnapshot"
TreeHugger Robot [Fri, 19 Jan 2018 05:51:43 +0000 (05:51 +0000)]
Merge "Add 4 new fields to KeychainSnapshot"

6 years agoInitial commit for VideoView2Impl
Insun Kang [Wed, 17 Jan 2018 14:06:18 +0000 (23:06 +0900)]
Initial commit for VideoView2Impl

Test: build
Change-Id: I12b93da01b9c37115cba29b8b50b36cf3d74ddb6

6 years agoMerge "Merge "Fixing app compat issue b/72143978" am: 8353a39ecc am: 61bab24fa8 am...
Android Build Merger (Role) [Fri, 19 Jan 2018 05:36:48 +0000 (05:36 +0000)]
Merge "Merge "Fixing app compat issue b/72143978" am: 8353a39ecc am: 61bab24fa8 am: 1993c5618a"

6 years agoMerge "Fixing app compat issue b/72143978" am: 8353a39ecc am: 61bab24fa8
Ian Pedowitz [Fri, 19 Jan 2018 05:35:27 +0000 (05:35 +0000)]
Merge "Fixing app compat issue b/72143978" am: 8353a39ecc am: 61bab24fa8
am: 1993c5618a

Change-Id: If6e67a008d02dc561982583a3819de1ef3e06e46

6 years agoMerge "Merge "HIDL: Check error value." am: 898137f817 am: 74426e9c2d am: b9b7bfb02f"
Android Build Merger (Role) [Fri, 19 Jan 2018 05:30:31 +0000 (05:30 +0000)]
Merge "Merge "HIDL: Check error value." am: 898137f817 am: 74426e9c2d am: b9b7bfb02f"

6 years agoMerge "HIDL: Check error value." am: 898137f817 am: 74426e9c2d
Steven Moreland [Fri, 19 Jan 2018 05:30:07 +0000 (05:30 +0000)]
Merge "HIDL: Check error value." am: 898137f817 am: 74426e9c2d
am: b9b7bfb02f

Change-Id: I2b1506eee7c7a5f9557029abd2013c3b2ae0c523

6 years agoMerge "StaticLayoutPerfTest: Use fixed seed in each test case"
TreeHugger Robot [Fri, 19 Jan 2018 05:27:46 +0000 (05:27 +0000)]
Merge "StaticLayoutPerfTest: Use fixed seed in each test case"

6 years agoMerge "Add ability to override subscriber capabilities." am: d6cd4b241a am: 5e097d452b
Jeff Sharkey [Fri, 19 Jan 2018 05:25:20 +0000 (05:25 +0000)]
Merge "Add ability to override subscriber capabilities." am: d6cd4b241a am: 5e097d452b
am: 992cfa2667

Change-Id: I46a6c87751494afca6fdd13736d7a4877e3cc833

6 years agoMerge "Fix <Report Audio Status> update" am: 1d5e2c3c37 am: e7aaba48de
Dan Zhang [Fri, 19 Jan 2018 05:21:12 +0000 (05:21 +0000)]
Merge "Fix <Report Audio Status> update" am: 1d5e2c3c37 am: e7aaba48de
am: 4775f0c76e

Change-Id: I98074b58c0b9def3d766c40ac2c5bc669a2abd0f

6 years agoMerge "Fix OTP performance with no Vendor ID device" am: 6ecaac4c9f am: b88d9b4593
Dan Zhang [Fri, 19 Jan 2018 05:17:09 +0000 (05:17 +0000)]
Merge "Fix OTP performance with no Vendor ID device" am: 6ecaac4c9f am: b88d9b4593
am: 0f279d4577

Change-Id: I0f8bb0736384cafd60180e658ecbe08a464db8d4

6 years agoMerge "Fix NPE by pressing Volume Up/Down" am: fca5ee0bb8 am: bd57a4d8a1
Dan Zhang [Fri, 19 Jan 2018 05:13:10 +0000 (05:13 +0000)]
Merge "Fix NPE by pressing Volume Up/Down" am: fca5ee0bb8 am: bd57a4d8a1
am: cc07fa73a1

Change-Id: I95d710489a0ad87c6e3811603097e5438f11f413

6 years agoMerge "Fix illegal volume value issue" am: 20443a8dbb am: 65dd4cbf32
Dan Zhang [Fri, 19 Jan 2018 05:09:15 +0000 (05:09 +0000)]
Merge "Fix illegal volume value issue" am: 20443a8dbb am: 65dd4cbf32
am: 3a05ecd714

Change-Id: I64f27d734dc93c036b4f8bd1ecf3088821b92a75

6 years agoOnly pass resources to updatable
Christofer Åkersten [Fri, 19 Jan 2018 05:09:09 +0000 (14:09 +0900)]
Only pass resources to updatable

Test: Instantiate MediaController2
Change-Id: If357a01847d8a2f9995af3f4c3ec3a777082c662

6 years agoMerge "Revert the field number change to make statsd_config proto backward-compatible."
TreeHugger Robot [Fri, 19 Jan 2018 05:03:27 +0000 (05:03 +0000)]
Merge "Revert the field number change to make statsd_config proto backward-compatible."

6 years agoMerge "Temporary use hardcoded counterId."
TreeHugger Robot [Fri, 19 Jan 2018 05:02:18 +0000 (05:02 +0000)]
Merge "Temporary use hardcoded counterId."

6 years agoMerge "resolve merge conflicts of f761f6371a0350bd8d62e97d14cce869a5039572 to master"
TreeHugger Robot [Fri, 19 Jan 2018 04:58:29 +0000 (04:58 +0000)]
Merge "resolve merge conflicts of f761f6371a0350bd8d62e97d14cce869a5039572 to master"

6 years agoAdd metric for restricted app detail page
jackqdyulei [Wed, 10 Jan 2018 01:42:52 +0000 (17:42 -0800)]
Add metric for restricted app detail page

Bug: 71502850
Test: Build
Change-Id: I8f57b11ba8f86bc36c0f64190d070e0640fde264

6 years agoMerge "Added new SIM state related broadcasts."
Treehugger Robot [Fri, 19 Jan 2018 04:25:12 +0000 (04:25 +0000)]
Merge "Added new SIM state related broadcasts."

6 years agoMerge "Fixing app compat issue b/72143978" am: 8353a39ecc
Ian Pedowitz [Fri, 19 Jan 2018 04:21:35 +0000 (04:21 +0000)]
Merge "Fixing app compat issue b/72143978" am: 8353a39ecc
am: 61bab24fa8

Change-Id: I6f07f1d9cfd26aa8b93a2563349b5e40effb7a41

6 years agoMerge "camera: Add external flash mode key"
TreeHugger Robot [Fri, 19 Jan 2018 04:19:23 +0000 (04:19 +0000)]
Merge "camera: Add external flash mode key"

6 years agoMerge "Fixing app compat issue b/72143978"
Ian Pedowitz [Fri, 19 Jan 2018 04:13:00 +0000 (04:13 +0000)]
Merge "Fixing app compat issue b/72143978"
am: 8353a39ecc

Change-Id: I4ca60a29aec20f08c65d85b03a080a19d03c7345

6 years agoFix Recents regressions
Winson Chung [Mon, 11 Dec 2017 20:17:06 +0000 (12:17 -0800)]
Fix Recents regressions

- Remove extra argument from the invocation of Recents from AM/WM, fetching
  the states directly. This also fixes the issue with the docked task from
  showing in Recents since the state will trigger the preloaded task stack
  to be invalidated.
- Move Recents stack update to onStart() to ensure that it is updated with
  the changes introduced in ag/3338461
- Fix an issue with the initial state being clobbered when entering split
  screen

Bug: 70279132
Test: Long press recents button to split screen, verify task is not visible
Change-Id: If5a3ca1d86fa0025d6b1e08abf73fe80a390ef8e