Commit Graph

11589 Commits

Author SHA1 Message Date
TreeHugger Robot
547964fc43 Merge "SystemServer: Support for LowpanService" 2017-07-10 20:20:18 +00:00
TreeHugger Robot
de295549d1 Merge "Hide some systemapi methods" 2017-07-10 17:59:36 +00:00
TreeHugger Robot
1cb0485640 Merge "Add "-g" option to run GC to "am dumpheap"." 2017-07-10 17:50:40 +00:00
Robert Quattlebaum
87a7104ae9 SystemServer: Support for LowpanService
The LowpanService implementation can be found at:

    platform/frameworks/opt/net/lowpan/service

Bug: b/33073713
Change-Id: Ibca9c452492bf171bd2c30efdb44ddb472494c3b
2017-07-10 10:16:43 -07:00
Julia Reynolds
ed7b5c64e0 Merge "Limit the number of notis an app can enqueue" into oc-dr1-dev am: c65071d625
am: 8d4cd22ffb

Change-Id: I60ddda50a6d5a6a3028361435a340d6191f6c729
2017-07-10 17:14:57 +00:00
Lucas Dupin
0407c1259c Merge "Add theme style flag to WallpaperColors" into oc-dr1-dev am: 8b94ef697e
am: a9682937b6

Change-Id: Id3a0cd1c34166f156d0c94b412ca7d9397e38672
2017-07-10 17:06:33 +00:00
Julia Reynolds
8d4cd22ffb Merge "Limit the number of notis an app can enqueue" into oc-dr1-dev
am: c65071d625

Change-Id: I85e7117a88be1a629a953f1c721faba508d6d424
2017-07-10 17:06:23 +00:00
Lucas Dupin
a9682937b6 Merge "Add theme style flag to WallpaperColors" into oc-dr1-dev
am: 8b94ef697e

Change-Id: Ic63c9dc9963846afd2ab854630d56512059609d9
2017-07-10 16:58:46 +00:00
Julia Reynolds
c65071d625 Merge "Limit the number of notis an app can enqueue" into oc-dr1-dev 2017-07-10 16:55:01 +00:00
Makoto Onuki
4556b7b8e5 Add "-g" option to run GC to "am dumpheap".
Bug: 62144301
Test: manual test
Change-Id: I187e3acc3c3a97e6799192ab10b1bf16c7fee02f
2017-07-10 08:49:53 -07:00
TreeHugger Robot
b2f9ab3347 Merge "Allow splits to declare a classloader type." 2017-07-10 15:01:52 +00:00
TreeHugger Robot
330ca71a95 Merge "Allow setup apps to colorize notifications." 2017-07-10 15:01:07 +00:00
Narayan Kamath
506b3db322 Merge "SharedPreferencesImpl: Avoid pointless allocation during apply." 2017-07-10 14:25:54 +00:00
Julia Reynolds
6ad0aecf99 Limit the number of notis an app can enqueue
In addition to the number they can post. Also decrease
the number of posts per second to 5, but allow finished
progress notifications through.

Fixes: 63173849
Fixes: 63167456
Test: runtests systemui-notification & simultaneously
downloading 5 files.
Change-Id: I0c8ea35b3d9d38b000ea5fe383515e1d5a26bac7
2017-07-10 09:42:24 -04:00
Julia Reynolds
4db5955557 Allow setup apps to colorize notifications.
Fixes: 63147379
Test: runtest systemui-notification, core tests
Change-Id: I2077a9fd563826d978d0dc01be89dd0bbc09eebf
2017-07-10 09:17:39 -04:00
Narayan Kamath
35c11a740c SharedPreferencesImpl: Avoid pointless allocation during apply.
Test: make
Change-Id: I5ae03b5561b38e23af50764e17ac5ccfccc1b476
2017-07-10 10:15:26 +01:00
Lucas Dupin
4bd24f36c5 Add theme style flag to WallpaperColors
Theme colors should always be the same in sysui and launcher.
We're now sharing a hint HINT_SUPPORTS_DARK_THEME, to make sure
we're never out of sync.

Test: runtest -x tests/Internal/src/android/app/WallpaperColorsTest.java
Fixes: 63140091
Change-Id: Ibd196f540d77269df377804b0f4d4d0d20820067
2017-07-07 14:36:45 -07:00
Julia Reynolds
6b734d0478 Merge "Allow setup apps to colorize notifications." into oc-dr1-dev
am: e4101089bb

Change-Id: I14f8f499ac62ed47d40ca9b2a7bff0c79120dcd7
2017-07-07 19:31:57 +00:00
Julia Reynolds
e4101089bb Merge "Allow setup apps to colorize notifications." into oc-dr1-dev 2017-07-07 19:24:37 +00:00
Andrew Solovay
9715f06f3a Merge "docs: Described why ProgressDialog is now deprecated." into oc-dev am: 1cdf4244f4 am: bc4dc42887
am: 967bae0cf6

Change-Id: Ied39e43b0e3528984c086346f8e60fde99cb8def
2017-07-07 19:21:43 +00:00
Andrew Solovay
967bae0cf6 Merge "docs: Described why ProgressDialog is now deprecated." into oc-dev am: 1cdf4244f4
am: bc4dc42887

Change-Id: I96a162db5fc80ab578a206ca13bd193a33762a64
2017-07-07 19:15:29 +00:00
Andrew Solovay
465810c895 Merge "docs: Described why ProgressDialog is now deprecated." into oc-dev
am: 1cdf4244f4

Change-Id: I1c25c17f1f73e4006e3b0fa9479d5b0563c6be98
2017-07-07 19:09:39 +00:00
Andrew Solovay
bc4dc42887 Merge "docs: Described why ProgressDialog is now deprecated." into oc-dev
am: 1cdf4244f4

Change-Id: I295298edcd7f26df46edb71924fa63038a381619
2017-07-07 19:08:56 +00:00
Julia Reynolds
d71c5a9426 Allow setup apps to colorize notifications.
Fixes: 63147379
Test: runtest systemui-notification, core tests
Change-Id: I2077a9fd563826d978d0dc01be89dd0bbc09eebf
2017-07-07 17:22:43 +00:00
Lucas Dupin
f058f7a58d Merge "Merge "Hide all color hints references" into oc-dr1-dev am: b1ab0ff21e" into oc-dr1-dev-plus-aosp
am: 6e7e4ed024

Change-Id: I66ba5dd375d68f90ab21a37e37735d0e22a9a933
2017-07-07 03:07:42 +00:00
Lucas Dupin
1446809f30 Merge "Hide all color hints references" into oc-dr1-dev
am: b1ab0ff21e

Change-Id: I54e5d27f52d197ae2512ab7216e12e11cf5c8c30
2017-07-07 02:42:35 +00:00
TreeHugger Robot
b1ab0ff21e Merge "Hide all color hints references" into oc-dr1-dev 2017-07-07 00:12:08 +00:00
TreeHugger Robot
053fd81b89 Merge "Don't clobber application's strict mode" 2017-07-06 20:01:21 +00:00
TreeHugger Robot
26ae3157eb Merge "Change storage migration to use quota APIs." 2017-07-06 19:33:59 +00:00
Kurt Nelson
5e154365a4 Don't clobber application's strict mode
Applications often configure strict mode in Application.onCreate. A
regression was added in I2614f8bb30203e00953b1978bbcaf24d84d0397b that
applied a strict mode override for a longer period of time than needed.

Test: Launched a few applications
Bug: 36951662
Change-Id: I30b3eafa4a833fc42d0a938da9446007ade80480
2017-07-06 18:31:43 +00:00
Jeff Sharkey
c8b29ac6f0 Change storage migration to use quota APIs.
New quota APIs are much faster than trying to measure manually, and
removing this last user of calculateDirectorySize() means we can
remove it once and for all.

Bug: 36056324
Test: builds, boots
Change-Id: Ibdf1ee4e8885680e106df6a9269b6309ddc61af8
2017-07-06 11:29:10 -06:00
Rubin Xu
c2d0119650 Merge "Add more javadoc to ConnectEvent and DnsEvent" 2017-07-06 17:00:31 +00:00
Rubin Xu
0a537bbf91 Add more javadoc to ConnectEvent and DnsEvent
Bug: 63382615
Test: make -j32 docs
Change-Id: I78c35ac2e4fee827d835e0b40b8e769bf1fa553d
2017-07-06 15:42:08 +01:00
Narayan Kamath
f9419f0f85 Allow splits to declare a classloader type.
Add an attribute android:classLoader which can be set to the name
of the classloader the base or split wishes to use. For now, this can
only be set to "dalvik.system.PathClassLoader" or
"dalvik.system.DelegateLastClassLoader". The current implementation
only allows the classloader to exist in the boot classpath but that
restriction can be loosened in a future change if necessary.

Test: cts-tradefed run cts-dev -m CtsAppSecurityHostTestCases
Bug: 36044779

Change-Id: I5a51f7aa0c8c4c398d2f46129eb06785cc8e3c3f
2017-07-06 11:57:36 +01:00
TreeHugger Robot
969d492531 Merge changes from topic 'hackbod_completion'
* changes:
  Fix issue #63095854: adb shell cmd jobscheduler timeout reports...
  Add reporting of how jobs complete.
2017-07-06 02:02:21 +00:00
TreeHugger Robot
e97ff16f34 Merge "Log Bundle statistics when too large." 2017-07-06 00:46:25 +00:00
Jeff Sharkey
a6bfeae295 Log Bundle statistics when too large.
When we have trouble pushing a saved instance state Bundle out of
a process, log high-level statistics to help narrow down where bloat
is coming from.

Bug: 62409379
Test: builds, boots, stats logged
Change-Id: Iaff01eaf31ff0fd4d0fde3da15e9526dac559af9
2017-07-05 16:50:26 -06:00
TreeHugger Robot
8121d2542b Merge "Require READ_EXTERNAL_STORAGE to read wallpaper imagery" 2017-07-05 20:31:26 +00:00
TreeHugger Robot
80350e22cf Merge "Avoid stale caching of print and companion system services" 2017-07-05 19:58:04 +00:00
Christopher Tate
93252de33e Require READ_EXTERNAL_STORAGE to read wallpaper imagery
We now require the READ_EXTERNAL_STORAGE permission for an app to
be allowed to read the system's wallpaper imagery.  This is a
logged-but-benign no-op failure for apps targeting API levels up
through Android O, but a crashing failure (SecurityException) for
apps that target API levels newer than O.

Also, marked the permission-requiring parts of the formal API
with appropriate @RequiresPermission annotations.

Bug 30770233
Test: bit CtsPermissionTestCases:.NoWallpaperPermissionsTest

Change-Id: Id75181f05d05e5ca32f5fefcbe15dc81de264dff
2017-07-05 18:29:53 +00:00
Julia Reynolds
7ca33079fd Hide some systemapi methods
Test: make
Change-Id: I0234ca06f68f0a25e1923e171cb6ef19d848aecd
Fixes: 62342239
Fixes: 62264035
2017-07-05 09:17:49 -04:00
Neil Fuller
c523f4dc0c Merge "Add dumpsys support to RulesManagerService" am: 348a1d635d am: 06c2f8e346 am: 61ea5e6c8f
am: 78526c3341

Change-Id: I2e4e2d5291d59933f2c6225384b2fb7464fb0e57
2017-07-03 10:02:45 +00:00
Neil Fuller
78526c3341 Merge "Add dumpsys support to RulesManagerService" am: 348a1d635d am: 06c2f8e346
am: 61ea5e6c8f

Change-Id: If516a2daeeb38490add4570bbd937801906b356d
2017-07-03 09:53:28 +00:00
Neil Fuller
61ea5e6c8f Merge "Add dumpsys support to RulesManagerService" am: 348a1d635d
am: 06c2f8e346

Change-Id: I23f60a0c235780afd551cbe5f546918317bfe098
2017-07-03 09:47:03 +00:00
Neil Fuller
06c2f8e346 Merge "Add dumpsys support to RulesManagerService"
am: 348a1d635d

Change-Id: Ib1b44ce174b625f2223dff72081ccfc7b2a9b390
2017-07-03 09:41:47 +00:00
Svet Ganov
ec7daa59be Avoid stale caching of print and companion system services
Test: manual

bug:62297669

Change-Id: I2029ec292a80aefcaf9f0aab27a0564c68486fe9
2017-06-30 12:03:02 -07:00
Neil Fuller
87b1128ddc Add dumpsys support to RulesManagerService
Override the dump method so RuleManagerService can dump its state
into logs. Crude argument support has been added for dumping
specific fields in an easy to process way (for test scripts to use).

Tested with:
make -j30 FrameworksServicesTests
adb install -r -g \
  "out/target/product/angler/data/app/FrameworksServicesTests/FrameworksServicesTests.apk"
adb shell am instrument -e package com.android.server.timezone -w \
  com.android.frameworks.servicestests \
  "com.android.frameworks.servicestests/android.support.test.runner.AndroidJUnitRunner"

Test: See above.
Test: Manual; adb shell dumpsys timezone [-format_state piscotz]
Bug: 31008728
Change-Id: I0ad83aa245232ed0b983ceacd8accfb876824d6f
2017-06-30 18:18:07 +01:00
Andreas Gampe
83085bb3dd Frameworks: Add agent to ProfilerInfo
Add an agent option to ProfilerInfo. If set, on bindApplication
attempt to attach the given agent to the app before loading the
app itself.

Bug: 62445317
Test: m
Test: Device boots
Test: Manual profiling tests
Test: cts/hostsidetests/services/activityandwindowmanager/util/run-test CtsServicesHostTestCases android.server.cts.ActivityManagerAmProfileTests
Test: Manual agent test
Test: cts-tradefed run commandAndExit cts-dev --module CtsJvmtiAttachingHostTestCases
Change-Id: I1f0c4121e22351fd3a964dd0a915100a620d4f84
2017-06-29 20:42:32 -07:00
Andreas Gampe
2b073a0e89 Frameworks: Clean up ProfilerInfo
Use a ProfilerInfo object in ActivityManagerService to reduce the
number of exposed fields. In preparation for adding an agent during
startup.

Bug: 62445317
Test: m
Test: Device boots
Test: Manual test for profiling
Test: cts/hostsidetests/services/activityandwindowmanager/util/run-test CtsServicesHostTestCases android.server.cts.ActivityManagerAmProfileTests
Change-Id: I5fa347ded760c263a8ce3754bb2631205ea7b4b8
2017-06-29 20:42:25 -07:00
Christopher Tate
2f4953a9b7 Merge "Don't synchronize inside getWallpaperColors()" into oc-dr1-dev am: 2de66f7be1
am: 0d95a0eefa

Change-Id: I9b5f7e4b60534d42728d54f5dd40320dbc518885
2017-06-29 22:44:38 +00:00