312660 Commits

Author SHA1 Message Date
Jeff Sharkey
8d5d065cdf Add legacy DownloadManager actions to SystemApi.
They're still used by at least one bundled app.

Test: builds, boots
Bug: 35256608
Change-Id: I45966b3e0ed506ead4544bbbfc9d82b7f9d5205d
2017-04-04 14:38:47 -06:00
Todd Kennedy
d46a1604b7 Change name of the intent fields
Change-Id: I67d3f5c7fb3189fdb35908011e92cc82c24b9154
Fixes: 36594944
Test: cts-tradefed run commandAndExit cts-dev -m CtsSignatureTestCases -t android.signature.cts.IntentTest#shouldNotFindUnexpectedIntents
2017-04-04 13:33:13 -07:00
TreeHugger Robot
56a090bf37 Merge "Add AvailableVirtualKeyboardFragment to TV" into oc-dev 2017-04-04 20:31:47 +00:00
Stan Iliev
d7410f7829 Fix pop-up shadow drawn in the wrong place with Skia pipeline
Fix a bug in DrawShadow matrix calculation. Recorded matrix does
not need to be applied, because parent display lists have already
replayed matrix transformations.

Test: added a new HWUI unit test that is passing only after this fix
Bug: 33103723
Change-Id: I7a47dbe879df6b9e5920a47c0e1168d9902a3e70
2017-04-04 16:24:55 -04:00
TreeHugger Robot
dff13a0bb1 Merge "rebind if the connection drops" into oc-dev 2017-04-04 20:23:36 +00:00
Adrian Roos
7d062c4549 AOD: Only show actually pulsing entries
Fixes an issue where swiping away a notification on AOD2 would
expose the next notification.

Bug: 34716110
Test: receive notification while phone is off, swipe away notification, verify that the next notification does not become visible
Change-Id: I2f8cab37912e6b1edcc129c994a7138c80da7af9
2017-04-04 13:21:35 -07:00
Adrian Roos
d83e9999f7 AOD: update AOD2 views to spec
- Increase notification header size
- Dim clock in AOD2
- Hide shelf in AOD2

Bug: 30876804
Test: manual
Change-Id: I272ff54bd0dbed0ae4271c922f62304401651fc9
2017-04-04 13:21:35 -07:00
Selim Cinek
47374630bf Fixed that the icon could dissappear
A bug could lead to the icon being hidden
even if it should not have been possible

Test: runtest systemui
Fixes: 34660898
Change-Id: Ia585c396462a371dd213f4de59217013fcc482e4
2017-04-04 20:13:24 +00:00
TreeHugger Robot
5879d28f4d Merge "Make shutdown use the UI context." into oc-dev 2017-04-04 19:52:09 +00:00
Evan Rosky
baa9a3f4b9 Merge "More finishing-up of cluster implementation" into oc-dev 2017-04-04 19:47:11 +00:00
TreeHugger Robot
0bbde28dd4 Merge "Migrate the NETWORK_SCORER_APP Setting." into oc-dev 2017-04-04 19:37:20 +00:00
Peng Xu
1cfde25e40 Local geomagnetic field update to sensor
Local geomagnetic field strength, declination, inclination information
is useful for magnetometer calibration. It also benefits rotation
vector sensor implementation as it gives a baseline that aids detecting
magnetic field disturbance.

Bug: 30958130
Test: Tested with marlin. Modified hal implementation can get local
      geomagnetic field.

Change-Id: I373fe74d5a091a3adb80ff3c61e441edcf5a253b
2017-04-04 12:35:49 -07:00
TreeHugger Robot
dd7414a644 Merge "Disable WebView autocomplete feature." into oc-dev 2017-04-04 19:31:51 +00:00
TreeHugger Robot
8d84e4cd1c Merge "TIF: hide BaseProgramColumns and BasePreviewColumns" into oc-dev 2017-04-04 19:23:25 +00:00
TreeHugger Robot
7a7e415967 Merge "AAPT2: Allow multiple -c flags" into oc-dev 2017-04-04 19:14:47 +00:00
Jean-Michel Trivi
6cf445bd3d Merge "Revert "AudioAttributes: remove static getVolumeControlStream method"" into oc-dev 2017-04-04 19:08:37 +00:00
TreeHugger Robot
f9340ca491 Merge "Fix HWUI/Skia Gradients to premultiply the colors prior to interpolation" into oc-dev 2017-04-04 19:06:32 +00:00
TreeHugger Robot
8f6b9d8058 Merge "Refresh opacity and statefulness on tint change" into oc-dev 2017-04-04 19:05:02 +00:00
Winson Chung
379b9ab42c Catching additional case where menu would disappear in accessibility.
- When showing the menu via accessibility it will stay on screen until
  the user focuses away, but exploring via talkback still sends
  onUserInteraction() callbacks which would post it anew.  We need to
  save the timeout state whenever the menu is shown and check it there
  as well.

Bug: 36103023
Test: Enter PIP with talk back, touch button but don't do anything for
      the timeout (~4s), verify menu does not close.

Change-Id: I03ce14531fcde84440122bfb0fc70899f5178d5b
2017-04-04 19:03:54 +00:00
Todd Kennedy
7c5797be84 don't log non-instant app resolutions
for normal web url resolution, we don't want to drop a log entry.
this is likely going to be too verbose [i.e. will drop a log for
every link clicked on in the browser].

Change-Id: I622b7f27ccebc440b837daa420e34c16ec0e2a4d
Fixes: 36563095
Test: Manual; resolve ephemeral links and see logs
Test: Manual; resolve non-ephemeral links and see no logs
2017-04-04 12:01:20 -07:00
TreeHugger Robot
02e5b5c6da Merge "Temporary fix for themes" into oc-dev 2017-04-04 18:53:10 +00:00
TreeHugger Robot
765a1b7857 Merge "Fix PackageManagerService passing usesLibraryFiles to dexOpt." into oc-dev 2017-04-04 18:52:14 +00:00
TreeHugger Robot
a16859114d Merge "Fix saving target fragment when Fragment not yet created." into oc-dev 2017-04-04 18:45:19 +00:00
TreeHugger Robot
04fc05cd66 Merge "Change justification parameter from boolean to int." into oc-dev 2017-04-04 18:29:58 +00:00
Jean-Michel Trivi
e4a9911b68 Revert "AudioAttributes: remove static getVolumeControlStream method"
This reverts commit e0b5bf50d6cf4621e483d0c85898a61a19ff6d45.

Change-Id: I2f3f10c149b205d22c41d5c9767ea10b0dee7682
2017-04-04 18:26:44 +00:00
Alan Viverette
db7423cd8d Automatic casts for more findViewById implementations
Bug: 24137209
Test: make -j32
Change-Id: I423297a78e63d74eb44fd14747fc3890a9c42937
2017-04-04 14:07:20 -04:00
TreeHugger Robot
7f654b2776 Merge "Load IA resolver settings from resolver package" into oc-dev 2017-04-04 17:48:40 +00:00
Kang Li
6df90fa53b Merge "Add a service to rank apps for ResolverActivity." into oc-dev 2017-04-04 17:42:32 +00:00
TreeHugger Robot
b841b4e919 Merge "Request layout when updating child layout params." into oc-dev 2017-04-04 17:36:48 +00:00
Neil Fuller
bb97248da6 Update to latest tzdata / switch back to zones.tab
The file has fallen out of date since it was fundamentally
updated in commit 50e9b86. This change brings it up to date
with 2017b.

This change also switches back to using zone.tab as a source
of time zone IDs. In commit 50e9b86 the source was switched
to zone1970.tab. Although this switch wouldn't have
meaningfully affected time zone calculations it does alter
the exemplar locations for automatically detected time zones.
This information may surfaced to users in some places and
can lead to confusion because zone1970.tab uses zones that
span multiple countries, while zone.tab zones tend to be
more local. Reverting should lead to a subtly better
localization experience.

During this work a number of unexpected differences between
zone.tab and zone1970.tab were uncovered. These have been
questioned upstream via the IANA mailing list on 31st March
2017.

Notable other updates:

Addition of Asia/Famagusta for Cyprus.
Addition of Asia/Atyrau for Kazakhstan.
Addition of Europe/Saratov for Russia.

The following have been queried with IANA and differ between
zone.tab and zone1970.tab:

Removal of Indian/Reunion for French Southern Territories
Removal of Pacific/Honolulu for United States Minor Outlying Islands
Removal of Asia/Bangkok for Vietnam.

Bug: 25338903
Test: Build / CtsUtilTestCases
(cherry picked from commit 11e51123865d0fdde39407e50038371d88fee302)

Change-Id: Ia5f078af704af06b1cc9ac456c9c2edde74eecfe
2017-04-04 18:32:27 +01:00
Felipe Leme
f43ca7968f Initial implementation of autofill partitioning.
BUG: 35707731
Test: existing CtsAutoFillServiceTestCases pass
Test: PartitionedActivityTest

Change-Id: If9df5fe63249f0b9e9da058d1c9327dfd3c09cf3
2017-04-04 10:30:54 -07:00
Jeremy Joslin
b0fe21782f Migrate the NETWORK_SCORER_APP Setting.
Migrate the value of NETWORK_SCORER_APP to the USE_OPEN_WIFI_PACKAGE
Setting if the following conditions are true:
  * NETWORK_SCORER_APP has a value
  * An active scorer/recommender is present.
  * The active scorer specifies a valid UseOpenWifiActivity.
  * The NETWORK_SCORER_APP value matches the package name of the
    UseOpenWifiActivity or the active scorer.

Test: runtest frameworks-services -c com.android.server.NetworkScorerAppManagerTest
Bug: 36718516
Change-Id: I7d7a56c62b4a7f4a0e43824fbb2075e80d7a753b
2017-04-04 10:25:57 -07:00
Selim Gurun
13e5b0bb97 Disable WebView autocomplete feature.
Platform is now providing autofill feature. Disable WebView's simple
form data save feature for platform O and above.

Test: Removing the functionality and the test
Bug: 36869838

Change-Id: If6b9fc12edbe4146fca99d9c6ef8fde36d61f852
2017-04-04 10:19:28 -07:00
Chris Craik
eabb5621dd Merge "Revert "Switch libplatformproto to sharedlib"" into oc-dev 2017-04-04 17:16:43 +00:00
Seigo Nonaka
fe04aa840e Pass weight/italic pair instead of style.
Typeface.NORMAL/BOLD/ITALIC/ITALIC_BOLD is used for specifying relative
from current Typeface. For example

  Typeface face = Typeface.create("serif");
  Typeface thickerFace = Typeface.create(face, Typeface.BOLD);
  Typeface moreThickerFace = Typeface.create(tickerFace, Typface.BOLD);

For the purpose of providing font information, we should use weight/italic
value instead of style in Typeface.
The Columns.STYLE field was kept for preventing runtime crash of demo
apps.

Test: Manually
Change-Id: I732e8ee04a66f61321fc0a98dbfb8fdc0a4dd7a4
2017-04-04 10:12:55 -07:00
Dongwon Kang
0a1c6a54d2 TIF: hide BaseProgramColumns and BasePreviewColumns
Note: BaseColumns(API 1) and BaseTvColumns(API 21) remains public due to
the backward compatability. Plus, inheritence between BaseProgramColumns
and BasePreviewColumns is also removed to follow patterns in other
Contracts.

Test: cts-tradefed run cts -m CtsTvTestCases -t android.media.tv.cts.TvContractTest
Bug: 36395855
Change-Id: Ie73a2e48217676be53f373f8524afd04f7d8fc37
2017-04-04 10:11:45 -07:00
Todd Kennedy
16c3a3e7e8 rebind if the connection drops
Change-Id: I9d91e9080b99690ff1e50dc28b01df0dcda4e97a
Fixes: 36566927
Test: Manual; stop gms:persistent process using "kill -9"
Test: Manual; stop process using "adb shell am force-stop com.google.android.gms"
Test: Manual; stop process using "adb install -r PrebuiltGmsCore.apk"
2017-04-04 10:11:18 -07:00
TreeHugger Robot
2ac9698271 Merge "Reorganize font enumeration API." into oc-dev 2017-04-04 16:49:56 +00:00
Jeff Hao
b0be09922c Fix PackageManagerService passing usesLibraryFiles to dexOpt.
The shared libraries for the package need to be updated before calling
performDexOpt so that they can be populated and passed down to dexOpt.
This isn't missing in the AOSP version, so the fix is only for master.

Bug: 36698836
Test: cts-tradefed run singleCommand cts -d --module
CtsAppSecurityHostTestCases -t
android.appsecurity.cts.UsesLibraryHostTest

Change-Id: Id58bd50a13e5115af03c9167d4eb7f4b1d1dc9da
(cherry picked from commit 1d643dabe543f3f1b7d96485d6317eece7836a4e)
2017-04-04 16:49:46 +00:00
Michael Wright
6cd1026807 Make shutdown use the UI context.
Test: manual
Bug: 36879116
Change-Id: Id2d6257a5a462573c3481c886778f51b429117d7
2017-04-04 17:45:49 +01:00
Jason Monk
0e02127c7c Temporary fix for themes
Will need a better optimization written by someone who knows the
code better than me.

Bug: 36099320
Test: Try to change theme, twice
Change-Id: Ief50bb98725de5a281c13d6d6572867925228d62
2017-04-04 16:39:28 +00:00
Derek Sollenberger
669b15a935 Fix HWUI/Skia Gradients to premultiply the colors prior to interpolation
This is fixed in Skia by passing the appropriate flag when the shader is
generated.  The fix in HWUI is to reverse the premultiplication and
interpolation steps.

Test: bit CtsUiRenderingTestCases:.testclasses.ShaderTests
Bug: 34323783
Change-Id: I3417141949f62fcc696b6d8213a4b446d7d0cbf8
2017-04-04 12:07:28 -04:00
Felipe Leme
a759c03606 Temporarily hardcoded dimensions of autofill authentication UI.
Bug: 36660292
Test: manual verification
Change-Id: I2d354868a656a2b405a0e7aefb551e380e5fa7e0
2017-04-04 08:54:20 -07:00
Tony Mantler
a4c123f9d5 Add AvailableVirtualKeyboardFragment to TV
Allows enabling/disabling IMEs on TV.
Moves InputMethodPreference to SettingsLib.
Also minor code tidying

Bug: 36079941
Test: Keyboard settings still work on Fugu and Ryu
Change-Id: I0c7e66c10ca9fe7404dc8e1e384922a7e37f5f5a
(cherry picked from commit 1bb992d802330ad127dab2dbefadd4dd9c739152)
2017-04-04 15:49:39 +00:00
TreeHugger Robot
adc1605530 Merge "AudioAttributes: remove static getVolumeControlStream method" into oc-dev 2017-04-04 15:32:25 +00:00
TreeHugger Robot
49028f0199 Merge "Recompute focus in showLw if needed" into oc-dev 2017-04-04 15:22:44 +00:00
Alan Viverette
ad7e748543 Refresh opacity and statefulness on tint change
Also warns when LayerDrawable is created with an invalid child. This
is not guaranteed to fail, but it's usually a bad sign.

Bug: 33124798
Test: LayerDrawableTest, DrawableContainerTest
Change-Id: Ie3e4200b27a9814cee7f5711d7df9710db513953
2017-04-04 11:02:37 -04:00
Jesse Evans
aadbb7fab0 Load IA resolver settings from resolver package
Changes the logic of getEphemeralResolverSettingsLPr() to resolve
a settings component in any of the packages whitelisted to provide
the instant apps installer.

Test: Boots

Bug: 36840581
Change-Id: Iac5e3dfa2cb97a630092212322f9c983c2d29926
(cherry picked from commit d4310934905aea48079dd5e3a590cd4e2427dcac)
2017-04-04 14:46:31 +00:00
TreeHugger Robot
31a6d784d6 Merge "standardize account manager notification IDs" into oc-dev 2017-04-04 14:35:35 +00:00
TreeHugger Robot
acd2827f3e Merge "Fix NPE when status bar isn't available" into oc-dev 2017-04-04 14:21:26 +00:00