Commit Graph

79493 Commits

Author SHA1 Message Date
Adam Lesinski
57fccd61a5 Send broadcast to pkg installers on config change
Send a protected system broadcast to apps that hold
the INSTALL_PACKAGES permission whenever a change to
properties like locale or display density happens.

Receivers can be registered in the manifest, and a process
will be woken up to receive the broadcast.

This will happen rarely, since the configuration changes
eligible to trigger this broadcast are rare themselves.

Bug: 63918966
Test: manual

Change-Id: I817a51ea05f762e02561691825d57d643db7dc30
2018-02-08 16:41:37 -08:00
TreeHugger Robot
1b6f515550 Merge "Temporary fix to prevent breakage with new API." 2018-02-09 00:29:19 +00:00
TreeHugger Robot
cacd69515f Merge "Switch activity relaunch to lifecycler" 2018-02-08 23:58:15 +00:00
TreeHugger Robot
efd14bf5a5 Merge "Wireless charging on aod and lockscreen" 2018-02-08 23:46:15 +00:00
TreeHugger Robot
40279e5407 Merge changes I6993325b,Icb5114fe
* changes:
  Frameworks: Annotate trivial @GuardedBy in services/core
  Frameworks: Annotate trivial @GuardedBy in core/java
2018-02-08 23:32:03 +00:00
TreeHugger Robot
6c78b876e7 Merge "Revert "Revert "Turn on about phone v2""" 2018-02-08 23:24:49 +00:00
TreeHugger Robot
fcd3c57e19 Merge "Don't attempt to preload fonts in isolated processes." 2018-02-08 22:51:25 +00:00
David Chen
eac4e64bc4 Temporary fix to prevent breakage with new API.
Adds back in the old method signature. This temporary method can
be deleted in a week or so, after all callers have been migrated to
the new API.

Test: Test that make finishes.
Bug: 72562867
Change-Id: I608fcab0ac5508a482fc8d1e63490d3cfc1fedb1
2018-02-08 14:19:22 -08:00
TreeHugger Robot
f9420f4ddd Merge "Track notification clicked events in UsageStats" 2018-02-08 22:16:09 +00:00
Doris Ling
8fdafa096f Revert "Revert "Turn on about phone v2""
This reverts commit 933026a384.

- the problem with enabling the developer options is fixed, and hence re-submitting this change.

Bug: 73102865
Change-Id: I4f608851df2a4980a6e3766b30c2d86e6e98d94c
Test: rebuild
2018-02-08 21:25:46 +00:00
Doris Ling
a5ffafbfda Merge "Revert "Turn on about phone v2"" 2018-02-08 20:47:05 +00:00
Doris Ling
933026a384 Revert "Turn on about phone v2"
This reverts commit ab4ed1169a.

Bug: 73102865
Change-Id: I029064d144b891cb6eefacc2ad648a821fa49ec0
Test: rebuild
2018-02-08 20:43:43 +00:00
Etan Cohen
af018ce387 Merge "[RTT] Deprecate legacy RTT API" 2018-02-08 19:03:27 +00:00
Siyamed Sinir
bc48bd8f61 Merge "Remove Toki from text OWNERS files" 2018-02-08 18:55:17 +00:00
TreeHugger Robot
9ea3c99a95 Merge "Statsd notifies listener with pendingintent." 2018-02-08 18:50:00 +00:00
TreeHugger Robot
6a00aac93a Merge "Cellular Tx power added to Volta historian" 2018-02-08 18:34:45 +00:00
Jiuyu Sun
b6276fe5a3 Merge "Revert "Public EuiccManager APIs."" 2018-02-08 17:34:30 +00:00
Pavel Grafov
c9b9e10e73 Merge "Run and log BoringSSL self-test for NIAP compliance." 2018-02-08 17:22:12 +00:00
Amith Yamasani
7ec8941167 Track notification clicked events in UsageStats
Expose some of the new events as SystemApi.

Make some of the timeouts configurable in AppStandbyController.

Make NOTIFICATION_SEEN event upgrade app to WORKING_SET for
12 hours. This is not perfect though and will require further
tweaking as it may result in the app becoming elevated higher
for much longer than necessary.

Change-Id: I62401cfabddf51b6f80b9bba8a358285b8cf9a51
Fixes: 72741441
Fixes: 72067231
Fixes: 72537465
Fixes: 72536347
Test: atest CtsUsageStatsTestCases:UsageStatsTests
2018-02-08 09:09:31 -08:00
Winson Chung
bc88614abe Merge "Revert "Revert "Exposing content insets and minimized home bounds for recents transition""" 2018-02-08 17:06:48 +00:00
Selim Cinek
df155c750b Merge "Removed the ripple for actions with remote inputs" 2018-02-08 16:59:54 +00:00
Phil Weaver
6d8a63d771 Merge "Fix a11ynodeinfo parceling" 2018-02-08 16:52:43 +00:00
Jiuyu Sun
d3bb4aed78 Revert "Public EuiccManager APIs."
This reverts commit af6a5fffdc.

Reason for revert: <INSERT REASONING HERE>

Change-Id: Id3296a91e5c3ad624a6a03f6532b859524a518bf
2018-02-08 16:38:26 +00:00
TreeHugger Robot
a20833c06d Merge "Fix bug in calculating path in ArcMotion" 2018-02-08 15:43:50 +00:00
TreeHugger Robot
71a24be984 Merge "Fix APCT tests" 2018-02-08 15:06:53 +00:00
Beverly
ac32c9acc3 Wireless charging on aod and lockscreen
- wireless charging animation plays on aod + lockscreen
- timing changes on animation based on design spec
- charging feedback only given if phone is not just booted

Test: manual
Bug: 67598445
Change-Id: I009ff6016141bcdfe9f0392bb9a1c220ea88dfe5
2018-02-08 09:38:59 -05:00
Clara Bayarri
d293d6d4b6 Remove Toki from text OWNERS files
Test: none
Change-Id: I9e444318df4a77ee06949d5141667f6c00d9a508
2018-02-08 11:14:10 +00:00
Andreas Gampe
3f24e69dbe Frameworks: Annotate trivial @GuardedBy in core/java
Add @GuardedBy for simple functions that require a single lock
and are named XYZLocked.

Bug: 73000847
Test: m
Test: m javac-check-framework RUN_ERROR_PRONE=true
Change-Id: Icb5114fea2ff2385e1cc7511121026099e05c0ee
2018-02-08 02:19:42 -08:00
Andrii Kulian
b372da6ef8 Switch activity relaunch to lifecycler
This is needed to be able to relaunch an activity and eventually
bring it to stopped state while it is not visible. Before this
relaunch request put activity in resumed state in the end. With
lifecycler both relaunch and request to move to stopped state can
be done in a single transaction to client.

Also fixed extra relaunch request to activity which was sent
before it was even started. It happened because we were waiting
for another activity to pause before actually scheduling the
launch, and in activity-paused callback we were ensuring config
first. This led to configuration update for not-yet launched
activity and relaunch message was sent first.

Bug: 64610483
Test: android.app.servertransaction tests
Change-Id: Ib89c20cd0fdff209319d4819023c3cdd641a72c7
2018-02-08 00:05:09 -08:00
Fan Zhang
ab63bf0582 Merge "Turn on about phone v2" 2018-02-08 05:38:56 +00:00
TreeHugger Robot
626f090097 Merge "Add default value to data usage feature flag." 2018-02-08 04:55:56 +00:00
Makoto Onuki
baae493184 Merge "Revert "Retry: JobScheduler to use UID active state for job exemption"" 2018-02-08 02:31:18 +00:00
Makoto Onuki
2f0b0310ee Revert "Retry: JobScheduler to use UID active state for job exemption"
This reverts commit 3f7be62d31.

Reason for revert: I failed to unrevert it.

Change-Id: I086634236e140d3fe2f46dfff605fde548ab34f4
2018-02-08 02:30:56 +00:00
Winson Chung
584d652a1d Revert "Revert "Exposing content insets and minimized home bounds for recents transition""
This reverts commit bb5d97f00f.

Reason for revert: Launcher APK is landing shortly.

Test: Manual, swipe up to home in multi-window

Change-Id: I5d9050e51265bd4ca5ea2c28b7533571d03990f7
2018-02-07 17:51:29 -08:00
TreeHugger Robot
b8efd65ac3 Merge "Stop accepting zero size drag shadow for P." 2018-02-08 01:12:48 +00:00
David Chen
661f791a25 Statsd notifies listener with pendingintent.
Previously, statsd would inform interested listeners that it's time
to collect data via a protected broadcast. However, the preferred
solution is to pass a PendingIntent via a separate setter. Whenever
statsd wants the listener to call getData, StatsCompanionService
will trigger the pending intent.

Test: Tested in marlin-eng that functionality works as expected with
dogfood app.
Bug: 72562867
Change-Id: Ibcfcd5072a1a78947f8a7cbcd0bc429b54351da3
2018-02-07 16:16:23 -08:00
Jiuyu Sun
7fdd2bf7c1 Merge "Public EuiccManager APIs." 2018-02-07 23:55:28 +00:00
Phil Weaver
6307240b8f Fix a11ynodeinfo parceling
The pane title was not parceled and unparceled symmetrically.
Fixing that.

Also, the CTS test that should have caught this error is broken.
Providing a test API to do parceling without recycling, so
parceling can be tested in isolation.

Bug: 73084962

Test: Updated CTS AccessibilityNodeInfoTest used to pass. After
the fix to parcel in isolation, the test failed. Fixing the pane
title parceling allows the test to pass again.

Change-Id: I161ce93f8bdea5d5dd2d28cd38b58633f7742e56
2018-02-07 15:47:33 -08:00
Todd Kennedy
d5aaa44859 Fix APCT tests
* remove testInsertPackageSetting
* add path to c'tor for testUpdatePackageSetting0[12]

Change-Id: Ia690839268470db227538a7b64557da182d97751
Fixes: 72959078
Test: atest -it FrameworksServicesTests:PackageManagerSettingsTests
2018-02-07 15:44:19 -08:00
Fan Zhang
ab4ed1169a Turn on about phone v2
Change-Id: I8775665b7116eeebff5178ebf32890d3585c1824
Fixes: 72523158
Bug: 36458278
Test: visual
2018-02-07 15:43:37 -08:00
Makoto Onuki
b16f567576 Merge "Retry: JobScheduler to use UID active state for job exemption" 2018-02-07 23:23:37 +00:00
Etan Cohen
7210eaeba1 Merge "[RTT] Remove the legacy RTT service" 2018-02-07 22:50:16 +00:00
Emilie Roberts
3b60d0221c Merge "Close Dialog when ESC Pressed" 2018-02-07 22:03:38 +00:00
TreeHugger Robot
0589371900 Merge "PackageInfo: add Parcel read/write for cert history." 2018-02-07 21:03:32 +00:00
George Mount
575ffb856e Fix bug in calculating path in ArcMotion
Bug: 73077523

When the path is perfectly horizontal, ArcMotion
was calculating a Path that had NaN values. This
corrects that problem by special casing horizontal
and vertical paths.

Test: manual with app that discovered the problem
Test: manual with test app
Test: I30d51206194e3c68ea145d3a81e05a461c4e0ca8
Change-Id: Ic1a70b79290847726fc7994d1224fd77024e0610
2018-02-07 12:44:55 -08:00
Etan Cohen
d0acccdf25 [RTT] Deprecate legacy RTT API
Bug: 65108579
Test: unit tests pass
Test: WifiRttManagerTest:test_regular_scan_then_rtt_ranging_stress
Change-Id: Ifa90acf8bb358657785b42222e68c537658c85e2
2018-02-07 12:36:09 -08:00
Etan Cohen
9accbba1b7 [RTT] Remove the legacy RTT service
Remove the legacy RTT service. RTT requests are already directed to
the new API by a previous CL.

Bug: 65108579
Test: unit tests
Test: WifiRttManagerTest:test_regular_scan_then_rtt_ranging_stress
Change-Id: I436e8bcd2f4e2ba6056870d887eea141fbebae85
2018-02-07 12:36:05 -08:00
Siddharth Ray
f5e796a070 Cellular Tx power added to Volta historian
A flag in historian is added to identify time periods where the
cellular radio is transmitting at the highest power level.

BUG:38354995
Change-Id: Ib89a505636c1d5aa66f8c19690742dde9d40fe61
2018-02-07 12:29:26 -08:00
TreeHugger Robot
ea8feabec5 Merge "Minor improvements on autofill compat mode:" 2018-02-07 19:44:26 +00:00
Makoto Onuki
3f7be62d31 Retry: JobScheduler to use UID active state for job exemption
This is a second try for I134ac3d84a26309dab56ab6cbb271de626acdf7d.

Apparently alarms are firing even before PHASE_SYSTEM_SERVICES_READY, so add
more null checks.

Test: Boot on taimen.
Test: atest CtsAlarmManagerTestCases
Test: atest CtsJobSchedulerTestCases
Test: atest CtsBatterySavingTestCases
Test: atest $ANDROID_BUILD_TOP/frameworks/base/services/tests/servicestests/src/com/android/server/AppStateTrackerTest.java
Change-Id: I4b2a5af04e4d78c996e73da0621047da7a7bff39
2018-02-07 11:38:11 -08:00