Commit Graph

15264 Commits

Author SHA1 Message Date
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
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
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
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
TreeHugger Robot
4719ffe555 Merge "DPM API review: Remove "ForUser" method" 2019-03-14 13:34:52 +00:00
Eran Messeri
48085ae1f9 Merge "API Review: Private DNS host can be null" 2019-03-14 12:29:09 +00:00
TreeHugger Robot
e570a42083 Merge "Don't tie getPasswordComplexity to secure lock screen." 2019-03-14 10:16:25 +00:00
Eran Messeri
be84edb9ab API Review: Private DNS host can be null
Mark getGlobalPrivateDnsHost as @Nullable since it can return null
(in the case of a host not set).

Bug: 126699845
Test: That it builds
Change-Id: I4680a8fa59815f62a74c14c149124d4cda567cca
2019-03-14 10:05:37 +00:00
Eran Messeri
518a01a26a DPM API review: Remove "ForUser" method
Replace the setProfileOwnerCanAccessDeviceIdsForUser with
setProfileOwnerCanAccessDeviceIds that takes the DPM's user ID.

Per automated API review, new methods that target a specific user (by
taking in a UserHandle) are discouraged.

Instead, the caller should get the user-specific service from the user
context.

Bug: 126700461
Bug: 126699845
Test: Manually, flashed a device and set-up TestDPC on it straight to
work profile, then verified it can do Device ID attestation.
Test: atest FrameworksServicesTests:DevicePolicyManagerTest

Change-Id: I13f20f4a434394f266a3dc2373152cb1b9ea2d2b
2019-03-14 09:38:21 +00:00
Mehdi Alizadeh
2f4b64ae20 Adds class and method documentation in all app prediction classes
Test: None
Bug: 126179623
Bug: 126179640
Bug: 126180079
Bug: 126179807
Bug: 126180060
Change-Id: I7bf9bde4ccd8cca645d66433504045683fc55444
2019-03-13 23:23:42 -07:00
Kiyoung Kim
dd6861e6ff Mark product apks as unbundled
Similar to Vendor apks, we need to mark product apks as unbundled if it
does not have /product/lib in default search paths. This will enable
native loader's logic to add (/system)/product/lib in search path for
product apk.

Bug: 124705551
Test: m -j & Tested from crosshatch
Change-Id: Ib0ac4bbc1c60ca75288cac81f6b93bb8b36521ef
2019-03-14 11:17:56 +09:00
Andrii Kulian
f2d598e168 Allow transitioning through lifecycle when finished
When finish was requested for an activity, certain
lifecycle transitions were blocked to avoid delivering
invalid callbacks in the past. The checks and early
returns that were left from the old way of resolving
lifecycle cancelled delivering STARTED, RESUMED and
PAUSED state if an activity called finish().
This is no longer required with Lifecycler infrastructure
that takes care of ensuring validity of all transition
sequences.

Bug: 127106719
Bug: 126693030
Test: ActivityLifecycleTests#testFinishInOn*
Change-Id: I5ed006f1846e54589f33da0cab3b6f3bf9ca5a61
2019-03-13 22:28:45 +00:00
Mehdi Alizadeh
387c7cb14a Adds nullability annotation and java docs to App Prediction APIs
Also rethrows RemoteExceptions in AppPredictor class.

Test: Builds successfully
Bug: 126701214
Bug: 126699210
Bug: 126701563
Bug: 126180215
Bug: 126701789
Bug: 126701213
Bug: 126178969
Bug: 126179771
Bug: 126700116
Bug: 126180255

Change-Id: I3c76a71abbb8fdc9cadfaa4c6289ded4de379bd8
2019-03-13 14:28:29 -07:00