Commit Graph

401737 Commits

Author SHA1 Message Date
Jack Yu
36d048c3ff Merge "Added a broadcast intent for clients to listen for country changes" 2019-01-28 18:28:23 +00:00
Tarandeep Singh
e8d1eaa1dc Merge "Pipe IME state into insets (IME transitions 3/n)" 2019-01-28 18:14:34 +00:00
Yohei Yukawa
30026c854c 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
      bae5bea23c

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
2019-01-28 10:10:22 -08:00
TreeHugger Robot
501ef01725 Merge "Data profile refactoring" 2019-01-28 18:08:56 +00:00
TreeHugger Robot
fce062c23a Merge "Correct SurfaceView background visibility." 2019-01-28 18:03:24 +00:00
TreeHugger Robot
5887049c6f Merge "Fix expansion change is not reported if the notification is updated" 2019-01-28 18:02:04 +00:00
Gustav Sennton
d6a69968b3 Merge "Update smart reply/action sizes to follow mocks." 2019-01-28 17:56:52 +00:00
TreeHugger Robot
a28d914457 Merge "Added tap behavior to rows in OngoingPrivacyDialog" 2019-01-28 17:42:14 +00:00
Salvador Martinez
6994848491 Merge "Create public intent for dpp configurator activity" 2019-01-28 17:35:41 +00:00
Philip P. Moltmann
87969723fc Merge "Reset per-pkg app-ops for runtime permissions" 2019-01-28 17:04:24 +00:00
TreeHugger Robot
94f1dbb447 Merge "Avoid sending broadcasts before boot completes." 2019-01-28 17:01:22 +00:00
Android Build Merger (Role)
a3287803f0 Merge "Merge "Remove unused library framework-oahl-backward-compatibility" am: 2111aeb289 am: 6581b4116b am: 14e472690a" 2019-01-28 16:58:28 +00:00
Paul Duffin
49a3aab013 Merge "Remove unused library framework-oahl-backward-compatibility" am: 2111aeb289 am: 6581b4116b
am: 14e472690a

Change-Id: I818ae412e68994c7ec32a13496064ae85457a6f7
2019-01-28 08:57:49 -08:00
Olivier Gaillard
ae13a1f874 Merge "Enable Looper stats" 2019-01-28 16:53:52 +00:00
Olivier Gaillard
908e048d73 Merge "Add gaillard@ to owners." am: 1e02188bfe am: 78d79c5d5f
am: d4aa9d051d

Change-Id: I2bf7c9529616dd1d703b5c8b97957f4affb2901f
2019-01-28 08:45:02 -08:00
Paul Duffin
14e472690a Merge "Remove unused library framework-oahl-backward-compatibility" am: 2111aeb289
am: 6581b4116b

Change-Id: I122a8f00652adf4134aef85e7af3d4ca79b56518
2019-01-28 08:42:14 -08:00
David Brazdil
f7ad5af4a8 Merge "Add @UnsupportedAppUsage to methods known to be used by apps" am: faedae5981 am: fe642a81d9
am: 47b4ad2c13

Change-Id: I6a85a7960825a6f2471338b17f8b9cf8497b8e10
2019-01-28 08:33:18 -08:00
Olivier Gaillard
d4aa9d051d Merge "Add gaillard@ to owners." am: 1e02188bfe
am: 78d79c5d5f

Change-Id: I3ae2a1953d9a6e22aa972552f7afc7abfb8d11d1
2019-01-28 08:30:48 -08:00
David Brazdil
47b4ad2c13 Merge "Add @UnsupportedAppUsage to methods known to be used by apps" am: faedae5981
am: fe642a81d9

Change-Id: I927ed3371a0f6df6182999fb188d040af28289e6
2019-01-28 08:24:04 -08:00
Paul Duffin
6581b4116b Merge "Remove unused library framework-oahl-backward-compatibility"
am: 2111aeb289

Change-Id: I0ae3adfa825565c6e0f3321ace47dcee897eb337
2019-01-28 08:18:21 -08:00
Olivier Gaillard
78d79c5d5f Merge "Add gaillard@ to owners."
am: 1e02188bfe

Change-Id: Ibb94159565a70a597de098f79c13c6a991e3ebcc
2019-01-28 08:14:05 -08:00
David Brazdil
fe642a81d9 Merge "Add @UnsupportedAppUsage to methods known to be used by apps"
am: faedae5981

Change-Id: I5263e1aa1a3a14fab7feb15acd3295f11dee0b15
2019-01-28 08:10:41 -08:00
Sudheer Shanka
31f977a443 Merge "Update FileObserver to be able to watch multiple files." 2019-01-28 16:01:50 +00:00
Tarandeep Singh
2cbcd7ffbf 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
2019-01-28 16:58:32 +01:00
Hongming Jin
175e2f24a2 Merge "Add API in SmsManager to return sms messages for financial app." 2019-01-28 15:57:32 +00:00
Fabian Kozynski
0d03da3723 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
2019-01-28 10:48:26 -05:00
Paul Duffin
2111aeb289 Merge "Remove unused library framework-oahl-backward-compatibility" 2019-01-28 15:40:13 +00:00
Treehugger Robot
1e02188bfe Merge "Add gaillard@ to owners." 2019-01-28 15:37:24 +00:00
Jean-Michel Trivi
170725ab67 Merge "AudioTrack API for delay/padding in offload" 2019-01-28 15:26:45 +00:00
Junyu Lai
f75556a089 Merge "Hide Keepalive offload API in IpSec" 2019-01-28 15:18:29 +00:00
TreeHugger Robot
bf1d8ab140 Merge "Rename smart replies and actions adjustment keys" 2019-01-28 15:03:43 +00:00
Tony Mak
96b3f1bde4 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
2019-01-28 15:02:07 +00:00
TreeHugger Robot
196437d3cb Merge changes I315e75c3,I23d36950
* changes:
  Commit rollbacks by ID, not by RollbackInfo.
  Stub out API to support rollback of staged installs.
2019-01-28 14:42:18 +00:00
Dario Freni
9694b80d80 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
2019-01-28 14:34:01 +00:00
David Brazdil
faedae5981 Merge "Add @UnsupportedAppUsage to methods known to be used by apps" 2019-01-28 14:23:43 +00:00
Nandana Dutt
b8a51a3169 Merge "Expose bugreporting API as system API." 2019-01-28 14:21:57 +00:00
Michal Karpinski
7f2d1a73a8 Merge "Add explicit SYSTEM_UID check to ActivityStarter#isUidPersistentSystemProcess()" 2019-01-28 14:04:37 +00:00
Mihai Popa
2444f5a510 Merge "[Magnifier-72] Rename Builder#setZoom" 2019-01-28 13:46:50 +00:00
TreeHugger Robot
92fd290867 Merge "Add threshold flag for foreign language detection." 2019-01-28 13:04:35 +00:00
David Brazdil
576da0582f 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
2019-01-28 12:46:33 +00:00
Richard Uhler
e87368e1fd 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
2019-01-28 12:39:05 +00:00
Richard Uhler
e4e38d6631 Stub out API to support rollback of staged installs.
Adds isStaged and getSessionId methods to RollbackInfo.

Bug: 112431924
Test: atest RollbackTest
Change-Id: I23d3695021474d52cd39a90bcabdb278d95cd4cc
2019-01-28 12:37:23 +00:00
Michal Karpinski
95722b5104 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
2019-01-28 12:08:54 +00:00
Remi NGUYEN VAN
530c508ed1 Merge "Add hidden utils and constants to NetworkStack" am: 567cc7890a am: 7bd6398634
am: 44b56ba488

Change-Id: Ic04eb3e834c31033d6f4c25983a252b1d48f3a82
2019-01-28 03:44:26 -08:00
TreeHugger Robot
91c145ac57 Merge "Add PackageHealthObserverImpact" 2019-01-28 11:39:27 +00:00
Remi NGUYEN VAN
44b56ba488 Merge "Add hidden utils and constants to NetworkStack" am: 567cc7890a
am: 7bd6398634

Change-Id: Iac0cb991653c5556c219dbed802758a32dc1b63b
2019-01-28 03:34:20 -08:00
Abodunrinwa Toki
a77dba6a22 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
2019-01-28 11:27:01 +00:00
Remi NGUYEN VAN
7bd6398634 Merge "Add hidden utils and constants to NetworkStack"
am: 567cc7890a

Change-Id: I589b2ca6ac0a1562969ec4aeda1a8a4a60660814
2019-01-28 03:22:16 -08:00
Remi NGUYEN VAN
567cc7890a Merge "Add hidden utils and constants to NetworkStack" 2019-01-28 11:08:00 +00:00
TreeHugger Robot
4086088aa9 Merge "Notify SystemUI when ActivityDisplay is ready" 2019-01-28 10:10:33 +00:00