OSDN Git Service

android-x86/frameworks-base.git
7 years agoMerge "Update doc to allow system image app to display terms in ManagedProvisioning"
TreeHugger Robot [Fri, 27 Jan 2017 16:09:23 +0000 (16:09 +0000)]
Merge "Update doc to allow system image app to display terms in ManagedProvisioning"

7 years agoMerge "Add separate roaming icon for status bar + QS" into nyc-mr2-dev am: 76812ac8ac
Jason Monk [Fri, 27 Jan 2017 15:31:01 +0000 (15:31 +0000)]
Merge "Add separate roaming icon for status bar + QS" into nyc-mr2-dev am: 76812ac8ac
am: 73f1a5a758

Change-Id: I92d40150cc37c744fed43857cdd929f1da721759

7 years agoAdd separate roaming icon for status bar + QS am: f62e889394
Jason Monk [Fri, 27 Jan 2017 15:29:58 +0000 (15:29 +0000)]
Add separate roaming icon for status bar + QS am: f62e889394
am: f58cc5768a  -s ours

Change-Id: Id20403fe5beeb3919c0bc5526adccbc5a10d69da

7 years agoMerge "Fix DPM.getPermissionGrantState()"
TreeHugger Robot [Fri, 27 Jan 2017 15:23:10 +0000 (15:23 +0000)]
Merge "Fix DPM.getPermissionGrantState()"

7 years agoMerge "Add separate roaming icon for status bar + QS" into nyc-mr2-dev
Jason Monk [Fri, 27 Jan 2017 15:15:01 +0000 (15:15 +0000)]
Merge "Add separate roaming icon for status bar + QS" into nyc-mr2-dev
am: 76812ac8ac

Change-Id: I05998104c4d19d35cf8eba6b2a4aa1b35dfb600a

7 years agoAdd separate roaming icon for status bar + QS
Jason Monk [Fri, 27 Jan 2017 15:14:53 +0000 (15:14 +0000)]
Add separate roaming icon for status bar + QS
am: f62e889394

Change-Id: I065c6420e0ed379f44d7789e77590e5a39c2a5ec

7 years agoMerge "Add separate roaming icon for status bar + QS" into nyc-mr2-dev
Jason Monk [Fri, 27 Jan 2017 15:08:03 +0000 (15:08 +0000)]
Merge "Add separate roaming icon for status bar + QS" into nyc-mr2-dev

7 years agoMerge "Add a constant for Backup Settings."
Anton Philippov [Fri, 27 Jan 2017 14:44:09 +0000 (14:44 +0000)]
Merge "Add a constant for Backup Settings."

7 years agoUpdate doc to allow system image app to display terms in ManagedProvisioning
Victor Chang [Fri, 27 Jan 2017 11:51:56 +0000 (11:51 +0000)]
Update doc to allow system image app to display terms in ManagedProvisioning

Bug: 34320095
Test: javadoc update only. built successfully
Change-Id: I9f023a12adbbd5f3d5ed3594508642b8dd573896

7 years agoFix DPM.getPermissionGrantState()
Bartosz Fabianowski [Fri, 27 Jan 2017 13:47:17 +0000 (14:47 +0100)]
Fix DPM.getPermissionGrantState()

The recent addition of DPM API access delegation introduced a bug in
this method. When a system app (UID 1000) called the method, it would
crash.

Bug: 34760123
Test: DPM unit tests
Change-Id: I69390ca30270d64a4d28a74c13a7679f14a62959

7 years agoMerge "Allow showing content on virtual displays when locked"
TreeHugger Robot [Fri, 27 Jan 2017 13:07:52 +0000 (13:07 +0000)]
Merge "Allow showing content on virtual displays when locked"

7 years agoMerge "ConnectivityServiceTest: fix flaky tests" am: b8bbd30203 am: 8fea8e5bbd am...
Lorenzo Colitti [Fri, 27 Jan 2017 10:04:15 +0000 (10:04 +0000)]
Merge "ConnectivityServiceTest: fix flaky tests" am: b8bbd30203 am: 8fea8e5bbd am: c620e64f61
am: 5bad599e2e

Change-Id: I3a16ff459b8f702249f14e9becbb2630ce7471fd

7 years agoMerge "ConnectivityServiceTest: remove flaky waitForIdle test." am: be80577f5b am...
Lorenzo Colitti [Fri, 27 Jan 2017 10:00:14 +0000 (10:00 +0000)]
Merge "ConnectivityServiceTest: remove flaky waitForIdle test." am: be80577f5b am: 0c659d2065 am: f8cff961c8
am: 420ad9748a

Change-Id: Iebafbf438ee4efcd53b3e6d5c71b34c0ca4e2c6b

7 years agoMerge "ConnectivityServiceTest: fix flaky tests" am: b8bbd30203 am: 8fea8e5bbd
Lorenzo Colitti [Fri, 27 Jan 2017 10:00:06 +0000 (10:00 +0000)]
Merge "ConnectivityServiceTest: fix flaky tests" am: b8bbd30203 am: 8fea8e5bbd
am: c620e64f61

Change-Id: Iaa1ab50a323133cadfa4f39440fce982cde8d1fe

7 years agoMerge "ConnectivityServiceTest: fix flaky tests" am: b8bbd30203
Lorenzo Colitti [Fri, 27 Jan 2017 09:55:39 +0000 (09:55 +0000)]
Merge "ConnectivityServiceTest: fix flaky tests" am: b8bbd30203
am: 8fea8e5bbd

Change-Id: I66f2c2174c2895224724245c1b3d815da1678955

7 years agoMerge "ConnectivityServiceTest: remove flaky waitForIdle test." am: be80577f5b am...
Lorenzo Colitti [Fri, 27 Jan 2017 09:55:36 +0000 (09:55 +0000)]
Merge "ConnectivityServiceTest: remove flaky waitForIdle test." am: be80577f5b am: 0c659d2065
am: f8cff961c8

Change-Id: I1d3707b4bc2ae00ca0fad1c3ec7e6ca859fcdd16

7 years agoMerge "ConnectivityServiceTest: remove flaky waitForIdle test." am: be80577f5b
Lorenzo Colitti [Fri, 27 Jan 2017 09:51:39 +0000 (09:51 +0000)]
Merge "ConnectivityServiceTest: remove flaky waitForIdle test." am: be80577f5b
am: 0c659d2065

Change-Id: I7fbf2cb2c9778f5c961335c5b9fd5a138ec140db

7 years agoMerge "ConnectivityServiceTest: fix flaky tests"
Lorenzo Colitti [Fri, 27 Jan 2017 09:51:32 +0000 (09:51 +0000)]
Merge "ConnectivityServiceTest: fix flaky tests"
am: b8bbd30203

Change-Id: I0577f6b48de8a95e7d12e58a672fb0374ced9403

7 years agoMerge "ConnectivityServiceTest: remove flaky waitForIdle test."
Lorenzo Colitti [Fri, 27 Jan 2017 09:47:05 +0000 (09:47 +0000)]
Merge "ConnectivityServiceTest: remove flaky waitForIdle test."
am: be80577f5b

Change-Id: I444746af6adc7be4a3f69243379f65aadf29ea19

7 years agoMerge "ConnectivityServiceTest: fix flaky tests"
Lorenzo Colitti [Fri, 27 Jan 2017 09:40:46 +0000 (09:40 +0000)]
Merge "ConnectivityServiceTest: fix flaky tests"

7 years agoMerge "ConnectivityServiceTest: remove flaky waitForIdle test."
Lorenzo Colitti [Fri, 27 Jan 2017 09:38:51 +0000 (09:38 +0000)]
Merge "ConnectivityServiceTest: remove flaky waitForIdle test."

7 years agoMerge "Ensure settings provider joins the rescue party"
TreeHugger Robot [Fri, 27 Jan 2017 09:04:27 +0000 (09:04 +0000)]
Merge "Ensure settings provider joins the rescue party"

7 years agoAllow showing content on virtual displays when locked
Andrii Kulian [Thu, 26 Jan 2017 21:17:27 +0000 (13:17 -0800)]
Allow showing content on virtual displays when locked

This adds new flag to virtual display that changes its
behavior when keyguard is shown, but can be dismissed without
entering credentials. This can be applied only to private
virtual displays.

Bug: 34280365
Test: android.server.cts.ActivityManagerDisplayTests
Test: #testVirtualDisplayHidesContentWhenLocked
Test: #testShowWhenLockedVirtualDisplay
Test: #testShowWhenLockedPublicVirtualDisplay
Change-Id: I9c19d36295e62f59bd1db1352af707d54ea51667

7 years agoMerge changes from topic 'net-sync-aosp-with-stage-aosp' into stage-aosp-master am...
Lorenzo Colitti [Fri, 27 Jan 2017 07:48:01 +0000 (07:48 +0000)]
Merge changes from topic 'net-sync-aosp-with-stage-aosp' into stage-aosp-master am: 277bd4235e am: 22cd53384c
am: 13df9a8f3b

Change-Id: I21e82ec985335ed9aed78b3fc5dcb005d1ab025b

7 years agoMerge commit '88932754ffdcbffb3cb43e03991e5eb598c10458' into nyc-mr1-dev-plus-aosp...
Hugo Benichi [Fri, 27 Jan 2017 07:43:06 +0000 (07:43 +0000)]
Merge commit '88932754ffdcbffb3cb43e03991e5eb598c10458' into nyc-mr1-dev-plus-aosp am: 6a688ca1ad  -s ours
am: b7050f527e

Change-Id: Iaaba0c8dd7181a5560158c47e817d31c25d8dbf6

7 years agoMerge commit '48a1136c8b3000c651e8bcd86325acd1dce6e4ec' into nyc-mr1-dev-plus-aosp...
Stephen Chen [Fri, 27 Jan 2017 07:42:07 +0000 (07:42 +0000)]
Merge commit '48a1136c8b3000c651e8bcd86325acd1dce6e4ec' into nyc-mr1-dev-plus-aosp am: 7bc2aebd53
am: 90de4acf20

Change-Id: I318efe59e1967150338a7bd8001c27d9ebe3cf75

7 years agoMerge commit 'a19056c35d16ddb5a6c1d3343729701b8939f1e1' into nyc-mr1-dev-plus-aosp...
Hugo Benichi [Fri, 27 Jan 2017 07:40:56 +0000 (07:40 +0000)]
Merge commit 'a19056c35d16ddb5a6c1d3343729701b8939f1e1' into nyc-mr1-dev-plus-aosp am: 53095bb5bd  -s ours
am: 6917374fde

Change-Id: I7028ef23f597e6e82ecdb6c11a6c8dcdb1d1f77b

7 years agoMerge changes from topic 'net-sync-aosp-with-stage-aosp' into stage-aosp-master am...
Lorenzo Colitti [Fri, 27 Jan 2017 07:37:02 +0000 (07:37 +0000)]
Merge changes from topic 'net-sync-aosp-with-stage-aosp' into stage-aosp-master am: 277bd4235e
am: 22cd53384c

Change-Id: I03bdbb9fc8ceb6a7180b93c29b1d63b4fd471820

7 years agoMerge commit '88932754ffdcbffb3cb43e03991e5eb598c10458' into nyc-mr1-dev-plus-aosp
Hugo Benichi [Fri, 27 Jan 2017 07:29:59 +0000 (07:29 +0000)]
Merge commit '88932754ffdcbffb3cb43e03991e5eb598c10458' into nyc-mr1-dev-plus-aosp
am: 6a688ca1ad  -s ours

Change-Id: Icf4cf5e8e95b9de4b313f826a40c1df81c02aa8a

7 years agoMerge commit '48a1136c8b3000c651e8bcd86325acd1dce6e4ec' into nyc-mr1-dev-plus-aosp
Stephen Chen [Fri, 27 Jan 2017 07:29:07 +0000 (07:29 +0000)]
Merge commit '48a1136c8b3000c651e8bcd86325acd1dce6e4ec' into nyc-mr1-dev-plus-aosp
am: 7bc2aebd53

Change-Id: I3de8f91b1c9d0160ec58be8347502769580e0159

7 years agoMerge commit 'a19056c35d16ddb5a6c1d3343729701b8939f1e1' into nyc-mr1-dev-plus-aosp
Hugo Benichi [Fri, 27 Jan 2017 07:28:06 +0000 (07:28 +0000)]
Merge commit 'a19056c35d16ddb5a6c1d3343729701b8939f1e1' into nyc-mr1-dev-plus-aosp
am: 53095bb5bd  -s ours

Change-Id: Ie2f8c1e18acf57238fe4816812562ecd1644cf51

7 years agoMerge changes from topic 'net-sync-aosp-with-stage-aosp' into stage-aosp-master
Lorenzo Colitti [Fri, 27 Jan 2017 07:26:28 +0000 (07:26 +0000)]
Merge changes from topic 'net-sync-aosp-with-stage-aosp' into stage-aosp-master
am: 277bd4235e

Change-Id: I02efb8229026eb6ddfbf10bf72645dea10a4215f

7 years agoEnsure settings provider joins the rescue party
Svetoslav Ganov [Fri, 27 Jan 2017 06:43:09 +0000 (22:43 -0800)]
Ensure settings provider joins the rescue party

The settings provider has logic to incrementally reset state
in an effort to recover from pushing a bad value putting the
system in a bad state. The settings provider was not force
persisting its state after a reset so after the reboot we
lost the reset changes. Also while resetting we were also
resetting the package name leading to a promotion of the reset
value to being set by the system. Updated the tests and while at
this added logic to synchronously persist critical settings
such as device provisioned.

Test: All tests pass. Manually tested end-to-end rescue party

bug:34677175

Change-Id: Ib240072df2fa549dae39c301008adf48cdf1573a

7 years agoMerge commit '88932754ffdcbffb3cb43e03991e5eb598c10458' into nyc-mr1-dev-plus-aosp
The Android Automerger [Fri, 27 Jan 2017 06:39:52 +0000 (06:39 +0000)]
Merge commit '88932754ffdcbffb3cb43e03991e5eb598c10458' into nyc-mr1-dev-plus-aosp

* commit '88932754ffdcbffb3cb43e03991e5eb598c10458':
  Captive portals: login activity probes like NetworkMonitor
  Logging improvements in CaptivePortalLoginActivity
  Captive portal systel log improvements
  Fix flaky IpPrefixTest.
  Removing bogus file added by mistake
  frameworks-test: adding missing @SmallTest
  Netd events: record connect() success/errno
  Add missing dependency.
  Show notification for always-on app VPN

7 years agoMerge commit '48a1136c8b3000c651e8bcd86325acd1dce6e4ec' into nyc-mr1-dev-plus-aosp
The Android Automerger [Fri, 27 Jan 2017 06:39:41 +0000 (06:39 +0000)]
Merge commit '48a1136c8b3000c651e8bcd86325acd1dce6e4ec' into nyc-mr1-dev-plus-aosp

* commit '48a1136c8b3000c651e8bcd86325acd1dce6e4ec':
  Implement metered tracking for NetworkStats summary queries.

7 years agoMerge commit 'a19056c35d16ddb5a6c1d3343729701b8939f1e1' into nyc-mr1-dev-plus-aosp
The Android Automerger [Fri, 27 Jan 2017 06:39:05 +0000 (06:39 +0000)]
Merge commit 'a19056c35d16ddb5a6c1d3343729701b8939f1e1' into nyc-mr1-dev-plus-aosp

* commit 'a19056c35d16ddb5a6c1d3343729701b8939f1e1': (35 commits)
  NetworkMonitor: send one DNS probe per web probe
  NetworkMonitor metrics: add first validation information
  APF: also drop any ICMPv6 RSs
  ConnectivityServiceTest: fix testAvoidBadWifiSettings
  Fix ConnectivityServiceTest testRequestBenchmark
  Switch over to new "time.android.com" NTP pool.
  Define API for metering network stats buckets.
  Refactored NetworkStatsServiceTest to use Mockito instead of EasyMock.
  Use @Ignore to explicitly disable a @Test method.
  Fixed NetworkStatsServiceTest and converted it to JUnit4.
  VPN network stat accounting changes.
  ConnectivityThread: use lazy holder idiom
  ConnectivityManager: use ConnectivityThread looper
  ConnectivityManager: a simpler CallbackHandler
  Indicate the NsdServiceInfo attributes are only filled in for a resolved service.
  Add a null check for the OnStartTetheringCallback.
  TokenBucket for rate-limiting and throttling
  IpConnectivityMetrics reads buffer size in settings
  CaptivePortalLogin: set mixed content policy to compatibility.
  Add IP conn metrics to dumpsys and bug reports
  ...

7 years agoMerge "Fix issues with launching activities on virtual displays"
TreeHugger Robot [Fri, 27 Jan 2017 05:44:34 +0000 (05:44 +0000)]
Merge "Fix issues with launching activities on virtual displays"

7 years agoMerge changes from topic 'session_refactoring'
TreeHugger Robot [Fri, 27 Jan 2017 03:46:31 +0000 (03:46 +0000)]
Merge changes from topic 'session_refactoring'

* changes:
  Adds autofill save ui
  Moar AutoFill Framework refactoring...

7 years agoFix issues with launching activities on virtual displays
Andrii Kulian [Fri, 27 Jan 2017 03:43:13 +0000 (19:43 -0800)]
Fix issues with launching activities on virtual displays

- Virtual displays might have hdr capabilities not initialized,
  which lead to exception when checking.
- Dynamic stacks were mistakenly considered an invalid launch stack.

Test: android.server.cts.ActivityManagerDisplayTests
Change-Id: I20356d6e25cf9e5fa4a3d7bd3699a8e82a73f21a

7 years agoUse listener to determine whether an Animator has ended
Doris Liu [Fri, 27 Jan 2017 02:50:04 +0000 (18:50 -0800)]
Use listener to determine whether an Animator has ended

BUG: 34736819
Test: ran cts test for ValueAnimator and AnimatorSet
Change-Id: Ia1070f83833940cb09d26243f5873751d9ca2a38

7 years agoMerge "Lifecycle guarantees for target fragments"
TreeHugger Robot [Fri, 27 Jan 2017 02:45:13 +0000 (02:45 +0000)]
Merge "Lifecycle guarantees for target fragments"

7 years agoMerge "Expose Java side for parenting SurfaceControl"
TreeHugger Robot [Fri, 27 Jan 2017 02:43:47 +0000 (02:43 +0000)]
Merge "Expose Java side for parenting SurfaceControl"

7 years agoMerge "Remove unused symbols for a11y."
Phil Weaver [Fri, 27 Jan 2017 02:28:54 +0000 (02:28 +0000)]
Merge "Remove unused symbols for a11y."

7 years agoMerge "Change the theme to light for help activity."
TreeHugger Robot [Fri, 27 Jan 2017 02:14:14 +0000 (02:14 +0000)]
Merge "Change the theme to light for help activity."

7 years agoAdds autofill save ui
Felipe Leme [Fri, 27 Jan 2017 00:52:12 +0000 (16:52 -0800)]
Adds autofill save ui

Test: Manual verification of save ui
Test: CtsAutoFillServiceTestCases passes

BUG: 31001899
Change-Id: Ibb154fc6108f20e6a1b889549bd264e8b80f2f0c

7 years agoMerge "StrictMode detectAll() based on target API level."
TreeHugger Robot [Fri, 27 Jan 2017 01:41:30 +0000 (01:41 +0000)]
Merge "StrictMode detectAll() based on target API level."

7 years agoMerge "Unhide ApplicationInfo.volumeUuid."
TreeHugger Robot [Fri, 27 Jan 2017 01:34:36 +0000 (01:34 +0000)]
Merge "Unhide ApplicationInfo.volumeUuid."

7 years agoMerge "Push mapping from file extension to GID."
TreeHugger Robot [Fri, 27 Jan 2017 01:03:06 +0000 (01:03 +0000)]
Merge "Push mapping from file extension to GID."

7 years agoLifecycle guarantees for target fragments
Adam Powell [Thu, 26 Jan 2017 22:14:34 +0000 (14:14 -0800)]
Lifecycle guarantees for target fragments

Ported from frameworks/support change id
I824eb312fbdfd6b548fe94aa2cd5b03afbaa97c7

When a target fragment was set using Fragment#setTargetFragment, all
bets were off, especially when restoring from instance state. Order of
lifecyle initialization was undefined meaning that two bugs could
occur, both of which manifested as the target fragment was not
initialized by the time the referring fragment's onCreate ran. One
could happen if the target fragment is on the back stack, the other
could happen if the target fragment was ordered unfortunately in
FragmentManager implementation details. (!)

Fix both by guaranteeing that any target fragment gets pushed forward
to at least the CREATED state before we dispatch any lifecycle events
for the referring fragment.

Add some sanity checks that try to keep developers from setting target
fragments across different FragmentManagers or from creating target
cycles, both of which are bad ideas.

Bug: 33653458
Test: CTS FragmentLifecycleTest
Change-Id: If624d4665d29e205d37b9b384322e64d6d6d3615

7 years agoMerge "Merge "Add a flag to enable/disable the diskstats logging service." into nyc...
Android Build Merger (Role) [Fri, 27 Jan 2017 00:51:15 +0000 (00:51 +0000)]
Merge "Merge "Add a flag to enable/disable the diskstats logging service." into nyc-mr2-dev am: 56d29925ac am: 4726ee4435"

7 years agoMerge "Add a flag to enable/disable the diskstats logging service." into nyc-mr2...
Daniel Nishi [Fri, 27 Jan 2017 00:50:27 +0000 (00:50 +0000)]
Merge "Add a flag to enable/disable the diskstats logging service." into nyc-mr2-dev am: 56d29925ac
am: 4726ee4435

Change-Id: Ib8a6e37e37a73f61eee28a3a656c349af327c230

7 years agoMerge "Add a flag to enable/disable the diskstats logging service. am: 88e45dcd1f...
Android Build Merger (Role) [Fri, 27 Jan 2017 00:50:00 +0000 (00:50 +0000)]
Merge "Add a flag to enable/disable the diskstats logging service. am: 88e45dcd1f am: 2297fd2946"

7 years agoAdd a flag to enable/disable the diskstats logging service. am: 88e45dcd1f
Daniel Nishi [Fri, 27 Jan 2017 00:49:10 +0000 (00:49 +0000)]
Add a flag to enable/disable the diskstats logging service. am: 88e45dcd1f
am: 2297fd2946

Change-Id: I15391057ae632e36f05231a1d188dd01c1e5da90

7 years agoMerge "Cache isManagedProfile()."
Makoto Onuki [Fri, 27 Jan 2017 00:49:05 +0000 (00:49 +0000)]
Merge "Cache isManagedProfile()."

7 years agoMerge "Import translations. DO NOT MERGE" into nyc-mr2-dev am: 6470caa2e2 -s ours
Bill Yi [Fri, 27 Jan 2017 00:44:21 +0000 (00:44 +0000)]
Merge "Import translations. DO NOT MERGE" into nyc-mr2-dev am: 6470caa2e2  -s ours
am: fe6ad95cdc  -s ours

Change-Id: I2c05e5319cefd6da5433273e040a667aa161cafa

7 years agoImport translations. DO NOT MERGE am: 951b1616fc -s ours
Bill Yi [Fri, 27 Jan 2017 00:43:20 +0000 (00:43 +0000)]
Import translations. DO NOT MERGE am: 951b1616fc  -s ours
am: ffc4f0e83c  -s ours

Change-Id: I0607c22635ee2f90b368777562c407cfa58bb796

7 years agoMerge "Add a flag to enable/disable the diskstats logging service." into nyc-mr2-dev
Daniel Nishi [Fri, 27 Jan 2017 00:43:02 +0000 (00:43 +0000)]
Merge "Add a flag to enable/disable the diskstats logging service." into nyc-mr2-dev
am: 56d29925ac

Change-Id: Ibb4ae749d9eaa0cc10f2ebb721c2b94fa13cac38

7 years agoAdd a flag to enable/disable the diskstats logging service.
Daniel Nishi [Fri, 27 Jan 2017 00:42:54 +0000 (00:42 +0000)]
Add a flag to enable/disable the diskstats logging service.
am: 88e45dcd1f

Change-Id: Ie822eea68dc0a02c8fad1a838ff9bf23f738106f

7 years agoRemove unused symbols for a11y.
Phil Weaver [Fri, 27 Jan 2017 00:38:36 +0000 (16:38 -0800)]
Remove unused symbols for a11y.

Bug: 34738635
Test: These are unused. Verifying the build seems sufficient.
Change-Id: I5bbb97780b1b994871e8c13b1ef58a8a958fa99b

7 years agoMerge "Import translations. DO NOT MERGE" into nyc-mr2-dev
Bill Yi [Fri, 27 Jan 2017 00:38:24 +0000 (00:38 +0000)]
Merge "Import translations. DO NOT MERGE" into nyc-mr2-dev
am: 6470caa2e2  -s ours

Change-Id: I6cea2b032629810b13efba6e2efb18ba2e1e7b0f

7 years agoImport translations. DO NOT MERGE
Bill Yi [Fri, 27 Jan 2017 00:38:20 +0000 (00:38 +0000)]
Import translations. DO NOT MERGE
am: 951b1616fc  -s ours

Change-Id: Id69967bfaa808912b8d31bffabdc0d414454961c

7 years agoAdd a constant for Backup Settings.
Anton Philippov [Fri, 27 Jan 2017 00:08:24 +0000 (00:08 +0000)]
Add a constant for Backup Settings.

Test: mmma -j40 frameworks/base
Change-Id: I7437e299d17e8fbda6a8f0e332400b7db28b46ba

7 years agoMerge "Add a flag to enable/disable the diskstats logging service." into nyc-mr2-dev
Daniel Nishi [Fri, 27 Jan 2017 00:35:22 +0000 (00:35 +0000)]
Merge "Add a flag to enable/disable the diskstats logging service." into nyc-mr2-dev

7 years agoMerge changes from topic 'net-sync-aosp-with-stage-aosp' into stage-aosp-master
Lorenzo Colitti [Fri, 27 Jan 2017 00:34:13 +0000 (00:34 +0000)]
Merge changes from topic 'net-sync-aosp-with-stage-aosp' into stage-aosp-master

* changes:
  Captive portals: login activity probes like NetworkMonitor
  Logging improvements in CaptivePortalLoginActivity
  Captive portal systel log improvements
  Fix flaky IpPrefixTest.
  Removing bogus file added by mistake
  frameworks-test: adding missing @SmallTest
  Netd events: record connect() success/errno
  Add missing dependency.
  Show notification for always-on app VPN
  Implement metered tracking for NetworkStats summary queries.
  NetworkMonitor: send one DNS probe per web probe
  NetworkMonitor metrics: add first validation information
  APF: also drop any ICMPv6 RSs
  ConnectivityServiceTest: fix testAvoidBadWifiSettings
  Fix ConnectivityServiceTest testRequestBenchmark
  Switch over to new "time.android.com" NTP pool.
  Define API for metering network stats buckets.
  Refactored NetworkStatsServiceTest to use Mockito instead of EasyMock.
  Use @Ignore to explicitly disable a @Test method.
  Fixed NetworkStatsServiceTest and converted it to JUnit4.
  VPN network stat accounting changes.
  ConnectivityThread: use lazy holder idiom
  ConnectivityManager: use ConnectivityThread looper
  ConnectivityManager: a simpler CallbackHandler
  Indicate the NsdServiceInfo attributes are only filled in for a resolved service.
  Add a null check for the OnStartTetheringCallback.
  TokenBucket for rate-limiting and throttling
  IpConnectivityMetrics reads buffer size in settings
  CaptivePortalLogin: set mixed content policy to compatibility.
  Add IP conn metrics to dumpsys and bug reports
  IpConnectivity metrics: add version number
  [CS] Remove timeout event after first available
  ApfTest: tag tests with @SmallTest or @MediumTest
  Unbreak TetherInterfaceStateMachineTest.
  Move the connectivity tests to frameworks/base/tests/net.
  De-guava BroadcastInterceptingContext and move it to testutils.
  Move FakeSettingsProvider to a common location.
  ConnectivityServiceTest: mark flaky test as such
  Add option to skip and avoid captive portals.
  ApfFilter: use elapsedRealTime for RA lifetime
  Do not synchronize boolean reads/writes
  ApfFilter: systematically use u8, u16, u32 getters
  Add fuzzing tests to ApfFilter RA processing
  Support timeouts for requestNetwork() invocations.
  Silence the obnoxious MTU 0 error message that occur when no MTU is specified for a given network.

7 years agoMerge "Import translations. DO NOT MERGE" into nyc-mr2-dev
TreeHugger Robot [Fri, 27 Jan 2017 00:26:05 +0000 (00:26 +0000)]
Merge "Import translations. DO NOT MERGE" into nyc-mr2-dev

7 years agoMerge "Merge "Increase the character limit for "Use System Selection" message" am...
Android Build Merger (Role) [Fri, 27 Jan 2017 00:16:24 +0000 (00:16 +0000)]
Merge "Merge "Increase the character limit for "Use System Selection" message" am: a7ce460921 am: d0386d8c07 am: 798e1862bd am: 6fe88fa07b"

7 years agoMerge "Increase the character limit for "Use System Selection" message" am: a7ce46092...
Pavlin Radoslavov [Fri, 27 Jan 2017 00:15:37 +0000 (00:15 +0000)]
Merge "Increase the character limit for "Use System Selection" message" am: a7ce460921 am: d0386d8c07 am: 798e1862bd
am: 6fe88fa07b

Change-Id: I3c6e6b3078d122b4b188669adea8ac86005a7eb8

7 years agoMerge changes from topic 'am-eb68d9e366474ba086c6cc9ae44030fe'
Android Build Merger (Role) [Fri, 27 Jan 2017 00:15:01 +0000 (00:15 +0000)]
Merge changes from topic 'am-eb68d9e366474ba086c6cc9ae44030fe'

* changes:
  Merge changes If5025361,Iabe27cd8 am: 0a649bffcc am: 0773d2cc0d am: 26bdc1f273 am: e0209c2964
  hotspot2: added remaining parameters to PasspointConfiguration am: ddf6fa06c6 am: 44bcb75926 am: 8badc8566a am: 245fddfd80
  hotspot2: add support for complete PerProviderSubscription/Policy subtree am: 2d7af45e93 am: 01e738a040 am: 6251e52cc0 am: 98de3a02f5

7 years agoMerge "Disable RescueParty in debug/lab environments."
TreeHugger Robot [Fri, 27 Jan 2017 00:14:22 +0000 (00:14 +0000)]
Merge "Disable RescueParty in debug/lab environments."

7 years agoMerge changes If5025361,Iabe27cd8 am: 0a649bffcc am: 0773d2cc0d am: 26bdc1f273
Peter Qiu [Fri, 27 Jan 2017 00:13:28 +0000 (00:13 +0000)]
Merge changes If5025361,Iabe27cd8 am: 0a649bffcc am: 0773d2cc0d am: 26bdc1f273
am: e0209c2964

Change-Id: I358ec7c3c5587a3bf692ae5d99be43ea378f7a67

7 years agoMerge "Temporarily enable GL validation"
Chris Craik [Fri, 27 Jan 2017 00:13:16 +0000 (00:13 +0000)]
Merge "Temporarily enable GL validation"

7 years agohotspot2: added remaining parameters to PasspointConfiguration am: ddf6fa06c6 am...
Peter Qiu [Fri, 27 Jan 2017 00:12:22 +0000 (00:12 +0000)]
hotspot2: added remaining parameters to PasspointConfiguration am: ddf6fa06c6 am: 44bcb75926 am: 8badc8566a
am: 245fddfd80

Change-Id: I6c5914a16371ba123ee5ac743722c9c799c535bb

7 years agohotspot2: add support for complete PerProviderSubscription/Policy subtree am: 2d7af45...
Peter Qiu [Fri, 27 Jan 2017 00:11:16 +0000 (00:11 +0000)]
hotspot2: add support for complete PerProviderSubscription/Policy subtree am: 2d7af45e93 am: 01e738a040 am: 6251e52cc0
am: 98de3a02f5

Change-Id: I5435de8256c81654e24c3a251df3a35893f4a0d1

7 years agoUnhide ApplicationInfo.volumeUuid.
Jeff Sharkey [Fri, 27 Jan 2017 00:07:35 +0000 (17:07 -0700)]
Unhide ApplicationInfo.volumeUuid.

Apps need it to interact with the new StorageStatsManager APIs.

Test: builds, boots
Bug: 34723750
Change-Id: I274d5bd425cd401e10647959ba18f9956628d810

7 years agoMerge "Increase the character limit for "Use System Selection" message" am: a7ce46092...
Pavlin Radoslavov [Thu, 26 Jan 2017 23:55:43 +0000 (23:55 +0000)]
Merge "Increase the character limit for "Use System Selection" message" am: a7ce460921 am: d0386d8c07
am: 798e1862bd

Change-Id: I52bd0ba6cee2435648f1ccf8a53bc9d76526973a

7 years agoStrictMode detectAll() based on target API level.
Jeff Sharkey [Thu, 26 Jan 2017 23:48:01 +0000 (16:48 -0700)]
StrictMode detectAll() based on target API level.

Some apps are asking StrictMode to detectAll(), but we should only
trigger the violation types that they would expect based on their
target SDK level.  (This prevents us from starting to yell about
violations in new API levels that a developer never would have known
about.)

Test: builds, boots, older apps aren't triggered
Bug: 34735225
Change-Id: Idff1bfdf57c635b828236e34a24d55350b9fa556

7 years agoMerge "Increase the character limit for "Use System Selection" message" am: a7ce460921
Pavlin Radoslavov [Thu, 26 Jan 2017 23:46:49 +0000 (23:46 +0000)]
Merge "Increase the character limit for "Use System Selection" message" am: a7ce460921
am: d0386d8c07

Change-Id: I34e41269fd5d47024e211daa4b5c48124e7db0a8

7 years agoMerge "Add basic AnchoredWindow."
TreeHugger Robot [Thu, 26 Jan 2017 23:46:05 +0000 (23:46 +0000)]
Merge "Add basic AnchoredWindow."

7 years agoMerge "Increase the character limit for "Use System Selection" message"
Pavlin Radoslavov [Thu, 26 Jan 2017 23:41:39 +0000 (23:41 +0000)]
Merge "Increase the character limit for "Use System Selection" message"
am: a7ce460921

Change-Id: I3092241c8b1a6e458b3dc2a1332abbf0d19cf786

7 years agoMoar AutoFill Framework refactoring...
Felipe Leme [Tue, 24 Jan 2017 23:10:26 +0000 (15:10 -0800)]
Moar AutoFill Framework refactoring...

* Encapsulated application-level auto-fill logic on AutoFillSession.
  Currently, Activity.java directly manages the IAutoFillCallback binder
  object used to auto-fill its views, but this logic need to be
  extended so Views can use it to draw the auto-fill bar.

* Pass auto-fill id and boundaries to requests
  So AutoFillUI can display its affordance in the right places.

* Uses a new auto-fill id on View (instead of reusing accessibility's).
  That allows moving the logic on whether a new request should be made or
  the existing UI moved to the service side.

* Split service methods in 2, for shell cmd and app
  And applied the right permission check on both.

* Removed CancelationSignal from onSaveRequest()
  Since it's not really needed.

* Etc...
  ¯\_(ツ)_/¯

BUG: 34637800
BUG: 31001899
Test: CtsAutoFillServiceTestCases passes
Test: manual verification

Change-Id: Ibd0cb2cfff6d0f6bb6b697a423ed5e89df687b82

7 years agoMerge "Increase the character limit for "Use System Selection" message"
Treehugger Robot [Thu, 26 Jan 2017 23:34:36 +0000 (23:34 +0000)]
Merge "Increase the character limit for "Use System Selection" message"

7 years agoPush mapping from file extension to GID.
Jeff Sharkey [Thu, 26 Jan 2017 22:46:00 +0000 (15:46 -0700)]
Push mapping from file extension to GID.

An upcoming sdcardfs change will offer to automatically change the
GID of files on external storage based on the extension, but we need
to tell the kernel the mapping that we'd like to see.

This change pushes the current mappings used by installd when kernel
support is detected.

Test: builds, boots, works with old/new kernels
Bug: 34733702
Change-Id: I4a13b17f5a8e080a9bea51b01aa9f1cbf575e0ab

7 years agoMerge changes If5025361,Iabe27cd8 am: 0a649bffcc am: 0773d2cc0d
Peter Qiu [Thu, 26 Jan 2017 23:11:17 +0000 (23:11 +0000)]
Merge changes If5025361,Iabe27cd8 am: 0a649bffcc am: 0773d2cc0d
am: 26bdc1f273

Change-Id: I9576f50cc7a922a684efb9ab4e1a57eac766280f

7 years agohotspot2: added remaining parameters to PasspointConfiguration am: ddf6fa06c6 am...
Peter Qiu [Thu, 26 Jan 2017 23:09:59 +0000 (23:09 +0000)]
hotspot2: added remaining parameters to PasspointConfiguration am: ddf6fa06c6 am: 44bcb75926
am: 8badc8566a

Change-Id: I700aa39aed04e002643371b552647ada2492c6bf

7 years agohotspot2: add support for complete PerProviderSubscription/Policy subtree am: 2d7af45...
Peter Qiu [Thu, 26 Jan 2017 23:09:07 +0000 (23:09 +0000)]
hotspot2: add support for complete PerProviderSubscription/Policy subtree am: 2d7af45e93 am: 01e738a040
am: 6251e52cc0

Change-Id: I1305266ff24105e5b9326868f3212f8a27802fea

7 years agoMerge "Add NPE check before stopping profiler"
Amith Yamasani [Thu, 26 Jan 2017 23:04:03 +0000 (23:04 +0000)]
Merge "Add NPE check before stopping profiler"

7 years agoMerge changes If5025361,Iabe27cd8 am: 0a649bffcc
Peter Qiu [Thu, 26 Jan 2017 23:03:03 +0000 (23:03 +0000)]
Merge changes If5025361,Iabe27cd8 am: 0a649bffcc
am: 0773d2cc0d

Change-Id: Ie890d96d2e2741cefc2e20957a65a0cd65c2fe13

7 years agohotspot2: added remaining parameters to PasspointConfiguration am: ddf6fa06c6
Peter Qiu [Thu, 26 Jan 2017 23:01:35 +0000 (23:01 +0000)]
hotspot2: added remaining parameters to PasspointConfiguration am: ddf6fa06c6
am: 44bcb75926

Change-Id: Ibb587721014dd25243f7423864f1d5019ee42fde

7 years agohotspot2: add support for complete PerProviderSubscription/Policy subtree am: 2d7af45e93
Peter Qiu [Thu, 26 Jan 2017 23:00:38 +0000 (23:00 +0000)]
hotspot2: add support for complete PerProviderSubscription/Policy subtree am: 2d7af45e93
am: 01e738a040

Change-Id: Ic35247930e4c7a99c5408593287926adcc1be8b9

7 years agoAdd NPE check before stopping profiler
Amith Yamasani [Thu, 26 Jan 2017 22:57:20 +0000 (14:57 -0800)]
Add NPE check before stopping profiler

During crash scenarios, stopProfiling() could be called early.

Change-Id: I6ef78a47e3431dd7c41198ec29d40ebef3928c6a
Fixes: 34744398
Test: N/A

7 years agoMerge "Add a client chain to WifiEnterpriseConfig"
TreeHugger Robot [Thu, 26 Jan 2017 22:58:10 +0000 (22:58 +0000)]
Merge "Add a client chain to WifiEnterpriseConfig"

7 years agoMerge changes If5025361,Iabe27cd8
Peter Qiu [Thu, 26 Jan 2017 22:53:13 +0000 (22:53 +0000)]
Merge changes If5025361,Iabe27cd8
am: 0a649bffcc

Change-Id: Ia66d523ed565704178315d66bd19ffe02cbb7560

7 years agohotspot2: added remaining parameters to PasspointConfiguration
Peter Qiu [Thu, 26 Jan 2017 22:53:04 +0000 (22:53 +0000)]
hotspot2: added remaining parameters to PasspointConfiguration
am: ddf6fa06c6

Change-Id: I023acc0ae2920391de8a8de8ee95152f510ca9bd

7 years agohotspot2: add support for complete PerProviderSubscription/Policy subtree
Peter Qiu [Thu, 26 Jan 2017 22:52:11 +0000 (22:52 +0000)]
hotspot2: add support for complete PerProviderSubscription/Policy subtree
am: 2d7af45e93

Change-Id: Icf253102520e81766e726d9247c9614b6c0ebacd

7 years agoMerge "Add background location throttling whitelist support."
Soonil Nagarkar [Thu, 26 Jan 2017 22:51:30 +0000 (22:51 +0000)]
Merge "Add background location throttling whitelist support."

7 years agoMerge changes If5025361,Iabe27cd8
Treehugger Robot [Thu, 26 Jan 2017 22:41:17 +0000 (22:41 +0000)]
Merge changes If5025361,Iabe27cd8

* changes:
  hotspot2: added remaining parameters to PasspointConfiguration
  hotspot2: add support for complete PerProviderSubscription/Policy subtree

7 years agoMerge "DO NOT MERGE Fixing crash in SystemUI fetching task description icons." into...
Winson Chung [Thu, 26 Jan 2017 22:31:53 +0000 (22:31 +0000)]
Merge "DO NOT MERGE Fixing crash in SystemUI fetching task description icons." into nyc-mr2-dev am: c52a3cb704
am: edf796e8a3  -s ours

Change-Id: Ib22733dbd9018bbe583b0135f66cd4dab29a1238

7 years agoDO NOT MERGE Fixing crash in SystemUI fetching task description icons. am: 452ff6db94
Winson Chung [Thu, 26 Jan 2017 22:30:38 +0000 (22:30 +0000)]
DO NOT MERGE Fixing crash in SystemUI fetching task description icons. am: 452ff6db94
am: 3bbbf8f253  -s ours

Change-Id: Ifa14218c9dbb5d6ec5d6579dc16ba1d427fc9cc8

7 years agoDisable RescueParty in debug/lab environments.
Jeff Sharkey [Thu, 26 Jan 2017 22:29:16 +0000 (15:29 -0700)]
Disable RescueParty in debug/lab environments.

We need to strike a balance between rescuing devices of real users
in the field, while also not interfering with debugging or testing
use-cases.

This change uses "charging via USB" as a signal that the device is
under active development, or is in a lab environment.  We could try
checking for an adb connection, but UsbDebuggingManager isn't
started until much later in the boot, so BatteryManager is our best
chance of detecting this case.

Note that we continue to always recover "user" builds, and we never
recover "eng" builds.

Test: builds, boots, skips when plugged in over USB
Bug: 34722552
Change-Id: Ib095482a2ed84e8c5dfb3c71d5f9b88457c2b5e6

7 years agoAdd a flag to enable/disable the diskstats logging service.
Daniel Nishi [Wed, 25 Jan 2017 19:43:55 +0000 (11:43 -0800)]
Add a flag to enable/disable the diskstats logging service.

Bug: 34704947
Test: Service tests
Change-Id: I224cfb38682f1fd2bd33750b664bd3aacdaa4bde