Commit Graph

309172 Commits

Author SHA1 Message Date
Suprabh Shukla
588411fc7c DO NOT MERGE Do not call RecoverySystem with DPMS lock held am: 4ffe72dcc8 am: ab8d3febd3
am: 2e6bdbeaab

Change-Id: I7e286445a887e467a7de42ce9b27a9dc009e47fd
2017-02-02 02:32:48 +00:00
Suprabh Shukla
2e6bdbeaab DO NOT MERGE Do not call RecoverySystem with DPMS lock held am: 4ffe72dcc8
am: ab8d3febd3

Change-Id: If42411391fe2010162c51adf48e720e308a650ec
2017-02-02 02:28:13 +00:00
Manu Cornet
f41a8c5a3d Merge "2D Recents: Fix issues with thumbnail scaling transitions" into nyc-mr2-dev 2017-02-02 02:22:07 +00:00
Suprabh Shukla
ab8d3febd3 DO NOT MERGE Do not call RecoverySystem with DPMS lock held
am: 4ffe72dcc8

Change-Id: Ic7b9ef6484df0b57c8f1ee7a483ef3bda05c7cc7
2017-02-02 02:21:16 +00:00
Erik Kline
35bf06c968 Add ConnectivityManager.networkCapabilitiesForType()
This static method returns a NetworkCapabilities instance with
transports and capabilities set according to the given legacy type.

Also:
    - add NetworkRequest.Builder.setCapabilities(), to be able to use
      the NetworkCapabilities instances returned from the above
    - update UpstreamNetworkMonitor to make immediate use of this

Test: as follows
    - build (bullhead)
    - flashed
    - booted
    - runtest frameworks-net passes
    - WiFi to DUN upstream tethering works
Bug: 32163131

Change-Id: Idfe1ddd2815c355cbf27cf29eb0e3de177de84e9
2017-02-02 11:07:59 +09:00
Felipe Leme
5523f9a2fc Merge "Improved AutoFill Save workflow." 2017-02-02 02:05:32 +00:00
Josh Gao
45dab78e98 zygote: make all capabilities inheritable.
Set CapInh to the full set of permitted capabilities, so that the crash
handler can raise ambient capabilities to allow crash_dump to ptrace
zygote-descended children without needing CAP_SYS_PTRACE. CapInh is
restricted by filesystem capabilities if the ambient capability set
hasn't been raised, so this should only have an effect when ambient
capabilities are modified.

Bug: http://b/34853272
Test: debuggerd -b `pidof system_server`
Change-Id: I27d2aa4ab4fc47a183ce2b254be178de4d58840c
2017-02-01 17:56:43 -08:00
Josh Gao
0a2d61505a Revert "zygote: don't drop CAP_SYS_PTRACE from the bounding set."
This reverts commit 59972218f8.

Bug: http://b/34853272
Test: debuggerd -b `pidof system_server`
Change-Id: I440932210b6e84647c2848bab2e082a58338fb1e
2017-02-01 17:56:43 -08:00
sergeyv
9f4a82f569 Hardware bitmaps: Destroy texture ID generated for the copy
Test: manual
bug:34807359
Change-Id: Idb1ef2a2efcb3cf7fb96e2a1f0554a06e7cd0fc2
2017-02-01 17:50:27 -08:00
Makoto Onuki
82233e9203 DO NOT MERGE Do not call RecoverySystem with DPMS lock held am: 2317451acc am: 01f971dcdc am: 963cba5b5b am: f1e276384d am: 46bfcb9961 -s ours
am: 62c651d4d5  -s ours

Change-Id: I459ff4ec03824e661d286aa718e029c7a5a60c7d
2017-02-02 01:29:49 +00:00
Makoto Onuki
62c651d4d5 DO NOT MERGE Do not call RecoverySystem with DPMS lock held am: 2317451acc am: 01f971dcdc am: 963cba5b5b am: f1e276384d
am: 46bfcb9961  -s ours

Change-Id: Ie1cd5114414daeb1216827563333ed91df873604
2017-02-02 01:25:19 +00:00
Makoto Onuki
3d45f12cad DO NOT MERGE Do not call RecoverySystem with DPMS lock held am: 2317451acc am: 01f971dcdc am: 963cba5b5b
am: f1e276384d  -s ours

Change-Id: I7bca9ba27360ef311bb82356ca16643bc2ff82a2
2017-02-02 01:19:52 +00:00
Makoto Onuki
46bfcb9961 DO NOT MERGE Do not call RecoverySystem with DPMS lock held am: 2317451acc am: 01f971dcdc am: 963cba5b5b
am: f1e276384d

Change-Id: I856ad657b894531f03bc145e033b0cebf4e722cd
2017-02-02 01:19:52 +00:00
Makoto Onuki
f1e276384d DO NOT MERGE Do not call RecoverySystem with DPMS lock held am: 2317451acc am: 01f971dcdc
am: 963cba5b5b

Change-Id: I3a1421f656d1a90970eac6156e0840625662fb17
2017-02-02 01:15:44 +00:00
Makoto Onuki
963cba5b5b DO NOT MERGE Do not call RecoverySystem with DPMS lock held am: 2317451acc
am: 01f971dcdc

Change-Id: If5f5e5d47b97e2b8480adc5ca2cb08702056ca87
2017-02-02 01:10:43 +00:00
Makoto Onuki
01f971dcdc DO NOT MERGE Do not call RecoverySystem with DPMS lock held
am: 2317451acc

Change-Id: Id3441141d4feea4c7291350c9670bd59ec017240
2017-02-02 01:03:21 +00:00
TreeHugger Robot
d8a937e02e Merge "Add dumpsys options to procstats to inject screen state" 2017-02-02 01:02:33 +00:00
Winson Chung
b0412060ea Merge changes Iad270dfd,Ice608e6d,I375369a8
* changes:
  Adding initial TRON logging for picture-in-picture.
  Disallow entering PiP when activity is locked.
  Preventing cases where an app can be stopped while entering PiP.
2017-02-02 00:23:08 +00:00
TreeHugger Robot
58f34b828d Merge "Start MtpDocumentsService as foreground service." 2017-02-02 00:13:34 +00:00
Dongwon Kang
eedc4b5b7d TIF: change the column names to be consistent with other fields
1. Add _MILLIS for time related columns.
2. Remove PREVIEW_ prefix.
(COLUMN_PREVIEW_VIDEO_URI is an exception since the meaning is not
clear without it.)
3. Add _URI for COLUMN_LOGO

Test: cts-tradefed run cts -m CtsTvTestCases
Bug: 34806184
Change-Id: I1c75b0402508911a37491c7712f12574e574fb9b
2017-02-01 16:13:26 -08:00
Daichi Hirono
d3c6dd1522 Start MtpDocumentsService as foreground service.
Prevously MtpDocumentsService was started as background service, then it
turns into a foreground service by calling Service#startForeground.

The workflow did not work until this, because now background activity
cannot launch a background service.

The CL starts using NotificationManager#startForegroundService to launch
MtpDocumentsService so that the service can be started as foreground
service directly.

Bug: 34468813
Test: MtpDocumentsProviderTests
Test: manual testing with connecting MTP device to Android
Change-Id: Ic35d3e92f234881846e5d82ed04d6681a83035f7
2017-02-02 00:13:08 +00:00
Steven Thomas
1e9b4b07c9 Avoid NPE in NightDisplayService when VR mode is invoked
Bug: b/32086748

Test: I was seeing the crash without the CL. With the CL no more crash.
Change-Id: I286af1066ce8928ed72a83a8da645fe99953fd85
2017-02-01 15:53:13 -08:00
Hangyu Kuang
03299f9c8e media: Add 3gpp output format to MediaMuxer.
Test: CTS test.
Bug: 34281643
Change-Id: I45b65728aa1fbde7cee88ca41d7f1bd692fc866c
2017-02-01 15:44:49 -08:00
Amith Yamasani
674c9bb2ff Batterystats commands to simulate screen on/off
Needed for batterystats cts tests to measure partial wakelock
duration reporting.

Bug: 34233085
Test: adb shell dumpsys batterystats enable pretend-screen-off
Change-Id: Ia7c76d6a0636d206e04f01be58d1e6dc3332c50d
2017-02-01 15:39:57 -08:00
Mark Renouf
362b4131bc Merge "Removing extraneous translations" 2017-02-01 23:30:56 +00:00
Adam Lesinski
86d67df8d5 AAPT2: Support CtsContentTestCases build
- Add <feature-group> to ManifestFixer.
- Support <meta-data> in <instrumentation>
- Add support for <bag> and type="configVarying". Some CTS tests use this
  old notation, we need to support it (even though configVarying isn't
  anything supported by the framework convention).

Change-Id: I6946fa633ce513ea8437c1496db883cf27dcf6de
Test: make aapt2_tests
2017-02-01 15:28:23 -08:00
TreeHugger Robot
bc5d58307a Merge "Fix a bug in View#hasFocusable with new auto-focusable behavior" 2017-02-01 23:23:43 +00:00
Jason Long
2288eff965 Fix AutoFill Save window layout params.
Change-Id: I54ae23e9ab1b12ab868b37fd8e87e89dad7ae8fc
Test: CTS
2017-02-01 15:16:53 -08:00
TreeHugger Robot
655ce66be5 Merge "Scale PiP to stack instead of crop." 2017-02-01 23:14:16 +00:00
Jean-Michel Trivi
7592b986e1 AudioService: query a11y manager at init for a11y volume active
When initializing accessibility state monitoring, query the
  accessibility manager whether any service is enabling the
  accessibility volume

Test: adb shell dumpsys audio, look for sIndependentA11yVolume
Bug: 30448020
Change-Id: Ie8c32e10a35f4eef5fdeadacccefaaec1cdfb022
2017-02-01 15:12:15 -08:00
TreeHugger Robot
65924030d6 Merge "[DO NOT MERGE] Delay SharedPreferences.apply() by 50 ms" into nyc-mr2-dev 2017-02-01 23:08:58 +00:00
Makoto Onuki
3ed5be3fa7 Add dumpsys options to procstats to inject screen state
Test: CTS CtsDumpsysHostTestCases, not submitted yet though.
$ cts-tradefed run cts --skip-device-info --skip-preconditions --skip-system-status-check com.android.compatibility.common.tradefed.targetprep.NetworkConnectivityChecker -a armeabi-v7a -l INFO -m CtsDumpsysHostTestCases -t 'android.dumpsys.cts.ProcessStatsDumpsysTest'
Bug 34228624

Change-Id: I9cf7f737624fe9f188956be7ba7485151555bc4b
2017-02-01 14:55:33 -08:00
Bryce Lee
0c430fa464 Merge "Allow opening activity to specify orientation." 2017-02-01 22:54:33 +00:00
Sergei Vasilinetc
0e177d32ed Merge "Explicitly destroy Layer in DeferredLayerUpdater on destroyHardwareResources()" 2017-02-01 22:52:21 +00:00
Sergei Vasilinetc
2cf7b1f142 Merge "Properly clear textures for Hardware Bitmaps" 2017-02-01 22:48:06 +00:00
Peter Qiu
2c3b5ee2be SettingsLib: wifi: Fixed AccessPoint tracking for Passpoint networks
Previously, we were using provider name as the "SSID" for
Passpoint networks, and use it to compare against real SSIDs,
which obvious doesn't match.  So fix it.

Also removed the Passpoint specific logics in WifiTracker for
tracking Passpoint networks, since there shouldn't any
difference in tracking Passpoint APs and normal APs.

Additional work is still needed for managing installed
Passpoint configurations in the "Saved networks" page,
and it is being tracked by b/34207710. The Passpoint configuration
is not an "Access Point" per se, it is a network profile.

Bug: 34455883
Test: Install a Globla Reach Passpoint profile on a bullhead,
      verify device auto connects to a Global Reach AP and UI
      (QS, QS+, and Settings) correctly reflects it.

Change-Id: I63e66f683f8cb96e664516b130f5e7bc02358a10
2017-02-01 14:40:34 -08:00
Jason Monk
2db4619153 QS: Remove circles and add lines
- Remove circles from icons.
 - Add lines to indicate tiles with dual tap targets.
 - Change default order

Test: visual
Change-Id: I1eb02641757a76ddf3e3876182f7b2503161bc9e
2017-02-01 17:22:51 -05:00
Yohei Yukawa
d033283508 No warning/info log for expected/normal situations
This CL hides warning and info log messages from
InputMethodManagerService (IMMS) and InputMethodService (IMS) behind
DEBUG flag like other logs unless the state is certainly unusual.

Of course the definition of "unusual" is still an open question, but
basically that we should not see any suspicious message from IMMS/IMS
just by turning on a new phone, launching some applications, typing
something, and turning off the device. IMMS and IMS should expect all
events that can (easily) occur in that scenario, and no log is
necessary for such things.

Note that warnings suppressed with TODO comments will be tracked
under Bug 34851776 (and Bug 34886274).

Test: adb logcat -s InputMethodManagerService:* InputMethodService:*
      to monitor log in the following scenario:
       1. Boot the device.
       2. Complete the setup wizard.
       3. Launch Dialer and type something on it.
       4. Launch Contacts app and type something on it.
       5. Try some special modes:
           - Turn on/off display
           - Recents screen
           - Split-window mode
           - Guest user
           - Multi user
           - Direct-boot (setup a device password and reboot)
      except for logs about actual IPC calls from a background user.
Bug: 34838583
Bug: 34851776
Bug: 34886274
Change-Id: I3fcdeb919bb2f2940da9ff45e17ac00baa1253f4
2017-02-01 13:59:43 -08:00
Sundeep Ghuman
05c41e2ce4 Show saved networks before scored networks.
Changing ranking order to prioritize saved networks over scored
networks.

Bug: 34716123
Test: Turn on scoring and scoring UI features, ensure unscored saved
network appears before unsaved scored network. Working on adding tests
for AccessPoint.java separately.

Change-Id: Ib53ade6c0e3756e2595ba6a73bf1a0fdc05e3074
2017-02-01 13:27:56 -08:00
Pierre Lecesne
0fcdf4399e Merge "Backbone of the new aapt2 strip command." 2017-02-01 21:15:12 +00:00
Steven Moreland
a59b4912b4 Merge "Cleanup hwbinder getService code." am: 9be24a3040 am: 4ede371d80 am: ec840d1464
am: 8bb391016b

Change-Id: I56d2b0c8d466e78316497264b7ca96f6526b3d9d
2017-02-01 21:08:00 +00:00
Adrian Roos
643e51e3a1 StatusBar: Clean up buzzBeepBlinked and friends
Test: mmm frameworks/base/packages/SystemUI
Change-Id: Idcd1fe02e825c18782880d8d12345776a3928ddf
2017-02-01 21:06:01 +00:00
Steven Moreland
8bb391016b Merge "Cleanup hwbinder getService code." am: 9be24a3040 am: 4ede371d80
am: ec840d1464

Change-Id: I83a7077f07689dc57ac4d8828508443cc4385292
2017-02-01 21:03:54 +00:00
Daniel Nishi
646f500315 Merge "Add a filter for audio apps." 2017-02-01 21:01:55 +00:00
Steven Moreland
ec840d1464 Merge "Cleanup hwbinder getService code." am: 9be24a3040
am: 4ede371d80

Change-Id: Ia0f3f88d8881f89cec6939dbb44d7dbbb8da9a7f
2017-02-01 20:57:59 +00:00
TreeHugger Robot
edae71777f Merge "Fix setting null target fragments" 2017-02-01 20:54:55 +00:00
Steven Moreland
4ede371d80 Merge "Cleanup hwbinder getService code."
am: 9be24a3040

Change-Id: Idb75f2c41e6e0fd9c2eb03ef4960e40cb6556308
2017-02-01 20:53:24 +00:00
Mario Bertschler
a03a291437 Merge "App Widget Service with dump in protobuf format" 2017-02-01 20:47:05 +00:00
Treehugger Robot
9be24a3040 Merge "Cleanup hwbinder getService code." 2017-02-01 20:46:45 +00:00
sergeyv
83809fec68 Properly clear textures for Hardware Bitmaps
Test: manual  (Description in the bug)
bug:34858530
Change-Id: I13eb89077c43ca28436509a7af5b7c11374446c4
2017-02-01 12:44:28 -08:00