Commit Graph

413315 Commits

Author SHA1 Message Date
Yohei Yukawa
2d4b343b69 Add '-u <user id>' option to 'adb shell ime reset'
This is a preparation to add end-to-end CTS for per-profile IME mode.

In order to allow CTS tests to switch IME via shell command in
multi-user environment, this CL adds '-u <user id>' option to
  adb shell ime reset

Bug: 122924287
Test: Manually tested as follows:
  1. Build aosp_blueline-userdebug and flash it
  2. make -j SoftKeyboard
  3. adb install -r $OUT/system/app/SoftKeyboard/SoftKeyboard.apk
  4. adb shell ime enable com.example.android.softkeyboard/.SoftKeyboard
  5. adb shell ime set com.example.android.softkeyboard/.SoftKeyboard
  6. adb shell pm create-user test
  7. adb shell am switch-user 10
  8. adb shell ime list -s -u 0
     -> com.android.inputmethod.latin/.LatinIME
        com.example.android.softkeyboard/.SoftKeyboard
  9. adb shell ime reset -u 0
     -> Reset current and enabled IMEs for user #0
          Selected: com.android.inputmethod.latin/.LatinIME
           Enabled: com.android.inputmethod.latin/.LatinIME
 10. adb shell ime list -s -u 0
     -> com.android.inputmethod.latin/.LatinIME
Test: Manually tested as follows.
  1. Build aosp_blueline-userdebug and flash it
  2. adb shell pm create-user restricted_test
  3. adb root
  4. adb shell pm set-user-restriction --user 10 no_debugging_features 1
  5. adb shell ime reset -u all
     -> Reset current and enabled IMEs for user #0
          Selected: com.android.inputmethod.latin/.LatinIME
           Enabled: com.android.inputmethod.latin/.LatinIME
        User #10 is restricted with DISALLOW_DEBUGGING_FEATURES
Change-Id: Ie330c6faa76f366b78c15c0161873a051a3d40e3
2019-04-10 23:23:25 -07:00
Yohei Yukawa
099f80ce97 Add '-u <user id>' option to 'adb shell ime set'
This is a preparation to add end-to-end CTS for per-profile IME mode.

In order to allow CTS tests to switch IME via shell command in
multi-user environment, this CL adds '-u <user id>' option to
  adb shell ime set <ime id>

Another notable behavior change in this CL is that
  adb shell ime set <ime id>
now gracefully fails with showing one-line error message when <ime id>
does not exist.  Previously it failed with showing a stacktrace
because of unhandled IllegalArgumentException.

Bug: 122924287
Test: Manually tested as follows:
  1. Build aosp_blueline-userdebug and flash it
  2. make -j SoftKeyboard
  3. adb install -r $OUT/system/app/SoftKeyboard/SoftKeyboard.apk
  4. adb shell pm create-user test
  5. adb shell am switch-user 10
  6. adb shell ime enable -u 0 com.example.android.softkeyboard/.SoftKeyboard
     -> Input method com.example.android.softkeyboard/.SoftKeyboard: now enabled for user #0
  7. adb shell ime set -u 0 com.example.android.softkeyboard/.SoftKeyboard
     -> Input method com.example.android.softkeyboard/.SoftKeyboard selected for user #0
Test: Manually tested as follows.
  1. Build aosp_blueline-userdebug and flash it
  2. adb shell pm create-user restricted_test
  3. adb root
  4. adb shell pm set-user-restriction --user 10 no_debugging_features 1
  5. adb shell ime set -u all com.android.inputmethod.latin/.LatinIME
     -> Input method com.android.inputmethod.latin/.LatinIME: now disabled for user #0
        User #10 is restricted with DISALLOW_DEBUGGING_FEATURES.
Change-Id: I397cf0fb418a395dcafc0ab0d8d4e553b0f2eaab
2019-04-10 23:23:17 -07:00
Yohei Yukawa
e177170f64 Add '-u <user id>' option to 'adb shell ime enable'
This is a preparation to add end-to-end CTS for per-profile IME mode.

In order to allow CTS tests to enable/disable IMEs via shell command
in multi-user environment, this CL adds '-u <user id>' option to
  adb shell ime enable <ime id>
and
  adb shell ime disable <ime id>

Note that '-u' option is already supposed in 'adb shell ime list' [1].

 [1]: I192a0f5a1375170d17a4c08af94f23966dbaea8b
      7f8ee4b9dd

Bug: 122924287
Test: Manually tested as follows:
  1. Build aosp_blueline-userdebug and flash it
  2. make -j SoftKeyboard
  3. adb install -r $OUT/system/app/SoftKeyboard/SoftKeyboard.apk
  4. adb shell pm create-user test
  5. adb shell am switch-user 10
  6. adb shell ime enable -u 0 com.example.android.softkeyboard/.SoftKeyboard
     -> Input method com.example.android.softkeyboard/.SoftKeyboard: now enabled for user #0
  7. adb shell ime disable -u 0 com.example.android.softkeyboard/.SoftKeyboard
     -> Input method com.example.android.softkeyboard/.SoftKeyboard: now disabled for user #0
Test: Manually tested as follows.
  1. Build aosp_blueline-userdebug and flash it
  2. adb shell pm create-user test
  3. adb shell pm create-user restricted_test
  4. adb root
  5. adb shell pm set-user-restriction --user 11 no_debugging_features 1
  6. adb shell am switch-user 10
  7. adb shell am switch-user 11
  8. adb shell am switch-user 0
  9. adb shell ime disable -u all com.android.inputmethod.latin/.LatinIME
     -> Input method com.android.inputmethod.latin/.LatinIME: now disabled for user #0
        Input method com.android.inputmethod.latin/.LatinIME: now disabled for user #10
        User #11 is restricted with DISALLOW_DEBUGGING_FEATURES.
Change-Id: Ia0f873e4589a9fc3f549469e3d1d966640dc2df5
2019-04-10 23:20:51 -07:00
TreeHugger Robot
ce1acbc526 Merge "Fix puller callback with gauge/value metric" into qt-dev 2019-04-11 05:40:33 +00:00
Android Build Merger (Role)
db797218a4 Merge "[automerger skipped] Merge changes from topic "am-09249f80-e618-46fc-ac06-c7fdc73c36ae" into oc-dev am: 07a485743a am: 30826bd658 am: d89cac1562 -s ours am: 0f512b2eba -s ours am skip reason: change_id I8ee3f876fcaffa63636645f0f59709cd147254ef with SHA1 5ab98de315 is in history" into qt-dev 2019-04-11 05:37:50 +00:00
Eran Messeri
f0acf8f25e [automerger skipped] Merge changes from topic "am-09249f80-e618-46fc-ac06-c7fdc73c36ae" into oc-dev am: 07a485743a am: 30826bd658 am: d89cac1562 -s ours
am: 0f512b2eba -s ours
am skip reason: change_id I8ee3f876fcaffa63636645f0f59709cd147254ef with SHA1 5ab98de315 is in history

Change-Id: I827ef6a6a400895a374946059424f4901201cf57
2019-04-10 22:37:23 -07:00
TreeHugger Robot
b2514335e5 Merge "Add Vts test for xsd_config" into qt-dev 2019-04-11 05:35:43 +00:00
TreeHugger Robot
27ac06ea33 Merge "Crash the system server if network stack is lost" into qt-dev 2019-04-11 05:34:24 +00:00
TreeHugger Robot
d69eb2457a Merge "Change to choice" into qt-dev 2019-04-11 05:33:41 +00:00
Julia Reynolds
45c0ce2efa Merge "[RESTRICT_AUTOMERGE]: Add cross user permission check - areNotificationsEnabledForPackage" into oc-dev am: 2256fd4e11 am: 51fee974a9 am: 19ad060bf0
am: 9456d1e079

Change-Id: I4dc59e06e8744cd3cb8b457f0901fa474e1bf538
2019-04-10 22:25:23 -07:00
Julia Reynolds
37291c057a Merge changes from topic "am-3ca7326a-cbf1-4f97-a1b5-a4fdfac0fb47" into oc-dev am: 652a666500 am: 5d35ad7446 am: 03cddd8562
am: 00f5cf45c7

Change-Id: I5272a3c39f8e7d0b60368dcc35b398f455c5ae2c
2019-04-10 22:17:52 -07:00
Pavel Grafov
dffb9c7068 [automerger skipped] [automerger] Limit IsSeparateProfileChallengeAllowed to system callers am: 9061fcc46b am: 39f5432697 am: 9c0bc5405e am: 55209aca88 am: d5ce9a41b6 am: 20007cb46f am: 3ae9c5c63b -s ours am: 8a317effc2 -s ours
am: cbffcf9c24 -s ours
am skip reason: change_id I2fef9ab13614627c0f1bcca04759d0974fc6181a with SHA1 1b6301cf24 is in history

Change-Id: I5d0100f3e0b5a404836572a34ddcd685282407eb
2019-04-10 22:04:58 -07:00
TreeHugger Robot
6b1c8d6816 Merge "Fix compressed stubs" into qt-dev 2019-04-11 04:31:22 +00:00
TreeHugger Robot
b73580d2fa Merge "Revert "Remove overlay logic from package manager and parser"" into qt-dev 2019-04-11 04:12:23 +00:00
Remi NGUYEN VAN
9164fabba4 Crash the system server if network stack is lost
Crash the system server if it cannot bind to the network stack, or if
the network stack crashes. This is better than keeping the system
running in a bad state where all networking would be broken.
Before the network stack was moved to a different process, the whole
system would go down when it encountered a crash.

Test: added crash in NetworkStack, verified system_server restart
Bug: 130028724
Merged-In: I64f366fc69b52f27d65461be50d81edc199bcb62
Merged-In: I034a62ec44ba1da32fd47c842a2bdf86f6ccf542
(cherry picked from commit d44fc02248)

Change-Id: I989703c9dda62bd58df413ca8949f9a25187e062
2019-04-11 03:49:39 +00:00
Remi NGUYEN VAN
e0603420f8 Merge "Expose captive portal urls for configuration" into qt-dev 2019-04-11 03:44:08 +00:00
Tej Singh
de473b5138 Fix puller callback with gauge/value metric
Allows gauge/value metrics to work with pulled atoms that were
registered after the config was received.

Test: gts
Bug: 130314103
Change-Id: I9cddd28efd464d8bb78da868d8c0d850ffb0235c
2019-04-10 20:41:59 -07:00
TreeHugger Robot
c7a2372ab6 Merge "stopSelf() if there is no installed system image" into qt-dev 2019-04-11 03:41:01 +00:00
TreeHugger Robot
10093916cc Merge changes from topic "bt-metadata-api-v2-qt-dev" into qt-dev
* changes:
  Bluetooth metadata API changes in SettingsLib
  Refine Bluetooth Metadata API
2019-04-11 03:37:58 +00:00
Eran Messeri
0f512b2eba [automerger skipped] Merge changes from topic "am-09249f80-e618-46fc-ac06-c7fdc73c36ae" into oc-dev am: 07a485743a am: 30826bd658
am: d89cac1562 -s ours
am skip reason: change_id I8ee3f876fcaffa63636645f0f59709cd147254ef with SHA1 5ab98de315 is in history

Change-Id: I734fd8e0dc271ed7942a8c9d17e5ce19a9cb544d
2019-04-10 20:17:04 -07:00
TreeHugger Robot
db8b76d501 Merge "Temporarily stop crashing on alarm limit" into qt-dev 2019-04-11 03:14:20 +00:00
Julia Reynolds
9456d1e079 Merge "[RESTRICT_AUTOMERGE]: Add cross user permission check - areNotificationsEnabledForPackage" into oc-dev am: 2256fd4e11 am: 51fee974a9
am: 19ad060bf0

Change-Id: I0ed6effdd52e511fab32a668b8232fc0095e3295
2019-04-10 20:06:30 -07:00
Julia Reynolds
00f5cf45c7 Merge changes from topic "am-3ca7326a-cbf1-4f97-a1b5-a4fdfac0fb47" into oc-dev am: 652a666500 am: 5d35ad7446
am: 03cddd8562

Change-Id: Ifa1fe4acb2249480c1b9067e1e53a3f020008859
2019-04-10 20:00:26 -07:00
TreeHugger Robot
065eda458c Merge "Simplifying duplicate resource definition" into qt-dev 2019-04-11 02:57:23 +00:00
Pavel Grafov
cbffcf9c24 [automerger skipped] [automerger] Limit IsSeparateProfileChallengeAllowed to system callers am: 9061fcc46b am: 39f5432697 am: 9c0bc5405e am: 55209aca88 am: d5ce9a41b6 am: 20007cb46f am: 3ae9c5c63b -s ours
am: 8a317effc2 -s ours
am skip reason: change_id I2fef9ab13614627c0f1bcca04759d0974fc6181a with SHA1 1b6301cf24 is in history

Change-Id: I50b6c521adf14bad8d30232e9936b16859b4dc03
2019-04-10 19:49:38 -07:00
Riddle Hsu
61987bcaf5 Ensure consistency of screenHeightDp for non-resizable activity
Originally the height of status bar (or other stable insets) is not
excluded from screenHeightDp for size compatibility mode activity
because the previous display where the activity resides may be removed
or changed then there is no available and consistent display bounds to
calculate the screen configuration.

Now we precompute and store the display insets in each rotation, so the
activity always has the original display insets to compute consistent
screen configuration.

Test: atest ActivityRecordTests
Test: atest TaskRecordTests#testComputeConfigResourceOverrides
Bug: 112288258

Change-Id: I5c769f8080fc5ae4eba966d2fa42cb650254074d
2019-04-11 02:05:59 +00:00
Eran Messeri
d89cac1562 Merge changes from topic "am-09249f80-e618-46fc-ac06-c7fdc73c36ae" into oc-dev am: 07a485743a
am: 30826bd658

Change-Id: I117d15dc0168ebd0f09835957e4b1757a1ae5a7c
2019-04-10 19:03:10 -07:00
Yao Chen
32fa3c237d Merge "Add a condition timer to track the duration of condition being true." into qt-dev 2019-04-11 01:49:04 +00:00
TreeHugger Robot
fe6b8f696e Merge "Drop Type clock face." into qt-dev 2019-04-11 01:45:49 +00:00
TreeHugger Robot
4b8ea4aa3c Merge "Cleanup SUPL network request parameters for requestRouteToHostAddress" into qt-dev 2019-04-11 01:41:19 +00:00
Kevin Chyn
ed8438ac87 Merge "Check PackageManager before getting <Biometric>Manager" into qt-dev 2019-04-11 01:38:54 +00:00
Shawn Lin
675dab7776 Merge "Add log_from_module annotation for docsui" into qt-dev 2019-04-11 01:32:54 +00:00
Lucas Dupin
691169c8fe Merge "Improve dump format" into qt-dev 2019-04-11 01:28:15 +00:00
Lucas Dupin
e2fca4781f Merge "Show navbar on lock screen if gestural nav" into qt-dev 2019-04-11 01:20:37 +00:00
TreeHugger Robot
a81892761b Merge "Flip default value of headless user 0 flag." into qt-dev 2019-04-11 01:10:29 +00:00
Lucas Dupin
81ee1fb3e6 Merge "Make sure BiometricType is never null" into qt-dev 2019-04-11 00:58:00 +00:00
Julia Reynolds
19ad060bf0 Merge "[RESTRICT_AUTOMERGE]: Add cross user permission check - areNotificationsEnabledForPackage" into oc-dev am: 2256fd4e11
am: 51fee974a9

Change-Id: I5c0f89e5614901b57880fff5b59a2f6766893903
2019-04-10 17:44:09 -07:00
Julia Reynolds
03cddd8562 Merge changes from topic "am-3ca7326a-cbf1-4f97-a1b5-a4fdfac0fb47" into oc-dev am: 652a666500
am: 5d35ad7446

Change-Id: I0e8dff954426479e5a58f0a8f0dad10a294f7b25
2019-04-10 17:39:03 -07:00
Eran Messeri
30826bd658 Merge changes from topic "am-09249f80-e618-46fc-ac06-c7fdc73c36ae" into oc-dev
am: 07a485743a

Change-Id: I0ba4a71037e5bac19a540320665446b55b7aafb6
2019-04-10 17:35:21 -07:00
TreeHugger Robot
de2861cff9 Merge "Rename mute haptic channel API." into qt-dev 2019-04-11 00:35:19 +00:00
Pavel Grafov
8a317effc2 [automerger skipped] [automerger] Limit IsSeparateProfileChallengeAllowed to system callers am: 9061fcc46b am: 39f5432697 am: 9c0bc5405e am: 55209aca88 am: d5ce9a41b6 am: 20007cb46f
am: 3ae9c5c63b -s ours
am skip reason: change_id I2fef9ab13614627c0f1bcca04759d0974fc6181a with SHA1 1b6301cf24 is in history

Change-Id: I1065183419a6868c2f9d21ddae9b455056fbf963
2019-04-10 17:29:31 -07:00
Julia Reynolds
51fee974a9 Merge "[RESTRICT_AUTOMERGE]: Add cross user permission check - areNotificationsEnabledForPackage" into oc-dev
am: 2256fd4e11

Change-Id: I1658f2dc59428265adf385ec2e9c579abbefb023
2019-04-10 17:19:16 -07:00
Lucas Dupin
a4d6b7801c Merge "Remove color extraction from scrims" into qt-dev 2019-04-11 00:19:03 +00:00
TreeHugger Robot
1fbf66bbf4 Merge "Fixed the incorrect function signature" into qt-dev 2019-04-11 00:02:41 +00:00
Julia Reynolds
5d35ad7446 Merge changes from topic "am-3ca7326a-cbf1-4f97-a1b5-a4fdfac0fb47" into oc-dev
am: 652a666500

Change-Id: I4e93c29d4d65d14d39b683a27004f871b1dd0b9a
2019-04-10 16:56:01 -07:00
TreeHugger Robot
bb85862225 Merge "UserController.startUser nullchecks unlockListener" into qt-dev 2019-04-10 23:47:51 +00:00
Pavel Grafov
3ae9c5c63b [automerger] Limit IsSeparateProfileChallengeAllowed to system callers am: 9061fcc46b am: 39f5432697 am: 9c0bc5405e am: 55209aca88 am: d5ce9a41b6
am: 20007cb46f

Change-Id: I3bf88bf3a830dc7dea61e32d1df31b273a5d1afe
2019-04-10 16:41:27 -07:00
TreeHugger Robot
327ad87113 Merge "Add color overlays to build." into qt-dev 2019-04-10 23:37:21 +00:00
Julia Reynolds
20c7a985a3 [automerger skipped] Merge "Add cross user permission check - areNotificationsEnabledForPackage" into pi-dev
am: e4c6ce23af -s ours
am skip reason: change_id I13a0ca7590f8c4b44379730e0ee2088aba400c2a with SHA1 657d164136 is in history

Change-Id: I20880b7e63fdeb1a16b320ebe3dffe42658f3a9d
2019-04-10 16:32:32 -07:00
TreeHugger Robot
07a485743a Merge changes from topic "am-09249f80-e618-46fc-ac06-c7fdc73c36ae" into oc-dev
* changes:
  [automerger] Permission Check For DPM.getPermittedAccessibilityServices am: 4fd13eefcf am: 39eef269be am: 5d66886b4c am: 75b579135c am: 0f19d41748
  [automerger] Permission Check For DPM.getPermittedAccessibilityServices am: 4fd13eefcf am: 39eef269be am: 5d66886b4c am: 75b579135c
  [automerger] Permission Check For DPM.getPermittedAccessibilityServices am: 4fd13eefcf am: 39eef269be am: 5d66886b4c
  [automerger] Permission Check For DPM.getPermittedAccessibilityServices am: 4fd13eefcf am: 39eef269be
  [automerger] Permission Check For DPM.getPermittedAccessibilityServices am: 4fd13eefcf
  Permission Check For DPM.getPermittedAccessibilityServices
2019-04-10 23:26:00 +00:00