OSDN Git Service

android-x86/frameworks-base.git
6 years agoMerge "Update quick scrub tip according to the latest mock." into pi-dev
TreeHugger Robot [Tue, 29 May 2018 20:26:23 +0000 (20:26 +0000)]
Merge "Update quick scrub tip according to the latest mock." into pi-dev

6 years agoMerge "Add animation to running animation list before starting." into pi-dev
Chavi Weingarten [Tue, 29 May 2018 20:20:20 +0000 (20:20 +0000)]
Merge "Add animation to running animation list before starting." into pi-dev

6 years agoMerge "Fix for missing location icon" into pi-dev
TreeHugger Robot [Tue, 29 May 2018 20:09:21 +0000 (20:09 +0000)]
Merge "Fix for missing location icon" into pi-dev

6 years agoMerge "Fix regression in swiping over rotation button." into pi-dev
TreeHugger Robot [Tue, 29 May 2018 19:45:35 +0000 (19:45 +0000)]
Merge "Fix regression in swiping over rotation button." into pi-dev

6 years agoUpdate quick scrub tip according to the latest mock.
Tracy Zhou [Fri, 25 May 2018 07:04:57 +0000 (00:04 -0700)]
Update quick scrub tip according to the latest mock.

Mock: https://docs.google.com/presentation/d/1TCp1mREgsFAWq4hCnUaSRCpaqvDbzCVkN1mJuRMylIg/edit#slide=id.g3b3fe84fa7_15_0
Screenshot: https://screenshot.googleplex.com/HCVDEVHbdNU

Fixes: 79945911
Test: Manual test
Change-Id: I039e6d6be1b782281f7251a4bee1f3bf2bf03da3

6 years agoMerge "Resolve conflict between javadoc and CDD re: audio output" into pi-dev
Glenn Kasten [Tue, 29 May 2018 19:09:31 +0000 (19:09 +0000)]
Merge "Resolve conflict between javadoc and CDD re: audio output" into pi-dev

6 years agoMerge "Delete static versions of _book.yaml and _project.yaml." into pi-dev
Scott Main [Tue, 29 May 2018 18:24:35 +0000 (18:24 +0000)]
Merge "Delete static versions of _book.yaml and _project.yaml." into pi-dev

6 years agoMerge "Enable systemui_theme feature flag" into pi-dev
TreeHugger Robot [Tue, 29 May 2018 18:22:16 +0000 (18:22 +0000)]
Merge "Enable systemui_theme feature flag" into pi-dev

6 years agoDelete static versions of _book.yaml and _project.yaml.
Scott Main [Thu, 3 May 2018 20:47:46 +0000 (13:47 -0700)]
Delete static versions of _book.yaml and _project.yaml.

These files are used by devsite only, so are maintained in piper.

bug: 79155333
test: make ds-docs (human review)

Change-Id: I5d5662a2a401872a669dba0916b20a79bcfca7ae
(cherry picked from commit 9e64abe7d79ef6abdd9c2d65e5f3bead9138cdb4)

6 years agoMerge "Catch IllegalArgumentException when calling LocationManager#requestLocationUpd...
Yu-Han Yang [Tue, 29 May 2018 18:02:31 +0000 (18:02 +0000)]
Merge "Catch IllegalArgumentException when calling LocationManager#requestLocationUpdate" into pi-dev

6 years agoMerge "Remove direct-share target row animations and limit to one row." into pi-dev
Daniel Sandler [Tue, 29 May 2018 16:46:57 +0000 (16:46 +0000)]
Merge "Remove direct-share target row animations and limit to one row." into pi-dev

6 years agoMerge "WM: Make maxAspectRatio work with display cutouts" into pi-dev
TreeHugger Robot [Tue, 29 May 2018 15:25:45 +0000 (15:25 +0000)]
Merge "WM: Make maxAspectRatio work with display cutouts" into pi-dev

6 years agoWM: Make maxAspectRatio work with display cutouts
Adrian Roos [Mon, 28 May 2018 16:55:38 +0000 (18:55 +0200)]
WM: Make maxAspectRatio work with display cutouts

Fixes an issue where the max aspect ratio was not correctly calculated
if there was a display cutout.

The issue was that the max aspect ratio logic assumed that nothing ever
applies a top inset (n.b. the status bar is ignored for this inset).
This is no longer true with display cutouts, which
cut into the app bounds from the top.

To make things work, we now need to grow the bounds for the app window
by that inset. Later on, the top part will be trimmed again for the
bounds reported to the app. Note that we cannot outright discard the
top part, or colored bars would cease to work.

Change-Id: I53925196a6a41736fc4748b12bbc3b8a9b0d174b
Fixes: 80248462
Test: atest AspectRatioTests

6 years agoMerge "Fixes a NPE in search manager in slice CTS tests." into pi-dev
TreeHugger Robot [Tue, 29 May 2018 15:18:04 +0000 (15:18 +0000)]
Merge "Fixes a NPE in search manager in slice CTS tests." into pi-dev

6 years agoRemove direct-share target row animations and limit to one row.
Dan Sandler [Wed, 23 May 2018 06:13:51 +0000 (02:13 -0400)]
Remove direct-share target row animations and limit to one row.

The animation---which was responsible for causing relayouts
that would in turn bind views, which involved package
manager roundtrips---would lock out interaction with the rest of
the share sheet for at least 400ms while the animation ran
(often much longer if services were slow to start or respond).

Now the main UI is never blocked, and direct share targets
can take as long as they like (up to 2sec) before appearing.

It's really fast now, basically.

Bug: 67622422
Bug: 63521992
Test: atest com.android.internal.app.ChooserActivityTest
Change-Id: I21826e282226f2b2ce6d3d1b5862dbfc449f5918

6 years agoFix for missing location icon
Amith Yamasani [Tue, 29 May 2018 03:50:48 +0000 (20:50 -0700)]
Fix for missing location icon

OpEntry.duration was being used to indicate that the
operation was still running if -1 is returned. A recent
change caused a regression.

Adding a new mRunning field in OpEntry to explicitly
hold the running state, even when partial duration is
updated.

Change-Id: Ib29f4c903f990aaa202e84f964959aedfc24abdb
Fixes: 80242152
Test: atest FrameworksServicesTests:AppOpsActiveWatcherTest
Test: Launch maps and verify the location icon is visible
      in the status bar

6 years agoMerge "WindowInsets: Never dispatch negative insets" into pi-dev
Adrian Roos [Mon, 28 May 2018 14:40:20 +0000 (14:40 +0000)]
Merge "WindowInsets: Never dispatch negative insets" into pi-dev

6 years agoMerge "Dispatch volume key event when mHandleVolumeKeysInWM is set" into pi-dev
Hongwei Wang [Sat, 26 May 2018 23:55:19 +0000 (23:55 +0000)]
Merge "Dispatch volume key event when mHandleVolumeKeysInWM is set" into pi-dev

6 years agoMerge "Dump proxy debug info when exceeding proxy limit." into pi-dev
TreeHugger Robot [Sat, 26 May 2018 09:05:14 +0000 (09:05 +0000)]
Merge "Dump proxy debug info when exceeding proxy limit." into pi-dev

6 years agoCatch IllegalArgumentException when calling
Yu-Han Yang [Thu, 24 May 2018 17:29:39 +0000 (10:29 -0700)]
Catch IllegalArgumentException when calling
LocationManager#requestLocationUpdate

- Cannot depend on LocationManager#isProviderEnabled, since it always returns
false for FLP.

Bug: 80199046
Change-Id: I9c85b8a9468bceca0620c5aff16655ed633ee36b
Fixes: 80199046
Test: Manually added a CTS test to trigger the flow in AOSP build on
device, and successfully caught the exception when requesting location
updates from NLP.

6 years agoMerge "Added TestApi to ActivityInfo.isTranslucentOrFloating" into pi-dev
TreeHugger Robot [Sat, 26 May 2018 02:23:25 +0000 (02:23 +0000)]
Merge "Added TestApi to ActivityInfo.isTranslucentOrFloating" into pi-dev

6 years agoFix regression in swiping over rotation button.
Winson Chung [Sat, 26 May 2018 01:25:52 +0000 (18:25 -0700)]
Fix regression in swiping over rotation button.

- Only send the hit target for visible buttons, otherwise we will defer
  starting the recents animation when swiping over them even if they are
  invisible.

Bug: 80320221
Test: Swipe up over hidden rotation button, ensure we don't defer the
      animation start

Change-Id: Ie6126eb25ca6cdda1dce2dccec92d83b8aca0563

6 years agoMerge "Tweak quickscrub bar visuals" into pi-dev
Winson Chung [Sat, 26 May 2018 00:26:59 +0000 (00:26 +0000)]
Merge "Tweak quickscrub bar visuals" into pi-dev

6 years agoAdd animation to running animation list before starting.
chaviw [Fri, 25 May 2018 23:18:42 +0000 (16:18 -0700)]
Add animation to running animation list before starting.

The animation needs to be added to the animation list before starting
to ensure it's in the list before onAnimationEnd is called. Specifically,
this can happen if the duration is 0 since the animation will complete
very quickly. If that occurs, the animation will be added to the list
after it's been "removed" which means there will continue to be a reference
to that animation even after it's completed.

Also fix a few other issues:
1. Don't create a dim layer if stopDim is called. This causes excess
layers to be created, just so they can be destroyed.
2. Add try/catch to dim layer create so the system doesn't crash if the
layer fails to create.

Test: Enter split screen and move divider so dim layers are show and
hidden. There are no longer excess dim layers being created and leashes
are being properly dereferenced.
Fixes: 80206408

Change-Id: I7198bd5e972fce32633869697a4d26f51e675d48

6 years agoMerge "Add cleartextTrafficPermitted to MediaFrameworkTest" into pi-dev
TreeHugger Robot [Fri, 25 May 2018 23:01:53 +0000 (23:01 +0000)]
Merge "Add cleartextTrafficPermitted to MediaFrameworkTest" into pi-dev

6 years agoMerge "Final cleanups to permission slices" into pi-dev
TreeHugger Robot [Fri, 25 May 2018 22:10:20 +0000 (22:10 +0000)]
Merge "Final cleanups to permission slices" into pi-dev

6 years agoMerge "Fix IME displayed behind the notification shade" into pi-dev
Selim Cinek [Fri, 25 May 2018 21:33:42 +0000 (21:33 +0000)]
Merge "Fix IME displayed behind the notification shade" into pi-dev

6 years agoMerge "DO NOT MERGE Update volume dialog colors" into pi-dev
TreeHugger Robot [Fri, 25 May 2018 21:05:55 +0000 (21:05 +0000)]
Merge "DO NOT MERGE Update volume dialog colors" into pi-dev

6 years agoTweak quickscrub bar visuals
Winson Chung [Thu, 24 May 2018 21:21:57 +0000 (14:21 -0700)]
Tweak quickscrub bar visuals

- Thicker asset, scale track slightly on gesture start/end

Bug: 79945202
Test: Quickscrub and see changes
Change-Id: Ic7ae11981ae79cd909d919a326ecc5126cbb399f

6 years agoMerge "Apply tint to the Volume Dialog primary and supplement icon" into pi-dev
TreeHugger Robot [Fri, 25 May 2018 20:16:54 +0000 (20:16 +0000)]
Merge "Apply tint to the Volume Dialog primary and supplement icon" into pi-dev

6 years agoMerge "Fixed the behavior of group conversations when targeting P" into pi-dev
Selim Cinek [Fri, 25 May 2018 20:06:52 +0000 (20:06 +0000)]
Merge "Fixed the behavior of group conversations when targeting P" into pi-dev

6 years agoDO NOT MERGE Update volume dialog colors
Julia Reynolds [Wed, 23 May 2018 13:45:53 +0000 (09:45 -0400)]
DO NOT MERGE Update volume dialog colors

Test: manual
Fixes: 79699643

Change-Id: I73bde7f30a9aad5b7c084d37987f808df342cc75

6 years agoFinal cleanups to permission slices
Jason Monk [Fri, 25 May 2018 19:13:16 +0000 (15:13 -0400)]
Final cleanups to permission slices

 - Add icons to the right and shortcut modes
 - Add color
 - Make sure dialogs are secure

Test: manual
Bug: 79960669
Change-Id: I6d251b0ea5bd3c1b3eed32b184e4aae22c52ffb5

6 years agoFixes a NPE in search manager in slice CTS tests.
Steven Wu [Fri, 25 May 2018 19:20:10 +0000 (15:20 -0400)]
Fixes a NPE in search manager in slice CTS tests.

Test: atest CtsSliceTestCases
Change-Id: I8d25dd5c216a4e2fa99b2a32bce689bee767dcfa
Fixes: 76211625

6 years agoMerge "Only user whitelist gets allow_while_idle_unrestricted" into pi-dev
TreeHugger Robot [Fri, 25 May 2018 19:17:33 +0000 (19:17 +0000)]
Merge "Only user whitelist gets allow_while_idle_unrestricted" into pi-dev

6 years agoAdd cleartextTrafficPermitted to MediaFrameworkTest
Robert Shih [Fri, 25 May 2018 18:42:22 +0000 (11:42 -0700)]
Add cleartextTrafficPermitted to MediaFrameworkTest

Bug: 75276616
Test: this
Change-Id: I520950a148658e9f1602e1b4657dd0273bdaf0e2

6 years agoMerge "Do not truncate onboarding tip text." into pi-dev
TreeHugger Robot [Fri, 25 May 2018 18:51:40 +0000 (18:51 +0000)]
Merge "Do not truncate onboarding tip text." into pi-dev

6 years agoDump proxy debug info when exceeding proxy limit.
Martijn Coenen [Fri, 25 May 2018 17:28:26 +0000 (19:28 +0200)]
Dump proxy debug info when exceeding proxy limit.

If a process gets killed because it sends too many proxies,
dump proxy debug info so we can see what types of interfaces
it sends.

Bug: 71353150
Test: builds, output generated
Change-Id: I3a7787cb3fa73b0b4ad223b18cd79f44e22b9ef5

6 years agoMerge "Support rtl for quick scrub onboarding text." into pi-dev
TreeHugger Robot [Fri, 25 May 2018 18:06:07 +0000 (18:06 +0000)]
Merge "Support rtl for quick scrub onboarding text." into pi-dev

6 years agoFix IME displayed behind the notification shade
sanryhuang [Fri, 25 May 2018 04:34:31 +0000 (12:34 +0800)]
Fix IME displayed behind the notification shade

The Back key isn't dispatched to IME. Refine the logic of onKeyPreIme.

Test: manual test
Test: atest
Change-Id: I6cf5402e70e91d74e5843beb390b306146159e4d
Fixes:80250543

6 years agoAdded TestApi to ActivityInfo.isTranslucentOrFloating
Wale Ogunwale [Fri, 25 May 2018 01:25:25 +0000 (18:25 -0700)]
Added TestApi to ActivityInfo.isTranslucentOrFloating

This would be use to determine the right activity state during CTS
test for products that have windowSwipeToDismiss set.

Also, dump ActivityRecord.fullscreen to proto for the same reason.

Bug: 76207986
Bug: 79167358
Test: atest CtsActivityManagerDeviceTestCases:ActivityLifecycleTests
Test: atest CtsActivityManagerDeviceTestCases:ActivityManagerAssistantStackTests
Change-Id: Iadc088e9129be088b8a083ebbafd8d20fe26b673

6 years agoFixed the behavior of group conversations when targeting P
Selim Cinek [Wed, 23 May 2018 23:46:05 +0000 (16:46 -0700)]
Fixed the behavior of group conversations when targeting P

Fixes an issue where the group conversation heuristic was still
applied even when the app is targeting P. We're now following
the isGroupConversation completely and only do the migration
for apps targeting < P.

Change-Id: I471d58e8a8f5e6270f0dcce8691d08a2bdd1c582
Fixes: 78450835
Test: add messaging notification, observe correct display

6 years agoMerge "Fix monkey crash in smart selection animation" into pi-dev
TreeHugger Robot [Fri, 25 May 2018 15:59:07 +0000 (15:59 +0000)]
Merge "Fix monkey crash in smart selection animation" into pi-dev

6 years agoMerge "Camera: Clarify multi-camera id selection logic" into pi-dev
TreeHugger Robot [Fri, 25 May 2018 15:27:43 +0000 (15:27 +0000)]
Merge "Camera: Clarify multi-camera id selection logic" into pi-dev

6 years agoFix monkey crash in smart selection animation
Mihai Popa [Fri, 25 May 2018 10:57:17 +0000 (11:57 +0100)]
Fix monkey crash in smart selection animation

In Id65443e93d277c106ea955c867d39e94192cc55d we fixed a monkey crash
happening when the smart selected text had changed while the smart
selection animation was running. However, the change introduced a new
crash, happening when the smart selection result was null. This CL fixes
it, and lets startSelectionActionMode run even when the result is null,
as there seems to be some logic there which should happen in this case.

Bug: 80244201
Test: none
Change-Id: I7f0304446dec85578bdcd5011d2e9ea2737d3c36
(cherry picked from commit a9d27ea8692dbf6c6def6bd21754af0ad67d1675)
Merged-in: I7f0304446dec85578bdcd5011d2e9ea2737d3c36

6 years agoMerge "Add one telephony API to light grey." into pi-dev
Nicolas Geoffray [Fri, 25 May 2018 13:46:31 +0000 (13:46 +0000)]
Merge "Add one telephony API to light grey." into pi-dev

6 years agoMerge "More light grey apis." into pi-dev
Nicolas Geoffray [Fri, 25 May 2018 13:30:19 +0000 (13:30 +0000)]
Merge "More light grey apis." into pi-dev

6 years agoMerge "Add SharedPreferencesImpl;->startLoadFromDisk()V to light grey." into pi-dev
Nicolas Geoffray [Fri, 25 May 2018 13:29:55 +0000 (13:29 +0000)]
Merge "Add SharedPreferencesImpl;->startLoadFromDisk()V to light grey." into pi-dev

6 years agoWindowInsets: Never dispatch negative insets
Adrian Roos [Thu, 24 May 2018 16:20:51 +0000 (18:20 +0200)]
WindowInsets: Never dispatch negative insets

Bug: 80204753
Test: atest ViewRootImplTest
Change-Id: Idace95ae57c6a3a1667b95ce8c3ac7d2bfe06f94

6 years agoMerge "Add more light grey APIs." into pi-dev
TreeHugger Robot [Fri, 25 May 2018 10:49:18 +0000 (10:49 +0000)]
Merge "Add more light grey APIs." into pi-dev

6 years agoMore light grey apis.
Nicolas Geoffray [Fri, 25 May 2018 09:46:32 +0000 (10:46 +0100)]
More light grey apis.

bug: 80270434
Test: m
Change-Id: I4877a782f9f8c0599de189d28df876d60d2c7b3d

6 years agoAdd more light grey APIs.
Nicolas Geoffray [Fri, 25 May 2018 08:10:55 +0000 (09:10 +0100)]
Add more light grey APIs.

bug: 80256659
Test: m
Change-Id: Ic2a0ecffcd039cb5474625e39264714b9eed768a

6 years agoMerge "New Autofill field: FIELD_AUTOFILL_SESSION_ID" into pi-dev
TreeHugger Robot [Fri, 25 May 2018 08:57:23 +0000 (08:57 +0000)]
Merge "New Autofill field: FIELD_AUTOFILL_SESSION_ID" into pi-dev

6 years agoAdd SharedPreferencesImpl;->startLoadFromDisk()V to light grey.
Nicolas Geoffray [Fri, 25 May 2018 08:01:06 +0000 (09:01 +0100)]
Add SharedPreferencesImpl;->startLoadFromDisk()V to light grey.

bug: 80091112
Test: m
Change-Id: Ia7c0cf66408fb241b029778d248dd3b7e324727a

6 years agoMerge "Add some telephony API to light grey." into pi-dev
Nicolas Geoffray [Fri, 25 May 2018 07:50:22 +0000 (07:50 +0000)]
Merge "Add some telephony API to light grey." into pi-dev

6 years agoNew Autofill field: FIELD_AUTOFILL_SESSION_ID
Felipe Leme [Thu, 24 May 2018 17:41:48 +0000 (10:41 -0700)]
New Autofill field: FIELD_AUTOFILL_SESSION_ID

This field contains the autofill session id (Thank You, Captain Obvious!), which
is useful to correlate autofill metrics that are not logged on
AUTOFILL_REQUEST.

Test: atest CtsAutoFillServiceTestCases # to make sure it didn't break anything
Test: manually run some test and watched
      'adb shell logcat -b events | grep sysui'. Example:
     [757,913,758,4,806,android.autofillservice.cts,871,android.autofillservice.cts.LoginActivity,914,2,915,2,1456,-2045861404

Fixes: 80093094

Merged-In: If4b1c9ab616b2ba580745096894997eb7edb3e34
Change-Id: If4b1c9ab616b2ba580745096894997eb7edb3e34

6 years agoSupport rtl for quick scrub onboarding text.
Tracy Zhou [Fri, 25 May 2018 05:21:06 +0000 (22:21 -0700)]
Support rtl for quick scrub onboarding text.

Change-Id: I1f2073e1c24a24aa5ddfd061a6e8b0eaef40335c
Fixes: 80257508
Test: Manual test

6 years agoMerge "Add missing copyright messages Test: Tested on Mojave Bug: 80266597 Change...
TreeHugger Robot [Fri, 25 May 2018 04:24:29 +0000 (04:24 +0000)]
Merge "Add missing copyright messages Test: Tested on Mojave Bug: 80266597 Change-Id: I1a2e712adabe8872f7c440e8e2c15787aea7aa98" into pi-dev

6 years agoOnly user whitelist gets allow_while_idle_unrestricted
Suprabh Shukla [Fri, 25 May 2018 01:38:50 +0000 (18:38 -0700)]
Only user whitelist gets allow_while_idle_unrestricted

Due to earlier refactorings, now allow-in-power-save-except-idle apps
are getting the flag ALLOW_WHILE_IDLE_UNRESTRICTED, which should not
happen. Restricting to user whitelisted app ids as was the case in O.

Test: atest com.android.server.AppStateTrackerTest
atest android.alarmmanager.cts.AppStandbyTests
Also, manually,
adb shell cmd deviceidle whitelist +<package-name>
Then verify the app id appears in App state tracker dump in
adb shell dumpsys alarm

Bug: 74773710
Change-Id: I6fdce33446e1374c6672ce98769aa8b5844effa9

6 years agoEnable systemui_theme feature flag
Lucas Dupin [Fri, 25 May 2018 03:04:30 +0000 (20:04 -0700)]
Enable systemui_theme feature flag

Turning flag on even though translations are not ready in order to
expose feature and make sure it was properly tested before release

Change-Id: I10f515b1bdcae45d1ed6d6d293afe1853f44dc02
Bug: 63903361
Fixes: 75498812
Test: manual

6 years agoMerge "Follow supportlib changes in SliceManager" into pi-dev
Jason Monk [Fri, 25 May 2018 01:21:35 +0000 (01:21 +0000)]
Merge "Follow supportlib changes in SliceManager" into pi-dev

6 years agoMerge "Added the class name of activity being autofilled on (most) autofill metrics...
TreeHugger Robot [Fri, 25 May 2018 00:55:42 +0000 (00:55 +0000)]
Merge "Added the class name of activity being autofilled on (most) autofill metrics." into pi-dev

6 years agoAdd missing copyright messages
Aarthi Balachander [Fri, 25 May 2018 00:34:10 +0000 (17:34 -0700)]
Add missing copyright messages
Test: Tested on Mojave
Bug: 80266597
Change-Id: I1a2e712adabe8872f7c440e8e2c15787aea7aa98

6 years agoApply tint to the Volume Dialog primary and supplement icon
Lin Guo [Fri, 25 May 2018 00:31:50 +0000 (17:31 -0700)]
Apply tint to the Volume Dialog primary and supplement icon

BUG: 79437820
Test: manual
Change-Id: I7bbb70e83ea4825977f9108f207327cc7b0e3a22

6 years agoMerge "Merged many autofill session metrics into AUTOFILL_REQUEST:" into pi-dev
TreeHugger Robot [Fri, 25 May 2018 00:18:41 +0000 (00:18 +0000)]
Merge "Merged many autofill session metrics into AUTOFILL_REQUEST:" into pi-dev

6 years agoMerge "Tweak new rotate icon and motion" into pi-dev
TreeHugger Robot [Fri, 25 May 2018 00:13:35 +0000 (00:13 +0000)]
Merge "Tweak new rotate icon and motion" into pi-dev

6 years agoMerge "Tweak exemption for sync requests made by FG apps" into pi-dev
Makoto Onuki [Thu, 24 May 2018 23:22:09 +0000 (23:22 +0000)]
Merge "Tweak exemption for sync requests made by FG apps" into pi-dev

6 years agoMerge "Fix boundary condition of showing quickscrub tip after dismissal." into pi-dev
TreeHugger Robot [Thu, 24 May 2018 23:18:19 +0000 (23:18 +0000)]
Merge "Fix boundary condition of showing quickscrub tip after dismissal." into pi-dev

6 years agoDo not truncate onboarding tip text.
Tracy Zhou [Thu, 24 May 2018 17:56:38 +0000 (10:56 -0700)]
Do not truncate onboarding tip text.

Change-Id: I7ecc4a4dae7fc89d9287372a29c63914f411c412
Fixes: 80244379
Test: manual test

6 years agoMerge "Put a little space between wifi and data type" into pi-dev
TreeHugger Robot [Thu, 24 May 2018 22:12:16 +0000 (22:12 +0000)]
Merge "Put a little space between wifi and data type" into pi-dev

6 years agoFix boundary condition of showing quickscrub tip after dismissal.
Tracy Zhou [Thu, 24 May 2018 21:41:34 +0000 (14:41 -0700)]
Fix boundary condition of showing quickscrub tip after dismissal.

It's possible that user opens overview 11 times after first dismissal of
Quickscrub tip before going to an app and our current condition check would fail. Change
the condition of showing swipe-up tip for consistency.

Change-Id: If58f9b6f2edfbdccf68a2c44e0b3b4b489862734
Fixes: 80256933
Test: Manual test

6 years agoTweak new rotate icon and motion
Mike Digman [Thu, 24 May 2018 18:06:05 +0000 (11:06 -0700)]
Tweak new rotate icon and motion

Slightly reduce the icon size to decrease its size relative to the new
back button. Use scaleX attribute to ensure arrows always point in
direction of motion. Fix intro animation bug where rippling would only
happen for first three loops.

Bug: 79930974
Test: manual
Change-Id: I6b8d4acd4c1537649d0120663169e7a1fd4db7fb

6 years agoAdded the class name of activity being autofilled on (most) autofill metrics.
Felipe Leme [Tue, 22 May 2018 21:56:15 +0000 (14:56 -0700)]
Added the class name of activity being autofilled on (most) autofill metrics.

Test: atest CtsAutoFillServiceTestCases # to make sure it didn't break anything
Test: manually run some test and watched
      'adb shell logcat -b events | grep sysui'

Fixes: 80151641

Change-Id: I5b83e6ceb549a641d10c39bbfd4f24d0a43d1a23

6 years agoMerge "Update location icons (qs + status)" into pi-dev
TreeHugger Robot [Thu, 24 May 2018 20:50:41 +0000 (20:50 +0000)]
Merge "Update location icons (qs + status)" into pi-dev

6 years agoMerge "Add tuning to SystemUI to draw into a DisplayCutout's bounds" into pi-dev
TreeHugger Robot [Thu, 24 May 2018 20:50:35 +0000 (20:50 +0000)]
Merge "Add tuning to SystemUI to draw into a DisplayCutout's bounds" into pi-dev

6 years agoMerge "Revert "Revert "Write UsageEvents Parcel data as a Blob""" into pi-dev
Michael Wachenschwanz [Thu, 24 May 2018 20:45:34 +0000 (20:45 +0000)]
Merge "Revert "Revert "Write UsageEvents Parcel data as a Blob""" into pi-dev

6 years agoMerge "Added display null check to ActivityStackSupervisor.getNextFocusableStackLocke...
TreeHugger Robot [Thu, 24 May 2018 20:41:14 +0000 (20:41 +0000)]
Merge "Added display null check to ActivityStackSupervisor.getNextFocusableStackLocked" into pi-dev

6 years agoMerge "Update some app permission icons" into pi-dev
TreeHugger Robot [Thu, 24 May 2018 20:17:14 +0000 (20:17 +0000)]
Merge "Update some app permission icons" into pi-dev

6 years agoMerge "Flip flag to enable vibration on wireless charging" into pi-dev
TreeHugger Robot [Thu, 24 May 2018 20:05:54 +0000 (20:05 +0000)]
Merge "Flip flag to enable vibration on wireless charging" into pi-dev

6 years agoMerge "On configuration change setup screen decorations" into pi-dev
TreeHugger Robot [Thu, 24 May 2018 20:05:49 +0000 (20:05 +0000)]
Merge "On configuration change setup screen decorations" into pi-dev

6 years agoMerge "Revert "WallpaperColors hint computation"" into pi-dev
TreeHugger Robot [Thu, 24 May 2018 20:00:27 +0000 (20:00 +0000)]
Merge "Revert "WallpaperColors hint computation"" into pi-dev

6 years agoMerge "Hide system apps until installed (1/2)" into pi-dev
TreeHugger Robot [Thu, 24 May 2018 18:01:43 +0000 (18:01 +0000)]
Merge "Hide system apps until installed (1/2)" into pi-dev

6 years agoMerge "Destroy networks as soon as they are disconnected." into pi-dev
TreeHugger Robot [Thu, 24 May 2018 17:57:46 +0000 (17:57 +0000)]
Merge "Destroy networks as soon as they are disconnected." into pi-dev

6 years agoMerge "DngCreator: Use new LENS_DISTORTION result field if available." into pi-dev
TreeHugger Robot [Thu, 24 May 2018 17:47:10 +0000 (17:47 +0000)]
Merge "DngCreator: Use new LENS_DISTORTION result field if available." into pi-dev

6 years agoRevert "Revert "Write UsageEvents Parcel data as a Blob""
Michael Wachenschwanz [Thu, 24 May 2018 17:21:02 +0000 (17:21 +0000)]
Revert "Revert "Write UsageEvents Parcel data as a Blob""

This reverts commit 8520e569980c8b2bbca0872c906d057165121012.

Reason for revert: Bug Fixed
Bug:79860717
Bug:80215357

Change-Id: Ibaabe3c6bab72f417b24121a91ec5f953ad18ff7

6 years agoMerged many autofill session metrics into AUTOFILL_REQUEST:
Felipe Leme [Mon, 21 May 2018 18:18:46 +0000 (11:18 -0700)]
Merged many autofill session metrics into AUTOFILL_REQUEST:

- AUTOFILL_UI_LATENCY
- AUTOFILL_AUTHENTICATED;
- AUTOFILL_DATASET_AUTHENTICATED
- AUTOFILL_INVALID_AUTHENTICATION
- AUTOFILL_INVALID_DATASET_AUTHENTICATION

At least one AUTOFILL_REQUEST is created on each session; additional ones are
created for each additional request made to the service (which is tracked by
FIELD_AUTOFILL_REQUEST_INDEX).

Also:
- Added TYPE_CLOSE to indicate a timeout waiting for the service response.
- Added FIELD_AUTOFILL_REQUEST_ORDINAL to indicate the order of the request in
  the session.
- Added FIELD_AUTOFILL_NUMBER_REQUESTS on AUTOFILL_SESSION_FINISHED.
- Created an AUTOFILL_FIELD_FLAGS to avoid conflict with FIELD_FLAGS.

Test: atest CtsAutoFillServiceTestCases # to make sure it didn't break anything
Test: manually run some test and watched the result of
      'adb shell logcat -b events | grep sysui', as described below.

1) LoginActivityTest#testAutoFillNoDatasets:

[757,907,758,10,806,android.autofillservice.cts,908,android.autofillservice.cts,909,-1,1454,1]
[757,919,758,4,806,android.autofillservice.cts,908,android.autofillservice.cts,1455,1]

Where 907=AUTOFILL_REQUEST, 919=AUTOFILL_SESSION_FINISHED,
1454=FIELD_AUTOFILL_REQUEST_ORDINAL, 1455=FIELD_AUTOFILL_NUMBER_REQUESTS,
758:10 = TYPE_SUCCESS, 909 = FIELD_AUTOFILL_NUM_DATASETS (-1 == null response)

2) LoginActivityTest#testAutoFillTwoDatasetsSameNumberOfFields:

[757,907,758,10,806,android.autofillservice.cts,908,android.autofillservice.cts,909,2,1145,60,1454,1]

Where 1145=FIELD_AUTOFILL_DURATION (60ms UI latency)

3) LoginActivityTest#testCancellationSignalCalledAfterTimeout:

[757,907,758,2,806,android.autofillservice.cts,908,android.autofillservice.cts,1454,1]

Where 758:2 = TYPE_CLOSE (timeout)

4) LoginActivityTest#testAutofillManuallyOneDataset:

[757,907,758,10,806,android.autofillservice.cts,908,android.autofillservice.cts,909,1,1145,67,1452,1,1454,1]

Where 1452=FIELD_AUTOFILL_FLAGS and 1=FLAG_MANUAL_REQUEST

5) FillEventHistoryTest#testNoEvents_whenServiceReturnsFailure:

[757,907,758,10,806,android.autofillservice.cts,908,android.autofillservice.cts,909,1,1145,48,1454,1]
[757,907,758,11,806,android.autofillservice.cts,908,android.autofillservice.cts,1454,2]
[757,919,758,4,806,android.autofillservice.cts,908,android.autofillservice.cts,1455,2]

Where 758:11 = TYPE_FAILURE

6) AuthenticationTest#testFillResponseAuthJustOneField

[757,907,758,10,806,android.autofillservice.cts,908,android.autofillservice.cts,909,0,1145,91,1453,912,1454,1]

Where 1453:912 is FIELD_AUTOFILL_AUTHENTICATION_STATUS = AUTOFILL_AUTHENTICATED

7) AuthenticationTest#testDatasetAuthTwoDatasets

[757,907,758,10,806,android.autofillservice.cts,908,android.autofillservice.cts,909,2,1145,64,1453,1126,1454,1]

Where 1453:1126 is FIELD_AUTOFILL_AUTHENTICATION_STATUS =
                   AUTOFILL_DATASET_AUTHENTICATED

8) AuthenticationTest#testFillResponseAuthServiceHasNoData
[757,907,758,10,806,android.autofillservice.cts,908,android.autofillservice.cts,909,0,1145,49,1453,1128,1454,1]

Where 1453:1128 is FIELD_AUTOFILL_AUTHENTICATION_STATUS =
                   AUTOFILL_INVALID_AUTHENTICATION

9) VirtualContainerActivityCompatModeTest#testAutofillSync

[757,907,758,10,806,android.autofillservice.cts,908,android.autofillservice.cts,909,1,1145,53,1414,1,1454,1]
[757,919,758,4,806,android.autofillservice.cts,908,android.autofillservice.cts,1414,1,1455,1]

Where 1414 is FIELD_AUTOFILL_COMPAT_MODE

10) FieldsClassificationTest#testHit_manyUserData_manyDetectableFields

[757,907,758,10,806,android.autofillservice.cts,908,android.autofillservice.cts,909,0,1271,2,1454,1]
Where 1271 is FIELD_AUTOFILL_NUM_FIELD_CLASSIFICATION_IDS

11)PartitionedActivityTest#testAutofill4PartitionsMixManualAndAuto

[757,907,758,10,806,android.autofillservice.cts,908,android.autofillservice.cts,909,1,1145,109,1454,1]
[757,907,758,10,806,android.autofillservice.cts,908,android.autofillservice.cts,909,1,1452,1,1454,2]
[757,907,758,10,806,android.autofillservice.cts,908,android.autofillservice.cts,909,1,1454,3]
[757,907,758,10,806,android.autofillservice.cts,908,android.autofillservice.cts,909,1,1452,1,1454,4]
[757,919,758,4,806,android.autofillservice.cts,908,android.autofillservice.cts,1455,4]

Bug: 80093094
Fixes: 80095814

Merged-In: I87424834fc925a3bcba410eec5aa32fcd6253367
Change-Id: I87424834fc925a3bcba410eec5aa32fcd6253367

6 years agoRevert "WallpaperColors hint computation"
Lucas Dupin [Thu, 24 May 2018 16:33:14 +0000 (16:33 +0000)]
Revert "WallpaperColors hint computation"

This reverts commit c50f47d970b474371938f33e46b13ae2dd040df0.

Fixes: 79465234
Reason for revert: Google still does it using private APIs and apps were relying on this behavior, not good for the ecosystem.

Change-Id: I62e2b4cd1e6e562fcdd89c97e599bcdade83381a

6 years agoMerge "Use TCM context if application context is unavailble." into pi-dev
TreeHugger Robot [Thu, 24 May 2018 16:30:16 +0000 (16:30 +0000)]
Merge "Use TCM context if application context is unavailble." into pi-dev

6 years agoMerge "Revert "Write UsageEvents Parcel data as a Blob"" into pi-dev
Michael Wachenschwanz [Thu, 24 May 2018 15:54:05 +0000 (15:54 +0000)]
Merge "Revert "Write UsageEvents Parcel data as a Blob"" into pi-dev

6 years agoRevert "Write UsageEvents Parcel data as a Blob"
Michael Wachenschwanz [Thu, 24 May 2018 15:28:24 +0000 (15:28 +0000)]
Revert "Write UsageEvents Parcel data as a Blob"

This reverts commit f5bae21c5efcd51c0b3fb29942c02c00b896fccf.

Reason for revert:
Bug: 79860717
Fixes: 80215357

Change-Id: I0768e5ce0a95afe7ff091c0035335437bb33c46c

6 years agoOn configuration change setup screen decorations
Beverly [Thu, 24 May 2018 13:25:45 +0000 (09:25 -0400)]
On configuration change setup screen decorations

Test: developer options > set emulated cutout
Change-Id: I6418ad8226955264d6197491d772954491aba9ac
Fixes: 80230317

6 years agoAdd one telephony API to light grey.
Nicolas Geoffray [Thu, 24 May 2018 14:32:07 +0000 (15:32 +0100)]
Add one telephony API to light grey.

bug: 80131205
Test: m
Change-Id: I70c0474e3ddedddbc25c5046e1695667a1283131

6 years agoAdd some telephony API to light grey.
Nicolas Geoffray [Thu, 24 May 2018 14:26:55 +0000 (15:26 +0100)]
Add some telephony API to light grey.

bug: 80149150
Test: m
Change-Id: I625f0721d4cff80c2f920a03f0058f99b729a950

6 years agoUse TCM context if application context is unavailble.
Michael Wright [Thu, 24 May 2018 12:41:50 +0000 (13:41 +0100)]
Use TCM context if application context is unavailble.

In TextClassificationManager, we use the application context to reduce
the likelihood of leaking the underlying Activity. Unfortunately, some
places (e.g. auto, system_server) don't actually provide us an
application context, so we need to fall back to whatever context was
passed in to TCM in the first place.

Bug: 80188317
Test: none
Change-Id: Ib4b2e6ed543d3ed56cefd8f56717855158cdc0fe

6 years agoMerge "Add camera APIs to light grey." into pi-dev
Nicolas Geoffray [Thu, 24 May 2018 12:31:13 +0000 (12:31 +0000)]
Merge "Add camera APIs to light grey." into pi-dev

6 years agoMerge "More greylist additions from bug scrape." into pi-dev
TreeHugger Robot [Thu, 24 May 2018 12:17:41 +0000 (12:17 +0000)]
Merge "More greylist additions from bug scrape." into pi-dev

6 years agoMore greylist additions from bug scrape.
Mathew Inwood [Thu, 24 May 2018 10:37:56 +0000 (11:37 +0100)]
More greylist additions from bug scrape.

Test: m
Bug: 64382372
Bug: 79950834
Bug: 80004540
Bug: 80109977
Bug: 80112684
Bug: 80204728
Change-Id: I8343f0d467a5d1ecd4e00abcf44871089e8453b3

6 years agoMerge "Differentiate MediaBrowsers in a process for MediaBrowserService" into pi-dev
TreeHugger Robot [Thu, 24 May 2018 09:59:28 +0000 (09:59 +0000)]
Merge "Differentiate MediaBrowsers in a process for MediaBrowserService" into pi-dev

6 years agoAdded display null check to ActivityStackSupervisor.getNextFocusableStackLocked
Wale Ogunwale [Thu, 24 May 2018 07:32:23 +0000 (00:32 -0700)]
Added display null check to ActivityStackSupervisor.getNextFocusableStackLocked

Don't try to process display that is already removed from the system

Change-Id: Idaef23ecf33a45970fc61e1a7fb56206c1a1deea
Fixes: 79779143
Test: manual

6 years agoMerge "Calculate cellular radio value from modem.controller values." into pi-dev
TreeHugger Robot [Thu, 24 May 2018 06:11:27 +0000 (06:11 +0000)]
Merge "Calculate cellular radio value from modem.controller values." into pi-dev