350443 Commits

Author SHA1 Message Date
TreeHugger Robot
d7150e0ae6 Merge "Don't show the battery saver toast when the screen turns on" 2017-11-28 00:14:29 +00:00
TreeHugger Robot
04bcc318fc Merge "Fix nine patch scaling" 2017-11-28 00:12:54 +00:00
Jeff Sharkey
c204c223a7 Deeper sanity checking of emitted types.
When emitting a method or field, verify that we're able to reference
all mentioned types.  This ensures that we don't accidentally
reference undefined classes/interfaces.

Test: manual inspection of API files
Bug: 69791141
Change-Id: I84e0c87fe83daa118661f61dbdf17b58ea5282d4
2017-11-27 17:07:40 -07:00
Bookatz
d1fd2425f7 statsd informs incidentd of anomalies
When an anomaly is detected by statsd, it passes to incidentd the
information specified in the config.

Test: manual (using the fake config) saw in logcat that incidentd was
called (reportIncident)
Change-Id: I0a257b49db706d7b14a2976fb7e62c3c3535725f
2017-11-27 15:54:49 -08:00
Sohani Rao
06751720ac Introduce Status and Failure code for Provisioning
Passpoint Provisioning status and failure codes to be used by callback
API to provide information to the caller about the provisioning flow

Bug: 67914151
Test: Unit test
Change-Id: If1bf28ac8e2e0b7d8141d1b9cb12e3a6e46cb126
2017-11-27 15:42:24 -08:00
Bookatz
cc5adef2d0 Statsd anomaly detection - fixes
Fixes a few items in AnomalyTracker, especially to do with what happens
when an anomaly alarm fires.

Test: unit tests still pass
Change-Id: Ia89bd617442e952e587336b890c3ca67430b5e21
2017-11-27 15:35:40 -08:00
Yangster
8de6939c49 Thread-safe metric producers.
Test: unit test passed
Change-Id: Ie47404e8649b63ee8ac32e40189a47f6cb7a9def
2017-11-27 15:21:57 -08:00
TreeHugger Robot
d12e276f6a Merge "Migrate some preference theme attributes from SettingsLib" 2017-11-27 23:14:07 +00:00
Sohani Rao
2b1c42f9bb Provide APIs for HS2.0 provisioning
Created a new hidden API to be called for starting subscription
provisioning with a certain provider. Create a callback interface and a
callback object to be used by the caller to get provisioning status
updates.

Bug: 67645546
Test: Unit tests
Change-Id: I9592222cfe79c5859c455c5a658956120558059f
2017-11-27 15:11:44 -08:00
TreeHugger Robot
7b460b994b Merge "Fix a bug in StorageManager." 2017-11-27 23:06:55 +00:00
Pierre Lecesne
dcfe47bac2 Merge "AAPT2 - Make raw files of type unknown." 2017-11-27 23:04:33 +00:00
Matthew Ng
89a52f1a71 Applies last scroll position in recents after rotation
Record the scroll position whenever recents scrolls. When screen is
rotated, reapply the same position to match it from last orientation.

Test: manual - rotate screen
Change-Id: I129bb91a01161c512736a17738a52e5b6bd0e35e
Fixes: 64291223
2017-11-27 15:02:10 -08:00
Ahmed ElArabawy
ddd096924e Add Multicast wakelock stats in battery-stats dump
This commit adds the statistics for multicast wakelocks (count/time)
in dump of battery-stats.
This enables debugging of power issues due to extensive wakeup of host
processor due to arrival of multicast packets, and help identify the
blamed application

Bug: 33649966
Test: Manual Test
Change-Id: I882f945dd36fa2881c59776b4954017bf3c76cd7
Signed-off-by: Ahmed ElArabawy <arabawy@google.com>
2017-11-27 14:59:44 -08:00
Jason Monk
70164985f5 Merge "More dimming tweaks (for accessibility)" into oc-mr1-dev am: dbb448a3d7
am: 6f69e55970

Change-Id: Ia93bb8ee554f23c9c4bd29e5178275314bdac327
2017-11-27 22:47:47 +00:00
Nikolas Bravo
a2faa31585 Fixes javadoc documentation of PackageInstaller.SessionParams#setOriginatingUid(int) am: 8aaf928fcd
am: cde72f1be7

Change-Id: I87bae6c7c5f1cb426c337520c9140bc5738c5228
2017-11-27 22:38:11 +00:00
Jack Yu
1d1022e445 Moved DataProfile from telephony internal hidden API to System API
This is the preliminary change in order to make the new data call
setup API for IWLAN refactoring.

Test: Telephony sanity tests + unit tests
bug: 64132030

Merged-In: Ib96dc3dd577def0a428e2f5cdb5fb7f742120020
Change-Id: Ib96dc3dd577def0a428e2f5cdb5fb7f742120020
(cherry picked from commit fc84bb5f5c6e30db0eca589eb67b406bf4bfadbe)
2017-11-27 14:36:15 -08:00
Jason Monk
6f69e55970 Merge "More dimming tweaks (for accessibility)" into oc-mr1-dev
am: dbb448a3d7

Change-Id: I94fe9f6055a48cdc596fe333a3f6d304cb7e33da
2017-11-27 22:35:55 +00:00
Stan Iliev
3715677d72 Fix nine patch scaling
Fix nine patch scaling for assets that don't match the DPI.
Sometimes nine patches were scaled up with divs bigger than
width/height. This is fixing incorrect SearchView control draw
for 213dpi material theme in ThemeHostTest.

Test: Ran CtsGraphicsTestCases, CtsUiRenderingTestCases tests
Change-Id: Ifb8037e8ece97b802e723f911d9b74ccd8fe5400
2017-11-27 17:29:32 -05:00
Nikolas Bravo
cde72f1be7 Fixes javadoc documentation of PackageInstaller.SessionParams#setOriginatingUid(int)
am: 8aaf928fcd

Change-Id: I4a2efd6052b1bcc5344fd23722745b3532fb01c9
2017-11-27 22:29:21 +00:00
TreeHugger Robot
dbf16295fe Merge "libandroidfw: Support loading ApkAssets from a file descriptor" 2017-11-27 22:26:26 +00:00
TreeHugger Robot
dbb448a3d7 Merge "More dimming tweaks (for accessibility)" into oc-mr1-dev 2017-11-27 22:21:09 +00:00
Yao Chen
10535b9ad0 Reject the config if condition config has errors. And add log tag.
Test: added unit test.
Change-Id: I7108350978f7c1d0e8e87f22082e19fc76a75631
2017-11-27 14:15:36 -08:00
Fyodor Kupolov
31342ca615 Merge "Use the root case to set remote stack trace for" 2017-11-27 22:14:38 +00:00
TreeHugger Robot
97d43d525c Merge "Fix a bug in test that cause the flakyness in SimpleConditionTracker_test." 2017-11-27 22:13:20 +00:00
Todd Kennedy
ddaaf4cf48 Remove scanFile argument
In several locations we were passing both a parsed Package object
and a scanFile File object. But, the Package object was parsed from
the scanFile! Instead, just pass the singular Package object and
pull the scanned file from it.

Bug: 63539144
Test: bit FrameworksServicesTests:com.android.server.pm.
Change-Id: Ibd200fb567e005869de61d9c123f211fa9a38f0a
2017-11-27 14:10:03 -08:00
Dianne Hackborn
a47d0453d9 Add documentation for O and O_MR1 target SDK changes.
Whoops, forgot to do this!

Bug: 69805350
Test: built and looked
Change-Id: Ic42cbcb7a62e7474c4864d66944452fed2e9005c
2017-11-27 14:08:16 -08:00
Makoto Onuki
1ecaf7c777 Don't show the battery saver toast when the screen turns on
Bug 68769804
Test: manual test

Change-Id: I4eca183f5e61d31d162d3d0914fe2dc94bb8a11e
2017-11-27 14:05:53 -08:00
Christine Franks
c545799b80 Promote ACTION_DISMISS_TIMER to public API
Bug: 69047776
Test: make -j100 && make cts -j10 && cts-tradefed run cts-dev -m
CtsAlarmClockTestCases

Change-Id: I1fedb6e36c83008ad590602af1b4e06688cc116f
2017-11-27 14:05:03 -08:00
Yao Chen
c8862caf4f Merge "Revert "Reject the config if condition config has errors. And add log tag."" 2017-11-27 22:02:29 +00:00
Yao Chen
f94a51876d Revert "Reject the config if condition config has errors. And add log tag."
This reverts commit c9fa2f6d4ea5c3f6730bee67646c0423f5693640.

Change-Id: I91de13f8a102c58bbd3dfc37b09c977e78119854
2017-11-27 21:52:34 +00:00
Jeff Sharkey
7cf056ac8e Merge "Clarify docs, sanity check roaming state." am: 419ec05284 am: 63b5615b2a
am: f8590d1f79

Change-Id: I59fbe09afc74e94e2f56cb6fd833fc2deb7023e5
2017-11-27 21:48:46 +00:00
Jeff Sharkey
f8590d1f79 Merge "Clarify docs, sanity check roaming state." am: 419ec05284
am: 63b5615b2a

Change-Id: If4f09f8a0e32c245552f025f1a61d67f842b1841
2017-11-27 21:39:56 +00:00
Jeff Sharkey
63b5615b2a Merge "Clarify docs, sanity check roaming state."
am: 419ec05284

Change-Id: Ic30d5aaadf2c59978162c53d7e7781847244ce52
2017-11-27 21:30:57 +00:00
TreeHugger Robot
1b5be51fd9 Merge "Reject the config if condition config has errors. And add log tag." 2017-11-27 21:29:12 +00:00
Neil Fuller
3df6366091 Merge "Explicitly exclude com.android.server from docs" 2017-11-27 21:26:22 +00:00
Jeff Sharkey
419ec05284 Merge "Clarify docs, sanity check roaming state." 2017-11-27 21:19:40 +00:00
TreeHugger Robot
41499dfe18 Merge "New Autofill API: SaveCallback.onSuccess(IntentSender)." 2017-11-27 21:06:52 +00:00
TreeHugger Robot
6fc14c85ee Merge "Add StatsdStats and guardrail." 2017-11-27 21:00:34 +00:00
Stefan Lafon
c7bdc6291d Fix a bug in StorageManager.
Test: Ran statsd and statsd_test.

Change-Id: I2390c6d2c493981177b08d3861d7bee621253af3
2017-11-27 12:54:41 -08:00
TreeHugger Robot
e4cf6bf474 Merge "Expose methods to invoke split screen." 2017-11-27 20:42:32 +00:00
Jeff Sharkey
ae26646824 Skip FDE-specific operations, mkdir() throwing.
vold already complains about calls that are FDE specific, which
results in a lot of wtf() noise, so skip those operations outright.

Throw from failed mkdir() back to caller instead of wtf().

Test: builds, boots
Bug: 68736572, 68736551
Change-Id: I4dc06bdedacd2b66a1e7ae8e1434b194a875a756
2017-11-27 13:32:28 -07:00
tccyp
5157aa73d9 Fixed the make file for location tests
make -j32 FrameworksLocationTests can not find the location module
Added one extra make file to help the ninja find the current make file.

To run the tests, use any of this:
1. runtest frameworks-location
2. forrest test FrameworksLocationTests

Bug: 69375757
Test: make -j32 FrameworksLocationTests

Change-Id: I7572cc494f1851ea6167e99c91af8244efaf15b5
2017-11-27 19:55:39 +00:00
Jack Yu
9b5696844d Merge "Moved DataProfile from telephony internal hidden API to System API" 2017-11-27 19:50:46 +00:00
Nikolas Bravo
8aaf928fcd Fixes javadoc documentation of PackageInstaller.SessionParams#setOriginatingUid(int)
* Current "See also" link in https://developer.android.com/reference/android/content/pm/PackageInstaller.SessionParams.html#setOriginatingUid(int) is not only wrong, but also broken
* Added a missing "the"

Bug: 69799046
Fixes: 69799046
Test: make ds-docs (run by asolovay@)
Change-Id: I90410ed3393b5c37afdf0476eb70821fae9f63fd
(cherry picked from commit 6283100a87b7be5fb1aad9a258ebba9faf74b061)
2017-11-27 19:50:40 +00:00
Jeff Sharkey
49bcd60a8d Clarify docs, sanity check roaming state.
Update public docs to hide the fact that NetworkCapabilities is only
used inside NetworkRequest as an implementation detail.

Take up less room on the wire when passing NetworkCapabilities around
via NetworkRequest.

Sanity check that the roaming state between NetworkInfo and
NetworkCapabilities is in agreement.

Test: bit FrameworksNetTests:android.net.,com.android.server.net.,com.android.server.connectivity.,com.android.server.ConnectivityServiceTest
Bug: 67040695
Change-Id: I982b4c3c41a140934bbad3b8ca8f12dc3814e86c
2017-11-27 12:47:14 -07:00
Yao Chen
9975205ded Fix a bug in test that cause the flakyness in SimpleConditionTracker_test.
Test: statsd_test
Change-Id: I9f785d26c857023fbe44d71eb3490a50fcc6139a
2017-11-27 11:40:45 -08:00
TreeHugger Robot
45a3642c6e Merge "tidy up the metrics proto" 2017-11-27 19:36:37 +00:00
Yao Chen
c9fa2f6d4e Reject the config if condition config has errors. And add log tag.
Test: added unit test.
Change-Id: I5a9d6de2492b94bc5f1c88524f743607e60226c1
2017-11-27 11:35:59 -08:00
Pierre Lecesne
70fdf76c52 AAPT2 - Make raw files of type unknown.
Bug: 69791607
Test: Manual.

Change-Id: I6ee5ef37fb447ab79d46b57e0dc4eaad84eec723
2017-11-27 19:33:47 +00:00
TreeHugger Robot
03adf737a9 Merge "Only update the task description when the task/description changes" 2017-11-27 19:31:44 +00:00