OSDN Git Service

android-x86/frameworks-base.git
5 years ago[automerger skipped] Merge "Import translations. DO NOT MERGE" into pi-dev
Bill Yi [Wed, 22 May 2019 00:12:17 +0000 (17:12 -0700)]
[automerger skipped] Merge "Import translations. DO NOT MERGE" into pi-dev
am: d3259bd75d -s ours
am skip reason: subject contains skip directive

Change-Id: Ic778554c5ec0a3f5f4b78a60e48173642d266d91

5 years ago[automerger skipped] Merge "Import translations. DO NOT MERGE" into pi-dev
Bill Yi [Wed, 22 May 2019 00:10:35 +0000 (17:10 -0700)]
[automerger skipped] Merge "Import translations. DO NOT MERGE" into pi-dev
am: b1aad16b4a -s ours
am skip reason: subject contains skip directive

Change-Id: Id8279f685c9c7b01c79c0131ca724498775b9263

5 years agoMerge "[automerger skipped] Merge "Import translations. DO NOT MERGE" into pi-dev...
Android Build Merger (Role) [Wed, 22 May 2019 00:09:32 +0000 (00:09 +0000)]
Merge "[automerger skipped] Merge "Import translations. DO NOT MERGE" into pi-dev am: 6fe655eb70 -s ours am skip reason: subject contains skip directive" into qt-dev

5 years agoMerge "Add metrics constants for dark ui dialog" into qt-dev
TreeHugger Robot [Wed, 22 May 2019 00:08:50 +0000 (00:08 +0000)]
Merge "Add metrics constants for dark ui dialog" into qt-dev

5 years ago[automerger skipped] Merge "Import translations. DO NOT MERGE" into pi-dev
Bill Yi [Wed, 22 May 2019 00:08:47 +0000 (17:08 -0700)]
[automerger skipped] Merge "Import translations. DO NOT MERGE" into pi-dev
am: 6fe655eb70 -s ours
am skip reason: subject contains skip directive

Change-Id: Ic6db04e89227b5e28da6fd90b7e07040c55bcb6c

5 years agoMerge "Adding the privacy chip to the CarStatusBar" into qt-dev
TreeHugger Robot [Tue, 21 May 2019 23:00:41 +0000 (23:00 +0000)]
Merge "Adding the privacy chip to the CarStatusBar" into qt-dev

5 years agoMerge "Allow wallpaper to access hidden methods" into qt-dev
TreeHugger Robot [Tue, 21 May 2019 22:39:39 +0000 (22:39 +0000)]
Merge "Allow wallpaper to access hidden methods" into qt-dev

5 years agoMerge "docs: Request coarse location with b.g. location" into qt-dev
Kevin Hufnagle [Tue, 21 May 2019 22:28:05 +0000 (22:28 +0000)]
Merge "docs: Request coarse location with b.g. location" into qt-dev

5 years agoAdd metrics constants for dark ui dialog
Salvador Martinez [Tue, 14 May 2019 17:38:20 +0000 (10:38 -0700)]
Add metrics constants for dark ui dialog

This just adds some constants needed for a new dialog that shows
up on the first time dark theme is toggled.

Test: none, is a metrics change
Bug: 132695689
Change-Id: Ic7527879003a7d883e74cb00792e69655e5ec9ad

5 years agoMerge "Temp move testPermissionDiffCert to postsubmit" into qt-dev
Philip P. Moltmann [Tue, 21 May 2019 22:01:16 +0000 (22:01 +0000)]
Merge "Temp move testPermissionDiffCert to postsubmit" into qt-dev

5 years agoMerge "Prevent deadlock in AttentionManagerService" into qt-dev
TreeHugger Robot [Tue, 21 May 2019 21:59:33 +0000 (21:59 +0000)]
Merge "Prevent deadlock in AttentionManagerService" into qt-dev

5 years agoMerge "Import translations. DO NOT MERGE" into qt-dev
TreeHugger Robot [Tue, 21 May 2019 21:48:40 +0000 (21:48 +0000)]
Merge "Import translations. DO NOT MERGE" into qt-dev

5 years agoMerge "Import translations. DO NOT MERGE" into qt-dev
TreeHugger Robot [Tue, 21 May 2019 21:41:50 +0000 (21:41 +0000)]
Merge "Import translations. DO NOT MERGE" into qt-dev

5 years agoMerge "Import translations. DO NOT MERGE" into qt-dev
TreeHugger Robot [Tue, 21 May 2019 21:39:36 +0000 (21:39 +0000)]
Merge "Import translations. DO NOT MERGE" into qt-dev

5 years agoMerge "Remove AgingHelper code" into qt-dev
Beth Thibodeau [Tue, 21 May 2019 21:35:06 +0000 (21:35 +0000)]
Merge "Remove AgingHelper code" into qt-dev

5 years agoMerge "Minor improvements on voice interaction workflows." into qt-dev
TreeHugger Robot [Tue, 21 May 2019 21:05:41 +0000 (21:05 +0000)]
Merge "Minor improvements on voice interaction workflows." into qt-dev

5 years agoMerge "Update isNewEmoji to check Unicode 12." into qt-dev
Qingqing Deng [Tue, 21 May 2019 20:56:11 +0000 (20:56 +0000)]
Merge "Update isNewEmoji to check Unicode 12." into qt-dev

5 years agoMerge "Import translations. DO NOT MERGE" into pi-dev
TreeHugger Robot [Tue, 21 May 2019 20:54:41 +0000 (20:54 +0000)]
Merge "Import translations. DO NOT MERGE" into pi-dev

5 years agoMerge "Import translations. DO NOT MERGE" into pi-dev
TreeHugger Robot [Tue, 21 May 2019 20:50:53 +0000 (20:50 +0000)]
Merge "Import translations. DO NOT MERGE" into pi-dev

5 years agoMerge "Import translations. DO NOT MERGE" into pi-dev
TreeHugger Robot [Tue, 21 May 2019 20:48:23 +0000 (20:48 +0000)]
Merge "Import translations. DO NOT MERGE" into pi-dev

5 years agoMerge "Update non-framework emergency location request notification" into qt-dev
Anil Admal [Tue, 21 May 2019 20:40:22 +0000 (20:40 +0000)]
Merge "Update non-framework emergency location request notification" into qt-dev

5 years agoMerge "Use separate variables as indices in nested loops" into qt-dev
TreeHugger Robot [Tue, 21 May 2019 20:21:47 +0000 (20:21 +0000)]
Merge "Use separate variables as indices in nested loops" into qt-dev

5 years ago[automerger skipped] Merge "Clean up ProcessRecord when reuse a pid." into pi-dev
Hui Yu [Tue, 21 May 2019 20:11:06 +0000 (13:11 -0700)]
[automerger skipped] Merge "Clean up ProcessRecord when reuse a pid." into pi-dev
am: 71b2914aa1 -s ours
am skip reason: change_id I5d421f6c68f6b3437d51c94f4aef77e08a7bf002 with SHA1 6dabda8d80 is in history

Change-Id: Ie8e439414adc9d88ead96421c6e6df4fd48f6e2a

5 years agoMerge "Send subtree changed AccessibilityEvent for all alpha changes." into qt-dev
Qasid Sadiq [Tue, 21 May 2019 20:03:15 +0000 (20:03 +0000)]
Merge "Send subtree changed AccessibilityEvent for all alpha changes." into qt-dev

5 years agoMerge "Fix RTL in QS Header Info" into qt-dev
Fabian Kozynski [Tue, 21 May 2019 19:54:51 +0000 (19:54 +0000)]
Merge "Fix RTL in QS Header Info" into qt-dev

5 years agoMerge "Fix flickering when swiping on fingerprint reader to show notifications."...
TreeHugger Robot [Tue, 21 May 2019 19:42:23 +0000 (19:42 +0000)]
Merge "Fix flickering when swiping on fingerprint reader to show notifications." into qt-dev

5 years agoAllow wallpaper to access hidden methods
Hyunyoung Song [Tue, 21 May 2019 19:30:46 +0000 (12:30 -0700)]
Allow wallpaper to access hidden methods

Bug:133160356
Bug:129482731
Test: builds
Change-Id: Id4a95be17d54bc62c105041ef7e756cfa56081f4

5 years agodocs: Request coarse location with b.g. location
Kevin Hufnagle [Tue, 21 May 2019 19:22:13 +0000 (12:22 -0700)]
docs: Request coarse location with b.g. location

When requesting background location access (for "all-the-time" access
to device location), it's possible to request *either* coarse or fine
location access along with background location access. Updated the
docs to mention this important point.

Test: make ds-docs -j32

Bug: 133248358
Change-Id: Ia10e493ecb33b6e971b53d3ff348a495417d9b38

5 years agoTemp move testPermissionDiffCert to postsubmit
Philip P. Moltmann [Tue, 21 May 2019 19:11:11 +0000 (12:11 -0700)]
Temp move testPermissionDiffCert to postsubmit

Until it is fixed.

Fixes: 133245077
Bug: 132596844
Test: atest --test-mapping services/core/java/com/android/server/pm/permission:presubmit
Change-Id: Ic37d5af1c3fa6ccf08c7d08b93175b44395ddec3

5 years agoImport translations. DO NOT MERGE
Bill Yi [Tue, 21 May 2019 19:06:22 +0000 (12:06 -0700)]
Import translations. DO NOT MERGE

Auto-generated-cl: translation import

Bug: 64712476
Change-Id: Ic4b5a5b32412773e03a3cab4084af7955e3b74fe

5 years agoMerge "Revert "Adding issuer information to NAS Adjustments"" into qt-dev
Julia Reynolds [Tue, 21 May 2019 18:59:33 +0000 (18:59 +0000)]
Merge "Revert "Adding issuer information to NAS Adjustments"" into qt-dev

5 years agoMerge "Don't update default home before system is ready." into qt-dev
TreeHugger Robot [Tue, 21 May 2019 18:56:01 +0000 (18:56 +0000)]
Merge "Don't update default home before system is ready." into qt-dev

5 years agoMerge "Clean up ProcessRecord when reuse a pid." into pi-dev
TreeHugger Robot [Tue, 21 May 2019 18:45:05 +0000 (18:45 +0000)]
Merge "Clean up ProcessRecord when reuse a pid." into pi-dev

5 years agoRemove AgingHelper code
Beth Thibodeau [Tue, 21 May 2019 18:18:42 +0000 (14:18 -0400)]
Remove AgingHelper code

Fixes: 132217006
Test: atest ExtServicesUnitTests
Change-Id: I1388fe97aa43aaf8d4eb9339aee5a96a9bf7fbad

5 years agoMerge "Bouncer retry polish" into qt-dev
Lucas Dupin [Tue, 21 May 2019 18:22:35 +0000 (18:22 +0000)]
Merge "Bouncer retry polish" into qt-dev

5 years agoUse separate variables as indices in nested loops
Philip P. Moltmann [Tue, 21 May 2019 17:20:38 +0000 (10:20 -0700)]
Use separate variables as indices in nested loops

Otherwise the loop might be stuck forever if
- mActiveWatchers.size() > mActiveWatchers.get(0).size()

Test: adb shell dumpsys appops
Fixes: 133230634
Change-Id: I324b1750cf1e45a543e7a498407fbeadc98aba1b

5 years agoMerge "Protect System UI from crashing when sharing file: URIs." into qt-dev
Daniel Sandler [Tue, 21 May 2019 18:08:42 +0000 (18:08 +0000)]
Merge "Protect System UI from crashing when sharing file: URIs." into qt-dev

5 years agoMerge "Register Rollback user callbacks for added users" into qt-dev
Shafik Nassar [Tue, 21 May 2019 18:04:15 +0000 (18:04 +0000)]
Merge "Register Rollback user callbacks for added users" into qt-dev

5 years agoMerge changes If44268b0,Ie808507f into qt-dev
Ady Abraham [Tue, 21 May 2019 17:58:37 +0000 (17:58 +0000)]
Merge changes If44268b0,Ie808507f into qt-dev

* changes:
  Implement high refresh rate policy in window manager
  Let window manager know about active camera users, part 1

5 years agoRegister Rollback user callbacks for added users
shafik [Tue, 21 May 2019 11:34:50 +0000 (12:34 +0100)]
Register Rollback user callbacks for added users

Rollback Manager gets notified when new user is added and then registers
broadcast receivers for that user. The broadcasts this user registers
for are the same as the ones the main user registers for on boot up.

Test: manual -
    1. Add new user to device.
    2. adb install RollbackTestAppAv1.apk
    3. adb install --user 10 --enable-rollback RollbackTestAppAv2.apk
    4. adb shell dumpsys rollback # observe available rollback
Test: atest RollbackTest
Test: atest StagedRollbackTest
Fixes: 133210559

Change-Id: If1666ebe46cb6e17818478b4b82a53369d7cedcc

5 years agoMerge "Add a check at the global level for notification bubbles being enabled" into...
Mady Mellor [Tue, 21 May 2019 17:51:34 +0000 (17:51 +0000)]
Merge "Add a check at the global level for notification bubbles being enabled" into qt-dev

5 years agoMerge "Send shortcutinfo to APS for direct shares." into qt-dev
George Hodulik [Tue, 21 May 2019 17:49:30 +0000 (17:49 +0000)]
Merge "Send shortcutinfo to APS for direct shares." into qt-dev

5 years agoImport translations. DO NOT MERGE
Bill Yi [Tue, 21 May 2019 17:41:53 +0000 (10:41 -0700)]
Import translations. DO NOT MERGE

Auto-generated-cl: translation import

Bug: 64712476
Change-Id: I651ce3c6b0fe138cb22f17a0b3f48e22b9b57455

5 years agoFix flickering when swiping on fingerprint reader to show notifications.
Aran Ink [Thu, 16 May 2019 18:22:12 +0000 (14:22 -0400)]
Fix flickering when swiping on fingerprint reader to show notifications.

Test: tap on notification on lock screen
Test: tap on notification on shade locked
Test: swipe down from the top expanding QS
Test: swipe up from LS
Test: switch between pin, pattern and password
Test: add and remove locked sim card

Fixes: 132701117
Change-Id: I835ab59789771f2f39f8d9f822165552b1f65aa1

5 years agoMerge "Fixed javadoc for View.setContentCaptureSession()." into qt-dev
TreeHugger Robot [Tue, 21 May 2019 17:38:41 +0000 (17:38 +0000)]
Merge "Fixed javadoc for View.setContentCaptureSession()." into qt-dev

5 years agoMerge "do not print phone number which is considered as pii" into qt-dev
Chen Xu [Tue, 21 May 2019 17:28:40 +0000 (17:28 +0000)]
Merge "do not print phone number which is considered as pii" into qt-dev

5 years agoMerge "Notify SysUI of the recents animation so it can disable autohide" into qt-dev
Winson Chung [Tue, 21 May 2019 17:24:05 +0000 (17:24 +0000)]
Merge "Notify SysUI of the recents animation so it can disable autohide" into qt-dev

5 years agoMerge "Add INTERACT_ACROSS_PROFILES permission to shell for CTS test." into qt-dev
TreeHugger Robot [Tue, 21 May 2019 16:58:38 +0000 (16:58 +0000)]
Merge "Add INTERACT_ACROSS_PROFILES permission to shell for CTS test." into qt-dev

5 years agoMerge "Default automatic notification prioritization to off" into qt-dev
TreeHugger Robot [Tue, 21 May 2019 16:58:33 +0000 (16:58 +0000)]
Merge "Default automatic notification prioritization to off" into qt-dev

5 years agoMerge "Fix sysui's security issue of cross-user copy/paste" into qt-dev
TreeHugger Robot [Tue, 21 May 2019 16:50:52 +0000 (16:50 +0000)]
Merge "Fix sysui's security issue of cross-user copy/paste" into qt-dev

5 years agoMerge "Synchronize block in onNotificationPosted" into qt-dev
Beth Thibodeau [Tue, 21 May 2019 16:39:52 +0000 (16:39 +0000)]
Merge "Synchronize block in onNotificationPosted" into qt-dev

5 years agoMerge "SeekBarVolumizer: fix media volume initialization for VolumeGroup" into qt-dev
TreeHugger Robot [Tue, 21 May 2019 16:35:45 +0000 (16:35 +0000)]
Merge "SeekBarVolumizer: fix media volume initialization for VolumeGroup" into qt-dev

5 years agoMerge "Add a rule to compile IWallpaperService.aidl" into qt-dev
Hyunyoung Song [Tue, 21 May 2019 16:35:20 +0000 (16:35 +0000)]
Merge "Add a rule to compile IWallpaperService.aidl" into qt-dev

5 years agoMerge "Added a cmd to let system bind to a voice interaction service on instant apps...
TreeHugger Robot [Tue, 21 May 2019 16:14:14 +0000 (16:14 +0000)]
Merge "Added a cmd to let system bind to a voice interaction service on instant apps." into qt-dev

5 years agoMerge "Remove obtainStyledAttribute and AssetManager2::GetBag tracing" into qt-dev
TreeHugger Robot [Tue, 21 May 2019 16:00:04 +0000 (16:00 +0000)]
Merge "Remove obtainStyledAttribute and AssetManager2::GetBag tracing" into qt-dev

5 years agoMerge "DO NOT MERGE - Minor fix on internal method name." into qt-dev
TreeHugger Robot [Tue, 21 May 2019 15:41:53 +0000 (15:41 +0000)]
Merge "DO NOT MERGE - Minor fix on internal method name." into qt-dev

5 years agoFix RTL in QS Header Info
Fabian Kozynski [Tue, 21 May 2019 14:06:44 +0000 (10:06 -0400)]
Fix RTL in QS Header Info

When there was only one view to display, we relay on
FrameLayout#onLayout. Setting the layout_gravity to center_vertical
(which is unneeded here) was removing the "start" by default.

Lays out Views from start to end keeping track of offset. As the Views
were given their final size in onMeasure, laying out is easy.

Fixes: 133221093
Test: manual using Hebrew and English
Change-Id: Id57d951bbbacbff7745869fe5b288d620a3c25f1

5 years agoMerge "Documentation: Add trailing '/' to MediaColumns.RELATIVE_PATH" into qt-dev
Shafik Nassar [Tue, 21 May 2019 15:27:37 +0000 (15:27 +0000)]
Merge "Documentation: Add trailing '/' to MediaColumns.RELATIVE_PATH" into qt-dev

5 years agoMerge "Allow to grant soft restricted permissions" into qt-dev
Philip P. Moltmann [Tue, 21 May 2019 15:27:04 +0000 (15:27 +0000)]
Merge "Allow to grant soft restricted permissions" into qt-dev

5 years agoSynchronize block in onNotificationPosted
Beth Thibodeau [Mon, 20 May 2019 22:05:40 +0000 (18:05 -0400)]
Synchronize block in onNotificationPosted

This is the only place in Assistant.java where mkeyToImpressions is not
synchronized

Fixes: 131199823
Test: make, atest ExtServicesUnitTests
Change-Id: I9abc8090d0423761dee9882c3f3459677738a848

5 years agoMerge "Make queryRemoteConnectionServices DSDS aware." into qt-dev
Tyler Gunn [Tue, 21 May 2019 15:18:59 +0000 (15:18 +0000)]
Merge "Make queryRemoteConnectionServices DSDS aware." into qt-dev

5 years agoMerge "Update notification redacted state for profile." into qt-dev
TreeHugger Robot [Tue, 21 May 2019 15:05:12 +0000 (15:05 +0000)]
Merge "Update notification redacted state for profile." into qt-dev

5 years agoRevert "Adding issuer information to NAS Adjustments"
Julia Reynolds [Tue, 21 May 2019 15:03:28 +0000 (15:03 +0000)]
Revert "Adding issuer information to NAS Adjustments"

This reverts commit 3b33a04fb3b34cac4422b2520ddb0b8be7067b72.

Reason for revert: This is crashing ExtServices on qt-dev

Bug: 132679875
Change-Id: I60b7b6b8db33585f62e108389367c74ce682b922

5 years agoUpdate notification redacted state for profile.
Pavel Grafov [Fri, 17 May 2019 12:11:01 +0000 (13:11 +0100)]
Update notification redacted state for profile.

Put back two missing bits of logic relevant for managed profiles:
1. Update user's public mode when work challenge is unlocked.
2. Update notifications when public mode changes.

This ensures that redacted notifications become readable again
when work profile challenge is unlocked.

Test: manual, using Hangouts in a profile with separate lock
Bug: 128896361
Change-Id: I0aad2df233c8e3f2820dbe69230ba0897ab45ab1

5 years ago[automerger skipped] [RESTRICT AUTOMERGE] Make Lock task default consistent w/ Settin...
Jonathan Scott [Tue, 21 May 2019 11:22:18 +0000 (04:22 -0700)]
[automerger skipped] [RESTRICT AUTOMERGE] Make Lock task default consistent w/ Settings (oc-mr1-dev). am: cd6c636800 -s ours
am: 84778db6b6 -s ours
am skip reason: subject contains skip directive

Change-Id: I40ef0278707e238f6b3e825f0c661800a02c7afe

5 years ago[automerger skipped] [RESTRICT AUTOMERGE] Make Lock task default consistent w/ Settin...
Jonathan Scott [Tue, 21 May 2019 11:10:10 +0000 (04:10 -0700)]
[automerger skipped] [RESTRICT AUTOMERGE] Make Lock task default consistent w/ Settings (oc-mr1-dev).
am: cd6c636800 -s ours
am skip reason: subject contains skip directive

Change-Id: I505c495256607b7379798bd0c2d926dacc48ca66

5 years agoMerge "Adding issuer information to NAS Adjustments" into qt-dev
TreeHugger Robot [Tue, 21 May 2019 10:41:07 +0000 (10:41 +0000)]
Merge "Adding issuer information to NAS Adjustments" into qt-dev

5 years agoMerge "Fix NPE with live wallpaper" into qt-dev
TreeHugger Robot [Tue, 21 May 2019 10:17:40 +0000 (10:17 +0000)]
Merge "Fix NPE with live wallpaper" into qt-dev

5 years ago[automerger skipped] Merge "[RESTRICT AUTOMERGE] Fix NullPointerException when mLockP...
Jonathan Scott [Tue, 21 May 2019 09:52:56 +0000 (02:52 -0700)]
[automerger skipped] Merge "[RESTRICT AUTOMERGE] Fix NullPointerException when mLockPatternUtils is not set." into pi-dev
am: f707a9bdf6 -s ours
am skip reason: subject contains skip directive

Change-Id: I36856c3a199e44a27af692e98f1e04c790d5c5b9

5 years agoMerge "[RESTRICT AUTOMERGE] Fix NullPointerException when mLockPatternUtils is not...
TreeHugger Robot [Tue, 21 May 2019 09:44:05 +0000 (09:44 +0000)]
Merge "[RESTRICT AUTOMERGE] Fix NullPointerException when mLockPatternUtils is not set." into pi-dev

5 years agoMerge "Add Aware Lock Settings" into qt-dev
TreeHugger Robot [Tue, 21 May 2019 09:03:15 +0000 (09:03 +0000)]
Merge "Add Aware Lock Settings" into qt-dev

5 years agoMerge "Add tests for optional screenshot Fd in bugreport API" into qt-dev
TreeHugger Robot [Tue, 21 May 2019 08:54:37 +0000 (08:54 +0000)]
Merge "Add tests for optional screenshot Fd in bugreport API" into qt-dev

5 years agoImport translations. DO NOT MERGE
Bill Yi [Tue, 21 May 2019 07:44:23 +0000 (00:44 -0700)]
Import translations. DO NOT MERGE

Auto-generated-cl: translation import

Bug: 64712476
Change-Id: I0a9460a58149d8c0cc6833c52f4cd922ba065d81

5 years agoAdding issuer information to NAS Adjustments
Jan Althaus [Fri, 10 May 2019 12:54:13 +0000 (14:54 +0200)]
Adding issuer information to NAS Adjustments

Test: manually tested with AiAi NAS
Fixes: 132679875

Change-Id: I5d4bf41383143e9573ddad5c08205e1dca3ba6b3

5 years agoMerge "Remove GLSurfaceView and release EGL context." into qt-dev
TreeHugger Robot [Tue, 21 May 2019 06:55:46 +0000 (06:55 +0000)]
Merge "Remove GLSurfaceView and release EGL context." into qt-dev

5 years agoFix sysui's security issue of cross-user copy/paste
Felka Chang [Tue, 2 Apr 2019 08:24:49 +0000 (16:24 +0800)]
Fix sysui's security issue of cross-user copy/paste

Background:
The applications with the granted INTERNAL_SYSTEM_WINDOW and
INTERACT_ACROSS_USERS_FULL means that it could show the same
window for all of users. i.e. to use user 0 presents all of
UI things to all of users.

INTERNAL_SYSTEM_WINDOW usually comes with INTERACT_ACROSS_USERS_FULL
because it will serve all of users to know the information that
comes from framework and system server.

Solution:
Because SystemUI never restarts after the user changing,
ClipboardService can't tell if the callingUid has the the same userId
with the current user or not.  The solution is to use the permission
check. Especially, INTERACT_ACROSS_USERS_FULL and
INTERNAL_SYSTEM_WINDOW. To check INTERACT_ACROSS_USERS_FULL by using
ActivityManagerInternal.handleIncomingUser.

Caution:
The application with INTERNAL_SYSTEM_WINDOW usually use user 0
to show the window. But, the current user is user 10, WindowManager
know the focus windows is belong to user 0 rather user 10. That's
why user 10 can't copy the the text from systemui directly reply to
the other applications.

Readability:
ClipboardService use callingUid everywhere but actaully it is not
appropriated to fix this kind of bug. This patch refactor the naming
to produce two name. i.e. intendingUid and intentdingUserId that are
validated by ActivityManagerInternal.handleIncomingUser.

Test: manual test
Test: atest android.widget.cts.TextViewTest
Test: atest CtsTextTestCases
Test: atest CtsContentTestCases

Bug: 123232892
Bug: 117768051
Change-Id: Ie3daecd1e8fc2f7fdf37baeb5979da9f2e0b3937

5 years agoMerge "Add workaround to handle overlay package changes for non-primary users" into...
Winson Chung [Tue, 21 May 2019 05:58:33 +0000 (05:58 +0000)]
Merge "Add workaround to handle overlay package changes for non-primary users" into qt-dev

5 years agoNotify SysUI of the recents animation so it can disable autohide
Winson Chung [Fri, 17 May 2019 23:40:38 +0000 (16:40 -0700)]
Notify SysUI of the recents animation so it can disable autohide

- When swiping up from an immersive sticky app, ensure that we don't
  restore the hidden bar states while swiping up (only update afterwards)

Bug: 130020567
Test: atest CommandQueueTest
Test: Swipe up from an immersive app into launcher while the bars are
      showing

Change-Id: I1c8fb3c0df5c1adc7c73079189f5b45e84d1ef45

5 years agoMerge "Notify StorageManagerService when storage related app ops change." into qt-dev
Sudheer Shanka [Tue, 21 May 2019 05:07:51 +0000 (05:07 +0000)]
Merge "Notify StorageManagerService when storage related app ops change." into qt-dev

5 years agoAllow to grant soft restricted permissions
Philip P. Moltmann [Wed, 15 May 2019 23:36:32 +0000 (16:36 -0700)]
Allow to grant soft restricted permissions

Test: atest CtsPermission2TestCases:android.permission2.cts.RestrictedPermissionsTest#testCanGrantSoftRestrictedNotWhitelistedPermissions
Bug: 132737426
Change-Id: I5f0883c957b9d6248bfd00add8cb64b4fb119d08

5 years agoAdd INTERACT_ACROSS_PROFILES permission to shell for CTS test.
Varun Shah [Sat, 18 May 2019 00:28:50 +0000 (17:28 -0700)]
Add INTERACT_ACROSS_PROFILES permission to shell for CTS test.

Bug: 127804311
Test: atest CrossProfileAppsHostSideTest#testStartActivity
Change-Id: I1deb66409fae1ec654555adb8d4a61d670689d2a

5 years agoImport translations. DO NOT MERGE
Bill Yi [Tue, 21 May 2019 03:35:49 +0000 (20:35 -0700)]
Import translations. DO NOT MERGE

Auto-generated-cl: translation import

Bug: 64712476
Change-Id: If790b430eef724817bff5c4b33cd50c11dcd31f9

5 years agoFix NPE with live wallpaper
James O'Leary [Tue, 21 May 2019 03:21:54 +0000 (23:21 -0400)]
Fix NPE with live wallpaper

Test: Verify WAI
Fixes: 133130262133194773133168135133160573
Change-Id: Ib38947326839a5c4806b909ead2484efd5a535a1

5 years agoImport translations. DO NOT MERGE
Bill Yi [Tue, 21 May 2019 02:57:11 +0000 (19:57 -0700)]
Import translations. DO NOT MERGE

Auto-generated-cl: translation import

Bug: 64712476
Change-Id: Icf5d15017d24d8d3f9353c65a0211da1d8f87cf7

5 years agoMerge "Revert "Use the SubId in the TM.getNetworkType if Valid"" into qt-dev
TreeHugger Robot [Tue, 21 May 2019 02:51:28 +0000 (02:51 +0000)]
Merge "Revert "Use the SubId in the TM.getNetworkType if Valid"" into qt-dev

5 years agoRevert "Use the SubId in the TM.getNetworkType if Valid"
Nathan Harold [Mon, 20 May 2019 23:21:48 +0000 (23:21 +0000)]
Revert "Use the SubId in the TM.getNetworkType if Valid"

This reverts commit f36fee3cf764838aa8b1f59142e82049e4cbacb1.

Reason for revert: 133129040

Bug: 133129040
Merged-In: I9a974018d4155426b1050a4b80b82f4bf4a9d996
Change-Id: Ib6f9a4e461a7e1cfa6c4648bd289a8f92475423e

5 years agoImport translations. DO NOT MERGE
Bill Yi [Tue, 21 May 2019 02:48:45 +0000 (19:48 -0700)]
Import translations. DO NOT MERGE

Auto-generated-cl: translation import

Bug: 64712476
Change-Id: I79d6897677220573160ac79a8c8f4d76c6fa7f93

5 years agoBouncer retry polish
Lucas Dupin [Tue, 21 May 2019 02:10:22 +0000 (19:10 -0700)]
Bouncer retry polish

Fixes: 133192281
Test: manually drag pattern and pin areas
Change-Id: I2746badd64350416fd4c62b717a098a2fc1ce136

5 years agoMerge "Fix SystemServerInitThreadPool size on latest device." into qt-dev
TreeHugger Robot [Tue, 21 May 2019 02:16:26 +0000 (02:16 +0000)]
Merge "Fix SystemServerInitThreadPool size on latest device." into qt-dev

5 years agoMerge "Increase height of silent section header to meet GAR" into qt-dev
Ned Burns [Tue, 21 May 2019 02:02:45 +0000 (02:02 +0000)]
Merge "Increase height of silent section header to meet GAR" into qt-dev

5 years agoProtect System UI from crashing when sharing file: URIs.
Dan Sandler [Tue, 21 May 2019 00:15:21 +0000 (20:15 -0400)]
Protect System UI from crashing when sharing file: URIs.

This workaround already existed in ResolverActivity.java.

Bug: 123628236
Test: ensure there are multiple image viewers on device:
adb shell \
am start -a android.intent.action.VIEW -d \
file:///sdcard/foo.jpg

Change-Id: I978805a2d2b108bc91753e0cb4cfd90707f63a46

5 years agoReduce parcel size to avoid binder transaction failure
Po-Chien Hsueh [Fri, 17 May 2019 07:08:20 +0000 (15:08 +0800)]
Reduce parcel size to avoid binder transaction failure

Reduce buffer size to 8192 to avoid binder transaction failures.
According to our previous tests. Reducing the buffer size to 8K
doesn't show negative impact on performance.

Bug: 132923636
Test: Successfully install a DSU
Change-Id: Ibe51ab748b4f6c1d3c3ac8286519380ea8afc184

5 years agoCheck if DSU is in use before feature flag
Po-Chien Hsueh [Tue, 14 May 2019 08:57:18 +0000 (16:57 +0800)]
Check if DSU is in use before feature flag

We are using a feature flag to protect DSU and the device. But when
a Dynamic System is in use, feature flag is set as false by default.

This CL makes DSU bypass feature flag and start GSI service on boot
completed, check if the device is currently running a Dynamic System,
then, stop GSI service if the device isn't.

Bug: 132575851
Test: restart into DSU, check if the "In Use" notification is shown.
Change-Id: I9dabf9bc1716ef18d513278415c6544a5467d510

5 years agoMerge "Not showing menu buttons for any headsup notification" into qt-dev
Shawn Lin [Tue, 21 May 2019 01:15:17 +0000 (01:15 +0000)]
Merge "Not showing menu buttons for any headsup notification" into qt-dev

5 years agodo not print phone number which is considered as pii
chen xu [Tue, 21 May 2019 00:56:53 +0000 (17:56 -0700)]
do not print phone number which is considered as pii

do not print phonenumber in subscriptionInfo

Bug: 133191331
Change-Id: Ibdc4689f41a8dac162b617d6972bb72b3dd86e4e

5 years agoMerge "Hide pointer on create" into qt-dev
TreeHugger Robot [Tue, 21 May 2019 00:57:25 +0000 (00:57 +0000)]
Merge "Hide pointer on create" into qt-dev

5 years agoMerge "Add support for LearnMore option" into qt-dev
Badhri Jagan Sridharan [Tue, 21 May 2019 00:31:45 +0000 (00:31 +0000)]
Merge "Add support for LearnMore option" into qt-dev

5 years agoRemove obtainStyledAttribute and AssetManager2::GetBag tracing
Eric Holk [Mon, 20 May 2019 22:22:22 +0000 (15:22 -0700)]
Remove obtainStyledAttribute and AssetManager2::GetBag tracing

These traces are small and noisy, so they hurt performance more than they help.

This reverts commit c37457799be3db0590a5d94832b2fef5f64ef439.

Test: m
Bug: 132721345
Change-Id: I9ef719f54f2bc8a54f23e88f46d74e35417a6519
(cherry picked from commit 3509b624feecbcb8be850f9e1f397cdd7aeea5e2)

5 years agoMerge "Move bubbles top, manage button below" into qt-dev
TreeHugger Robot [Tue, 21 May 2019 00:30:35 +0000 (00:30 +0000)]
Merge "Move bubbles top, manage button below" into qt-dev

5 years agoIncrease height of silent section header to meet GAR
Ned Burns [Mon, 20 May 2019 22:02:19 +0000 (18:02 -0400)]
Increase height of silent section header to meet GAR

Also removes the night-specific layout in favor of a color selector.

Test: manual
Fixes: 132401519
Change-Id: I336aa3e5cf3d4c9b09f8e985d5c1389cd935d7a5