Commit Graph

15585 Commits

Author SHA1 Message Date
Svetoslav Ganov
c260897739 Merge "Address API council feedback" into qt-dev
am: 1a5d1728af

Change-Id: Ife0cafa6a2e6eff902ce4b1439c9d002eb4ed643
2019-04-30 11:55:25 -07:00
Mady Mellor
67350795a5 Merge "Remove bubble API added & deprecated in Q" into qt-dev
am: 02d6277b95

Change-Id: Ie77a56ba27168d33aaad4af3a8749fa10fa8ed0a
2019-04-30 11:20:30 -07:00
Sudheer Shanka
5b3b80a034 Merge "Deprecate DownloadManager.allowScanningByMediaScanner/setVisibleInDownloadsUi" into qt-dev
am: 464762e5a2

Change-Id: Ibc78034434a4f9b439a1f2fc7d8cb804f18a1d8f
2019-04-30 09:37:57 -07:00
Jeff Sharkey
dc9cdc0e79 Merge "Deprecate DownloadManager.addCompletedDownload." into qt-dev
am: 0107bbb1ef

Change-Id: I4d29cfe8d981cd7e31b1f54576dfe13bf7d7bf44
2019-04-30 09:18:03 -07:00
Sudheer Shanka
2bce6a5008 Merge "Don't assume all downloaded files are under top-level Download dir." into qt-dev
am: 1c54f85d35

Change-Id: I5f635337fe1ca9e8560b40687fa36688a5e5e4cd
2019-04-30 08:46:39 -07:00
Kweku Adams
9c60ad272f Merge "Gating OutOfBoundsException on targetSdkVersion." into qt-dev
am: 8f24a0fb56

Change-Id: I3f49f2aeae973ffc07117a5aaf70aabfea239b6a
2019-04-30 05:51:09 -07:00
Kevin Chyn
25ddd06da7 Merge "Fix createConfirmDeviceCredentialIntent documentation" into qt-dev
am: 4ae9816408

Change-Id: I9ddeb39ecd7ff5222e6f121147a1b2504d2ba45b
2019-04-30 05:31:46 -07:00
Hai Zhang
ca6b2423ad Merge "Use ActivityThread.currentApplication() for application context." into qt-dev
am: 777d6a93fc

Change-Id: I350575ee7ed67fbe154e63def0129c23180f4936
2019-04-29 20:27:59 -07:00
Mady Mellor
9629b349b9 Merge "Make lifecycle events for bubble activity views report normally" into qt-dev
am: 7e36009dd0

Change-Id: I49795830a7b8bf5c35d295b04d2e05031ef7d0bb
2019-04-29 15:55:56 -07:00
Amin Shaikh
adc823e249 Merge "Improve theme application transition." into qt-dev
am: 07deba3ce1

Change-Id: Ibacd92033dcb6c111f7823fad4bd34d47093bee6
2019-04-29 15:50:05 -07:00
Chavi Weingarten
b88735ee09 Merge "Added direct call to syncInputTransactions" into qt-dev
am: 6ce572ec6c

Change-Id: I5cad28df4d1d5c689b9d5de086eefc9927b265fc
2019-04-29 12:33:28 -07:00
Svetoslav Ganov
1a5d1728af Merge "Address API council feedback" into qt-dev 2019-04-29 16:59:13 +00:00
Mady Mellor
02d6277b95 Merge "Remove bubble API added & deprecated in Q" into qt-dev 2019-04-29 16:17:15 +00:00
Svet Ganov
3b6be08c3d Address API council feedback
Make the get actions API async. Also fix a potenrial
memory leak when exchaning callbacks.

Test: atest CtsVoiceInteractionTestCases

bug:129705716

Change-Id: I91f1beb3dc7a395c6c6307ca4601fe7b7097f6e3
2019-04-28 23:01:30 -07:00
Sudheer Shanka
464762e5a2 Merge "Deprecate DownloadManager.allowScanningByMediaScanner/setVisibleInDownloadsUi" into qt-dev 2019-04-28 22:59:45 +00:00
Sudheer Shanka
5b2e695cd0 Deprecate DownloadManager.allowScanningByMediaScanner/setVisibleInDownloadsUi
Bug: 131483165
Test: n/a
Change-Id: I8e7f9c29d9bb323a7c0849e9ae4a87d0e74b16ab
2019-04-28 10:15:26 -07:00
Jeff Sharkey
0107bbb1ef Merge "Deprecate DownloadManager.addCompletedDownload." into qt-dev 2019-04-28 17:03:27 +00:00
Sudheer Shanka
0b70c2a1b4 Deprecate DownloadManager.addCompletedDownload.
Bug: 131483165
Test: n/a
Change-Id: Ie7df900e4cd79dcb4578f1f86fc44ca69356fd7b
2019-04-27 20:12:42 -07:00
Sudheer Shanka
c422917696 Don't assume all downloaded files are under top-level Download dir.
Apps could have downloaded files into their own package-owned paths
and those targeting P or lower, anywhere.

Fixes: 128320098
Test: manual
Test: atest DownloadProviderTests
Test: atest cts/tests/app/src/android/app/cts/DownloadManagerTest.java
Change-Id: I28d9f9b8017b66095fb1abeb9a389a18770989a4
2019-04-27 17:18:19 +00:00
Kweku Adams
8f24a0fb56 Merge "Gating OutOfBoundsException on targetSdkVersion." into qt-dev 2019-04-27 01:17:00 +00:00
Kevin Chyn
4ae9816408 Merge "Fix createConfirmDeviceCredentialIntent documentation" into qt-dev 2019-04-27 00:40:32 +00:00
TreeHugger Robot
777d6a93fc Merge "Use ActivityThread.currentApplication() for application context." into qt-dev 2019-04-26 21:06:21 +00:00
Mady Mellor
eae986e474 Remove bubble API added & deprecated in Q
Test: treehugger
Bug: 131428392
Change-Id: I272c830ab1f63e8de8ef6b03d74d7d60fad2388c
2019-04-26 14:00:20 -07:00
Kevin Chyn
45d0ceb8b1 Fix createConfirmDeviceCredentialIntent documentation
Test: make -j56 docs
Test: checked out/target/common/docs/offline-sdk/reference/android/app/KeyguardManager.html

Fixes: 131419117
Change-Id: I8c9254a591677ccf2453bff7d517a641da2b0f32
2019-04-26 20:30:39 +00:00
Kweku Adams
4be0b1acaf Gating OutOfBoundsException on targetSdkVersion.
Apps targeting Pie or older will get the old undefined behavior. Apps
targeting Q or newer will get the OutOfBoundsException.

Bug: 118339123
Test: atest CtsUtilTestCases
Change-Id: Ibf5467aadec4a2f76ee180e963afeaf5a8a013a2
2019-04-26 12:22:16 -07:00
Hai Zhang
91858b0aac Use ActivityThread.currentApplication() for application context.
Context.getApplicationContext() might return null if the context is
created with Context.createPackageContextAsUser(), as the application
instance for that context won't be created. In this case we can use
ActivityThread.currentApplication() directly, which does the same
thing as if the context wasn't created for a specific package or user.
We are only using this application context to bind to other services
so it will work fine.

Bug: 131356152
Test: presubmit
Change-Id: Iee1ac9aa088d452dc58dd7f19edc58a3e0b791a6
2019-04-26 15:09:10 +08:00
Sunny Goyal
70db79ab0f Adding API for defining and invoking DirectActions
DirectActions are abstract actions defined by an Activtiy. The
actual definition of these actions will be available through
the support lib.

This API provides a secure channel for system or assistant to
interact with a running app using these Actions.

Test: atest CtsVoiceInteractionTestCases
Test: added android.voiceinteraction.cts.DirectActionsTest

Bug: 129705716

Exempt-From-Owner-Approval: Resolving merge conflict

Change-Id: I0ce568e0d8f41e0fe46306052016a74c7b394efa
(cherry picked from commit d40c345536)
2019-04-26 00:39:53 +00:00
Mady Mellor
7e36009dd0 Merge "Make lifecycle events for bubble activity views report normally" into qt-dev 2019-04-25 20:19:30 +00:00
Amin Shaikh
96e60d7b5e Improve theme application transition.
- Remove duplicate app info changed / activity relaunch messages caused by
applying several overlay packages sequentially; this eliminated the
double launcher activity restart
- Asynchronously enable each overlay from SystemUI; this increases the
speed of enabling overlays, thus decreasing the effect of the frozen
activity transition

Fixes: 130151718
Test: make; change themes many times
Change-Id: Idcf04edc88cb9391b9920b9e1f9f873a5b62b311
2019-04-25 16:55:43 +00:00
Chavi Weingarten
6ce572ec6c Merge "Added direct call to syncInputTransactions" into qt-dev 2019-04-25 16:27:37 +00:00
Sunny Goyal
d40c345536 [DO NOT MERGE] Adding API for defining and invoking DirectActions
DirectActions are abstract actions defined by an Activtiy. The
actual definition of these actions will be available through
the support lib.

This API provides a secure channel for system or assistant to
interact with a running app using these Actions.

Test: atest CtsVoiceInteractionTestCases
Test: added android.voiceinteraction.cts.DirectActionsTest

Bug: 129705716

Change-Id: I0ce568e0d8f41e0fe46306052016a74c7b394efa
2019-04-25 00:06:02 -07:00
Sudheer Shanka
d5099b1df5 Fix QT build breakage.
am: ebcf054b48

Change-Id: I02eb972b91df8e87403b308968dcd96fa4bf9fe7
2019-04-24 21:12:23 -07:00
Sudheer Shanka
0fe94f264a Merge "Update behavior of some DownloadManager APIs." into qt-dev
am: cbfe50d70c

Change-Id: Ib6f9296dd94bdeae9a470a769e4505aa8b6df5b0
2019-04-24 20:40:19 -07:00
Sudheer Shanka
ebcf054b48 Fix QT build breakage.
Test: builds
Change-Id: Iff6f516d68659a9b81009f82b6e1874089daa592
2019-04-24 18:41:15 -07:00
Sudheer Shanka
cbfe50d70c Merge "Update behavior of some DownloadManager APIs." into qt-dev 2019-04-25 00:51:59 +00:00
Leland Miller
f519e316d8 Merge "Use injected instance of RcsControllerCall" am: f545515ee6
am: 3e2e2d66ce

Change-Id: I0197d4e533b27e17e8d76c13b08b6dfa6db54ba3
2019-04-24 17:25:04 -07:00
Leland Miller
3e2e2d66ce Merge "Use injected instance of RcsControllerCall"
am: f545515ee6

Change-Id: Id364fe89943027eb1ec9f60b7457126ff8945b16
2019-04-24 17:15:18 -07:00
chaviw
84dec9f7c6 Added direct call to syncInputTransactions
Previously, there was only a way to inject input after syncing inputs.
However, some tests require a direct call to sync inputs since we need
to ensure the info was propagated to InputManager native before
continuing with the test. This exposes a method just to
syncInputTransactions.

Bug: 130695122
Test: ActivityLifecycleTopResumedStateTests
Test: MultiDisplayPolicyTests
Change-Id: Ie3115741a20d04c743fd854ac421dc3705332488
2019-04-24 17:01:31 -07:00
Treehugger Robot
f545515ee6 Merge "Use injected instance of RcsControllerCall" 2019-04-24 23:48:40 +00:00
Mady Mellor
60101c9f29 Make lifecycle events for bubble activity views report normally
There are some extra onPause / onResume events in ActivityView due to
SysUI calling startActivity in onActivityViewReady which happens a bit
before the display being turned on.

This CL posts the startActivity call which is enough to avoid the extra
lifecycle events.

This CL also adds new method on ActivityView to startActivity with your own
ActivityOptions (because posting causes activity transition to occur...)

Test: manual - have Bubbles test APK
             - create a new bubble
             - adb logcat | grep "BubbleActivity"
             - observe the logging to make sure lifecycle events behave
               normally
Bug: 130363466
Change-Id: Ia44d6033e5cff625222006632b7bdc4dc1e59e81
2019-04-24 10:21:34 -07:00
Sudheer Shanka
25f1c6ebeb Update behavior of some DownloadManager APIs.
-- Update behavior of DownloadManager.setDestinationUri(),
   DownloadManager.setDestinationInExternalPublicDir() and
   DownloadManager.addCompletedDownload() based on the latest
   storage re-design. Essentially, going forward these APIs
   will only allow downloading files into package owned dirs
   or the top-level Download dir.
-- Allow some system components to specify
   MediaColumns.OWNER_PACKAGE_NAME when inserting items into
   MediaProvider.
-- Don't copy DownloadManager.COLUMN_TITLE to MediaProvider.
   DownloadProvider and MediaProvider have different constraints
   around "title" and there isn't really a need to keep these
   in sync.
-- Sanity check file download paths hinted by apps.
-- Remove sandbox related logic in DownloadProvider.

Bug: 120879208
Bug: 128630262
Bug: 130797842

Test: manual
Test: atest DownloadProviderTests
Test: atest cts/tests/app/src/android/app/cts/DownloadManagerTest.java
Test: atest cts/tests/app/DownloadManagerLegacyTest/src/android/app/cts/DownloadManagerLegacyTest.java
Test: atest cts/tests/app/DownloadManagerApi28Test/src/android/app/cts/DownloadManagerApi28Test.java
Test: atest cts/tests/tests/provider/src/android/provider/cts/MediaStore*

Change-Id: If48bc9ecf9ed94412c6c62ce4e5e6a55fff9b789
2019-04-23 18:55:51 -07:00
Felipe Leme
2d137edf28 Merge "Fixed content capture whitelist for specific activities." into qt-dev
am: 845d5ee587

Change-Id: I7b4817d097067667e518ad8e58bd2ed5f17c2b8d
2019-04-22 16:24:14 -07:00
TreeHugger Robot
845d5ee587 Merge "Fixed content capture whitelist for specific activities." into qt-dev 2019-04-22 22:34:09 +00:00
GyeHun Jeon
9f74f30165 Merge "[wm] Fix smallestScreenWidthDp configuration on non default display (1/2)" into qt-dev
am: 604e253c9e

Change-Id: Ib5a6b65475f432266942c0389a491d28d6548828
2019-04-22 12:41:04 -07:00
TreeHugger Robot
604e253c9e Merge "[wm] Fix smallestScreenWidthDp configuration on non default display (1/2)" into qt-dev 2019-04-22 18:46:26 +00:00
GyeHun Jeon
61cac3a333 [wm] Fix smallestScreenWidthDp configuration on non default display (1/2)
smallestScreenWidthDp configuration should be set to smallest possible size.
This could cause unexpected resources to be loaded based on the incorrect configuration. So it
should be set as minimum size of screenWidthDp and screenHeightDp to account for rotation.

Test: reproduce test steps in bug
Test: atest CtsWindowManagerDeviceTestCases:DisplayTests
Bug: 129521230
Change-Id: I07403294e8fe6e6ad7aa718c8a5948aff4fafae1
(cherry picked from commit 7671d7042d60944813f36a03b74199c5a3d737ad)
2019-04-22 08:32:45 -07:00
Winson Chiu
23f2e29296 Merge changes I689ec523,Id249a185 into qt-dev
am: a99ff5fa9a

Change-Id: I145f037ca76ea32802e435bd61df4a2921ca7dcf
2019-04-22 08:02:26 -07:00
Winson Chiu
a99ff5fa9a Merge changes I689ec523,Id249a185 into qt-dev
* changes:
  Delayed install completion
  Defer post-install resource clean up for 5 seconds
2019-04-22 14:35:50 +00:00
Felipe Leme
cbf7f26baa Fixed content capture whitelist for specific activities.
Test: manual verification (it cannot be fully verified using the current CTS setup)
Test: atest CtsContentCaptureServiceTestCases:android.contentcaptureservice.cts.WhitelistTest
Test: atest FrameworksCoreTests:android.content.ContentCaptureOptionsTest
Test: atest CtsContentCaptureServiceTestCases # sanity check
Test: m update-api

Fixes: 130573023
Merged-In: I2c76a01bd98c4154c4c59099f1368232d2dba80d
Change-Id: I2c76a01bd98c4154c4c59099f1368232d2dba80d
2019-04-19 20:25:45 -07:00
Felipe Leme
aeb4ddaa07 Merge "DO NOT MERGE - Updated some javadocs." into qt-dev
am: 2cccdd6b84

Change-Id: I0fbdf2a3a8aae8fa12424f97bef6bbcebd895a07
2019-04-19 18:36:07 -07:00