OSDN Git Service
Suprabh Shukla [Wed, 23 May 2018 03:34:45 +0000 (03:34 +0000)]
Merge "canRequestPackageInstalls returns false for instant apps" into pi-dev
TreeHugger Robot [Wed, 23 May 2018 03:06:43 +0000 (03:06 +0000)]
Merge "Fix a ConcurrentModificationException crash." into pi-dev
TreeHugger Robot [Wed, 23 May 2018 02:48:25 +0000 (02:48 +0000)]
Merge "Reduce spacing between notification icons" into pi-dev
TreeHugger Robot [Wed, 23 May 2018 02:47:17 +0000 (02:47 +0000)]
Merge "Wait a little longer to hide wallpaper" into pi-dev
TreeHugger Robot [Wed, 23 May 2018 02:35:15 +0000 (02:35 +0000)]
Merge "MediaPlayer: sanity check track before dereferencing" into pi-dev
TreeHugger Robot [Wed, 23 May 2018 02:23:46 +0000 (02:23 +0000)]
Merge "Stop using unsupported Canvas operations in IME" into pi-dev
TreeHugger Robot [Wed, 23 May 2018 02:19:20 +0000 (02:19 +0000)]
Merge "Bumping BatteryStats report version." into pi-dev
TreeHugger Robot [Wed, 23 May 2018 02:19:16 +0000 (02:19 +0000)]
Merge "Update security-related WebView documentation." into pi-dev
TreeHugger Robot [Wed, 23 May 2018 02:18:24 +0000 (02:18 +0000)]
Merge "Vibrate when ringer changes to vibrate" into pi-dev
TreeHugger Robot [Wed, 23 May 2018 02:09:19 +0000 (02:09 +0000)]
Merge "Fix RTL actions alignment" into pi-dev
Chalard Jean [Wed, 23 May 2018 00:07:51 +0000 (09:07 +0900)]
Fix a ConcurrentModificationException crash.
This is a pinpoint fix against the bug listed below. While a client
is synchronously reading the LinkProperties of a network, the
ConnectivityServiceThread is updating its properties. Make sure
that update is done atomically.
This is a stopgap countermeasure against a problem that is
pervasive with usage of LinkProperties, but fixing the problem
itself will happen later.
Bug:
80077223
Test: runtest frameworks-net
Change-Id: I9302f8fb5303cb39aa82691d4f6d7f38707a41fa
Lucas Dupin [Wed, 23 May 2018 01:42:49 +0000 (18:42 -0700)]
Wait a little longer to hide wallpaper
Test: visual
Bug:
63868547
Change-Id: Ic9f8419baadac60839f54c22d7b9f86eb83b4f42
TreeHugger Robot [Wed, 23 May 2018 01:40:39 +0000 (01:40 +0000)]
Merge "Fixes the collapsed view with images and different densities" into pi-dev
Marius Renn [Wed, 23 May 2018 01:35:11 +0000 (01:35 +0000)]
Merge "Adds support for hardware buffers in ImageWriter Images." into pi-dev
Daniel Colascione [Wed, 23 May 2018 00:12:28 +0000 (00:12 +0000)]
Merge "Teach PinnerService to pin parts of APKs" into pi-dev
TreeHugger Robot [Tue, 22 May 2018 23:40:24 +0000 (23:40 +0000)]
Merge "Add Settings Slice Whitelist key" into pi-dev
Selim Cinek [Tue, 22 May 2018 23:30:56 +0000 (16:30 -0700)]
Fixes the collapsed view with images and different densities
Previously the collapsed view could contain a message even before
the messaging imaging image and the display would look very distored.
This now makes sure that any groups with isolated messages always
are the last ones displayed.
Test: add group with image, adjust display settings to large
Change-Id: If9e69f72ce117687898dcaea591e61c6fb49ef46
Fixes:
78490082
Matthew Fritze [Mon, 21 May 2018 21:42:36 +0000 (14:42 -0700)]
Add Settings Slice Whitelist key
Bug:
79779103
Test: None - only a flag.
Change-Id: I764f2fddf05bf2b9df4e633c7f6c6c7e781c1149
Merged-In: I794159db4ff8aba7b6dcd91e13a984db40da47e7
Wei Jia [Tue, 22 May 2018 01:48:25 +0000 (18:48 -0700)]
MediaPlayer: sanity check track before dereferencing
Test: media post submit tests passed
Bug:
78175875
Change-Id: I6a23fc859a077eba03a17a562a7c3bb01d97e85b
Lucas Dupin [Tue, 22 May 2018 22:02:01 +0000 (15:02 -0700)]
Fix RTL actions alignment
Change-Id: I5a81e0386ef7d98ddbe6751cf3ca560f45b2e8ec
Fixes:
79532161
Test: manual
Ying Zheng [Tue, 22 May 2018 22:04:57 +0000 (22:04 +0000)]
Merge "DO NOT MERGE - Defer migration to CarUserManagerHelper, until CarSysUI" into pi-dev
Kweku Adams [Tue, 22 May 2018 22:02:50 +0000 (15:02 -0700)]
Bumping BatteryStats report version.
Bug:
80147518
Test: Android builds
Change-Id: I663557cdf54dff3184681cf8584b22ad9b9939fe
Daniel Colascione [Thu, 22 Mar 2018 02:13:57 +0000 (19:13 -0700)]
Teach PinnerService to pin parts of APKs
This change teaches PinnerService how to pin parts of APK files, with
the specific regions of interest described by a small metadata file in
the APK root directory. Apksig has been modified to annotate signed APKs
with pinning metadata.
This CL also fixes a few resource management bugs and enhances the
dumpsys output.
Test: built dummy camera app, pinned stuff, verified log output
Change-Id: If72709ad2c0f2ec748f547a48a289473e4c60bab
Bug:
65316207
Tony Huang [Wed, 2 May 2018 02:53:52 +0000 (10:53 +0800)]
Add theme mode design let user can choose theme self
Add a ContentObserver on WallpaperManagerService to
listen THEME_MODE value change. When changed, call
notifyWallpaperColorsChanged and set WallpaperColors
color hint by the current mode.
Bug:
63903361
Test: manual
Change-Id: I4f7aa7b184565b1bb23c7f4f1f07fc310dac7546
TreeHugger Robot [Tue, 22 May 2018 21:26:30 +0000 (21:26 +0000)]
Merge "Fixed a issue where notification icons don't align vertically while peeking" into pi-dev
Dake Gu [Tue, 22 May 2018 21:25:49 +0000 (21:25 +0000)]
Merge "Autofill: fix ClassCastException in SaveUi" into pi-dev
TreeHugger Robot [Tue, 22 May 2018 21:23:56 +0000 (21:23 +0000)]
Merge "Import translations. DO NOT MERGE" into pi-dev
Jordan Liu [Tue, 22 May 2018 21:12:31 +0000 (21:12 +0000)]
Merge "Change directory where apns-conf.xml is stored" into pi-dev
TreeHugger Robot [Tue, 22 May 2018 21:00:45 +0000 (21:00 +0000)]
Merge "ResStringPool: Prevenet boot loop from se fix" into pi-dev
Jeff Sharkey [Tue, 22 May 2018 20:43:27 +0000 (20:43 +0000)]
Merge "Build browse intents based on target user." into pi-dev
renn [Mon, 7 May 2018 17:18:05 +0000 (10:18 -0700)]
Adds support for hardware buffers in ImageWriter Images.
This allows dequeuing private image buffers from ImageWriters,
and accessing their hardware buffers.
Bug:
79422702
Test: verified cts locally
Change-Id: Ia003ffa0af305fad8ca9407f5379a3c9c1ab07b5
Ying Zheng [Tue, 22 May 2018 19:36:23 +0000 (12:36 -0700)]
DO NOT MERGE - Defer migration to CarUserManagerHelper, until CarSysUI
Bug:
80136426,
80141620
Test: Manual
Change-Id: I589919b5ff238d6ac1bb94373b9eb0f215b1372f
TreeHugger Robot [Tue, 22 May 2018 20:36:51 +0000 (20:36 +0000)]
Merge "[Notif] Don't show bouncer on dismiss" into pi-dev
Evan Laird [Tue, 22 May 2018 19:49:25 +0000 (15:49 -0400)]
Reduce spacing between notification icons
They shrunk 2dp, so shall the spacing. Also reduce the battery height
since it got skipped in the initial shrink.
Test: visual
Bug:
77822905
Bug:
74985733
Change-Id: I468536d2bbbcbc1ff0714a817e89e819c4bfc0a1
Torne (Richard Coles) [Wed, 16 May 2018 14:51:56 +0000 (10:51 -0400)]
Update security-related WebView documentation.
Add a number of notes for application developers related to using the
WebView securely.
Change-Id: I7dba78d35bc36dd719ed0629224fe3a1d197f52c
Bug:
80095507,
79169416,
79169397,
79170052,
79170398
Fixes:
78941917
Test: m offline-sdk-docs
Bill Yi [Tue, 22 May 2018 19:26:11 +0000 (12:26 -0700)]
Import translations. DO NOT MERGE
Auto-generated-cl: translation import
Bug:
64712476
Change-Id: Ia64d541d43542bffd17cb0cfba7e23419a84cfdc
Beverly [Tue, 22 May 2018 17:02:15 +0000 (13:02 -0400)]
Vibrate when ringer changes to vibrate
Test: manual
Change-Id: Icf7bf0d1dfa632d674b9e6aaff0c98099a4b2eb3
Fixes:
78665512
Tarandeep Singh [Fri, 18 May 2018 20:53:53 +0000 (13:53 -0700)]
Stop using unsupported Canvas operations in IME
KeyboardView relies on deprecated Canvas#clipRect(Rect, Op.REPLACE).
This method is now unsupported and throws runtime exception.
Operations other than Difference and Intersect are unsupported.
This method call can be replaced by saving initial Canvas and calling
intersect operation of Canvas#clipRect(Rect).
Saving initial state can be achieved using Canvas.save() and
Canvas.restore().
Fixes:
79777033
Test: Manually verified with SoftKeyboard (which uses KeyboardView)
1. m SoftKeyboard
2. Set current keyboard to SoftKeyboard
3. SoftKeyboard runs fine
Test: Tested Canvas.getClipBounds() is consistent across save() &
.restore() operations
Change-Id: Id34c289f152b2ec06f37fffa9f940a909153447c
TreeHugger Robot [Tue, 22 May 2018 18:50:24 +0000 (18:50 +0000)]
Merge "Optimize slice permission checks a bit" into pi-dev
Annie Meng [Tue, 22 May 2018 18:38:19 +0000 (18:38 +0000)]
Merge "Allow restore of settings with nullable components" into pi-dev
TreeHugger Robot [Tue, 22 May 2018 18:35:27 +0000 (18:35 +0000)]
Merge "Hide status bar icons if showing bouncer on keyguard activity" into pi-dev
Zhi An Ng [Tue, 22 May 2018 18:08:22 +0000 (18:08 +0000)]
Merge "Disable direct share on low ram devices" into pi-dev
Jeff Sharkey [Tue, 22 May 2018 18:01:31 +0000 (12:01 -0600)]
Build browse intents based on target user.
SystemUI runs under a single user (user 0), and needs to build
browse intents for secondary users. To accommodate this, the safety
check recently added to buildBrowseIntent() needs to be relaxed
when building for a non-current user.
Bug:
79733193
Test: builds, boots
Change-Id: Icce014bf824d0a0ee15e3d84c34f1c2b73d213c1
Ricardo Garcia [Tue, 22 May 2018 18:00:06 +0000 (18:00 +0000)]
Merge "Fix DynamicsProcessing effect defaults and documentation typo" into pi-dev
Rohan Shah [Tue, 22 May 2018 17:06:23 +0000 (10:06 -0700)]
[Notif] Don't show bouncer on dismiss
For blocking helper, when user dismisses by interacting with elements
outside the current notification, we should not show the bouncer.
Changed the logic to only show bouncer/use the checksaverunnable when
the user hits 'stop notifications'
Test: Added test cases, ran via atest, verified manually too
Bug:
80132806
Change-Id: Ic204e1794360684cd6359ff93e77e184e39ad57e
TreeHugger Robot [Tue, 22 May 2018 17:28:38 +0000 (17:28 +0000)]
Merge "Add more hidden API to light greylist" into pi-dev
TreeHugger Robot [Tue, 22 May 2018 17:20:34 +0000 (17:20 +0000)]
Merge "Marks deprecated StatsManager APIs." into pi-dev
TreeHugger Robot [Tue, 22 May 2018 17:17:51 +0000 (17:17 +0000)]
Merge "Initialize mPendingAutoBrightnessAdjustment to NaN." into pi-dev
TreeHugger Robot [Tue, 22 May 2018 17:15:01 +0000 (17:15 +0000)]
Merge "wifi.proto score experiment id" into pi-dev
Evan Laird [Tue, 22 May 2018 14:35:17 +0000 (10:35 -0400)]
Hide status bar icons if showing bouncer on keyguard activity
When in a keyguard activity, we want to hide the status bar icons when
the status bar window is hidden or the bounce is showing.
Test: launch camera from keyguard, press home to show bouncer, don't see
icons
Fixes:
80107240
Change-Id: I66dd923da2b63b20fd766f8223de90f19e86b36e
Winson Chung [Tue, 22 May 2018 16:50:00 +0000 (16:50 +0000)]
Merge "Fix issue with home activity started with standard activity type" into pi-dev
Dake Gu [Tue, 22 May 2018 16:17:16 +0000 (09:17 -0700)]
Autofill: fix ClassCastException in SaveUi
Bug:
80127061
Test: atest CtsAutoFillServiceTestCases on tv
Change-Id: I4f031b6f2dcb7b261f0d514b87332d0539df0bbc
David Brazdil [Tue, 22 May 2018 16:04:58 +0000 (17:04 +0100)]
Add more hidden API to light greylist
Bug:
64382372
Bug:
73996629
Bug:
79871934
Bug:
79576591
Bug:
78034693
Bug:
74355140
Bug:
79580933
Bug:
79560744
Bug:
79560739
Bug:
79571047
Test: make
Change-Id: I5606cd3f1649a5cbb9a47484c22c88d3f57a463f
TreeHugger Robot [Tue, 22 May 2018 15:16:26 +0000 (15:16 +0000)]
Merge "Do not throw IllegalArgumentException in slice manager." into pi-dev
Michael Wright [Tue, 22 May 2018 14:35:05 +0000 (15:35 +0100)]
Initialize mPendingAutoBrightnessAdjustment to NaN.
It currently defaults to 0 which is a valid adjustment, so if you have
a pre-existing adjustment it will get reset at every reboot and look
like a user adjustment.
Also, go ahead and set the pending adjustment to NaN if we've seen it
before so we don't try to apply it again in the future.
Bug:
80119319
Test: manual
Change-Id: I206f6d631ec2977a2c1a44f91e0c6c6a09ccd7ec
TreeHugger Robot [Tue, 22 May 2018 14:42:17 +0000 (14:42 +0000)]
Merge "GM2 Icons (3 of (?3?))" into pi-dev
TreeHugger Robot [Tue, 22 May 2018 14:38:27 +0000 (14:38 +0000)]
Merge "Override getDrawingRect for wifi and mobile views" into pi-dev
Mathew Inwood [Tue, 22 May 2018 14:25:36 +0000 (14:25 +0000)]
Merge "Update light greylist from bug scrape." into pi-dev
TreeHugger Robot [Tue, 22 May 2018 13:56:22 +0000 (13:56 +0000)]
Merge "End the TC session on terminal selection event actions" into pi-dev
Steven Wu [Tue, 22 May 2018 13:08:22 +0000 (09:08 -0400)]
Do not throw IllegalArgumentException in slice manager.
Test: manual
Bug:
80087497
Change-Id: Ic05c812f41d0153c8745b08718513d4e095ab27b
TreeHugger Robot [Tue, 22 May 2018 12:09:17 +0000 (12:09 +0000)]
Merge "Fix slider interaction collection." into pi-dev
TreeHugger Robot [Tue, 22 May 2018 12:07:53 +0000 (12:07 +0000)]
Merge "Unify behavior of various cases of "no underlying networks"" into pi-dev
Mathew Inwood [Tue, 22 May 2018 09:54:53 +0000 (10:54 +0100)]
Update light greylist from bug scrape.
This now includes APIs seen during linking (from logcat messages from
dex2oat) as well as those seen at runtime using reflection.
Test: m
Bug:
64382372
Bug:
72979236
Bug:
74002300
Bug:
74240254
Bug:
77276180
Bug:
77533294
Bug:
77612705
Bug:
77638233
Bug:
78439615
Bug:
78441094
Bug:
78442580
Bug:
78482621
Bug:
78484047
Bug:
78484886
Bug:
79265613
Bug:
79780657
Bug:
79847479
Bug:
79885782
Bug:
79898172
Bug:
80029535
Bug:
80058256
Bug:
80060295
Bug:
80106076
Merged-In: I030fbea87730dbab7362581d4559f838e38e86d3
Change-Id: I2ff01b8163f436c337079c9d0de5b2680a6fd7be
Mihai Popa [Tue, 22 May 2018 11:19:24 +0000 (11:19 +0000)]
Merge "Fix crash after smart selection animation" into pi-dev
Abodunrinwa Toki [Thu, 17 May 2018 16:36:25 +0000 (17:36 +0100)]
End the TC session on terminal selection event actions
This regressed when introducing TC sessions in
I3c9ceea0863099fc4f0a5ce5e823c648ee9c4521
When the user triggers a terminal selection event such as "Copy",
we should immediately end the session instead of waiting for the
"Abandon" event (i.e. selection dismissed) to be included in the
logs. Terminal selection events implicitly dismiss a selection and
we'd rather distiguish between an actual "selection dismiss" from
one that happened because of a "terminal" selection event.
This cl also removes the "*" marker used to distinguish the new
logging from the old ones. The code for the old logging has already
been deleted so no more need for a marker.
Bug:
78541105
Test: bit CtsWidgetTestCases:android.widget.cts.TextViewTest
Test: bit FrameworksCoreTests:android.widget.TextViewActivityTest
Change-Id: Iac7d45dbc63e7076683742bd045766a1d927cfc9
TreeHugger Robot [Tue, 22 May 2018 11:09:18 +0000 (11:09 +0000)]
Merge "Reduce LoadedApkAssets LRU cache size." into pi-dev
TreeHugger Robot [Tue, 22 May 2018 10:57:27 +0000 (10:57 +0000)]
Merge changes Ic8231b18,I30009f88 into pi-dev
* changes:
Fix: VPNs update caps upon underlying network disconnect.
Add tests for setUnderlyingNetworks.
Kenny Guy [Tue, 22 May 2018 10:41:17 +0000 (11:41 +0100)]
Fix slider interaction collection.
Brightness changes were always considered temporary
so we skipped notifying the tracker.
Bug:
79990855
Test: atest android.display.cts.BrightnessTest
Change-Id: I5702694218c9811f9f1413d8aed3cb57063ea1c8
Annie Meng [Thu, 17 May 2018 17:49:24 +0000 (18:49 +0100)]
Allow restore of settings with nullable components
Creates a new settings validator that allows for null components, which
have semantic meaning for certain settings (in this case, that no
service is selected).
Bug:
79925290
Test: 1) atest SettingsValidatorsTest
2) Manual:
- In Settings UI, select "None" for autofill service and accessibility
shortcut target
- "adb backup -keyvalue -f nullsettings.ab com.android.providers.settings"
- "adb restore nullsettings.ab"
- Verify no crashes and that autofill service and accessibility shortcut
target both have "None" in Settings UI
Change-Id: I159b3f4706c6b981a30437c31724b106eb4e3f2a
Annie Meng [Tue, 22 May 2018 09:55:48 +0000 (09:55 +0000)]
Merge "Check settings validators for NPE" into pi-dev
Richard Uhler [Mon, 21 May 2018 09:37:24 +0000 (10:37 +0100)]
Reduce LoadedApkAssets LRU cache size.
The cached apk assets can take up multiple megabytes of .apk mmap and
native memory for associated data structures. Reduce the cache size
for potential multi-megabyte memory savings with hopefully no
noticeable performance impacts.
In particular, rough estimates of the memory and performance impacts
of this change were evaluated by starting the launcher app,
sampling system server PSS with dumpsys meminfo and cache stats using
dumpsys activity for a few different cache sizes:
LRU Size 1: cached apks: total= 1 created=0 evicted=33 hit= 0 miss=34 max=1 TOTAL PSS=187542
LRU Size 3: cached apks: total= 3 created=0 evicted=12 hit=19 miss=15 max=3 TOTAL PSS=190606
LRU Size 15: cached apks: total=15 created=0 evicted= 0 hit=19 miss=15 max=15 TOTAL PSS=199350
LRU Size 100: cached apks: total=15 created=0 evicted= 0 hit=19 miss=15 max=100 TOTAL PSS=201416
Comparing cache stats after launching the settings app:
LRU Size 3: cached apks: total=3 created=0 evicted=5 hit=14 miss=8 max=3
LRU Size 15: cached apks: total=6 created=0 evicted=0 hit=18 miss=6 max=15
Running performance tests locally to ensure no clear regression in app
startup:
app-startup/benchmark-app-hermetic/cold-dropcache-test:
LRU 15 3 3
activityStart: 40.47 38.53 39.27
bindApplication: 24.40 24.53 24.93
draw: 4.27 4.33 4.07
layout: 0.73 1.07 0.73
onCreate: 9.40 9.00 8.53
totalLaunchTime: 183.13 183.27 187.07
app-startup/hermetic-apps/cold-dropcache-test:
LRU 15 15 3 3
Calculator_avg: 333.9 333.1 343.3 334.6
Calculator_max: 345.0 360.0 370.0 363.0
Calculator_median: 333.5 331.5 343.5 333.5
Calculator_min: 320.0 317.0 320.0 311.0
Calculator_std_dev: 6.62 13.26 18.22 16.51
Clock_avg: 510.0 511.2 509.2 512.6
Clock_max: 529.0 528.0 530.0 529.0
Clock_median: 510.5 509.0 503.5 512.0
Clock_min: 498.0 495.0 487.0 492.0
Clock_std_dev: 7.70 11.71 15.25 11.07
Contacts_avg: 457.7 527.3 507.3 543.9
Contacts_max: 602.0 622.0 591.0 588.0
Contacts_median: 410.5 568.5 568.0 580.0
Contacts_min: 390.0 374.0 366.0 394.0
Contacts_std_dev: 85.64 96.80 88.80 72.97
Phone_avg: 6073.1 6109.7 6110.8 6115.8
Phone_max: 6196.0 6208.0 6180.0 6222.0
Phone_median: 6070.0 6117.5 6100.0 6133.5
Phone_min: 5982.0 5990.0 6061.0 5994.0
Phone_std_dev: 61.49 67.35 34.55 60.17
Settings_avg: 457.9 446.6 451.6 428.7
Settings_max: 487.0 468.0 494.0 449.0
Settings_median: 460.0 450.0 444.5 424.0
Settings_min: 423.0 421.0 431.0 420.0
Settings_std_dev: 21.21 12.02 20.46 9.71
Bug:
79115008
Test: Device boots.
Test: dumpsys activity all shows ResourcesManager max cache size of 3.
Change-Id: I7225b6978fac6197c27bec23d2b477fb1f5aee43
Chalard Jean [Mon, 21 May 2018 06:30:56 +0000 (15:30 +0900)]
Unify behavior of various cases of "no underlying networks"
Before this change, VPNs having no underlying networks would be
marked as metered as the safe option, but VPNs having only
disconnected underlying networks would be marked as unmetered.
Fix this discrepancy.
Bug:
79748782
Test: runtest frameworks-net
Change-Id: I51c3badde29f43f692f383553bd98327d2da8dd1
Chalard Jean [Fri, 18 May 2018 13:02:56 +0000 (22:02 +0900)]
Fix: VPNs update caps upon underlying network disconnect.
Bug:
79748782
Test: ConnectivityServiceTests still pass
Change-Id: Ic8231b18a17e6feb5ebafe8d5688fb59f9d4d58e
Mihai Popa [Tue, 8 May 2018 18:18:43 +0000 (19:18 +0100)]
Fix crash after smart selection animation
At the end of the smart selection animation, we run a callback that sets
the selection on the TextView (subsequently starting the action mode
toolbar and showing the handles). However, when the text changes before
the animation finishes, the selection might not be valid, and might get
out of the text bounds, which was producing a crash. This was observed
in a monkey crash. This CL fixes this bug by refusing to set the
selection when it goes outside the text bounds, corresponding to the
case when text has changed between the time the animation has started
and the time it ended.
Bug:
69919777
Test: manual testing before and after the fix
Change-Id: Iea043f320004d45ad16dd7e9e5b47e5256e6d9fa
(cherry picked from commit
cce6e82d35b5a6c8eb29e76fbae53eae8b70e99a)
Merged-in: Iea043f320004d45ad16dd7e9e5b47e5256e6d9fa
David Brazdil [Tue, 22 May 2018 09:41:15 +0000 (09:41 +0000)]
Merge "Add more hidden API usages into greylist" into pi-dev
Chalard Jean [Fri, 18 May 2018 12:47:45 +0000 (21:47 +0900)]
Add tests for setUnderlyingNetworks.
Fixes come later. This is complex enough as it is.
Bug:
79748782
Test: new test passes, old tests still pass
Change-Id: I30009f88e68a534c332ca88bae517cacc39a60bb
Remi NGUYEN VAN [Tue, 22 May 2018 08:00:56 +0000 (08:00 +0000)]
Merge "Move CaptivePortalProbeResult to its own file" into pi-dev
Chalard Jean [Tue, 22 May 2018 07:51:09 +0000 (07:51 +0000)]
Merge "Fix setCapabilities." into pi-dev
TreeHugger Robot [Tue, 22 May 2018 07:18:27 +0000 (07:18 +0000)]
Merge "Add new hidden-for-now AppOpsManager APIs to greylist." into pi-dev
shawnlin [Mon, 21 May 2018 12:50:54 +0000 (20:50 +0800)]
Fixed a issue where notification icons don't align vertically while peeking
Hide notification in shelf when the height doesn't exceed appearEnd
position.
Fixes:
77546749
Test: manual, 1) set "Simulate a display with a cutout" to Double display
cutout, 2) pull the notification panel down and observe the icon
position.
Change-Id: I5f21188f528f3283256828d0a70aad52ca52c6dc
felkachang [Fri, 18 May 2018 12:11:38 +0000 (20:11 +0800)]
Clock notification text was cut off
The root cause is that HeadsUpStatusBarView doesn't considerate the
Cut Out situation. The Cut Out situation can use
getRootWindowInsets().getDisplayCutout().getSafeInsetLeft() to get
the the value.
There are two parts need to handle Cut out.
The one part is to handle the padding. It needs to considerate both of
mLeftInset and mLeftCutOutInset because it use getLocationOnScreen to
count the location.
The other part is to handle the HeadsUpStatusBarView.translationX.
It only needs to considerate mLeftCutOutInset because landscape
degree 90 has the left side cut out and translationX by the distance
between screen left boundary and scroller's left boundary. The
distance include Cut Out so it need minus mCutOutInsetLeft in the
setPanelTranslation.
Cut Out has 4 mode: Disable, Corner, Double, and Tall. Disable and
Double are handled by the same way. Corner and Tall are handled
by the same way.
Bug:
78113562
Test: atest SystemUITests
Change-Id: Ic2a272c43f65eed8c4b3749787637f5fb848bb8a
Fix:
78113562
TreeHugger Robot [Tue, 22 May 2018 05:44:33 +0000 (05:44 +0000)]
Merge "Add content description to zenmode" into pi-dev
Jian Jin [Tue, 22 May 2018 04:43:21 +0000 (04:43 +0000)]
Merge "Bugfix: PIN keyguard is clipped in Car" into pi-dev
TreeHugger Robot [Tue, 22 May 2018 03:28:13 +0000 (03:28 +0000)]
Merge "Show swipe-up tip with exponential backoff" into pi-dev
Tracy Zhou [Mon, 21 May 2018 22:30:31 +0000 (15:30 -0700)]
Show swipe-up tip with exponential backoff
Change-Id: Icd32c0bd98623173322e5e33bd5400e679a01a10
Fixes:
79985309
Test: Manual test
rago [Mon, 21 May 2018 21:28:03 +0000 (14:28 -0700)]
Fix DynamicsProcessing effect defaults and documentation typo
Fixing level for default values of Dynamics Processing effect.
Fixing typo on documentation
Bug:
79712497
Test: manual testing and sound amplifier test
Change-Id: I54b2bd728dc502839cdde97327c840b825811c3c
Jian Jin [Mon, 21 May 2018 22:20:40 +0000 (15:20 -0700)]
Bugfix: PIN keyguard is clipped in Car
Car is a multi-user system. There's a cancel button on the Keyguard
that allows the user to cancel the Keyguard to go back to user
switcher. Because different user may have different security mode,
the container must be resized when the security mode changes. The fix
is to destroy the old bouncer view on cancel.
Screenshot of clipped view: https://screenshot.googleplex.com/0VWdDtrLkAr
Fix:
79202566
Test: In the head unit
Change-Id: Ife33c53785ed96778f08c8f5886885e2b9d29749
Remi NGUYEN VAN [Tue, 22 May 2018 00:58:19 +0000 (09:58 +0900)]
Move CaptivePortalProbeResult to its own file
This is necessary to resolve visibility issues for the next change.
Bug: b/
79499239
Test: runtest frameworks-net
Change-Id: I50bc96afe6ae88c8f58a693f0a4e821f1f9b3299
TreeHugger Robot [Tue, 22 May 2018 00:59:29 +0000 (00:59 +0000)]
Merge "Bouncer shouldn't be translated when occluded" into pi-dev
Lucas Dupin [Tue, 22 May 2018 00:58:05 +0000 (17:58 -0700)]
Add content description to zenmode
Test: manual
Change-Id: Ic478e8a6fcd2088d198b2cee2e70ab8376b4709d
Fixes:
79686343
Suprabh Shukla [Tue, 22 May 2018 00:48:43 +0000 (17:48 -0700)]
canRequestPackageInstalls returns false for instant apps
Instant apps should not be able to request app installs, regardless of
the app op state.
Test: cts-instant-tradefed run cts-instant-dev -m \
CtsExternalSourcesTestCases
cts-tradefed run cts-dev -m CtsExternalSourcesTestCases
Bug:
79485871
Change-Id: I6bee50b57e6820f5786dfbc82d042acce93fc1b4
David Chen [Mon, 21 May 2018 23:09:32 +0000 (16:09 -0700)]
Marks deprecated StatsManager APIs.
Marking some API's as deprecated, so users avoid getting confused.
Test: Test that build works.
Bug:
80099023
Change-Id: I4b3d4e4fa1ee3d706e49b8180aa4d0ad0e7d6eeb
Lucas Dupin [Tue, 22 May 2018 00:16:36 +0000 (00:16 +0000)]
Merge "Measure text in 1 pass" into pi-dev
Evan Laird [Tue, 22 May 2018 00:12:34 +0000 (20:12 -0400)]
Override getDrawingRect for wifi and mobile views
Fixes the ordering that gets generated for accessibility traversal
Test: visual with TalkBack on
Change-Id: Ib50dad448aaf2b9ed0fa90d12f6394db7fac3252
Fixes:
79722445
TreeHugger Robot [Tue, 22 May 2018 00:11:49 +0000 (00:11 +0000)]
Merge "Differentiate MediaController in a process for MediaSession" into pi-dev
Lucas Dupin [Mon, 21 May 2018 23:44:28 +0000 (16:44 -0700)]
Bouncer shouldn't be translated when occluded
Only checking if the bouncer should be scrimmed isn't enough
since it might have been initialized for performance reasons,
but is hidden at the bottom of the keyguard.
Change-Id: If92083e2c385d51febe0ec3a5e5d3484476caf81
Fixes:
80101176
Test: atest packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/StatusBarKeyguardViewManagerTest.java
Test: manual
TreeHugger Robot [Mon, 21 May 2018 23:37:24 +0000 (23:37 +0000)]
Merge "Add utility methods to AmbientDisplayConfig" into pi-dev
TreeHugger Robot [Mon, 21 May 2018 22:18:47 +0000 (22:18 +0000)]
Merge "Pulse state should always show ambient wallpaper" into pi-dev
TreeHugger Robot [Mon, 21 May 2018 22:18:42 +0000 (22:18 +0000)]
Merge "FingerprintService: requires ro.product.first_api_level" into pi-dev
TreeHugger Robot [Mon, 21 May 2018 22:17:52 +0000 (22:17 +0000)]
Merge "Setup mAreChannelsBypassingDnd from notifPolicy" into pi-dev