312980 Commits

Author SHA1 Message Date
Romain Guy
7c98f5da3d Fix HardwareBitmapTests.testBitmapConfigFromRGB565
Bug: 37077304
Test: HardwareBitmapTests.testBitmapConfigFromRGB565
Change-Id: I987eeab243f93f9ee8fe8d1b6a12ddbd23225651
2017-04-06 11:00:21 -07:00
Rob Carr
99b72250c2 Merge "Correct animation glitch for pinned stack." into oc-dev 2017-04-06 18:00:21 +00:00
Andrii Kulian
eafd9db682 Add system config to specify Multi-Display support
Added config_supportsMultiDisplay. Devices that have the config set
to false will not allow launching activities on secondary screens.

Bug: 36776777
Test: android.server.cts.ActivityManagerDisplayTests
Test: #testMultiDisplayDisabled
Change-Id: Iebb79044440866b1693897b0b53ccb987b5fd8e0
2017-04-06 10:58:32 -07:00
TreeHugger Robot
d2b1f3812c Merge "Fix StringDef usage in MediaDrm API" into oc-dev 2017-04-06 17:50:27 +00:00
Sudheer Shanka
cfeb32287a Merge "Don't populate a setting instead of defaulting to 0 when not set." into oc-dev 2017-04-06 17:40:58 +00:00
Todd Kennedy
c33cbb21e8 change how instant app installer is updated
. only pay attention to package changes if there's no
  installer or the changed package is the installer
. always update the installer component, even if the
  resolved component is identical [the install paths
  might have updated]

Change-Id: I16eba07ccdb55f5cb61ba6172e71ce1698445fa5
Fixes: 36740490
Test: Manually install/remove/update the installer and see that the component is updated
2017-04-06 10:40:22 -07:00
Felipe Leme
c7ed8c395b Shows a Toast when manual autofill request cannot be fulfilled.
Bug: 35708229
Test: manual verification
Change-Id: If4fa6556dd94a805727329f0aebc4b37f548b3a1
2017-04-06 10:39:44 -07:00
Wale Ogunwale
71735d38b1 Preserve app window when it requests a relaunch
Help allow blank screens when the app calls Activity.recreate().

Test: Take YouTube app in-out of split-screen and make sure there is't
      a hole
Fixes 36567223

Change-Id: Ic4915153c2cb88cce9a1bea7500cf89be14c5aa4
2017-04-06 17:31:01 +00:00
Svetoslav Ganov
8aa379e0eb Make sure pending cookie persistence canceled
When a full app is uninstalled we delete its instant app
cookie but were not canceling a pending write which ended
up having the written cookie file after the app is uninstalled.

Test: InstantCookieHostTest#testCookieResetOnNonInstantReinstall

bug:36455310

Change-Id: Iec6d1f95f8ff731885241913808daf12ce3a5587
2017-04-06 17:28:23 +00:00
Calin Juravle
72bb1c61c5 Check for a null packageInfo before notifying about app install
Test: device boots (wasn't able to repro the race)
Bug: 36642664
Change-Id: Ibab3109a8605c2ff8555d3308cb96389e480cc84
2017-04-06 10:18:39 -07:00
Chad Brubaker
19f98d9707 Expose ConfigUpdater Intents in SystemApi
The Intents are are in the android namespace and should have been
exposed as SystemApi, but were not previously.

Since there are no classes in the framework that reference these Intents
this adds android.os.ConfigUpdate to have them all in one place.

Test: builds
Change-Id: I2086945301f06b28b491ec876652c37e97315e8c
Fixes: 35252508
Fixes: 35266806
Fixes: 35266833
Fixes: 35271111
(cherry picked from commit 987b0fc4a57c8b8246b12069a5db06693bc3eea6)
2017-04-06 17:18:13 +00:00
Bryce Lee
4a19438955 Check component before notifying activity is visible.
ActivityStackSupervisor tracks WaitResults which are waiting for an
Activity to become visible. This is used exclusively by
ActivityStarter to wait for an Activity to be brought to the
foreground before returning. However, there are some cases where
other Activities will report a visible state in between. Without a
qualifier, these would cause the ActivityStarter's WaitResult to be
fulfilled and the wrong information would be returned.

This changelist specifies a component the WaitResult should be
triggered on.

Change-Id: I7c356a8d153ddc24603acc55749e9992f9000c3f
Fixes: 36860122
Test: cts-tradefed run cts -m CtsServicesHostTestCases -t  android.server.cts.ActivityManagerAmStartOptionsTests#testDashW_Direct
2017-04-06 10:11:58 -07:00
Wei Jia
f3d93a0f69 MediaPlayer: hide BufferingParams API
Test: compiles
Bug: 36280094
Change-Id: I52f3e71fb0e090ac48711bbb8ea7cbdf8db00074
2017-04-06 10:09:05 -07:00
Julia Reynolds
0b47e289c8 Merge "Fix build" into oc-dev 2017-04-06 16:45:09 +00:00
Chad Brubaker
941e9e2b38 Merge "Allow permissions to be runtime-only." into oc-dev 2017-04-06 16:44:11 +00:00
Felipe Leme
6219f2693e Fixed Autofill NPE that crashed some apps.
It happened when views provided an Accessibility node that had children.

Bug: 37078783
Fixes: 37009008
Test: LoginActivityTest#testAutoFillWhenViewHasChildAccessibilityNodes

Change-Id: Ie694094afe9129b933096a385eb867baf4550e7f
2017-04-06 09:44:04 -07:00
Calin Juravle
13dcd27fb5 Reconcile secondary dex paths when compiling with adb shell cmd...
Test: running `adb shell cmd package compile -r bg-dexopt -f  --secondary-dex com.google.android.gms` prints no error for missing dex files.

Bug: 36895499
Change-Id: Ibde3d47121dcb2c252fe29772d8db81ea599b2d0
2017-04-06 09:43:20 -07:00
Julia Reynolds
4740b61553 Fix build
Test: runtest systemui
Change-Id: I94663b45c8f745c9485cdeb898de5a6bc4f85f0b
2017-04-06 16:41:45 +00:00
Winson Chung
f1bfee1ca2 Disable PiP when VR mode starts.
Bug: 36214284
Test: Ensure that PiP is stopped when VR is enabled.
Change-Id: Ib537e1f360be7b47199d230e5691f6fece0f925f
2017-04-06 09:37:59 -07:00
Ruben Brunk
279d34af31 Refactor VR state management in ActivityManagerService.
- Move VR-related state from ActivityManagerService into
  VrController.
- Move VR-related render thread scheduling logic from
  ActivityManagerService into VrController.
- Update state logic to better enforce invariants.

Bug: 36214284

Test: Covered by existing tests.
Change-Id: I02d1488da0c0f65a10dd0369f38f1a0c47cee174
2017-04-06 09:36:56 -07:00
TreeHugger Robot
e7ec7ec634 Merge "Bind with the correct action" into oc-dev 2017-04-06 16:35:37 +00:00
Steven Moreland
f8202e464e Use hwservicemanager getTransport.
libhidl no longer provides a getTransport function. Now, call into the
hwservicemanager which directly interfaces with libvintf.

Test: extensive, see Ia5d1eb41b057ab5d6800f6c3fd22658adecc4be7
Bug: 36377072
Change-Id: I8b0ca845251cd7cd156f3471cbd4b0ce17617be0
2017-04-06 09:29:58 -07:00
Julia Reynolds
0ff1b458ac Merge "Show a link to app settings in notification guts." into oc-dev 2017-04-06 15:55:36 +00:00
Calin Juravle
539128f6d6 Merge "Keep track of protected data dirs in DexManager" into oc-dev 2017-04-06 15:55:04 +00:00
Conrad Chen
1f6d4b5c81 Add intent to intialize programs on APP installed
Adds a new broadcast intent for system APPs to send when some TV APP met
certain requirements is newly installed. The intent will wake up the APP
and notify it to initialize its channel and program list to the system
provider.

Test: build
Bug: 34739955
Change-Id: Ib172b40434db4a439ec0db7bf8b28037d0bfb8a8
2017-04-06 08:42:59 -07:00
Jason Monk
1ee48434ef Ignore a broken test until it can be fixed.
Test: runtest systemui
Bug: 37074875
Change-Id: Id5561a3ded2242c711c2edccefb1647437d6f963
2017-04-06 11:31:19 -04:00
Jason Monk
d2e75262cc Tuner plugin settings updates
Test: manual
Fixes: 33446852
Change-Id: I05c046bb70dff66ea25531503216f121e6618a62
2017-04-06 11:24:20 -04:00
Joseph Pirozzo
3c0f1f1aa2 Merge "Bluetooth Multi Connect" into oc-dev 2017-04-06 15:19:30 +00:00
Matt Sarett
ea70d22dc8 Xform bitmaps to sRGB on SW and PDF canvases
For picture-backed canvases, we will defer the xform
until playback.

Test: Unit tests and cts test.
Bug: 32984164
Change-Id: Ib74663bcb688b74b6ba8792b403b0475126732af
2017-04-06 15:14:00 +00:00
Julia Reynolds
9a8f641801 Merge "Remove unneeded methods" into oc-dev 2017-04-06 15:13:13 +00:00
Geoffrey Pitsch
6eccf0016b Don't delete new notification channels not present in backup
Test: runtest systemui-notification
Change-Id: Ib25a680487b20700b9936926c1769a4d8f81b62a
Fixes: 36785228
2017-04-06 11:10:04 -04:00
TreeHugger Robot
3cc32f2aa2 Merge "Change flag from -includekeyvalue to -keyvalue/-nokeyvalue" into oc-dev 2017-04-06 14:27:05 +00:00
Julius D'souza
4d0c2084f1 Document Android Wear usage of KEYCODE_WINDOW. am: 03d4a65865
am: 137006ff5c

Change-Id: I40ba20230d36bfe7b1f397b822f2122172de9da3
2017-04-06 14:19:58 +00:00
Julius D'souza
137006ff5c Document Android Wear usage of KEYCODE_WINDOW.
am: 03d4a65865

Change-Id: If938e79a9eddcf3cec97274ad305834c2d58386e
2017-04-06 14:12:46 +00:00
TreeHugger Robot
a441da153e Merge "Camera: Initial support for vendor tag caches" into oc-dev 2017-04-06 14:02:11 +00:00
Daniel Nicoara
5a2ca72e38 Fix format for VR virtual display backing buffers
Change the VR virtual display to RGBA_8888 since that's the expected
value. This also fixes allocation errors, since previously it was trying
to allocate a BLOB buffer with a height != 1.

Bug: 36990708
Test: Ran on device with vr_virtualdisplay property set to true and
entered VR.

Change-Id: I1f7c1ac90cb7403b0610e31a840224f511d53eea
2017-04-06 14:01:49 +00:00
TreeHugger Robot
343715b1c1 Merge "Do not stop lock task if it is starting background user" into oc-dev 2017-04-06 13:24:48 +00:00
Neil Fuller
2242ff73b8 Canonicalize tz IDs when finding exemplar location
Canonicalize time zone IDs when looking up exemplar location.

ICU's canonical IDs are not guaranteed the same as IANA's.
Various data files (e.g. timezones.xml, tzdata,
time_zones_by_country.xml) are using IANA IDs. ICU's IDs
are often the same, but because they are guaranteed not to
change and IANAs are not there is some drift.

This fixes an issue with the settings picker for ICU IDs:

America/Buenos_Aires
Asia/Rangoon
Asia/Katmandu
Asia/Calcutta

Which are IANA's:

America/Argentina/Buenos_Aires
Asia/Yangon
Asia/Kathmandu
Asia/Kolkata

introduced by commit b4d003da66.

It could also influence some display names for
automatically-selected time zones outside of this list.

The issues was particularly noticeable in locales that
use non-ASCII scripts; ICU performs a fallback if the ID
isn't canonical and would transform and return the last
part of the ID (e.g. Buenos Aires, Yangon, Kathmandu,
Kolkata).

Bug: 36469833
Test: Manual testing in Japanese
Change-Id: I2febdbee58e474d251d0a33f2c8335664a74581f
(cherry picked from commit f92ad8a0190add07779ed454a0908dd3df83f4bd)
2017-04-06 09:12:12 +00:00
TreeHugger Robot
84705f9fb9 Merge "Pass FillResponse bundle on subsequent onFillRequest() calls." into oc-dev 2017-04-06 06:24:07 +00:00
TreeHugger Robot
4ebafa8000 Merge "Overlay a highlight over autofilled views" into oc-dev 2017-04-06 06:22:13 +00:00
TreeHugger Robot
2375cd1a84 Merge "Clarify MediaDrm#getKeyRequest docs: init and mimeType" into oc-dev 2017-04-06 06:21:06 +00:00
TreeHugger Robot
ff8bf0cc95 Merge "Update MediaDrm documentation for provideKeyResponse" into oc-dev 2017-04-06 06:06:51 +00:00
Calin Juravle
811a75a0c0 Pass SElinux info to installd dexopt
For secondary dex files, the oat directory is created on the fly. We
need to make sure we restore the SElinux context after the oat files are
generated. To do that we need to pass the app SElinux info to installd
dexopt.

Bug: 36896515
Test: adb shell cmd package compile -r bg-dexopt --secondary-dex com.google.android.gms
      adb shell ls
/data/user_de/0/com.google.android.gms/app_chimera/m/0000000c/oat/arm64/
-Z
      youtube loads gms modules without extracting from apk

Change-Id: I5be34b42a509701f6222ca52bec4761c161ec6eb
2017-04-05 23:00:37 -07:00
TreeHugger Robot
0c5dfd90b8 Merge "Fix anchor overlap handling in ListPopupWindow" into oc-dev 2017-04-06 05:20:18 +00:00
TreeHugger Robot
0b7d43c985 Merge "Partially revert "Add blocking and retrying wrappers for INetd uses."" into oc-dev 2017-04-06 04:54:47 +00:00
TreeHugger Robot
154bbb003d Merge "Set AccessPoint metered bit using ScoredNetwork, WifiInfo, and WifiConfiguration." into oc-dev 2017-04-06 04:23:05 +00:00
Philip P. Moltmann
b42d133c8b Overlay a highlight over autofilled views
Also clear this overlay once the data changes. Some views call
notifyValueUpdated even if the value did not change. Hence remeber the
data that was autofilled and check if the data really changed.

Make the autofilledDrawable publicly accessible so that virtual views
can use the same UI.

As the activity is not aware that the views were autofilled the state
has to be explicitly persisted over activity lifecycle events as part
of the view. The lifecyle does not work yet as the AutofillIds are not
stable over activity lifecycle events.

Fixes: 34946006
Test: Autofilled and changed all supported views.
      cts-tradefed run cts-dev -m CtsUiRenderingTestCases
Change-Id: I58b105bb221f1b6466dd136dfe5062d3babb5aa8
2017-04-06 03:57:54 +00:00
Ray Essick
630671a603 Merge "Move MediaMetrics into its own library" into oc-dev 2017-04-06 03:09:22 +00:00
Joel Scherpelz
6e5d86f76b Partially revert "Add blocking and retrying wrappers for INetd uses."
Direct access to Netd from the bluetooth process is disallowed by
SELinux policy. This change reverts to the old behavior where IpManager
interacts with NetdService indirectly via NetworkManagementService.

Test: as follows:
    - built (sailfish)
    - flashed
    - booted
    - established bluetooth tethering to another device, ping'd 8.8.8.8
Bug: 36492299

This partially reverts commit af39244a34f4449c12a5f925222c9bc8d8049320.

Change-Id: Icf20b1e24abf7dd3123760f8637928bde7afe06b
2017-04-06 12:01:42 +09:00
TreeHugger Robot
09612f9435 Merge "BatteryStats: Remove too-verbose logging" into oc-dev 2017-04-06 02:38:59 +00:00