Commit Graph

335786 Commits

Author SHA1 Message Date
Jorim Jaggi
791ccc00aa Fix transition between two occluding activities
This fixes an issue when starting an activity that occldues
Keyguard with the window flag from an activity that is already
occluding Keyguard. Normally we wait until the transition starts
until the next activity had a chance to set its layout flag
(FLAG_SHOW_WHEN_LOCKED) with the UnknownVisibilityController.

Now, since setAppVisibility(false) was called after immediately
starting the activity, we removed the activity immediately from
the UnknownVisibilityController waiting list and then unoccluded
Keyguard.

We fix this by only removing the activity from the waiting list if
the app is actually hidden and not just because it's hidden by
Keyguard.

This regressed from I745e985766a1af97203e1d22b6443dabdd0c0363
because calling setVisible(true) was setting the token's visible
to true. Then, setVisible(false) was NOT ignored anymore.
Previously it was just ignored because the app wasn't made visible
yet from WM perspective.

Test: go/wm-smoke
Test: android.server.cts.KeyguardTransitionTests#testNewActivityDuringOccluded
Test: Launch camera from Keyguard with animation transition scale
set to 0. (regression test)

Change-Id: I36ec1bf335c48baf298e78620381bdd0be34aa1d
Fixes: 65061212
Bug: 37677242
2017-08-28 15:52:38 +02:00
Jorim Jaggi
75520d5cad Use Keyguard orientation when unoccluding
If we are about to unocclude Keyguard, we already use its
orientation spec such that if both Keyguard and the activity
going aways share the same orientation spec, there is no
unnecessary orientation change.

Test: Launch SHOW_WHEN_LOCKED portrait activity, hold device
in landscape, toggle power button twice, press home, make sure
no orientation change when animating to Keyguard.
Test: go/wm-smoke

Change-Id: Ic5f110747de5f5f7d73adf83f5f53c7fd56d860c
Fixes: 38146081
2017-08-28 15:52:21 +02:00
TreeHugger Robot
0d9c30cf88 Merge "sounds : Add a makefile for Android Go specific sounds." into oc-mr1-dev 2017-08-24 11:18:31 +00:00
TreeHugger Robot
9487f80cc5 Merge "Trivial change to test expectations." into oc-mr1-dev 2017-08-24 10:55:20 +00:00
TreeHugger Robot
afe28cdf7e Merge "StringParceledListSlice throws exception when the IPC memory threshold is exceeded" into oc-mr1-dev 2017-08-24 10:08:15 +00:00
TreeHugger Robot
cb065bc33e Merge "CachedBluetoothDevice: Rename mVisible to mJustDiscovered" into oc-mr1-dev 2017-08-24 08:34:39 +00:00
Bill Yi
767ca11384 Import translations. DO NOT MERGE
am: b4f16b10af  -s ours

Change-Id: I458f0c75e3df2dccd9d622b4444c629ff7020f81
2017-08-24 07:54:49 +00:00
TreeHugger Robot
0309d32f3e Merge "Import translations. DO NOT MERGE" into oc-mr1-dev 2017-08-24 07:51:36 +00:00
TreeHugger Robot
3a02835a02 Merge "Move PiP state check exception to the client side" into oc-mr1-dev 2017-08-24 05:00:48 +00:00
TreeHugger Robot
f563cc5a5a Merge "Implement score cache eviction in AccessPoint." into oc-mr1-dev 2017-08-24 04:50:47 +00:00
TreeHugger Robot
b1bd840924 Merge "Support l11n of Qualcomm® aptX™ strings" into oc-mr1-dev 2017-08-24 04:41:01 +00:00
Jack He
5152047665 CachedBluetoothDevice: Rename mVisible to mJustDiscovered
* CachedBluetoothDevice's member mVisible does not mean whether the
  device is visible. Instead, based on its current usage in the library,
  it indicates whether the device was just discovered by SettingsLib.
* Rename the field to mJustDiscovered and associated setters and
  getters.
* This paves way for future addition of mVisible to indicate whether the
  device should be visible to user in the UI.

Bug: 34685932
Test: build only, no functional changes
Change-Id: I616904e6d5bb27dbae74f94819eb0e8607a16e20
2017-08-24 04:15:44 +00:00
Lorenzo Colitti
0fee732ca5 Trivial change to test expectations.
Bug: 32163131
Test: runtest frameworks-net
Change-Id: Iea41c2b50502797f559afd09ded8cedf50dd7c05
2017-08-24 12:43:38 +09:00
Winson Chung
270cee0bc2 Merge "Fix issue with resizing background and incorrectly outline." into oc-mr1-dev 2017-08-24 03:23:43 +00:00
Bill Yi
b4f16b10af Import translations. DO NOT MERGE
Auto-generated-cl: translation import
Exempt-From-Owner-Approval: translation import

Bug: 64712476
Change-Id: Ifc65484d51405de737a5b269fe6b6036638d0df1
2017-08-23 20:13:10 -07:00
Bill Yi
9ef85432bd Import translations. DO NOT MERGE
Auto-generated-cl: translation import
Exempt-From-Owner-Approval: translation import

Bug: 64712476
Change-Id: Ia19cd901c16c37d3053afc81aa47cf2dff5bbeea
2017-08-23 20:01:50 -07:00
TreeHugger Robot
5c53c6c6f5 Merge "Fix issue with race when updating/using layout algorithm." into oc-mr1-dev 2017-08-24 01:39:10 +00:00
Beverly Tai
a2dbf80a13 Merge "DND footer doesn't stutter when exiting DND mode." into oc-mr1-dev 2017-08-24 01:23:33 +00:00
TreeHugger Robot
568cd41216 Merge "Send add/removeDownstream info to offload HAL" into oc-mr1-dev 2017-08-24 01:09:57 +00:00
TreeHugger Robot
53414a98c2 Merge "Generate fallback speed label in AccessPoint.java" into oc-mr1-dev 2017-08-23 23:43:16 +00:00
TreeHugger Robot
bc99692f02 Merge "WebView: clarify docs for addJavascriptInterface" into oc-mr1-dev 2017-08-23 23:41:56 +00:00
TreeHugger Robot
102e6631cf Merge "Fixed synchronization when calling cancellation signal." into oc-mr1-dev 2017-08-23 23:15:59 +00:00
TreeHugger Robot
4ce4d954e3 Merge "Always use low-res tasksnapshots for low ram devices" into oc-mr1-dev 2017-08-23 23:01:53 +00:00
TreeHugger Robot
ee580764ad Merge "Use all certs for computing package signing sha256" into oc-mr1-dev 2017-08-23 22:51:41 +00:00
Sudheer Shanka
29091ec55f Merge "Change KernelUidCpuFreqTimeReader Slog.wtf to Slog.e" into oc-mr1-dev 2017-08-23 22:26:08 +00:00
Sundeep Ghuman
a419b9b4db Implement score cache eviction in AccessPoint.
This prevents cached scores from being held indefinitely and used for
SSID fallback logic in WifiTracker (Picker).

Bug: 63073866
Test: runtest --path frameworks/base/packages/SettingsLib/tests/integ/src/com/android/settingslib/wifi/AccessPointTest.java
Change-Id: Ib351d20db30dfd18b69bb1f8e4d4f26fc6b74ef0
Merged-In: Ib351d20db30dfd18b69bb1f8e4d4f26fc6b74ef0
2017-08-23 15:22:28 -07:00
Erik Kline
ed962a8412 Send add/removeDownstream info to offload HAL
Test: as follows
    - built
    - flashed
    - booted
    - "runtest frameworks-net" passed
Bug: 29337859
Bug: 32163131

Change-Id: I6c59aa7cb80b54f376f294b24c1409710c553d74
2017-08-23 15:18:37 -07:00
Winson Chung
298f95b1ad Move PiP state check exception to the client side
- When calling enterPictureInPictureMode(), the state of the activity in
  the client may be out of sync with the state of the activity in the
  system, causing an exception to be thrown erroneously. Instead, fail
  silently in the system if this occurs, and throw the exception in the
  client when it attempts to enter PiP from an invalid state.

Bug: 63753007
Test: android.server.cts.ActivityManagerPinnedStackTests

Change-Id: Ia99cc086805edc31f997d4325f7a5ccd7c85a77e
2017-08-23 15:06:32 -07:00
Justin Klaassen
b0f5eb148a Support l11n of Qualcomm® aptX™ strings
Bug: 63899732
Test: Verified strings in Settings > System > Developer Options.
Change-Id: Ib1fe508d65a670f1f461041afe0978ff641a993c
2017-08-23 14:55:57 -07:00
George Mount
230e025841 Merge "Use hardware bitmap for shared element snapshots." into oc-mr1-dev 2017-08-23 20:52:34 +00:00
George Mount
3f81c33a35 Use hardware bitmap for shared element snapshots.
Bug: 64851247

Drawing to software bitmaps does not support many
features, most especially hardware bitmaps. This
changes the implementation to using hardware bitmaps
for View snapshots.

Also fixed broken TransitionTest discovered while
testing.

Test: I4ede02db67e578ea4a25069b683f1989c611e06c
Change-Id: I185bbfe1f789055c9efdba5297a74e481607afaf
2017-08-23 20:51:13 +00:00
TreeHugger Robot
e45c956f69 Merge "Ambient Display: Delay charging indicator if about to wake up" into oc-mr1-dev 2017-08-23 20:40:42 +00:00
Tim Murray
2adfb7e4b0 Merge "power: throttle interaction hints" into oc-dev am: 78701217fd -s ours
am: dd028e7c26

Change-Id: I1bcc02adcc7b74d63e09db1251b13c90630ef7a9
2017-08-23 20:01:06 +00:00
Tim Murray
dd028e7c26 Merge "power: throttle interaction hints" into oc-dev
am: 78701217fd  -s ours

Change-Id: I5135ddb75679ff6e4ffe5bb8daff97daf05deb34
2017-08-23 19:48:14 +00:00
TreeHugger Robot
367838be4f Merge "Remove string power_charging_duration_short" into oc-mr1-dev 2017-08-23 19:38:38 +00:00
TreeHugger Robot
78701217fd Merge "power: throttle interaction hints" into oc-dev 2017-08-23 19:25:47 +00:00
TreeHugger Robot
45e8fe20de Merge "Allow status_bar_height to be RRO controlled" into oc-mr1-dev 2017-08-23 19:11:01 +00:00
TreeHugger Robot
1fee204686 Merge "Add null check when ActivityRecord is refetched" into oc-mr1-dev 2017-08-23 18:58:09 +00:00
Svetoslav Ganov
cdd685c075 Use all certs for computing package signing sha256
In several places we compute the sha256 of the app's signing certificate
(instant cookie storage, backup account permission grants, static shared
lib matching). It is possible that an app is singed with multiple certs
which unfortunately can appear in a random order. We were using only the
first certificate to compute the hash which may be problematic for apps
signed with multiple certs which are later reordered. If an app update's
certs are reordered for cookie storage the app would not be able to
access the cookie, for account grants the app would not get the grant,
and for shared libs the app would fail to install due to a missing lib.

Test: all cookie CTS tests pass
      all static shared lib CTS tests pass
      added test that cookie data not lost on sha256 computation change
      added test that lib install works when specifying
      multiple certs

bug:64270295

Change-Id: Ib6b55f25da735ff5c2762faf6e9b5888e749041d
2017-08-23 11:47:27 -07:00
Narayan Kamath
cb6dff8181 sounds : Add a makefile for Android Go specific sounds.
Bug: 64276740
Bug: 64542579
Test: make

Change-Id: I64e0bc8d4db5fafe0370977ccc8eb1c711aa5534
2017-08-23 19:37:42 +01:00
Sudheer Shanka
8cde930d71 Change KernelUidCpuFreqTimeReader Slog.wtf to Slog.e
Bug: 63041570
Test: N/A
Change-Id: I2cb12f1b8f0333c4a000d601624dc95934cf9b90
2017-08-23 11:29:23 -07:00
Matthew Ng
cb7ac679a5 Always use low-res tasksnapshots for low ram devices
All snapshots are now stored using only the low resolution bitmaps
where all full size bitmaps are disabled to be written or loaded.

Bug: 62251652
Fixes: 63940837
Test: manual - open recents on low ram device to see if thumbnail is
there
Change-Id: I2128f0348cf71415721e73c730d3ed92e95d8144
2017-08-23 11:18:21 -07:00
Andrii Kulian
0d008e3204 Merge "Track app visibility updates on the client" into oc-mr1-dev 2017-08-23 18:06:50 +00:00
Nate Fischer
02e281a13d WebView: clarify docs for addJavascriptInterface
Docs change only, no change in logic.

We do not support calling #addJavascriptInterface until after JavaScript
is enabled via WebSettings#setJavaScriptEnabled. Calling these methods
in the wrong order is undefined behavior (and we've seen that it's buggy
under certain conditions, e.g. if the DOM includes an <img> element).

This clarifies the point in the docs and code example.

Bug: 64899039
Test: make -j40 docs (everything looks good)
Change-Id: I8ef9eec7f038037e6b898286e4dad8a57ecad472
(cherry picked from commit aaef6827ca)
2017-08-23 17:49:46 +00:00
TreeHugger Robot
07168bf44b Merge "AOD: Fix crash when AOD is stopped immediately after starting" into oc-mr1-dev 2017-08-23 17:12:27 +00:00
Beverly
7db7e0558f DND footer doesn't stutter when exiting DND mode.
Change-Id: I3ce8dc51bda44a3121816232b758070f8f0dd1d7
Fixes: 64755310
Test: manual
2017-08-23 13:05:42 -04:00
Phil Weaver
4329f8ee97 Merge "Check a11y enabled before sending events from PiP" into oc-mr1-dev 2017-08-23 16:14:02 +00:00
Selim Cinek
60a09546c0 Merge "Transforming all texts of decorated media custom views" into oc-mr1-dev 2017-08-23 15:55:41 +00:00
Beverly Tai
f7964b1513 Merge "Hides non-system overlays on USB debugging dialog." into oc-mr1-dev 2017-08-23 15:50:30 +00:00
Jason Monk
f506bf359d Allow status_bar_height to be RRO controlled
Test: Boot device, see status bar
Bug: 64970608
Change-Id: I22e1131fbb98d89ce20e0862209d849ba3f16105
2017-08-23 10:56:34 -04:00