OSDN Git Service

android-x86/frameworks-base.git
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 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 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 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 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 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 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 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 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 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

5 years agoMerge "Allow GSM RSSI levels to be customized by CarrierConfig" into qt-dev
TreeHugger Robot [Tue, 9 Apr 2019 21:23:37 +0000 (21:23 +0000)]
Merge "Allow GSM RSSI levels to be customized by CarrierConfig" into qt-dev

5 years agoMerge "Do not get app entry if it's a hidden module." into qt-dev
TreeHugger Robot [Tue, 9 Apr 2019 21:19:24 +0000 (21:19 +0000)]
Merge "Do not get app entry if it's a hidden module." into qt-dev

5 years agoAdding a new dimension in dimens_car.xml for the spacer between title and message...
Priyank Singh [Tue, 9 Apr 2019 02:28:18 +0000 (19:28 -0700)]
Adding a new dimension in dimens_car.xml for the spacer between title and message in a dialog.

Bug: 124232382
Test: Manual
Change-Id: If096bdfffcaa48f853d5adeb4ca14fcec45e3c12

5 years agoMerge "Implement the new PiP animation (fade-in)." into qt-dev
Tracy Zhou [Tue, 9 Apr 2019 21:06:28 +0000 (21:06 +0000)]
Merge "Implement the new PiP animation (fade-in)." into qt-dev

5 years agostats_log_api_gen: Minor printf format fix
Greg Kaiser [Mon, 8 Apr 2019 13:25:21 +0000 (06:25 -0700)]
stats_log_api_gen: Minor printf format fix

We use "%zu" for a size_t argumet.

Test: TreeHugger
Bug: 126134616
Change-Id: I02916829dfb71a63f78eda0d45129b4dc0732a82
Merged-In: I02916829dfb71a63f78eda0d45129b4dc0732a82
(cherry picked from commit f87e93835a9cbebec2a46124f0f0b7e967de0d52)

5 years agoBubbleData [4/n]: Cleanup StackView initializiation
Mark Renouf [Tue, 9 Apr 2019 14:17:40 +0000 (10:17 -0400)]
BubbleData [4/n]: Cleanup StackView initializiation

Make lazy-init of BubbleStackView more explicit.

Bug: 123542488
Test: atest BubbleControllerTest
Change-Id: Ibd51517b606e65124d16d6823b1e8c2a9f5da51c

5 years agoOP_REQUEST_INSTALL_PACKAGES denied by default
Suprabh Shukla [Fri, 5 Apr 2019 23:34:19 +0000 (16:34 -0700)]
OP_REQUEST_INSTALL_PACKAGES denied by default

Some system apps may download unknown content and the user should
be explicitly asked whether they trust these files. System apps should
explicitly use the extra NOT_UNKNOWN_SOURCE to bypass this check.

Test: Builds, boots, existing tests pass:
atest CtsPackageInstallTestCases

Locally verified they pass if CtsPackageInstallTestCases.apk was signed by
the platform cert.

Bug: 123700348
Change-Id: I2578251906f6656b83464d1c4fc4db99165841c9

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

Change-Id: I8c538a46f02f4d46ddc5d78ee19612649c15a46c

5 years agoBubbleData [3/n]: separate Bubble view inflation
Mark Renouf [Fri, 5 Apr 2019 19:51:51 +0000 (15:51 -0400)]
BubbleData [3/n]: separate Bubble view inflation

Allow creating a Bubble and inflating views later. This will be
used to allow BubbleController to create the Bubble object, but
BubbleStackView manage views.

Bug: 123542488
Test: atest BubbleControllerTest
Change-Id: I7bfe608f48a244e03e63ee458069ae10c0d541c3

5 years agoMerge "Add "Disconnected" subtitle on disconnected device" into qt-dev
TreeHugger Robot [Tue, 9 Apr 2019 20:53:18 +0000 (20:53 +0000)]
Merge "Add "Disconnected" subtitle on disconnected device" into qt-dev

5 years agoMerge "Define a category for "file management" apps." into qt-dev
Jeff Sharkey [Tue, 9 Apr 2019 20:51:31 +0000 (20:51 +0000)]
Merge "Define a category for "file management" apps." into qt-dev

5 years agoAdded missing permission check to isPackageDeviceAdminOnAnyUser. am: 18e7dedf6c
Varun Shah [Tue, 9 Apr 2019 20:46:55 +0000 (13:46 -0700)]
Added missing permission check to isPackageDeviceAdminOnAnyUser. am: 18e7dedf6c
am: 5e3ef6a1ea

Change-Id: I60be094774400df44d79a0291858a0783557831b

5 years agoMerge "Add a list to track unfinished tasks and dumpStackTraces" into qt-dev
TreeHugger Robot [Tue, 9 Apr 2019 20:44:49 +0000 (20:44 +0000)]
Merge "Add a list to track unfinished tasks and dumpStackTraces" into qt-dev

5 years agoMerge "Removed log spam from the Zygote." into qt-dev
TreeHugger Robot [Tue, 9 Apr 2019 20:42:36 +0000 (20:42 +0000)]
Merge "Removed log spam from the Zygote." into qt-dev

5 years agoAudioService: fix broadcast of ACTION_SPEAKERPHONE_STATE_CHANGED
Jean-Michel Trivi [Tue, 9 Apr 2019 20:38:18 +0000 (13:38 -0700)]
AudioService: fix broadcast of ACTION_SPEAKERPHONE_STATE_CHANGED

When broadcasting ACTION_SPEAKERPHONE_STATE_CHANGED:
- clear calling identity
- send to all users

Bug: 129871987
Test: see bug
Change-Id: I7dbe68a179d3012f1c38d866e8528eed25e109e6

5 years agoAudioTrack: getLatency continues UnsupportedAppUsage
Andy Hung [Tue, 9 Apr 2019 20:23:50 +0000 (13:23 -0700)]
AudioTrack: getLatency continues UnsupportedAppUsage

Exoplayer needs this API for devices with timestamp issues.

Test: compiles
Bug: 112561552
Bug: 130237544
Change-Id: I136d80011765ac83be8f5258c4ba139ee1f1ef75

5 years agoMerge "Don't use noteop for preflight checks" into qt-dev
TreeHugger Robot [Tue, 9 Apr 2019 20:29:24 +0000 (20:29 +0000)]
Merge "Don't use noteop for preflight checks" into qt-dev

5 years ago[AWARE] Enable discovery/operation on 5G
Etan Cohen [Tue, 9 Apr 2019 20:10:47 +0000 (13:10 -0700)]
[AWARE] Enable discovery/operation on 5G

Speed up discovery, increase robustness.

Bug: 129151127
Test: atest android.net.wifi
Test: atest atest com.android.server.wifi
Test: ACTS ThroughputTest:test_iperf_single_ndp_aware_only_ib
Change-Id: I83cf0720d07e5623b7861bf4cd73344bcff90ba5

5 years agoMerge "OMS: add internal tests" into qt-dev
Todd Kennedy [Tue, 9 Apr 2019 20:20:49 +0000 (20:20 +0000)]
Merge "OMS: add internal tests" into qt-dev

5 years agoMerge changes from topic "am-e391c592-eeb3-4cc9-85fd-fa5d3bf694c5" into oc-dev
Bryan Ferris [Tue, 9 Apr 2019 20:20:18 +0000 (13:20 -0700)]
Merge changes from topic "am-e391c592-eeb3-4cc9-85fd-fa5d3bf694c5" into oc-dev
am: 2833e406e0

Change-Id: Iad49fea0efffc9766797f590b9140cb4bb73a3fd

5 years agoMerge "Make sure APN type ALL does not include types that are not wild cardable"...
TreeHugger Robot [Tue, 9 Apr 2019 20:18:03 +0000 (20:18 +0000)]
Merge "Make sure APN type ALL does not include types that are not wild cardable" into qt-dev

5 years agoMerge "Lock more of the things" into qt-dev
TreeHugger Robot [Tue, 9 Apr 2019 19:56:25 +0000 (19:56 +0000)]
Merge "Lock more of the things" into qt-dev

5 years agoMerge "Add two classes to blacklist" into qt-dev
Mathieu Chartier [Tue, 9 Apr 2019 19:54:39 +0000 (19:54 +0000)]
Merge "Add two classes to blacklist" into qt-dev

5 years agoRespect the autoMirror attr on drawable to flip horizontally
Matthew Ng [Tue, 9 Apr 2019 00:29:45 +0000 (17:29 -0700)]
Respect the autoMirror attr on drawable to flip horizontally

This fixes the back button from rotating on RTL.

Fixes: 116811826
Test: use rtl with security and 3 button mode, unlock device
Change-Id: I5e92252a3a29301b9839628ee5b986226af16d8c

5 years agoMerge changes from topic "am-e391c592-eeb3-4cc9-85fd-fa5d3bf694c5" into oc-dev
Bryan Ferris [Tue, 9 Apr 2019 19:46:49 +0000 (19:46 +0000)]
Merge changes from topic "am-e391c592-eeb3-4cc9-85fd-fa5d3bf694c5" into oc-dev

* changes:
  [automerger] [RESTRICT AUTOMERGE] Added missing permission check to isPackageDeviceAdminOnAnyUser. am: 7b5a576965 am: 0494ac6568 am: 70b534799b am: 49a505f4f9 skipped: 022bfaa808
  [automerger] [RESTRICT AUTOMERGE] Added missing permission check to isPackageDeviceAdminOnAnyUser. am: 7b5a576965 am: 0494ac6568 am: 70b534799b am: 49a505f4f9
  [automerger] [RESTRICT AUTOMERGE] Added missing permission check to isPackageDeviceAdminOnAnyUser. am: 7b5a576965 am: 0494ac6568 am: 70b534799b
  [automerger] [RESTRICT AUTOMERGE] Added missing permission check to isPackageDeviceAdminOnAnyUser. am: 7b5a576965 am: 0494ac6568
  [automerger] [RESTRICT AUTOMERGE] Added missing permission check to isPackageDeviceAdminOnAnyUser. am: 7b5a576965
  [RESTRICT AUTOMERGE] Added missing permission check to isPackageDeviceAdminOnAnyUser.

5 years agoMerge "Allow wallpapers and IMEs to get location if needed" into qt-dev
TreeHugger Robot [Tue, 9 Apr 2019 19:31:45 +0000 (19:31 +0000)]
Merge "Allow wallpapers and IMEs to get location if needed" into qt-dev

5 years agoDisable quickstep onboarding when gestural nav is on until we have a new
Tracy Zhou [Tue, 9 Apr 2019 18:12:14 +0000 (11:12 -0700)]
Disable quickstep onboarding when gestural nav is on until we have a new
onboarding model.

Fixes: 130205419
Test: Manual
Change-Id: Idfb881abe9fa26ad9a30a4812ea7d83d7707337d

5 years agoAdded missing permission check to isPackageDeviceAdminOnAnyUser.
Varun Shah [Tue, 9 Apr 2019 19:12:19 +0000 (12:12 -0700)]
Added missing permission check to isPackageDeviceAdminOnAnyUser.
am: 18e7dedf6c

Change-Id: I3cd02487a2f39775e86c22ed12fb0fae45198ba4

5 years agoSharesheet - Add outline to image preview
Matt Pietal [Tue, 9 Apr 2019 14:09:12 +0000 (10:09 -0400)]
Sharesheet - Add outline to image preview

Support thin border around content preview images

Bug: 129979196
Test: Visual inspection
Change-Id: I3984a22507352cc3de8fd38ee3ded39a63bb442d

5 years agoLog authentication rejection
Kevin Chyn [Tue, 9 Apr 2019 19:10:11 +0000 (12:10 -0700)]
Log authentication rejection

Bug: 130043912

Test: Both authenticate and reject logs seen now
Change-Id: I398c95a9c439575e126e710e16ed266c51c00122

5 years agoAdd a list to track unfinished tasks and dumpStackTraces
Hui Yu [Tue, 2 Apr 2019 23:19:12 +0000 (16:19 -0700)]
Add a list to track unfinished tasks and dumpStackTraces

Previously exception message only prints unstarted tasks in the thread
pool. We also want to know the started but unfinished tasks. Add an
array list mPendingTask to track all unfinished tasks.

Also dumpStackTraces() so we can tell why the task in the threadpool
failed to finish on time.

This will help us to find root cause of IllegalStateException in
SystemServerInitThreadPool.shutdown().

Bug: 128928718
Test: Reboot device, adb logcat | grep SystemServerInitThreadPool. Force
a task to sleep for 30 seconds, observe IllegalStateException with
unfinished task printed and stack traces is dumped in a ANR file.

Change-Id: I98ba86e58ae1f2e1ab2b3f8ea3724c6b70a796eb

5 years agoUpdate Javadocs for CellInfo Classes
Nathan Harold [Tue, 9 Apr 2019 02:21:02 +0000 (19:21 -0700)]
Update Javadocs for CellInfo Classes

-Add nullability annotations for getMccString
 and getMncString.
-Add IntRange to CellSignalStrength#getLevel()
-Fix a few docstring errors.

Bug: 129902021
Test: make && make update-api && make offline-sdk-docs
      (no functional change)

Change-Id: I61d645f79a23226ab902fc657fe7b07ffd674a0b
(cherry picked from commit b858d8c682261aae4ab5b99e5c0c99b627b329cb)

5 years agoMerge "SurfaceControl: Fix captureLayers JNI" into qt-dev
TreeHugger Robot [Tue, 9 Apr 2019 18:20:54 +0000 (18:20 +0000)]
Merge "SurfaceControl: Fix captureLayers JNI" into qt-dev