Commit Graph

309172 Commits

Author SHA1 Message Date
Anton Philippov
95a553e60b Add a constant for Backup Settings.
Test: mmma -j40 frameworks/base
Change-Id: I7437e299d17e8fbda6a8f0e332400b7db28b46ba
2017-01-27 00:37:44 +00:00
Daniel Nishi
56d29925ac Merge "Add a flag to enable/disable the diskstats logging service." into nyc-mr2-dev 2017-01-27 00:35:24 +00:00
Lorenzo Colitti
277bd4235e 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.
2017-01-27 00:34:16 +00:00
TreeHugger Robot
6470caa2e2 Merge "Import translations. DO NOT MERGE" into nyc-mr2-dev 2017-01-27 00:26:12 +00:00
Android Build Merger (Role)
aff4c97f9f Merge "Merge "Increase the character limit for "Use System Selection" message" am: a7ce460921 am: d0386d8c07 am: 798e1862bd am: 6fe88fa07b" 2017-01-27 00:16:28 +00:00
Pavlin Radoslavov
ef5374bd4e Merge "Increase the character limit for "Use System Selection" message" am: a7ce460921 am: d0386d8c07 am: 798e1862bd
am: 6fe88fa07b

Change-Id: I3c6e6b3078d122b4b188669adea8ac86005a7eb8
2017-01-27 00:15:37 +00:00
Android Build Merger (Role)
6a010a4b26 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
2017-01-27 00:15:06 +00:00
TreeHugger Robot
56ff000782 Merge "Disable RescueParty in debug/lab environments." 2017-01-27 00:14:27 +00:00
Peter Qiu
60c777dcd2 Merge changes If5025361,Iabe27cd8 am: 0a649bffcc am: 0773d2cc0d am: 26bdc1f273
am: e0209c2964

Change-Id: I358ec7c3c5587a3bf692ae5d99be43ea378f7a67
2017-01-27 00:13:28 +00:00
Chris Craik
a0428f8dae Merge "Temporarily enable GL validation" 2017-01-27 00:13:20 +00:00
Peter Qiu
e5373fd4b6 hotspot2: added remaining parameters to PasspointConfiguration am: ddf6fa06c6 am: 44bcb75926 am: 8badc8566a
am: 245fddfd80

Change-Id: I6c5914a16371ba123ee5ac743722c9c799c535bb
2017-01-27 00:12:22 +00:00
Peter Qiu
57f0c791ad hotspot2: add support for complete PerProviderSubscription/Policy subtree am: 2d7af45e93 am: 01e738a040 am: 6251e52cc0
am: 98de3a02f5

Change-Id: I5435de8256c81654e24c3a251df3a35893f4a0d1
2017-01-27 00:11:16 +00:00
Adrian Roos
95d3aa3173 AOD: Fix in-place ambient layout updates
Change-Id: I7863bd5690476b76456182ee37527548f4acb54d
Fixes: 34734890
Test: Post notification, post update to notification, enter ambient display, observe that ambient display is up to date.
2017-01-26 16:09:26 -08:00
Jeff Sharkey
6112860c5c Unhide ApplicationInfo.volumeUuid.
Apps need it to interact with the new StorageStatsManager APIs.

Test: builds, boots
Bug: 34723750
Change-Id: I274d5bd425cd401e10647959ba18f9956628d810
2017-01-26 17:08:40 -07:00
Pavlin Radoslavov
6fe88fa07b Merge "Increase the character limit for "Use System Selection" message" am: a7ce460921 am: d0386d8c07
am: 798e1862bd

Change-Id: I52bd0ba6cee2435648f1ccf8a53bc9d76526973a
2017-01-26 23:55:43 +00:00
Jeff Sharkey
0b558701d8 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
2017-01-26 16:52:04 -07:00
Pavlin Radoslavov
798e1862bd Merge "Increase the character limit for "Use System Selection" message" am: a7ce460921
am: d0386d8c07

Change-Id: I34e41269fd5d47024e211daa4b5c48124e7db0a8
2017-01-26 23:46:49 +00:00
TreeHugger Robot
4e816831e2 Merge "Add basic AnchoredWindow." 2017-01-26 23:46:09 +00:00
Pavlin Radoslavov
d0386d8c07 Merge "Increase the character limit for "Use System Selection" message"
am: a7ce460921

Change-Id: I3092241c8b1a6e458b3dc2a1332abbf0d19cf786
2017-01-26 23:41:39 +00:00
Felipe Leme
bd00fef41c 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
2017-01-26 15:39:59 -08:00
Treehugger Robot
a7ce460921 Merge "Increase the character limit for "Use System Selection" message" 2017-01-26 23:34:37 +00:00
Jeff Sharkey
f17e4cf1f9 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
2017-01-26 16:23:55 -07:00
Peter Qiu
e0209c2964 Merge changes If5025361,Iabe27cd8 am: 0a649bffcc am: 0773d2cc0d
am: 26bdc1f273

Change-Id: I9576f50cc7a922a684efb9ab4e1a57eac766280f
2017-01-26 23:11:17 +00:00
Peter Qiu
245fddfd80 hotspot2: added remaining parameters to PasspointConfiguration am: ddf6fa06c6 am: 44bcb75926
am: 8badc8566a

Change-Id: I700aa39aed04e002643371b552647ada2492c6bf
2017-01-26 23:09:59 +00:00
Peter Qiu
98de3a02f5 hotspot2: add support for complete PerProviderSubscription/Policy subtree am: 2d7af45e93 am: 01e738a040
am: 6251e52cc0

Change-Id: I1305266ff24105e5b9326868f3212f8a27802fea
2017-01-26 23:09:07 +00:00
Amith Yamasani
dacf5e522e Merge "Add NPE check before stopping profiler" 2017-01-26 23:04:07 +00:00
Peter Qiu
26bdc1f273 Merge changes If5025361,Iabe27cd8 am: 0a649bffcc
am: 0773d2cc0d

Change-Id: Ie890d96d2e2741cefc2e20957a65a0cd65c2fe13
2017-01-26 23:03:03 +00:00
Peter Qiu
8badc8566a hotspot2: added remaining parameters to PasspointConfiguration am: ddf6fa06c6
am: 44bcb75926

Change-Id: Ibb587721014dd25243f7423864f1d5019ee42fde
2017-01-26 23:01:35 +00:00
Peter Qiu
6251e52cc0 hotspot2: add support for complete PerProviderSubscription/Policy subtree am: 2d7af45e93
am: 01e738a040

Change-Id: Ic35247930e4c7a99c5408593287926adcc1be8b9
2017-01-26 23:00:38 +00:00
Amith Yamasani
b1684439b5 Add NPE check before stopping profiler
During crash scenarios, stopProfiling() could be called early.

Change-Id: I6ef78a47e3431dd7c41198ec29d40ebef3928c6a
Fixes: 34744398
Test: N/A
2017-01-26 14:58:26 -08:00
TreeHugger Robot
17bb1b77f7 Merge "Add a client chain to WifiEnterpriseConfig" 2017-01-26 22:58:15 +00:00
Peter Qiu
0773d2cc0d Merge changes If5025361,Iabe27cd8
am: 0a649bffcc

Change-Id: Ia66d523ed565704178315d66bd19ffe02cbb7560
2017-01-26 22:53:13 +00:00
Peter Qiu
44bcb75926 hotspot2: added remaining parameters to PasspointConfiguration
am: ddf6fa06c6

Change-Id: I023acc0ae2920391de8a8de8ee95152f510ca9bd
2017-01-26 22:53:04 +00:00
Peter Qiu
01e738a040 hotspot2: add support for complete PerProviderSubscription/Policy subtree
am: 2d7af45e93

Change-Id: Icf253102520e81766e726d9247c9614b6c0ebacd
2017-01-26 22:52:11 +00:00
Soonil Nagarkar
6c72a326bb Merge "Add background location throttling whitelist support." 2017-01-26 22:51:35 +00:00
Treehugger Robot
0a649bffcc Merge changes If5025361,Iabe27cd8
* changes:
  hotspot2: added remaining parameters to PasspointConfiguration
  hotspot2: add support for complete PerProviderSubscription/Policy subtree
2017-01-26 22:41:19 +00:00
Daniel Nishi
7e33682338 Add a filter for audio apps.
Bug: 33199077
Test: SettingsLib integ tests
Change-Id: Iad3717c78debe4d4c5edbb4337d0c79f062d93a6
2017-01-26 14:34:32 -08:00
Winson Chung
38fe7107d9 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
2017-01-26 22:31:53 +00:00
Winson Chung
8f1a5cdbd0 DO NOT MERGE Fixing crash in SystemUI fetching task description icons. am: 452ff6db94
am: 3bbbf8f253  -s ours

Change-Id: Ifa14218c9dbb5d6ec5d6579dc16ba1d427fc9cc8
2017-01-26 22:30:38 +00:00
Jeff Sharkey
cdee83a614 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
2017-01-26 15:29:42 -07:00
Daniel Nishi
88e45dcd1f Add a flag to enable/disable the diskstats logging service.
Bug: 34704947
Test: Service tests
Change-Id: I224cfb38682f1fd2bd33750b664bd3aacdaa4bde
2017-01-26 14:24:28 -08:00
Winson Chung
edf796e8a3 Merge "DO NOT MERGE Fixing crash in SystemUI fetching task description icons." into nyc-mr2-dev
am: c52a3cb704

Change-Id: If0c3bb685dfd6a13d816c8ef01a291e3988cf5a5
2017-01-26 22:23:18 +00:00
Winson Chung
3bbbf8f253 DO NOT MERGE Fixing crash in SystemUI fetching task description icons.
am: 452ff6db94

Change-Id: Ibbc3312c882c2c5cfd250b2a7062e365a0fde5a7
2017-01-26 22:23:11 +00:00
Sunny Goyal
33d9bc529e Merge "Adding AppWidgetManager.isRequestPinAppWidgetSupported" 2017-01-26 22:22:55 +00:00
TreeHugger Robot
4e231da7fe Merge "Minor javadoc cleanup." 2017-01-26 22:18:05 +00:00
Winson Chung
c52a3cb704 Merge "DO NOT MERGE Fixing crash in SystemUI fetching task description icons." into nyc-mr2-dev 2017-01-26 22:17:13 +00:00
Jason Long
d1144eb85e Add basic AnchoredWindow.
Bug: 34637800
Test: Manual
Change-Id: I82c9ec44296c3423e3f8d3b55832e344a5094cfd
2017-01-26 14:09:28 -08:00
TreeHugger Robot
5c7700f8b7 Merge "Create Settings Flags to Disable Scoring UI changes." 2017-01-26 22:07:17 +00:00
TreeHugger Robot
8c6aea6469 Merge "SysUI: Fix typo in NotificationPanelView" 2017-01-26 22:05:22 +00:00
Pavlin Radoslavov
f8c776ce01 Increase the character limit for "Use System Selection" message
The character limit for message "Use System Selection (Default)"
has been increased from 40 to 50.

Test: UI visual inspection
Bug: 34662759
Change-Id: I9aba6847ddab27bb0456fb6dfd429692732f07c2
2017-01-26 13:37:14 -08:00