Commit Graph

471920 Commits

Author SHA1 Message Date
Sudheer Shanka
e75dcfbdfd Promote getLeasedBlobs() to be a public API.
This would allow apps to know which blobs they currently
hold a lease on and release any if they are running out
of lease quota.

Bug: 152219149
Test: atest --test-mapping apex/blobstore
Change-Id: I0141cfcd7cdbb83dbc75be11463ab90ee3c3f7cc
2020-03-24 00:22:59 -07:00
Svetoslav Ganov
09b9570862 Merge "Add APIs to move suggestions below/above window" into rvc-dev 2020-03-23 19:10:03 +00:00
Xiangyu/Malcolm Chen
abdeaee816 Merge "Remove framework-telephony as it's not used in R." into rvc-dev 2020-03-23 18:47:56 +00:00
TreeHugger Robot
e9dc45f6cc Merge "Fixes majority of PackageManagerTests" into rvc-dev 2020-03-23 18:46:19 +00:00
Anton Hansson
b943b6a183 Merge "Create stub and add api tracking for service-permission" into rvc-dev 2020-03-23 18:41:22 +00:00
Andrii Kulian
87a59b2dfb Merge "Revert "Don't override activity display adjustments with app config"" into rvc-dev 2020-03-23 18:24:10 +00:00
Taran Singh
aae2f6f307 Merge "Always update IME control target" into rvc-dev 2020-03-23 18:21:31 +00:00
TreeHugger Robot
f1d96d48f6 Merge "ShellSubscriber: Avoid rollover bug" into rvc-dev 2020-03-23 17:42:43 +00:00
TreeHugger Robot
98bc8e9c71 Merge "Ensure broadcasts are sent as system" into rvc-dev 2020-03-23 17:35:53 +00:00
Antoan Angelov
8c6b17b1ad Merge "Center the work tab empty state spinner inside the empty state view." into rvc-dev 2020-03-23 16:56:51 +00:00
TreeHugger Robot
afcd0d2be6 Merge "Import translations. DO NOT MERGE" into rvc-dev 2020-03-23 16:56:07 +00:00
Anton Hansson
4299ac20c9 Merge "Add default configs for module service stubs" into rvc-dev 2020-03-23 16:54:05 +00:00
Bill Yi
5562d464c6 [automerger skipped] Import translations. DO NOT MERGE am: 7c64b0da0d -s ours
am skip reason: subject contains skip directive

Change-Id: Ib26161178030a9c6adf5370514fd1ca87f85f298
2020-03-23 16:23:11 +00:00
Greg Kaiser
f0f1d83624 ShellSubscriber: Avoid rollover bug
We initialize 'mToken' instead of leaving it uninitialized, making
it much less likely to rollover.  In additional, we change our
check to inequality, to handle rollover if that were to happen.

There is the (theoretical) possibility of exactly 2^32 other
requests being claimed between our claim and our check.  It's
assumed that is essentially impossible and not a concern.

Test: TreeHugger
Bug: 150619687
Change-Id: Iee303e05082a6b3b31ed546bd62d3afe67c771d8
2020-03-23 16:09:57 +00:00
TreeHugger Robot
e39a7b6a80 Merge "Don't notify about explicit personal app suspension." into rvc-dev 2020-03-23 15:29:31 +00:00
Anton Hansson
1db3316876 Create stub and add api tracking for service-permission
Bug: 147768409
Test: m
Change-Id: I824497fe4d3c3dc7bcd63bf1a2b0a2b0bd9172f1
2020-03-23 15:08:44 +00:00
Anton Hansson
180ec39abe Add default configs for module service stubs
To be used by individual modules with service components that
define system_server APIs.

Bug: 147768409
Test: m
Change-Id: Iff6a5a840c5dd7731e881d7db379915375d02324
2020-03-23 15:08:04 +00:00
Anton Hansson
d83682eab3 Merge "Move statsd TEST_MAPPINGS to statsd root" into rvc-dev 2020-03-23 15:05:06 +00:00
Ben Murdoch
801f12923d Merge "Move config_useKeyguardUserSwitcher from sysui overlay to framework." into rvc-dev 2020-03-23 14:58:01 +00:00
Wei Sheng Shih
4346998c88 Merge "Surface should not be created for WindowContext initially." into rvc-dev 2020-03-23 14:44:38 +00:00
Abhijeet Kaur
78ef10aa72 Merge "Clean up code in BugreportProgressService" into rvc-dev 2020-03-23 14:18:44 +00:00
Wale Ogunwale
f09fdecd55 Merge "Move some window related files to android.window package" into rvc-dev 2020-03-23 13:48:30 +00:00
Pavel Grafov
64d1fc040b Don't notify about explicit personal app suspension.
Notification about personal apps suspension should only be shown
in cases when apps are suspended because of maximum work profile
time off policy violation, not via an explicit call to suspend.

+ updated strings. Note, some strings are not used yet.

Test: manual, with TestDPC, suspended apps explicitly, checked
    that the notification is not shown.
Test: manual, with TestDPC, set maximum work profile time off,
    adjusted the clock, checked that the notification is there.`
Bug: 151918490
Bug: 149076989
Change-Id: Idd4c7ec11af416c303c9218495d55c73154c7a5f
2020-03-23 13:35:22 +00:00
Julia Reynolds
5a158970fd Ensure broadcasts are sent as system
Test: android.app.cts.NotificationManagerTest
Fixes: 151801709
Change-Id: I7376f7b5cc4e73904c805a6baa26ab01163b70bf
2020-03-23 09:24:20 -04:00
TreeHugger Robot
5bd455ac5f Merge "Enable the feature flag for contextual home v2" into rvc-dev 2020-03-23 11:27:30 +00:00
Anton Hansson
8f36aba1fb Merge "Build tethering against the module SDK" into rvc-dev 2020-03-23 10:27:31 +00:00
Aaron Huang
9f48409dd1 Merge "Remove Context.NETWORK_POLICY_SERVICE from @SystemApi" into rvc-dev 2020-03-23 10:09:37 +00:00
TreeHugger Robot
672fe2aeb3 Merge "Update MediaRouter2Manager api" into rvc-dev 2020-03-23 09:45:39 +00:00
Jason Chiu
8234820115 Enable the feature flag for contextual home v2
Bug: 149274976
Test: rebuild
Change-Id: Id3af8c6cae731222236a510a10cbeb9937004862
2020-03-23 17:20:56 +08:00
Robert Horvath
0a9aff3ac3 Merge "Deflake InattentiveSleep tests" into rvc-dev 2020-03-23 09:05:46 +00:00
Bill Yi
7c64b0da0d Import translations. DO NOT MERGE
Auto-generated-cl: translation import
Change-Id: I9243db0d0090c7d2da373cc97b7b820cf23e5a7f
2020-03-23 00:44:11 -07:00
Aaron Huang
cd44942a14 Remove Context.NETWORK_POLICY_SERVICE from @SystemApi
Hide Context.NETWORK_POLICY_SERVICE as it has no usage.

Bug: 151266974
Test: make checkapi, build
Change-Id: I0586a5ef22f76fa1407219b96cb246f162f02947
2020-03-23 15:15:40 +08:00
TreeHugger Robot
9c02d0360e Merge "Address API council review comment about TetheringRequest" into rvc-dev 2020-03-23 06:05:30 +00:00
Bill Yi
63d3ad3f89 Import translations. DO NOT MERGE
Auto-generated-cl: translation import
Change-Id: I1c288bdfdb561eca168a44c2cf421b2035e93acd
2020-03-22 22:22:34 -07:00
Riddle Hsu
d5763c4c1d Merge "Use task bounds as local animation frame in fixed rotation" into rvc-dev 2020-03-23 04:40:50 +00:00
junyulai
25d643991f Address API council review comment about TetheringRequest
Test: atest TetheringTests FrameworksNetTests NetworkStackTests
Bug: 152055812
Change-Id: I0158d88e364772f9ac258bd18955edcdad266ad8
2020-03-23 12:13:57 +08:00
wilsonshih
07cb272a50 Surface should not be created for WindowContext initially.
Client may create a WindowContext, but without adding a window using
the corresponding WindowToken, initially creating a surface for the
token is very wasteful.
To avoid this, we should only create surfaces when the client is
needed.

Bug: 150813033
Test: atest WindowTokenTests
Test: No system crash when running FocusHandlingTest.
Change-Id: I0def6a436ad9d60948bfb029b3a7b6b44466d068
2020-03-23 09:38:47 +08:00
Remi NGUYEN VAN
1f0355a1cd Merge "Fix javadoc for Context.TETHERING_SERVICE" into rvc-dev 2020-03-23 01:20:13 +00:00
TreeHugger Robot
5c36c9551b Merge "Using EventLog for user switching events" into rvc-dev 2020-03-22 22:42:18 +00:00
Artur Satayev
cf840b4a65 Merge "Export annotation processor via unsupportedappusage lib." into rvc-dev 2020-03-22 19:47:22 +00:00
bsears
558f025f4d Revert "Don't override activity display adjustments with app config"
Revert "Verify reported display sizes in multi-window"

Revert submission 10636794-app_config_updates_adjustments-rvc-dev

Reason for revert: See b/151903752#comment29.  This CL was identified (via bisection) as the CL that is breaking Android Auto.
Reverted Changes:
Ib3ee007bc:Don't override activity display adjustments with a...
I5ba4dd354:Verify reported display sizes in multi-window

Bug: 151903752

Change-Id: I845ed4871637d6d8a5fac1a6a5236378829b837e
2020-03-22 17:59:40 +00:00
Wale Ogunwale
5794658be0 Move some window related files to android.window package
Window management files on the client side have normally been dumped in
either android.view or android.app package. This CL starts to
centralized them in android.window package so there is better
separation.

Test: they pass
Bug: 147406652
Bug: 152113464
Bug: 152117221
Change-Id: I4d64bd256e9b3581af0ccf9396f7dd2454132719
2020-03-22 09:47:43 -07:00
Artur Satayev
39ec0d54d8 Merge "Move hiddenapi lists droidcore calls to tools/platform-compat/." into rvc-dev 2020-03-22 11:54:27 +00:00
Sudheer Shanka
add060f917 Merge "Add BlobStoreManager.getRemainingLeaseQuotaBytes." into rvc-dev 2020-03-22 07:21:17 +00:00
TreeHugger Robot
c78a7e4971 Merge "UiMode TwilightManager null" into rvc-dev 2020-03-22 02:31:42 +00:00
TreeHugger Robot
e0ee0e4d4b Merge "resolve merge conflicts of 7e0769b219 to rvc-dev" into rvc-dev 2020-03-22 00:36:07 +00:00
TreeHugger Robot
9a58d5747a Merge "Un-expose APIs added for telephony mainline." into rvc-dev 2020-03-21 21:17:33 +00:00
Hui Yu
aa3d42b129 Merge "Update AppOps & UsageStats when app widget tapped." into rvc-dev 2020-03-21 19:54:59 +00:00
Hui Yu
3dc45fbc57 Update AppOps & UsageStats when app widget tapped.
When the app widget on the launcher is tapped on:
1. Update AppOps. AppOps treats the underlying app as foreground so the app can get while-in-use
permission.
2. Report a USER_INTERACTION event to UsageStats so UsageStats can
update mLastTimeUsed and mLastTimeVisible of this package.

Bug: 149043079
Test: manual test, tapped on a widget.
Change-Id: Ic8c91190881cf5dcf89f0f72cfd410b0c2e86bf6
2020-03-21 08:36:54 -07:00
Michael Groover
ffd92af9a5 Merge "Refactor device ID access SystemAPI to PermissionManager" into rvc-dev 2020-03-21 15:30:53 +00:00