Commit Graph

397406 Commits

Author SHA1 Message Date
TYM Tsai
2d23690ef4 Protects query pulse reason exception
Checks the machine is currently in one of the pulse states before
query the current pulse reason. Avoid incorrect undocked event cause
DozeService crash. And refines test case and javadoc.

Bug: 120464108
Test: atest SystemUITests
Test: manual
Change-Id: I3595217984ec7982de1f0f53765e7ae0a9d80fcf
2018-12-27 20:24:23 +08:00
TreeHugger Robot
aef19af34f Merge "Launch AoD override the settings" 2018-12-26 05:56:11 +00:00
Bill Yi
6ad63c3971 [automerger skipped] Merge "Import translations. DO NOT MERGE" into pi-dev am: 9ed1114ec7 -s ours
am: fbdad444a1  -s ours

Change-Id: I4cf484713b16bed3b1885b4cbe3d78525acaa986
2018-12-25 21:43:10 -08:00
TreeHugger Robot
e7ea0035a7 Merge "Import translations. DO NOT MERGE" 2018-12-26 05:40:18 +00:00
Bill Yi
fbdad444a1 [automerger skipped] Merge "Import translations. DO NOT MERGE" into pi-dev
am: 9ed1114ec7  -s ours

Change-Id: If16efc19e86c260008ca4617d1dde937656cfe57
2018-12-25 21:25:42 -08:00
TreeHugger Robot
9ed1114ec7 Merge "Import translations. DO NOT MERGE" into pi-dev 2018-12-26 05:17:26 +00:00
TreeHugger Robot
28a1e7651a Merge "Import translations. DO NOT MERGE" 2018-12-26 05:02:31 +00:00
TreeHugger Robot
33049bfcc0 Merge "Import translations. DO NOT MERGE" 2018-12-26 04:53:23 +00:00
TreeHugger Robot
2757fcd74b Merge "Import translations. DO NOT MERGE" 2018-12-26 04:53:19 +00:00
TreeHugger Robot
07985d7b8a Merge "Import translations. DO NOT MERGE" 2018-12-26 04:50:22 +00:00
Bill Yi
6bc8f3071b [automerger skipped] Merge "Import translations. DO NOT MERGE" into pi-dev am: b46b0c6a9f -s ours
am: 030cefa450  -s ours

Change-Id: I7ba6226996fb458bdd1f240a9b52c0401d879d5e
2018-12-25 20:46:19 -08:00
TreeHugger Robot
0f3d17ef21 Merge "Import translations. DO NOT MERGE" 2018-12-26 04:44:23 +00:00
TreeHugger Robot
84a8c6aa34 Merge "Import translations. DO NOT MERGE" 2018-12-26 04:42:13 +00:00
Bill Yi
030cefa450 [automerger skipped] Merge "Import translations. DO NOT MERGE" into pi-dev
am: b46b0c6a9f  -s ours

Change-Id: I93def4af05612133a9470d074cef1c5379563579
2018-12-25 20:41:17 -08:00
Bill Yi
fdd62511c6 [automerger skipped] Merge "Import translations. DO NOT MERGE" into pi-dev am: 831ab3c611 -s ours
am: e7e817f9df  -s ours

Change-Id: Ie3baeae1b842ef2ddd449b31da658662113695c0
2018-12-25 20:33:34 -08:00
Bill Yi
5c16c2a61d [automerger skipped] Merge "Import translations. DO NOT MERGE" into pi-dev am: ec616ac31c -s ours
am: e0dee452f8  -s ours

Change-Id: I49d474ed5e182d47e46acdae5ce9705919899061
2018-12-25 20:32:29 -08:00
Bill Yi
013a4b6019 [automerger skipped] Merge "Import translations. DO NOT MERGE" into pi-dev am: af14ef32f2 -s ours
am: 87978dc784  -s ours

Change-Id: I792d62e6401a749b0f3c417352d919143b5461c3
2018-12-25 20:31:14 -08:00
TreeHugger Robot
b46b0c6a9f Merge "Import translations. DO NOT MERGE" into pi-dev 2018-12-26 04:30:21 +00:00
Bill Yi
b9bb32eb7b [automerger skipped] Merge "Import translations. DO NOT MERGE" into pi-dev am: 1f081a1b74 -s ours
am: 882352c815  -s ours

Change-Id: I20b4a285bfa656ab6bb2c6ec0f7a743a69d20756
2018-12-25 20:28:22 -08:00
Bill Yi
e7e817f9df [automerger skipped] Merge "Import translations. DO NOT MERGE" into pi-dev
am: 831ab3c611  -s ours

Change-Id: I4d786af7951ec0eacbccb30603fe1d210a68c304
2018-12-25 20:26:22 -08:00
Bill Yi
8933a14f99 [automerger skipped] Merge "Import translations. DO NOT MERGE" into pi-dev am: 454c005d58 -s ours
am: f0280d27f6  -s ours

Change-Id: I9e87e8ad6d5d36210a37c7cce476ad7ca941c5d1
2018-12-25 20:25:21 -08:00
Bill Yi
e0dee452f8 [automerger skipped] Merge "Import translations. DO NOT MERGE" into pi-dev
am: ec616ac31c  -s ours

Change-Id: I79d36e45f9102b1b30bb9b5acca87366de4b8e20
2018-12-25 20:25:19 -08:00
Bill Yi
87978dc784 [automerger skipped] Merge "Import translations. DO NOT MERGE" into pi-dev
am: af14ef32f2  -s ours

Change-Id: Ice2e9ac2d69dbf1b4e1a115146de2bcc08cfbd97
2018-12-25 20:24:08 -08:00
Bill Yi
882352c815 [automerger skipped] Merge "Import translations. DO NOT MERGE" into pi-dev
am: 1f081a1b74  -s ours

Change-Id: Ic8a796a3eba61e0679904d28583f34ef222fb80b
2018-12-25 20:22:50 -08:00
Bill Yi
f0280d27f6 [automerger skipped] Merge "Import translations. DO NOT MERGE" into pi-dev
am: 454c005d58  -s ours

Change-Id: I11da52366c9d592a40a22f4f9de7b2a10dad013a
2018-12-25 20:21:05 -08:00
TreeHugger Robot
831ab3c611 Merge "Import translations. DO NOT MERGE" into pi-dev 2018-12-26 04:17:20 +00:00
TreeHugger Robot
ec616ac31c Merge "Import translations. DO NOT MERGE" into pi-dev 2018-12-26 04:15:29 +00:00
TreeHugger Robot
af14ef32f2 Merge "Import translations. DO NOT MERGE" into pi-dev 2018-12-26 04:13:19 +00:00
TreeHugger Robot
1f081a1b74 Merge "Import translations. DO NOT MERGE" into pi-dev 2018-12-26 04:12:31 +00:00
TreeHugger Robot
454c005d58 Merge "Import translations. DO NOT MERGE" into pi-dev 2018-12-26 04:12:13 +00:00
TYM Tsai
2fc027d4f2 Launch AoD override the settings
Improved the docking experence, let DozeService can enter always on mode
when docking if device has a docking manager. Listening the docking events
to enter/leave pulsing state.

Bug: 120464108
Test: atest SystemUITests
Change-Id: Ic3d89bdd7a18a069e3ee4f35c9bd677069bf1c43
2018-12-26 11:53:18 +08:00
Remi NGUYEN VAN
708c409598 Merge "Add NetworkStack app" am: d01eaecbd2 am: e1922923fc
am: 5673820f9b

Change-Id: Idcd7b9b6eb50a98bcee67f89b0112b91cd1b40fb
2018-12-25 17:21:18 -08:00
Remi NGUYEN VAN
5673820f9b Merge "Add NetworkStack app" am: d01eaecbd2
am: e1922923fc

Change-Id: Iebe5aa5ea7cd235b8a6e734bde0f9a14dce5acdc
2018-12-25 17:09:42 -08:00
Remi NGUYEN VAN
e1922923fc Merge "Add NetworkStack app"
am: d01eaecbd2

Change-Id: Ia85036ce0aa4c00b0d4eb49377cdef1ae22baf1a
2018-12-25 16:59:19 -08:00
Remi NGUYEN VAN
d01eaecbd2 Merge "Add NetworkStack app" 2018-12-26 00:48:25 +00:00
Yohei Yukawa
0513932263 Extract IME list creation logic from IMMS#buildInputMethodListLocked()
This is a preparation to introcude following two methods into
InputMethodManagerService (IMMS).

  * getInputMethodListForUser(int userId)
  * getEnabledInputMethodListForUser(int UserId).

In order to implement those methods (with minimum changes), the logic
to create List<InputMethodInfo> for the given user needs to be
extracted out from IMMS#buildInputMethodListLocked() to avoid code
duplicate.

This CL itself is a mechanical refactoring hence there should be no
behavior change.

Bug: 120709962
Test: atest CtsInputMethodTestCases CtsInputMethodServiceHostTestCases
Change-Id: I7f7e3637ea44dddc1210bc2889b519f17bbcd545
2018-12-25 10:34:14 -08:00
Yohei Yukawa
6048d89453 Temporarily move MULTI_CLIENT_IME_ENABLED to frameworks.jar
This is a preparation to implement per-profile IME in
InputMethodManagerService (IMMS).

Multi-client IME is designed and implemented to be able to deal with
multiple profiles at the same time from its beginning [1].  This means
that when multi-client IME is enabled with system properties, it also
means that per-profile IME is enabled.

At the same time, the following classes need to change its behavior
whether per-profile IME is enabled or not.

 * android.provider.Setings
 * com.android.server.inputmethod.InputMethodManagerService
 * com.android.server.textservices.TextServicesManagerService
 * com.android.server.devicepolicy.DevicePolicyManagerService
 * com.android.server.devicepolicy.OverlayPackagesProvider

The problem is that android.provider.Setings lives in the
frameworks.jar.  Hence if we want to expose something like
PER_PROFILE_IME_ENABLED to android.provider.Setings, then such a flag
needs to live in frameworks.jar.

Note that this is expected to be a temporary change.  Once per-profile
IME becomes always enabled in IMMS, we can safely roll back this
change.

Note also that static initializer of InputMethodSystemProperty is
expected to be evaluated only once as long as
InputMethodSystemProperty is loaded before Zygote.

 [1]: I41dfe854557b178d8af740bc2869c936fc88608b
      bae5bea23c

Bug: 120709962
Test: prebuilts/checkstyle/checkstyle.py -f \
        frameworks/base/core/java/android/view/inputmethod/InputMethodSystemProperty.java
Test: Manually verified as follows:
  1. make -j MultiClientInputMethod
  2. adb install -r $OUT/system/priv-app/MultiClientInputMethod/MultiClientInputMethod.apk
  3. adb root
  4. adb shell setprop persist.debug.multi_client_ime \
       com.example.android.multiclientinputmethod/.MultiClientInputMethod
  5. adb reboot
  6. Make sure that multi-client IME is enabled
Change-Id: Iad8aba7edb1e60ccc1ce5192a11e01b6aa8d00a0
2018-12-25 09:57:31 -08:00
Bill Yi
bb65a42c5a Import translations. DO NOT MERGE
Auto-generated-cl: translation import

Bug: 64712476
Change-Id: I3e5c13ccfdc6fe9ab0da37f0d971a388ee9dbd49
2018-12-25 09:22:37 -08:00
Yohei Yukawa
b0bace1de6 Simplify permission checks in ime shell command
To verify WRITE_SECURE_SETTINGS for ime shell commands,
Context#enforceCallingPermission() would be much simpler and better
because those methods should never be called outside IPCs.

If components inside the system server process need those
functionality, InputMethodManagerInternal should be used instead.

Bug: 34886274
Test: Manually tested as follows.
  1. make -j SoftKeyboard
  2. adb install -r $OUT/system/app/SoftKeyboard/SoftKeyboard.apk
  3. adb shell ime enable com.example.android.softkeyboard/.SoftKeyboard
  4. adb shell ime set com.example.android.softkeyboard/.SoftKeyboard
  5. Make sure that SoftKeyboard is enabled and selected
  6. adb shell ime reset
  7. Make sure that SoftKeyboard is no longer enabled and selected
Change-Id: I556ad844b9f7d62dda40fc18b3ca7d8736660898
2018-12-25 08:16:45 -08:00
Bill Yi
c025fc453d Import translations. DO NOT MERGE
Change-Id: I723e9e0995f6e32e45287961079ef65156e05156
Auto-generated-cl: translation import
2018-12-25 07:32:30 -08:00
Bill Yi
3e025973af Import translations. DO NOT MERGE
Auto-generated-cl: translation import

Bug: 64712476
Change-Id: Ie7e021376ab58e142d22b16570fc324a7dabb2ef
2018-12-25 05:17:25 -08:00
Bill Yi
d73e58b1b8 Import translations. DO NOT MERGE
Change-Id: I05172296123f8f0b77034a05d936428e3ba4a921
Auto-generated-cl: translation import
2018-12-25 05:10:42 -08:00
Bill Yi
8c5ec509a2 Import translations. DO NOT MERGE
Auto-generated-cl: translation import

Bug: 64712476
Change-Id: I7f2b7b65e17667b47392c69c67075ddf7760480f
2018-12-25 04:46:34 -08:00
Bill Yi
ac0701f875 Import translations. DO NOT MERGE
Change-Id: Id188ad1cecb6496bfe4fa36898307a7c8c4f49a6
Auto-generated-cl: translation import
2018-12-25 04:39:31 -08:00
Bill Yi
79e550e596 Import translations. DO NOT MERGE
Change-Id: I283329c66908440e4ae11fbb1ef2f2207c818a27
Auto-generated-cl: translation import
2018-12-25 04:32:41 -08:00
Chalard Jean
0b34629598 Merge "[PT17] Small cleanup of PacManager" am: f9bb1a998f am: 6fa5cc677b
am: 8b72d4472d

Change-Id: I9e4cf1680ec719bc1fab9df36ad08229401da1eb
2018-12-25 03:29:16 -08:00
Chalard Jean
8b72d4472d Merge "[PT17] Small cleanup of PacManager" am: f9bb1a998f
am: 6fa5cc677b

Change-Id: I7feead64e6fd1c4a02ccaaf4a76f1ad684887e72
2018-12-25 03:18:54 -08:00
Chalard Jean
6fa5cc677b Merge "[PT17] Small cleanup of PacManager"
am: f9bb1a998f

Change-Id: If5c8f840adaa9dd13e5cf95aedc782913aee9179
2018-12-25 03:08:21 -08:00
Chalard Jean
f9bb1a998f Merge "[PT17] Small cleanup of PacManager" 2018-12-25 10:55:10 +00:00
TreeHugger Robot
b5222faca5 Merge "Revert "Deprecate WpsInfo"" 2018-12-25 08:10:38 +00:00