OSDN Git Service

android-x86/frameworks-base.git
5 years agoMerge "Enable isolated storage by default."
Jeff Sharkey [Tue, 12 Feb 2019 23:43:57 +0000 (23:43 +0000)]
Merge "Enable isolated storage by default."

5 years agoMerge "Add GnssMeasurementState::STATE_2ND_CODE_LOCK to GnssMeasurement API"
TreeHugger Robot [Tue, 12 Feb 2019 23:22:05 +0000 (23:22 +0000)]
Merge "Add GnssMeasurementState::STATE_2ND_CODE_LOCK to GnssMeasurement API"

5 years agoMerge "Switch clock face while docked."
TreeHugger Robot [Tue, 12 Feb 2019 23:17:43 +0000 (23:17 +0000)]
Merge "Switch clock face while docked."

5 years agoMerge "Revert "[Magnifier-77] Show it on long press selection""
TreeHugger Robot [Tue, 12 Feb 2019 23:04:28 +0000 (23:04 +0000)]
Merge "Revert "[Magnifier-77] Show it on long press selection""

5 years agoMerge "Restrict usage of AccessibilityManager::mIsEnabled after P"
TreeHugger Robot [Tue, 12 Feb 2019 22:53:12 +0000 (22:53 +0000)]
Merge "Restrict usage of AccessibilityManager::mIsEnabled after P"

5 years agoMerge "Throws an exception there is a problem when collecting CPU metrics instead...
TreeHugger Robot [Tue, 12 Feb 2019 22:42:49 +0000 (22:42 +0000)]
Merge "Throws an exception there is a problem when collecting CPU metrics instead of returning empty data."

5 years agoMerge "Telephony: Add 7bit Ascii support for long message"
Brad Ebinger [Tue, 12 Feb 2019 21:39:15 +0000 (21:39 +0000)]
Merge "Telephony: Add 7bit Ascii support for long message"

5 years agoMerge "Make ENABLE_ROLLBACK_TIMEOUT configurable"
TreeHugger Robot [Tue, 12 Feb 2019 21:19:31 +0000 (21:19 +0000)]
Merge "Make ENABLE_ROLLBACK_TIMEOUT configurable"

5 years agoMerge "Sharesheet - file preview support"
Matt Pietal [Tue, 12 Feb 2019 21:09:46 +0000 (21:09 +0000)]
Merge "Sharesheet - file preview support"

5 years agoMerge "Add trackingBug to Typeface.sSystemFontMap."
TreeHugger Robot [Tue, 12 Feb 2019 20:51:34 +0000 (20:51 +0000)]
Merge "Add trackingBug to Typeface.sSystemFontMap."

5 years agoMerge "A few missing pieces for logging in ExtServices"
TreeHugger Robot [Tue, 12 Feb 2019 20:18:39 +0000 (20:18 +0000)]
Merge "A few missing pieces for logging in ExtServices"

5 years agoMerge "[WIFI] Update javadoc for getConfiguredNetworks"
Etan Cohen [Tue, 12 Feb 2019 20:16:18 +0000 (20:16 +0000)]
Merge "[WIFI] Update javadoc for getConfiguredNetworks"

5 years agoMerge "Persist the Persons field in ShortcutInfo"
Mehdi Alizadeh [Tue, 12 Feb 2019 20:12:09 +0000 (20:12 +0000)]
Merge "Persist the Persons field in ShortcutInfo"

5 years agoMerge "Update service callback for HeadsetProfile"
Lei Yu [Tue, 12 Feb 2019 19:40:18 +0000 (19:40 +0000)]
Merge "Update service callback for HeadsetProfile"

5 years agoMerge "Use rethrowFromSystemServer instead of RuntimeException"
TreeHugger Robot [Tue, 12 Feb 2019 19:35:41 +0000 (19:35 +0000)]
Merge "Use rethrowFromSystemServer instead of RuntimeException"

5 years agoAdd GnssMeasurementState::STATE_2ND_CODE_LOCK to GnssMeasurement API
Yu-Han Yang [Sat, 2 Feb 2019 03:52:28 +0000 (19:52 -0800)]
Add GnssMeasurementState::STATE_2ND_CODE_LOCK to GnssMeasurement API

- Also updates the Javadoc of getReceivedSvTimeNanos

Bug: 123297074
Test: builds and tested on cuttlefish
Change-Id: I96c828b2e66545a3615689cc299585511e13f9bf

5 years agoMerge "Merge "Remove duplicate networkstack-aidl-interfaces-java" am: 3e141a27c9...
Android Build Merger (Role) [Tue, 12 Feb 2019 19:24:09 +0000 (19:24 +0000)]
Merge "Merge "Remove duplicate networkstack-aidl-interfaces-java" am: 3e141a27c9 am: df3a9f41c4 am: 8eacbb3396"

5 years agoMerge "Remove duplicate networkstack-aidl-interfaces-java" am: 3e141a27c9 am: df3a9f41c4
Steven Moreland [Tue, 12 Feb 2019 19:23:22 +0000 (11:23 -0800)]
Merge "Remove duplicate networkstack-aidl-interfaces-java" am: 3e141a27c9 am: df3a9f41c4
am: 8eacbb3396

Change-Id: Id30768cf31dd3a416d0a6b6bbac4496a51d0e56e

5 years agoMerge "Split blacklist from versioned blacklists."
TreeHugger Robot [Tue, 12 Feb 2019 19:23:01 +0000 (19:23 +0000)]
Merge "Split blacklist from versioned blacklists."

5 years agoMerge "Device ID attestation for PO: Address API review"
TreeHugger Robot [Tue, 12 Feb 2019 19:18:47 +0000 (19:18 +0000)]
Merge "Device ID attestation for PO: Address API review"

5 years agoMerge "Avoid NPE when fetching ContentProviderRecord#name."
TreeHugger Robot [Tue, 12 Feb 2019 19:14:38 +0000 (19:14 +0000)]
Merge "Avoid NPE when fetching ContentProviderRecord#name."

5 years agoMerge "Remove duplicate networkstack-aidl-interfaces-java" am: 3e141a27c9
Steven Moreland [Tue, 12 Feb 2019 19:13:15 +0000 (11:13 -0800)]
Merge "Remove duplicate networkstack-aidl-interfaces-java" am: 3e141a27c9
am: df3a9f41c4

Change-Id: Ia542e16910f9c65fabe22344bbe8e8975a274045

5 years agoMerge "Sharesheet - use config for rounded corners"
TreeHugger Robot [Tue, 12 Feb 2019 19:11:38 +0000 (19:11 +0000)]
Merge "Sharesheet - use config for rounded corners"

5 years agoMerge "Remove unnecessary SystemApi annotation from EasyConnectCallbackProxy"
TreeHugger Robot [Tue, 12 Feb 2019 18:56:40 +0000 (18:56 +0000)]
Merge "Remove unnecessary SystemApi annotation from EasyConnectCallbackProxy"

5 years agoMerge "Remove duplicate networkstack-aidl-interfaces-java"
Steven Moreland [Tue, 12 Feb 2019 18:51:10 +0000 (10:51 -0800)]
Merge "Remove duplicate networkstack-aidl-interfaces-java"
am: 3e141a27c9

Change-Id: I8cf5e8c2f41e990b6c19890605543bb06d99198b

5 years agoSwitch clock face while docked.
Robert Snoeberger [Wed, 23 Jan 2019 19:06:22 +0000 (14:06 -0500)]
Switch clock face while docked.

Bug: 120772327
Test: Added tests ClockManagerTest and DefaultClockSupplierTest
Change-Id: I404c6d52e1bd087d453d928faf373cf8dea9e2b2

5 years agoMerge "Adding callback for setPreferredDataSubscriptionId."
Xiangyu/Malcolm Chen [Tue, 12 Feb 2019 18:40:09 +0000 (18:40 +0000)]
Merge "Adding callback for setPreferredDataSubscriptionId."

5 years agoMerge "Remove duplicate networkstack-aidl-interfaces-java"
Steven Moreland [Tue, 12 Feb 2019 18:29:24 +0000 (18:29 +0000)]
Merge "Remove duplicate networkstack-aidl-interfaces-java"

5 years agoMerge "Merge "Remove ParcelFileDescriptor.aidl" am: c7c7fe6325 am: 21f4e04f3d am...
Android Build Merger (Role) [Tue, 12 Feb 2019 18:29:01 +0000 (18:29 +0000)]
Merge "Merge "Remove ParcelFileDescriptor.aidl" am: c7c7fe6325 am: 21f4e04f3d am: a1f96c0af8"

5 years agoMerge "Remove ParcelFileDescriptor.aidl" am: c7c7fe6325 am: 21f4e04f3d
Steven Moreland [Tue, 12 Feb 2019 18:28:18 +0000 (10:28 -0800)]
Merge "Remove ParcelFileDescriptor.aidl" am: c7c7fe6325 am: 21f4e04f3d
am: a1f96c0af8

Change-Id: I8ee7c8ae5e66ceb7a9f12e8def48ebdd1dedaa18

5 years agoMerge "Updated permission name according to API review"
TreeHugger Robot [Tue, 12 Feb 2019 18:27:47 +0000 (18:27 +0000)]
Merge "Updated permission name according to API review"

5 years agoMerge "Provide custom icon/title for OTA_UPDATE_UID"
Doris Ling [Tue, 12 Feb 2019 18:27:31 +0000 (18:27 +0000)]
Merge "Provide custom icon/title for OTA_UPDATE_UID"

5 years agoMerge "Update keyguard charging text to indicate wireless"
TreeHugger Robot [Tue, 12 Feb 2019 18:26:17 +0000 (18:26 +0000)]
Merge "Update keyguard charging text to indicate wireless"

5 years agoMerge "Correctly insert platformBuildVersionCode/Name"
TreeHugger Robot [Tue, 12 Feb 2019 18:17:19 +0000 (18:17 +0000)]
Merge "Correctly insert platformBuildVersionCode/Name"

5 years agoMerge "Add ambient-display CCT LUT to Display White Balance"
Daniel Solomon [Tue, 12 Feb 2019 18:16:28 +0000 (18:16 +0000)]
Merge "Add ambient-display CCT LUT to Display White Balance"

5 years agoMerge "Make SessionParams.setStaged SystemApi."
TreeHugger Robot [Tue, 12 Feb 2019 18:15:16 +0000 (18:15 +0000)]
Merge "Make SessionParams.setStaged SystemApi."

5 years agoMerge "Remove ParcelFileDescriptor.aidl" am: c7c7fe6325
Steven Moreland [Tue, 12 Feb 2019 18:11:54 +0000 (10:11 -0800)]
Merge "Remove ParcelFileDescriptor.aidl" am: c7c7fe6325
am: 21f4e04f3d

Change-Id: Ibd87a9a61ae70779baa90ced2eaab5526d4d815d

5 years agoMerge "Remove unused build variable framework_docs_args" am: bbd757d791 am: 662428ca71
Paul Duffin [Tue, 12 Feb 2019 18:08:15 +0000 (10:08 -0800)]
Merge "Remove unused build variable framework_docs_args" am: bbd757d791 am: 662428ca71
am: a03a4a69c6

Change-Id: I6901c48bc1a8aa7c6908d37802e05210acaab204

5 years agoMerge "Remove ParcelFileDescriptor.aidl"
Steven Moreland [Tue, 12 Feb 2019 18:02:23 +0000 (10:02 -0800)]
Merge "Remove ParcelFileDescriptor.aidl"
am: c7c7fe6325

Change-Id: I508f7591ad990d774b7866a831ac84f7a8fb6f77

5 years agoMerge "Remove unused build variable framework_docs_args" am: bbd757d791
Paul Duffin [Tue, 12 Feb 2019 17:57:29 +0000 (09:57 -0800)]
Merge "Remove unused build variable framework_docs_args" am: bbd757d791
am: 662428ca71

Change-Id: I2fb33849674d68de445ba46c3591b473fffb35cb

5 years agoMerge "Remove ParcelFileDescriptor.aidl"
Steven Moreland [Tue, 12 Feb 2019 17:51:35 +0000 (17:51 +0000)]
Merge "Remove ParcelFileDescriptor.aidl"

5 years agoMerge "Use local textclassifier in perf test"
TreeHugger Robot [Tue, 12 Feb 2019 17:48:31 +0000 (17:48 +0000)]
Merge "Use local textclassifier in perf test"

5 years agoMerge "Remove unused build variable framework_docs_args"
Paul Duffin [Tue, 12 Feb 2019 17:44:11 +0000 (09:44 -0800)]
Merge "Remove unused build variable framework_docs_args"
am: bbd757d791

Change-Id: I774c0fd64c120be6d2da5bc91356f6ecd652a197

5 years agoMerge "Updated GradientDrawable to expose public APIs to reduce reflection usages"
Nader Jawad [Tue, 12 Feb 2019 17:43:15 +0000 (17:43 +0000)]
Merge "Updated GradientDrawable to expose public APIs to reduce reflection usages"

5 years agoMerge "Remove CtsViewTestCases in TEST_MAPPING file"
Dan Shi [Tue, 12 Feb 2019 17:42:02 +0000 (17:42 +0000)]
Merge "Remove CtsViewTestCases in TEST_MAPPING file"

5 years agoMerge "Restrict reflection access to NumberPickers's mSelectionWheelPaint"
TreeHugger Robot [Tue, 12 Feb 2019 17:39:08 +0000 (17:39 +0000)]
Merge "Restrict reflection access to NumberPickers's mSelectionWheelPaint"

5 years agoRemove CtsViewTestCases in TEST_MAPPING file
Dan Shi [Tue, 12 Feb 2019 17:33:07 +0000 (09:33 -0800)]
Remove CtsViewTestCases in TEST_MAPPING file

The test config has an option to use package filter, which does not
work with another TEST_MAPPING which has the same test but use a
class filter.
startop/view_compiler/TEST_MAPPING

Bug: 124248633
Test: none
Change-Id: Id989d9df8983e7a08be38616e92e10f70fe4846a

5 years agoMerge "Remove unused build variable framework_docs_args"
Treehugger Robot [Tue, 12 Feb 2019 17:32:40 +0000 (17:32 +0000)]
Merge "Remove unused build variable framework_docs_args"

5 years agoMerge "Removed unused variables in cat service" am: 9718148ef7 am: 40b897fd7a
Jack Yu [Tue, 12 Feb 2019 17:26:30 +0000 (09:26 -0800)]
Merge "Removed unused variables in cat service" am: 9718148ef7 am: 40b897fd7a
am: b4428a9919

Change-Id: Id9d19239b6e5cd7c0a3c5344cefbdd2c2338df1f

5 years agoMake ENABLE_ROLLBACK_TIMEOUT configurable
Mohammad Samiul Islam [Fri, 11 Jan 2019 15:43:15 +0000 (15:43 +0000)]
Make ENABLE_ROLLBACK_TIMEOUT configurable

Bug: 112431924
Test: atest RollbackTest
Test: manual testing
      - disable the RollbackManagerService by commenting out
        BroadcastReceiver for ACTION_PACKAGE_ENABLE_ROLLBACK
      - configure timeout: adb shell device_config put rollback
        enable_rollback_timeout 60000
      - install apk: adb install --enable-rollback
        out/target/product/taimen/data/app/RollbackTest/
        RollbackTest.apk
      - search for "rollback timed out" in `adb logcat`

Change-Id: I61600cf376755d80c735ad954a80ca98de508bda

5 years agoSplit blacklist from versioned blacklists.
Peiyong Lin [Thu, 7 Feb 2019 23:52:38 +0000 (15:52 -0800)]
Split blacklist from versioned blacklists.

Previously we use blacklist to get all blacklists, to maintain the consistency
between blacklist and whitelist, and to move blacklist processing to GPU
service, we added blacklists to store all blacklists, and now blacklist will
only represent one blacklist.

BUG: 120869311
Test: Build, flash and boot. Verified in master patch ag/6288554
Change-Id: Ifac875177ad959705c8f80672341c4cbee7bbc93
Exempt-From-Owner-Approval: Change in CoreSettingsObserver.java is too minor

5 years agoMerge "Removed unused variables in cat service" am: 9718148ef7
Jack Yu [Tue, 12 Feb 2019 17:14:57 +0000 (09:14 -0800)]
Merge "Removed unused variables in cat service" am: 9718148ef7
am: 40b897fd7a

Change-Id: Id32d50057c15903c57f8ec3f5fe2c151d7150439

5 years agoMerge "Removed unused variables in cat service"
Jack Yu [Tue, 12 Feb 2019 17:03:43 +0000 (09:03 -0800)]
Merge "Removed unused variables in cat service"
am: 9718148ef7

Change-Id: I4c2e1bd86a96a2ec73169353d4a9f2da0d0e9c01

5 years agoMerge "Removed unused variables in cat service"
Jack Yu [Tue, 12 Feb 2019 16:52:48 +0000 (16:52 +0000)]
Merge "Removed unused variables in cat service"

5 years agoMerge "Test to null-check NotificationEntryManager.performRemoveNotification()"
Gustav Sennton [Tue, 12 Feb 2019 16:44:36 +0000 (16:44 +0000)]
Merge "Test to null-check NotificationEntryManager.performRemoveNotification()"

5 years agoCorrectly insert platformBuildVersionCode/Name
Ryan Mitchell [Tue, 12 Feb 2019 16:06:26 +0000 (08:06 -0800)]
Correctly insert platformBuildVersionCode/Name

AAPT(1) encodes platformBuildVersionCode and
platformBuildVersionName into the manifest along with
compileSdkVersion and compileSdkVersionCodename. AAPT2 was extracting
the platform attributes from the app being created rather than the
framework.

This change inserts the correct platform attributes.

Bug: 124227171
Test: aapt2_tests
Change-Id: I4bc7986d25f065cecf01b9e988de4d37283ef7de

5 years agoMerge "metrics: num saved networks with mac randomization"
Oscar Shu [Tue, 12 Feb 2019 16:12:45 +0000 (16:12 +0000)]
Merge "metrics: num saved networks with mac randomization"

5 years agoRestrict usage of AccessibilityManager::mIsEnabled after P
Matvei Malkov [Fri, 8 Feb 2019 17:41:00 +0000 (17:41 +0000)]
Restrict usage of AccessibilityManager::mIsEnabled after P

Setting this field with reflection leaves AccessibilityManager in
improper state. Restrict access to this field in future apis

Bug: b/124052733
Test: accessibility tests passed
Change-Id: I776e1092ab33cf9660f593a22585695c17852e1e

5 years agoMerge "Add DeviceConfig permissions to manifest so that AppCompactorTest can run...
Stanislav Zholnin [Tue, 12 Feb 2019 15:27:36 +0000 (15:27 +0000)]
Merge "Add DeviceConfig permissions to manifest so that AppCompactorTest can run after permissions are enforced."

5 years agoA few missing pieces for logging in ExtServices
Tony Mak [Mon, 11 Feb 2019 20:38:26 +0000 (20:38 +0000)]
A few missing pieces for logging in ExtServices

1. Log TYPE_ACTIONS_GENERATED with a list of suggestion type.
2. Log the score of the clicked suggestion.
    a) For replies, the score is stored in session.
    b) For actions, the score is stored in the extras.
3. Suppress logging if suggestions are not going to be used by SysUI
4. Removed @NonNull annotation. SmartActionsHelpers are fully annotated,
   so we only need @Nullable annotation.
5. TextClassificationManager cannot be null, and getTextClassifier()
   won't return null either, so removed some null checks.

Test: atest SmartActionsHelperTest
Test: Manual. Send a message to myself, observer generated event is
      loggeed. Tap on it, seeing the score is logged.
Test: Manual, send a message with app generated replies, observe that
      only generated event is logged.

BUG: 120803809

Change-Id: I1c18decb237cbeb267f2a3db6ebb149232b786b4

5 years agoMerge "Make notifications from the default dialer and SMS app unblockable."
Julia Reynolds [Tue, 12 Feb 2019 14:59:03 +0000 (14:59 +0000)]
Merge "Make notifications from the default dialer and SMS app unblockable."

5 years agoMerge "Push the device owner packageName from DPMS to ATMS instead of calling DPM...
Michal Karpinski [Tue, 12 Feb 2019 14:55:04 +0000 (14:55 +0000)]
Merge "Push the device owner packageName from DPMS to ATMS instead of calling DPM.isDeviceOwnerApp()"

5 years agoRevert "[Magnifier-77] Show it on long press selection"
Mihai Popa [Tue, 12 Feb 2019 12:02:32 +0000 (12:02 +0000)]
Revert "[Magnifier-77] Show it on long press selection"

This reverts commit 88fbed49afaa657cca68b931c1d1aa03d33f1af3.

Reason for revert: We decided to punt this functionality to R, in order to keep consistency with WebView and Chrome. (b/119819194)

Change-Id: I625a8bca52687e3f15957f4dc4a0982c1ad28a2a

5 years agoUse rethrowFromSystemServer instead of RuntimeException
Charles Chen [Tue, 12 Feb 2019 12:58:12 +0000 (20:58 +0800)]
Use rethrowFromSystemServer instead of RuntimeException

Fixes: 123587667
Test: atest ActivityManagerMultiDisplayTests
Change-Id: Ie34462e28b3d14dbc058a115a3de046e6b42bcc1

5 years agoRemove unused build variable framework_docs_args
Paul Duffin [Tue, 12 Feb 2019 12:37:20 +0000 (12:37 +0000)]
Remove unused build variable framework_docs_args

Bug: 124218911
Test: make checkbuild
Change-Id: I39c73bc8bee3824161e91967ec187ce60e838b48

5 years agoPush the device owner packageName from DPMS to ATMS
Michal Karpinski [Tue, 12 Feb 2019 11:51:47 +0000 (11:51 +0000)]
Push the device owner packageName from DPMS to ATMS
instead of calling DPM.isDeviceOwnerApp()

Due to lock ordering AM/ATM cannot call DPM directly.

Bug: 123950811
Test: atest WmTests:ActivityStarterTests
Test: atest FrameworksServicesTests:DevicePolicyManagerTest
Test: manual with TestDPC (set DO, reboot device, etc.)
Change-Id: I14c6f48fe07243fe324ea41e9403c37aaceea304

5 years agoSharesheet - file preview support
Matt Pietal [Tue, 5 Feb 2019 13:07:07 +0000 (08:07 -0500)]
Sharesheet - file preview support

Support sharing 1 or more non-image type files, with potential
for system generated thumbnail image

Bug: 120419296
Test: atest ChooserActivityTest

Change-Id: I17c44435bb0444035e2ec7675cbc367b75cc3a8e

5 years agoMerge "Compatible behavior for non-resizable activity (1/N)"
TreeHugger Robot [Tue, 12 Feb 2019 12:24:48 +0000 (12:24 +0000)]
Merge "Compatible behavior for non-resizable activity (1/N)"

5 years agoMerge "Compatible behavior for non-resizable activity (2/N)"
TreeHugger Robot [Tue, 12 Feb 2019 12:23:56 +0000 (12:23 +0000)]
Merge "Compatible behavior for non-resizable activity (2/N)"

5 years agoMerge "Support touch event on letterbox surface"
TreeHugger Robot [Tue, 12 Feb 2019 12:23:45 +0000 (12:23 +0000)]
Merge "Support touch event on letterbox surface"

5 years agoMerge "Marks the bucket as invalid when it reaches the guard rail limit."
Olivier Gaillard [Tue, 12 Feb 2019 11:56:26 +0000 (11:56 +0000)]
Merge "Marks the bucket as invalid when it reaches the guard rail limit."

5 years agoMerge "Revert "Revert "Add view inflation device config property"""
Mathieu Chartier [Tue, 12 Feb 2019 11:11:33 +0000 (11:11 +0000)]
Merge "Revert "Revert "Add view inflation device config property"""

5 years agoMerge "Renames ChunkListing.java to ChunkListingMap.java."
TreeHugger Robot [Tue, 12 Feb 2019 10:57:42 +0000 (10:57 +0000)]
Merge "Renames ChunkListing.java to ChunkListingMap.java."

5 years agoMerge "Fix flaky AppWindowTokenTests"
TreeHugger Robot [Tue, 12 Feb 2019 10:39:33 +0000 (10:39 +0000)]
Merge "Fix flaky AppWindowTokenTests"

5 years agoAdd DeviceConfig permissions to manifest so that AppCompactorTest
Stanislav Zholnin [Fri, 8 Feb 2019 17:17:43 +0000 (17:17 +0000)]
Add DeviceConfig permissions to manifest so that AppCompactorTest
can run after permissions are enforced.

Test: atest AppCompactorTest
Change-Id: Ie0994d3fc539f1305d7c8c153d0116d605ae03f6

5 years agoLog user IDs for both IME and IME-client in StartInputHistory
Yohei Yukawa [Tue, 12 Feb 2019 10:01:10 +0000 (02:01 -0800)]
Log user IDs for both IME and IME-client in StartInputHistory

This is a follow up CL to my recent CL [1], which added an @hide API
EditorInfo#targetInputMethodUser for privileged components such as
System UI to be able to override the expected IME user, based on their
INTERACT_ACROSS_USERS_FULL permission.  This is critical for
per-profile IME mode and direct-reply to coexist.

To make it easier to diagnose this new scenario, this CL updates our
retrospective debugging mechanism called StartInputHistory [2].  With
this CL, InputMethodManagerService starts keeping track of both IME
user ID and IME client user ID for each StartInput so that we can see
them later into the StartInputHistory section of the bugreport.

For Direct-Reply scenario for instance, we would see a log like this:

  ... imeUserId=10 ... targetUserId=0 ...

There should be no user-visible behavior change.

 [1]: Ia7ea944438d69669ccdf9111b34ba400e786a602
      0f5eade4a492fc91130da1aedcad0999932f4137
 [2]: Icb29c4ef0703553ead8654d3255a554de6d1a9b4
      357b2f60e147d18af9c8399b346a9e63de1baaf3

Bug: 35079353
Bug: 120744418
Test: Manually verified as follows.
  1. Build aosp_taimen-userdebug and flash it.
  2. adb shell pm create-user test_user
  3. adb shell am switch-user 10
  4. make -j EditTextVariations
  5. adb install -r \
       $ANDROID_TARGET_OUT_TESTCASES/EditTextVariations/EditTextVariations.apk
  6. adb shell am start \
       -n com.android.inputmethod.tools.edittextvariations/.EditTextVariations
  7. Tap the menu icon on the EditTextVariations then click "Direct Reply"
  8. Open notification shade.
  9. Tap reply icon on "Message from UserHandle{10}".
 10. Make sure that AOSP Keyboard is shown.
 11. adb shell dumpsys input_method
 12. Make sure that you can see both "imeUserId=10" and
     "targetUserId=0" in the last StartInputHistory.
Change-Id: Ica21e2f4cb41c7a5f4195f08f05220e2f65c1bf1

5 years agoLog display IDs for both IME and IME-client in StartInputHistory
Yohei Yukawa [Tue, 12 Feb 2019 10:01:00 +0000 (02:01 -0800)]
Log display IDs for both IME and IME-client in StartInputHistory

This is a follow up CL to a recent CL [1], which added a special
fallback mechanism for IMEs to be shown on the default display when
the target display doesn't have FLAG_CAN_SHOW_SYSTEM_DECORATIONS.

It turns out that this scenario will soon become more user-visible
once Bubble UI is enabled, because Bubble UI is built on top of
ActivityView, where the target Activity including any text input field
will be running on a virtual display, not on the default display,
while IMEs are expected to continue running on the default display.

To make it easier to diagnose this new scenario, this CL updates our
retrospective debugging mechanism called StartInputHistory [2].  With
this CL, InputMethodManagerService starts keeping track of both IME
display ID and IME client display ID for each StartInput so that we
can see them later into the StartInputHistory section of the
bugreport.

For Bubble UI scenario for instance, we would see a log like this:

  ... imeDisplayId=0 ... targetDisplayId=1 ...

There should be no user-visible behavior change.

 [1]: Iedd71e4ddf4983f90b02dd72e471e7fa8e838fbf
      ef1965bd6d6061cb54bce305a4b99e640db19ddc
 [2]: Icb29c4ef0703553ead8654d3255a554de6d1a9b4
      357b2f60e147d18af9c8399b346a9e63de1baaf3

Bug: 35079353
Bug: 114350902
Test: Manually verified with Bubble test app and run 'adb shell
      dumpsys input_method' to see that a virtual display ID is logged
      when typing on Bubble UI.
Change-Id: I6f40d86a03a7965d72af7e9a1b6466350b7dfab7

5 years agoMake SessionParams.setStaged SystemApi.
Dario Freni [Fri, 8 Feb 2019 17:26:05 +0000 (17:26 +0000)]
Make SessionParams.setStaged SystemApi.

Bug: 123977800
Test: N/A
Change-Id: If5afd9d559261959b07a4618e7807c82f7643e11

5 years agoMarks the bucket as invalid when it reaches the guard rail limit.
Olivier Gaillard [Mon, 11 Feb 2019 18:08:43 +0000 (18:08 +0000)]
Marks the bucket as invalid when it reaches the guard rail limit.

It only impacts the BinderCallsStats atoms currently.

Bug: 120130099
Test: atest statsd_test
Change-Id: I8ba8d7cbe8798c1c503be8897a27a0729efe77d7

5 years agoHide InputMethodManger.showSoftInputUnchecked() from Q+ apps
Yohei Yukawa [Tue, 12 Feb 2019 09:42:56 +0000 (01:42 -0800)]
Hide InputMethodManger.showSoftInputUnchecked() from Q+ apps

This is a follow up CL to my previous CL [1], which declared that
InputMethodManger.showSoftInputUnchecked() was deprecated and should
have never be used any more.

At that time, however, we could not simply remove that hidden API
because android.support.v7.widget.SearchView had been used it via
reflection and the reflection code was already statically linked into
many apps in the ecosystem.  What we could do at that time was getting
rid of this hidden API dependency from support lib v26 [2] and making
sure that a clear warning was shown in logcat if apps were still using
older support lib [3].

Almost two years later now, it's probably time to step forward towards
true deprecation of this hidden API.  With this CL, apps that target
Q+ can no longer call this method.

 [1]: I20983e4ce1d625e098a8c2335ce75994cfa43235
      5cfc1b4c104471a6f4d0edc8a1b60cbc9a54d78f
 [2]: Iaac4673a85c141c787b96fb39806346ccfb85fb3
      fd44fffced7cce36c1ce0d62dfe2542aa6a7c6e9
 [3]: If01316a0c2a210f9ea03b53700d0ef651955ba9c
      101ae464fcd4b1ffd226f3c4ea2d2d951cf4e0e7

Bug: 36015425
Fix: 123768499
Test: make -j checkbuild
Change-Id: Ie7362f62f1e947ee5a21b90f5150c69f2970d73d

5 years agoMerge "Revert changes for moving MediaSessionService into AML"
TreeHugger Robot [Tue, 12 Feb 2019 09:31:52 +0000 (09:31 +0000)]
Merge "Revert changes for moving MediaSessionService into AML"

5 years agoMerge "Merge "Add getOrCreateCanonicalAddressId" am: efc16ab0d8 am: 5854e9312c am...
Android Build Merger (Role) [Tue, 12 Feb 2019 09:31:15 +0000 (09:31 +0000)]
Merge "Merge "Add getOrCreateCanonicalAddressId" am: efc16ab0d8 am: 5854e9312c am: 3179ad0d40"

5 years agoMerge "Fix min uid/gid allowed for child zygotes."
Martijn Coenen [Tue, 12 Feb 2019 09:29:42 +0000 (09:29 +0000)]
Merge "Fix min uid/gid allowed for child zygotes."

5 years agoRenames ChunkListing.java to ChunkListingMap.java.
Bram Bonné [Thu, 7 Feb 2019 10:40:10 +0000 (11:40 +0100)]
Renames ChunkListing.java to ChunkListingMap.java.

Bug: 111386661
Test: atest RunBackupFrameworksServicesRoboTests
Change-Id: I94327204ed39b4b4a6138eb6ddd1b28732a16363

5 years agoMerge "Add getOrCreateCanonicalAddressId" am: efc16ab0d8 am: 5854e9312c
Leland Miller [Tue, 12 Feb 2019 09:28:43 +0000 (01:28 -0800)]
Merge "Add getOrCreateCanonicalAddressId" am: efc16ab0d8 am: 5854e9312c
am: 3179ad0d40

Change-Id: Idbd353963c8dcfa245c39c8b78a48ae43fa8bc76

5 years agoMerge "Verify the pinned stack boundary when adjusting offset."
TreeHugger Robot [Tue, 12 Feb 2019 09:21:36 +0000 (09:21 +0000)]
Merge "Verify the pinned stack boundary when adjusting offset."

5 years agoMerge "Add getOrCreateCanonicalAddressId" am: efc16ab0d8
Leland Miller [Tue, 12 Feb 2019 09:15:11 +0000 (01:15 -0800)]
Merge "Add getOrCreateCanonicalAddressId" am: efc16ab0d8
am: 5854e9312c

Change-Id: Ic5c0c71c4a2ae548bf4ff697af4e9ecc7a0b90bc

5 years agoMerge "Add getOrCreateCanonicalAddressId"
Leland Miller [Tue, 12 Feb 2019 09:05:56 +0000 (01:05 -0800)]
Merge "Add getOrCreateCanonicalAddressId"
am: efc16ab0d8

Change-Id: Iac6050138195b612815721e00241d9b31d3a580a

5 years agoMerge "Add getOrCreateCanonicalAddressId"
Leland Miller [Tue, 12 Feb 2019 08:54:04 +0000 (08:54 +0000)]
Merge "Add getOrCreateCanonicalAddressId"

5 years agoFix flaky AppWindowTokenTests
Yunfan Chen [Thu, 7 Feb 2019 10:08:41 +0000 (19:08 +0900)]
Fix flaky AppWindowTokenTests

The only one failure test is marked with corresponding bug ID. Other
flakiness are fixed.

We need to push a guard task when waiting for handler empty to ensure
all the posted tasks is finished after calling the waitHandlerIdle.
Otherwise, it is possible that the assertion happens before the posted
runnable method finished, which will cause fail, and flakiness.

There was a change by default skip onParentChange call for
TestAppWindowToken which breaks the tests. Set the flag correctly in
setUp fixed it.

Bug: 69229402
Bug: 68267650
Test: atest AppWindowTokenTests. All tests other than flaky one should
get a stable pass.

Change-Id: If485232d676604ec4a5b8d2c9e097fd9794d916e

5 years agoMerge "Fix testLandscapeSeascapeRotationByApp failure"
Yunfan Chen [Tue, 12 Feb 2019 08:23:53 +0000 (08:23 +0000)]
Merge "Fix testLandscapeSeascapeRotationByApp failure"

5 years agoMerge "Support multi-SIM entitlement check"
Mark Chien [Tue, 12 Feb 2019 08:05:11 +0000 (08:05 +0000)]
Merge "Support multi-SIM entitlement check"

5 years agoCompatible behavior for non-resizable activity (2/N)
Riddle Hsu [Mon, 21 Jan 2019 13:48:16 +0000 (21:48 +0800)]
Compatible behavior for non-resizable activity (2/N)

Scale and offset activity with compatibility bounds horizontally.
This reuses the existing scaling flow of compatibility mode,
so the insets scaling is also handled when computing frames.

Bug: 112288258
Test: atest AppWindowTokenTests#testSizeCompatBounds
Change-Id: I42a3fae7cd27f3ab6d79d885bedbea2e34874d01

5 years agoFix testLandscapeSeascapeRotationByApp failure
Yunfan Chen [Tue, 12 Feb 2019 06:05:49 +0000 (15:05 +0900)]
Fix testLandscapeSeascapeRotationByApp failure

The test was failed because the DC will have mWaitingForConfig flag set
to true when updateOrientationFromAppTokens called. However, as this is
a test for AppWindowToken, we will not send a new config to the DC. This
flag will remain true and prevent handleResizingWindows handle the
WindowState correctly.

Set the flag to false to fix it.

Test: atest AppWindowTokenTests
Bug: 68267650
Bug: 124088319
Change-Id: I97cf5aa82d0a955e3422fa99523ec405d8e72693

5 years agoMerge "Remove potential duplicate runnable + add logging"
TreeHugger Robot [Tue, 12 Feb 2019 06:21:21 +0000 (06:21 +0000)]
Merge "Remove potential duplicate runnable + add logging"

5 years agoMerge "Remove INTERACT_ACROSS_USERS_FULL for NetworkStack" am: 749dfc3083 am: 082034a6dd
Remi NGUYEN VAN [Tue, 12 Feb 2019 05:20:07 +0000 (21:20 -0800)]
Merge "Remove INTERACT_ACROSS_USERS_FULL for NetworkStack" am: 749dfc3083 am: 082034a6dd
am: 67e46255ea

Change-Id: I57248b9294e239d031dcf36cf75e94bf58919701

5 years agoMerge "Remove INTERACT_ACROSS_USERS_FULL for NetworkStack" am: 749dfc3083
Remi NGUYEN VAN [Tue, 12 Feb 2019 05:10:20 +0000 (21:10 -0800)]
Merge "Remove INTERACT_ACROSS_USERS_FULL for NetworkStack" am: 749dfc3083
am: 082034a6dd

Change-Id: I9fa86a2487d7ef3a98016fda4e5cc2228bf9e519

5 years agoMerge "Remove INTERACT_ACROSS_USERS_FULL for NetworkStack"
Remi NGUYEN VAN [Tue, 12 Feb 2019 05:00:12 +0000 (21:00 -0800)]
Merge "Remove INTERACT_ACROSS_USERS_FULL for NetworkStack"
am: 749dfc3083

Change-Id: I62722875e52b1fc5486dda9a3368eb045808c1db

5 years agoMerge "Move flaky to single test level instead of class level"
Yunfan Chen [Tue, 12 Feb 2019 04:57:22 +0000 (04:57 +0000)]
Merge "Move flaky to single test level instead of class level"

5 years agoMerge "Remove INTERACT_ACROSS_USERS_FULL for NetworkStack"
Remi NGUYEN VAN [Tue, 12 Feb 2019 04:47:43 +0000 (04:47 +0000)]
Merge "Remove INTERACT_ACROSS_USERS_FULL for NetworkStack"