OSDN Git Service

android-x86/frameworks-base.git
5 years agoRename capabilities to adjustments
Julia Reynolds [Wed, 10 Apr 2019 16:43:27 +0000 (12:43 -0400)]
Rename capabilities to adjustments

To match existing API

Test: make, cts
Fixes: 130224929
Change-Id: I881ce11b583b389ee43bad6b45f837c85f949aa5

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 "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 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 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 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 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 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 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 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 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 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

5 years agoMerge "Remove pending callback from AttentionManager" into qt-dev
TreeHugger Robot [Tue, 9 Apr 2019 18:20:34 +0000 (18:20 +0000)]
Merge "Remove pending callback from AttentionManager" into qt-dev

5 years agoDon't use noteop for preflight checks
Chad Brubaker [Tue, 9 Apr 2019 02:19:48 +0000 (19:19 -0700)]
Don't use noteop for preflight checks

Test: apps don't show as accessing location on start
Fixes: 130187488
Change-Id: Iacd7edbadab64f43229b5d6f8056bb076c4f280c

5 years agoMerge "Fix Display White Balance color temperature on enable" into qt-dev
TreeHugger Robot [Tue, 9 Apr 2019 18:14:24 +0000 (18:14 +0000)]
Merge "Fix Display White Balance color temperature on enable" into qt-dev

5 years agoMerge "Update AppCompacted Action enum." into qt-dev
TreeHugger Robot [Tue, 9 Apr 2019 18:04:42 +0000 (18:04 +0000)]
Merge "Update AppCompacted Action enum." into qt-dev

5 years agoMerge changes from topic "tdscdma-rscp" into qt-dev
Nathan Harold [Tue, 9 Apr 2019 18:03:31 +0000 (18:03 +0000)]
Merge changes from topic "tdscdma-rscp" into qt-dev

* changes:
  Fix getLevel for CellSignalStrengthTdscdma
  Rename LevelCalculationMethod Constant

5 years agoFixes default setting for showing MultiUserSwitch
Fabian Kozynski [Tue, 9 Apr 2019 18:00:06 +0000 (14:00 -0400)]
Fixes default setting for showing MultiUserSwitch

By default, UserManager enables UserSwitch if no decission has been made
before. However, in QS, we want the UserSwitcher not to show unless the
user has explicitly enabled UserSwitch

Fixes: 129898837
Test: manual, after Full wipe
Change-Id: Ib2a0c10dff910199ce5c60d9e578efee3899cbb9

5 years agoAdjust testapis/permissions for CTS tests
Julia Reynolds [Mon, 8 Apr 2019 14:35:40 +0000 (10:35 -0400)]
Adjust testapis/permissions for CTS tests

Test: cts
Bug: 127341023
Change-Id: Ice19dc337a06a3f20edca583ecbe5ef3148fd96d

5 years agoMerge "Check that Account Parcel has name and type." into qt-dev
Dmitry Dementyev [Tue, 9 Apr 2019 17:55:13 +0000 (17:55 +0000)]
Merge "Check that Account Parcel has name and type." into qt-dev

5 years agoMerge "Change SUPL network request parameters for requestRouteToHostAddress" into...
Anil Admal [Tue, 9 Apr 2019 17:54:21 +0000 (17:54 +0000)]
Merge "Change SUPL network request parameters for requestRouteToHostAddress" into qt-dev

5 years agoAdd 5G evolution icon
SongFerngWang [Thu, 21 Mar 2019 15:14:20 +0000 (23:14 +0800)]
Add 5G evolution icon

This add the 5GE icon to the system UI for specific carriers
LTE CA network.

Bug: 124768697
Test: build & manually test:
fake the operator name with pattern, and check the status bar data icon.

Change-Id: Ife0401219138c7ed22e7bfbd4d5e8648c54a98a8
Merged-In: Ife0401219138c7ed22e7bfbd4d5e8648c54a98a8
(cherry picked from commit 2d178eaabb90109e6dd2248ae642403f9a4171ec)

5 years agoMerge "notifyUserMobileDataStateChangedForPhoneId does not set mUserMobileDataState...
SongFerng Wang [Tue, 9 Apr 2019 17:53:43 +0000 (17:53 +0000)]
Merge "notifyUserMobileDataStateChangedForPhoneId does not set mUserMobileDataState." into qt-dev

5 years agoPass through color modes in vendor range to SF
Christine Franks [Sat, 6 Apr 2019 01:33:55 +0000 (18:33 -0700)]
Pass through color modes in vendor range to SF

Bug: 129599616
Test: atest FrameworksServicesTests:DisplayTransformManagerTest
Change-Id: Ie2403f51f3b9b06a56f5fbd0081b84a01f80330d

5 years agoValidate zen policy/filter agreement
Julia Reynolds [Tue, 9 Apr 2019 14:48:43 +0000 (10:48 -0400)]
Validate zen policy/filter agreement

Test: atest
Fixes: 130205844
Change-Id: I734e4364b2af1b35eaad7c99d437e90f6fb0fcf4

5 years agoFix Display White Balance color temperature on enable
Daniel Solomon [Mon, 8 Apr 2019 21:30:51 +0000 (14:30 -0700)]
Fix Display White Balance color temperature on enable

Currently the ambient-to-display color temperature spline is applied to
all color temperature values, including the placeholder value -1.0 that
is used when DWB is first enabled. When this happens, display color
temperature is first set to its lowest value, and is then set to a
meaningful value when the sensor updates its first reading. This
behavior is incorrect.

To fix this, check for a valid color temperature value
before applying the spline.

Bug 130137407
Test: manual

Change-Id: I67a06504e499411fd34e05569e9cd0cbc9f81df1

5 years agoLock more of the things
Julia Reynolds [Mon, 8 Apr 2019 18:42:53 +0000 (14:42 -0400)]
Lock more of the things

Specifically, access to PackagePreferences

Test: atest
Bug: 129444912
Change-Id: Ia2ff46fff433333c76f0898a68b9230dcfb253ee

5 years agoAllow GSM RSSI levels to be customized by CarrierConfig
andychou [Tue, 9 Apr 2019 06:50:31 +0000 (14:50 +0800)]
Allow GSM RSSI levels to be customized by CarrierConfig

Add carrier config gsm_rssi_thresholds_int_array and mapping level
according to config

BUG: 123528673
Test: build pass and override carrierconfig to test
Change-Id: I61afd1f07564c0df886b0e30d27ea2a059b484dc
Merged-In: I61afd1f07564c0df886b0e30d27ea2a059b484dc
(cherry picked from commit b80dbce9a3b907bd5cc81984fe4f472833c030f1)

5 years agoImplement the new PiP animation (fade-in).
Tracy Zhou [Mon, 8 Apr 2019 07:32:40 +0000 (00:32 -0700)]
Implement the new PiP animation (fade-in).

The new fully gestural navigation changes how user goes home from an
app as well as the animation of the app transition. The current PiP animation (bounds) is not compatible with the new model because of the direction of movements. Instead of animating bounds, we can fade the PiP window in after app closing animation finishes.

Fixes: 122609330
Test: 1. Open youtube, play a video, tap home to observe the new PiP
animation (demo video attached in the ticket b/122609330) 2. With gestural nav on, observe pip transition when swiping up to home.
atest ActivityManagerPinnedStackTests
atest BoundsAnimationControllerTests
atest RecentsAnimationTestTest

Change-Id: I28eeb1aa99c4fd569845ca7a42561f6b20796f9b

5 years agoMerge "Added documentation to note onDisconnected() should not make calls to their...
Adam He [Tue, 9 Apr 2019 17:37:07 +0000 (17:37 +0000)]
Merge "Added documentation to note onDisconnected() should not make calls to their respective managers." into qt-dev

5 years agoAdd two classes to blacklist
Mathieu Chartier [Tue, 9 Apr 2019 16:53:55 +0000 (09:53 -0700)]
Add two classes to blacklist

Added these classes to prevent initialization of AsyncTask since
initializing AsyncTask may cause memory leaks.

Bug: 130206915
Test: make
Test: look at classes initialized during preloading
Change-Id: I6bacbbdf61d8a782d88debc29d9f0ca29d273888

5 years agoRemoved log spam from the Zygote.
Chris Wailes [Mon, 8 Apr 2019 22:52:40 +0000 (15:52 -0700)]
Removed log spam from the Zygote.

This patch removes several debugging log messages.  These messages were
useful when the `FDs to ignore` list was usually empty, but with the
addition of USAPs this has become spammy.

(cherry picked from commit da0a9cd05c4e2860c91e2ac31285526c041a5b85)

Test: Build
Bug: 130172109
Change-Id: Id166990a63f20efb3bf6ffd5b697efd436d50921
Merged-In: Id166990a63f20efb3bf6ffd5b697efd436d50921

5 years agoMerge "AudioService: add scheduleLoadSoundEffects" into qt-dev
TreeHugger Robot [Tue, 9 Apr 2019 17:17:01 +0000 (17:17 +0000)]
Merge "AudioService: add scheduleLoadSoundEffects" into qt-dev

5 years agoMerge "Add comments in grouping APIs to clarify possible exceptions." into qt-dev
Xiangyu/Malcolm Chen [Tue, 9 Apr 2019 17:13:35 +0000 (17:13 +0000)]
Merge "Add comments in grouping APIs to clarify possible exceptions." into qt-dev

5 years agoRemove pending callback from AttentionManager
Alex Salo [Sat, 6 Apr 2019 21:57:30 +0000 (14:57 -0700)]
Remove pending callback from AttentionManager

a) PendingCalback -> CurrentCallback + isDispatched + isFufilled
b) Simplify the cancellation logic. Only AttentionService should issue
specific failure codes, Manager should only issue "CANCELLED" if can't
reache the service

Bug: 111939367
Test: manually verified the demo worked, working on both CTS and unit
tests

Change-Id: Ief63b01a958bd67badd4d7ed8df9749baabb16f4

5 years agoMerge "Tweaked the rounded corners when turning off" into qt-dev
TreeHugger Robot [Tue, 9 Apr 2019 16:29:53 +0000 (16:29 +0000)]
Merge "Tweaked the rounded corners when turning off" into qt-dev

5 years agoAdd AlbumColumns.ARTIST_ID.
Jeff Sharkey [Tue, 9 Apr 2019 16:11:25 +0000 (10:11 -0600)]
Add AlbumColumns.ARTIST_ID.

As pointed out by developers, we already have ARTIST, so we should
also have ARTIST_ID.

Bug: 130193406
Test: atest --test-mapping packages/providers/MediaProvider
Change-Id: I46b4de38a08a1ebb6951d8329070438d142888ad