OSDN Git Service

android-x86/frameworks-base.git
5 years agoCheck device owner by callingUid in ActivityStarter
Ricky Wai [Wed, 10 Apr 2019 17:40:17 +0000 (18:40 +0100)]
Check device owner by callingUid in ActivityStarter

Bug: 129565838
Test: atest ActivityStarterTests
Change-Id: Ic75a3198f7de34078ba3b9c794db893779e7bb77

5 years agoMerge "Fix isExternalStorageSandboxed() bug." into qt-dev
Jeff Sharkey [Fri, 5 Apr 2019 15:18:23 +0000 (15:18 +0000)]
Merge "Fix isExternalStorageSandboxed() bug." into qt-dev

5 years agoMerge "Expose notification guts on menu shown" into qt-dev
TreeHugger Robot [Fri, 5 Apr 2019 15:05:15 +0000 (15:05 +0000)]
Merge "Expose notification guts on menu shown" into qt-dev

5 years agoMerge "Update icon for Calendar permission." into qt-dev
TreeHugger Robot [Fri, 5 Apr 2019 14:26:14 +0000 (14:26 +0000)]
Merge "Update icon for Calendar permission." into qt-dev

5 years agoMerge "fix nullability" into qt-dev
Todd Kennedy [Fri, 5 Apr 2019 14:16:37 +0000 (14:16 +0000)]
Merge "fix nullability" into qt-dev

5 years agoMerge "Sharesheet - Limit EXTRA_INITIAL_INTENTS to 2" into qt-dev
TreeHugger Robot [Fri, 5 Apr 2019 14:10:41 +0000 (14:10 +0000)]
Merge "Sharesheet - Limit EXTRA_INITIAL_INTENTS to 2" into qt-dev

5 years agoMerge "Update theme icon packs." into qt-dev
TreeHugger Robot [Fri, 5 Apr 2019 14:08:52 +0000 (14:08 +0000)]
Merge "Update theme icon packs." into qt-dev

5 years agoMerge "Stores serialized entity data to the extras" into qt-dev
TreeHugger Robot [Fri, 5 Apr 2019 13:26:20 +0000 (13:26 +0000)]
Merge "Stores serialized entity data to the extras" into qt-dev

5 years agoMerge "Fix rollbacks in multi-user case." into qt-dev
Narayan Kamath [Fri, 5 Apr 2019 12:39:42 +0000 (12:39 +0000)]
Merge "Fix rollbacks in multi-user case." into qt-dev

5 years agoSharesheet - Limit EXTRA_INITIAL_INTENTS to 2
Matt Pietal [Fri, 5 Apr 2019 12:32:47 +0000 (08:32 -0400)]
Sharesheet - Limit EXTRA_INITIAL_INTENTS to 2

Will eventually merge with suggested apps

Bug: 129979509
Test: ChooserActivityTest
Change-Id: I0e5f5a42155c83c77c6f6e355289218bc88033e7

5 years agoFix rollbacks in multi-user case.
Richard Uhler [Mon, 1 Apr 2019 12:02:31 +0000 (13:02 +0100)]
Fix rollbacks in multi-user case.

There are a few assumptions in the rollback manager that fail in the
multi-user case that need to be fixed:
* getAllSessions only returns sessions for the specific user.
* Session callbacks are only called on sessions associated with the
  registered user.
* getPackageInfo only returns info for the specific user.

Fix these issues so that rollbacks will work properly, in particular
when the initial install session is owned by a non-system user.

Bug: 129809507
Bug: 129397974

Test: On single user device: atest RollbackTest StagedRollbackTest
Test: On primary user of multi-user device: atest RollbackTest StagedRollbackTest
Test: On multi user device manually:
    adb install RollbackTestAppAv1.apk
    adb install --user 10 --enable-rollback RollbackTestAppAv2.apk
    -- verify the install succeeded --
    adb shell pm rollback-app com.android.tests.rollback.testapp.A
    -- verify the rollback succeeded --

Test: On multi user device manually:
    adb install RollbackTestAppAv1.apk
    adb install --staged --user 10 --enable-rollback RollbackTestAppAv2.apk
    adb reboot
    -- verify the install succeeded --
    adb shell pm rollback-app com.android.tests.rollback.testapp.A
    adb reboot
    -- verify the rollback succeeded --

(cherry picked from commit d81ff978667a776884362ef2461b3015c56117d1)

Merged-In: I1a7cf101b3bc3575421629c4bf0ff63418eb8731
Change-Id: I1a7cf101b3bc3575421629c4bf0ff63418eb8731

5 years agoMerge "Fast follow-on unit tests for HashedStringCache" into qt-dev
Susi Kharraz-Post [Fri, 5 Apr 2019 11:35:38 +0000 (11:35 +0000)]
Merge "Fast follow-on unit tests for HashedStringCache" into qt-dev

5 years agoMerge "Refactor PackageWatchdog explicit health checks" into qt-dev
TreeHugger Robot [Fri, 5 Apr 2019 09:45:40 +0000 (09:45 +0000)]
Merge "Refactor PackageWatchdog explicit health checks" into qt-dev

5 years agoMerge "Fix system_server watchdog timeout" into qt-dev
Sungsoo Lim [Fri, 5 Apr 2019 09:09:21 +0000 (09:09 +0000)]
Merge "Fix system_server watchdog timeout" into qt-dev

5 years agoMerge "Fix NetworkStackTests." into qt-dev
TreeHugger Robot [Fri, 5 Apr 2019 08:02:37 +0000 (08:02 +0000)]
Merge "Fix NetworkStackTests." into qt-dev

5 years agoMerge "Set sdk_version for PluginCoreLib" into qt-dev
TreeHugger Robot [Fri, 5 Apr 2019 06:49:33 +0000 (06:49 +0000)]
Merge "Set sdk_version for PluginCoreLib" into qt-dev

5 years agoMerge "Add secure setting to cache attention" into qt-dev
Kevin Chyn [Fri, 5 Apr 2019 06:33:37 +0000 (06:33 +0000)]
Merge "Add secure setting to cache attention" into qt-dev

5 years agoMerge "Restore gnss@1.1 HAL capability bits removed in gnss@2.0 (framework)" into...
Anil Admal [Fri, 5 Apr 2019 06:15:35 +0000 (06:15 +0000)]
Merge "Restore gnss@1.1 HAL capability bits removed in gnss@2.0 (framework)" into qt-dev

5 years agoMerge "Sharesheet - Fix portrait -> landscape switch" into qt-dev
TreeHugger Robot [Fri, 5 Apr 2019 05:33:13 +0000 (05:33 +0000)]
Merge "Sharesheet - Fix portrait -> landscape switch" into qt-dev

5 years agoMerge "Remove unused flags from bubble controller" into qt-dev
TreeHugger Robot [Fri, 5 Apr 2019 05:10:58 +0000 (05:10 +0000)]
Merge "Remove unused flags from bubble controller" into qt-dev

5 years agoMerge "Fix enumerate corner case" into qt-dev
Kevin Chyn [Fri, 5 Apr 2019 04:24:04 +0000 (04:24 +0000)]
Merge "Fix enumerate corner case" into qt-dev

5 years agoMerge "Update BiometricPrompt default title" into qt-dev
Kevin Chyn [Fri, 5 Apr 2019 04:23:27 +0000 (04:23 +0000)]
Merge "Update BiometricPrompt default title" into qt-dev

5 years agoMerge "Add back render-ahead support" into qt-dev
TreeHugger Robot [Fri, 5 Apr 2019 03:57:37 +0000 (03:57 +0000)]
Merge "Add back render-ahead support" into qt-dev

5 years agoMerge "Add draw props back to greylist" into qt-dev
TreeHugger Robot [Fri, 5 Apr 2019 03:30:48 +0000 (03:30 +0000)]
Merge "Add draw props back to greylist" into qt-dev

5 years agoMerge "Improved the debug message" into qt-dev
Jack Yu [Fri, 5 Apr 2019 03:17:40 +0000 (03:17 +0000)]
Merge "Improved the debug message" into qt-dev

5 years agoImproved the debug message
Jack Yu [Thu, 4 Apr 2019 22:10:17 +0000 (15:10 -0700)]
Improved the debug message

Improved the log readability by printed out data state
in string format instead of integer. Also added listen
local log.

Bug: 129631771
Test: Manual
Change-Id: If786d51b35380f606bc388e29a441bb24a2792e0

5 years agoMerge "Adjust the physics params to values decided on in meeting w/ design." into...
TreeHugger Robot [Fri, 5 Apr 2019 02:42:44 +0000 (02:42 +0000)]
Merge "Adjust the physics params to values decided on in meeting w/ design." into qt-dev

5 years agoMerge "Update shape for all bubbles" into qt-dev
TreeHugger Robot [Fri, 5 Apr 2019 02:41:01 +0000 (02:41 +0000)]
Merge "Update shape for all bubbles" into qt-dev

5 years agoMerge "Allow the WebView native library to have dependencies." into qt-dev
TreeHugger Robot [Fri, 5 Apr 2019 01:23:37 +0000 (01:23 +0000)]
Merge "Allow the WebView native library to have dependencies." into qt-dev

5 years agoMerge "Fix mixed up variable in triggering logic" into qt-dev
TreeHugger Robot [Fri, 5 Apr 2019 01:00:22 +0000 (01:00 +0000)]
Merge "Fix mixed up variable in triggering logic" into qt-dev

5 years agoMerge "notifyEnabledOnKeyguardCallbacks when user switches" into qt-dev
Kevin Chyn [Fri, 5 Apr 2019 00:44:01 +0000 (00:44 +0000)]
Merge "notifyEnabledOnKeyguardCallbacks when user switches" into qt-dev

5 years agoMerge changes from topic "face-profile-qt-dev" into qt-dev
Kevin Chyn [Fri, 5 Apr 2019 00:41:17 +0000 (00:41 +0000)]
Merge changes from topic "face-profile-qt-dev" into qt-dev

* changes:
  Enroll for the correct user
  Do not updateActiveGroup on a handler
  Launch ConfirmDeviceCredential with actual userId
  Settings should be per-profile

5 years agoMerge "Rename BluetoothManufacturerInfoReported to BluetoothDeviceInfoReported" into...
TreeHugger Robot [Fri, 5 Apr 2019 00:40:36 +0000 (00:40 +0000)]
Merge "Rename BluetoothManufacturerInfoReported to BluetoothDeviceInfoReported" into qt-dev

5 years agoAdd secure setting to cache attention
Kevin Chyn [Fri, 5 Apr 2019 00:13:50 +0000 (17:13 -0700)]
Add secure setting to cache attention

Fixes: 129912479

Test: Builds
Change-Id: I48979c65fc33bb5d70198f549a0ea863257e0247

5 years agoMerge "Camera: Clarify camera1 API behavior for getNumberOfCameras" into qt-dev
TreeHugger Robot [Fri, 5 Apr 2019 00:13:29 +0000 (00:13 +0000)]
Merge "Camera: Clarify camera1 API behavior for getNumberOfCameras" into qt-dev

5 years agoMerge "media: fix documentation for MediaFormat.KEY_PREPEND_HEADERS_TO_SYNC_FRAMES...
Wonsik Kim [Fri, 5 Apr 2019 00:05:02 +0000 (00:05 +0000)]
Merge "media: fix documentation for MediaFormat.KEY_PREPEND_HEADERS_TO_SYNC_FRAMES" into qt-dev

5 years agoMerge "Change ISE to AssertException, which is more suitable." into qt-dev
Makoto Onuki [Thu, 4 Apr 2019 23:56:29 +0000 (23:56 +0000)]
Merge "Change ISE to AssertException, which is more suitable." into qt-dev

5 years agoMerge "WifiManager: Restore network pin behavior on enableNetwork" into qt-dev
TreeHugger Robot [Thu, 4 Apr 2019 23:54:13 +0000 (23:54 +0000)]
Merge "WifiManager: Restore network pin behavior on enableNetwork" into qt-dev

5 years agoMerge "Fixup App Compaction CL nits." into qt-dev
TreeHugger Robot [Thu, 4 Apr 2019 23:43:30 +0000 (23:43 +0000)]
Merge "Fixup App Compaction CL nits." into qt-dev

5 years agoMerge "Don't show dnd suppressed icons on aod" into qt-dev
TreeHugger Robot [Thu, 4 Apr 2019 23:42:57 +0000 (23:42 +0000)]
Merge "Don't show dnd suppressed icons on aod" into qt-dev

5 years agoRefactor PackageWatchdog explicit health checks
Zimuzo [Mon, 1 Apr 2019 17:54:17 +0000 (18:54 +0100)]
Refactor PackageWatchdog explicit health checks

Improvements:

1. Queuing PackageWatchdog requests to startObserving packages:
When observing packages with the watchdog, we needed to get
the packages supporting explicit health checks so we can decide if a
package should be passing or not. This prevents us from receiving
requests to monitor packages during early boot, before third party
packages are ready. In this change we don't depend on ExtServices to
be up to startObserving, we initially treat all package as failing a
health check and lazily syncRequests to request or cancel explicit
health checks based on the currently observed packages. When we receive
onSupportedPackages, we mark the packages that don't support health
checks as passing.

2. Lazy binding to the explicit health check service:
We were always bound to the explicit health check
service regardless of whether we are expecting requests or not, we need
to be able to bind and unbind dynamically to improve device resource
usage. In this change, we bind as soon as we make a request and are
expecting results, we unbind otherwise.

3. Fixed Races:
There were a couple of potential races that could lead to exceptions
that could bring the system server down, e.g when the service is
transitioning between disconnected and connected state (maybe it
crashed) or when ExtServices is being upated and is down or early
boot requests when third party apps are not ready. This change fixes such.

4. Logging:
We improved the logging wording and order and made it more consistent

Bug: 120598832
Test: Manual tests. Stress tested behavior by killing extservices and
making requests simultaneously

function killproc {
    while true
    do
        local pid=$(adb shell pidof $1)
        if [[ ! -z $pid ]]
        then
            echo $pid
            adb shell kill $pid
        fi
    done;
}

adb install-multi-package -i com.android.shell --enable-rollback \
NetworkStack.apk ModuleMetadataGoogle.apk

Also switched between enabled and disabled states to verify packages
are handled correctly. Will automate these tests in later cl

atest PackageWatchdogTest
Change-Id: Iafaef553e95d107f700109f9a8328950a5e2bf71

5 years agoMerge "Introduce a result class for IStatusBarService#registerStatusBar()" into qt-dev
TreeHugger Robot [Thu, 4 Apr 2019 23:22:55 +0000 (23:22 +0000)]
Merge "Introduce a result class for IStatusBarService#registerStatusBar()" into qt-dev

5 years agoUpdate theme icon packs.
Amin Shaikh [Thu, 4 Apr 2019 22:21:19 +0000 (18:21 -0400)]
Update theme icon packs.

Mostly Settings, framework permission group icons and some SystemUI
volume dialog icons.

Bug: 129677355
Bug: 128354921
Test: make; install all overlays and change themes
Change-Id: I7099a050c6e4521e54fd258126e800dab3f66c3e

5 years agoMerge "Update systemui wifi icons to GM2." into qt-dev
TreeHugger Robot [Thu, 4 Apr 2019 23:10:28 +0000 (23:10 +0000)]
Merge "Update systemui wifi icons to GM2." into qt-dev

5 years agonotifyEnabledOnKeyguardCallbacks when user switches
Kevin Chyn [Thu, 4 Apr 2019 23:02:37 +0000 (16:02 -0700)]
notifyEnabledOnKeyguardCallbacks when user switches

The setting is per-user and the source of truth is in BiometricService.
Keyguard's cache needs to be updated when user switch occurs

Fixes: 5268106

Test: Builds
Change-Id: I8a5678375989221e5b502fa683697cf4ca664def

5 years agoEnroll for the correct user
Kevin Chyn [Thu, 4 Apr 2019 22:50:11 +0000 (15:50 -0700)]
Enroll for the correct user

Bug: 110907543

Test: Builds
Change-Id: I637809cd18d84402918c95d1fc010dacc14f8785

5 years agoMerge "Fix for NetworkStats/Telephony deadlock" into qt-dev
TreeHugger Robot [Thu, 4 Apr 2019 22:48:01 +0000 (22:48 +0000)]
Merge "Fix for NetworkStats/Telephony deadlock" into qt-dev

5 years agoRename BluetoothManufacturerInfoReported to BluetoothDeviceInfoReported
Jack He [Thu, 4 Apr 2019 18:19:48 +0000 (11:19 -0700)]
Rename BluetoothManufacturerInfoReported to BluetoothDeviceInfoReported

* Rename this atom to match the atom's field name

Bug: 112969790
Test: make
Change-Id: Idb54766703f47a5eb6cd7f0cdff1c41e1a92cfb1

5 years agoFix mixed up variable in triggering logic
Salvador Martinez [Thu, 4 Apr 2019 17:30:19 +0000 (10:30 -0700)]
Fix mixed up variable in triggering logic

When this code got refactored the check for severe warnings
accidentally had the time remaining being compared against the percentage
value of the severe warning threshold. Unfortunately this meant that
it was impossible to mark the severe level warning as shown and could
result in multiple triggerings. This change makes it so everything
is compared with the appropriate type of value again.

Test: PowerUI Tests pass
Bug: 129730217
Change-Id: Ic8bdabf1c70e49d117210bb80f1ca0a0d7684617

5 years agoAdjust the physics params to values decided on in meeting w/ design.
Joshua Tsuji [Thu, 4 Apr 2019 21:50:02 +0000 (17:50 -0400)]
Adjust the physics params to values decided on in meeting w/ design.

Fixes: 129981373
Test: manual
Change-Id: Idfa840d6aade8ac975bd89bb0ba155f21e9f3ed8

5 years agoUpdate shape for all bubbles
Lyn Han [Thu, 4 Apr 2019 21:03:40 +0000 (14:03 -0700)]
Update shape for all bubbles

After theme change.

Test: manual
Bug: 123829494
Change-Id: I9eca25f19646607d85957f5113178619b7927dfe

5 years agoUpdate systemui wifi icons to GM2.
Amin Shaikh [Tue, 2 Apr 2019 11:50:27 +0000 (07:50 -0400)]
Update systemui wifi icons to GM2.

Remove unneeded NeutralGoodDrawable.

Bug: 124106839
Test: make; used sysui demo mode
Change-Id: Ib3e903d83be140b00410e3adbb31f217b562d372

5 years agoChange ISE to AssertException, which is more suitable.
Makoto Onuki [Thu, 4 Apr 2019 20:39:55 +0000 (13:39 -0700)]
Change ISE to AssertException, which is more suitable.

Bug: 129139241
Bug: 129721058
Test: Treehugger
Change-Id: I12e97f37a58e1d88731a9bddd933abeb8c1169c1

5 years agoFix NetworkStackTests.
Yifan Hong [Thu, 4 Apr 2019 01:15:22 +0000 (18:15 -0700)]
Fix NetworkStackTests.

NetworkStackTests dlopens library which indirectly
uses libcgrouprc. Add it to jni_libs.

Test: atest
Fixes: 129902619
Change-Id: I0d60d7a317fa60607d6fdaea15f61b458aefd2f0
Merged-In: I0d60d7a317fa60607d6fdaea15f61b458aefd2f0

5 years agoDo not updateActiveGroup on a handler
Kevin Chyn [Thu, 4 Apr 2019 01:12:48 +0000 (18:12 -0700)]
Do not updateActiveGroup on a handler

This method must not return to the caller until complete, otherwise
weird race conditions may occur.

Bug: 110907543

Test: Builds
Change-Id: Ia82671b34fac3662928012d8c709143efdf92266

5 years agoLaunch ConfirmDeviceCredential with actual userId
Kevin Chyn [Thu, 4 Apr 2019 02:02:27 +0000 (19:02 -0700)]
Launch ConfirmDeviceCredential with actual userId

Fixes: 129905318
Bug: 110907543

Test: Set up work profile, use BiometricPromptDemo to allow device
      credentials. Work profile demo app now requests work profile
      password.

Change-Id: Iec53966c6ad87021fdaa1808a1814a4abfbf89bb

5 years agoSettings should be per-profile
Kevin Chyn [Thu, 4 Apr 2019 03:28:28 +0000 (20:28 -0700)]
Settings should be per-profile

Fixes: 129905061

Test: Builds
Change-Id: If1b3e92da61c051c5f38a425da17f98cdfc3336d

5 years agomedia: fix documentation for MediaFormat.KEY_PREPEND_HEADERS_TO_SYNC_FRAMES
Wonsik Kim [Mon, 1 Apr 2019 21:48:10 +0000 (14:48 -0700)]
media: fix documentation for MediaFormat.KEY_PREPEND_HEADERS_TO_SYNC_FRAMES

Bug: 32746212
Test: builds
Change-Id: I38ecfa879091bc4016fbae04eab77ed6fd9eb1c1

5 years agoSharesheet - Fix portrait -> landscape switch
Matt Pietal [Thu, 4 Apr 2019 19:49:48 +0000 (15:49 -0400)]
Sharesheet - Fix portrait -> landscape switch

Calculating the reserved height was using the wrong figures. Expose
the correct reserved alwaysShow height, and use it to determine the
offset for scrolling.

Bug: 120419081
Test: manual, rotate device
Change-Id: I21fd9fa8494a258d17f6002f79967aacc0efde34

5 years agoFast follow-on unit tests for HashedStringCache
Susi Kharraz-Post [Thu, 4 Apr 2019 15:19:20 +0000 (11:19 -0400)]
Fast follow-on unit tests for HashedStringCache

Unit tests for HashedStringCache that was commited in earlier CL
ag/6867725 . This is testing the various inputs and expected outputs.
Testing also revealed some vulnerability for invalid input so added
validation in the code under test.

Bug: b/129870147
Test: This is the test file
Change-Id: I7387f808df87a869f81339cd4aea99b23dfc06bd

5 years agoSet sdk_version for PluginCoreLib
Hyunyoung Song [Thu, 4 Apr 2019 06:13:16 +0000 (23:13 -0700)]
Set sdk_version for PluginCoreLib

Bug: 129423457
Test: m Launcher3 && m Launcher3QuickStep

Change-Id: Iea69efb67d4aec124f29eb3cc956b96f5d06f1e7

5 years agoIntroduce a result class for IStatusBarService#registerStatusBar()
Yohei Yukawa [Thu, 4 Apr 2019 18:49:02 +0000 (11:49 -0700)]
Introduce a result class for IStatusBarService#registerStatusBar()

This is a preparation to fix an issue that IME cannot enable light
navigation bar on direct-reply.

The initial state of StatusBar client is provided as return values of
IStatusBarService#registerStatusBar().  However, the way for the
client to receive the return values is to rely on "out" parameters in
the Binder method as follows.

    void registerStatusBar(IStatusBar callbacks,
            out List<String> iconSlots,
            out List<StatusBarIcon> iconList,
            out int[] switches,
            out List<IBinder> binders,
            out Rect fullscreenStackBounds,
            out Rect dockedStackBounds);

The issue is that if I want to add a new parameter into
StatusBarManagerService to fix Bug 122439339, then it needs to be
notified back to the client via one of these out values, e.g. a new
element in "switches", which is hard to understand and maintain.

It'd be better to introduce a dedicated return object as follows.

    RegisterStatusBarResult registerStatusBar(IStatusBar callbacks);

This is a purely mechanical code clean-up.  Hence there should be no
behavior change.

Bug: 122439339
Test: presubmit
Change-Id: Ib1c0ae8f591ca09d0bce7a39f85ba57aad386e47

5 years agofix nullability
Todd Kennedy [Wed, 3 Apr 2019 22:19:53 +0000 (15:19 -0700)]
fix nullability

Bug: 126701951
Test: It builds, it runs
Merged-In: I43e02551ced8a6aa51b84dd8df7e57e75e1d58a9
Change-Id: I43e02551ced8a6aa51b84dd8df7e57e75e1d58a9

5 years agoAdd draw props back to greylist
John Reck [Wed, 3 Apr 2019 23:47:42 +0000 (16:47 -0700)]
Add draw props back to greylist

Bug: 129957634
Test: none
Change-Id: Iaf2d7f8dc0f5d6f1b0dc12025210820bf8255f67

5 years agoExpose notification guts on menu shown
Evan Laird [Wed, 13 Mar 2019 16:54:37 +0000 (12:54 -0400)]
Expose notification guts on menu shown

This change adds a few methods to NotificationMenuRowPlugin so that a
menu row can tell the stack scroller to expose the notification guts
when the menu is fully exposed.

TODO: fix the menu close animation so it happens after the guts open,
and if you close the guts by swiping you can trigger a flicker.

Also there are some things to make lint happy and lots of null checks.

Bug: 127998765
Test: swipe RTL on any notification
Change-Id: I46f7c7dc90032a1914f7b5513bc57e089887c722
(cherry picked from commit 9272fd2f57e57475cb7ce9967e60946d0770d879)

5 years agoAdd back render-ahead support
John Reck [Wed, 13 Mar 2019 23:25:20 +0000 (16:25 -0700)]
Add back render-ahead support

Currently only supported in the EGL path.
Vulkan support Coming Soon

Bug: 127822449
Test: trace of hwuimacro
Change-Id: Iac2b039e11d964aab5b8ca1bdf2a5430b187e2ea

5 years agoRemove unused flags from bubble controller
Lyn Han [Mon, 1 Apr 2019 22:59:56 +0000 (15:59 -0700)]
Remove unused flags from bubble controller

- ENABLE_BUBBLES_AT_TOP (default false)
- ENABLE_BUBBLE_FOOTER (default false)

Test: manual
Bug: 129546118
Change-Id: I6aaa33975d65fb20ba9b82a378e00c2100fd3164

5 years agoUpdate BiometricPrompt default title
Kevin Chyn [Fri, 29 Mar 2019 04:14:19 +0000 (21:14 -0700)]
Update BiometricPrompt default title

Fixes: 117466084

Test: manual

Change-Id: I3b82396694a26d63a79334e7e86c4e9121a370f6
Merged-In: I3b82396694a26d63a79334e7e86c4e9121a370f6
(cherry picked from commit 87fbeab12f708b3e987f89ad0c547f2315baac2a)

5 years agoFix enumerate corner case
Kevin Chyn [Wed, 3 Apr 2019 21:39:04 +0000 (14:39 -0700)]
Fix enumerate corner case

Do not post reset runnable when another client is requested while
cleanup is happening. The runnable will be "pending" and started once
cleanup finishes instead.

Fixes: 129534163

Test: Based on logs in the bug, this is reasonable
Test: reboot device, fingerprint still works
Change-Id: I766cc04be151abaae60a0092f71fd7a3acf3397a
Merged-In: I766cc04be151abaae60a0092f71fd7a3acf3397a
(cherry picked from commit ea80d17cb65e69457e169b0595094893ebabd494)

5 years agoFix isExternalStorageSandboxed() bug.
Jeff Sharkey [Thu, 4 Apr 2019 17:19:22 +0000 (11:19 -0600)]
Fix isExternalStorageSandboxed() bug.

It needs to use the same STOPSHIP logic for consistency with the
two other enforcement sites across the OS.

Bug: 129487770
Test: atest android.appsecurity.cts.ExternalStorageHostTest
Change-Id: I7a3fa836e0795912c264aae58a55472ffae3d8c3

5 years agoRestore gnss@1.1 HAL capability bits removed in gnss@2.0 (framework)
Anil Admal [Wed, 3 Apr 2019 22:39:22 +0000 (15:39 -0700)]
Restore gnss@1.1 HAL capability bits removed in gnss@2.0 (framework)

In the IGnssCallback.hal@2.0 introduced in Android Q, the
capability bits in IGnssCallback.hal@1.1 that represent sub-HAL
interfaces have been removed as they are derivable from the
existing getExtensionXXX() family of methods in the IGnss.hal
interface.

These need to be restored back as the synchronous nature of the
getExtensionXXX() methods called by the framework has an impact on
partner implementations that need to communicate with the modem to
get the capabilities.

Additionally, the capability bit MEASUREMENT_CORRECTIONS needs to be
added for the new optional measurement_corrections@1.0 sub-HAL
introduced in gnss@2.0.

Fixes: 129870126
Test: Verified through cuttlefish default implementation and VTS tests.
Change-Id: I30c34361882e0722240feb3deba7d80136cd4bb3

5 years agoTest flaky test: Always wait for handle task to complete
Keun young Park [Thu, 4 Apr 2019 00:59:07 +0000 (17:59 -0700)]
Test flaky test: Always wait for handle task to complete

- Previous logic of checking queue to wait or not has race as queue can be
  emptied while posted task is not complete.
- Do not check queue and always wait for new post to complete.

Bug: 129896850
Test: Run the test many times
Change-Id: Ie0e4447cf997cbe343c7e00a8dfd0757b061b547
(cherry picked from commit 819d7406acc2b9c3ccf8e4a16c67f2d605017620)

5 years agoUpdate icon for Calendar permission.
Joel Galenson [Wed, 3 Apr 2019 23:30:58 +0000 (16:30 -0700)]
Update icon for Calendar permission.

Fixes: 129896970
Test: View icon.
Change-Id: Ie45823d32801a6a206e3ea18cdc6ddf57f8f270d
(cherry picked from commit 215eb27dbfeb396a58b8aaa81c5b0a368020c6e2)

5 years agoCamera: Clarify camera1 API behavior for getNumberOfCameras
Shuzhen Wang [Thu, 28 Mar 2019 21:30:33 +0000 (14:30 -0700)]
Camera: Clarify camera1 API behavior for getNumberOfCameras

Expose at most 1 camera ID per facing for all logical-physical camera ID
groups.

Test: Build and read docs
Bug: 113705942
Change-Id: I86a06562eafd600d351d8db2582a613b3323404c

5 years agoDon't show dnd suppressed icons on aod
Beverly [Thu, 4 Apr 2019 13:59:33 +0000 (09:59 -0400)]
Don't show dnd suppressed icons on aod

The aod icons are from the shelf. When DND is suppressing
status bar icons and aod is on (mFullyDark), still don't show
the icons that would show on AOD (if DND wasn't on).

Test: manual
Test: atest NotificationIconAreaControllerTest
Fixes: 122636236
Change-Id: I4680ea1c88427207274da48a6ab69f0c00a3ac69

5 years agoFix for NetworkStats/Telephony deadlock
Amith Yamasani [Tue, 19 Feb 2019 17:57:32 +0000 (09:57 -0800)]
Fix for NetworkStats/Telephony deadlock

Call into NetworkStatsService to update uid foreground
state without the NPMS lock held. Both calls are from
the handler thread, so no sequencing issues.

Bug: 123274986
Bug: 74007921
Test: atest CtsHostsideNetworkTests
Change-Id: I9e8449e5a75db616e646f55c930ff82982fc9083

5 years agoFix system_server watchdog timeout
Sungsoo Lim [Wed, 3 Apr 2019 17:19:52 +0000 (02:19 +0900)]
Fix system_server watchdog timeout

AudioPlayerStateMonitor can't implement IPlaybackConfigDispatcher.Stub
directly, instead it needs to go through AudioManager to prevent
potential deadlock.

Bug: 124415216
Test: build
Change-Id: I8b0c8aba9705fa83d6c2dbd005b9e464f661f862

5 years agoWifiManager: Restore network pin behavior on enableNetwork
Roshan Pius [Thu, 4 Apr 2019 14:22:23 +0000 (07:22 -0700)]
WifiManager: Restore network pin behavior on enableNetwork

This code is mostly a NO-OP for most apps & OEM's. The pinner only takes
effect if the app's target SDK < Android L. But, there might
be some OEM's who may want to enable this for all apps.

Bug: 129906426
Test: Compiles
Change-Id: Iccf67ba0d4ea8d9c5d3561a128908611636b420e

5 years agoAllow the WebView native library to have dependencies.
Torne (Richard Coles) [Mon, 1 Apr 2019 19:11:00 +0000 (15:11 -0400)]
Allow the WebView native library to have dependencies.

The WebView native library has so far only depended on native libraries
that were already loaded by the zygote, and has only shipped a single
.so file in its APK. Splitting the code into multiple libraries worked,
but only the top-level library would have its RELRO section shared,
causing a memory regression.

To avoid this regression if we do decide to split up the native code in
future, load the native library using the new RESERVED_ADDRESS_RECURSIVE
flag in the linker, which means that any depended-upon libraries will
also be loaded into the reserved address region and will have their
RELRO sections saved and reused.

Fixes: 128623590
Test: tested manually with modified WebView
Change-Id: I19ee3ff971e8dcd1c683f94af304abf918860a10

5 years agoMerge "Fix a possible crash when the listener is null" into qt-dev
TreeHugger Robot [Thu, 4 Apr 2019 13:50:10 +0000 (13:50 +0000)]
Merge "Fix a possible crash when the listener is null" into qt-dev

5 years agoFixup App Compaction CL nits.
Ben Murdoch [Thu, 4 Apr 2019 13:29:49 +0000 (14:29 +0100)]
Fixup App Compaction CL nits.

A couple of nits to cleanup from change I71fffc52a232cd5608742d9f36965a4de6494b56

 - remove unused method
 - remove unnecessary null check.

BUG: 128427978
Test: atest FrameworksMockingServicesTests:AppCompactorTest
Change-Id: I363c57fc78529207585f5d1e004770d967ce87b9

5 years agoFix a possible crash when the listener is null
Chalard Jean [Thu, 4 Apr 2019 09:39:32 +0000 (18:39 +0900)]
Fix a possible crash when the listener is null

Test: manual
Bug: 129930804
Change-Id: Id598ae1d98154b19d156e52973cf379669e7060c

5 years agoStores serialized entity data to the extras
Tony Mak [Fri, 22 Mar 2019 12:01:50 +0000 (12:01 +0000)]
Stores serialized entity data to the extras

libtextclassifier (native side) will serialize the extra entity information
(like parsed datetime) into a byte array and passed it to framework.
Framework puts it to the extras Bundle of result object, i.e. TextClassification
and ConversationActions.

In the future, we will provide a library (maybe AndroidX) to deserialize the
string and return structured objects.

BUG: 129119759

Test: atest frameworks/base/core/tests/coretests/src/android/view/textclassifier/

Change-Id: I8091a1038691419825f5d6da3562b8ba81787dc7

5 years agoMerge "Force app to draw navigation bar background" into qt-dev
TreeHugger Robot [Thu, 4 Apr 2019 09:24:31 +0000 (09:24 +0000)]
Merge "Force app to draw navigation bar background" into qt-dev

5 years agoMerge "Ime in gestural mode will have ime switcher and down arrow" into qt-dev
TreeHugger Robot [Thu, 4 Apr 2019 08:40:31 +0000 (08:40 +0000)]
Merge "Ime in gestural mode will have ime switcher and down arrow" into qt-dev

5 years agoForce app to draw navigation bar background
Jorim Jaggi [Mon, 11 Mar 2019 21:23:16 +0000 (14:23 -0700)]
Force app to draw navigation bar background

For gestural navigation, having a small bar drawn by SystemUI
looks really really weird. Since we force the status bar
background to be drawn in the client, we can also force the
navigation bar background without expecting any compat issues.

Bug: 129751541
Test: Open legacy app, ensure black is drawn in the client
Change-Id: I9cd4c5dd799324ff10bf9d28750e8f238ab1e459
(cherry picked from commit 461bb11371e956ab1ab2e19940d393d9d729be54)

5 years agoMerge "Camera: add QCIF resolution exception" into pi-dev
Yin-Chia Yeh [Thu, 4 Apr 2019 07:14:38 +0000 (00:14 -0700)]
Merge "Camera: add QCIF resolution exception" into pi-dev
am: 5b09928b22

Change-Id: I20e60ef6d84c969b1651e449f5a076183d38a7c9

5 years ago[automerger skipped] Merge "DO NOT MERGE Make a copy of data stored in LockSettingsSt...
Rich Cannings [Thu, 4 Apr 2019 07:06:47 +0000 (00:06 -0700)]
[automerger skipped] Merge "DO NOT MERGE Make a copy of data stored in LockSettingsStorage cache" into pi-dev
am: 9bdc35b2df -s ours
am skip reason: subject contains skip directive

Change-Id: Iec753dfc9cebc31463c427d5ad2bae47205ed11e

5 years ago[automerger skipped] Merge "DO NOT MERGE Refactor passwords/pins/patterns to byte...
Rich Cannings [Thu, 4 Apr 2019 07:05:25 +0000 (00:05 -0700)]
[automerger skipped] Merge "DO NOT MERGE Refactor passwords/pins/patterns to byte[]" into pi-dev
am: 157f05eb04 -s ours
am skip reason: subject contains skip directive

Change-Id: I33d588642ad1fb9a4820507f1ea39c9eccc0c9f8

5 years ago[automerger skipped] DO NOT MERGE Make a copy of data stored in LockSettingsStorage...
Rubin Xu [Thu, 4 Apr 2019 06:55:44 +0000 (23:55 -0700)]
[automerger skipped] DO NOT MERGE Make a copy of data stored in LockSettingsStorage cache
am: 567f2357f9 -s ours
am skip reason: subject contains skip directive

Change-Id: I6cd88a157c5de9109215ec52ecad66687446d2ab

5 years ago[automerger skipped] DO NOT MERGE Refactor passwords/pins/patterns to byte[]
Rich Cannings [Thu, 4 Apr 2019 06:53:40 +0000 (23:53 -0700)]
[automerger skipped] DO NOT MERGE Refactor passwords/pins/patterns to byte[]
am: 820b2504f3 -s ours
am skip reason: subject contains skip directive

Change-Id: Ia8e21b690d4966e3334db646d12bfe7e2bad4151

5 years agoIme in gestural mode will have ime switcher and down arrow
Matthew Ng [Wed, 3 Apr 2019 20:52:57 +0000 (13:52 -0700)]
Ime in gestural mode will have ime switcher and down arrow

When in gestural mode, the navigation bar will inset the ime window
higher to raise up revealing the original height of the navigation bar.
In place will be the (alt) back button (pointing down), the handle and
ime switcher (if should be shown).

Fixes: 128928130
Bug: 113952590
Bug: 112934365
Test: manual
Change-Id: I28cc4def846cb09eb2d7ab00d12561f0c198dbbc

5 years ago[automerger skipped] Merge "Clean up a few names of Telephony intent extra." am:...
Xiangyu/Malcolm Chen [Thu, 4 Apr 2019 00:13:58 +0000 (17:13 -0700)]
[automerger skipped] Merge "Clean up a few names of Telephony intent extra." am: 63bf486921 am: 2cadf8e9f9
am: 3722b6907f -s ours
am skip reason: change_id Iaf004d6881964bd19072e9ef623f2e89f2529639 with SHA1 2e1f945a6c is in history

Change-Id: Ic1bf053d7233e1068aa3d2d5b4512e6626d9a4cf

5 years agoMerge "Add logging for direct share target"
Susi Kharraz-Post [Thu, 4 Apr 2019 00:03:56 +0000 (00:03 +0000)]
Merge "Add logging for direct share target"

5 years agoMerge "Atom: Keep obfuscated_id name in BluetoothConnectionStateChanged"
Jack He [Thu, 4 Apr 2019 00:01:16 +0000 (00:01 +0000)]
Merge "Atom: Keep obfuscated_id name in BluetoothConnectionStateChanged"

5 years agoMerge "Make KeyguardSliceView title tappable"
Lucas Dupin [Thu, 4 Apr 2019 00:00:23 +0000 (00:00 +0000)]
Merge "Make KeyguardSliceView title tappable"

5 years agoMerge "Convert core/tests/BroadcastRadioTests/Android.mk file to Android.bp"
TreeHugger Robot [Wed, 3 Apr 2019 23:57:20 +0000 (23:57 +0000)]
Merge "Convert core/tests/BroadcastRadioTests/Android.mk file to Android.bp"

5 years agoMerge "Disallow pruning system shared static libraries"
TreeHugger Robot [Wed, 3 Apr 2019 23:57:10 +0000 (23:57 +0000)]
Merge "Disallow pruning system shared static libraries"

5 years agoMerge "Clean up a few names of Telephony intent extra." am: 63bf486921
Xiangyu/Malcolm Chen [Wed, 3 Apr 2019 23:49:33 +0000 (16:49 -0700)]
Merge "Clean up a few names of Telephony intent extra." am: 63bf486921
am: 2cadf8e9f9

Change-Id: I1026c87f73abc5dccee6c1b5a1747c53e436b5f0

5 years agoMerge "Make get/set feature async between settings and service"
Kevin Chyn [Wed, 3 Apr 2019 23:46:14 +0000 (23:46 +0000)]
Merge "Make get/set feature async between settings and service"