OSDN Git Service

android-x86/frameworks-base.git
5 years agoDeprecate intent action to the old changing default dialer/SMS dialogs.
Hai Zhang [Fri, 3 May 2019 07:31:43 +0000 (15:31 +0800)]
Deprecate intent action to the old changing default dialer/SMS dialogs.

Bug: 124452117
Bug: 131204827
Test: presubmit
Change-Id: Iee636cf2dbcf4bdda5fc487d6883591e9463b0af

5 years agoRemove TelecomManager.ACTION_CHANGE_DEFAULT_DIALER for apps targeting Q.
Hai Zhang [Wed, 1 May 2019 06:16:23 +0000 (14:16 +0800)]
Remove TelecomManager.ACTION_CHANGE_DEFAULT_DIALER for apps targeting Q.

This intent supported starting with startActivity() so we may not be
able to get caller information in the started activity, hence remove
it for apps targeting Q and later here.

Bug: 124452117
Bug: 131204827
Test: presubmit
Change-Id: Ifd05c6797d01df42d92489d5d2e0c55231cbde2d

5 years agoRemove Telephony.Sms.Intents.ACTION_CHANGE_DEFAULT for apps targeting Q.
Hai Zhang [Wed, 1 May 2019 05:46:06 +0000 (13:46 +0800)]
Remove Telephony.Sms.Intents.ACTION_CHANGE_DEFAULT for apps targeting Q.

This intent supported starting with startActivity() so we may not be
able to get caller information in the started activity, hence remove
it for apps targeting Q and later here.

Bug: 124452117
Bug: 131204827
Test: presubmit
Change-Id: I261d6b6ccd42e148789ed03f7b3e8268b2f62480

5 years agoMerge "Add RoleRequestResultReported atom." into qt-dev
Hai Zhang [Sat, 27 Apr 2019 08:26:05 +0000 (08:26 +0000)]
Merge "Add RoleRequestResultReported atom." into qt-dev

5 years agoMerge "Let IC#requestCursorUpdates() fail for cross-display connections" into qt-dev
TreeHugger Robot [Sat, 27 Apr 2019 06:46:55 +0000 (06:46 +0000)]
Merge "Let IC#requestCursorUpdates() fail for cross-display connections" into qt-dev

5 years agoMerge "Provide "Disconnected" in summary for detail page" into qt-dev
Clown SHEN [Sat, 27 Apr 2019 06:42:45 +0000 (06:42 +0000)]
Merge "Provide "Disconnected" in summary for detail page" into qt-dev

5 years agoMerge "Fix ValueMetric unit test." into qt-dev
TreeHugger Robot [Sat, 27 Apr 2019 06:41:24 +0000 (06:41 +0000)]
Merge "Fix ValueMetric unit test." into qt-dev

5 years agoAdd RoleRequestResultReported atom.
Hai Zhang [Sat, 13 Apr 2019 13:25:06 +0000 (21:25 +0800)]
Add RoleRequestResultReported atom.

Bug: 130456955
Test: ./out/host/linux-x86/bin/statsd_testdrive -p com.google.android.permissoncontroller 188
Change-Id: I427ff9b9ea0066b714191b3f6e3a1ac10ba32016

5 years agoMerge "Show opportunistic provider name conditionally" into qt-dev
Sooraj Sasindran [Sat, 27 Apr 2019 06:08:59 +0000 (06:08 +0000)]
Merge "Show opportunistic provider name conditionally" into qt-dev

5 years agoMerge "Import translations. DO NOT MERGE" into qt-dev
TreeHugger Robot [Sat, 27 Apr 2019 06:06:25 +0000 (06:06 +0000)]
Merge "Import translations. DO NOT MERGE" into qt-dev

5 years agoMerge "Skip data pulling when metric is not active" into qt-dev
TreeHugger Robot [Sat, 27 Apr 2019 03:18:08 +0000 (03:18 +0000)]
Merge "Skip data pulling when metric is not active" into qt-dev

5 years agoMerge "Update standby bucket for uninteracted foreground services." into qt-dev
Varun Shah [Sat, 27 Apr 2019 02:52:45 +0000 (02:52 +0000)]
Merge "Update standby bucket for uninteracted foreground services." into qt-dev

5 years agoMerge "Make DNS cache lifecycle management explicit" into qt-dev
TreeHugger Robot [Sat, 27 Apr 2019 02:19:58 +0000 (02:19 +0000)]
Merge "Make DNS cache lifecycle management explicit" into qt-dev

5 years agoMerge changes from topic "aapt2-attr" into qt-dev
Ryan Mitchell [Sat, 27 Apr 2019 01:54:11 +0000 (01:54 +0000)]
Merge changes from topic "aapt2-attr" into qt-dev

* changes:
  Add formats for declare-styleable attributes
  No new attributes in declare-styleables when format is not provided

5 years agoImport translations. DO NOT MERGE
Bill Yi [Sat, 27 Apr 2019 01:52:59 +0000 (18:52 -0700)]
Import translations. DO NOT MERGE

Auto-generated-cl: translation import

Bug: 64712476
Change-Id: Ia30447a9057e608b24737182dc46d8fa6be3123f

5 years agoMerge "Single tap on the glass pane in notification shade should close the shade...
TreeHugger Robot [Sat, 27 Apr 2019 01:41:48 +0000 (01:41 +0000)]
Merge "Single tap on the glass pane in notification shade should close the shade." into qt-dev

5 years agoMerge "Scheduling start alarm when job starts off out of quota." into qt-dev
Kweku Adams [Sat, 27 Apr 2019 01:39:34 +0000 (01:39 +0000)]
Merge "Scheduling start alarm when job starts off out of quota." into qt-dev

5 years agoMerge "Gating OutOfBoundsException on targetSdkVersion." into qt-dev
Kweku Adams [Sat, 27 Apr 2019 01:17:00 +0000 (01:17 +0000)]
Merge "Gating OutOfBoundsException on targetSdkVersion." into qt-dev

5 years agoMerge "Log time ticks" into qt-dev
Lucas Dupin [Sat, 27 Apr 2019 00:56:16 +0000 (00:56 +0000)]
Merge "Log time ticks" into qt-dev

5 years agoMerge "BiometricPrompt negative button should show "cancel" after onAuthenticated...
Kevin Chyn [Sat, 27 Apr 2019 00:41:45 +0000 (00:41 +0000)]
Merge "BiometricPrompt negative button should show "cancel" after onAuthenticated" into qt-dev

5 years agoMerge "Init confirm button in disabled state instead of gone state" into qt-dev
Kevin Chyn [Sat, 27 Apr 2019 00:41:18 +0000 (00:41 +0000)]
Merge "Init confirm button in disabled state instead of gone state" into qt-dev

5 years agoMerge "Fix createConfirmDeviceCredentialIntent documentation" into qt-dev
Kevin Chyn [Sat, 27 Apr 2019 00:40:32 +0000 (00:40 +0000)]
Merge "Fix createConfirmDeviceCredentialIntent documentation" into qt-dev

5 years agoSingle tap on the glass pane in notification shade should close the shade.
Priyank Singh [Fri, 26 Apr 2019 01:17:02 +0000 (18:17 -0700)]
Single tap on the glass pane in notification shade should close the shade.

Bug: 130168660
Test: Manual
Change-Id: I7724ba08557db0f19dcbd0056bf248acab80368b
(cherry picked from commit 9dd6c788b02bf3f9dd79682aad6d783af1c2b298)

5 years agoMerge "Add privapp permissions to network modules." into qt-dev
Lorenzo Colitti [Sat, 27 Apr 2019 00:13:31 +0000 (00:13 +0000)]
Merge "Add privapp permissions to network modules." into qt-dev

5 years agoMerge "Always instantiate DisplayAddress.Physical" into qt-dev
TreeHugger Robot [Sat, 27 Apr 2019 00:01:01 +0000 (00:01 +0000)]
Merge "Always instantiate DisplayAddress.Physical" into qt-dev

5 years agoMerge "MediaCodec: Fix documentation on float raw audio buffers" into qt-dev
Andy Hung [Fri, 26 Apr 2019 23:50:32 +0000 (23:50 +0000)]
Merge "MediaCodec: Fix documentation on float raw audio buffers" into qt-dev

5 years agoMerge "Bubbles shouldn't be available on low ram device" into qt-dev
Mady Mellor [Fri, 26 Apr 2019 22:57:19 +0000 (22:57 +0000)]
Merge "Bubbles shouldn't be available on low ram device" into qt-dev

5 years agoMediaCodec: Fix documentation on float raw audio buffers
Andy Hung [Thu, 10 Jan 2019 02:42:41 +0000 (18:42 -0800)]
MediaCodec: Fix documentation on float raw audio buffers

Test: make docs, check html
Bug: 131423214
Change-Id: If2d6f78cc5f77a5c7b5b8b936ae9f3216387561e

5 years agoMerge "Top apps may start fg services even when under bg restriction" into qt-dev
Chris Tate [Fri, 26 Apr 2019 22:27:24 +0000 (22:27 +0000)]
Merge "Top apps may start fg services even when under bg restriction" into qt-dev

5 years agoMerge changes from topic "back_redesign" into qt-dev
Selim Cinek [Fri, 26 Apr 2019 22:03:00 +0000 (22:03 +0000)]
Merge changes from topic "back_redesign" into qt-dev

* changes:
  Rewrote the back arrow animation
  Made back button sample the color and background protect it that way
  Minor adjustments to the edge back gesture

5 years agoPropagate to apps capture opt-in
Kevin Rocard [Tue, 9 Apr 2019 23:26:06 +0000 (16:26 -0700)]
Propagate to apps capture opt-in

Allows public apps to detect if playback have opted-out of being
capture.

Bug: 129948989
Test: atest AudioPlaybackConfigurationTest
Change-Id: Id2c2ad195e5fdeba89926dcdbbe9fa22c2d25891
Signed-off-by: Kevin Rocard <krocard@google.com>
5 years agoMerge "Fixed SIM pin pad overlap" into qt-dev
Lucas Dupin [Fri, 26 Apr 2019 21:51:43 +0000 (21:51 +0000)]
Merge "Fixed SIM pin pad overlap" into qt-dev

5 years agoShow opportunistic provider name conditionally
Sooraj Sasindran [Thu, 25 Apr 2019 22:12:21 +0000 (15:12 -0700)]
Show opportunistic provider name conditionally

For testing purpose, we want system UI to show grouped CBRS carrier name
as in the upper left corner in system UI. But we want to make this a
conditoinal behavior.

Bug: 129865342
Test: manual
Change-Id: I38a49447ca07615b5e14a92412b68a2a44b2726c

5 years agoMerge "Make package installer tests post submit" into qt-dev
TreeHugger Robot [Fri, 26 Apr 2019 21:19:08 +0000 (21:19 +0000)]
Merge "Make package installer tests post submit" into qt-dev

5 years agoMerge "Restrict bindIsolatedService instanceName to just letters, digits, '_', and...
TreeHugger Robot [Fri, 26 Apr 2019 21:14:19 +0000 (21:14 +0000)]
Merge "Restrict bindIsolatedService instanceName to just letters, digits, '_', and '.'" into qt-dev

5 years agoMerge "Use ActivityThread.currentApplication() for application context." into qt-dev
TreeHugger Robot [Fri, 26 Apr 2019 21:06:21 +0000 (21:06 +0000)]
Merge "Use ActivityThread.currentApplication() for application context." into qt-dev

5 years agoTop apps may start fg services even when under bg restriction
Christopher Tate [Tue, 23 Apr 2019 18:13:35 +0000 (11:13 -0700)]
Top apps may start fg services even when under bg restriction

We now apply bg restriction policy (appop) on being able to enter a
foreground service lifecycle only when the app is not in a "top" i.e.
directly user-facing state.  This avoids breaking existing supported
lifecycle guarantees involving the order of calls to startService(),
startForeground(), and startForegroundService().  Briefly:  there is a
designed behavior in the following sequence:

  1. startService(intent);
  2. startForeground() on that service; then
  3. startForegroundService(intent)

The intentional behavior is that after step 3, the app is not required
to call startForeground() *again,* redundantly; because that service is
already in a fg lifecycle.

However, new-in-Q code broke this pattern in the case where the user had
imposed bg service restrictions on the app.  For this and for
semantic/model reasons, we now do not apply fg service start
restrictions to the user-facing app, even if the at app is under bg
execution restrictions.  The app is not background at that time, so
should not be expected to face a different execution environment.

Bug: 130048629
Test: Foreground use of GPM under bg restrictions
Change-Id: I0e8c308ac26211082a90c165a64d66b31ab804df

5 years agoMerge "[wm] Adjust freeform header not to be overlapped with stable insets" into...
Vishnu Nair [Fri, 26 Apr 2019 20:39:20 +0000 (20:39 +0000)]
Merge "[wm] Adjust freeform header not to be overlapped with stable insets" into qt-dev

5 years agoMerge "Support OnPropertiesChangedListener in TestableDeviceConfig." into qt-dev
Matt Pape [Fri, 26 Apr 2019 20:35:43 +0000 (20:35 +0000)]
Merge "Support OnPropertiesChangedListener in TestableDeviceConfig." into qt-dev

5 years agoFix createConfirmDeviceCredentialIntent documentation
Kevin Chyn [Fri, 26 Apr 2019 18:28:21 +0000 (11:28 -0700)]
Fix createConfirmDeviceCredentialIntent documentation

Test: make -j56 docs
Test: checked out/target/common/docs/offline-sdk/reference/android/app/KeyguardManager.html

Fixes: 131419117
Change-Id: I8c9254a591677ccf2453bff7d517a641da2b0f32

5 years agoMerge "Don't use Context#getApplicationContext" into qt-dev
Philip P. Moltmann [Fri, 26 Apr 2019 20:30:18 +0000 (20:30 +0000)]
Merge "Don't use Context#getApplicationContext" into qt-dev

5 years agoBiometricPrompt negative button should show "cancel" after onAuthenticated
Kevin Chyn [Fri, 26 Apr 2019 18:14:20 +0000 (11:14 -0700)]
BiometricPrompt negative button should show "cancel" after onAuthenticated

When the biometric is authenticated, the negative button should show
"cancel" instead. It should also invoke onUserCanceled instead of
onNegativePressed.

Fixes: 131274300
Test: manual

Change-Id: I104857e5e448bcd11c59311776c28e280566c2e0

5 years agoInit confirm button in disabled state instead of gone state
Kevin Chyn [Fri, 26 Apr 2019 18:02:13 +0000 (11:02 -0700)]
Init confirm button in disabled state instead of gone state

For modalities that can require confirmation, show the "confirm" button
grayed out while the user is authenticating.

Bug: 131274300
Test: manual

Change-Id: I4e1c5e9df67c40f327480d066bc5a62f7e37e710

5 years agoGating OutOfBoundsException on targetSdkVersion.
Kweku Adams [Thu, 25 Apr 2019 23:16:34 +0000 (16:16 -0700)]
Gating OutOfBoundsException on targetSdkVersion.

Apps targeting Pie or older will get the old undefined behavior. Apps
targeting Q or newer will get the OutOfBoundsException.

Bug: 118339123
Test: atest CtsUtilTestCases
Change-Id: Ibf5467aadec4a2f76ee180e963afeaf5a8a013a2

5 years agoUpdate standby bucket for uninteracted foreground services.
Varun Shah [Fri, 12 Apr 2019 17:54:36 +0000 (10:54 -0700)]
Update standby bucket for uninteracted foreground services.

This fixes a bug where foreground services that were started, but
never interacted with, were not transitioning to the Active bucket
after 30mins - a defined interval.

Also created unit tests for #maybeUpdateUsageStats().

Test steps: (adb shell commands are generic)
1) Install a test app which has a foreground service
   * can install test app provided in bug via adb install
2) Set the bucket of the test app to Rare:
   $ adb shell am set-stanby-bucket com.packagename rare
3) Launch the foreground service
   $ adb shell am broadcast -a com.packagename.intentfilter -n com.packagename/.MyReceiver
4) Wait for approximately 30mins
5) Observe the app bucket - should be Active (10)
   $ adb shell am get-standby-bucket com.packagename

Bug: 116189835
Test: atest OomAdjusterTests
Test: manual (steps listed above)
Change-Id: I6949466297cccdc349428c5f6172d65bd9d77a53

5 years agoLog time ticks
Lucas Dupin [Fri, 26 Apr 2019 18:05:23 +0000 (11:05 -0700)]
Log time ticks

AP is waking up but seems like clock is not being updated.
Added some logs to debug it.

Test: look at logs
Fixes: 130888082
Change-Id: I14e31a748573e26f161f837044ef61b57367bfe0

5 years agoMerge "Set the default value for Secure Settings: AWARE_ENABLED" into qt-dev
TreeHugger Robot [Fri, 26 Apr 2019 17:12:28 +0000 (17:12 +0000)]
Merge "Set the default value for Secure Settings: AWARE_ENABLED" into qt-dev

5 years agoMerge "Fix tests/runtests.sh" into qt-dev
TreeHugger Robot [Fri, 26 Apr 2019 17:01:26 +0000 (17:01 +0000)]
Merge "Fix tests/runtests.sh" into qt-dev

5 years agoFix tests/runtests.sh
Otto Seiskari [Fri, 12 Apr 2019 10:16:14 +0000 (13:16 +0300)]
Fix tests/runtests.sh

The location of FrameworksWifiTests.apk installed by the script
with adb seems to have changed. The path of the APK contains the
TARGET_ARCH environment variable, which is now fetched
with a similar method as in system/netd/tests/runtests.sh.

Noticed the issue with "lunch aosp_x86_64-eng". Before this fix,
the test script produced an error:

    adb: failed to stat [...]/FrameworksWifiApiTests.apk:
    No such file or directory

Bug: 128603658
Test: ./frameworks/base/wifi/tests/runtests.sh

Change-Id: Id4a33ca89fa21a9a4ef791c5c1c5760e0e2badaf
Signed-off-by: Otto Seiskari <otto.seiskari@indooratlas.com>
5 years agoMerge "Fix message not showing when face auth is enabled" into qt-dev
Lucas Dupin [Fri, 26 Apr 2019 16:31:27 +0000 (16:31 +0000)]
Merge "Fix message not showing when face auth is enabled" into qt-dev

5 years agoMerge "Ensure we get the right nav bar mode for the current user in the system" into...
Winson Chung [Fri, 26 Apr 2019 16:24:24 +0000 (16:24 +0000)]
Merge "Ensure we get the right nav bar mode for the current user in the system" into qt-dev

5 years agoMerge "Use default refresh rate from config" into qt-dev
Adrian Salido [Fri, 26 Apr 2019 15:55:33 +0000 (15:55 +0000)]
Merge "Use default refresh rate from config" into qt-dev

5 years agoSupport OnPropertiesChangedListener in TestableDeviceConfig.
Matt Pape [Tue, 23 Apr 2019 23:06:55 +0000 (16:06 -0700)]
Support OnPropertiesChangedListener in TestableDeviceConfig.

Handle add and remove listener methods, as well as making callbacks when
setProperty is called.

Test: atest FrameworksCoreTests:DeviceConfigTest
      atest FrameworksMockingServicesTests:TestableDeviceConfigTest
      atest FrameworksMockingServicesTests:AppCompactorTest
Bug: 128902955

Change-Id: Ie797d40604ab7fc860691ef07461aea42480cbfe

5 years agoAdd validation type definition to support multiple probe result
Lorenzo Colitti [Fri, 26 Apr 2019 11:00:48 +0000 (04:00 -0700)]
Add validation type definition to support multiple probe result

In order to allow NetworkMonitor to tell ConnectivityService
if the network is either parital, validated or both.
NetworkMonitor could update the probe result by passing the
bitmask to ConnectivityService.

Bug: 130078798
Bug: 130683832
Test: build
Change-Id: I429ccbd9b9afae3eafaf73b3c9eb835213c1f64d
Merged-In: I429ccbd9b9afae3eafaf73b3c9eb835213c1f64d
(cherry picked from commit 4932896e244be2edb028552e02374b41e3f7d365)

5 years agoMerge "Fix default app notification locking on new devices" into qt-dev
Julia Reynolds [Fri, 26 Apr 2019 13:41:08 +0000 (13:41 +0000)]
Merge "Fix default app notification locking on new devices" into qt-dev

5 years agoMerge changes I1fc3b301,Ib42ab29e into qt-dev
TreeHugger Robot [Fri, 26 Apr 2019 13:28:17 +0000 (13:28 +0000)]
Merge changes I1fc3b301,Ib42ab29e into qt-dev

* changes:
  Update boot image and system server profiles
  Update boot image and system server profiles

5 years agoMerge "ScoClient only increases count when requestScoState succeed." into qt-dev
TreeHugger Robot [Fri, 26 Apr 2019 13:27:47 +0000 (13:27 +0000)]
Merge "ScoClient only increases count when requestScoState succeed." into qt-dev

5 years agoMerge "Reset DWB color temperature when DWBC is disabled" into qt-dev
TreeHugger Robot [Fri, 26 Apr 2019 10:37:51 +0000 (10:37 +0000)]
Merge "Reset DWB color temperature when DWBC is disabled" into qt-dev

5 years agoMerge "[Settings] Show accurate Enterprise networks details" into qt-dev
TreeHugger Robot [Fri, 26 Apr 2019 07:58:41 +0000 (07:58 +0000)]
Merge "[Settings] Show accurate Enterprise networks details" into qt-dev

5 years agoMerge "Fix app crash while running in second display" into qt-dev
TreeHugger Robot [Fri, 26 Apr 2019 07:30:51 +0000 (07:30 +0000)]
Merge "Fix app crash while running in second display" into qt-dev

5 years agoUse ActivityThread.currentApplication() for application context.
Hai Zhang [Fri, 26 Apr 2019 07:01:59 +0000 (15:01 +0800)]
Use ActivityThread.currentApplication() for application context.

Context.getApplicationContext() might return null if the context is
created with Context.createPackageContextAsUser(), as the application
instance for that context won't be created. In this case we can use
ActivityThread.currentApplication() directly, which does the same
thing as if the context wasn't created for a specific package or user.
We are only using this application context to bind to other services
so it will work fine.

Bug: 131356152
Test: presubmit
Change-Id: Iee1ac9aa088d452dc58dd7f19edc58a3e0b791a6

5 years agoMerge "Zygote: add a way to preload Vulkan driver" into qt-dev
TreeHugger Robot [Fri, 26 Apr 2019 05:20:34 +0000 (05:20 +0000)]
Merge "Zygote: add a way to preload Vulkan driver" into qt-dev

5 years agoMerge "Use stack bounds to apply STACK_CLIP_BEFORE_ANIM" into qt-dev
Evan Rosky [Fri, 26 Apr 2019 04:13:07 +0000 (04:13 +0000)]
Merge "Use stack bounds to apply STACK_CLIP_BEFORE_ANIM" into qt-dev

5 years agoUse default refresh rate from config
Adrian Salido [Fri, 26 Apr 2019 02:34:37 +0000 (19:34 -0700)]
Use default refresh rate from config

Currently mDefaultPeakRefreshRate is unused, make use of this as the
default refresh rate when missing user configuration.

Fixes: 130249886
Test: wipe device and check default refresh config is picked up
Change-Id: I88a4e696969d63cdd0fef0aef81bd4c8d3573d3f

5 years agoMake DNS cache lifecycle management explicit
Lorenzo Colitti [Fri, 26 Apr 2019 01:06:28 +0000 (18:06 -0700)]
Make DNS cache lifecycle management explicit

1. ConnectivityService calls netd binder to create/destroy network directly.
2. Call dnsresolver binder to create/destroy cache after create/destroy network.
3. Remove unused network create/destroy methods in NetworkManagementService.

Bug: 129453995
Test: atest FrameworksNetTests

Merged-In: I388e208143c38b89bcbb0589de393250024d59aa
(cherry picked from commit 204ca13e63f063f044ac4ad3b96f08b473fe59df)

Change-Id: I4d3dfd9305b60a724aa2dc38448948d8e710c932

5 years agoRewrote the back arrow animation
Selim Cinek [Fri, 19 Apr 2019 22:58:23 +0000 (15:58 -0700)]
Rewrote the back arrow animation

The animation now is based on physics based animations
and nicely appears and disappears. Also we're rending
it in one piece avoiding drawing artifacts.

We're now factoring in the actual position and size of the
arrow instead of just looking at its width.

Bug: 130682266
Test: observe back animations, play around with it
Change-Id: I8fc4475615d0776a082feec7400b4674ea0331a2

5 years agoLet IC#requestCursorUpdates() fail for cross-display connections
Yohei Yukawa [Fri, 26 Apr 2019 01:32:15 +0000 (18:32 -0700)]
Let IC#requestCursorUpdates() fail for cross-display connections

Since Android Q [1], it is intentional that when an IME client app is
running on a (virtual) display where IME should not be hosted, IME
will be hosted in the default display instead.  This means that
cross-display App/IME interaction is an expected scenario now.

The problem is that CursorAnchorInfo API, which I introduced in
Android L [2], no longer works as intended in such a cross-display
scenario, because screen coordinates make sense only within the same
display.

The ultimate fallback strategy for this problem is forcing
  InputConnection#requestCursorUpdates()
to always return false for such a cross-display scenario, which is
exactly what this CL does.

In subsequent CLs, we aim to introduce a special handling logic for
ActivityView, where the system may be able to keep maintaining
sufficient display hierarchy information so that
CursorAnchorInfo#getMatrix() can be automatically adjusted before it
is passed to the IME.

 [1]: Iedd71e4ddf4983f90b02dd72e471e7fa8e838fbf
      ef1965bd6d6061cb54bce305a4b99e640db19ddc
 [2]: I61dec2f8fa671ba891da1d4af08975750e3acb04
      1c7e66c97ce0a5d54e03abdee2f36fdce55944e6

Bug: 115693908
Fix: 131368625
Test: atest MultiDisplaySystemDecorationTests#testCrossDisplayBasicImeOperations
Change-Id: Ie2f7a5117cff3a13ad5c5806fd4b3abef7569549

5 years agoBubbles shouldn't be available on low ram device
Mady Mellor [Fri, 26 Apr 2019 00:26:15 +0000 (17:26 -0700)]
Bubbles shouldn't be available on low ram device

Bug: 130802184
Test: atest NotificationManagerServiceTest & there is a cts cl
Change-Id: Ib36edacde166a5d2be5e56c1a7b3285a7272d161

5 years agoUpdate boot image and system server profiles
Calin Juravle [Thu, 25 Apr 2019 22:12:44 +0000 (15:12 -0700)]
Update boot image and system server profiles

This is a conservative tuning for the last profile update (commit
5b70220fb5a174a7142ca5403563bf528120a63f) which regressed a few metrics
(b/130553966). The numbers below are quoated relative to the sate before
that update.

=Perf numbers=

The boot image compilation artifacts are 17MiB smaller (art/vdex/oat for
arm and arm64).
System server .art file is 100KiB smaller.

Startup and memory number are within the noise. Startup shows 0.72%
improvement. However that's most likely noise. The tests were run with:

- atest google/perf/app-startup/hermetic-apps/cold-dropcache-lock-test
- atest google/perf/app-startup/non-hermetic-apps/cold-dropcache-lock-test
- atest google/perf/memory/memory-test
- atest
google/perf/app-startup/benchmark-app-hermetic/cold-dropcache-lock-test
- atest
google/perf/app-startup/third-party-apps/cold-dropcache-stable-test

=Profile metrics=

Boot:
- methods and classes used by at least 9% of the sampled (non unique)
applications (see below for more explanations)
- 1.13% of hot methods added, 33.77% removed
- 0.65% of classes added, 21.61% removed
- 29256 hot methods in the profile (vs 43429 in the old one)
- 8681 classes in the profile (vs 10985 in the old one)

Preloaded clases:
- classes used by at least 20% of sampled applications during startup
- 1.5% added, 0.3% removed
- 7601 classes in the profile (vs 7516 in the old one)

System server:
- methods and classes used on at least 5% of sampled devices
- system server is speed compile and the image classes are the most
relevant
- 4% classes added, 23% of classes removed
- 2819 classes in the profile (vs 3418 in the old one)

=Data sample=
- 35000+ (non unique) applications contributed to the final profile
- these were spread across 4000+ (non unique) devices
- 'non unique' means that the same app or the same device (or a
combination of both) could have contributed to the final profile multiple
times

Bug: 122068885
Bug: 130553966
Test: m, build, boot, atest startup-tests

(cherry picked from commit 439305caddf8ad574b230a24cd7523ee6c591364)

Merged-In: Ic61ed2784af034ed4ae4bc8346ed67c6bed04152
Change-Id: I1fc3b301bf80bfc7dda3540c5a204af8321279bf

5 years agoUpdate boot image and system server profiles
Calin Juravle [Thu, 11 Apr 2019 02:07:47 +0000 (19:07 -0700)]
Update boot image and system server profiles

=Perf numbers=

The boot image compilation artifacts are 28MiB smaller (art/vdex/oat for
arm and arm64).
System server .art file is 100KiB smaller.

Startup and memory number are within the noise. Startup shows 0.11%
improvement and memory shows 0.22% improvements. However that's most
likely noise. The tests were run with:

- atest google/perf/app-startup/hermetic-apps/cold-dropcache-lock-test
- atest google/perf/app-startup/non-hermetic-apps/cold-dropcache-lock-test
- atest google/perf/memory/memory-test

=Profile metrics=

Boot:
- methods and classes used by at least 9% of the sampled (non unique)
applications (see below for more explanations)
- 0.6% of hot methods added, 51.31% removed
- 0.3% of classes added, 29.96% removed
- 21403 hot methods in the profile (vs 43429 in the old one)
- 7826 classes in the profile (vs 10985 in the old one)

Preloaded clases:
- classes used by at least 20% of sampled applications during startup
- 1.5% added, 0.3% removed
- 7601 classes in the profile (vs 7516 in the old one)

System server:
- methods and classes used on at least 5% of sampled devices
- system server is speed compile and the image classes are the most
relevant
- 4% classes added, 23% of classes removed
- 2819 classes in the profile (vs 3418 in the old one)

=Data sample=
- 35000+ (non unique) applications contributed to the final profile
- these were spread across 4000+ (non unique) devices
- 'non unique' means that the same app or the same device (or a
combination of both) could have contributed to the final profile multiple
times

Bug: 122460899
Bug: 122068885
Test: m, build, boot, atest startup-tests

(cherry picked from commit 5b70220fb5a174a7142ca5403563bf528120a63f)

Merged-In: Ib3aac3c7efae64af9d2b46e350146e53ba653cbd
Change-Id: Ib42ab29e3d28591817a396407445a6c23e5c9a27

5 years agoMade back button sample the color and background protect it that way
Selim Cinek [Thu, 18 Apr 2019 01:22:17 +0000 (18:22 -0700)]
Made back button sample the color and background protect it that way

Previously we had an outline for background protection. Instead
we're now sampling the luma underneath the arrow and unsure contrast
this way.

Bug: 130682266
Test: manual, use back over various surfaces
Change-Id: I6504c56782df05a6e384dbb81daff277a8d2eaca

5 years agoMerge "Fix font for actionbar in device default" into qt-dev
TreeHugger Robot [Fri, 26 Apr 2019 00:17:25 +0000 (00:17 +0000)]
Merge "Fix font for actionbar in device default" into qt-dev

5 years agoMerge "Import translations. DO NOT MERGE" into qt-dev
TreeHugger Robot [Fri, 26 Apr 2019 00:12:29 +0000 (00:12 +0000)]
Merge "Import translations. DO NOT MERGE" into qt-dev

5 years agoMerge "Import translations. DO NOT MERGE" into qt-dev
TreeHugger Robot [Fri, 26 Apr 2019 00:09:05 +0000 (00:09 +0000)]
Merge "Import translations. DO NOT MERGE" into qt-dev

5 years agoMerge "Import translations. DO NOT MERGE" into qt-dev
TreeHugger Robot [Fri, 26 Apr 2019 00:00:25 +0000 (00:00 +0000)]
Merge "Import translations. DO NOT MERGE" into qt-dev

5 years agoMerge "Calculate letterbox against task displayed-bounds in multi-window" into qt-dev
Evan Rosky [Thu, 25 Apr 2019 23:58:37 +0000 (23:58 +0000)]
Merge "Calculate letterbox against task displayed-bounds in multi-window" into qt-dev

5 years agoMinor adjustments to the edge back gesture
Selim Cinek [Wed, 17 Apr 2019 00:25:06 +0000 (17:25 -0700)]
Minor adjustments to the edge back gesture

The arrow now comes out a bit above the finger
instead of right on it. This is also a preparation
for a larger back arrow redesign

Bug: 130682266
Test: atest SystemUITests
Change-Id: I58c80fc939934b185929f9b0245999ec0902d652

5 years agoMake package installer tests post submit
Philip P. Moltmann [Thu, 25 Apr 2019 23:52:44 +0000 (16:52 -0700)]
Make package installer tests post submit

As they are UI-tests and hence to flaky for pre-submit.

Fixes: 131353722
Test: n/a
Change-Id: I7bea06bbe16717406ccd0676fb83396066959a92

5 years ago[wm] Adjust freeform header not to be overlapped with stable insets
GyeHun Jeon [Wed, 24 Apr 2019 21:20:15 +0000 (14:20 -0700)]
[wm] Adjust freeform header not to be overlapped with stable insets

freeform bounds should not be overlapped with statusBar and navigationBar.
If it is overlapped, we can't control freeform anymore. So we adjusted
freeform bounds not to be overlapped on launching and moving task.

Test: move freeform to navigationBar & launching below navigationBar
Test: atest WmTests:TaskRecordTests WmTests:TaskPositionerTests
Bug: 129521219
Change-Id: I353ba930269ec753c97d719819364436bda280cb
(cherry picked from commit 55fbe465f2b40e0f1886691488825a243a3acf79)

5 years agoMerge "Fix some force_dark prop behaviors" into qt-dev
John Reck [Thu, 25 Apr 2019 23:37:05 +0000 (23:37 +0000)]
Merge "Fix some force_dark prop behaviors" into qt-dev

5 years agoMerge "Use /data/vendor_ce/0/facedata for FaceHAL's secure storage" into qt-dev
Jiwen Cai [Thu, 25 Apr 2019 23:26:50 +0000 (23:26 +0000)]
Merge "Use /data/vendor_ce/0/facedata for FaceHAL's secure storage" into qt-dev

5 years agoMerge "Allow PermissionControllerService implementer control own threading" into...
Philip P. Moltmann [Thu, 25 Apr 2019 23:24:45 +0000 (23:24 +0000)]
Merge "Allow PermissionControllerService implementer control own threading" into qt-dev

5 years agoDon't use Context#getApplicationContext
Philip P. Moltmann [Thu, 25 Apr 2019 23:09:03 +0000 (16:09 -0700)]
Don't use Context#getApplicationContext

as this might be null. In PermissionControllerManager we need a context
that outlives the passed in context as we bind to a service that will
only get destroyed after a delay.

Test: atest PermissionControllerTest
Bug: 131356152
Change-Id: Iabeac669f6464b84a4b9e8f9b2a27959b116c25b

5 years agoMerge changes I28031a27,If98d7397 into qt-dev
TreeHugger Robot [Thu, 25 Apr 2019 23:15:43 +0000 (23:15 +0000)]
Merge changes I28031a27,If98d7397 into qt-dev

* changes:
  Fix a bug in IncidentCompanionService
  Disable incidentd encryption.

5 years agoScheduling start alarm when job starts off out of quota.
Kweku Adams [Thu, 25 Apr 2019 18:43:23 +0000 (11:43 -0700)]
Scheduling start alarm when job starts off out of quota.

Up until now, QuotaController was only scheduling the quota check alarm
when an app ran out of quota while a job was running, the UID proc state
or standby bucket changed, the device was unplugged, the parole state
changed, or quota controller constants changed. However, if a job was
scheduled and already out of quota (which could be the case due to
job count throttling), an alarm wasn't scheduled. This meant that alarms
throttled due to high job counts probably wouldn't run until the device
was plugged in or the app changed its standby bucket or proc state. Now,
we schedule an alarm if a newly scheduled job is already out of quota so
that it will come back into quota at the proper time.

Bug: 131267600
Test: atest com.android.server.job.controllers.QuotaControllerTest
Test: atest CtsJobSchedulerTestCases
Change-Id: I802b0aa076690451d901521327c4ddab111c42f6

5 years agoMerge "Check INTERACT_ACROSS_USERS for getEnrolledTemplates when user is different...
Kevin Chyn [Thu, 25 Apr 2019 22:48:20 +0000 (22:48 +0000)]
Merge "Check INTERACT_ACROSS_USERS for getEnrolledTemplates when user is different" into qt-dev

5 years agoMerge "Update panel bg color in dark mode" into qt-dev
Linda Tseng [Thu, 25 Apr 2019 22:39:40 +0000 (22:39 +0000)]
Merge "Update panel bg color in dark mode" into qt-dev

5 years agoMerge "Adds additional sanitization for Zygote command arguments." into qt-dev
Christian Wailes [Thu, 25 Apr 2019 22:35:10 +0000 (22:35 +0000)]
Merge "Adds additional sanitization for Zygote command arguments." into qt-dev

5 years agoMerge "Only start WebView zygote if multiprocess enabled." into qt-dev
TreeHugger Robot [Thu, 25 Apr 2019 22:30:21 +0000 (22:30 +0000)]
Merge "Only start WebView zygote if multiprocess enabled." into qt-dev

5 years agoScoClient only increases count when requestScoState succeed.
jiabin [Thu, 25 Apr 2019 20:35:56 +0000 (13:35 -0700)]
ScoClient only increases count when requestScoState succeed.

Bug: 123408281
Test: Manually
Change-Id: I4183b941c1fbfa573fdb6c6258f4012616c4c64a

5 years agoFix font for actionbar in device default
Salvador Martinez [Thu, 25 Apr 2019 21:54:14 +0000 (14:54 -0700)]
Fix font for actionbar in device default

The font family was not being set on the action bar causing
it to revert to roboto. This simply overrides that to match the
light theme version (since they should use the same font).

Test: Manually observing title text in Settings > Accessibility >
      Text-to-speech output > cog icon
Bug: 129995075

Change-Id: Ic5415e3441a978e7af500549bfcca8083b704b39

5 years agoMerge "Sharesheet - Modify header scrolling behavior" into qt-dev
TreeHugger Robot [Thu, 25 Apr 2019 21:49:04 +0000 (21:49 +0000)]
Merge "Sharesheet - Modify header scrolling behavior" into qt-dev

5 years agoFix message not showing when face auth is enabled
Lucas Dupin [Thu, 25 Apr 2019 21:34:12 +0000 (14:34 -0700)]
Fix message not showing when face auth is enabled

Old code was checking explicitly for fingerprint, we need something more
generic, that asserts any type of biometrics.

Test: manual
Fixes: 131140362
Change-Id: I5868c54b12c24696bc00a150d7bb3cb3d872015f

5 years agoMerge "AudioService: fix volume initialization on first ever boot" into qt-dev
TreeHugger Robot [Thu, 25 Apr 2019 21:44:24 +0000 (21:44 +0000)]
Merge "AudioService: fix volume initialization on first ever boot" into qt-dev

5 years agoFix a bug in IncidentCompanionService
Yao Chen [Thu, 25 Apr 2019 21:37:04 +0000 (14:37 -0700)]
Fix a bug in IncidentCompanionService

Bug: 131351390
Test: manually tested
Change-Id: I28031a276218822209e854b13466248727f20bd5

5 years agoZygote: add a way to preload Vulkan driver
Yiwei Zhang [Mon, 15 Apr 2019 23:24:32 +0000 (16:24 -0700)]
Zygote: add a way to preload Vulkan driver

Since HWUI render pipeline has both GL and Vulkan backends now, we'd
like to preload either GL or Vulkan driver based upon HWUI's choice on
the render backend.

1) Keep using ro.zygote.disable_gl_preload property to disable Vulkan
driver preloading if HWUI's render pipeline uses Vulkan backend.
Properly rename the corresponding APIs for driver preloading.

2) Add a path to preload Vulkan driver based on HWUI's render backend.

Bug: 131249898
Test: build, flash and boot.
Test: verified with set USE_VULKAN=true
Test: verified with setprop debug.hwui.renderer skiagl/skiavk
Change-Id: Ie0bf5d18edcf907c75a25ac3249e2620ec21b63c

5 years agoMerge "Start Watchdog early during boot" into qt-dev
Zimuzo Ezeozue [Thu, 25 Apr 2019 21:25:59 +0000 (21:25 +0000)]
Merge "Start Watchdog early during boot" into qt-dev

5 years agoFix default app notification locking on new devices
Julia Reynolds [Thu, 25 Apr 2019 19:41:47 +0000 (15:41 -0400)]
Fix default app notification locking on new devices

- Fresh devices, no restore, create app prefs if app hasn't done
it already
- Apply app level locking to channels created via readxml on restore

Test: atest, factory reset device and verify that default dialer app is
locked without requiring a reboot. restore backup and verify that it's
still locked
Fixes: 127855529

Change-Id: Ieca3e064eb5b5aa5877a4b575bf6223f62259668

5 years agoMerge "Wrapping the inflater into InjectionInflationController." into qt-dev
TreeHugger Robot [Thu, 25 Apr 2019 21:14:23 +0000 (21:14 +0000)]
Merge "Wrapping the inflater into InjectionInflationController." into qt-dev

5 years agoMerge "Add unit tests to GlobalActionsGridLayout." into qt-dev
Aaron Heuckroth [Thu, 25 Apr 2019 21:03:47 +0000 (21:03 +0000)]
Merge "Add unit tests to GlobalActionsGridLayout." into qt-dev