Jeremy Joslin
6c1ca280b3
Move getActiveScorerPackage() to the score service.
...
Implemented getActiveScorerPackage() in the NetworkScoreService to
make it more efficient (no need to query PM).
Test: runtest frameworks-services -c com.android.server.NetworkScoreServiceTest
Bug: 33781558
Change-Id: I2144351c2c09cad30f80399069364f3572e38445
2017-01-10 13:08:32 -08:00
Jeremy Joslin
134c9d3311
Moved isCallerActiveScorer() to the score service.
...
Implemented isCallerActiveScorer() in the NetworkScoreService to make
it more efficient (no need to query PM). Exposed the call as a new
internal API on NetworkScoreManager and deprecated the call on
NetworkScorerAppManager.
Test: runtest frameworks-services -c com.android.server.NetworkScoreServiceTest
Bug: 33781558
Change-Id: I0e2142af95b068d322343f7c9362ac53d46b545e
2017-01-10 10:52:56 -08:00
John Reck
d14cafc272
Merge "Remove unused variable."
2017-01-10 18:36:30 +00:00
Chris Craik
6f225cae06
Merge "Revert "Revert "Fast-path for ViewGroup#invalidateChild, invalidate tests"""
2017-01-10 18:15:57 +00:00
Mark Renouf
fb5b147781
Merge "Update javadoc for startActivityForResult(Intent, int, Bundle)"
2017-01-10 17:53:11 +00:00
Justin Klaassen
d07305a2bf
Merge "Add AlarmClock#SHOW_TIMERS"
2017-01-10 17:43:09 +00:00
Geoffrey Pitsch
9f7fd6c734
Merge "API improvements for creating NotificationChannels"
2017-01-10 16:20:13 +00:00
Sean Stout
1ba3ac9281
Add AlarmClock#SHOW_TIMERS
...
Test: run cts -m CtsContentTestCases
Bug: 31228110
Change-Id: Ia291a890b83996d6edf7b75afa52e44557a9117b
2017-01-10 16:16:29 +00:00
Andrew Scull
54402aab14
Merge "Evict CE key on request and when work mode is turned off."
2017-01-10 13:20:49 +00:00
Ben Weiss
b5d57e1048
Merge "Make ArcMotion material spec compliant"
2017-01-10 11:10:33 +00:00
Jeff Sharkey
8dedad31f7
Wire up storage stats API to installd.
...
Now that installd has the implementation details we need, we can wire
up the public APIs to use them.
Shuffle APIs around a bit so that StorageStats can be reused for both
UID and UserHandle results, and rename StorageSummary to
ExternalStorageStats. Provide getTotalBytes() and getFreeBytes() as
first-class methods so we can answer those questions quickly without
paying the cost of measuring external storage details.
Current costs on a typical device with a test account after flushing
dentry caches:
queryStatsForUid() manual: 6922ms
queryStatsForUid() quota: 525ms
queryStatsForUser() manual: 1686ms
queryStatsForUser() quota: 113ms
queryExternalStatsForUser() manual: 42ms
queryExternalStatsForUser() quota: 2ms
For verification purposes, a new "fw.verify_storage" system property
can be set to compute both manual and quota statistics, and log any
discrepancies.
Test: builds, boots
Bug: 27948817, 32206268
Change-Id: I4ea3df3372a7379aa8cf4c20c44120c8f0702c15
2017-01-09 22:30:58 -07:00
Michael Kwan
7cf986aba3
resolve merge conflicts of c252b661e6 to master
...
Change-Id: Ia3fbedc5b0f90988ef319720a9e668ccc9e297f4
2017-01-09 16:12:53 -08:00
Michael Kwan
c252b661e6
Check if the activity translucency was converted before converted back. am: 39dd370d8e
...
am: 898385ed59
Change-Id: I5bee496498ebcff712184f417adfdf8ee5436e7d
2017-01-09 23:15:23 +00:00
Michael Kwan
898385ed59
Check if the activity translucency was converted before converted back.
...
am: 39dd370d8e
Change-Id: Ib0705da70acd8abceedd5c1deeacae5023032543
2017-01-09 23:06:21 +00:00
Eugene Susla
2ddcb077ac
Merge "Unit test to keep a11y cache critical events up to date"
2017-01-09 22:59:39 +00:00
Tao Wu
f7fee94d75
Remove unused variable.
...
Code search show nobody referenced it and aosp image still compiles after
remove it.
Test: make -j18 systemimage userdataimage ramdisk
Change-Id: I3e37ea590610091b938296c999dceb3caf919906
Signed-off-by: Tao Wu <lepton@google.com >
2017-01-09 14:53:16 -08:00
Michael Kwan
39dd370d8e
Check if the activity translucency was converted before converted back.
...
Bug: 34084490
Change-Id: Ib04c76549a31c7e523649f9d284637d44d7477ae
2017-01-09 13:43:52 -08:00
Jeremy Joslin
6cf53d0ab8
Merge "Check for REQUEST_NETWORK_SCORES instead of BROADCAST_NETWORK_PRIVILEGED." am: 4c456d7ddf am: 542aad4c75
...
am: f91d9debef
Change-Id: I7436278fa3eab064fe2b416c672bedaa300eb501
2017-01-09 21:17:17 +00:00
Jeremy Joslin
f91d9debef
Merge "Check for REQUEST_NETWORK_SCORES instead of BROADCAST_NETWORK_PRIVILEGED." am: 4c456d7ddf
...
am: 542aad4c75
Change-Id: I3b35ec04e65f6b14f75f266dfcf15c10a12a4d74
2017-01-09 21:07:48 +00:00
Jeremy Joslin
542aad4c75
Merge "Check for REQUEST_NETWORK_SCORES instead of BROADCAST_NETWORK_PRIVILEGED."
...
am: 4c456d7ddf
Change-Id: I441cae5096b922419763832d5b38faa95818e337
2017-01-09 20:58:50 +00:00
TreeHugger Robot
e2489c67e1
Merge "Using official names for clusters and sections."
2017-01-09 20:25:45 +00:00
TreeHugger Robot
93b785a90f
Merge "Revert "Implement Account Discovery API.""
2017-01-09 20:04:52 +00:00
TreeHugger Robot
29c0a2c93d
Merge "Do not report uptime to tron after runtime restart"
2017-01-09 19:56:16 +00:00
Mark Renouf
d9d871ff58
Omit NavigationGuard if the input method uses FLAG_LAYOUT_IN_OVERSCAN am: 9b32a35aa7 am: 7ef0b07465
...
am: d5a1123109
Change-Id: Ie02c9f74fc93133a68940204420c48f92d4b352f
2017-01-09 19:47:22 +00:00
TreeHugger Robot
e7e4998784
Merge "Updating PIP to match UX"
2017-01-09 19:33:09 +00:00
Mark Renouf
d5a1123109
Omit NavigationGuard if the input method uses FLAG_LAYOUT_IN_OVERSCAN am: 9b32a35aa7
...
am: 7ef0b07465
Change-Id: I8e6ed26b1109dd3cb293d3a0a2307877fa5e4304
2017-01-09 19:30:38 +00:00
Mark Renouf
7ef0b07465
Omit NavigationGuard if the input method uses FLAG_LAYOUT_IN_OVERSCAN
...
am: 9b32a35aa7
Change-Id: I99d041ae3a1771e17c94a168cf672f8b73ce572d
2017-01-09 19:13:55 +00:00
Jeremy Joslin
186f3339ab
Check for REQUEST_NETWORK_SCORES instead of BROADCAST_NETWORK_PRIVILEGED.
...
Test: runtest frameworks-services -c com.android.server.NetworkScoreServiceTest
BUG: 33752149
Change-Id: I3dd352c98bbc34b128ab9c2a28f81e1261ae2669
Merged-In: I7d91fa9a4f6ef4f9170c6af98567ce443c805e74
2017-01-09 11:03:21 -08:00
Mark Renouf
5df216f209
Merge "Omit NavigationGuard if the input method uses FLAG_LAYOUT_IN_OVERSCAN" into cw-f-dev
2017-01-09 19:00:05 +00:00
Dmitry Dementyev
2e22cfbefb
Revert "Implement Account Discovery API."
...
This reverts commit 58fa836210 .
Change-Id: Iffc9c5eb63db382b720b45ff5e8f1948db908a03
2017-01-09 18:42:14 +00:00
TreeHugger Robot
a2b61657c4
Merge "Add @Nullable to CompoundButton#setOnCheckedChangeListener()."
2017-01-09 18:33:44 +00:00
Chris Craik
3f06c6de08
Revert "Revert "Fast-path for ViewGroup#invalidateChild, invalidate tests""
...
Bug: 33797688
This reverts commit 1cb8b08ae4 .
Change-Id: I322b550d65d48be4a99faf1790d138d26a996d7e
2017-01-09 18:30:35 +00:00
Fyodor Kupolov
6733e6c6b6
Do not report uptime to tron after runtime restart
...
Runtime restart doesn't reset the uptime counter. We shouldn't report
boot timings in that case.
Bug: 32807863
Test: manual
Change-Id: If9510c0d5c633acefe70f241e0823da8f6c248a2
2017-01-09 10:29:42 -08:00
Chris Craik
2294458565
Merge "Fix NPE in RenderNodeAnimator ALPHA when used outside ViewPropertyAnimator"
2017-01-09 18:15:32 +00:00
Alex Naidis
bede012069
Merge "StorageManager: Improve exception handling" am: cf3a4a68bd am: 545cf37844 am: edca8aa3a8
...
am: 32dfe8c611
Change-Id: I5faf99bd2b4425f1615419de43f247f78d74108b
2017-01-09 17:14:34 +00:00
Alex Naidis
32dfe8c611
Merge "StorageManager: Improve exception handling" am: cf3a4a68bd am: 545cf37844
...
am: edca8aa3a8
Change-Id: Idbd8b16f0825bdcf48d2013448c767d0966434fe
2017-01-09 17:09:31 +00:00
Alex Naidis
edca8aa3a8
Merge "StorageManager: Improve exception handling" am: cf3a4a68bd
...
am: 545cf37844
Change-Id: I452e3fcbda9cfa24db5b2bfdd077b7e5a7b241b4
2017-01-09 17:04:32 +00:00
Alex Naidis
545cf37844
Merge "StorageManager: Improve exception handling"
...
am: cf3a4a68bd
Change-Id: Id421cb483655dab6d379251d983da2bdcafe598d
2017-01-09 16:59:56 +00:00
Alison Cichowlas
0f961084ce
Merge "Log wrapper for multi-metrics in tron."
2017-01-09 16:39:04 +00:00
Alex Naidis
19d9c2d03c
StorageManager: Improve exception handling
...
When "getPrimaryStorageSize" provides a path
to "readLong", the option that the path
doesn't exist is expected, since it tries
all paths from "INTERNAL_STORAGE_SIZE_PATHS"
until there is success.
This patch makes us catch the "FileNotFoundException"
and "NumberFormatException" seperately.
For the above reason a "FileNotFoundException"
is now treated as an information only.
The "NumberFormatException" and other exceptions
are now treated as error since those are not
expected to happen.
Change-Id: I5316f9c3108e36c31b27dc5df8bf8ac4d4257629
Signed-off-by: Alex Naidis <alex.naidis@linux.com >
2017-01-09 16:27:52 +00:00
Julia Reynolds
6eb2857ee2
Merge "Cannot have badge only channels"
2017-01-09 14:59:50 +00:00
Charles He
31df867f7e
Merge "Update SystemUpdatePolicy javadoc."
2017-01-09 11:09:58 +00:00
Nick Kralevich
4429993d78
Merge "Dumps total size of primary storage." am: 55dc66dde4 am: 12b387dd87
...
am: a63462c794
Change-Id: I2a62442a581d89054421dd6c44c610fb7ee9a0c4
2017-01-08 15:09:21 +00:00
Nick Kralevich
a63462c794
Merge "Dumps total size of primary storage." am: 55dc66dde4
...
am: 12b387dd87
Change-Id: I08e98467d212a7f9ec01b16a46540bc3d059ee51
2017-01-08 15:04:54 +00:00
Nick Kralevich
12b387dd87
Merge "Dumps total size of primary storage."
...
am: 55dc66dde4
Change-Id: Ifc3537d3aeda5e6eb3b1c003a4eaf392d07bcf86
2017-01-08 15:00:18 +00:00
Felipe Leme
c0d3f0ed52
Dumps total size of primary storage.
...
BUG: 32069168
Test: manual verification
(cherry picked from commit 281389ac54 )
Change-Id: If5dee52a99c03a00dada22736c09d953dc0b66d1
2017-01-08 03:51:37 +01:00
Jeff Sharkey
8d729e8c14
Merge "Initial API shape for storage statistics."
2017-01-07 16:18:38 +00:00
Dave Friedman
a873bf444e
Docs: Updates Javadoc documentation. Bug: 32532540 am: 2a3ebadcbe am: e0fd4c8a3b am: a111e0f7f0 am: eedb695579 am: fb8676e50c
...
am: 5346355f4d
Change-Id: I67559350187089b64f0ce092c1f6ae8e7a52542e
2017-01-07 03:06:54 +00:00
Dave Friedman
5346355f4d
Docs: Updates Javadoc documentation. Bug: 32532540 am: 2a3ebadcbe am: e0fd4c8a3b am: a111e0f7f0 am: eedb695579
...
am: fb8676e50c
Change-Id: I5b13dcbab3aed19c805473a6ab91eef197ded51d
2017-01-07 02:58:15 +00:00
Dave Friedman
fb8676e50c
Docs: Updates Javadoc documentation. Bug: 32532540 am: 2a3ebadcbe am: e0fd4c8a3b am: a111e0f7f0
...
am: eedb695579
Change-Id: Ia5922ed50290cc8f47d07f1516bc5a21b0bec270
2017-01-07 02:50:18 +00:00