OSDN Git Service

android-x86/frameworks-base.git
6 years agoMerge "[QS] Change Date font in QQS" into pi-dev
Rohan Shah [Wed, 6 Jun 2018 18:43:06 +0000 (18:43 +0000)]
Merge "[QS] Change Date font in QQS" into pi-dev

6 years agoMerge "Fix "swipe up to switch apps" pop up displaying in SUW while creating second...
TreeHugger Robot [Wed, 6 Jun 2018 18:30:15 +0000 (18:30 +0000)]
Merge "Fix "swipe up to switch apps" pop up displaying in SUW while creating second user." into pi-dev

6 years agoMerge "Changing the recents component to point to launcher3 implementation" into...
TreeHugger Robot [Wed, 6 Jun 2018 18:18:43 +0000 (18:18 +0000)]
Merge "Changing the recents component to point to launcher3 implementation" into pi-dev

6 years agoMerge "Import translations. DO NOT MERGE" into pi-dev
TreeHugger Robot [Wed, 6 Jun 2018 18:18:35 +0000 (18:18 +0000)]
Merge "Import translations. DO NOT MERGE" into pi-dev

6 years agoMerge "Fix exception from DateTimeView unregisters receiver again" into pi-dev
Selim Cinek [Wed, 6 Jun 2018 18:18:27 +0000 (18:18 +0000)]
Merge "Fix exception from DateTimeView unregisters receiver again" into pi-dev

6 years agoMerge "Import translations. DO NOT MERGE" into pi-dev
TreeHugger Robot [Wed, 6 Jun 2018 18:13:55 +0000 (18:13 +0000)]
Merge "Import translations. DO NOT MERGE" into pi-dev

6 years agoMerge "Import translations. DO NOT MERGE" into pi-dev
TreeHugger Robot [Wed, 6 Jun 2018 18:13:27 +0000 (18:13 +0000)]
Merge "Import translations. DO NOT MERGE" into pi-dev

6 years agoMerge "Import translations. DO NOT MERGE" into pi-dev
TreeHugger Robot [Wed, 6 Jun 2018 18:04:41 +0000 (18:04 +0000)]
Merge "Import translations. DO NOT MERGE" into pi-dev

6 years agoMerge "Light grey bugbot updates." into pi-dev
TreeHugger Robot [Wed, 6 Jun 2018 17:51:32 +0000 (17:51 +0000)]
Merge "Light grey bugbot updates." into pi-dev

6 years ago[automerger skipped] Merge changes from topic "am-2d17369d-a241-482f-bad0-edb5147de00...
Mihai Popa [Wed, 6 Jun 2018 17:42:20 +0000 (10:42 -0700)]
[automerger skipped] Merge changes from topic "am-2d17369d-a241-482f-bad0-edb5147de00b" into oc-dev am: 3fce74a7f3  -s ours am: bb18c011aa  -s ours
am: 7478894a89  -s ours

Change-Id: I22992503b6a99f7002d0ce440d4fda9e313bcf73

6 years ago[automerger skipped] Merge changes from topic "am-2d17369d-a241-482f-bad0-edb5147de00...
Mihai Popa [Wed, 6 Jun 2018 17:01:16 +0000 (10:01 -0700)]
[automerger skipped] Merge changes from topic "am-2d17369d-a241-482f-bad0-edb5147de00b" into oc-dev am: 3fce74a7f3  -s ours
am: bb18c011aa  -s ours

Change-Id: I2feb73ce9430daf5ead58675b552be326925af27

6 years agoFix "swipe up to switch apps" pop up displaying in SUW while creating
Tracy Zhou [Tue, 5 Jun 2018 19:09:14 +0000 (12:09 -0700)]
Fix "swipe up to switch apps" pop up displaying in SUW while creating
second user.

We unregister quickstep onboarding listeners when nav bar view is
detached. We also update its state when nav bar state changes, but we
are not updating it, while we should, update onboarding state when
disabled flags changes. In this scenario, it's triggered when the second
user is added.

Change-Id: I7da917f27fc0f0b8ae5e2d8262f2fdc331b4646d
Fixes: 80512560
Test: Manual test

6 years agoMerge "WifiManager: add call to see if apband conversion is required" into pi-dev
Rebecca Silberstein [Wed, 6 Jun 2018 16:36:37 +0000 (16:36 +0000)]
Merge "WifiManager: add call to see if apband conversion is required" into pi-dev

6 years ago[automerger skipped] Merge changes from topic "am-2d17369d-a241-482f-bad0-edb5147de00...
Mihai Popa [Wed, 6 Jun 2018 16:33:57 +0000 (09:33 -0700)]
[automerger skipped] Merge changes from topic "am-2d17369d-a241-482f-bad0-edb5147de00b" into oc-dev
am: 3fce74a7f3  -s ours

Change-Id: I28ae4102fd8913d74e8dd928f286cbdbd66d0241

6 years agoMerge "Use correct attribute name." into pi-dev
TreeHugger Robot [Wed, 6 Jun 2018 16:28:23 +0000 (16:28 +0000)]
Merge "Use correct attribute name." into pi-dev

6 years agoMerge "AudioRecord JNI: fix mem leak on audio_attributes_t" into pi-dev
Jean-Michel Trivi [Wed, 6 Jun 2018 16:25:09 +0000 (16:25 +0000)]
Merge "AudioRecord JNI: fix mem leak on audio_attributes_t" into pi-dev

6 years agoMerge changes from topic "am-2d17369d-a241-482f-bad0-edb5147de00b" into oc-dev
Mihai Popa [Wed, 6 Jun 2018 16:21:21 +0000 (16:21 +0000)]
Merge changes from topic "am-2d17369d-a241-482f-bad0-edb5147de00b" into oc-dev

* changes:
  [automerger] Optimise the hit test algorithm am: 71ecf5bd5c am: 42eaa8f932 am: a72cb45f89 am: f5d69aa775 skipped: 94bc67f03c
  [automerger] Optimise the hit test algorithm am: 71ecf5bd5c am: 42eaa8f932 am: a72cb45f89 am: f5d69aa775
  [automerger] Optimise the hit test algorithm am: 71ecf5bd5c am: 42eaa8f932 am: a72cb45f89
  [automerger] Optimise the hit test algorithm am: 71ecf5bd5c am: 42eaa8f932
  [automerger] Optimise the hit test algorithm am: 71ecf5bd5c
  Optimise the hit test algorithm

6 years agoLight grey bugbot updates.
Nicolas Geoffray [Wed, 6 Jun 2018 16:08:37 +0000 (17:08 +0100)]
Light grey bugbot updates.

Bug: 109756637
Bug: 71814829

Test: m
Change-Id: Ic11a74a215315c71480cdd55ababdaab26f3577b

6 years agoMerge "Expose the source component which launched this task." into pi-dev
Winson Chung [Wed, 6 Jun 2018 15:13:27 +0000 (15:13 +0000)]
Merge "Expose the source component which launched this task." into pi-dev

6 years agoMerge "Remove sun.nio.fs.UnixChannelFactory from preloaded-classes" into pi-dev
Calin Juravle [Wed, 6 Jun 2018 15:09:17 +0000 (15:09 +0000)]
Merge "Remove sun.nio.fs.UnixChannelFactory from preloaded-classes" into pi-dev

6 years agoMerge "Consider icon scale when calculating icon offset in shelf" into pi-dev
TreeHugger Robot [Wed, 6 Jun 2018 14:59:10 +0000 (14:59 +0000)]
Merge "Consider icon scale when calculating icon offset in shelf" into pi-dev

6 years agoMerge "Wi-Fi, now corporeal!" into pi-dev
TreeHugger Robot [Wed, 6 Jun 2018 14:54:35 +0000 (14:54 +0000)]
Merge "Wi-Fi, now corporeal!" into pi-dev

6 years agoMerge "Allow instant apps to send broadcasts to themselves" into pi-dev
TreeHugger Robot [Wed, 6 Jun 2018 14:51:33 +0000 (14:51 +0000)]
Merge "Allow instant apps to send broadcasts to themselves" into pi-dev

6 years agoMerge "Fix repeated calls into reportExtractedText" into pi-dev
TreeHugger Robot [Wed, 6 Jun 2018 14:40:12 +0000 (14:40 +0000)]
Merge "Fix repeated calls into reportExtractedText" into pi-dev

6 years agoImport translations. DO NOT MERGE
Bill Yi [Wed, 6 Jun 2018 14:13:20 +0000 (07:13 -0700)]
Import translations. DO NOT MERGE

Auto-generated-cl: translation import

Bug: 64712476
Change-Id: Icbe0ecc8b5b4abbe01354757e74d622382c9c3b1

6 years agoUse correct attribute name.
Julia Reynolds [Wed, 6 Jun 2018 14:04:02 +0000 (10:04 -0400)]
Use correct attribute name.

Test: factory reset device and confirm default values
Change-Id: I96b20e98d740550fa1b47e069ebfb5fdf2368db2
Fixes: 109747051

6 years agoMerge "Support seamless handover between VPN fds." into pi-dev
TreeHugger Robot [Wed, 6 Jun 2018 13:51:23 +0000 (13:51 +0000)]
Merge "Support seamless handover between VPN fds." into pi-dev

6 years agoMerge "Further interruptiveness changes" into pi-dev
TreeHugger Robot [Wed, 6 Jun 2018 13:46:42 +0000 (13:46 +0000)]
Merge "Further interruptiveness changes" into pi-dev

6 years agoRemove sun.nio.fs.UnixChannelFactory from preloaded-classes
Calin Juravle [Wed, 6 Jun 2018 13:13:39 +0000 (06:13 -0700)]
Remove sun.nio.fs.UnixChannelFactory from preloaded-classes

The tests use the preloaded classes to create the core image and
that leads to UnixChannelFactory being initialized despite the
fact that FileDescriptor is not. This manifests with a null pointer
crash in tests.

Bug: 80495283
Test: m test-art-host
Change-Id: I785104e6c69c605b16357a9557b203b489972261

6 years agoMerge "Notify WM that app is delayed closing due to the possibility of PIP." into...
TreeHugger Robot [Wed, 6 Jun 2018 12:57:55 +0000 (12:57 +0000)]
Merge "Notify WM that app is delayed closing due to the possibility of PIP." into pi-dev

6 years agoImport translations. DO NOT MERGE
Bill Yi [Wed, 6 Jun 2018 12:14:39 +0000 (05:14 -0700)]
Import translations. DO NOT MERGE

Auto-generated-cl: translation import

Bug: 64712476
Change-Id: I809062aaa6b66a40365e48d55c55a3adfb034102

6 years agoImport translations. DO NOT MERGE
Bill Yi [Wed, 6 Jun 2018 10:51:03 +0000 (03:51 -0700)]
Import translations. DO NOT MERGE

Auto-generated-cl: translation import

Bug: 64712476
Change-Id: I7cf2593eace5002a2e71243589299609ad5fc5a3

6 years agoImport translations. DO NOT MERGE
Bill Yi [Wed, 6 Jun 2018 10:06:03 +0000 (03:06 -0700)]
Import translations. DO NOT MERGE

Auto-generated-cl: translation import

Bug: 64712476
Change-Id: If983b267ec120be4bf5d6e788209576f147c4ab5

6 years agoAdd 3 more APIs to light grey.
Nicolas Geoffray [Wed, 6 Jun 2018 08:17:22 +0000 (09:17 +0100)]
Add 3 more APIs to light grey.

bug: 109746802
Test: m
Change-Id: I9b9fbed705adc59c5266378b576fc437c5078184

6 years agoMerge "Copy clat modified linkProperties into new one." into pi-dev
Junyu Lai [Wed, 6 Jun 2018 06:36:39 +0000 (06:36 +0000)]
Merge "Copy clat modified linkProperties into new one." into pi-dev

6 years agoMerge "Serialize calls into BinderProxy." into pi-dev
Martijn Coenen [Wed, 6 Jun 2018 05:33:14 +0000 (05:33 +0000)]
Merge "Serialize calls into BinderProxy." into pi-dev

6 years agoMerge "Randomize the local Wifi IPv4 address" into pi-dev
TreeHugger Robot [Wed, 6 Jun 2018 04:12:31 +0000 (04:12 +0000)]
Merge "Randomize the local Wifi IPv4 address" into pi-dev

6 years agoCopy clat modified linkProperties into new one.
junyulai [Tue, 5 Jun 2018 08:10:04 +0000 (16:10 +0800)]
Copy clat modified linkProperties into new one.

updateLinkProperties copied the linkProperties in networkAgent,
but the clat fix-up function did not copy stacked link into new one.
This caused an incorrect clat iface removal, and the IPv4 network
 to be unreachable.

Bug: 80261579
Test: 1. ping after ipv6 only data call with 2g voice call on/off
      2. runtest frameworks-net
      3. run cts -m CtsNetTestCases
Change-Id: Ide47a3b0680dddfcf3e2e759a59b19aee3605050

6 years agoRandomize the local Wifi IPv4 address
Erik Kline [Tue, 29 May 2018 10:24:43 +0000 (19:24 +0900)]
Randomize the local Wifi IPv4 address

Also: address a few "error prone" warnings, adding @Override where missing

Test: as follows
    - built, flashed, booted
    - wifi tethering uses a randomized address, DHCPv4 and DNS works
Bug: 32163131
Bug: 70673901

Merged-In: I47d75c32ccd4bcbbb2f05637fcbae216d7e15015
Merged-In: I8f8397978a13c8b2303dfcd950700b447ea61d3c

Change-Id: Icfabc48f2cf97b362ce292747f47021e84b900da

6 years agoMerge "Allow instant apps to launch instant apps" into pi-dev
TreeHugger Robot [Wed, 6 Jun 2018 03:09:48 +0000 (03:09 +0000)]
Merge "Allow instant apps to launch instant apps" into pi-dev

6 years agoMerge "Fix DefaultPermissionGrantPolicyTest" into pi-dev
TreeHugger Robot [Wed, 6 Jun 2018 02:20:42 +0000 (02:20 +0000)]
Merge "Fix DefaultPermissionGrantPolicyTest" into pi-dev

6 years agoMerge "Suppress AID log on adb logcat" into pi-dev
TreeHugger Robot [Wed, 6 Jun 2018 00:44:46 +0000 (00:44 +0000)]
Merge "Suppress AID log on adb logcat" into pi-dev

6 years ago[automerger skipped] Merge changes from topic "am-f5dc500e-4d32-4849-891e-c618cef666d...
Atanas Kirilov [Wed, 6 Jun 2018 00:39:01 +0000 (17:39 -0700)]
[automerger skipped] Merge changes from topic "am-f5dc500e-4d32-4849-891e-c618cef666de" into oc-dev am: c3b4881ea5 am: 4f74605d11
am: 94fbd36ef8  -s ours

Change-Id: I6ebb4b10741f702572574076cebe711605c01a2e

6 years agoExpose the source component which launched this task.
Winson Chung [Tue, 5 Jun 2018 19:11:02 +0000 (12:11 -0700)]
Expose the source component which launched this task.

Bug: 109698096
Test: Launch app in launcher, launch same task from overview, ensure we are
      logging the same component

Change-Id: I1c34267e7d4ac6ec467fab9467001b6301ee785c

6 years agoMerge "Log FIELD_AUTOFILL_SESSION_ID as string." into pi-dev
TreeHugger Robot [Wed, 6 Jun 2018 00:24:40 +0000 (00:24 +0000)]
Merge "Log FIELD_AUTOFILL_SESSION_ID as string." into pi-dev

6 years agoFix DefaultPermissionGrantPolicyTest
Eugene Susla [Wed, 6 Jun 2018 00:06:02 +0000 (17:06 -0700)]
Fix DefaultPermissionGrantPolicyTest

Fixes: 109665265
Test: check afterwards that the failure no longer occurs
Change-Id: I8ddb3052fa505ea4cd0a799a9225ca7991657141

6 years agoAllow instant apps to launch instant apps
Todd Kennedy [Mon, 4 Jun 2018 21:26:24 +0000 (14:26 -0700)]
Allow instant apps to launch instant apps

Instant apps should be able to launch other instant apps indirectly
using a web URI or with the MATCH_EXTERNAL flag set..

Change-Id: I2566937dd5d47076701c49435365dedd8593067a
Fixes: 92742631
Test: atest CtsAppSecurityHostTestCases:EphemeralTest

6 years agoFix exception from DateTimeView unregisters receiver again
Riddle Hsu [Tue, 5 Jun 2018 13:11:59 +0000 (21:11 +0800)]
Fix exception from DateTimeView unregisters receiver again

Although parent view may invoke onDetachedFromWindow incorrectly,
itself should guarantee to unregister receiver only when removing
the last attached view.

Change-Id: I4b701c223c6aa354896a4067f77aad9c98d88dfd
Fixes: 78506836
Test: atest FrameworksCoreTests:DateTimeViewTest

6 years agoMerge "Fix issue #109746350: startWatchingMode fails on P" into pi-dev
Dianne Hackborn [Tue, 5 Jun 2018 23:14:13 +0000 (23:14 +0000)]
Merge "Fix issue #109746350: startWatchingMode fails on P" into pi-dev

6 years agoMerge "Fix a calling loop for getAllUsers." into pi-dev
Ying Zheng [Tue, 5 Jun 2018 22:58:31 +0000 (22:58 +0000)]
Merge "Fix a calling loop for getAllUsers." into pi-dev

6 years agoMerge "Delay pruning direct share targets." into pi-dev
TreeHugger Robot [Tue, 5 Jun 2018 22:55:44 +0000 (22:55 +0000)]
Merge "Delay pruning direct share targets." into pi-dev

6 years agoMerge changes from topic "am-f5dc500e-4d32-4849-891e-c618cef666de" into oc-dev am...
Atanas Kirilov [Tue, 5 Jun 2018 22:38:16 +0000 (15:38 -0700)]
Merge changes from topic "am-f5dc500e-4d32-4849-891e-c618cef666de" into oc-dev am: c3b4881ea5
am: 4f74605d11

Change-Id: Id25fb236775c0055f6d9d32b9c67aab5c9acf570

6 years agoMerge "Revert "Enable WM.DEBUG_WALLPAPER_LIGHT logs"" into pi-dev
Wale Ogunwale [Tue, 5 Jun 2018 22:28:03 +0000 (22:28 +0000)]
Merge "Revert "Enable WM.DEBUG_WALLPAPER_LIGHT logs"" into pi-dev

6 years agoLog FIELD_AUTOFILL_SESSION_ID as string.
Felipe Leme [Tue, 5 Jun 2018 22:14:21 +0000 (15:14 -0700)]
Log FIELD_AUTOFILL_SESSION_ID as string.

Test: adb shell logcat -b events | grep 1456  # Example:

06-05 22:20:19.760 15733 16200 I sysui_multi_action: [757,906,758,4,806,com.example.android.autofill.app,871,com.example.android.autofill.app.commoncases.StandardSignInActivity,908,com.example.android.autofill.service,1452,0,1456,2033624394]

Fixes: 80093094

Change-Id: I784fa5549193e0bae0ed453b21d3d2c8fb01035c

6 years agoMerge changes from topic "am-f5dc500e-4d32-4849-891e-c618cef666de" into oc-dev
Atanas Kirilov [Tue, 5 Jun 2018 21:24:30 +0000 (14:24 -0700)]
Merge changes from topic "am-f5dc500e-4d32-4849-891e-c618cef666de" into oc-dev
am: c3b4881ea5

Change-Id: Ia58465b88ef5334753094719f4fdbb175b423f24

6 years agoChanging the recents component to point to launcher3 implementation
Sunny Goyal [Tue, 29 May 2018 23:24:13 +0000 (16:24 -0700)]
Changing the recents component to point to launcher3 implementation

Bug: 77490347
Test: Build and flashed system image
Change-Id: I7f58828dfcddb433d02515dcd6abfcfb10e73afd

6 years agoDon't access keyguard from instant apps.
Svet Ganov [Tue, 5 Jun 2018 01:18:34 +0000 (18:18 -0700)]
Don't access keyguard from instant apps.

Test: manual

bug:109652548

Change-Id: Ife1302e39e4f71f66d032619068a7e0214856b32

6 years agoFix issue #109746350: startWatchingMode fails on P
Dianne Hackborn [Tue, 5 Jun 2018 20:21:16 +0000 (13:21 -0700)]
Fix issue #109746350: startWatchingMode fails on P

Remove permission check, reverting to O behavior.

Bug: 109746350
Test: manual
Change-Id: I643321d508abc5fac5df83f4df3605ad8252e378

6 years agoMerge changes from topic "am-f5dc500e-4d32-4849-891e-c618cef666de" into oc-dev
Atanas Kirilov [Tue, 5 Jun 2018 19:37:52 +0000 (19:37 +0000)]
Merge changes from topic "am-f5dc500e-4d32-4849-891e-c618cef666de" into oc-dev

* changes:
  [automerger] Make safe label more safe am: 2263da9539 am: 05086b1008 am: 77f449068a am: 46f4563313 am: 6be1d6713f
  [automerger] Make safe label more safe am: 2263da9539 am: 05086b1008 am: 77f449068a am: 46f4563313
  [automerger] Make safe label more safe am: 2263da9539 am: 05086b1008 am: 77f449068a
  [automerger] Make safe label more safe am: 2263da9539 am: 05086b1008
  [automerger] Make safe label more safe am: 2263da9539
  Make safe label more safe

6 years agoDelay pruning direct share targets.
Dan Sandler [Tue, 5 Jun 2018 02:13:40 +0000 (22:13 -0400)]
Delay pruning direct share targets.

Pruning was intended to remove targets corresponding to
now-missing packages, but in practice causes the list to
briefly disappear any time packages change:

    PACKAGE_CHANGED ->
ResolverActivity.rebuildList() ->
    ChooserActivity.onListRebuilt() with an empty
    ResolverActivity.mDisplayList

In practice package changes happen all the time, so this
jank happens fairly often. (It contributed to b/67622422 as
well, since all this list rebuilding started animations that
locked out user input.)

This CL removes the old pruning process (comparing targets
against mDisplayList). Instead, we note that mDisplayList
got emptied, and lazily empty our own mServiceTargets once
we start getting responses back from all the services we
just re-queried.

The long-term fix here is to just rebuild all of this stuff.

Test: (1) share from Chrome
      (2) toggle the enable state of some random package
          to trigger PACKAGE_CHANGED, e.g.
          adb shell pm (enable|disable) com.android.egg
      (3) watch for jank
Bug: 109676071

Change-Id: Ie9d59b8f4b8cc8343beb40cbad6b8d52e5639082

6 years agoAudioRecord JNI: fix mem leak on audio_attributes_t
Jean-Michel Trivi [Tue, 5 Jun 2018 19:01:35 +0000 (12:01 -0700)]
AudioRecord JNI: fix mem leak on audio_attributes_t

Free memory calloc'd to hold audio_attributes_t for the
  AudioRecord instance.

Bug: 109700675
Test: see bug
Change-Id: I688c6d2ee4a2db5a4d96b54e33bcc7237daef235

6 years agoFix a calling loop for getAllUsers.
Ying Zheng [Tue, 5 Jun 2018 18:47:40 +0000 (11:47 -0700)]
Fix a calling loop for getAllUsers.

Bug: 109698349
Test: Manual
Change-Id: Id5def3c876ccfb390dd91f7cb24ebd43ebdeaef0

6 years agoMerge "Allow the system recents component to fetch info for user and profiles" into...
Winson Chung [Tue, 5 Jun 2018 18:12:16 +0000 (18:12 +0000)]
Merge "Allow the system recents component to fetch info for user and profiles" into pi-dev

6 years agoSuppress AID log on adb logcat
Akinobu Nakashima [Fri, 1 Jun 2018 07:35:10 +0000 (16:35 +0900)]
Suppress AID log on adb logcat

When NFC event transaction intent is sent,
the device shows AID information on logcat.
But such information should not be shown for security reasons.

Test: Send NFC EventTransaction and check logcat
Bug: 80551185
Change-Id: I8d1f9c1946bb1514e3a6bfa70fff03be4525d6b5
(cherry picked from commit 37e702861579fddfd275143c2421ca53f27cb41c)

6 years agoMerge "Fix: vendor public libraries are accessible via System.loadLibrary" into pi-dev
Jiyong Park [Tue, 5 Jun 2018 17:37:24 +0000 (17:37 +0000)]
Merge "Fix: vendor public libraries are accessible via System.loadLibrary" into pi-dev

6 years agoNotify WM that app is delayed closing due to the possibility of PIP.
chaviw [Wed, 30 May 2018 18:05:44 +0000 (11:05 -0700)]
Notify WM that app is delayed closing due to the possibility of PIP.

WM determines the IME target after it sets up all the app transitions
and handles visiblity. In most cases, this is fine since everything is
set up properly at once. However, in cases where the app can enter PIP,
the transition to close the app is delayed in case the app decides to
enter PIP. In this case AM needs to notify WM of this information so it
can properly calculate the IME target when the app transitions aren't
fully set up.

The specific usecase is the following:
1. App with the ability to enter PIP is open with IME
2. Home is pressed.
3. Launcher is brought to the front, previous app is not yet hidden
since the close is delayed.
4. IME is recalculated and doesn't see any closing app. IME is
targeted to launcher.
5. Prevous app is ready to close.

By this point, the IME was already incorrectly targeting launcher, which
causes the flicker since IME will get set relative to launcher.

Test: Open Chrome with IME. Press home. No flicker.
Change-Id: Ie3553b0a01ad567d8b34c3453ad838b88684e79d
Fixes: 80352830

6 years agoSupport seamless handover between VPN fds.
Lorenzo Colitti [Fri, 22 Sep 2017 12:27:32 +0000 (21:27 +0900)]
Support seamless handover between VPN fds.

This used to work before SOCK_DESTROY allowed us to close
connections when VPNs connected and disconnected. Instead of
doing this like the old code did by registering a new
NetworkAgent, support (limited) seamless handover on the
same NetworkAgent and netId.

Bug: 64692591
Test: cts-tradefed run commandAndExit cts-dev -m CtsHostsideNetworkTests -t com.android.cts.net.HostsideVpnTests#testSeamlessHandover
Change-Id: Idad0ec5946e7eb9e1f4a13c92ea7138de6a46f16

6 years ago[automerger] Optimise the hit test algorithm am: 71ecf5bd5c am: 42eaa8f932 am: a72cb4...
Android Build Merger (Role) [Tue, 5 Jun 2018 13:49:40 +0000 (13:49 +0000)]
[automerger] Optimise the hit test algorithm am: 71ecf5bd5c am: 42eaa8f932 am: a72cb45f89 am: f5d69aa775 skipped: 94bc67f03c

Change-Id: Ieefc1b15d0d1905d16b85df9117e4ce208c342d2

6 years agoMerge "Improve KeyChain documentation" into pi-dev
TreeHugger Robot [Tue, 5 Jun 2018 13:22:28 +0000 (13:22 +0000)]
Merge "Improve KeyChain documentation" into pi-dev

6 years agoMerge "Add camera APIs to light grey." into pi-dev
Nicolas Geoffray [Tue, 5 Jun 2018 13:15:24 +0000 (13:15 +0000)]
Merge "Add camera APIs to light grey." into pi-dev

6 years ago[automerger] Optimise the hit test algorithm am: 71ecf5bd5c am: 42eaa8f932 am: a72cb4...
Android Build Merger (Role) [Thu, 31 May 2018 16:46:41 +0000 (16:46 +0000)]
[automerger] Optimise the hit test algorithm am: 71ecf5bd5c am: 42eaa8f932 am: a72cb45f89 am: f5d69aa775

Change-Id: Ic2d4d3ead4926ff0f8021725e28aee4ebfc369f3
Merged-In: Ib66ef392c19c937718e7101f6d48fac3abe51ad0

6 years agoFurther interruptiveness changes
Julia Reynolds [Mon, 4 Jun 2018 16:27:58 +0000 (12:27 -0400)]
Further interruptiveness changes

- Compare strings instead of CharSequences in actions
- Ignore changes to remote input choices
- Ignore updates to summaries

Test: runtest systemui-notification
Change-Id: I33a29ee85d93658b2c7217a4ef3b300c9bd2850c
Fixes: 78643290

6 years agoFix repeated calls into reportExtractedText
Clara Bayarri [Mon, 4 Jun 2018 14:00:07 +0000 (15:00 +0100)]
Fix repeated calls into reportExtractedText

As part of adding the hint text feature in
I357dd5c74b61d149cf8612d1f52c7118ec70c696  I refactored
the code inside reportExtractedText to avoid nesting but lost one
of the condition checks in the process. Since onDraw calls into
this method on each frame, the missing check was causing calls to be
made into the IME even when no content or selection changes have
happened.

Test: CtsWidgetTestCases:.TextViewTest
Bug: 73613936
Change-Id: If56e3f1d45e64dccd052e4cff4d742f0cbecc07c

6 years ago[automerger skipped] Merge "Optimise the hit test algorithm" into oc-dev am: 6064d8fd...
Mihai Popa [Tue, 5 Jun 2018 12:17:27 +0000 (05:17 -0700)]
[automerger skipped] Merge "Optimise the hit test algorithm" into oc-dev am: 6064d8fd4c am: 0348259446  -s ours
am: 86c2ef5bde  -s ours

Change-Id: I334cf06de7d1e48eb52710c5844daa2b32b5b07c

6 years ago[automerger skipped] Merge "Optimise the hit test algorithm" into oc-dev am: 6064d8fd4c
Mihai Popa [Tue, 5 Jun 2018 11:51:17 +0000 (04:51 -0700)]
[automerger skipped] Merge "Optimise the hit test algorithm" into oc-dev am: 6064d8fd4c
am: 0348259446  -s ours

Change-Id: I7ddad2c5dd22f31c812683c4a715dc7738605ff9

6 years agoMerge "Optimise the hit test algorithm" into oc-dev
Mihai Popa [Tue, 5 Jun 2018 11:39:29 +0000 (04:39 -0700)]
Merge "Optimise the hit test algorithm" into oc-dev
am: 6064d8fd4c

Change-Id: I465c15edb18c3084e6b8cbf1f42c0c2c1ebea4eb

6 years ago[automerger skipped] Merge "Optimise the hit test algorithm" into oc-mr1-dev
Mihai Popa [Tue, 5 Jun 2018 11:38:11 +0000 (04:38 -0700)]
[automerger skipped] Merge "Optimise the hit test algorithm" into oc-mr1-dev
am: bbfee3189d  -s ours

Change-Id: I46ea8080731ca5cd9690dff3e60953f1b2d7e930

6 years agoMerge "Crashing can not override Keyguard transit" into pi-dev
Jorim Jaggi [Tue, 5 Jun 2018 11:32:55 +0000 (11:32 +0000)]
Merge "Crashing can not override Keyguard transit" into pi-dev

6 years agoMerge "Optimise the hit test algorithm" into oc-dev
TreeHugger Robot [Tue, 5 Jun 2018 11:28:42 +0000 (11:28 +0000)]
Merge "Optimise the hit test algorithm" into oc-dev

6 years agoMerge "Optimise the hit test algorithm" into oc-mr1-dev
TreeHugger Robot [Tue, 5 Jun 2018 11:28:11 +0000 (11:28 +0000)]
Merge "Optimise the hit test algorithm" into oc-mr1-dev

6 years agoMerge "Optimise the hit test algorithm" into pi-dev
TreeHugger Robot [Tue, 5 Jun 2018 11:24:19 +0000 (11:24 +0000)]
Merge "Optimise the hit test algorithm" into pi-dev

6 years agoMerge "Defer stop for all activities becoming invisible" into pi-dev
Jorim Jaggi [Tue, 5 Jun 2018 10:55:38 +0000 (10:55 +0000)]
Merge "Defer stop for all activities becoming invisible" into pi-dev

6 years agoSerialize calls into BinderProxy.
Martijn Coenen [Tue, 5 Jun 2018 09:02:23 +0000 (11:02 +0200)]
Serialize calls into BinderProxy.

The BinderProxy class is not thread-safe, hence all calls into it
must be serialized. This was achieved by holding the gProxyLock in
JNI code. However, a recent change added calls into BinderProxy
from ActivityManagerService without holding that lock, causing
ConcurrentModificationExceptions.

Instead of dumping debug info from AMS, make the call directly
from JNI, so we can make sure gProxyLock is held correctly.

Also, only dump on debug builds.

Bug: 71353150
Bug: 109701487
Test: sailfish builds, boots, info gets dumped with lowered limits.
Change-Id: I446a71ce4115b9936a01a170401ef98ba3818c0b

6 years agoAdd camera APIs to light grey.
Nicolas Geoffray [Tue, 5 Jun 2018 08:10:25 +0000 (09:10 +0100)]
Add camera APIs to light grey.

bug: 79935371
Test: m
Change-Id: I1b29664d711b168ff36ed68d111524c8357c3c20

6 years agoMerge "Allow except-idle whitelisted apps to start BG services in EBS" into pi-dev
Makoto Onuki [Tue, 5 Jun 2018 01:29:48 +0000 (01:29 +0000)]
Merge "Allow except-idle whitelisted apps to start BG services in EBS" into pi-dev

6 years agoAllow instant apps to send broadcasts to themselves
Svet Ganov [Mon, 4 Jun 2018 04:09:55 +0000 (21:09 -0700)]
Allow instant apps to send broadcasts to themselves

When resolving the broadcast targets we did not consider instant apps
even if the source is an instant app. This prevents the case of the
instant app sending the broadcast to itself. The broadcast queue already
enforces that if the broadcast is not from a full app that wants to
advertise to instant apps or not from an instant app sending it to itself
then it is not dispatched. Hence, the broadcast queue already determines
the right targeting. This change makes sure that if the source is an
instant app we also resolve instant apps and then the targeting logic
in the boradcast queue would ensure that an instant app can only send
a boradcast to its own UID.

Test: cts-instant-tradefed run cts-instant-dev -m CtsBackgroundRestrictionsTestCases
          -t android.app.cts.backgroundrestrictions.BroadcastsTest
              #testNonSupportedBroadcastsNotDelivered_manifestReceiver

bug:109583877

Change-Id: Ifb7230df87c4721e4c05d77b5957d825f3846ca7

6 years agoMerge "Ensure automatic battery saver won't stick" into pi-dev
TreeHugger Robot [Mon, 4 Jun 2018 23:35:15 +0000 (23:35 +0000)]
Merge "Ensure automatic battery saver won't stick" into pi-dev

6 years agoMerge "Revert "Update checking of flag MATCH_HIDDEN_UNTIL_INSTALLED_COMPONENTS""...
TreeHugger Robot [Mon, 4 Jun 2018 23:27:42 +0000 (23:27 +0000)]
Merge "Revert "Update checking of flag MATCH_HIDDEN_UNTIL_INSTALLED_COMPONENTS"" into pi-dev

6 years agoMerge "Read build flag to determine user model." into pi-dev
Ying Zheng [Mon, 4 Jun 2018 23:21:44 +0000 (23:21 +0000)]
Merge "Read build flag to determine user model." into pi-dev

6 years agoRead build flag to determine user model.
Ying Zheng [Fri, 1 Jun 2018 22:55:30 +0000 (15:55 -0700)]
Read build flag to determine user model.

Bug: 109698349
Test: Manual
Change-Id: I180b6a877ead576b0ed1292376fe0e74b0df1fd9

6 years agoAllow the system recents component to fetch info for user and profiles
Winson Chung [Mon, 4 Jun 2018 22:31:54 +0000 (15:31 -0700)]
Allow the system recents component to fetch info for user and profiles

- The recents component may need to fetch application info for the current
  user and its profiles.

Bug: 109660818
Test: atest CtsAppSecurityHostTestCases:ApplicationVisibilityTest
Change-Id: I7017d40fd2a7ac0d4f288bec21a4bc5cd93c446e

6 years agoAllow except-idle whitelisted apps to start BG services in EBS
Makoto Onuki [Mon, 4 Jun 2018 21:44:19 +0000 (14:44 -0700)]
Allow except-idle whitelisted apps to start BG services in EBS

Change-Id: I8dd42f48cf13c97b4e428afbf29838f442d8731b
Fixes: 80420676
Test: dumpsys activity processes| grep mDeviceIdle
  mDeviceIdleWhitelist=[1000, 1001, 2000, 10028, 10035, 10036, 10042, 10053, 10137, 10138, 10139, 10142]
  mDeviceIdleExceptIdleWhitelist=[1000, 1001, 2000, 10006, 10008, 10014, 10016, 10028, 10035, 10036, 10042, 10047, 10053, 10058, 10060, 10070, 10111, 10137, 10138, 10139, 10142]
Test: Manual test with "DEBUG_BACKGROUND_CHECK = true" and
am startservice 'com.android.vending/com.google.android.finsky.hygiene.DailyHygiene\$DailyHygieneService'
then check the whitelist log.

6 years agoMerge "Defer client visibility update when calculating new config" into pi-dev
Andrii Kulian [Mon, 4 Jun 2018 21:55:13 +0000 (21:55 +0000)]
Merge "Defer client visibility update when calculating new config" into pi-dev

6 years agoWi-Fi, now corporeal!
Evan Laird [Mon, 4 Jun 2018 21:54:42 +0000 (17:54 -0400)]
Wi-Fi, now corporeal!

Given a state where the Wi-Fi icon could overflow (i.e. on the lock
screen with mobile data and other icons showing:

Killing the sysui process could cause the whole wifi icon to become
hidden, and it never was unhidden.

Test: With the overflow space in use, `adb shell kill $(pid com.android.systemui)`
Change-Id: I026923b3dae16b9afa1a5acc3bd88887816a6391
Fixes: 80577291

6 years agoMerge "New behavior of setSynchronousMode" into pi-dev
TreeHugger Robot [Mon, 4 Jun 2018 21:30:17 +0000 (21:30 +0000)]
Merge "New behavior of setSynchronousMode" into pi-dev

6 years agoEnsure automatic battery saver won't stick
Makoto Onuki [Mon, 4 Jun 2018 20:54:25 +0000 (13:54 -0700)]
Ensure automatic battery saver won't stick

Fixes: 80527470
Test: Manual tests:
Test 1: (make sure automatic BS won't stick)
- Set up automatic battery saver at N%
- Wait until the battery goes below N% -> Battery saver will turn on
- Turn off the device
- Charge it until the battery goes above N%
- Turn on the device
- Make sure battery saver is off.

Test 1: (make sure manual BS will stick)
- Make sure the battery level is above the automatic threshold
- Manually enable BS
- Reboot
- Make sure battery saver is on.

Change-Id: I677fd586f6b25d0200392941cac2d13b57fe10b3

6 years agoMerge "Add shell command handler for account manager to allow enabling service bindin...
Hongming Jin [Mon, 4 Jun 2018 20:38:46 +0000 (20:38 +0000)]
Merge "Add shell command handler for account manager to allow enabling service binding for instant app. Test: cts-tradefed run cts -m CtsAccountManagerTestCases cts-instant-tradefed run cts-instant -m CtsAccountManagerTestCases Bug: 79367659" into pi-dev

6 years agoRevert "Update checking of flag MATCH_HIDDEN_UNTIL_INSTALLED_COMPONENTS"
Andrew Sapperstein [Mon, 4 Jun 2018 20:33:58 +0000 (20:33 +0000)]
Revert "Update checking of flag MATCH_HIDDEN_UNTIL_INSTALLED_COMPONENTS"

This reverts commit 44c4ca41d83d73d7c1d0e217a80a46a449e8c475.

Reason for revert: Wanted to go with a different option and this was mistakenly Dr. No'ed.

Bug: 80444486
Test: clean revert
Change-Id: I7fdd13a5bc0f4d9fabf91f3e5497c4065008b531

6 years agoMerge "Update checking of flag MATCH_HIDDEN_UNTIL_INSTALLED_COMPONENTS" into pi-dev
TreeHugger Robot [Mon, 4 Jun 2018 20:32:30 +0000 (20:32 +0000)]
Merge "Update checking of flag MATCH_HIDDEN_UNTIL_INSTALLED_COMPONENTS" into pi-dev

6 years ago[automerger skipped] Merge "WM: Prevent secondary display focus while keyguard is...
Adrian Roos [Mon, 4 Jun 2018 19:49:11 +0000 (12:49 -0700)]
[automerger skipped] Merge "WM: Prevent secondary display focus while keyguard is up" into oc-dev am: f04714c59a am: 6281d64277
am: 668761b146  -s ours

Change-Id: Icf2ed114aa3c2bf500ea59c3f52ec75d0f73ff84