OSDN Git Service

android-x86/frameworks-base.git
5 years agoMerge "Magnify language selector dialog" into qt-dev
TreeHugger Robot [Thu, 11 Apr 2019 23:04:48 +0000 (23:04 +0000)]
Merge "Magnify language selector dialog" into qt-dev

5 years agoMerge "Add IntRange for min and max volume index getters" into qt-dev
Hayden Gomes [Thu, 11 Apr 2019 22:54:07 +0000 (22:54 +0000)]
Merge "Add IntRange for min and max volume index getters" into qt-dev

5 years agoMerge "[RTT] Clean up doc" into qt-dev
TreeHugger Robot [Thu, 11 Apr 2019 22:36:39 +0000 (22:36 +0000)]
Merge "[RTT] Clean up doc" into qt-dev

5 years agoMerge changes from topic "DoNotCallAppOpsFromPermMananager" into qt-dev
Philip P. Moltmann [Thu, 11 Apr 2019 22:35:14 +0000 (22:35 +0000)]
Merge changes from topic "DoNotCallAppOpsFromPermMananager" into qt-dev

* changes:
  Use PermissionPolicySve for fg perm app-ops
  Make perm policy synchronizer per user
  Make perm policy sve ready for additional usages

5 years agoMerge "Changed intents for data and saver tiles" into qt-dev
TreeHugger Robot [Thu, 11 Apr 2019 22:20:13 +0000 (22:20 +0000)]
Merge "Changed intents for data and saver tiles" into qt-dev

5 years agoMerge "Handle onBindingDied in AbstractRemoteService" into qt-dev
Philip P. Moltmann [Thu, 11 Apr 2019 22:12:49 +0000 (22:12 +0000)]
Merge "Handle onBindingDied in AbstractRemoteService" into qt-dev

5 years agoMerge "Make activities invisible when the display is turned off." into qt-dev
Issei Suzuki [Thu, 11 Apr 2019 21:46:20 +0000 (21:46 +0000)]
Merge "Make activities invisible when the display is turned off." into qt-dev

5 years agoMerge "Update documentation for fingerprint -> biometric" into qt-dev
TreeHugger Robot [Thu, 11 Apr 2019 21:25:52 +0000 (21:25 +0000)]
Merge "Update documentation for fingerprint -> biometric" into qt-dev

5 years agoMerge "Fixing HardwareBuffer leak when creating a bitmap" into qt-dev
TreeHugger Robot [Thu, 11 Apr 2019 21:06:40 +0000 (21:06 +0000)]
Merge "Fixing HardwareBuffer leak when creating a bitmap" into qt-dev

5 years agoMerge "Update AppComponentFactory.instantiateClassLoader docs" into qt-dev
David Brazdil [Thu, 11 Apr 2019 20:46:24 +0000 (20:46 +0000)]
Merge "Update AppComponentFactory.instantiateClassLoader docs" into qt-dev

5 years agoMerge "MATCH_HIDDEN_UNTIL_INSTALLED_COMPONENTS when doing default permission grants...
TreeHugger Robot [Thu, 11 Apr 2019 20:30:42 +0000 (20:30 +0000)]
Merge "MATCH_HIDDEN_UNTIL_INSTALLED_COMPONENTS when doing default permission grants" into qt-dev

5 years agoUse PermissionPolicySve for fg perm app-ops
Philip P. Moltmann [Wed, 10 Apr 2019 23:58:24 +0000 (16:58 -0700)]
Use PermissionPolicySve for fg perm app-ops

This avoids having to call into app-ops manager while holding the
package manager lock

Fixes: 124731615123436301
Test: atest CtsPermissionTestCases:android.permission.cts.SplitPermissionTest
Change-Id: Ie7d5302b4265ed012e2303f3c6e6c7219ff3afa9

5 years agoMake perm policy synchronizer per user
Philip P. Moltmann [Thu, 11 Apr 2019 17:40:30 +0000 (10:40 -0700)]
Make perm policy synchronizer per user

Test: atest CtsAppOpsTestCases:android.app.appops.cts.AppOpsTest
            CtsPermission2TestCases:android.permission2.cts.RestrictedPermissionsTest
Bug: 124731615
Change-Id: Idac97b37d1f1268d211109a70d1b1627d4893342

5 years agoMake perm policy sve ready for additional usages
Philip P. Moltmann [Thu, 11 Apr 2019 17:05:48 +0000 (10:05 -0700)]
Make perm policy sve ready for additional usages

We want to use the permission policy services for other things than
restriction of permissions. Hence factor out the restriction code from
the framework.

Also add some comments

Test: atest CtsAppOpsTestCases:android.app.appops.cts.AppOpsTest
            CtsPermission2TestCases:android.permission2.cts.RestrictedPermissionsTest
Bug: 124731615
Change-Id: Ic32f2097af805c3f06dd9cf625b3160f62a576b2

5 years agoMerge "Support status_bar_padding_top" into qt-dev
TreeHugger Robot [Thu, 11 Apr 2019 20:06:19 +0000 (20:06 +0000)]
Merge "Support status_bar_padding_top" into qt-dev

5 years agoMerge "Dark Theme QS tile" into qt-dev
Lucas Dupin [Thu, 11 Apr 2019 20:02:23 +0000 (20:02 +0000)]
Merge "Dark Theme QS tile" into qt-dev

5 years agoAdd IntRange for min and max volume index getters
Hayden Gomes [Thu, 11 Apr 2019 17:44:18 +0000 (10:44 -0700)]
Add IntRange for min and max volume index getters

Test: Built and ran on device
Bug: 129265140
Change-Id: Ibebc1c54de7e09e81dabd65c22e4fea8450547c8

5 years agoMerge "Add a longpress timeout config for screenshot chord" into qt-dev
Alison Cichowlas [Thu, 11 Apr 2019 18:33:43 +0000 (18:33 +0000)]
Merge "Add a longpress timeout config for screenshot chord" into qt-dev

5 years agoMerge "Add option to enable tracing all the launches." into qt-dev
Gopinath Elanchezhian [Thu, 11 Apr 2019 18:07:46 +0000 (18:07 +0000)]
Merge "Add option to enable tracing all the launches." into qt-dev

5 years agoMerge "Fix NetworkControllerDataTest fail if inflateSignalStrength is true" into...
TreeHugger Robot [Thu, 11 Apr 2019 17:49:48 +0000 (17:49 +0000)]
Merge "Fix NetworkControllerDataTest fail if inflateSignalStrength is true" into qt-dev

5 years agoMerge "BubbleData [5/n]: Split up StackView.setExpandedBubble" into qt-dev
TreeHugger Robot [Thu, 11 Apr 2019 17:39:06 +0000 (17:39 +0000)]
Merge "BubbleData [5/n]: Split up StackView.setExpandedBubble" into qt-dev

5 years agoMerge "Wait for RELRO before starting WebViewZygote at boot." into qt-dev
TreeHugger Robot [Thu, 11 Apr 2019 17:27:55 +0000 (17:27 +0000)]
Merge "Wait for RELRO before starting WebViewZygote at boot." into qt-dev

5 years agoMerge "Check device owner by callingUid in ActivityStarter" into qt-dev
TreeHugger Robot [Thu, 11 Apr 2019 17:23:56 +0000 (17:23 +0000)]
Merge "Check device owner by callingUid in ActivityStarter" into qt-dev

5 years agoDark Theme QS tile
Lucas Dupin [Thu, 11 Apr 2019 03:17:32 +0000 (20:17 -0700)]
Dark Theme QS tile

Creates Dark Theme tile and adds it to the default config,
under the fold.

Test: manually toggle tile
Fixes: 130253100
Change-Id: I2859d2eb20db1c6d9dd8e8e24979294316b905bb

5 years agoChanged intents for data and saver tiles
Fabian Kozynski [Thu, 11 Apr 2019 16:22:39 +0000 (12:22 -0400)]
Changed intents for data and saver tiles

Changed the intents to point to the right settings. The intent in
CellularTile will point to the carrier selected as default for data if
there is one.

Test: manual, using DSDS
Fixes: 122676059
Change-Id: I71a8eac1754eaadda156209315a3a469e7e4f6d0

5 years agoMerge "Drop the 'initial' of suppressInitialNotification API" into qt-dev
Mady Mellor [Thu, 11 Apr 2019 16:28:34 +0000 (16:28 +0000)]
Merge "Drop the 'initial' of suppressInitialNotification API" into qt-dev

5 years agoAdd option to enable tracing all the launches.
gopinath [Wed, 3 Apr 2019 22:05:43 +0000 (15:05 -0700)]
Add option to enable tracing all the launches.

This option is disabled by default.

Bug: b/129888684, b/130154337

Test : Ran app launch test case locally.

Change-Id: I1305361adf0cb80e2be6a191b8639f7a53e9abfc
(cherry picked from commit 806aa81113c8bbbb7c4566f0b87858dc2f41a3b6)

5 years agoMerge "throw securityexception for notifyNetworkChange" into qt-dev
Chen Xu [Thu, 11 Apr 2019 15:56:02 +0000 (15:56 +0000)]
Merge "throw securityexception for notifyNetworkChange" into qt-dev

5 years agoMerge "Remove remaining deepCopy() usages in TextClassifier" into qt-dev
TreeHugger Robot [Thu, 11 Apr 2019 15:54:52 +0000 (15:54 +0000)]
Merge "Remove remaining deepCopy() usages in TextClassifier" into qt-dev

5 years agoMerge "Fixed PackageWatchdog health check state" into qt-dev
Zimuzo Ezeozue [Thu, 11 Apr 2019 15:54:46 +0000 (15:54 +0000)]
Merge "Fixed PackageWatchdog health check state" into qt-dev

5 years agoMerge "Retry getting DynamicSystem service" into qt-dev
TreeHugger Robot [Thu, 11 Apr 2019 15:53:52 +0000 (15:53 +0000)]
Merge "Retry getting DynamicSystem service" into qt-dev

5 years agoMake activities invisible when the display is turned off.
Issei Suzuki [Thu, 11 Apr 2019 14:46:37 +0000 (16:46 +0200)]
Make activities invisible when the display is turned off.

Bug: 127650360
Test: atest ActivityManagerMultiDisplayTests and existing tests pass.
Change-Id: I0943ef1024b32902826de6fd20ab2a8641059bd7

5 years agoFix NetworkControllerDataTest fail if inflateSignalStrength is true
andychou [Thu, 11 Apr 2019 15:40:49 +0000 (23:40 +0800)]
Fix NetworkControllerDataTest fail if inflateSignalStrength is true

NetworkControllerBaseTest doesn't consider inflate signal strength
condition. Consider inflate condition when compare icon.

Bug: 130317133
Test: atest NetworkControllerDataTest pass
Change-Id: I2f9e994cb169001d4081ecead3702f9ef00234ff

5 years agoMerge "Sharesheet - 4->8 direct share expansion fix" into qt-dev
Matt Pietal [Thu, 11 Apr 2019 15:30:34 +0000 (15:30 +0000)]
Merge "Sharesheet - 4->8 direct share expansion fix" into qt-dev

5 years agothrow securityexception for notifyNetworkChange
chen xu [Thu, 11 Apr 2019 09:16:19 +0000 (02:16 -0700)]
throw securityexception for notifyNetworkChange

throw exception instead of check permission and return.

Bug: 130329121
Test: Build
Change-Id: I9f0e60312ebd0baaf1538a6e658414211b17991b

5 years agoMerge "Add state callbacks to launcher" into qt-dev
Winson Chung [Thu, 11 Apr 2019 15:22:36 +0000 (15:22 +0000)]
Merge "Add state callbacks to launcher" into qt-dev

5 years agoHandle onBindingDied in AbstractRemoteService
Philip P. Moltmann [Wed, 10 Apr 2019 19:28:45 +0000 (12:28 -0700)]
Handle onBindingDied in AbstractRemoteService

If the package is "pm clear"-ed the binding dies permanently and has to
be re-created. Hence force an unbind at this time.

Test: atest CtsPermissionTestCases:android.permission.cts.LocationAccessCheckTest#notificationIsShownAgainAfterUninstallAndReinstall
Bug: 129480112
Change-Id: I3f9b106e2f172f8d5b6510a07c4b1f060de192bd

5 years agoMerge "Import translations. DO NOT MERGE" into qt-dev
TreeHugger Robot [Thu, 11 Apr 2019 15:14:27 +0000 (15:14 +0000)]
Merge "Import translations. DO NOT MERGE" into qt-dev

5 years agoMerge "Import translations. DO NOT MERGE" into qt-dev
TreeHugger Robot [Thu, 11 Apr 2019 15:10:17 +0000 (15:10 +0000)]
Merge "Import translations. DO NOT MERGE" into qt-dev

5 years agoMerge "Update comment per review feedback" into qt-dev
TreeHugger Robot [Thu, 11 Apr 2019 15:06:37 +0000 (15:06 +0000)]
Merge "Update comment per review feedback" into qt-dev

5 years agoCheck device owner by callingUid in ActivityStarter
Ricky Wai [Wed, 10 Apr 2019 17:40:17 +0000 (18:40 +0100)]
Check device owner by callingUid in ActivityStarter

Bug: 129565838
Test: atest ActivityStarterTests
Change-Id: Ic75a3198f7de34078ba3b9c794db893779e7bb77

5 years ago[RTT] Clean up doc
Etan Cohen [Thu, 11 Apr 2019 14:00:42 +0000 (07:00 -0700)]
[RTT] Clean up doc

Bug: 130329871
Test: N/A
Change-Id: Ia8c95cdaf98e121f01fc4409cd557735168171ec

5 years agoMerge "Do not allow moveToFront() and moveTaskToFront() when app is in background...
Ricky Wai [Thu, 11 Apr 2019 13:33:04 +0000 (13:33 +0000)]
Merge "Do not allow moveToFront() and moveTaskToFront() when app is in background" into qt-dev

5 years agoMerge "Add lifecycle tests to NetworkMonitorTest" into qt-dev
Chiachang Wang [Thu, 11 Apr 2019 13:15:40 +0000 (13:15 +0000)]
Merge "Add lifecycle tests to NetworkMonitorTest" into qt-dev

5 years agoUpdate comment per review feedback
Todd Kennedy [Thu, 11 Apr 2019 13:14:15 +0000 (06:14 -0700)]
Update comment per review feedback

Treehugger was being a pain and I wanted to submit if it passsed.
It passed, so, need to adjust in a separate change.

Bug: 123919310
Test: None. This is a comment change only
Change-Id: Ib49cea7d814a7cb4566d663a2805ed56763454e8

5 years agoImport translations. DO NOT MERGE
Bill Yi [Thu, 11 Apr 2019 13:11:31 +0000 (06:11 -0700)]
Import translations. DO NOT MERGE

Auto-generated-cl: translation import

Bug: 64712476
Change-Id: Ic2368d119ddd7e16c500dedefae454a50052edf0

5 years agoMerge "Mark testEarliestAlarmSet as flaky" into qt-dev
Jorim Jaggi [Thu, 11 Apr 2019 13:09:53 +0000 (13:09 +0000)]
Merge "Mark testEarliestAlarmSet as flaky" into qt-dev

5 years agoMark testEarliestAlarmSet as flaky
Jorim Jaggi [Thu, 11 Apr 2019 12:44:31 +0000 (14:44 +0200)]
Mark testEarliestAlarmSet as flaky

Blocks presubmits.

Test: n/a
Bug: 130313408
Change-Id: Ia716510866676c6aefeb2765bfef7a1a030cd791

5 years agoFixed PackageWatchdog health check state
Zimuzo [Fri, 5 Apr 2019 16:06:25 +0000 (17:06 +0100)]
Fixed PackageWatchdog health check state

1. Receiving List<PackageInfo>:
Since I29e2d619a5296716c29893ab3aa2f35f69bfb4d7, we now receive a
List of PackageInfo instead of Strings for packages supporting
explicit health checks. Now, we parse this List<PackageInfo> from
ExtServices instead of trying to parse List<String> and we use the
health check timeout in the PackageInfo as the health check expiry
deadline instead of using the total package expiry time.

2. Updating health check durations onSupportedPackages:
Before, we always updated the health check duration for a
package if the package is supported and the health check state is
not PASSED, this caused the health check duration for a package to
never reduce as long as we kept getting onSupportedPackages. Now, we
improved the readability of the state transitions onSupportedPackages.
We now correctly only update the health check duration for supported
packages in the INACTIVE state.

3. FAILED state:
Before we only had INACTIVE, ACTIVE and PASSED states. When a package
has failed the health check we could notify the observer multiple
times in quick succession and get into a bad internal state with
negative health check durations. Now we added check to ensure we
don't try to schedule with a Handler with a negative duration and we
defined a negative health check duration to be a new FAILED state if the
health check is not passed. This clearly defines the state transitions
as seen below:

+----------+     +---------+    +------+
|          |     |         |    |      |
| INACTIVE +---->+ ACTIVE  +--->+PASSED|
|          |     |         |    |      |
+-----+----+     +----+----+    +------+
      |               |
      |               |
      |               |
      |               |
      |          +----v----+
      |          |         |
      +----------> FAILED  |
                 |         |
                 +---------+

4. Uptime state:
Everytime we pruned observers, we scheduled the next prune and stored
the current SystemClock#uptimeMillis. This allowed us determine how
much time had elapsed for the next prune. The uptime was not correclty
updated when starting to observe already observed packages. With the
following sequence of events:

-monitor package A for 1hr
-30mins elapsed
-monitor package A again for 1hr

A would expire 30mins from the last event instead of 1hr.
This was because the second time around, we
saved the new state to disk but did not reschedule so did not update
the uptime at last schedule, so 1hr from the first event, we would
prune packages with the original uptime and incorrectly expire A
earlier. Now we update all internal state, fixed this and added a test
for this case.

5. Readability
Improved method variable names, logging and comments.

Bug: 120598832
Test: Manual testing && atest PackageWatcdogTest
Change-Id: I1512d5938848ad26b668636405fe9b0db50d3a2e

5 years agoMerge "Merge caller targets and ranked targets." into qt-dev
Alison Cichowlas [Thu, 11 Apr 2019 12:24:22 +0000 (12:24 +0000)]
Merge "Merge caller targets and ranked targets." into qt-dev

5 years agoMerge "Override actionModeCloseDrawable in Theme.DeviceDefault.DocumentsUI" into...
TreeHugger Robot [Thu, 11 Apr 2019 12:13:21 +0000 (12:13 +0000)]
Merge "Override actionModeCloseDrawable in Theme.DeviceDefault.DocumentsUI" into qt-dev

5 years agoAdd lifecycle tests to NetworkMonitorTest
Lorenzo Colitti [Wed, 10 Apr 2019 09:57:17 +0000 (02:57 -0700)]
Add lifecycle tests to NetworkMonitorTest

- Ensure that NetworkMonitor quits when notifyNetworkDisconnected
  is called.
- Ensure that BroadcastReceivers are registered when a captive
  portal is detected and unregistered when the network validates
  or when NetworkMonitor quits.

Bug: 122164725
Test: atest FrameworksNetTests NetworkStackTests
Test: atest --generate-new-metrics 10 NetworkStackTests:com.android.server.connectivity.NetworkMonitorTest
Test: test fails if "Don't leak captive portal broadcast receivers." change reverted
Change-Id: I1202626face33cc1e1ec02016b95da487b3335c8
Merged-In: I1202626face33cc1e1ec02016b95da487b3335c8
(cherry picked from commit bb41c8f7513cf1547fc1724c1c3343321f56c18e)

5 years agoUpdate AppComponentFactory.instantiateClassLoader docs
David Brazdil [Tue, 9 Apr 2019 16:18:31 +0000 (17:18 +0100)]
Update AppComponentFactory.instantiateClassLoader docs

Clarify the intended use and properties of the default class loader.

Bug: 128524313
Test: n/a
Merged-In: Iae82554f9294d5248b98f1fa72fc1a47993e86fd
Change-Id: Iae82554f9294d5248b98f1fa72fc1a47993e86fd
(cherry picked from commit 59a97141c8ad3e3d9d3d5c4db1f59d4c9847177c)

5 years agoRetry getting DynamicSystem service
Po-Chien Hsueh [Thu, 11 Apr 2019 08:36:54 +0000 (16:36 +0800)]
Retry getting DynamicSystem service

DynamicSystemService might not be ready even sysprop init.svc.gsid
is "running". Move connect() into retry loop.

Bug: 130336119
Test: boot the device and check logcat
Change-Id: Iab5065bf139abcf6c19dcc3553f8a3ca1642e7b3

5 years agoOverride actionModeCloseDrawable in Theme.DeviceDefault.DocumentsUI
Tony Huang [Wed, 10 Apr 2019 06:03:23 +0000 (14:03 +0800)]
Override actionModeCloseDrawable in Theme.DeviceDefault.DocumentsUI

Since RRO do not support to override theme which indicate specific
attr to reference private resource at Q, defined actionModeCloseDrawable
in Theme.DeviceDefault.DocumentsUI can ensure all Q devices apply the
reasonable design.

Fix: 130209354
Test: visual
Test: atest DocumentsUIGoogleTests
Change-Id: I7751aaa753e92a860dc20b873967631a4070595e

5 years agoMerge "Fix onBlockedStatusChanged does not work on multiple networks" into qt-dev
Junyu Lai [Thu, 11 Apr 2019 06:58:48 +0000 (06:58 +0000)]
Merge "Fix onBlockedStatusChanged does not work on multiple networks" into qt-dev

5 years agoMerge "Fix regression from ag/6938053 where the pointer is in wrong place" into qt-dev
Mady Mellor [Thu, 11 Apr 2019 06:57:25 +0000 (06:57 +0000)]
Merge "Fix regression from ag/6938053 where the pointer is in wrong place" into qt-dev

5 years agoAdd '-u <user id>' option to 'adb shell ime reset'
Yohei Yukawa [Thu, 11 Apr 2019 06:23:25 +0000 (23:23 -0700)]
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

5 years agoAdd '-u <user id>' option to 'adb shell ime set'
Yohei Yukawa [Thu, 11 Apr 2019 06:23:17 +0000 (23:23 -0700)]
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

5 years agoAdd '-u <user id>' option to 'adb shell ime enable'
Yohei Yukawa [Thu, 11 Apr 2019 06:20:51 +0000 (23:20 -0700)]
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
      7f8ee4b9ddd31ad36a12c5278b27990dc76011cc

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

5 years agoMerge "Fix puller callback with gauge/value metric" into qt-dev
TreeHugger Robot [Thu, 11 Apr 2019 05:40:33 +0000 (05:40 +0000)]
Merge "Fix puller callback with gauge/value metric" into qt-dev

5 years agoMerge "[automerger skipped] Merge changes from topic "am-09249f80-e618-46fc-ac06...
Android Build Merger (Role) [Thu, 11 Apr 2019 05:37:50 +0000 (05:37 +0000)]
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

5 years ago[automerger skipped] Merge changes from topic "am-09249f80-e618-46fc-ac06-c7fdc73c36a...
Eran Messeri [Thu, 11 Apr 2019 05:37:23 +0000 (22:37 -0700)]
[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

5 years agoMerge "Add Vts test for xsd_config" into qt-dev
TreeHugger Robot [Thu, 11 Apr 2019 05:35:43 +0000 (05:35 +0000)]
Merge "Add Vts test for xsd_config" into qt-dev

5 years agoMerge "Crash the system server if network stack is lost" into qt-dev
TreeHugger Robot [Thu, 11 Apr 2019 05:34:24 +0000 (05:34 +0000)]
Merge "Crash the system server if network stack is lost" into qt-dev

5 years agoMerge "Change to choice" into qt-dev
TreeHugger Robot [Thu, 11 Apr 2019 05:33:41 +0000 (05:33 +0000)]
Merge "Change to choice" into qt-dev

5 years agoMerge "[RESTRICT_AUTOMERGE]: Add cross user permission check - areNotificationsEnable...
Julia Reynolds [Thu, 11 Apr 2019 05:25:23 +0000 (22:25 -0700)]
Merge "[RESTRICT_AUTOMERGE]: Add cross user permission check - areNotificationsEnabledForPackage" into oc-dev am: 2256fd4e11 am: 51fee974a9 am: 19ad060bf0
am: 9456d1e079

Change-Id: I4dc59e06e8744cd3cb8b457f0901fa474e1bf538

5 years agoMerge changes from topic "am-3ca7326a-cbf1-4f97-a1b5-a4fdfac0fb47" into oc-dev am...
Julia Reynolds [Thu, 11 Apr 2019 05:17:52 +0000 (22:17 -0700)]
Merge changes from topic "am-3ca7326a-cbf1-4f97-a1b5-a4fdfac0fb47" into oc-dev am: 652a666500 am: 5d35ad7446 am: 03cddd8562
am: 00f5cf45c7

Change-Id: I5272a3c39f8e7d0b60368dcc35b398f455c5ae2c

5 years ago[automerger skipped] [automerger] Limit IsSeparateProfileChallengeAllowed to system...
Pavel Grafov [Thu, 11 Apr 2019 05:04:58 +0000 (22:04 -0700)]
[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

5 years agoMerge "Fix compressed stubs" into qt-dev
TreeHugger Robot [Thu, 11 Apr 2019 04:31:22 +0000 (04:31 +0000)]
Merge "Fix compressed stubs" into qt-dev

5 years agoMerge "Revert "Remove overlay logic from package manager and parser"" into qt-dev
TreeHugger Robot [Thu, 11 Apr 2019 04:12:23 +0000 (04:12 +0000)]
Merge "Revert "Remove overlay logic from package manager and parser"" into qt-dev

5 years agoCrash the system server if network stack is lost
Remi NGUYEN VAN [Wed, 10 Apr 2019 06:18:22 +0000 (23:18 -0700)]
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 d44fc02248308c403e104461a64da058bb637253)

Change-Id: I989703c9dda62bd58df413ca8949f9a25187e062

5 years agoMerge "Expose captive portal urls for configuration" into qt-dev
Remi NGUYEN VAN [Thu, 11 Apr 2019 03:44:08 +0000 (03:44 +0000)]
Merge "Expose captive portal urls for configuration" into qt-dev

5 years agoFix puller callback with gauge/value metric
Tej Singh [Thu, 11 Apr 2019 02:25:03 +0000 (19:25 -0700)]
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

5 years agoMerge "stopSelf() if there is no installed system image" into qt-dev
TreeHugger Robot [Thu, 11 Apr 2019 03:41:01 +0000 (03:41 +0000)]
Merge "stopSelf() if there is no installed system image" into qt-dev

5 years agoMerge changes from topic "bt-metadata-api-v2-qt-dev" into qt-dev
TreeHugger Robot [Thu, 11 Apr 2019 03:37:58 +0000 (03:37 +0000)]
Merge changes from topic "bt-metadata-api-v2-qt-dev" into qt-dev

* changes:
  Bluetooth metadata API changes in SettingsLib
  Refine Bluetooth Metadata API

5 years ago[automerger skipped] Merge changes from topic "am-09249f80-e618-46fc-ac06-c7fdc73c36a...
Eran Messeri [Thu, 11 Apr 2019 03:17:04 +0000 (20:17 -0700)]
[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

5 years agoMerge "Temporarily stop crashing on alarm limit" into qt-dev
TreeHugger Robot [Thu, 11 Apr 2019 03:14:20 +0000 (03:14 +0000)]
Merge "Temporarily stop crashing on alarm limit" into qt-dev

5 years agoImport translations. DO NOT MERGE
Bill Yi [Thu, 11 Apr 2019 03:08:55 +0000 (20:08 -0700)]
Import translations. DO NOT MERGE

Auto-generated-cl: translation import

Bug: 64712476
Change-Id: I348eb96921137b301dde350836c8ab42286dbf51

5 years agoMerge "[RESTRICT_AUTOMERGE]: Add cross user permission check - areNotificationsEnable...
Julia Reynolds [Thu, 11 Apr 2019 03:06:30 +0000 (20:06 -0700)]
Merge "[RESTRICT_AUTOMERGE]: Add cross user permission check - areNotificationsEnabledForPackage" into oc-dev am: 2256fd4e11 am: 51fee974a9
am: 19ad060bf0

Change-Id: I0ed6effdd52e511fab32a668b8232fc0095e3295

5 years agoMerge changes from topic "am-3ca7326a-cbf1-4f97-a1b5-a4fdfac0fb47" into oc-dev am...
Julia Reynolds [Thu, 11 Apr 2019 03:00:26 +0000 (20:00 -0700)]
Merge changes from topic "am-3ca7326a-cbf1-4f97-a1b5-a4fdfac0fb47" into oc-dev am: 652a666500 am: 5d35ad7446
am: 03cddd8562

Change-Id: Ifa1fe4acb2249480c1b9067e1e53a3f020008859

5 years agoMerge "Simplifying duplicate resource definition" into qt-dev
TreeHugger Robot [Thu, 11 Apr 2019 02:57:23 +0000 (02:57 +0000)]
Merge "Simplifying duplicate resource definition" into qt-dev

5 years ago[automerger skipped] [automerger] Limit IsSeparateProfileChallengeAllowed to system...
Pavel Grafov [Thu, 11 Apr 2019 02:49:38 +0000 (19:49 -0700)]
[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

5 years agoMATCH_HIDDEN_UNTIL_INSTALLED_COMPONENTS when doing default permission grants
Eugene Susla [Thu, 11 Apr 2019 01:00:35 +0000 (18:00 -0700)]
MATCH_HIDDEN_UNTIL_INSTALLED_COMPONENTS when doing default permission grants

Fixes: 126604115
Test: adb logcat -v tag | grep 'E/DefaultPermGrantPolicy: PackageNot found: com.verizon.mips.services'
Change-Id: I7210fc1dcaf17fc9f49349fb06b00621d931cd10

5 years agoEnsure consistency of screenHeightDp for non-resizable activity
Riddle Hsu [Wed, 3 Apr 2019 05:08:47 +0000 (13:08 +0800)]
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

5 years agoMerge changes from topic "am-09249f80-e618-46fc-ac06-c7fdc73c36ae" into oc-dev am...
Eran Messeri [Thu, 11 Apr 2019 02:03:10 +0000 (19:03 -0700)]
Merge changes from topic "am-09249f80-e618-46fc-ac06-c7fdc73c36ae" into oc-dev am: 07a485743a
am: 30826bd658

Change-Id: I117d15dc0168ebd0f09835957e4b1757a1ae5a7c

5 years agoMerge "Add a condition timer to track the duration of condition being true." into...
Yao Chen [Thu, 11 Apr 2019 01:49:04 +0000 (01:49 +0000)]
Merge "Add a condition timer to track the duration of condition being true." into qt-dev

5 years agoMerge "Drop Type clock face." into qt-dev
TreeHugger Robot [Thu, 11 Apr 2019 01:45:49 +0000 (01:45 +0000)]
Merge "Drop Type clock face." into qt-dev

5 years agoMerge "Cleanup SUPL network request parameters for requestRouteToHostAddress" into...
TreeHugger Robot [Thu, 11 Apr 2019 01:41:19 +0000 (01:41 +0000)]
Merge "Cleanup SUPL network request parameters for requestRouteToHostAddress" into qt-dev

5 years agoMerge "Check PackageManager before getting <Biometric>Manager" into qt-dev
Kevin Chyn [Thu, 11 Apr 2019 01:38:54 +0000 (01:38 +0000)]
Merge "Check PackageManager before getting <Biometric>Manager" into qt-dev

5 years agoMerge "Add log_from_module annotation for docsui" into qt-dev
Shawn Lin [Thu, 11 Apr 2019 01:32:54 +0000 (01:32 +0000)]
Merge "Add log_from_module annotation for docsui" into qt-dev

5 years agoMerge "Improve dump format" into qt-dev
Lucas Dupin [Thu, 11 Apr 2019 01:28:15 +0000 (01:28 +0000)]
Merge "Improve dump format" into qt-dev

5 years agoMerge "Show navbar on lock screen if gestural nav" into qt-dev
Lucas Dupin [Thu, 11 Apr 2019 01:20:37 +0000 (01:20 +0000)]
Merge "Show navbar on lock screen if gestural nav" into qt-dev

5 years agoMerge "Flip default value of headless user 0 flag." into qt-dev
TreeHugger Robot [Thu, 11 Apr 2019 01:10:29 +0000 (01:10 +0000)]
Merge "Flip default value of headless user 0 flag." into qt-dev

5 years agoFix regression from ag/6938053 where the pointer is in wrong place
Mady Mellor [Wed, 10 Apr 2019 23:59:03 +0000 (16:59 -0700)]
Fix regression from ag/6938053 where the pointer is in wrong place

Bug: 130313953
Test: manual / visual
Change-Id: I80122ac035637d47690ba361086b554016c2c374

5 years agoMerge "Make sure BiometricType is never null" into qt-dev
Lucas Dupin [Thu, 11 Apr 2019 00:58:00 +0000 (00:58 +0000)]
Merge "Make sure BiometricType is never null" into qt-dev

5 years agoMerge caller targets and ranked targets.
Alison Cichowlas [Thu, 11 Apr 2019 00:18:59 +0000 (20:18 -0400)]
Merge caller targets and ranked targets.

Bug: 126566208
Test: Manual; test apk and twitter
Change-Id: Ib264d4a646cafe160b9d3115d42292d940dc1918

5 years agoMerge "[RESTRICT_AUTOMERGE]: Add cross user permission check - areNotificationsEnable...
Julia Reynolds [Thu, 11 Apr 2019 00:44:09 +0000 (17:44 -0700)]
Merge "[RESTRICT_AUTOMERGE]: Add cross user permission check - areNotificationsEnabledForPackage" into oc-dev am: 2256fd4e11
am: 51fee974a9

Change-Id: I5c0f89e5614901b57880fff5b59a2f6766893903

5 years agoMerge changes from topic "am-3ca7326a-cbf1-4f97-a1b5-a4fdfac0fb47" into oc-dev am...
Julia Reynolds [Thu, 11 Apr 2019 00:39:03 +0000 (17:39 -0700)]
Merge changes from topic "am-3ca7326a-cbf1-4f97-a1b5-a4fdfac0fb47" into oc-dev am: 652a666500
am: 5d35ad7446

Change-Id: I0e8dff954426479e5a58f0a8f0dad10a294f7b25

5 years agoMerge changes from topic "am-09249f80-e618-46fc-ac06-c7fdc73c36ae" into oc-dev
Eran Messeri [Thu, 11 Apr 2019 00:35:21 +0000 (17:35 -0700)]
Merge changes from topic "am-09249f80-e618-46fc-ac06-c7fdc73c36ae" into oc-dev
am: 07a485743a

Change-Id: I0ba4a71037e5bac19a540320665446b55b7aafb6