Commit Graph

15274 Commits

Author SHA1 Message Date
Narayan Kamath
3f95d3bc24 Merge "Require a foreground service of a specific type to start media projection." 2019-03-20 10:18:05 +00:00
Nadav Bar
66a2bdb3a5 Merge "Grant record audio permission to SystemCaptionsService instead of ContentCaptureService" 2019-03-20 08:00:52 +00:00
Brad Stenning
fbc4c76b24 Merge "Updates isKeyguardSecure to take in a user id." 2019-03-19 18:52:00 +00:00
TreeHugger Robot
90088bb8d1 Merge "No need for getProfileOwnerForUser as SystemApi" 2019-03-19 17:35:11 +00:00
TreeHugger Robot
6d15a88107 Merge "Add Nullability annotations for Notification.Action.Builder methods." 2019-03-19 16:57:42 +00:00
Kiyoung Kim
5636c3f3ca Merge "Mark product apks as unbundled" am: 856ef55672 am: 716111d81c
am: e1e02641af

Change-Id: I2b8497140c4ba063a09617ee866c89459fe8918a
2019-03-19 07:44:54 -07:00
TreeHugger Robot
0a96038c85 Merge changes I7bf9bde4,I8d655d1c,Ibc59aa36
* changes:
  Adds class and method documentation in all app prediction classes
  Link Intent.EXTRA_SHORTCUT_ID to ACTION_SEND Intent
  Change ShortcutInfo.Builder.setLongLived to take a boolean
2019-03-19 14:22:28 +00:00
Kiyoung Kim
716111d81c Merge "Mark product apks as unbundled"
am: 856ef55672

Change-Id: I9d4d7cf2ae8e47c8aaed82d0d47861cd7d787067
2019-03-19 07:17:53 -07:00
Treehugger Robot
856ef55672 Merge "Mark product apks as unbundled" 2019-03-19 14:02:59 +00:00
Xiao Ma
2ce206c82d Merge "Move the IpMemoryStore to the network stack." am: 93bf5ef495 am: 5db1518bfa
am: 3176d57308

Change-Id: I243056012d2f099d96a33657c0eb63a5b66a2cfe
2019-03-19 06:54:43 -07:00
Xiao Ma
5db1518bfa Merge "Move the IpMemoryStore to the network stack."
am: 93bf5ef495

Change-Id: I672d07ca2d0a251c246993ab8c7c3075de385570
2019-03-19 06:35:31 -07:00
Xiao Ma
93bf5ef495 Merge "Move the IpMemoryStore to the network stack." 2019-03-19 13:21:12 +00:00
Lorenzo Colitti
03f50c1aa5 Merge "Address API review comments for VPN changes." am: bbfee2b427 am: 071c17e277
am: ea7b1b7bb9

Change-Id: I0cc600177432f11c7d7dab39478336ed9b7409d7
2019-03-18 20:23:30 -07:00
Lorenzo Colitti
071c17e277 Merge "Address API review comments for VPN changes."
am: bbfee2b427

Change-Id: I79d035244faeef373751e256f49075d1f2a10faf
2019-03-18 19:34:28 -07:00
TreeHugger Robot
6d1b312c33 Merge "Revert "Allow transitioning through lifecycle when finished"" 2019-03-19 00:07:25 +00:00
Andrii Kulian
0f3356c7ce Revert "Allow transitioning through lifecycle when finished"
This reverts commit f2d598e168.

Reason for revert: b/128819045, b/128808377, b/128812576

Change-Id: Iafa2bb14dbb77be32e576de92dc1378a1bd96a6f
2019-03-18 21:34:40 +00:00
TreeHugger Robot
2de33b0f4b Merge "Don't schedule jobs in 'bad' apps" 2019-03-18 20:48:11 +00:00
Philip P. Moltmann
477666d963 No need for getProfileOwnerForUser as SystemApi
Rather use
context.createPackageContextAsUser(context.getPackageName(), 0, user)
        .getSystemService(DevicePolicyManager.class).getProfileOwner();

Test: Looked at permission restricted by device owner in UI
Fixes: 126699845
Change-Id: I3dc16fbe360aaeb416c526cacf5f55ce2c3a1b20
2019-03-18 18:43:40 +00:00
TreeHugger Robot
47119cf977 Merge "Use context user for canNotifyAsPackage" 2019-03-18 17:57:47 +00:00
Pavel Grafov
50d17cfa07 Address API review comments for VPN changes.
Whitelist is now a Set rather than a list + javadoc improvement.

Bug: 124882903
Bug: 125346147
Test: atest MixedDeviceOwnerTest#testAlwaysOnVpn
Test: atest MixedDeviceOwnerTest#testAlwaysOnVpnAcrossReboot
Change-Id: Ieecaad083f2ab55de33587e6ce767f5f961683c9
2019-03-18 17:05:55 +00:00
Gustav Sennton
e1fc87b512 Add Nullability annotations for Notification.Action.Builder methods.
Bug: 128704087
Test: make
Change-Id: Id69837cde581297cc9e1e449f00d492b067bf771
2019-03-18 16:58:01 +00:00
Julia Reynolds
7a6d07ae0d Use context user for canNotifyAsPackage
Test: atest
Fixes: 128748189
Change-Id: I464364ec0b6bb21b2a4d72a70470ca29ec47cfe1
2019-03-18 11:34:56 -04:00
Ruslan Tkhakokhov
d016641531 Merge changes from topic "api-review-restore-packages"
* changes:
  API Review: Internal RestoreSession#restorePackages
  API Review: RestoreSession#restoreSomePackages
2019-03-18 15:10:04 +00:00
Ruslan Tkhakokhov
507e6f834d API Review: Internal RestoreSession#restorePackages
Bug: 120843781
Test: 1) atest RunBackupFrameworksServicesRoboTests
      2) atest CtsBackupTestCases
      3) atest CtsBackupHostTestCases
      4) atest GtsBackupTestCases
      5) atest GtsBackupHostTestCases

Change-Id: Ice42aedd702e1c16b074d7a00d7b15d8f4aaf733
2019-03-18 12:26:02 +00:00
Gustav Sennton
df4c244c8a Fix curly brackets in Notification.java
Test: N/A

Change-Id: I3c46a8d4b0e68e3ca2859529fa93aa36c2c56b28
2019-03-18 11:45:47 +00:00
Ruslan Tkhakokhov
25f0e81671 API Review: RestoreSession#restoreSomePackages
1. Rename restoreSome to restorePackages
2. Add @Nullable annotation for BackupObserver, BackupManagerMonitor and @NonNull for 'packages' params
3. Update javadoc to reflect the difference between BackupObserver and BackupManagerMonitor
4. Change 'packages' param from String[] to Set

Bug: 120843781
Test: 1) atest RunBackupFrameworksServicesRoboTests
      2) atest CtsBackupTestCases
      3) atest CtsBackupHostTestCases
      4) atest GtsBackupTestCases
      5) atest GtsBackupHostTestCases

Change-Id: I433739c0b1e62059b10593c233dfb2f461a8630e
2019-03-18 11:27:51 +00:00
Chalard Jean
952135122d Move the IpMemoryStore to the network stack.
Test: atest FrameworksNetTests
Change-Id: Ic5bd6ff54b09a6fa92b6863f240a5b053011acb6
2019-03-18 11:33:17 +09:00
Nadav Bar
1a1f5a2118 Grant record audio permission to SystemCaptionsService instead of ContentCaptureService
Now that we have a definition for a SystemCaptionsService we should move to use it instead
of piggybacking on ContentCaptureService.
This is also required to ensure that T2C will be granted audio recording permission in case it will
be shipped in a different APK for OEMs.

Test: Manual and DefaultPermissionGrantPolicyTest.
Bug: 128622041.
Change-Id: Ic0b5b21b05ff1ad200472bfc1c4eaa3c588324df
2019-03-17 15:11:22 +00:00
TreeHugger Robot
b3e900902a Merge "Allow transitioning through lifecycle when finished" 2019-03-17 01:02:11 +00:00
Winson Chung
abd068245c Merge "Add mechanism for freezing the system recent task list" 2019-03-16 17:37:38 +00:00
TreeHugger Robot
74a57744b2 Merge "Fix AppOps API review bugs." 2019-03-16 07:27:16 +00:00
TreeHugger Robot
9fc8e51f4b Merge "Removed "forUser" variants in NotificationManager" 2019-03-16 06:12:26 +00:00
TreeHugger Robot
054834f145 Merge "Remove the @remove from the deprecated registerUsageSessionObserver" 2019-03-16 02:31:25 +00:00
Christopher Tate
8e73785780 Don't schedule jobs in 'bad' apps
When an app has been temporarily marked 'bad' because it's been
crashing, binding to its services will appear to succeed but not
actually begin execution.  This led to spurious timeouts when jobs were
scheduled in this state.

Fix by incorporating a 'bad' state check into the job runnability
determination.

Fixes: 125505588
Test: atest CtsJobSchedulerTestCases
Test: manual (repeatedly crashing app then running jobs)
Change-Id: I04003265086d74517e7838f1d1332cc4d3ef483c
2019-03-15 15:03:13 -07:00
Michael Wachenschwanz
1e69304100 Remove the @remove from the deprecated registerUsageSessionObserver
Bug: 128631157
Test: none
Change-Id: I3944ffda1f43729d4f6eaab9515079c4e09688a1
2019-03-15 14:19:56 -07:00
Benedict Wong
016ac0a953 Merge "Integrate testNetworkService and Manager with Connectivity stack"
am: b86c3255fd

Change-Id: I571e583d896841c814efe58b8c0875fa9cd3873c
2019-03-15 10:50:06 -07:00
Benedict Wong
b86c3255fd Merge "Integrate testNetworkService and Manager with Connectivity stack" 2019-03-15 17:41:02 +00:00
Winson Chung
c5fe7ffba7 Add mechanism for freezing the system recent task list
- In order to support swiping between tasks in a stable list, this allows
  SystemUI to temporarily freeze the task list ordering until either an
  interaction within the current app, or some timeout occurs.

  This does not affect the actual task ordering, only the ordering of the
  tasks via the call to getRecentTasks() made from SystemUI.

Bug: 111926330
Test: atest WmTests:RecentTasksTest

Change-Id: I9ebda02e4e0d34fd2211cfbbed9f7b0ec35f86cc
2019-03-15 09:53:47 -07:00
Zak Cohen
bc996c3cd1 Merge "ContentSuggestionsManager - API updates." 2019-03-15 16:09:39 +00:00
Rubin Xu
2665fc079f Merge "Add metric logging for new delegated APIs" 2019-03-15 15:55:59 +00:00
Fabian Kozynski
cbfbb1d9cf Removed "forUser" variants in NotificationManager
Removed the variants for NotificationAssistant

Test: NotificationManagerTest passing
Fixes: 126701384
Change-Id: Ic19ab009354a74182ad0557f33c251ea26f3244b
2019-03-15 09:51:39 -04:00
Ricky Wai
ea5c64806d Merge "Change get/setAppDetailsActivityEnabled to get/setSyntheticAppDetailsActivityEnabled" 2019-03-15 12:31:06 +00:00
TreeHugger Robot
92512d5f18 Merge "Adds nullability annotation and java docs to App Prediction APIs" 2019-03-15 01:49:11 +00:00
Hyunyoung Song
0eb76cc3af Merge "ApplicationPackageManager should fetch Resource from non system context" 2019-03-14 23:38:51 +00:00
Rubin Xu
8b17ad02b7 Add metric logging for new delegated APIs
Add metric logging to:
 * Delegated cert selection
 * Delegated network logging access
 * Delegated silent package installation and removal

Bug: 122639711
Test: manual
Change-Id: I0655b742937b6413bc5c10474e4fd4559a8eaf92
2019-03-14 22:12:23 +00:00
Zak Cohen
4834e9f02c ContentSuggestionsManager - API updates.
Adds isEnabled for the manager.
Manager also requires a user for construction, this is the user for
query for suggestions, not the calling user.

Bug: 125912329
Test: compile and CTS

Change-Id: I07145681fdf792965fee868b65f31d2978df7599
2019-03-14 14:44:56 -07:00
Issei Suzuki
97056bbb37 Merge "Acivity to rethrow an exception from AMS." 2019-03-14 20:55:46 +00:00
Issei Suzuki
ae7b4937bc Acivity to rethrow an exception from AMS.
Bug: 128414194
Test: Check if existing tests pass. Should be no-op for normal cases.
Change-Id: Ib9428c34fba8315d5208fa9427e095066aeff4fa
2019-03-14 13:41:13 -07:00
Hyunyoung Song
013f062d02 ApplicationPackageManager should fetch Resource from non system context
Test: builds and manually verified on device
Test: change theme inside ThemePicker and default icon color changes

Bug: 128445995
Bug: 128447895

Change-Id: I184534c9ecea52fa381ffa6cd1e9ba53134766ca
2019-03-14 13:27:34 -07:00
Narayan Kamath
396ce7296b Require a foreground service of a specific type to start media projection.
The flow for apps targeting Q is :
- We check at the point of starting a projection whether the UID making
  the request has a foreground service active with the type
  FOREGROUND_SERVICE_TYPE_MEDIA_PROJECTION
- The MediaProjectionManager registers a Process change observer to be
  notified whenever the list of f/g service types associated with the
  UID changes, and may stop the projection

Bug: 124753835
Test: Manual; CTS test in progress.
Change-Id: Iedcb9e944f5a7e2e59ba3b9831cdff619776e9e2
2019-03-14 15:13:09 +00:00