OSDN Git Service
TreeHugger Robot [Mon, 9 Apr 2018 17:55:48 +0000 (17:55 +0000)]
Merge "Update PreferenceCategory headers to use headline font." into pi-dev
TreeHugger Robot [Mon, 9 Apr 2018 17:34:33 +0000 (17:34 +0000)]
Merge "Animate shade expansion when bouncer" into pi-dev
TreeHugger Robot [Mon, 9 Apr 2018 17:33:21 +0000 (17:33 +0000)]
Merge "Use config_headlineFontFamilyMedium for actionBar/toolbar." into pi-dev
TreeHugger Robot [Mon, 9 Apr 2018 17:33:15 +0000 (17:33 +0000)]
Merge "More knobs for connectivity experiments." into pi-dev
Michael Kwan [Mon, 9 Apr 2018 16:58:51 +0000 (16:58 +0000)]
Merge "Add config to allow start activities on long press." into pi-dev
Winson Chung [Mon, 9 Apr 2018 16:53:55 +0000 (16:53 +0000)]
Merge "Tighten up pending animations list." into pi-dev
Andy Hung [Mon, 9 Apr 2018 16:49:52 +0000 (16:49 +0000)]
Merge "PlaybackParams: Add @TestApi annotation to access stretch mode" into pi-dev
Seigo Nonaka [Mon, 9 Apr 2018 16:46:26 +0000 (16:46 +0000)]
Merge "Add common weight name to the API description" into pi-dev
Lucas Dupin [Mon, 9 Apr 2018 06:17:40 +0000 (23:17 -0700)]
Animate shade expansion when bouncer
Change-Id: Ia1b303766379cb9d917c8b60ed70730fe3c4f5b4
Fixes:
76228574
Test: Swipe up, hit back
Test: Double tap on notification, hit back
Test: Launch camera, request bouncer, hit back
Test: Repeat for PIN and password
TreeHugger Robot [Mon, 9 Apr 2018 15:57:42 +0000 (15:57 +0000)]
Merge "Expose TestAPIs needed by GtsOsTestCases" into pi-dev
TreeHugger Robot [Mon, 9 Apr 2018 15:42:37 +0000 (15:42 +0000)]
Merge "Update more dialog themes to use medium headline font." into pi-dev
TreeHugger Robot [Mon, 9 Apr 2018 14:35:51 +0000 (14:35 +0000)]
Merge "Support bluetooth not using MultinetworkPolicyTracker" into pi-dev
TreeHugger Robot [Mon, 9 Apr 2018 14:32:41 +0000 (14:32 +0000)]
Merge "NO PARTIAL RERUN: Do not return recycled bitmaps" into pi-dev
Seigo Nonaka [Mon, 2 Apr 2018 18:45:34 +0000 (11:45 -0700)]
Add common weight name to the API description
Bug:
76448718
Test: m docs
Change-Id: Id0ce0b2bcbf4f6b0cf1aa97c4d2c3c5117dc62c2
TreeHugger Robot [Mon, 9 Apr 2018 13:39:31 +0000 (13:39 +0000)]
Merge "Update Javadoc of setLockTaskEnabled to reflect known issue" into pi-dev
TreeHugger Robot [Mon, 9 Apr 2018 13:16:11 +0000 (13:16 +0000)]
Merge "DisplayContentTests: Mark and improve flaky test" into pi-dev
Eric Sandness [Mon, 9 Apr 2018 13:10:59 +0000 (13:10 +0000)]
Merge "Permission Check For DPM.getPermittedAccessibilityServices" into pi-dev
Jan Althaus [Mon, 9 Apr 2018 13:09:55 +0000 (13:09 +0000)]
Merge "Fixing broken logging of OTHER events" into pi-dev
TreeHugger Robot [Mon, 9 Apr 2018 13:02:13 +0000 (13:02 +0000)]
Merge "Only match addresses without zip codes if at the end." into pi-dev
TreeHugger Robot [Mon, 9 Apr 2018 11:26:20 +0000 (11:26 +0000)]
Merge "Fallback added for HEAVY_CLICK effect" into pi-dev
TreeHugger Robot [Mon, 9 Apr 2018 11:26:20 +0000 (11:26 +0000)]
Merge "Mapping of haptic constants updated" into pi-dev
TreeHugger Robot [Mon, 9 Apr 2018 11:26:20 +0000 (11:26 +0000)]
Merge "Add haptic constants" into pi-dev
Erik Kline [Mon, 12 Mar 2018 14:18:58 +0000 (23:18 +0900)]
Support bluetooth not using MultinetworkPolicyTracker
This required advancing the IpManager to IpClient refactoring
(Bluetooth used IpManager and friends). Most importantly, the
Bluetooth code used WaitForProvisioningCallback, so this is
moved into IpClient proper now. Also: some more renaming
cleanup.
Test: as follows
- built
- flashed
- booted
- runtest frameworks-net passes
Bug:
62476366
Bug:
72663849
Merged-In: I5e5b2c59ad3ea9ad574e8e683bcab3b09cfe0791
Merged-In: I89b45310181d952129fb2294db63654da9b4057f
Change-Id: I9eee2a9d5c31cdd48a054a7edc3403584efb1864
(cherry picked from commit
8d1fe54be1b605846cca9dfe4a966b3c5e739caa)
Annie Meng [Mon, 9 Apr 2018 09:53:48 +0000 (09:53 +0000)]
Merge "Don't backup/restore screen brightness" into pi-dev
TreeHugger Robot [Mon, 9 Apr 2018 09:26:42 +0000 (09:26 +0000)]
Merge "Fix crash when modifying Selection" into pi-dev
Eric Sandness [Tue, 3 Apr 2018 17:12:39 +0000 (18:12 +0100)]
Permission Check For DPM.getPermittedAccessibilityServices
Require the callers of DPM.getPermittedAccessibilityServices(userId) to
hold the MANAGE_USERS permission. The only known callers of this API
are settings apps that already hold this permission.
Bug:
62343414
Test: com.android.server.devicepolicy.DevicePolicyManagerTest
Test: com.google.android.gts.devicepolicy.DeviceOwnerTest
Test: Manually checked accessibility settings in DO and PO modes
Change-Id: I8ee3f876fcaffa63636645f0f59709cd147254ef
Robin Bennett [Mon, 9 Apr 2018 07:41:20 +0000 (07:41 +0000)]
Merge "Add setting/experiment to send keycode sleep for ungaze when Home is the foreground activity." into pi-dev
Shawn Lin [Mon, 9 Apr 2018 03:58:49 +0000 (03:58 +0000)]
Merge "Fix the background of lockscreen showing the art work of removed media notification" into pi-dev
Andrew Sapperstein [Sun, 8 Apr 2018 22:29:22 +0000 (15:29 -0700)]
Update more dialog themes to use medium headline font.
Updates more of the DeviceDefault Dialog themes to use
DialogWindowTitle.DeviceDefault and other related styles.
Also updates DialogWindowTitle.DeviceDefault to use the medium headline
font config for its fontFamily to enable OEM customization.
Bug:
70296667
Test: visual inspection
Change-Id: I77adba91d62caf327f96e237d1dd30126ef555c6
Andrew Sapperstein [Sun, 8 Apr 2018 18:56:29 +0000 (11:56 -0700)]
Update PreferenceCategory headers to use headline font.
Medium weight.
Bug:
70296667
Test: visual
Change-Id: I879f5524920050e0a12b094d8ad0e9bcf72fd24c
Andrew Sapperstein [Wed, 24 Jan 2018 01:31:29 +0000 (17:31 -0800)]
Use config_headlineFontFamilyMedium for actionBar/toolbar.
Updates the fontFamily used for Theme.DeviceDefault.Settings's
actionBarStyle's titleTextStyle to be config_headlineFontFamilyMedium.
Also updates the toolbarStyle for DeviceDefault themes to use a new
DeviceDefault version that sets titleTextAppearance to a DeviceDefault
version that picks up the fontFamily change made above.
This allows greater customization of system surfaces for OEMs.
Bug:
69314526
Test: visual inspection
Change-Id: Ida9bfaba1e136f29ae80715d1648f13f7b2f2126
Adrian Roos [Sun, 8 Apr 2018 17:59:08 +0000 (10:59 -0700)]
DisplayContentTests: Mark and improve flaky test
Marks testForAllWindows as flaky. Also improves assertForAllWindowsOrder
to output the actual vs expected output in case the test fails.
Bug:
77772044
Test: atest DisplayContentTests
Change-Id: I975a02621ffb968af24b962fccbe998ded651715
Lucas Dupin [Sat, 7 Apr 2018 18:08:15 +0000 (11:08 -0700)]
NO PARTIAL RERUN: Do not return recycled bitmaps
There's also no need to offload WallpaperManager#forgetLoadedBitmap
because Bitmap#recycle is asynchronous - and the whole method is
synchronized.
Fixes
77597550
Test: atest cts/tests/framework/base/activitymanager/src/android/server/am/ActivityManagerMultiDisplayTests.java
Change-Id: I88014e21bd05e10c2f524393bb637596708e4e63
Jan Althaus [Sat, 7 Apr 2018 12:06:12 +0000 (12:06 +0000)]
Merge "Remove legacy logger" into pi-dev
Jan Althaus [Wed, 4 Apr 2018 17:40:38 +0000 (19:40 +0200)]
Remove legacy logger
Migrate DefaultLogger implementation to SelectionSessionLogger.
This cleans up after the API refactor and fixes two bugs:
- All events are currently logged twice.
- Interfaces accept a null signature, but it currently crashes the legacy logger.
Bug:
73392698
Bug:
77659305
Test: atest FrameworksCoreTests:TextClassificationManagerTest
Test: atest FrameworksCoreTests:TextClassificationTest
Test: atest CtsViewTestCases:TextClassificationManagerTest
Test: atest CtsViewTestCases:TextClassifierValueObjectsTest
Test: atest CtsWidgetTestCases:TextViewTest
Test: atest CtsWidgetTestCases:EditTextTest
Test: Manually examined logs
Change-Id: I0d2b925abf5cab12d71fc2cc0fa527530c86ab10
Jan Althaus [Sat, 7 Apr 2018 08:16:28 +0000 (08:16 +0000)]
Merge "Fixing incomplete RemoteAction clone" into pi-dev
Jan Althaus [Sat, 7 Apr 2018 07:37:36 +0000 (09:37 +0200)]
Fixing broken logging of OTHER events
This bug means we never received logs for events like 'Web Search'
Bug:
77659305
Test: atest FrameworksCoreTests:SelectionEventTest
Change-Id: I6f79897f548d0d19710578e309e0b645bb78e1e3
TreeHugger Robot [Sat, 7 Apr 2018 05:06:52 +0000 (05:06 +0000)]
Merge "Register NetworkRequest callbacks with a handler" into pi-dev
TreeHugger Robot [Sat, 7 Apr 2018 03:59:34 +0000 (03:59 +0000)]
Merge "Autofill should clear the UI filter when a value is updated to null." into pi-dev
Lorenzo Colitti [Sat, 7 Apr 2018 02:41:40 +0000 (02:41 +0000)]
Merge changes from topic "unwanted" into pi-dev
* changes:
Add @param tag for state in queryDetailsForUidTagState.
Remove unwanted capability code per API council feedback.
Andy Hung [Fri, 6 Apr 2018 22:37:56 +0000 (15:37 -0700)]
PlaybackParams: Add @TestApi annotation to access stretch mode
Required due to CTS access restrictions in P.
Test: CTS ParamsTest
Bug:
77723867
Change-Id: I68b5fbc2096d5d1cb01c60fe1028def5ecfe2959
TreeHugger Robot [Sat, 7 Apr 2018 02:00:01 +0000 (02:00 +0000)]
Merge "AudioFocusRequest: getOnAudioFocusChangeListener in test API" into pi-dev
Felipe Leme [Thu, 5 Apr 2018 20:43:41 +0000 (13:43 -0700)]
Autofill should clear the UI filter when a value is updated to null.
Test: VirtualContainerActivityCompatModeTest:testDatasetFiltering
Fixes:
77652152
Change-Id: Ifc7b8f759684fe35d1aa9218dd39b8dcf7ac4e4f
Phil Weaver [Sat, 7 Apr 2018 00:47:34 +0000 (00:47 +0000)]
Merge "Don't request accessibility focus in volume dialog" into pi-dev
TreeHugger Robot [Sat, 7 Apr 2018 00:40:28 +0000 (00:40 +0000)]
Merge "UI modifications for user picker Test: tested on Mojave bug:
75023449" into pi-dev
TreeHugger Robot [Sat, 7 Apr 2018 00:34:54 +0000 (00:34 +0000)]
Merge "Fix regression in recent task list replacement" into pi-dev
Jean-Michel Trivi [Thu, 5 Apr 2018 22:46:06 +0000 (15:46 -0700)]
AudioFocusRequest: getOnAudioFocusChangeListener in test API
Bug:
77651038
Test: CTS AudioFocusTest
Change-Id: I071057f1ed0ed6c56c16182a48191d763d408ae1
TreeHugger Robot [Fri, 6 Apr 2018 23:18:27 +0000 (23:18 +0000)]
Merge "Do not animate scrim when ColorFade" into pi-dev
TreeHugger Robot [Fri, 6 Apr 2018 22:52:43 +0000 (22:52 +0000)]
Merge "AudioPresentation: Replace @VisibleForTesting with @TestApi" into pi-dev
Phil Weaver [Fri, 6 Apr 2018 22:17:17 +0000 (15:17 -0700)]
Don't request accessibility focus in volume dialog
Bug:
72824733
Test: Manually verify that TalkBack no longer announces
the entire contents of the dialog when pressing a volume
key.
Change-Id: I33162ecef8b9ef5e872a0291c5f3188c0c9d3dc1
TreeHugger Robot [Fri, 6 Apr 2018 22:35:56 +0000 (22:35 +0000)]
Merge "Adds a start flag to set FLAG_ACTIVITY_MATCH_EXTERNAL" into pi-dev
TreeHugger Robot [Fri, 6 Apr 2018 22:23:39 +0000 (22:23 +0000)]
Merge changes from topic "hid-device-app-name" into pi-dev
* changes:
Show Bluetooth HID Device connection status in Settings
Bluetooth: Add hidden API to get current user of HID Device (1/3)
TreeHugger Robot [Fri, 6 Apr 2018 22:06:04 +0000 (22:06 +0000)]
Merge "Added nullability annotations to API" into pi-dev
Philip P. Moltmann [Wed, 4 Apr 2018 18:20:44 +0000 (11:20 -0700)]
Expose TestAPIs needed by GtsOsTestCases
Test: atest GtsOsTestCases on pi-dev:taimen and oc-mr1:sailfish
Bug:
77497338
Change-Id: I5de976991a857bfbed2faa943822af542601fa8b
Jorim Jaggi [Fri, 6 Apr 2018 21:45:50 +0000 (21:45 +0000)]
Merge "Run layout when exiting window" into pi-dev
Jorim Jaggi [Fri, 6 Apr 2018 21:44:28 +0000 (21:44 +0000)]
Merge "Early wake-up for transitions (2/2)" into pi-dev
Patrick Baumann [Fri, 6 Apr 2018 20:53:25 +0000 (13:53 -0700)]
Adds a start flag to set FLAG_ACTIVITY_MATCH_EXTERNAL
Test: manual - launch installed instant app from command line
Change-Id: I0e8532a683e3a68d2c81df222aab673d09c286ed
Fixes:
75967669
TreeHugger Robot [Fri, 6 Apr 2018 21:13:44 +0000 (21:13 +0000)]
Merge "Remove clip to padding on the home button parent parent layout" into pi-dev
Winson Chung [Fri, 6 Apr 2018 17:18:39 +0000 (10:18 -0700)]
Fix regression in recent task list replacement
- Accidentally removed a user check in ag/
3762067 when adding the check for
compatible activity types :(. Added it back and a test to ensure that we
don't remove tasks that are otherwise identical except belong to
different users.
Bug:
77661783
Test: atest FrameworksServicesTests:RecentTasksTest
Change-Id: I9a0ec8f62e85e89f97dce615252b4c7635f505f8
TreeHugger Robot [Fri, 6 Apr 2018 20:57:25 +0000 (20:57 +0000)]
Merge "Improving jank tests diagnostics" into pi-dev
TreeHugger Robot [Fri, 6 Apr 2018 20:52:22 +0000 (20:52 +0000)]
Merge "Watch all networks for job invalidation signals." into pi-dev
TreeHugger Robot [Fri, 6 Apr 2018 20:45:21 +0000 (20:45 +0000)]
Merge "Hearing Aid: change get/set active device (3/3)" into pi-dev
TreeHugger Robot [Fri, 6 Apr 2018 20:43:40 +0000 (20:43 +0000)]
Merge "Fix another animation leak" into pi-dev
Tej Singh [Fri, 6 Apr 2018 20:42:22 +0000 (20:42 +0000)]
Merge "Add proto output of statsd stats in adb" into pi-dev
TreeHugger Robot [Fri, 6 Apr 2018 20:41:01 +0000 (20:41 +0000)]
Merge "Turning on proto dumping for stack traces." into pi-dev
Nader Jawad [Fri, 6 Apr 2018 20:40:46 +0000 (20:40 +0000)]
Merge "Removed call to setWillNotCacheDrawing and deprecated it as well as willNotCacheDrawing as intermediate caching layers are obsolete since hardware accelerated rendering was introduced in API 11" into pi-dev
TreeHugger Robot [Fri, 6 Apr 2018 20:40:31 +0000 (20:40 +0000)]
Merge "Import translations. DO NOT MERGE" into pi-dev
Selim Cinek [Fri, 6 Apr 2018 19:56:09 +0000 (12:56 -0700)]
Added nullability annotations to API
Certain methods where left out in the new APIs
Change-Id: Ide1e2f387a4918f2134254d862eeff06bfd3a730
Fixes:
74409592
Test: only non-semantic changes
Mikhail Naganov [Fri, 6 Apr 2018 20:04:14 +0000 (13:04 -0700)]
AudioPresentation: Replace @VisibleForTesting with @TestApi
This is to fix CTS tests failures.
Bug:
77715867
Test: make
Change-Id: I99a5ff8fab208a0e1f2e889cb7ad256e6ba08437
Oscar Shu [Fri, 6 Apr 2018 20:17:40 +0000 (20:17 +0000)]
Merge changes Ic0515cec,If547bd96 into pi-dev
* changes:
metrics: identifying dfs from non dfs scans
metrics: watchdog connection delay field
Erik Kline [Fri, 6 Apr 2018 06:28:00 +0000 (23:28 -0700)]
Register NetworkRequest callbacks with a handler
Test: as follows
- builds, flashes, boots
- settings changes that cause the "x" to appear and disappear
from the wifi icon don't crash
- runtest frameworks-net passes (kinda no related)
Bug:
64133961
Bug:
77285360
Change-Id: I8af34d623ce265545a2ec42b56c5e87b4d077f58
TreeHugger Robot [Fri, 6 Apr 2018 19:54:20 +0000 (19:54 +0000)]
Merge "WifiConfiguration: Remove a bunch of unused fields" into pi-dev
TreeHugger Robot [Fri, 6 Apr 2018 19:44:52 +0000 (19:44 +0000)]
Merge "Update NetworkScoreService to use SystemService" into pi-dev
Aarthi Balachander [Fri, 30 Mar 2018 18:15:59 +0000 (11:15 -0700)]
UI modifications for user picker
Test: tested on Mojave
bug:
75023449
Change-Id: Ia991ca9ed9424d0008ca2328f28c0900e8d5653a
Mike Ma [Fri, 6 Apr 2018 19:32:20 +0000 (19:32 +0000)]
Merge "Fix ambient display time unit error" into pi-dev
Torne (Richard Coles) [Fri, 6 Apr 2018 19:17:55 +0000 (15:17 -0400)]
Only match addresses without zip codes if at the end.
The old native implementation of findAddress only accepted addresses
without zip codes if they appeared at the end of the string. This was
probably a bug as the documentation implies this should work in all
cases, but fixing this bug has caused a lot of false positives while not
fixing very many false negatives and this functionality is being
deprecated anyway, so change it back.
Fixes:
75409267
Test: tested upstream in chromium; direct copy of that code
Change-Id: I3f3c300035cf02a23284737431bc6f94f542cbe7
Vadim Tryshev [Thu, 5 Apr 2018 20:50:38 +0000 (13:50 -0700)]
Improving jank tests diagnostics
When there were 0 total frames, ProfileData generates something like:
Janky frames: 0 (nan%)
Then the test fails to parse it, and ends up with a mysterious
"Failed to parse NUM_JANKY" diag (see the bug).
Making the case 0/0 a 0%.
Bug:
77528721
Test: atest google/perf/jank/SystemUI/UbSystemUIJankTests:android.platform.systemui.tests.jank.LauncherJankTests#testOpenAllAppsContainer
Change-Id: Ib65b80dc689f7b6ee06b108114ffd7de9d739721
TreeHugger Robot [Fri, 6 Apr 2018 19:02:41 +0000 (19:02 +0000)]
Merge "Fix support for rendering status icons" into pi-dev
TreeHugger Robot [Fri, 6 Apr 2018 18:48:27 +0000 (18:48 +0000)]
Merge "Add new WifiWake metrics" into pi-dev
Xiangyu/Malcolm Chen [Fri, 6 Apr 2018 18:32:12 +0000 (18:32 +0000)]
Merge "Marking some hidden API as TestApi." into pi-dev
Andy Hung [Fri, 6 Apr 2018 18:19:48 +0000 (18:19 +0000)]
Merge "Add TestApi annotation to AudioEffect, AudioFormat, VolumeShaper" into pi-dev
TreeHugger Robot [Fri, 6 Apr 2018 18:17:11 +0000 (18:17 +0000)]
Merge "Update battery strings to respect user 24 hour setting" into pi-dev
TreeHugger Robot [Fri, 6 Apr 2018 18:16:36 +0000 (18:16 +0000)]
Merge "WifiConfiguration: Modify time display in toString" into pi-dev
Fyodor Kupolov [Fri, 6 Apr 2018 17:57:10 +0000 (17:57 +0000)]
Merge "Added dontSendToRestrictedApps broadcast option" into pi-dev
David Brazdil [Fri, 6 Apr 2018 17:42:05 +0000 (17:42 +0000)]
Merge changes Idca52b94,I82ae308d into pi-dev
* changes:
Sort hidden API light grey
Add more hidden API to light grey
Brad Stenning [Fri, 6 Apr 2018 17:28:08 +0000 (10:28 -0700)]
Fix support for rendering status icons
Bug:
77698170
Test: Manual on big dog
Change-Id: Ibabc56408cfa8cbd48baac40ada63c976631170b
Lei Yu [Fri, 6 Apr 2018 17:19:19 +0000 (17:19 +0000)]
Merge "Hide app if it shares uid with whitelisted app" into pi-dev
TreeHugger Robot [Fri, 6 Apr 2018 17:17:39 +0000 (17:17 +0000)]
Merge "Move the alarm status icon to the first position." into pi-dev
TreeHugger Robot [Fri, 6 Apr 2018 17:12:01 +0000 (17:12 +0000)]
Merge "Switch to Saturated color mode when Accessibility transforms are active" into pi-dev
Nader Jawad [Thu, 5 Apr 2018 23:34:47 +0000 (16:34 -0700)]
Removed call to setWillNotCacheDrawing and deprecated it as well as
willNotCacheDrawing as intermediate caching layers are obsolete since
hardware accelerated rendering was introduced in API 11
ImageView's current implementation of setScaleType would manually
disable it's cache if the ScaleType provided was CENTER. This was end up
not drawing the ImageView if View.LAYER_TYPE_SOFTWARE was configured on
the ImageView as the cache no longer existed. Removed the logic to
conditionally disable the drawing cache and marked
setWillNotCacheDrawing/willNotCacheDrawing as hardware accelerated
rendering makes these facilities obsolete
Fixes:
77653694
Fixes:
72139649
Test: Created a test application with an ImageView and manually set a
ScaleType of CENTER and forced the ImageView to render in a software
layer to confirm that it would render properly with a drawable of the
test application's launcher icon
Change-Id: Ie73b1e0708a265e3cc2cc74ed13539f4219dbd7d
(cherry picked from commit
2ac86880d6888b0508cdb7d6b2f22a1329a66560)
Mehdi Alizadeh [Thu, 29 Mar 2018 00:34:24 +0000 (17:34 -0700)]
Update NetworkScoreService to use SystemService
Bug:
29118511
Test: runtests.sh
Test: Ran integration tests
Test: Verified wifi assistant still works (Uses NetworkScorer).
Change-Id: I50a6bd5ab59fc69fcb331102ad80ec4bb0988c70
TreeHugger Robot [Fri, 6 Apr 2018 17:06:44 +0000 (17:06 +0000)]
Merge "media: Populate Image scaling mode in reader and writer" into pi-dev
Winson Chung [Fri, 6 Apr 2018 01:31:06 +0000 (18:31 -0700)]
Tighten up pending animations list.
- When we can't start an animation for a task, preemptively remove the
task from the animation list so that it does not erroneously report as
animating, or inherit the affect-sysui-flags behaviour.
Bug:
77223419
Test: atest FrameworksServicesTests:com.android.server.wm.RecentsAnimationControllerTest
Change-Id: I5cbc9e68d182cecacf10932a3220039dda5ebeed
Winson Chung [Fri, 6 Apr 2018 16:45:02 +0000 (16:45 +0000)]
Merge "Generalize the recents animation to work with non-home activity." into pi-dev
Selim Cinek [Fri, 6 Apr 2018 15:59:34 +0000 (15:59 +0000)]
Merge "Migrated the Person class to its own file" into pi-dev
Clara Bayarri [Tue, 27 Mar 2018 13:25:33 +0000 (14:25 +0100)]
Fix crash when modifying Selection
The root of this bug was in the fact that Selection.removeSelection
removes two spans, the start index and end index of the selection.
Each span removal triggers Editor#onSpanRemoved, which in turn tries
to set a selection. This meant that if we started with selection
(100, 120), then removeSpan(start) was called, so we had (-1, 120),
then the onSpanRemoved code tried to set a selection so set it to
(120, 120), then removeSpan(end) was called, ending up in (120, -1).
There are two stages to this fix
1. A lot of our code assumes that when either start or end selection
are larger than -1, both are valid. Therefore when we have one of them
out of sync, we crash. Fixed this assumption in all the places I found
2. We didn't have a mechanism to use FLAG_INTERMEDIATE when removing
spans, only when adding them, so this CL adds a remove with flags. This
allows us to not trigger onSpanRemoved when only one of the selection
indexes is removed.
Because this is an added method to an interface, the default just
calls the existing method. The new method is implemented in
SpannableStringInternal and SpannableStringBuilder to read
FLAG_INTERMEDIATE and avoid sending a spans changed event.
Selection.removeSelection then uses FLAG_INTERMEDIATE when removing
the first of the two selection spans.
Note that 2. would be enough to fix the current bug, but we want to
avoid other implementations of Spannable from crashing in the wild.
In general, it seems like a good idea to verify both selection indexes
are valid whenever they are used.
Bug:
72101848
Test: atest FrameworksCoreTests:SpannableStringBuilderTest
Test: atest FrameworksCoreTests:SpannableStringTest
Test: atest CtsWidgetTestCases:TextViewTest
Test: atest CtsWidgetTestCases:EditTextTest
Test: atest android.text.cts.SelectionTest (note new test as well)
Test: atest android.view.inputmethod.cts.BaseInputConnectionTest
Test: atest android.text.DynamicLayoutTest
Change-Id: I0d647fad152d0bef0f2115a46c3d17ebd8642281
TreeHugger Robot [Fri, 6 Apr 2018 15:48:43 +0000 (15:48 +0000)]
Merge "Added gamma correction to autobrightness." into pi-dev
Pankaj Kanwar [Fri, 6 Apr 2018 15:40:39 +0000 (15:40 +0000)]
Merge "Update Javadoc to clarify which calls are logged." into pi-dev
TreeHugger Robot [Fri, 6 Apr 2018 15:31:24 +0000 (15:31 +0000)]
Merge "Import translations. DO NOT MERGE" into pi-dev
Jorim Jaggi [Fri, 6 Apr 2018 15:31:21 +0000 (15:31 +0000)]
Merge "Inherit packageName/windowAnimations on TaskSnapshotSurface" into pi-dev