OSDN Git Service

android-x86/frameworks-base.git
5 years agoMerge "Adding null check for proxying assistant visibility changed." into qt-dev
Winson Chung [Wed, 10 Apr 2019 19:35:37 +0000 (19:35 +0000)]
Merge "Adding null check for proxying assistant visibility changed." into qt-dev

5 years agoLimit IsSeparateProfileChallengeAllowed to system callers am: 1b6301cf24
Pavel Grafov [Wed, 10 Apr 2019 19:20:17 +0000 (12:20 -0700)]
Limit IsSeparateProfileChallengeAllowed to system callers am: 1b6301cf24
am: 406229f0c8

Change-Id: Ibcdd009840f36c0ac566a2211a50ac75f6db5c28

5 years agoMerge "Handle restricted permissions for shared UID components - framework" into...
Svetoslav Ganov [Wed, 10 Apr 2019 19:16:45 +0000 (19:16 +0000)]
Merge "Handle restricted permissions for shared UID components - framework" into qt-dev

5 years agoMerge "DngCreator: scale lens distortion paramters" into qt-dev
Yin-Chia Yeh [Wed, 10 Apr 2019 19:16:07 +0000 (19:16 +0000)]
Merge "DngCreator: scale lens distortion paramters" into qt-dev

5 years agoMerge "People might want GROUP_CONCAT." into qt-dev
Jeff Sharkey [Wed, 10 Apr 2019 19:05:19 +0000 (19:05 +0000)]
Merge "People might want GROUP_CONCAT." into qt-dev

5 years agoLimit IsSeparateProfileChallengeAllowed to system callers
Pavel Grafov [Wed, 10 Apr 2019 18:47:42 +0000 (11:47 -0700)]
Limit IsSeparateProfileChallengeAllowed to system callers
am: 1b6301cf24

Change-Id: I1145186590622d415c6c10c4750cf9429806bdbe

5 years agoMerge "Handle additional users settings custom clock faces." into qt-dev
TreeHugger Robot [Wed, 10 Apr 2019 18:45:01 +0000 (18:45 +0000)]
Merge "Handle additional users settings custom clock faces." into qt-dev

5 years agoMerge "Sharesheet - navbar color integration" into qt-dev
TreeHugger Robot [Wed, 10 Apr 2019 18:37:26 +0000 (18:37 +0000)]
Merge "Sharesheet - navbar color integration" into qt-dev

5 years agoMerge "Fix log spam from DefaultPermissionGrantPolicy" into qt-dev
TreeHugger Robot [Wed, 10 Apr 2019 18:23:20 +0000 (18:23 +0000)]
Merge "Fix log spam from DefaultPermissionGrantPolicy" into qt-dev

5 years agoMerge "Hard-disable precompiled layouts" into qt-dev
TreeHugger Robot [Wed, 10 Apr 2019 18:16:41 +0000 (18:16 +0000)]
Merge "Hard-disable precompiled layouts" into qt-dev

5 years agoMerge "Add config for display white balance default state" into qt-dev
Christine Franks [Wed, 10 Apr 2019 18:08:54 +0000 (18:08 +0000)]
Merge "Add config for display white balance default state" into qt-dev

5 years agoMerge "Set stream volume for lecacy stream types" into qt-dev
Hayden Gomes [Wed, 10 Apr 2019 18:06:29 +0000 (18:06 +0000)]
Merge "Set stream volume for lecacy stream types" into qt-dev

5 years agoMerge "CameraServiceProxy: Handle race between systemserver and cameraserver" into...
TreeHugger Robot [Wed, 10 Apr 2019 18:06:09 +0000 (18:06 +0000)]
Merge "CameraServiceProxy: Handle race between systemserver and cameraserver" into qt-dev

5 years agoMerge "Handle onNullBinding" into qt-dev
TreeHugger Robot [Wed, 10 Apr 2019 17:58:00 +0000 (17:58 +0000)]
Merge "Handle onNullBinding" into qt-dev

5 years agoMerge "Add ROLLBACK_FAILED apexd session to StagingManager" into qt-dev
Nikita Ioffe [Wed, 10 Apr 2019 17:46:22 +0000 (17:46 +0000)]
Merge "Add ROLLBACK_FAILED apexd session to StagingManager" into qt-dev

5 years agoMerge "Revert "Revert "Fix lifecycle issue in CommonPool""" into qt-dev
TreeHugger Robot [Wed, 10 Apr 2019 17:42:09 +0000 (17:42 +0000)]
Merge "Revert "Revert "Fix lifecycle issue in CommonPool""" into qt-dev

5 years agoMerge "BinaryPushStateChanged enum updates" into qt-dev
TreeHugger Robot [Wed, 10 Apr 2019 17:36:58 +0000 (17:36 +0000)]
Merge "BinaryPushStateChanged enum updates" into qt-dev

5 years agoMerge "Make FLAG_BUBBLE public; update some documentation" into qt-dev
Mady Mellor [Wed, 10 Apr 2019 17:33:20 +0000 (17:33 +0000)]
Merge "Make FLAG_BUBBLE public; update some documentation" into qt-dev

5 years agoMerge "Split VOLUME_EXTERNAL and VOLUME_PRIMARY." into qt-dev
Jeff Sharkey [Wed, 10 Apr 2019 17:31:13 +0000 (17:31 +0000)]
Merge "Split VOLUME_EXTERNAL and VOLUME_PRIMARY." into qt-dev

5 years agoMerge "Update car paddings" into qt-dev
TreeHugger Robot [Wed, 10 Apr 2019 17:10:24 +0000 (17:10 +0000)]
Merge "Update car paddings" into qt-dev

5 years agoMerge "Fix remove-before-add for IpSecService RefcountedResource" into qt-dev
Benedict Wong [Wed, 10 Apr 2019 17:07:02 +0000 (17:07 +0000)]
Merge "Fix remove-before-add for IpSecService RefcountedResource" into qt-dev

5 years agoAdding null check for proxying assistant visibility changed.
Winson Chung [Wed, 10 Apr 2019 16:47:13 +0000 (09:47 -0700)]
Adding null check for proxying assistant visibility changed.

Bug: 130272454
Test: None, just a null check
Change-Id: Iffbb3c3d555c9c8ab3ec723d5a0167c661b90ee6

5 years agoMerge "Address UI change request for injected services" into qt-dev
Jonathan Koo [Wed, 10 Apr 2019 16:46:15 +0000 (16:46 +0000)]
Merge "Address UI change request for injected services" into qt-dev

5 years agoPeople might want GROUP_CONCAT.
Jeff Sharkey [Wed, 10 Apr 2019 16:27:15 +0000 (10:27 -0600)]
People might want GROUP_CONCAT.

Bug: 129890881
Test: none
Change-Id: I24b6cc3c65e7a25b34c57f17584ba75c40be38ab

5 years agoCameraServiceProxy: Handle race between systemserver and cameraserver
Shuzhen Wang [Mon, 8 Apr 2019 17:49:42 +0000 (10:49 -0700)]
CameraServiceProxy: Handle race between systemserver and cameraserver

Add retry logic for case where camera proxy in system service needs to
wait for camera server to starts up.

Test: Camera CTS and Forrest test
Bug: 130045093
Change-Id: Ib56e487bbd039dad21bf9e86524cf417f3abcd4c

5 years agoMerge "Clarified ContentCaptureCondition constructor." into qt-dev
Felipe Leme [Wed, 10 Apr 2019 16:19:56 +0000 (16:19 +0000)]
Merge "Clarified ContentCaptureCondition constructor." into qt-dev

5 years agoHard-disable precompiled layouts
Eric Holk [Tue, 2 Apr 2019 17:31:43 +0000 (10:31 -0700)]
Hard-disable precompiled layouts

The feature is not enabled for Q, so although the cost of checking if it's
enabled is low, there's no reason to pay it at all.

Bug: 111895153
Change-Id: I0d20f47d2c8ddc15031257ce87b40a0d23a617ff

5 years agoMerge "Do not deep copy bundle in getExtras()" into qt-dev
TreeHugger Robot [Wed, 10 Apr 2019 16:00:56 +0000 (16:00 +0000)]
Merge "Do not deep copy bundle in getExtras()" into qt-dev

5 years agoMerge "Revert "Release bitmap reference right after Per85ComputeTask done its job...
Lucas Dupin [Wed, 10 Apr 2019 15:57:49 +0000 (15:57 +0000)]
Merge "Revert "Release bitmap reference right after Per85ComputeTask done its job."" into qt-dev

5 years agoMerge "BubbleData [4/n]: Cleanup StackView initializiation" into qt-dev
Mark Renouf [Wed, 10 Apr 2019 15:55:37 +0000 (15:55 +0000)]
Merge "BubbleData [4/n]: Cleanup StackView initializiation" into qt-dev

5 years agoMerge "BubbleData [3/n]: separate Bubble view inflation" into qt-dev
Mark Renouf [Wed, 10 Apr 2019 15:55:24 +0000 (15:55 +0000)]
Merge "BubbleData [3/n]: separate Bubble view inflation" into qt-dev

5 years agoMerge "Reset system fixed to clean storage perm model 2" into qt-dev
TreeHugger Robot [Wed, 10 Apr 2019 15:38:41 +0000 (15:38 +0000)]
Merge "Reset system fixed to clean storage perm model 2" into qt-dev

5 years agoHandle restricted permissions for shared UID components - framework
Svet Ganov [Wed, 10 Apr 2019 06:55:05 +0000 (23:55 -0700)]
Handle restricted permissions for shared UID components - framework

We set the app op for a restricted permission to allow if the app
requesting the permission is whitelisted and to deny if the app requesting
the permission is not whitelisted. However, there is another case where an
app in a shared user can access a component in another app in the same shared
user due to being in the same shared user and not by having the permission
that guards the component form the rest of the world. We need to handle this.
The way we do this is by setting app ops corresponding to non requested
restricted permissions to allow as this would allow the shared uid access
case and be okay for other apps as they would not have the permission and
would fail on the permission checks before reaching the app op check.

Test: atest CtsAppSecurityHostTestCases:android.appsecurity.cts.PermissionsHostTest
Test: atest CtsPermissionTestCases
Test: atest CtsPermission2TestCases
Test: atest CtsRoleTestCases
Test: shell query commands now work

bug:130045570

Change-Id: I654f057e909340fafd708b2bca182eb105d0cd30

5 years agoSplit VOLUME_EXTERNAL and VOLUME_PRIMARY.
Jeff Sharkey [Wed, 10 Apr 2019 05:46:48 +0000 (23:46 -0600)]
Split VOLUME_EXTERNAL and VOLUME_PRIMARY.

To let developers focus on specific concrete storage devices in Q,
we need a volume name that can be used to point at the primary
external storage device.  We had been using VOLUME_EXTERNAL for that,
but we've heard that certain apps are making deep assumptions that
media item IDs are globally unique across all volumes.

Thus these changes merge all volumes back into a single underlying
database, and VOLUME_EXTERNAL works with all of the currently
attached volumes.  The new VOLUME_PRIMARY name can be used to focus
on the primary storage device when desired.

When developers try inserting items directly into VOLUME_EXTERNAL,
we gracefully assume they meant VOLUME_PRIMARY.

Bug: 128451765
Test: atest --test-mapping packages/providers/MediaProvider
Change-Id: I682ff6e9aaab4f5315a46c9825313a438548c7e6

5 years agoMerge "Support ATT 5 level signal bars display" into qt-dev
TreeHugger Robot [Wed, 10 Apr 2019 15:21:22 +0000 (15:21 +0000)]
Merge "Support ATT 5 level signal bars display" into qt-dev

5 years agoMerge "Refactor s/TypeInfo/MimeTypeInfo/ per feedback." into qt-dev
Jeff Sharkey [Wed, 10 Apr 2019 15:09:33 +0000 (15:09 +0000)]
Merge "Refactor s/TypeInfo/MimeTypeInfo/ per feedback." into qt-dev

5 years agoHandle onNullBinding
Julia Reynolds [Wed, 10 Apr 2019 14:08:21 +0000 (10:08 -0400)]
Handle onNullBinding

Test: atest
Fixes: 111388269
Change-Id: I3e25a11712ee913ddc4b0ef5dd6055aa804ba94a

5 years agoMerge "Only show 'scanning' animation on bouncer" into qt-dev
TreeHugger Robot [Wed, 10 Apr 2019 14:21:03 +0000 (14:21 +0000)]
Merge "Only show 'scanning' animation on bouncer" into qt-dev

5 years agoMerge "Guard against creating too many MobileSignalControllers" into qt-dev
TreeHugger Robot [Wed, 10 Apr 2019 14:16:03 +0000 (14:16 +0000)]
Merge "Guard against creating too many MobileSignalControllers" into qt-dev

5 years agoMerge "Fix NPE in CompanionDeviceManagerService#unlockUser()" into qt-dev
Michal Karpinski [Wed, 10 Apr 2019 13:49:41 +0000 (13:49 +0000)]
Merge "Fix NPE in CompanionDeviceManagerService#unlockUser()" into qt-dev

5 years agoMerge "Ensure that hardware Bitmap has a ColorSpace" into qt-dev
TreeHugger Robot [Wed, 10 Apr 2019 13:19:18 +0000 (13:19 +0000)]
Merge "Ensure that hardware Bitmap has a ColorSpace" into qt-dev

5 years agoSupport ATT 5 level signal bars display
andychou [Wed, 10 Apr 2019 12:49:06 +0000 (20:49 +0800)]
Support ATT 5 level signal bars display

Bug:123528673
Test: Insert ATT SIM and check if 5 level bars display is correct
Change-Id: Ibc3d270d64d21d2a2f792cf68416e93b086cbd0e

5 years agoLimit IsSeparateProfileChallengeAllowed to system callers
Pavel Grafov [Wed, 10 Apr 2019 11:47:25 +0000 (12:47 +0100)]
Limit IsSeparateProfileChallengeAllowed to system callers

Fixes: 128599668
Test: build, set up separate challenge
Change-Id: I2fef9ab13614627c0f1bcca04759d0974fc6181a

5 years agoMerge "Remove dismiss action and associated event tag. Users expect the volume dialog...
TreeHugger Robot [Wed, 10 Apr 2019 12:38:49 +0000 (12:38 +0000)]
Merge "Remove dismiss action and associated event tag. Users expect the volume dialog to stay on screen after a press, like when interacting with the rest of the dialog." into qt-dev

5 years agoEnsure that hardware Bitmap has a ColorSpace
Leon Scroggins III [Tue, 9 Apr 2019 12:55:28 +0000 (08:55 -0400)]
Ensure that hardware Bitmap has a ColorSpace

Bug: 129355537
Test: I9e004fbb7c966bb58ae374087fecd66a1bb72346

android_view_ThreadedRenderer_createHardwareBitmapFromRenderNode in
SkiaGL could create an android::Bitmap without an SkColorSpace. Treat
HAL_DATASPACE_UNKNOWN as sRGB, as this is how we treat it internally.

Change-Id: Iad7f7d7cafce0a8759a84a4296ae5c3ce86dff4c
(cherry picked from commit 7fb4c9e4bb10e17d28a09bd84d364171359a1941)
Merged-In: Iad7f7d7cafce0a8759a84a4296ae5c3ce86dff4c

5 years agoMerge "MediaSessionService: Log more info on volume key event" into qt-dev
TreeHugger Robot [Wed, 10 Apr 2019 11:21:34 +0000 (11:21 +0000)]
Merge "MediaSessionService: Log more info on volume key event" into qt-dev

5 years agoMerge "Enforce NETWORK_STACK permission for calling NSS#forceUpdateIfaces" into qt-dev
Chiachang Wang [Wed, 10 Apr 2019 10:55:06 +0000 (10:55 +0000)]
Merge "Enforce NETWORK_STACK permission for calling NSS#forceUpdateIfaces" into qt-dev

5 years agoFix NPE in CompanionDeviceManagerService#unlockUser()
Michal Karpinski [Wed, 10 Apr 2019 09:44:48 +0000 (10:44 +0100)]
Fix NPE in CompanionDeviceManagerService#unlockUser()

Test: manual
Bug: 130221860
Change-Id: I77f59d3b60fb79fc3b975449903ad28b5b7893e2

5 years agoRemove dismiss action and associated event tag. Users expect the volume
Anthony Tripaldi [Wed, 10 Apr 2019 08:49:48 +0000 (04:49 -0400)]
Remove dismiss action and associated event tag. Users expect the volume
dialog to stay on screen after a press, like when interacting with the
rest of the dialog.

Bug:129977566
Test: manual
Change-Id: Ibafbfa91e54e375bb7f3ac17e85d2bb94a284e95

5 years agoMerge "Restrict updatable-media to android.media package." into qt-dev
Vladimir Marko [Wed, 10 Apr 2019 09:46:32 +0000 (09:46 +0000)]
Merge "Restrict updatable-media to android.media package." into qt-dev

5 years agoMerge "Fix Launcher crash while handling top resumed state" into qt-dev
TreeHugger Robot [Wed, 10 Apr 2019 09:07:35 +0000 (09:07 +0000)]
Merge "Fix Launcher crash while handling top resumed state" into qt-dev

5 years agoMerge "Handle cancellation properly for setDeviceCredentialAllowed(true)" into qt-dev
Kevin Chyn [Wed, 10 Apr 2019 08:34:34 +0000 (08:34 +0000)]
Merge "Handle cancellation properly for setDeviceCredentialAllowed(true)" into qt-dev

5 years agoRevert "Release bitmap reference right after Per85ComputeTask done its job."
Wu Ahan [Wed, 10 Apr 2019 07:41:33 +0000 (07:41 +0000)]
Revert "Release bitmap reference right after Per85ComputeTask done its job."

This reverts commit 1e0e143c40a83580b5ced3ee28407119c1acb217.

Reason for revert:
ART remove preloaded classes in ag/6987683 to prevent AsyncTask leakage.
1. android.content.AsyncTaskLoader$LoadTask
2. android.speech.tts.TextToSpeech$Connection$SetupConnectionAsyncTask

Bug: 124127996
Bug: 130206915
Test: Obtain CL ag/6987683 in local test environment.
Test: run "atest android.app.cts.WallpaperManagerTest".
Test: Observe AsyncTask do not cause bitmap object leak anymore.
Change-Id: I358756366fd9a08bbdd51e09f21fccafee7ad311

5 years agoMerge "Remove overlay logic from package manager and parser" into qt-dev
TreeHugger Robot [Wed, 10 Apr 2019 07:59:42 +0000 (07:59 +0000)]
Merge "Remove overlay logic from package manager and parser" into qt-dev

5 years agoMerge "Adding a new dimension in dimens_car.xml for the spacer between title and...
TreeHugger Robot [Wed, 10 Apr 2019 07:24:34 +0000 (07:24 +0000)]
Merge "Adding a new dimension in dimens_car.xml for the spacer between title and message in a dialog." into qt-dev

5 years agoMerge "Fixed jarring touch ripple effect when turning on/off battery saver from quick...
Shawn Lin [Wed, 10 Apr 2019 06:49:12 +0000 (06:49 +0000)]
Merge "Fixed jarring touch ripple effect when turning on/off battery saver from quick settings" into qt-dev

5 years agoEnforce NETWORK_STACK permission for calling NSS#forceUpdateIfaces
Chiachang Wang [Wed, 10 Apr 2019 06:24:41 +0000 (23:24 -0700)]
Enforce NETWORK_STACK permission for calling NSS#forceUpdateIfaces

ConnectivityManager and its usages are removed from
NetworkStatsService. After that, forceUpdateIfaces requires
information that only ConnectivityService has, hence
restricting the calling permission to NETWORK_STACK or
MAINLINE_NETWORK_STACK permission. The required permission
will be changed from READ_NETWORK_USAGE_HISTORY to
NETWORK_STACK or MAINLINE_NETWORK_STACK. This change would make
it impossible to call outside the system.

Bug: 126830974
Test: atest FrameworksNetTests
Merged-In: I1b26dc64eaab2151e6885fd01cc5e8d4e18c4e60
Change-Id: I4ea421e4126a45f65d25fe0bec74243a3b20aeab
(cherry picked from commit 6b895dea25b4fca87d275bb78367411623ded1d4)

5 years agoMerge "Always show error messages on bouncer" into qt-dev
TreeHugger Robot [Wed, 10 Apr 2019 06:35:32 +0000 (06:35 +0000)]
Merge "Always show error messages on bouncer" into qt-dev

5 years agoAvoid exception from 'adb shell ime enable/disable'
Yohei Yukawa [Wed, 10 Apr 2019 06:20:12 +0000 (23:20 -0700)]
Avoid exception from 'adb shell ime enable/disable'

This is a preparation to introduce CTS for per-profile IME.

Currently
  adb shell ime enable <ime id>
and
  adb shell ime disable <ime id>
can throw IllegalArgumentException when <ime id> is not recognized by
the system.  This makes some sense, but if we start supporting
'-u all' option it'd make more sense if it just shows an error message
rather than letting the command crash with throing an exception.

This behavior change also removes a limitation that developers cannot
use
  adb shell ime disable <ime id>
command to remove an IME ID from Settings.Secure.ENABLED_INPUT_METHODS
if that IME is not currently installed.

Bug: 120784635
Test: Manually verified as follows.
  1. Build aosp_blueline-userdebug and flash it
  2. adb shell ime enable com.example.android.softkeyboard/.SoftKeyboard
     -> "Unknown input method <IME ID here> cannot be enabled"
  3. adb shell ime disable com.example.android.softkeyboard/.SoftKeyboard
     -> "Input method <IME ID here>: already disabled"
Change-Id: Ib9be7700557f2f606c90d62f79ec3afca2f82c40

5 years agoRefactor s/TypeInfo/MimeTypeInfo/ per feedback.
Jeff Sharkey [Tue, 9 Apr 2019 16:15:09 +0000 (10:15 -0600)]
Refactor s/TypeInfo/MimeTypeInfo/ per feedback.

Bug: 128903949
Test: atest android.content.cts.ContentResolverTest
Change-Id: Idb9e63a68dc9ffe0c35ad3e6bff55aaa10320e81

5 years agoMerge "Clear calling identity before calling in package managerwq" into qt-dev
TreeHugger Robot [Wed, 10 Apr 2019 05:36:43 +0000 (05:36 +0000)]
Merge "Clear calling identity before calling in package managerwq" into qt-dev

5 years agoHandle cancellation properly for setDeviceCredentialAllowed(true)
Kevin Chyn [Tue, 26 Mar 2019 01:11:16 +0000 (18:11 -0700)]
Handle cancellation properly for setDeviceCredentialAllowed(true)

Keep the current auth session until ConfirmDeviceCredential succeeds
or fails. ConfirmDeviceCredential's BP and LSKF screens can be canceled
now.

Bug: 123378871
Bug: 128747871

Test: With modified BiometricPromptDemo, ConfirmDeviceCredential's
      BiometricPrompt and LSKF screens can be canceled

Change-Id: Icaf3f0c55b07fd138a2ee9d214941ea83408f0ee

5 years agoMerge "Add 5G evolution icon" into qt-dev
SongFerng Wang [Wed, 10 Apr 2019 03:09:07 +0000 (03:09 +0000)]
Merge "Add 5G evolution icon" into qt-dev

5 years agoMerge "Update version numbers to 0210000000" into qt-dev
Akshay Thakker [Wed, 10 Apr 2019 02:47:48 +0000 (02:47 +0000)]
Merge "Update version numbers to 0210000000" into qt-dev

5 years agoGuard against creating too many MobileSignalControllers
Evan Laird [Tue, 9 Apr 2019 20:24:27 +0000 (16:24 -0400)]
Guard against creating too many MobileSignalControllers

The PhoneStateListener that got added to NetworkControllerImpl used the
default (main) looper for its callbacks, which caused race conditions
when updating subscriptions. This resulted in zombie
MobileSignalControllers that were untracked and never stopped listening
for their updates.

To fix the problem we put the phone state listener on the same
background thread as the receiver handler, and also lock around updating
the subscriptions so that we can all have peace of mind.

This should fix a host of issues where the mobile signal is incorrectly
showing state such as disconnected or not showing the data type
indicator.

Fixes: 129717207
Test: visual; remove and insert sim and verify that the proper SIM state
is shown

Change-Id: Iace6a04c0629e24d2ef9c980a8de336a225d0f36

5 years agoMerge "Add AlbumColumns.ARTIST_ID." into qt-dev
Jeff Sharkey [Wed, 10 Apr 2019 02:13:26 +0000 (02:13 +0000)]
Merge "Add AlbumColumns.ARTIST_ID." into qt-dev

5 years agoMerge "[AWARE] Enable discovery/operation on 5G" into qt-dev
TreeHugger Robot [Wed, 10 Apr 2019 01:49:23 +0000 (01:49 +0000)]
Merge "[AWARE] Enable discovery/operation on 5G" into qt-dev

5 years agoFix Launcher crash while handling top resumed state
Louis Chang [Mon, 25 Mar 2019 07:49:14 +0000 (15:49 +0800)]
Fix Launcher crash while handling top resumed state

The process of current top resumed activity was killed. Before getting
the callbacks from binder death recipient, the process was being restarted
while bringing up other non-UI components - such as sending broadcast.
Since the top resumed activity was not being updated, ATM had to schedule
to the client for dropping the top resumed state after process bound.
So, exceptions thrown because it was illegal to drop the top resumed state
for a fresh client.

Check if necessary to update top resumed activity whenever the stack resumed
activity changes.

Bug: 128837461
Test: run emulator for 10 times
Test: atest ActivityLifecycleTopResumedStateTests
Test: atest ActivityLifecycleKeyguardTests
Test: atest ActivityLifecycleTests

Change-Id: Iefde9bbe5ae50f3a241235faa505a2e58ed681ee

5 years agoBinaryPushStateChanged enum updates
Howard Ro [Mon, 8 Apr 2019 05:17:58 +0000 (22:17 -0700)]
BinaryPushStateChanged enum updates

1. Updating enums as below
INSTALLER_ROLLBACK_CANCEL_STAGED_DELETE_SESSION_INITIATED -> INSTALLER_ROLLBACK_STAGED_CANCEL_REQUESTED
INSTALLER_ROLLBACK_CANCEL_STAGED_DELETE_SESSION_SUCCESS -> INSTALLER_ROLLBACK_STAGED_CANCEL_SUCCESS
INSTALLER_ROLLBACK_CANCEL_STAGED_DELETE_SESSION_FAILURE -> INSTALLER_ROLLBACK_STAGED_CANCEL_FAILURE

2. Removes INSTALLER_ROLLBACK_CANCEL_STAGED_REMOVE_FROM_QUEUE as it
means the same as INSTALLER_ROLLBACK_STAGED_CANCEL_SUCCESS

Bug: 130182007
Test: make
Change-Id: I25f610720a46858282adb724b14265a8c7af09f3

5 years agoMerge "AudioService: fix broadcast of ACTION_SPEAKERPHONE_STATE_CHANGED" into qt-dev
TreeHugger Robot [Wed, 10 Apr 2019 01:14:35 +0000 (01:14 +0000)]
Merge "AudioService: fix broadcast of ACTION_SPEAKERPHONE_STATE_CHANGED" into qt-dev

5 years agoMerge "Use Received Uri as Gateway Uri" into qt-dev
TreeHugger Robot [Wed, 10 Apr 2019 00:50:32 +0000 (00:50 +0000)]
Merge "Use Received Uri as Gateway Uri" into qt-dev

5 years agoMerge "AudioTrack: getLatency continues UnsupportedAppUsage" into qt-dev
Andy Hung [Wed, 10 Apr 2019 00:38:42 +0000 (00:38 +0000)]
Merge "AudioTrack: getLatency continues UnsupportedAppUsage" into qt-dev

5 years agoMerge "Adjust testapis/permissions for CTS tests" into qt-dev
TreeHugger Robot [Wed, 10 Apr 2019 00:37:32 +0000 (00:37 +0000)]
Merge "Adjust testapis/permissions for CTS tests" into qt-dev

5 years agoAlways show error messages on bouncer
Lucas Dupin [Wed, 10 Apr 2019 00:08:46 +0000 (17:08 -0700)]
Always show error messages on bouncer

The padlock icon and error field should always show
the error message, otherwise the user may end up on the
bouncer waiting for auth that already failed.

Fixes: 129802603
Test: manually swipe up and down
Change-Id: I0dcdd7ffda7684b8e1fded9eae0c85d9e113387a

5 years agoClear calling identity before calling in package managerwq
Svet Ganov [Wed, 10 Apr 2019 00:11:12 +0000 (17:11 -0700)]
Clear calling identity before calling in package managerwq

Test: manual

bug:130221551

Change-Id: I66cd11ad3475f168a2caf72183a184d7cbca302f

5 years agoClarified ContentCaptureCondition constructor.
Felipe Leme [Wed, 10 Apr 2019 00:04:18 +0000 (17:04 -0700)]
Clarified ContentCaptureCondition constructor.

Fixes: 130248145
Test: m -j frameworks/base/:doc-comment-check-docs

Change-Id: Ib3c7b01ccd3ec41ef553a000e69b12d269710a49

5 years agoMerge changes from topic "am-e391c592-eeb3-4cc9-85fd-fa5d3bf694c5" into oc-dev am...
Bryan Ferris [Tue, 9 Apr 2019 23:48:39 +0000 (16:48 -0700)]
Merge changes from topic "am-e391c592-eeb3-4cc9-85fd-fa5d3bf694c5" into oc-dev am: 2833e406e0 am: ed9361ce1c am: f5c11a0a27
am: f8db29bdf5

Change-Id: Icf1f25584abc2490a4651ea1bc115165c48974eb

5 years ago[automerger skipped] Added missing permission check to isPackageDeviceAdminOnAnyUser...
Varun Shah [Tue, 9 Apr 2019 23:35:50 +0000 (16:35 -0700)]
[automerger skipped] Added missing permission check to isPackageDeviceAdminOnAnyUser. am: 18e7dedf6c am: 5e3ef6a1ea am: 4ff24d34d3
am: 6b830afbad -s ours
am skip reason: change_id I36521fa43daab399e08869647326a7ac32d1e512 with SHA1 569ac173c1 is in history

Change-Id: I6e30910a4f35aa015f883d5e089517b3115a3c58

5 years agoOnly show 'scanning' animation on bouncer
Lucas Dupin [Tue, 9 Apr 2019 23:16:15 +0000 (16:16 -0700)]
Only show 'scanning' animation on bouncer

We're trying to minimize how much information the user
has to parse when authenticating.

Fixes: 130223968
Test: manually swipe up and down
Change-Id: I35fa0c417965dd64eefd67ec5a3b7b5076663752

5 years agoMerge "Validate zen policy/filter agreement" into qt-dev
TreeHugger Robot [Tue, 9 Apr 2019 23:32:30 +0000 (23:32 +0000)]
Merge "Validate zen policy/filter agreement" into qt-dev

5 years agoMerge "Pass through color modes in vendor range to SF" into qt-dev
Christine Franks [Tue, 9 Apr 2019 23:22:26 +0000 (23:22 +0000)]
Merge "Pass through color modes in vendor range to SF" into qt-dev

5 years agoMerge "[GPU Service] Query Game driver blacklists from DeviceConfig." into qt-dev
TreeHugger Robot [Tue, 9 Apr 2019 23:19:15 +0000 (23:19 +0000)]
Merge "[GPU Service] Query Game driver blacklists from DeviceConfig." into qt-dev

5 years agoReset system fixed to clean storage perm model 2
Philip P. Moltmann [Tue, 9 Apr 2019 22:25:05 +0000 (15:25 -0700)]
Reset system fixed to clean storage perm model 2

This is a temporary change and does not need to be shipped as the perm
model 2 never reached any public builds.

Test: Faked OTA and and saw system-fixed tags removed and correctly
      re-set only for the apps needed
Bug: 129422305

Change-Id: I2d3f42123f4175f2ac960c41c63acfc89145e15f

5 years agoMerge "Log authentication rejection" into qt-dev
Kevin Chyn [Tue, 9 Apr 2019 23:04:13 +0000 (23:04 +0000)]
Merge "Log authentication rejection" into qt-dev

5 years agoUse Received Uri as Gateway Uri
Shuo Qian [Tue, 9 Apr 2019 18:40:32 +0000 (11:40 -0700)]
Use Received Uri as Gateway Uri

Gateway information is the core component to perform redirection.
We should clarify the uri we received from
 CallRedirectionService is gateway Uri. And apply it in Telecom.

Test: Treehugger; Manual
Bug: 130048865
Change-Id: I3599377406b88751ee11139e9a1aa5afab734f7c
Merged-In: I3599377406b88751ee11139e9a1aa5afab734f7c

5 years agoMerge "Sharesheet - Add outline to image preview" into qt-dev
TreeHugger Robot [Tue, 9 Apr 2019 22:47:21 +0000 (22:47 +0000)]
Merge "Sharesheet - Add outline to image preview" into qt-dev

5 years agoMerge "stats_log_api_gen: Minor printf format fix" into qt-dev
TreeHugger Robot [Tue, 9 Apr 2019 22:35:14 +0000 (22:35 +0000)]
Merge "stats_log_api_gen: Minor printf format fix" into qt-dev

5 years agoMerge changes from topic "am-e391c592-eeb3-4cc9-85fd-fa5d3bf694c5" into oc-dev am...
Bryan Ferris [Tue, 9 Apr 2019 22:29:03 +0000 (15:29 -0700)]
Merge changes from topic "am-e391c592-eeb3-4cc9-85fd-fa5d3bf694c5" into oc-dev am: 2833e406e0 am: ed9361ce1c
am: f5c11a0a27

Change-Id: Ia28625d8b0b2f596fe00efa02ecb0c0a57d36354

5 years agoMerge "Remove the ime listener to instead track from nav hints icon change" into...
TreeHugger Robot [Tue, 9 Apr 2019 22:24:49 +0000 (22:24 +0000)]
Merge "Remove the ime listener to instead track from nav hints icon change" into qt-dev

5 years agoUpdate car paddings
Yabin Huang [Mon, 8 Apr 2019 23:18:46 +0000 (16:18 -0700)]
Update car paddings

Bug: 130056555
Test: manual
Change-Id: Ieec5f2af072120f986ab53264d3c7fe49f544bca

5 years agoRemove overlay logic from package manager and parser
Mårten Kongstad [Thu, 6 Dec 2018 12:40:12 +0000 (13:40 +0100)]
Remove overlay logic from package manager and parser

Consolidate all knowledge about overlays to the overlay manager (except
static RROs that target "android": these are handled from native code in
order to be loaded as part of Zygote boot).

This removes the ability to overlay AndroidManifest.xml. There are some
use-cases where overlaying a manifest makes sense [e.g. changing an
app's label or icon or what components should be enabled by default] but
the opposite is also true [e.g. permissions]. Support for manifests can
be introduced again gradually with these goals in mind:

  - should not happen during parsing [which represents the immutable
    truth as read from disk]

  - should happen during scanning [which applies mutable settings to a
    parsed package]

  - be limited in what can be modified

Bug: 78808368
Test: builds, boots
Change-Id: I12c16fce65b1e68876f0c9acd7e2a61405e64435
(cherry picked from commit 588784dc259c23782db6a6c93054056fca1dbd77)

5 years agoAdded missing permission check to isPackageDeviceAdminOnAnyUser. am: 18e7dedf6c am...
Varun Shah [Tue, 9 Apr 2019 22:17:46 +0000 (15:17 -0700)]
Added missing permission check to isPackageDeviceAdminOnAnyUser. am: 18e7dedf6c am: 5e3ef6a1ea
am: 4ff24d34d3

Change-Id: If9124acbd9d0c7e123d14a80b245121c27b56d37

5 years agoMerge "OP_REQUEST_INSTALL_PACKAGES denied by default" into qt-dev
TreeHugger Robot [Tue, 9 Apr 2019 22:02:30 +0000 (22:02 +0000)]
Merge "OP_REQUEST_INSTALL_PACKAGES denied by default" into qt-dev

5 years agoMerge "Respect the autoMirror attr on drawable to flip horizontally" into qt-dev
TreeHugger Robot [Tue, 9 Apr 2019 22:01:17 +0000 (22:01 +0000)]
Merge "Respect the autoMirror attr on drawable to flip horizontally" into qt-dev

5 years agoDngCreator: scale lens distortion paramters
Yin-Chia Yeh [Wed, 3 Apr 2019 19:43:09 +0000 (12:43 -0700)]
DngCreator: scale lens distortion paramters

To create a zoom effect on rendered DNG such that all pixels on
the rendered image is sampled within the precorrection array of
input RAW image.

Test: check DNG output on pixel 3 (and also an exaggerated lens
      distortion coefficients that scale up the image almost 2x)
Bug: 118690688

Change-Id: If6c32a428f9460e490e999abd53fe8ad467e66a2

5 years agoMerge "Update Javadocs for CellInfo Classes" into qt-dev
Nathan Harold [Tue, 9 Apr 2019 21:52:48 +0000 (21:52 +0000)]
Merge "Update Javadocs for CellInfo Classes" into qt-dev

5 years agoMerge "Disable quickstep onboarding when gestural nav is on until we have a new onboa...
Tracy Zhou [Tue, 9 Apr 2019 21:45:36 +0000 (21:45 +0000)]
Merge "Disable quickstep onboarding when gestural nav is on until we have a new onboarding model." into qt-dev

5 years agoFix log spam from DefaultPermissionGrantPolicy
Eugene Susla [Tue, 9 Apr 2019 21:08:09 +0000 (14:08 -0700)]
Fix log spam from DefaultPermissionGrantPolicy

Test: presubmit
Fixes: 126329015111625537

Change-Id: Ic2498d46ecd0c2f42dc6c74bdd3544928ce6feda

5 years agoFix remove-before-add for IpSecService RefcountedResource
Benedict Wong [Tue, 9 Apr 2019 18:31:46 +0000 (11:31 -0700)]
Fix remove-before-add for IpSecService RefcountedResource

This patch fixes a bug where if a binder dies before the linkToDeath
call, the cleanup will be performed before the entry is added to the
array. While it is safe in that quotas and tracking performs as per
normal, the RefcountedRecord may not be cleaned up.

Rethrowing this exception is safe, since the only paths that would hit
this are all on binder threads coming from applications. Further, it
seems there is only one real way of this getting hit - if the app that
called the creation died during the binder call.

Bug: 126802451
Test: Compiled, CTS tests passing
Change-Id: Ib955acaa5e498c0e977cb5f2e48cffbc9fea8c7c
Merged-In: I6db75853da9f29e1573512e26351623f22770c5d
Merged-In: I416c2e43961ec0e1cc6b2fbcef970fbce858603b
Merged-In: Ib955acaa5e498c0e977cb5f2e48cffbc9fea8c7c
(cherry picked from commit 6c089d90bfa728e9842de0f5947f0c557c62dea0)

5 years agoMerge "Fixes default setting for showing MultiUserSwitch" into qt-dev
TreeHugger Robot [Tue, 9 Apr 2019 21:31:27 +0000 (21:31 +0000)]
Merge "Fixes default setting for showing MultiUserSwitch" into qt-dev