OSDN Git Service

android-x86/frameworks-base.git
5 years agoMerge "Add a constant for ISDB_S3"
TreeHugger Robot [Mon, 28 Jan 2019 19:17:09 +0000 (19:17 +0000)]
Merge "Add a constant for ISDB_S3"

5 years agoMerge "Only log aborted activity background starts to TRON"
TreeHugger Robot [Mon, 28 Jan 2019 19:15:40 +0000 (19:15 +0000)]
Merge "Only log aborted activity background starts to TRON"

5 years agoMerge "Reset visibility before creating leash"
Jorim Jaggi [Mon, 28 Jan 2019 18:58:41 +0000 (18:58 +0000)]
Merge "Reset visibility before creating leash"

5 years agoMerge "Added a broadcast intent for clients to listen for country changes"
Jack Yu [Mon, 28 Jan 2019 18:28:23 +0000 (18:28 +0000)]
Merge "Added a broadcast intent for clients to listen for country changes"

5 years agoMerge "Pipe IME state into insets (IME transitions 3/n)"
Tarandeep Singh [Mon, 28 Jan 2019 18:14:34 +0000 (18:14 +0000)]
Merge "Pipe IME state into insets (IME transitions 3/n)"

5 years agoEnable per-profile IME by default
Yohei Yukawa [Mon, 28 Jan 2019 18:10:22 +0000 (10:10 -0800)]
Enable per-profile IME by default

With this CL, per-profile IME will be enabled by default.

Note that on debuggable builds (Build.IS_DEBUGGABLE == true),
developers can still disable per-profile IME mode as follows.

  adb root
  adb shell setprop persist.debug.per_profile_ime 0
  adb reboot

Note that multi-client IME [1] is a completely different story,
because it was designed to be fully multi-user / multi-profile aware
since its begging.  Enabling multi-client mode means that per-profile
mode is always enabled, because that's the only mode that
MultiClientInputMethodManagerService supports.

 [1]: I41dfe854557b178d8af740bc2869c936fc88608b
      bae5bea23cfac3769569a230b56ad85cdd000675

Fix: 63907246
Fix: 111083076
Test: atest CtsAdminTestCases CtsDevicePolicyManagerTestCases
Test: atest CtsInputMethodTestCases CtsInputMethodServiceHostTestCases
Test: Did multiple manual tests.
  * OTA scenario from older builds
  * Unlocking devices by typing password
  * App focus changes between personal apps and work apps
  * Direct-reply notifications from personal / work users
  * IME whitelist is only enforced to work IME settings
Change-Id: I854ce92b2bf3aab49f14f6cde444acf2182b9ad0

5 years agoMerge "Data profile refactoring"
TreeHugger Robot [Mon, 28 Jan 2019 18:08:56 +0000 (18:08 +0000)]
Merge "Data profile refactoring"

5 years agoMerge "Correct SurfaceView background visibility."
TreeHugger Robot [Mon, 28 Jan 2019 18:03:24 +0000 (18:03 +0000)]
Merge "Correct SurfaceView background visibility."

5 years agoMerge "Fix expansion change is not reported if the notification is updated"
TreeHugger Robot [Mon, 28 Jan 2019 18:02:04 +0000 (18:02 +0000)]
Merge "Fix expansion change is not reported if the notification is updated"

5 years agoMerge "Update smart reply/action sizes to follow mocks."
Gustav Sennton [Mon, 28 Jan 2019 17:56:52 +0000 (17:56 +0000)]
Merge "Update smart reply/action sizes to follow mocks."

5 years agoMerge "Added tap behavior to rows in OngoingPrivacyDialog"
TreeHugger Robot [Mon, 28 Jan 2019 17:42:14 +0000 (17:42 +0000)]
Merge "Added tap behavior to rows in OngoingPrivacyDialog"

5 years agoMerge "Create public intent for dpp configurator activity"
Salvador Martinez [Mon, 28 Jan 2019 17:35:41 +0000 (17:35 +0000)]
Merge "Create public intent for dpp configurator activity"

5 years agoMerge "Reset per-pkg app-ops for runtime permissions"
Philip P. Moltmann [Mon, 28 Jan 2019 17:04:24 +0000 (17:04 +0000)]
Merge "Reset per-pkg app-ops for runtime permissions"

5 years agoMerge "Avoid sending broadcasts before boot completes."
TreeHugger Robot [Mon, 28 Jan 2019 17:01:22 +0000 (17:01 +0000)]
Merge "Avoid sending broadcasts before boot completes."

5 years agoMerge "Merge "Remove unused library framework-oahl-backward-compatibility" am: 2111ae...
Android Build Merger (Role) [Mon, 28 Jan 2019 16:58:28 +0000 (16:58 +0000)]
Merge "Merge "Remove unused library framework-oahl-backward-compatibility" am: 2111aeb289 am: 6581b4116b am: 14e472690a"

5 years agoMerge "Remove unused library framework-oahl-backward-compatibility" am: 2111aeb289...
Paul Duffin [Mon, 28 Jan 2019 16:57:49 +0000 (08:57 -0800)]
Merge "Remove unused library framework-oahl-backward-compatibility" am: 2111aeb289 am: 6581b4116b
am: 14e472690a

Change-Id: I818ae412e68994c7ec32a13496064ae85457a6f7

5 years agoMerge "Enable Looper stats"
Olivier Gaillard [Mon, 28 Jan 2019 16:53:52 +0000 (16:53 +0000)]
Merge "Enable Looper stats"

5 years agoMerge "Add gaillard@ to owners." am: 1e02188bfe am: 78d79c5d5f
Olivier Gaillard [Mon, 28 Jan 2019 16:45:02 +0000 (08:45 -0800)]
Merge "Add gaillard@ to owners." am: 1e02188bfe am: 78d79c5d5f
am: d4aa9d051d

Change-Id: I2bf7c9529616dd1d703b5c8b97957f4affb2901f

5 years agoMerge "Remove unused library framework-oahl-backward-compatibility" am: 2111aeb289
Paul Duffin [Mon, 28 Jan 2019 16:42:14 +0000 (08:42 -0800)]
Merge "Remove unused library framework-oahl-backward-compatibility" am: 2111aeb289
am: 6581b4116b

Change-Id: I122a8f00652adf4134aef85e7af3d4ca79b56518

5 years agoMerge "Add @UnsupportedAppUsage to methods known to be used by apps" am: faedae5981...
David Brazdil [Mon, 28 Jan 2019 16:33:18 +0000 (08:33 -0800)]
Merge "Add @UnsupportedAppUsage to methods known to be used by apps" am: faedae5981 am: fe642a81d9
am: 47b4ad2c13

Change-Id: I6a85a7960825a6f2471338b17f8b9cf8497b8e10

5 years agoMerge "Add gaillard@ to owners." am: 1e02188bfe
Olivier Gaillard [Mon, 28 Jan 2019 16:30:48 +0000 (08:30 -0800)]
Merge "Add gaillard@ to owners." am: 1e02188bfe
am: 78d79c5d5f

Change-Id: I3ae2a1953d9a6e22aa972552f7afc7abfb8d11d1

5 years agoMerge "Add @UnsupportedAppUsage to methods known to be used by apps" am: faedae5981
David Brazdil [Mon, 28 Jan 2019 16:24:04 +0000 (08:24 -0800)]
Merge "Add @UnsupportedAppUsage to methods known to be used by apps" am: faedae5981
am: fe642a81d9

Change-Id: I927ed3371a0f6df6182999fb188d040af28289e6

5 years agoMerge "Remove unused library framework-oahl-backward-compatibility"
Paul Duffin [Mon, 28 Jan 2019 16:18:21 +0000 (08:18 -0800)]
Merge "Remove unused library framework-oahl-backward-compatibility"
am: 2111aeb289

Change-Id: I0ae3adfa825565c6e0f3321ace47dcee897eb337

5 years agoMerge "Add gaillard@ to owners."
Olivier Gaillard [Mon, 28 Jan 2019 16:14:05 +0000 (08:14 -0800)]
Merge "Add gaillard@ to owners."
am: 1e02188bfe

Change-Id: Ibb94159565a70a597de098f79c13c6a991e3ebcc

5 years agoMerge "Add @UnsupportedAppUsage to methods known to be used by apps"
David Brazdil [Mon, 28 Jan 2019 16:10:41 +0000 (08:10 -0800)]
Merge "Add @UnsupportedAppUsage to methods known to be used by apps"
am: faedae5981

Change-Id: I5263e1aa1a3a14fab7feb15acd3295f11dee0b15

5 years agoMerge "Update FileObserver to be able to watch multiple files."
Sudheer Shanka [Mon, 28 Jan 2019 16:01:50 +0000 (16:01 +0000)]
Merge "Update FileObserver to be able to watch multiple files."

5 years agoPipe IME state into insets (IME transitions 3/n)
Tarandeep Singh [Fri, 25 Jan 2019 19:47:57 +0000 (11:47 -0800)]
Pipe IME state into insets (IME transitions 3/n)

Add a IME state changes callback that pipes IME state into the Inset
consumer.

Bug: 118599175
Bug: 118118435
Test: atest InsetControllerTest
Test: atest InsetSourceConsumerTest
Test: atest ImeInsetsSourceConsumerTest

Change-Id: Id878226418e19cdf0499a0094f1d5c47fea33125

5 years agoMerge "Add API in SmsManager to return sms messages for financial app."
Hongming Jin [Mon, 28 Jan 2019 15:57:32 +0000 (15:57 +0000)]
Merge "Add API in SmsManager to return sms messages for financial app."

5 years agoAdded tap behavior to rows in OngoingPrivacyDialog
Fabian Kozynski [Mon, 28 Jan 2019 15:35:28 +0000 (10:35 -0500)]
Added tap behavior to rows in OngoingPrivacyDialog

The rows now direct to Permission Hub information for that app.

Test: manual
Test: previous Unit tests passing
Change-Id: I09e1205ee2340f5095c9c59414ddd9db440915b7
Fixes: 123415277

5 years agoMerge "Remove unused library framework-oahl-backward-compatibility"
Paul Duffin [Mon, 28 Jan 2019 15:40:13 +0000 (15:40 +0000)]
Merge "Remove unused library framework-oahl-backward-compatibility"

5 years agoMerge "Add gaillard@ to owners."
Treehugger Robot [Mon, 28 Jan 2019 15:37:24 +0000 (15:37 +0000)]
Merge "Add gaillard@ to owners."

5 years agoMerge "AudioTrack API for delay/padding in offload"
Jean-Michel Trivi [Mon, 28 Jan 2019 15:26:45 +0000 (15:26 +0000)]
Merge "AudioTrack API for delay/padding in offload"

5 years agoOnly log aborted activity background starts to TRON
Michal Karpinski [Mon, 28 Jan 2019 15:13:32 +0000 (15:13 +0000)]
Only log aborted activity background starts to TRON

And compute the relevant information only once, to be faster.

Bug: 123434182
Bug: 110956953
Test: atest WmTests:ActivityStarterTests
Change-Id: Id40653f01e3b96a667ad9a9642edee5d3d06db3c

5 years agoMerge "Hide Keepalive offload API in IpSec"
Junyu Lai [Mon, 28 Jan 2019 15:18:29 +0000 (15:18 +0000)]
Merge "Hide Keepalive offload API in IpSec"

5 years agoMerge "Rename smart replies and actions adjustment keys"
TreeHugger Robot [Mon, 28 Jan 2019 15:03:43 +0000 (15:03 +0000)]
Merge "Rename smart replies and actions adjustment keys"

5 years agoFix expansion change is not reported if the notification is updated
Tony Mak [Wed, 23 Jan 2019 20:57:08 +0000 (20:57 +0000)]
Fix expansion change is not reported if the notification is updated

When the notification is updated(reinflated), we should report the
expansion is visibly expanded again even it the notification of
the same key was already reported.

Test: atest ExpansionStateLoggerTest.java
Test: Manual. Send a message to myself. Observe
onNotificationExpansionChange is called. Send another message to update
the notification and go to see the notification. Observe that
onNotificationExpansionChange is called again.

Change-Id: Ie1f245c3954eafade0d81794b4722de6dfbec9dc

5 years agoMerge changes I315e75c3,I23d36950
TreeHugger Robot [Mon, 28 Jan 2019 14:42:18 +0000 (14:42 +0000)]
Merge changes I315e75c3,I23d36950

* changes:
  Commit rollbacks by ID, not by RollbackInfo.
  Stub out API to support rollback of staged installs.

5 years agoAvoid sending broadcasts before boot completes.
Dario Freni [Sun, 27 Jan 2019 23:26:06 +0000 (23:26 +0000)]
Avoid sending broadcasts before boot completes.

Fix: 123413830
Bug: 118865310
Test: Verified with a small app that pre-reboot broadcasts are sent
correctly, and no exception is reported at boot time when an APEX is
activated.
Change-Id: Ife9de5132ca0c858f842ee32f22cec5586efa4e5

5 years agoMerge "Add @UnsupportedAppUsage to methods known to be used by apps"
David Brazdil [Mon, 28 Jan 2019 14:23:43 +0000 (14:23 +0000)]
Merge "Add @UnsupportedAppUsage to methods known to be used by apps"

5 years agoMerge "Expose bugreporting API as system API."
Nandana Dutt [Mon, 28 Jan 2019 14:21:57 +0000 (14:21 +0000)]
Merge "Expose bugreporting API as system API."

5 years agoMerge "Add explicit SYSTEM_UID check to ActivityStarter#isUidPersistentSystemProcess()"
Michal Karpinski [Mon, 28 Jan 2019 14:04:37 +0000 (14:04 +0000)]
Merge "Add explicit SYSTEM_UID check to ActivityStarter#isUidPersistentSystemProcess()"

5 years agoMerge "[Magnifier-72] Rename Builder#setZoom"
Mihai Popa [Mon, 28 Jan 2019 13:46:50 +0000 (13:46 +0000)]
Merge "[Magnifier-72] Rename Builder#setZoom"

5 years agoReset visibility before creating leash
Jorim Jaggi [Tue, 22 Jan 2019 16:48:34 +0000 (17:48 +0100)]
Reset visibility before creating leash

Otherwise we create the leash with visibility=shown before the
client can update it, creating a flicker.

Test: Open IME, go home, observe no flicker
Bug: 111084606
Change-Id: I38eadaef79c27036edf5a86b773f6695d463db5c

5 years agoMerge "Add threshold flag for foreign language detection."
TreeHugger Robot [Mon, 28 Jan 2019 13:04:35 +0000 (13:04 +0000)]
Merge "Add threshold flag for foreign language detection."

5 years agoAdd @UnsupportedAppUsage to methods known to be used by apps
David Brazdil [Mon, 28 Jan 2019 12:43:28 +0000 (12:43 +0000)]
Add @UnsupportedAppUsage to methods known to be used by apps

Exempted-From-Owner-Approval: Automatic changes to the codebase
affecting only @UnsupportedAppUsage annotations, themselves added
without requiring owners approval earlier.

Bug: 123308819
Bug: 122291025
Test: m appcompat
Change-Id: Iafd62b8ece0d19268fad65086134a1e7369bc0bb

5 years agoCommit rollbacks by ID, not by RollbackInfo.
Richard Uhler [Thu, 24 Jan 2019 16:34:14 +0000 (16:34 +0000)]
Commit rollbacks by ID, not by RollbackInfo.

To make it clear that the system only pays attention to the provided
rollback ID when committing a rollback.

Also, rename executeRollback to commitRollback in IRollbackManager.aidl,
now that we are touching the code anyway.

Bug: 112431924
Test: atest RollbackTest
Change-Id: I315e75c39019536fb2f090a0c84ed4cf7c03ce8c

5 years agoStub out API to support rollback of staged installs.
Richard Uhler [Thu, 24 Jan 2019 16:12:07 +0000 (16:12 +0000)]
Stub out API to support rollback of staged installs.

Adds isStaged and getSessionId methods to RollbackInfo.

Bug: 112431924
Test: atest RollbackTest
Change-Id: I23d3695021474d52cd39a90bcabdb278d95cd4cc

5 years agoAdd explicit SYSTEM_UID check
Michal Karpinski [Mon, 28 Jan 2019 12:08:50 +0000 (12:08 +0000)]
Add explicit SYSTEM_UID check
to ActivityStarter#isUidPersistentSystemProcess()

Due to b/123502026 we're seeing some flakyness with
notifications especially, and SYSTEM_UID should never
be in those states.

Bug: 123359226
Bug: 110956953
Test: atest WmTests:ActivityStarterTests
Change-Id: I0d3c3b31c34cf4c9fa14e17ee10fc4b9b35553c7

5 years agoMerge "Add hidden utils and constants to NetworkStack" am: 567cc7890a am: 7bd6398634
Remi NGUYEN VAN [Mon, 28 Jan 2019 11:44:26 +0000 (03:44 -0800)]
Merge "Add hidden utils and constants to NetworkStack" am: 567cc7890a am: 7bd6398634
am: 44b56ba488

Change-Id: Ic04eb3e834c31033d6f4c25983a252b1d48f3a82

5 years agoMerge "Add PackageHealthObserverImpact"
TreeHugger Robot [Mon, 28 Jan 2019 11:39:27 +0000 (11:39 +0000)]
Merge "Add PackageHealthObserverImpact"

5 years agoMerge "Add hidden utils and constants to NetworkStack" am: 567cc7890a
Remi NGUYEN VAN [Mon, 28 Jan 2019 11:34:20 +0000 (03:34 -0800)]
Merge "Add hidden utils and constants to NetworkStack" am: 567cc7890a
am: 7bd6398634

Change-Id: Iac0cb991653c5556c219dbed802758a32dc1b63b

5 years agoAdd threshold flag for foreign language detection.
Abodunrinwa Toki [Fri, 25 Jan 2019 19:27:11 +0000 (19:27 +0000)]
Add threshold flag for foreign language detection.

Required for feature tuning and experiments

Also
- Updates Javadoc as per API review request
- Updates TextClassificationConstants test

Bug: 120794314
Bug: 118296637
Bug: 34780395
Test: atest core/tests/coretests/src/android/view/textclassifier/TextClassificationConstantsTest.java
Test: (MANUAL)
      1. Install an app that handles Intent.ACTION_TRANSLATE
      2. Run adb shell settings put global text_classifier_constants system_textclassifier_enabled=false,lang_id_threshold_override=0
      3. Select foreign text
      4. Observe that a "Translate" option is shown in the selection toolbar

      1. Install an app that handles Intent.ACTION_TRANSLATE
      2. Run adb shell settings put global text_classifier_constants system_textclassifier_enabled=false,lang_id_threshold_override=2
      3. Select foreign text
      4. Observe that a "Translate" option is not shown in the selection toolbar

Change-Id: I02b6ca48669e66a24150b04bba2ebfcf9ebe6bfd

5 years agoMerge "Add hidden utils and constants to NetworkStack"
Remi NGUYEN VAN [Mon, 28 Jan 2019 11:22:16 +0000 (03:22 -0800)]
Merge "Add hidden utils and constants to NetworkStack"
am: 567cc7890a

Change-Id: I589b2ca6ac0a1562969ec4aeda1a8a4a60660814

5 years agoMerge "Add hidden utils and constants to NetworkStack"
Remi NGUYEN VAN [Mon, 28 Jan 2019 11:08:00 +0000 (11:08 +0000)]
Merge "Add hidden utils and constants to NetworkStack"

5 years agoMerge "Notify SystemUI when ActivityDisplay is ready"
TreeHugger Robot [Mon, 28 Jan 2019 10:10:33 +0000 (10:10 +0000)]
Merge "Notify SystemUI when ActivityDisplay is ready"

5 years ago[Magnifier-72] Rename Builder#setZoom
Mihai Popa [Thu, 10 Jan 2019 19:59:29 +0000 (19:59 +0000)]
[Magnifier-72] Rename Builder#setZoom

The CL renames the setZoom method for Magnifier.Builder to
setInitialZoom, since the zoom can be changed after the instance is
created using the Magnifier.setZoom method.

Bug: 120609112
Test: atest CtsWidgetTestCases:android.widget.cts.MagnifierTest
Change-Id: Ide2508ab49e3f3660aa089876029e351b4cef603

5 years ago[automerger skipped] Merge "Move NetworkUtils used by NetworkStack" am: b8bbc48dee...
Remi NGUYEN VAN [Mon, 28 Jan 2019 09:47:49 +0000 (01:47 -0800)]
[automerger skipped] Merge "Move NetworkUtils used by NetworkStack" am: b8bbc48dee am: 4c5b40e084
am: 9a77141364 -s ours
am skip reason: change_id Ie20dcee375b377236004a7689890729493aca857 with SHA1 77dd54d3d4 is in history

Change-Id: I5ea53ddf91c48d0700fe37318647b1e1fa26de23

5 years agoMerge "Add NetworkObserverRegistry to NetworkStack" am: 375b3c075d am: 9a4810415c
Remi NGUYEN VAN [Mon, 28 Jan 2019 09:40:53 +0000 (01:40 -0800)]
Merge "Add NetworkObserverRegistry to NetworkStack" am: 375b3c075d am: 9a4810415c
am: ecac3d1bc0

Change-Id: I63c258d07eccb61889bcb37b3a8819e80a42c692

5 years agoMerge "Move NetworkUtils used by NetworkStack" am: b8bbc48dee
Remi NGUYEN VAN [Mon, 28 Jan 2019 09:30:17 +0000 (01:30 -0800)]
Merge "Move NetworkUtils used by NetworkStack" am: b8bbc48dee
am: 4c5b40e084

Change-Id: I0d6a40c79e92d1de18c41cc50b72fbe33db13bdc

5 years agoMerge "Add NetworkStack tests to postsubmit" am: f4fb1b5251 am: 4a19a149db
Remi NGUYEN VAN [Mon, 28 Jan 2019 09:28:38 +0000 (01:28 -0800)]
Merge "Add NetworkStack tests to postsubmit" am: f4fb1b5251 am: 4a19a149db
am: 04a764d873

Change-Id: I23481797072588084bb84366d23fbe135676b7a4

5 years agoMerge "Add NetworkObserverRegistry to NetworkStack" am: 375b3c075d
Remi NGUYEN VAN [Mon, 28 Jan 2019 09:22:33 +0000 (01:22 -0800)]
Merge "Add NetworkObserverRegistry to NetworkStack" am: 375b3c075d
am: 9a4810415c

Change-Id: Ia5a7a128dc3bb28b5aad183fcd9a339036a5834b

5 years agoMerge "Move NetworkUtils used by NetworkStack"
Remi NGUYEN VAN [Mon, 28 Jan 2019 09:21:01 +0000 (01:21 -0800)]
Merge "Move NetworkUtils used by NetworkStack"
am: b8bbc48dee

Change-Id: Ib83c3cb8ced0d226bd57375cd4600665d72fd962

5 years agoMerge "Add NetworkStack tests to postsubmit" am: f4fb1b5251
Remi NGUYEN VAN [Mon, 28 Jan 2019 09:17:19 +0000 (01:17 -0800)]
Merge "Add NetworkStack tests to postsubmit" am: f4fb1b5251
am: 4a19a149db

Change-Id: I544dc328b01137abfb001c0529a45843fd37b0f1

5 years agoMerge "Add NetworkObserverRegistry to NetworkStack"
Remi NGUYEN VAN [Mon, 28 Jan 2019 09:10:44 +0000 (01:10 -0800)]
Merge "Add NetworkObserverRegistry to NetworkStack"
am: 375b3c075d

Change-Id: Ife53135ab98c56a276ede9c7bbe7c345484c5e55

5 years agoMerge "Add NetworkStack tests to postsubmit"
Remi NGUYEN VAN [Mon, 28 Jan 2019 09:06:51 +0000 (01:06 -0800)]
Merge "Add NetworkStack tests to postsubmit"
am: f4fb1b5251

Change-Id: I50ff0bb440318d3bb9ac8304868b5f3f58a10fff

5 years agoMerge "Move NetworkUtils used by NetworkStack"
Remi NGUYEN VAN [Mon, 28 Jan 2019 09:06:20 +0000 (09:06 +0000)]
Merge "Move NetworkUtils used by NetworkStack"

5 years agoMerge "Update accessibility timeout settings to proto."
Rhed Jao [Mon, 28 Jan 2019 09:00:31 +0000 (09:00 +0000)]
Merge "Update accessibility timeout settings to proto."

5 years agoMerge "Add INetd to SystemServiceRegistry" am: e3f18bd77c am: 9268c0be32
Remi NGUYEN VAN [Mon, 28 Jan 2019 08:59:28 +0000 (00:59 -0800)]
Merge "Add INetd to SystemServiceRegistry" am: e3f18bd77c am: 9268c0be32
am: 50c95ba67c

Change-Id: I10cbfc198a0713dc53bfca611c082bbb387c1194

5 years agoMerge "Add NetworkObserverRegistry to NetworkStack"
Remi NGUYEN VAN [Mon, 28 Jan 2019 08:54:06 +0000 (08:54 +0000)]
Merge "Add NetworkObserverRegistry to NetworkStack"

5 years agoMerge "Add NetworkStack tests to postsubmit"
Remi NGUYEN VAN [Mon, 28 Jan 2019 08:53:13 +0000 (08:53 +0000)]
Merge "Add NetworkStack tests to postsubmit"

5 years agoMerge "Add INetd to SystemServiceRegistry" am: e3f18bd77c
Remi NGUYEN VAN [Mon, 28 Jan 2019 08:47:45 +0000 (00:47 -0800)]
Merge "Add INetd to SystemServiceRegistry" am: e3f18bd77c
am: 9268c0be32

Change-Id: I92cd23a587ab0f7df2db92918011a9a488c31668

5 years ago[automerger skipped] Merge "Add NetworkStack networking deps to SystemApi" am: 9188b4...
Remi NGUYEN VAN [Mon, 28 Jan 2019 08:44:06 +0000 (00:44 -0800)]
[automerger skipped] Merge "Add NetworkStack networking deps to SystemApi" am: 9188b49259 am: bc7a8f14f4
am: f6a3b910bb -s ours
am skip reason: change_id Id59dc06fb85e4ac88098f56b621ec880610759ce with SHA1 ca1820bf2f is in history

Change-Id: I8e2ed91ef75e3a2f855b2b3549c0db5e1511ca5e

5 years agoMerge "Add INetd to SystemServiceRegistry"
Remi NGUYEN VAN [Mon, 28 Jan 2019 08:38:38 +0000 (00:38 -0800)]
Merge "Add INetd to SystemServiceRegistry"
am: e3f18bd77c

Change-Id: I510c964ead030f3522c26c123e709117c7c14f6a

5 years agoMerge "Add NetworkStack networking deps to SystemApi" am: 9188b49259
Remi NGUYEN VAN [Mon, 28 Jan 2019 08:35:46 +0000 (00:35 -0800)]
Merge "Add NetworkStack networking deps to SystemApi" am: 9188b49259
am: bc7a8f14f4

Change-Id: I843cb189750666a2cb70b1960d49dfe797f3cf36

5 years agoMerge "Add INetd to SystemServiceRegistry"
Remi NGUYEN VAN [Mon, 28 Jan 2019 08:27:02 +0000 (08:27 +0000)]
Merge "Add INetd to SystemServiceRegistry"

5 years agoMerge "Add NetworkStack networking deps to SystemApi"
Remi NGUYEN VAN [Mon, 28 Jan 2019 08:26:39 +0000 (00:26 -0800)]
Merge "Add NetworkStack networking deps to SystemApi"
am: 9188b49259

Change-Id: Id8b31f100ab07ca9a38f4cff26c719dd9d74bc54

5 years agoAdd PackageHealthObserverImpact
Zimuzo [Wed, 23 Jan 2019 18:11:58 +0000 (18:11 +0000)]
Add PackageHealthObserverImpact

When a package fails health check, observers will report the impact of their
action on the user. Only the observer with the least user impact will be
allowed to take action.

Bug: 120598832
Test: atest PackageWatchdogTest
Change-Id: I15f358cd599431e1d7ea211aea5b1391f4aa33ab

5 years agoMerge "Add NetworkStack networking deps to SystemApi"
Remi NGUYEN VAN [Mon, 28 Jan 2019 08:12:55 +0000 (08:12 +0000)]
Merge "Add NetworkStack networking deps to SystemApi"

5 years agoFix InputMethodSettings#getInt() for nonexistent key when copy-on-write is on
Yohei Yukawa [Mon, 28 Jan 2019 07:18:32 +0000 (23:18 -0800)]
Fix InputMethodSettings#getInt() for nonexistent key when copy-on-write is on

It turns out that InputMethodSettings#getInt() has always returned 0
instead of the specified default value when copy-on-write is on and
the specified key does not exist since the mechanism was introduced
to support direct-boot [1].

Most likely this would not have been a big issue, but let's fix it
just in case.

[1]: I9c6f9bb3d51174198e5f73588637f87ea0d90e11
     68645a638ad1bfb734b2b0f56b17fe206bb891c5

Bug: 26279466
Test: atest CtsInputMethodTestCases CtsInputMethodServiceHostTestCases
Change-Id: If2abc0604372cf394105db9395706aaa0f570431

5 years agoMerge "Move NetworkUtils used by NetworkStack"
Remi NGUYEN VAN [Mon, 28 Jan 2019 06:57:25 +0000 (06:57 +0000)]
Merge "Move NetworkUtils used by NetworkStack"

5 years agoNotify SystemUI when ActivityDisplay is ready
Charles Chen [Thu, 24 Jan 2019 14:19:37 +0000 (22:19 +0800)]
Notify SystemUI when ActivityDisplay is ready

Bug: 120748674
Test: atest ActivityManagerMultiDisplayTests#testNavBarNotShowingOnDisplayWithoutDecor * 100
Test: atest ActivityManagerMultiDisplayTests#testNavBarShowingOnDisplayWithDecor * 100
Test: atest ActivityManagerMultiDisplayTests#testNavBarNotShowingOnPrivateDisplay * 100
Test: atest SystemUITests
Change-Id: I302a35b9b860ab881b60c6407edabb2da16b75f8

5 years agoAdd NetworkObserverRegistry to NetworkStack
Remi NGUYEN VAN [Mon, 28 Jan 2019 01:24:42 +0000 (10:24 +0900)]
Add NetworkObserverRegistry to NetworkStack

The NetworkObserverRegistry will replace usage of
NetworkManagementService in the app.

Test: m, booted, WiFi working
Bug: 112869080
Change-Id: Ic7f0114d0c9361dd2408e47bb04a8dd44a908a47

5 years agoReset per-pkg app-ops for runtime permissions
Philip P. Moltmann [Sat, 26 Jan 2019 00:42:36 +0000 (16:42 -0800)]
Reset per-pkg app-ops for runtime permissions

... on every boot.

These should never have been set, but we allow settings them via the
shell.

- Also previously a bug set per-pkg app-ops.
- Also set the app-op correctly when a fg/bg permission looses it's bg
permission.

Test: Set per-pkg app-opp. Rebooted and saw log message.
      atest --test-mapping frameworks/base/services/core/java/com/android/server/pm/permission/:presubmit
Change-Id: If3b56fc08783ea99b4dba70c5fa275b94411ce94
Fixes: 123177944

5 years agoMove NetworkUtils used by NetworkStack
Remi NGUYEN VAN [Thu, 24 Jan 2019 23:54:08 +0000 (08:54 +0900)]
Move NetworkUtils used by NetworkStack

Depending on usage move into NetworkStackUtils or shared
Inet4AddressUtils.

Test: atest FrameworksNetTests NetworkStackTests
Bug: 112869080
(Cherry-pick of aosp/881952)
Change-Id: Ie20dcee375b377236004a7689890729493aca857

5 years agoUpdate FileObserver to be able to watch multiple files.
Sudheer Shanka [Sun, 27 Jan 2019 22:18:26 +0000 (14:18 -0800)]
Update FileObserver to be able to watch multiple files.

Bug: 120879205
Test: atest cts/tests/tests/os/src/android/os/cts/FileObserverTest.java
Test: atest frameworks/base/core/tests/coretests/src/android/os/FileObserverTest.java
Change-Id: Ie1067c81dc502f2ad971e1f5d02be8baa319c3ad

5 years agoAdd hidden utils and constants to NetworkStack
Remi NGUYEN VAN [Sun, 20 Jan 2019 04:48:19 +0000 (13:48 +0900)]
Add hidden utils and constants to NetworkStack

Test: atest FrameworksNetTests NetworkStackTests
Bug: 112869080
Change-Id: I1a803f7954ab760294436226d6c1cffb934e98f9

5 years agoMove NetworkUtils used by NetworkStack
Remi NGUYEN VAN [Sun, 20 Jan 2019 00:35:10 +0000 (09:35 +0900)]
Move NetworkUtils used by NetworkStack

Depending on usage move into NetworkStackUtils or shared
Inet4AddressUtils.

Test: atest FrameworksNetTests NetworkStackTests
Bug: 112869080
Merged-In: Ie20dcee375b377236004a7689890729493aca857
Change-Id: Ib8d000529872796022706a35050fdc2c7141f2ab

5 years agoAdd NetworkStack networking deps to SystemApi
Remi NGUYEN VAN [Mon, 28 Jan 2019 04:28:35 +0000 (13:28 +0900)]
Add NetworkStack networking deps to SystemApi

Cherry-pick with conflicts fixed in CaptivePortalLoginActivity imports.
Test: atest FrameworksNetTests
Bug: 112869080
Merged-In: Id59dc06fb85e4ac88098f56b621ec880610759ce
Change-Id: I3c05e8fdd70497426d4fa433295c4fbdad07d9c9

5 years agoMerge "Change latency to int64"
TreeHugger Robot [Mon, 28 Jan 2019 04:05:33 +0000 (04:05 +0000)]
Merge "Change latency to int64"

5 years agoMerge "Fix theme cannot change due to there is no wallpaper colors." into pi-dev...
wilsonshih [Mon, 28 Jan 2019 03:15:09 +0000 (19:15 -0800)]
Merge "Fix theme cannot change due to there is no wallpaper colors." into pi-dev am: dee98726bf
am: ff5c8bac7c

Change-Id: Id789abf9c9f96236385ccbab987393e34de7300c

5 years agoAdd INetd to SystemServiceRegistry
Remi NGUYEN VAN [Mon, 28 Jan 2019 02:40:08 +0000 (11:40 +0900)]
Add INetd to SystemServiceRegistry

Includes @SystemApi for Context.NETD_SERVICE so system apps (including
the network stack) can obtain the service.

Test: m
Bug: 112869080
Change-Id: Ida63747cd30abb7b3c19559803353eb0e42e6efa

5 years agoMerge "Fix theme cannot change due to there is no wallpaper colors." into pi-dev
wilsonshih [Mon, 28 Jan 2019 03:07:27 +0000 (19:07 -0800)]
Merge "Fix theme cannot change due to there is no wallpaper colors." into pi-dev
am: dee98726bf

Change-Id: Ic1c76d95bcd9e16c8209e948fc06bd90d4207de7

5 years agoMerge "Add NetworkStack networking deps to SystemApi"
Lorenzo Colitti [Mon, 28 Jan 2019 02:58:01 +0000 (02:58 +0000)]
Merge "Add NetworkStack networking deps to SystemApi"

5 years agoMerge "Fix theme cannot change due to there is no wallpaper colors." into pi-dev
TreeHugger Robot [Mon, 28 Jan 2019 02:51:26 +0000 (02:51 +0000)]
Merge "Fix theme cannot change due to there is no wallpaper colors." into pi-dev

5 years agoMerge "Turn on feature flag for slice injection."
Lei Yu [Mon, 28 Jan 2019 02:33:33 +0000 (02:33 +0000)]
Merge "Turn on feature flag for slice injection."

5 years agoMerge "Add a westworld atom for SystemUI bubbles logging."
Steven Wu [Mon, 28 Jan 2019 00:12:37 +0000 (00:12 +0000)]
Merge "Add a westworld atom for SystemUI bubbles logging."

5 years agoMerge "Add new ExternalVibratorService."
Michael Wright [Sun, 27 Jan 2019 23:44:13 +0000 (23:44 +0000)]
Merge "Add new ExternalVibratorService."

5 years agoMerge "Add Cursor.{set,get}NotificationUris."
Sudheer Shanka [Sun, 27 Jan 2019 23:00:13 +0000 (23:00 +0000)]
Merge "Add Cursor.{set,get}NotificationUris."

5 years agoAdd a westworld atom for SystemUI bubbles logging.
Steven Wu [Wed, 23 Jan 2019 19:21:17 +0000 (14:21 -0500)]
Add a westworld atom for SystemUI bubbles logging.

Bug: 111236845
Test: manual
Change-Id: I94736afabd210ac32d430f17a8c5d71f4ada9b87

5 years agoChange latency to int64
Kevin Chyn [Sun, 27 Jan 2019 20:23:47 +0000 (12:23 -0800)]
Change latency to int64

Bug: 120161047
Bug: 117060268
Bug: 121072756
Bug: 121071984

Test: Builds
Change-Id: I67a23128a35b76302dbde04b6838420b8731da61