OSDN Git Service

android-x86/frameworks-base.git
5 years agoFix AppWindowTokenAnimationTests and add them to presubmit
Vishnu Nair [Wed, 20 Feb 2019 22:38:50 +0000 (14:38 -0800)]
Fix AppWindowTokenAnimationTests and add them to presubmit

Tests were failing because the SurfaceControl in TestAppWindowToken was null. Changed the
test class to not skip onParentChanged callback.

Test: atest AppWindowTokenAnimationTests
Bug: 124357362
Change-Id: I7b12b615c9ae5b57997a9a53aa50bff5962ab723

5 years agoMerge "Remove opposite position of nav bar for short aspect ratio app"
TreeHugger Robot [Tue, 19 Feb 2019 04:29:37 +0000 (04:29 +0000)]
Merge "Remove opposite position of nav bar for short aspect ratio app"

5 years agoMerge "Suppress the warning toast if the preferredDisplay was set to singleTask"
Jeff Chang [Tue, 19 Feb 2019 04:08:26 +0000 (04:08 +0000)]
Merge "Suppress the warning toast if the preferredDisplay was set to singleTask"

5 years agoMerge "Add TEST_MAPPING for GtsUnofficialApisUsageTestCases"
TreeHugger Robot [Tue, 19 Feb 2019 03:35:39 +0000 (03:35 +0000)]
Merge "Add TEST_MAPPING for GtsUnofficialApisUsageTestCases"

5 years agoMerge "Fix for testLifecycleOnMoveToFromSplitScreenRelaunch" am: 43d11758fa am: 0f174...
Raj Mamadgi [Tue, 19 Feb 2019 02:36:10 +0000 (18:36 -0800)]
Merge "Fix for testLifecycleOnMoveToFromSplitScreenRelaunch" am: 43d11758fa am: 0f174795e4
am: 03549b860a

Change-Id: I4d6037597d60b5990db0b95bdee3cb69c500ec49

5 years agoMerge "Fix for testLifecycleOnMoveToFromSplitScreenRelaunch" am: 43d11758fa
Raj Mamadgi [Tue, 19 Feb 2019 02:22:41 +0000 (18:22 -0800)]
Merge "Fix for testLifecycleOnMoveToFromSplitScreenRelaunch" am: 43d11758fa
am: 0f174795e4

Change-Id: Ie32376993dcc8b06f3d2254d6aecdb9a4f843236

5 years agoMerge "Fix for testLifecycleOnMoveToFromSplitScreenRelaunch"
Raj Mamadgi [Tue, 19 Feb 2019 02:13:45 +0000 (18:13 -0800)]
Merge "Fix for testLifecycleOnMoveToFromSplitScreenRelaunch"
am: 43d11758fa

Change-Id: I6b248297523070983c63b5dd870e235eea5ee59c

5 years agoMerge "Fix for testLifecycleOnMoveToFromSplitScreenRelaunch"
Treehugger Robot [Tue, 19 Feb 2019 02:02:35 +0000 (02:02 +0000)]
Merge "Fix for testLifecycleOnMoveToFromSplitScreenRelaunch"

5 years agoMerge "Move WindowStateTests into flaky one"
Yunfan Chen [Tue, 19 Feb 2019 02:02:17 +0000 (02:02 +0000)]
Merge "Move WindowStateTests into flaky one"

5 years agoMerge "Mark apexd session as successful before marking staged session applied"
TreeHugger Robot [Mon, 18 Feb 2019 22:08:18 +0000 (22:08 +0000)]
Merge "Mark apexd session as successful before marking staged session applied"

5 years agoMerge "BackupManager shouldn't clear app's data during restore if agent wasn't invoke...
Ruslan Tkhakokhov [Mon, 18 Feb 2019 21:51:49 +0000 (21:51 +0000)]
Merge "BackupManager shouldn't clear app's data during restore if agent wasn't invoked yet"

5 years agoMerge "Force blacklist on VMRuntime.setTargetSdkVersion*()" am: da75e38817 am: 20a71e4a90
David Brazdil [Mon, 18 Feb 2019 19:40:24 +0000 (11:40 -0800)]
Merge "Force blacklist on VMRuntime.setTargetSdkVersion*()" am: da75e38817 am: 20a71e4a90
am: af4651f75f

Change-Id: Ifa3bb90eeb3393f70a6263711073c58186e09a77

5 years agoMerge "Force blacklist on VMRuntime.setTargetSdkVersion*()" am: da75e38817
David Brazdil [Mon, 18 Feb 2019 19:29:01 +0000 (11:29 -0800)]
Merge "Force blacklist on VMRuntime.setTargetSdkVersion*()" am: da75e38817
am: 20a71e4a90

Change-Id: I07d5ec63ffcf5bda0a2cb3c2d4b0d3af0d3fdbf3

5 years agoMerge "Force blacklist on VMRuntime.setTargetSdkVersion*()"
David Brazdil [Mon, 18 Feb 2019 19:18:40 +0000 (11:18 -0800)]
Merge "Force blacklist on VMRuntime.setTargetSdkVersion*()"
am: da75e38817

Change-Id: I50ac78d0e85ab34cea2abaef4f44ee8d418e517c

5 years agoMerge "Force blacklist on VMRuntime.setTargetSdkVersion*()"
Treehugger Robot [Mon, 18 Feb 2019 19:11:00 +0000 (19:11 +0000)]
Merge "Force blacklist on VMRuntime.setTargetSdkVersion*()"

5 years agoMerge "Fix testDefaultDisplayOverrideConfiguration failed."
TreeHugger Robot [Mon, 18 Feb 2019 19:09:04 +0000 (19:09 +0000)]
Merge "Fix testDefaultDisplayOverrideConfiguration failed."

5 years agoMerge "Merge "Revert "Remove legacy-test and legacy-android-test targets"" am: 049c15...
Android Build Merger (Role) [Mon, 18 Feb 2019 18:51:41 +0000 (18:51 +0000)]
Merge "Merge "Revert "Remove legacy-test and legacy-android-test targets"" am: 049c1589ee am: 7f997d4cfc am: 95a9dc906f"

5 years agoMerge "Revert "Remove legacy-test and legacy-android-test targets"" am: 049c1589ee...
Jakub Gielzak [Mon, 18 Feb 2019 18:51:09 +0000 (10:51 -0800)]
Merge "Revert "Remove legacy-test and legacy-android-test targets"" am: 049c1589ee am: 7f997d4cfc
am: 95a9dc906f

Change-Id: I1034050336bdf8be84e3b86ae346dc4bfe1737ef

5 years agoMerge "Fix screen size configuration computing of task"
TreeHugger Robot [Mon, 18 Feb 2019 18:48:16 +0000 (18:48 +0000)]
Merge "Fix screen size configuration computing of task"

5 years agoMerge "Revert "Remove legacy-test and legacy-android-test targets"" am: 049c1589ee
Jakub Gielzak [Mon, 18 Feb 2019 18:42:20 +0000 (10:42 -0800)]
Merge "Revert "Remove legacy-test and legacy-android-test targets"" am: 049c1589ee
am: 7f997d4cfc

Change-Id: If998990b94bd36f0ffae26dede85df8ad079093e

5 years agoMerge "Specify no resource_dirs for SystemUI" am: 347d6ff9f9 am: a05d598bc0
Anton Hansson [Mon, 18 Feb 2019 18:35:05 +0000 (10:35 -0800)]
Merge "Specify no resource_dirs for SystemUI" am: 347d6ff9f9 am: a05d598bc0
am: dd33e2766b

Change-Id: Ifbd329e479ba447707d1a2a3a9492b5b9e48e331

5 years agoMerge "Revert "Remove legacy-test and legacy-android-test targets""
Jakub Gielzak [Mon, 18 Feb 2019 18:32:40 +0000 (10:32 -0800)]
Merge "Revert "Remove legacy-test and legacy-android-test targets""
am: 049c1589ee

Change-Id: Ia84907bfa038954256bc791490a490dd338b33ce

5 years agoMerge "Specify no resource_dirs for SystemUI" am: 347d6ff9f9
Anton Hansson [Mon, 18 Feb 2019 18:26:05 +0000 (10:26 -0800)]
Merge "Specify no resource_dirs for SystemUI" am: 347d6ff9f9
am: a05d598bc0

Change-Id: I2f2fd095a77726c62ea7f557a7ed3b5844691bf5

5 years agoMerge "Revert "Remove legacy-test and legacy-android-test targets""
Jakub Gielzak [Mon, 18 Feb 2019 18:24:58 +0000 (18:24 +0000)]
Merge "Revert "Remove legacy-test and legacy-android-test targets""

5 years agoRevert "Remove legacy-test and legacy-android-test targets"
Jakub Gielzak [Mon, 18 Feb 2019 18:24:17 +0000 (18:24 +0000)]
Revert "Remove legacy-test and legacy-android-test targets"

This reverts commit 3b0be60307cc6063795f8cd32356745ee371e757.

Reason for revert: Broken build

Change-Id: I71270c7b47163ab7147029f2d3961d1848fdd9eb

5 years agoMerge "Specify no resource_dirs for SystemUI"
Anton Hansson [Mon, 18 Feb 2019 18:16:37 +0000 (10:16 -0800)]
Merge "Specify no resource_dirs for SystemUI"
am: 347d6ff9f9

Change-Id: I0b752a641e5f74d7dac1017616553f464427e219

5 years agoMerge "Specify no resource_dirs for SystemUI"
Anton Hansson [Mon, 18 Feb 2019 18:03:36 +0000 (18:03 +0000)]
Merge "Specify no resource_dirs for SystemUI"

5 years agoMerge changes Ie125d44c,If9b5d57e,I001427c7
TreeHugger Robot [Mon, 18 Feb 2019 17:49:56 +0000 (17:49 +0000)]
Merge changes Ie125d44c,If9b5d57e,I001427c7

* changes:
  Create basic test for rollback of staged install.
  Stub out code for a host driven StagedRollbackTest.
  Move RollbackTest app code to a new subdirectory.

5 years agoBackupManager shouldn't clear app's data during restore if agent wasn't invoked yet
Ruslan Tkhakokhov [Mon, 18 Feb 2019 15:30:52 +0000 (15:30 +0000)]
BackupManager shouldn't clear app's data during restore if agent wasn't invoked yet

Bug: 123738850
Test: 1) atest RunBackupFrameworksServicesRoboTests
      2) atest CtsBackupTestCases
      3) atest CtsBackupHostTestCases
      4) atest GtsBackupTestCases
      5) atest GtsBackupHostTestCases
      6) Manual: Force exceptions before/after agent was called, verify
                 the new behavior.

Change-Id: Ia9ddea2939fc6d72dd9bc060b0c47bc8da2b868d

5 years agoFix testDefaultDisplayOverrideConfiguration failed.
lumark [Mon, 18 Feb 2019 07:00:47 +0000 (15:00 +0800)]
Fix testDefaultDisplayOverrideConfiguration failed.

Fixed problem introduced in ag/6135784 where override configuration may
not write to proto correctly when passing wrong "critical" parameter
to Configuration#writeToProto().

Fix: 124326029
Test: atest ActivityManagerDisplayTests

Change-Id: If509099192b333c3b6113b88259ab908b6effa12

5 years agoMerge changes from topic "wrapz"
Jeff Sharkey [Mon, 18 Feb 2019 16:42:07 +0000 (16:42 +0000)]
Merge changes from topic "wrapz"

* changes:
  Add tests for DocumentsContract/Provider.
  Replace ContentInterface with wrapping.

5 years agoMerge "Set seekbar to clickable"
Beth Thibodeau [Mon, 18 Feb 2019 16:15:48 +0000 (16:15 +0000)]
Merge "Set seekbar to clickable"

5 years agoMerge "ActivityView: avoid crash in release() when detached from window"
Mark Renouf [Mon, 18 Feb 2019 16:09:19 +0000 (16:09 +0000)]
Merge "ActivityView: avoid crash in release() when detached from window"

5 years agoMerge "Trigger CtsDevicePolicyManagerTestCases in postsubmit"
TreeHugger Robot [Mon, 18 Feb 2019 16:02:35 +0000 (16:02 +0000)]
Merge "Trigger CtsDevicePolicyManagerTestCases in postsubmit"

5 years agoMerge "Add request object for querying historical ops"
Svetoslav Ganov [Mon, 18 Feb 2019 15:48:19 +0000 (15:48 +0000)]
Merge "Add request object for querying historical ops"

5 years agoMerge "Merge "Remove legacy-test and legacy-android-test targets" am: 14daedf747...
Android Build Merger (Role) [Mon, 18 Feb 2019 15:45:19 +0000 (15:45 +0000)]
Merge "Merge "Remove legacy-test and legacy-android-test targets" am: 14daedf747 am: 4a83feb18a am: 9248379c98"

5 years agoMerge "Remove legacy-test and legacy-android-test targets" am: 14daedf747 am: 4a83feb18a
Paul Duffin [Mon, 18 Feb 2019 15:44:41 +0000 (07:44 -0800)]
Merge "Remove legacy-test and legacy-android-test targets" am: 14daedf747 am: 4a83feb18a
am: 9248379c98

Change-Id: Ia409c6c4596269120386f8ae47d7f6379a1073bf

5 years agoMerge "Refine UI janky in split-screen when launch & close IME opened app"
TreeHugger Robot [Mon, 18 Feb 2019 15:43:28 +0000 (15:43 +0000)]
Merge "Refine UI janky in split-screen when launch & close IME opened app"

5 years agoMerge "Remove legacy-test and legacy-android-test targets" am: 14daedf747
Paul Duffin [Mon, 18 Feb 2019 15:35:37 +0000 (07:35 -0800)]
Merge "Remove legacy-test and legacy-android-test targets" am: 14daedf747
am: 4a83feb18a

Change-Id: I920fe03eb41e0aceab8ba794bdfd53d3a5c75388

5 years agoMerge "Remove legacy-test and legacy-android-test targets"
Paul Duffin [Mon, 18 Feb 2019 15:26:09 +0000 (07:26 -0800)]
Merge "Remove legacy-test and legacy-android-test targets"
am: 14daedf747

Change-Id: I67e3a6d58324affcb9119002d4fb2be23e3121fc

5 years agoMerge "Add OWNERS for ExifInterface" am: 996d37ea59 am: 3250d90912
Jin Seok Park [Mon, 18 Feb 2019 15:24:32 +0000 (07:24 -0800)]
Merge "Add OWNERS for ExifInterface" am: 996d37ea59 am: 3250d90912
am: b3cec6a72d

Change-Id: Ie96e8e9991513de5edcb70d68ff67de42a037b90

5 years agoMerge "Add OWNERS for ExifInterface" am: 996d37ea59
Jin Seok Park [Mon, 18 Feb 2019 15:15:59 +0000 (07:15 -0800)]
Merge "Add OWNERS for ExifInterface" am: 996d37ea59
am: 3250d90912

Change-Id: I96a63075aca417d269e941a84612c72575c073fd

5 years agoMerge "Remove legacy-test and legacy-android-test targets"
Paul Duffin [Mon, 18 Feb 2019 15:13:45 +0000 (15:13 +0000)]
Merge "Remove legacy-test and legacy-android-test targets"

5 years agoMerge "Add OWNERS for ExifInterface"
Jin Seok Park [Mon, 18 Feb 2019 15:06:53 +0000 (07:06 -0800)]
Merge "Add OWNERS for ExifInterface"
am: 996d37ea59

Change-Id: I24669310bf259344675110b2e4463894843e776b

5 years agoForce blacklist on VMRuntime.setTargetSdkVersion*()
David Brazdil [Mon, 18 Feb 2019 14:59:20 +0000 (14:59 +0000)]
Force blacklist on VMRuntime.setTargetSdkVersion*()

The methods could be used to bypass the restrictions. Force them
onto the blacklist.

Test: builds
Change-Id: I77d1fb8ca7339bec5e933f87a3b672096e2e559e

5 years agoFix screen size configuration computing of task
Riddle Hsu [Mon, 18 Feb 2019 11:15:12 +0000 (19:15 +0800)]
Fix screen size configuration computing of task

Correct the typo for screen height.

Bug: 124532338
Test: atest TaskRecordTests#testComputeConfigResourceOverrides
Change-Id: I02ff82620f538291f2ae5518e1b4ee2c2ac288d1

5 years agoMerge "Add OWNERS for ExifInterface"
Jin Seok Park [Mon, 18 Feb 2019 14:56:06 +0000 (14:56 +0000)]
Merge "Add OWNERS for ExifInterface"

5 years agoMerge "Deliver realCallingUid and realCallingPid to AMS.broadcastIntentLocked() and...
Michal Karpinski [Mon, 18 Feb 2019 14:40:22 +0000 (14:40 +0000)]
Merge "Deliver realCallingUid and realCallingPid to AMS.broadcastIntentLocked() and make permission checks on them"

5 years agoMerge "Update color display javadoc"
TreeHugger Robot [Mon, 18 Feb 2019 14:36:55 +0000 (14:36 +0000)]
Merge "Update color display javadoc"

5 years agoTrigger CtsDevicePolicyManagerTestCases in postsubmit
Pavel Grafov [Mon, 18 Feb 2019 14:08:36 +0000 (14:08 +0000)]
Trigger CtsDevicePolicyManagerTestCases in postsubmit

In this configuration the tests will only be triggered by changes
to services/devicepolicy/** and core/java/android/app/admin/**, so
we won't be able to catch breakages coming from the rest of the tree
with a single CL precision. But let's see which parts are causing
the most breakages and add them later.

Bug: 124653467
Test: atest --test-mapping core/java/android/app/admin:postsubmit
Test: atest --test-mapping services/devicepolicy:postsubmit
Change-Id: I58f87fff4b5b5e3e4fb8a333dd6ac4dd4100b587

5 years agoMark apexd session as successful before marking staged session applied
Nikita Ioffe [Fri, 15 Feb 2019 14:22:44 +0000 (14:22 +0000)]
Mark apexd session as successful before marking staged session applied

Failing to mark session as successful won't block this staged session:
- it's mostly for bookkeeping purposes, in the future apexd might just
  delete information about the session after it is marked as successful;
- in case this call failed, when new session is staged apexd will delete
  all dangling sessions.

Bug: 124215327
Fixes: 124215327
Test: apex_e2e_tests
Change-Id: I7c9a068bc32352792610e7190e08a884bb5d09a5

5 years agoSuppress the warning toast if the preferredDisplay was set to singleTask
Jeff Chang [Thu, 14 Feb 2019 12:42:27 +0000 (20:42 +0800)]
Suppress the warning toast if the preferredDisplay was set to singleTask

singleTaskInstance displays will only contain one task and any attempt
to launch new task will re-route to the default display.

Bug: 123642392
Test: atest ActivityManagerMultiDisplayTests#testSingleTaskInstanceDisplay
Change-Id: If782a121c5a303b6bfa9f23da59c1a62ef242c7f

5 years agoMerge "Fetch transition specs if the state is already ready"
TreeHugger Robot [Mon, 18 Feb 2019 13:07:32 +0000 (13:07 +0000)]
Merge "Fetch transition specs if the state is already ready"

5 years agoSpecify no resource_dirs for SystemUI
Anton Hansson [Fri, 8 Feb 2019 09:01:32 +0000 (09:01 +0000)]
Specify no resource_dirs for SystemUI

The res directory is already included via the SystemUI-core
library. The default for resource_dirs is ["res"] if it exists,
so explicitly clear it to avoid depending on it twice.

Bug: 124035856
Test: m SystemUI
Change-Id: Ia1b06cd9eff4e614684efde34288cf9ebd895870

5 years agoMerge "Use new manifest flag to gate clearing data during restore"
Ruslan Tkhakokhov [Mon, 18 Feb 2019 11:41:57 +0000 (11:41 +0000)]
Merge "Use new manifest flag to gate clearing data during restore"

5 years agoMerge "Fix the flaky test case : testRecentsButtonDisabledOnSecondaryDisplay"
Jeff Chang [Mon, 18 Feb 2019 11:30:15 +0000 (11:30 +0000)]
Merge "Fix the flaky test case : testRecentsButtonDisabledOnSecondaryDisplay"

5 years agoCreate basic test for rollback of staged install.
Richard Uhler [Mon, 11 Feb 2019 12:20:31 +0000 (12:20 +0000)]
Create basic test for rollback of staged install.

The new test tests rollback of a staged install involving a single apk.

Test: atest StagedRollbackTest
Bug: 124043688
Bug: 124221060
Bug: 124284714

Change-Id: Ie125d44c4d30d142ee32beac4c42e735a47ec71e

5 years agoMerge "Rename DexLogger to DynamicCodeLogger."
TreeHugger Robot [Mon, 18 Feb 2019 11:03:30 +0000 (11:03 +0000)]
Merge "Rename DexLogger to DynamicCodeLogger."

5 years agoMerge "Add force suspend API to PowerManager."
Santos Cordon [Mon, 18 Feb 2019 10:23:04 +0000 (10:23 +0000)]
Merge "Add force suspend API to PowerManager."

5 years agoMerge "Update AppCompacted WW atom to include device ZRAM usage."
Ben Murdoch [Mon, 18 Feb 2019 09:13:23 +0000 (09:13 +0000)]
Merge "Update AppCompacted WW atom to include device ZRAM usage."

5 years agoMerge "Replace TcpSocketInfo with TcpKeepalivePacketDataParcelable in ApfTest." am...
Xiao Ma [Mon, 18 Feb 2019 07:43:59 +0000 (23:43 -0800)]
Merge "Replace TcpSocketInfo with TcpKeepalivePacketDataParcelable in ApfTest." am: e7e5a35b38 am: a88f901028
am: fb6ce004e1

Change-Id: I488efad5dffa7a4b74ed0fd6525c918311651252

5 years agoMerge "Replace TcpSocketInfo with TcpKeepalivePacketDataParcelable in ApfTest." am...
Xiao Ma [Mon, 18 Feb 2019 07:34:55 +0000 (23:34 -0800)]
Merge "Replace TcpSocketInfo with TcpKeepalivePacketDataParcelable in ApfTest." am: e7e5a35b38
am: a88f901028

Change-Id: Ifcc3e24ba311b82d06ed8951f2aafd64d48272c6

5 years agoMerge "Replace TcpSocketInfo with TcpKeepalivePacketDataParcelable in ApfTest."
Xiao Ma [Mon, 18 Feb 2019 07:25:24 +0000 (23:25 -0800)]
Merge "Replace TcpSocketInfo with TcpKeepalivePacketDataParcelable in ApfTest."
am: e7e5a35b38

Change-Id: I555a4c49a92148a492172a4f2cec993428140cdc

5 years agoMerge "Replace TcpSocketInfo with TcpKeepalivePacketDataParcelable in ApfTest."
Xiao Ma [Mon, 18 Feb 2019 07:12:04 +0000 (07:12 +0000)]
Merge "Replace TcpSocketInfo with TcpKeepalivePacketDataParcelable in ApfTest."

5 years agoMove WindowStateTests into flaky one
Yunfan Chen [Mon, 18 Feb 2019 06:52:17 +0000 (15:52 +0900)]
Move WindowStateTests into flaky one

The test is flaky during set up. Make use doNothing in extendedMockito
to further monitor and debug purpose.

testLayoutSeqResetOnReparent and
testDisplayCutoutIsCalculatedRelativeToFrame is flaky for different
reason. Mark with a seperate bug ID.

Bug: 124127512
Test: None
Change-Id: Ie1a4f6e106497f572248313fcbc6973a453722b8

5 years agoMerge "Fix NPE in MediaController2"
TreeHugger Robot [Mon, 18 Feb 2019 06:53:13 +0000 (06:53 +0000)]
Merge "Fix NPE in MediaController2"

5 years agoMerge "Fix extend unlock logic when locked"
TreeHugger Robot [Mon, 18 Feb 2019 04:10:07 +0000 (04:10 +0000)]
Merge "Fix extend unlock logic when locked"

5 years agoMerge "MediaSession2: Make getConnectedControllers() public"
TreeHugger Robot [Mon, 18 Feb 2019 04:05:21 +0000 (04:05 +0000)]
Merge "MediaSession2: Make getConnectedControllers() public"

5 years agoMerge "Enable mouse input on simulated desktop display"
TreeHugger Robot [Mon, 18 Feb 2019 03:42:16 +0000 (03:42 +0000)]
Merge "Enable mouse input on simulated desktop display"

5 years agoMerge "Skip the parsing of the refresh interval in CertXml"
TreeHugger Robot [Mon, 18 Feb 2019 03:07:41 +0000 (03:07 +0000)]
Merge "Skip the parsing of the refresh interval in CertXml"

5 years agoMerge "Bar chart shows blank view during loading state"
TreeHugger Robot [Mon, 18 Feb 2019 03:04:05 +0000 (03:04 +0000)]
Merge "Bar chart shows blank view during loading state"

5 years agoFix NPE in MediaController2
Sungsoo Lim [Mon, 18 Feb 2019 02:58:49 +0000 (11:58 +0900)]
Fix NPE in MediaController2

Test: build
Change-Id: Ibd48b1515afe639f58fd20198b67e828b2c20106

5 years agoAdd OWNERS for ExifInterface
Jin Seok Park [Mon, 11 Feb 2019 08:27:09 +0000 (17:27 +0900)]
Add OWNERS for ExifInterface

Adding specific owners for ExifInterface in order to make sure
AndroidX code is changed when framework code is changed.

Bug: 122276930
Test: N/A
Change-Id: Icf0d74ad915d4b322a70c74762753411ad96bbb1

5 years agoMerge "Remove feature flags of WiFi Sharing feature"
TreeHugger Robot [Mon, 18 Feb 2019 02:42:33 +0000 (02:42 +0000)]
Merge "Remove feature flags of WiFi Sharing feature"

5 years agoMerge "Fix flaky InsetsStateControllerTest"
Yunfan Chen [Mon, 18 Feb 2019 02:14:31 +0000 (02:14 +0000)]
Merge "Fix flaky InsetsStateControllerTest"

5 years agoMerge "Rename NetworkStack package" am: e4a40c77e1 am: 69728afbc7
Remi NGUYEN VAN [Mon, 18 Feb 2019 01:34:12 +0000 (17:34 -0800)]
Merge "Rename NetworkStack package" am: e4a40c77e1 am: 69728afbc7
am: 8f46e05096

Change-Id: I9d5b907c3bcd9b15899307927b8518a9f60eceba

5 years agoMerge "Rename NetworkStack package" am: e4a40c77e1
Remi NGUYEN VAN [Mon, 18 Feb 2019 01:24:51 +0000 (17:24 -0800)]
Merge "Rename NetworkStack package" am: e4a40c77e1
am: 69728afbc7

Change-Id: I9559681cf4277a6d763245cd239f5b12a5e3865b

5 years agoMerge "Rename NetworkStack package"
Remi NGUYEN VAN [Mon, 18 Feb 2019 01:15:47 +0000 (17:15 -0800)]
Merge "Rename NetworkStack package"
am: e4a40c77e1

Change-Id: I0acdbd8716b67241367c78b7c190b72086e2db4d

5 years agoMerge "Rename NetworkStack package"
Remi NGUYEN VAN [Mon, 18 Feb 2019 01:07:51 +0000 (01:07 +0000)]
Merge "Rename NetworkStack package"

5 years agoRemove feature flags of WiFi Sharing feature
Johnson Lu [Wed, 13 Feb 2019 03:47:56 +0000 (11:47 +0800)]
Remove feature flags of WiFi Sharing feature

Bug: 120744414
Test: Manual
Change-Id: I8aef3e2f197307cd884f846ab508dd465f78395f

5 years agoFix extend unlock logic when locked
Chad Brubaker [Sun, 17 Feb 2019 21:34:02 +0000 (13:34 -0800)]
Fix extend unlock logic when locked

If the device is showing the keyguard but unlocked a call to
updateTrusted with unlocked flags should not cause the device to lock.

Test: Manual
Bug: 124121600
Change-Id: I6c8a84361d639738f6e70708c92b8fa16c744f63

5 years agoAdd request object for querying historical ops
Svet Ganov [Wed, 23 Jan 2019 04:38:11 +0000 (20:38 -0800)]
Add request object for querying historical ops

Test: atest CtsAppOpTestCases

bug:123253745

Change-Id: Ia473f9298a83214f2fdfb1062992b48357965003

5 years agoDeliver realCallingUid and realCallingPid to
Michal Karpinski [Sun, 17 Feb 2019 13:15:23 +0000 (13:15 +0000)]
Deliver realCallingUid and realCallingPid to
AMS.broadcastIntentLocked() and make permission checks on them

Due to cleared identity at calling sites, we were using wrong
identity to carry out permission checks for BroadcastOptions.

Test: manual (log uids/pids with logcat, and see they're correct)
Bug: 124539196
Change-Id: Ieabb14220cadd25f4ed5fbc3b0ac028fc53d47de

5 years agoMerge "Add touch classification metrics atom."
TreeHugger Robot [Sun, 17 Feb 2019 14:56:31 +0000 (14:56 +0000)]
Merge "Add touch classification metrics atom."

5 years agoMerge changes I9ed87db1,Ic0b766f6
TreeHugger Robot [Sat, 16 Feb 2019 22:35:22 +0000 (22:35 +0000)]
Merge changes I9ed87db1,Ic0b766f6

* changes:
  Make PermissionControllerManager user aware
  Check same uid for permission and app-op

5 years agoMerge "Render ImageWallpaper with OpenGL ES and apply visual effects. (Fix bug)"
Lucas Dupin [Sat, 16 Feb 2019 20:28:01 +0000 (20:28 +0000)]
Merge "Render ImageWallpaper with OpenGL ES and apply visual effects. (Fix bug)"

5 years ago[automerger skipped] Import translations. DO NOT MERGE am: 8098c5f1a8 -s ours
Bill Yi [Sat, 16 Feb 2019 20:17:50 +0000 (12:17 -0800)]
[automerger skipped] Import translations. DO NOT MERGE am: 8098c5f1a8 -s ours
am: b922ca4050 -s ours
am skip reason: subject contains skip directive

Change-Id: Ibeee73378fcd2e19e9dacf2899aef54d5532f1ea

5 years ago[automerger skipped] Import translations. DO NOT MERGE
Bill Yi [Sat, 16 Feb 2019 20:12:51 +0000 (12:12 -0800)]
[automerger skipped] Import translations. DO NOT MERGE
am: 8098c5f1a8 -s ours
am skip reason: subject contains skip directive

Change-Id: Iddfb5b9e9c9a5ab925a472adeaa01f50e313e518

5 years agoMake PermissionControllerManager user aware
Philip P. Moltmann [Fri, 8 Feb 2019 21:07:57 +0000 (13:07 -0800)]
Make PermissionControllerManager user aware

Most of the commands of PermissionControllerManager should go to the
calling user. If not - and the alternate user is running - we should
use the recommended way to talk to alternate users. This recommended way
is to create a package context for the user and call the method on this
new context.

Hence
- At a time we can have more than one RemoteService (one per user)
- Connect to the user declared in Context#getUser instead of the calling
user

Test: Called methods on work-profiles and saw alternate
PermissionController apps to be spawned.
Change-Id: I9ed87db1f658f18b69d19b39ba9f96361ec5af82

5 years agoCheck same uid for permission and app-op
Philip P. Moltmann [Fri, 8 Feb 2019 21:05:25 +0000 (13:05 -0800)]
Check same uid for permission and app-op

In permission checker we used to check the permission for the passed in
uid but the opp-op for the Binder.getCallingUid. In the case the calling
identity was cleared, PermissionChecker ended up checking the app-op of the
current process (often the system server).

Now we check the uid for both the permission and the app-op.

Test: Called PermissionChecker.checkPermission with the calling indentity
cleared.
Fixes: 124116218
Change-Id: Ic0b766f6c75bba1b9dae3e91c6adce85a76ae68f

5 years agoMerge "Import translations. DO NOT MERGE"
TreeHugger Robot [Sat, 16 Feb 2019 17:54:36 +0000 (17:54 +0000)]
Merge "Import translations. DO NOT MERGE"

5 years agoImport translations. DO NOT MERGE
Bill Yi [Sat, 16 Feb 2019 10:35:23 +0000 (02:35 -0800)]
Import translations. DO NOT MERGE

Auto-generated-cl: translation import

Bug: 64712476
Change-Id: I225416157c786e316deb115552412a72118b9122

5 years agoImport translations. DO NOT MERGE
Bill Yi [Sat, 16 Feb 2019 10:18:01 +0000 (02:18 -0800)]
Import translations. DO NOT MERGE

Change-Id: I54a95bc47e490ade66e569ce0a7223aaee78e957
Auto-generated-cl: translation import

5 years agoMerge "Game Driver: get driver build date info from Game Driver apk"
TreeHugger Robot [Sat, 16 Feb 2019 09:47:44 +0000 (09:47 +0000)]
Merge "Game Driver: get driver build date info from Game Driver apk"

5 years agoRender ImageWallpaper with OpenGL ES and apply visual effects. (Fix bug)
Ahan Wu [Mon, 14 Jan 2019 12:38:14 +0000 (20:38 +0800)]
Render ImageWallpaper with OpenGL ES and apply visual effects. (Fix bug)

We have to render image wallpaper with OpenGL ES to apply some amazing
visual effects.

Bug: 122803209
Bug: 124073420
Bug: 123616712
Bug: 123615467
Test: Manually.
Change-Id: I0123d4ba2acb5a84b709c0468910e006c8e49563

5 years agoMerge "Initial implementation of ContentCaptureService.setContentCaptureWhitelist()"
TreeHugger Robot [Sat, 16 Feb 2019 07:03:09 +0000 (07:03 +0000)]
Merge "Initial implementation of ContentCaptureService.setContentCaptureWhitelist()"

5 years agoMerge "Fix default grant running for secondary user."
TreeHugger Robot [Sat, 16 Feb 2019 05:12:11 +0000 (05:12 +0000)]
Merge "Fix default grant running for secondary user."

5 years agoMerge "Foldables: Customize folded area"
TreeHugger Robot [Sat, 16 Feb 2019 04:39:31 +0000 (04:39 +0000)]
Merge "Foldables: Customize folded area"

5 years agoInitial implementation of ContentCaptureService.setContentCaptureWhitelist()
Felipe Leme [Wed, 13 Feb 2019 23:41:55 +0000 (15:41 -0800)]
Initial implementation of ContentCaptureService.setContentCaptureWhitelist()

For now it only whitelists packages, not activities.

Test: atest CtsContentCaptureServiceTestCases

Bug: 122595322

Change-Id: I5beb9b027eb704510e68f3af15e84e14bda07eb2

5 years agoMerge "Annotated mTheme field on ContextThemeWrapper with maxTargetSdk P"
TreeHugger Robot [Sat, 16 Feb 2019 03:48:19 +0000 (03:48 +0000)]
Merge "Annotated mTheme field on ContextThemeWrapper with maxTargetSdk P"