OSDN Git Service
Makoto Onuki [Wed, 5 Sep 2018 20:45:40 +0000 (13:45 -0700)]
Add new test module for system service with static / final mocking
And move AppStateTrackerTest for starter.
Bug:
114096820
Bug:
118510622
Test: atest FrameworksMockingServicesTests
Change-Id: Ie5bf44322f29e9971358a706cf44bc5c8a325c30
Merged-In: Ie5bf44322f29e9971358a706cf44bc5c8a325c30
(cherry picked from commit
5f732365c6a33c2115bfd159b8b9729b834c8568)
Hall Liu [Thu, 18 Oct 2018 20:36:06 +0000 (20:36 +0000)]
Merge "Add dynamic support for 4G/LTE/LTE+ icons"
Brad Ebinger [Thu, 18 Oct 2018 16:54:38 +0000 (16:54 +0000)]
Merge "Expose ImsExternalCallState constructor as @SystemApi"
Treehugger Robot [Thu, 18 Oct 2018 15:25:30 +0000 (15:25 +0000)]
Merge "CEC: Make TV try to dispatch the message first"
Treehugger Robot [Thu, 18 Oct 2018 15:04:30 +0000 (15:04 +0000)]
Merge "Change handling logic in SystemAudioAutoInitiationAction"
David Brazdil [Thu, 18 Oct 2018 13:34:59 +0000 (13:34 +0000)]
Merge "Add entries to hidden api greylist"
Xiangyu/Malcolm Chen [Thu, 18 Oct 2018 04:41:04 +0000 (04:41 +0000)]
Merge "Define EVENT_DEVICE_PROVISIONING_DATA_SETTING_CHANGE in DctConstants"
Treehugger Robot [Thu, 18 Oct 2018 04:24:05 +0000 (04:24 +0000)]
Merge "AudioService: Add Hearing Aid Switch Control"
weichinweng [Tue, 9 Oct 2018 10:02:17 +0000 (18:02 +0800)]
AudioService: Add Hearing Aid Switch Control
1) Add setBluetoothHearingAidDeviceConnectionState interface to control
suppressNoisyIntent flag.
2) Add check to confirm the previous device is active or not when want
to clean it.
Bug:
112279820
Test: Build Pass, BT off/on when play A2DP, Switch active device
Change-Id: I73f1236d44213c6cf4a2708f3c96144416cfa67d
Treehugger Robot [Wed, 17 Oct 2018 23:26:26 +0000 (23:26 +0000)]
Merge "audio: apply volume upon hearing aid device connection"
Shuo Qian [Wed, 17 Oct 2018 22:12:02 +0000 (22:12 +0000)]
Merge "Compare Emergency number display priority"
Malcolm Chen [Thu, 11 Oct 2018 00:24:48 +0000 (17:24 -0700)]
Define EVENT_DEVICE_PROVISIONING_DATA_SETTING_CHANGE in DctConstants
Test: unittest
Bug:
112020101
Change-Id: Icdbda89fb103a4312855d14ab3a365b37564f164
Treehugger Robot [Wed, 17 Oct 2018 20:30:02 +0000 (20:30 +0000)]
Merge "AudioService: log hearing aid connection and BECOMING_NOISY"
Hall Liu [Wed, 17 Oct 2018 19:58:53 +0000 (19:58 +0000)]
Merge "Add new carrier configs for RTT"
Treehugger Robot [Wed, 17 Oct 2018 19:39:39 +0000 (19:39 +0000)]
Merge "Move bpf project to system/bpf"
Jean-Michel Trivi [Fri, 28 Sep 2018 21:22:15 +0000 (14:22 -0700)]
AudioService: log hearing aid connection and BECOMING_NOISY
Bug:
112279820
Test: adb shell dumpsys audio, look under "device connection"
Change-Id: Ibaf77a43649a7dd2bc1b9d9df34ba79fd88ef5be
(cherry picked from commit
cc11d500b6269a7e9512f559a89bbe8f18ef7344)
Merged-In: Ibaf77a43649a7dd2bc1b9d9df34ba79fd88ef5be
Treehugger Robot [Wed, 17 Oct 2018 17:43:07 +0000 (17:43 +0000)]
Merge "AudioService: history of A2DP commands"
Brad Ebinger [Wed, 10 Oct 2018 17:54:56 +0000 (10:54 -0700)]
Expose ImsExternalCallState constructor as @SystemApi
1) Expose the ImsExternalCallState constructor as @SystemApi
so that vendors can use this class correctly.
2) Change the call ID from int->String to comply with RFC 4235.
Bug:
117555643
Bug:
115697579
Test: Manual
Change-Id: I980ec091c69d2b3179843bd8485955377b88712e
Jack Yu [Wed, 17 Oct 2018 15:56:41 +0000 (15:56 +0000)]
Merge "Supported v1.3 data profile"
David Brazdil [Thu, 11 Oct 2018 14:06:53 +0000 (15:06 +0100)]
Add entries to hidden api greylist
Bug:
116509788
Test: m appcompat
Change-Id: I5a1977fdeacab3f4aa3a7104c26931a2fcb21b20
Mathew Inwood [Wed, 17 Oct 2018 09:20:04 +0000 (09:20 +0000)]
Merge "Merge hidden API metadata into a single CSV file."
Jean-Michel Trivi [Mon, 2 Jul 2018 17:48:04 +0000 (10:48 -0700)]
AudioService: history of A2DP commands
Keep history of command coming from A2dpService in AudioService
logger.
Bug:
110186160
Test: connect/disconnect A2DP device and take bugreport,
or run $ adb shell dumpsys audio
Change-Id: Ice65c20e91aa2675fbacb1c326a53d5b02bba3e5
(cherry picked from commit
3bf75781cacb1cd181be43e454fef29c83cbeab9)
Merged-In: Ice65c20e91aa2675fbacb1c326a53d5b02bba3e5
Eric Laurent [Wed, 10 Oct 2018 00:45:58 +0000 (17:45 -0700)]
audio: apply volume upon hearing aid device connection
make sure hearing aid device volume is applied to music stream upon
hearing aid device connection.
Bug:
116145308
Test: repro steps in bug
Change-Id: Iccf6a78a0199c3a0b2aa80a39e7143bf715b261f
Treehugger Robot [Wed, 17 Oct 2018 04:48:36 +0000 (04:48 +0000)]
Merge "Fix Connect State message in Device details for Hearing Aids"
Chen Xu [Wed, 17 Oct 2018 04:10:47 +0000 (04:10 +0000)]
Merge "refactor radioPowerstate"
Chenbo Feng [Tue, 16 Oct 2018 00:31:43 +0000 (17:31 -0700)]
Move bpf project to system/bpf
The bpf project now have a new project directory in system/bpf instead
of inside netd. The network related bpf library is renamed to
libnetdbpf. Fix the dependency issue in framework to make sure no
regression.
Test: -m CtsNetTestCases -t android.net.cts.TrafficStatsTest
Bug:
112334572
Change-Id: Ibd477bf17d18d516aa520fb1569f4a395ef9abf0
Treehugger Robot [Wed, 17 Oct 2018 01:50:35 +0000 (01:50 +0000)]
Merge "iorap: Remove blank newline in TEST_MAPPING"
Shuo Qian [Wed, 17 Oct 2018 00:37:35 +0000 (00:37 +0000)]
Merge "Make SubscriptionManager.getSlotIndex public"
Treehugger Robot [Wed, 17 Oct 2018 00:18:07 +0000 (00:18 +0000)]
Merge "Stop using DIST_DIR directly, use dist-for-goals instead"
Treehugger Robot [Tue, 16 Oct 2018 23:49:35 +0000 (23:49 +0000)]
Merge "audioservice: fix a2dp connection race condition"
Eric Laurent [Thu, 14 Jun 2018 02:36:42 +0000 (19:36 -0700)]
audioservice: fix a2dp connection race condition
In case of fast (< 1 second) A2DP disconnect/connect sequence, there
is a potential race condition where the delayed disconnection message
(due to becoming noisy intent) is received after the not delayed
connection message.
- Make sure all messages related to device connection/disconnection
(including MSG_A2DP_DEVICE_CONFIG_CHANGE and MSG_BTA2DP_DOCK_TIMEOUT)
are handled by queueMsgUnderWakeLock().
- Make sure messages are processed in the same order as API calls.
- Add check for null address in makeA2dpDeviceUnavailableNow().
Bug:
109903807
Bug:
78837311
Test: repro steps in bugs. A2DP connection and playback
Change-Id: Ib81b3805f945f7206b1a60de74e9bbeeef89bdd0
(cherry picked from commit
3c4636c7127cd34728050d051ef3bd62829e877d)
Merged-In: Ib81b3805f945f7206b1a60de74e9bbeeef89bdd0
Treehugger Robot [Tue, 16 Oct 2018 22:21:33 +0000 (22:21 +0000)]
Merge "iorap: Add presubmit/postsubmit support"
Igor Murashkin [Tue, 16 Oct 2018 22:15:21 +0000 (15:15 -0700)]
iorap: Remove blank newline in TEST_MAPPING
Change-Id: I378e86327951daa05512efd2ac491d27f9995ddd
sqian [Thu, 11 Oct 2018 02:18:12 +0000 (19:18 -0700)]
Compare Emergency number display priority
Define the rules for emergency numbers that may have higher display
priority, and make Emergency number comparable for these values. This
is also essential for sorting the list so that an emergency number with
higher display priority should be listed in a lower index.
Test: Treehugger, unit test
Bug:
112657134
Change-Id: I46fb009ce862ec3c593a05b4b04e180faf198fc4
Jack Yu [Mon, 8 Oct 2018 22:57:12 +0000 (15:57 -0700)]
Supported v1.3 data profile
1. Supported IRadio v1.3 data profile.
2. Do not send data profile list when the list is empty.
3. Only set profile id when the data profile must persist on the
modem.
Test: Manual and unit tests
Bug:
73659459
Change-Id: I1414b5346cec1d617f7093c3761dbd77fe594a8b
Peiyong Lin [Tue, 16 Oct 2018 17:49:00 +0000 (17:49 +0000)]
Merge "[Graphics] Align Display P3 transfer function coefficients."
Treehugger Robot [Tue, 16 Oct 2018 17:31:33 +0000 (17:31 +0000)]
Merge "Remove libcore/io members from light grey list"
Peiyong Lin [Mon, 15 Oct 2018 22:56:05 +0000 (15:56 -0700)]
[Graphics] Align Display P3 transfer function coefficients.
The transfer function of Display P3 should be sRGB transfer function,
previously we defined f as 0.039, however, the sRGB transfer function defines f
as 0.04045. This patch fixes it.
BUG:
116726537
Test: Build, flash and boot
Change-Id: I247092d8ce939aa743f23a1f8688cbaf0874fb99
Merged-In: I247092d8ce939aa743f23a1f8688cbaf0874fb99
Nathan Harold [Tue, 16 Oct 2018 16:50:22 +0000 (16:50 +0000)]
Merge "Move SDK Check for getNeighboringCellInfo"
Treehugger Robot [Tue, 16 Oct 2018 16:47:08 +0000 (16:47 +0000)]
Merge "Fix issue with sort_api.sh"
Treehugger Robot [Tue, 16 Oct 2018 15:53:18 +0000 (15:53 +0000)]
Merge "Start on DexBuilder"
Treehugger Robot [Tue, 16 Oct 2018 14:48:33 +0000 (14:48 +0000)]
Merge changes I66e40b4b,I599a2ff9,I7c210623
* changes:
[PT16] Simplification of sendProxyBroadcast.
[PT15] Tiny bugfix in setGlobalProxy
[PT14] No-op refactoring of sendProxyBroadcast
Paul Duffin [Tue, 16 Oct 2018 13:19:18 +0000 (14:19 +0100)]
Remove libcore/io members from light grey list
These members are now specified using the d.a.c.UnsupportedAppUsage
annotation on the members themselves.
Test: ensured that generated light grey list did not change
Bug:
117818301
Change-Id: I51c2f9544517b46d0b8821fbeb5b008342b99770
Paul Duffin [Tue, 16 Oct 2018 13:28:26 +0000 (14:28 +0100)]
Fix issue with sort_api.sh
Should use -ne not -neq.
Test: run script manually
Bug:
115609023
Change-Id: I337ed43be1f9250e6c2b2c88d97c68a5c9e8941c
Treehugger Robot [Tue, 16 Oct 2018 11:43:58 +0000 (11:43 +0000)]
Merge "Fix flaky ScheduleCalendarTest"
Mathew Inwood [Fri, 5 Oct 2018 13:41:03 +0000 (14:41 +0100)]
Merge hidden API metadata into a single CSV file.
Add a python script to merge the CSV files, dealing with the fact that the
source columns may differ due to the annotation properties present in the
source.
Add this new file and the existing greylist.txt files as dependencies of
the 'dist' target, so that they appear as artifacts on the build server.
This allows them to be processed later by reading them from the build
server.
Test: m out/target/common/obj/PACKAGING/hiddenapi-greylist.csv
Bug:
117314178
Change-Id: Ib9e5da90e4c32333a3f4f02ee7f159f77086ae5e
Mathew Inwood [Tue, 16 Oct 2018 10:01:39 +0000 (10:01 +0000)]
Merge "Add new "max-sdk-p blacklist"."
Luke Huang [Tue, 16 Oct 2018 07:44:37 +0000 (07:44 +0000)]
Merge "Network-related commands porting"
Nathan Harold [Tue, 16 Oct 2018 03:15:51 +0000 (20:15 -0700)]
Move SDK Check for getNeighboringCellInfo
Move the SDK check for getNeighboringCellInfo() to
inside the phone process for security.
Bug:
117520186
Test: atest CtsPermissionTestCasesSdk28
Change-Id: I9ca059dad0ed5d2107af154e0a63c282133aba3d
chen xu [Thu, 11 Oct 2018 20:18:26 +0000 (13:18 -0700)]
refactor radioPowerstate
1. new System API for getRadioPowerState with permision check
2. new System API for onRadioPowerStateChanged in PhoneStateListener
3. replace radioState enum in CommandsInterface to telephonyMgr defined
int.
Bug:
117349311
Test: telephony unit test
Change-Id: I502568280fbf9213ca6bf1f7fb204d0d4ce86580
Merged-in: I502568280fbf9213ca6bf1f7fb204d0d4ce86580
Ryan Prichard [Mon, 15 Oct 2018 23:23:29 +0000 (23:23 +0000)]
Merge "Change ZipArchiveHandle from void* to ZipArchive*"
Ryan Prichard [Thu, 11 Oct 2018 05:20:10 +0000 (22:20 -0700)]
Change ZipArchiveHandle from void* to ZipArchive*
Bug: none
Test: m checkbuild
Exempt-From-Owner-Approval: owner is OOO for another week,
it's a fairly minor change to this repository
Change-Id: If4cf57619034ab98b06115ca60beb2fb26c4cd19
Treehugger Robot [Mon, 15 Oct 2018 23:21:45 +0000 (23:21 +0000)]
Merge "Update robolectric dependency to v3.6.2."
Treehugger Robot [Mon, 15 Oct 2018 23:10:41 +0000 (23:10 +0000)]
Merge "Add Feature Flag for Hearing Aid Profile"
Stanley Tng [Mon, 1 Oct 2018 05:43:06 +0000 (22:43 -0700)]
Fix Connect State message in Device details for Hearing Aids
In the Device details of Settings App and when using two Hearing Aids
devices (left and right sides), this will fix the summary messages
for these two devices. Previously, the connect state of the summary
messages are inconsistent and does not always update. This CL will
always make sure that both side devices are refreshed at the same time
and also make sure that we get the summary messages of both sides.
Also added Robo tests for the changes.
Test: Manual tests and also ran RunSettingsLibRoboTests and RunSettingsRoboTests.
Bug:
117074814
Bug:
116317072
Change-Id: Ia9df6facd99ae91ebb4a819f61ea27551ce35efe
Merged-In: Id2dc364dfa815e72db91b92bcee9745e6c40d34a
Merged-In: Ia9df6facd99ae91ebb4a819f61ea27551ce35efe
Beverly [Mon, 18 Jun 2018 20:42:14 +0000 (16:42 -0400)]
Fix flaky ScheduleCalendarTest
Accurately get the next day.
Test: atest com.android.server.notification.ScheduleCalendarTest
Fixes:
110355145
(cherry picked from commit
fe099b59ec4d6e387837082310326a2a7564b2c3)
Test: Treehugger
Bug:
110355145
Change-Id: Idc20944679b44b30a40eb65d958df9fffec69375
Merged-In: Idc20944679b44b30a40eb65d958df9fffec69375
Eric Holk [Thu, 20 Sep 2018 19:03:10 +0000 (12:03 -0700)]
Start on DexBuilder
This change begins work on DexBuilder, which will allow us to generate DEX files
directly from layouts. This version is rather limited, but we will expand its
functionality in future CLs. The DexBuilder in this CL can create a DEX file
from scratch, define classes, and define methods on those classes. Within
methods, it supports extremely simple instructions, such as storing a small
constant in a register and returning a value from a register. Additionally,
there are tests to make sure that at least at a structural level, the generated
DEX files are valid.
DexBuilder and its associated builder classes use functionality from
libartdexfile and the Dex Slicer tool to support the actual encoding of DEX
files.
Test: atest, also manually tested by loaded a generated DEX file in an Android
app and verifying its behavior.
Change-Id: Iaa01aa7e3a0c7e4d5f4fa8dbce1492499c93c222
Selim Cinek [Mon, 15 Oct 2018 22:15:19 +0000 (22:15 +0000)]
Merge "Fix overlap between operator name and heads-up notification"
Treehugger Robot [Mon, 15 Oct 2018 21:54:19 +0000 (21:54 +0000)]
Merge "Telephony light grey list clean up for Q"
Igor Murashkin [Tue, 9 Oct 2018 21:56:33 +0000 (14:56 -0700)]
iorap: Add presubmit/postsubmit support
Also add support for temporarily disabling selinux
while running the iorap binder integration tests.
Test: atest --test-mapping frameworks/base/startop/iorap
Bug:
72170747
Change-Id: I0a5a006e28d4e1775aea4087c1b4731ebd3898a4
Phil Weaver [Mon, 15 Oct 2018 20:53:39 +0000 (20:53 +0000)]
Merge "Grant shell permission to manage accessibility"
Tetsutoki Shiozawa [Wed, 5 Sep 2018 04:17:01 +0000 (13:17 +0900)]
Fix overlap between operator name and heads-up notification
The title of heads-up notification was shown incompletely
becaue it's covered by operator name.
To fix this issue, the operator name should be hidden
when a heads-up notification is shown.
Fixes: b/
116533819
Test: atest SystemUITests
Test: manual - enable config_showOperatorNameInStatusBar
and show a heads-up notification
Merged-In: Id3318cd7cb2c9b6950392fadd11d02ab873d84c5
Change-Id: Id3318cd7cb2c9b6950392fadd11d02ab873d84c5
Neil Fuller [Mon, 15 Oct 2018 20:01:24 +0000 (20:01 +0000)]
Merge "Remove explicit dependencies on conscrypt"
Suren Baghdasaryan [Mon, 15 Oct 2018 19:47:54 +0000 (19:47 +0000)]
Merge "Request lmkd to purge its list of pids after establishing connection"
sqian [Sat, 13 Oct 2018 01:41:19 +0000 (18:41 -0700)]
Make SubscriptionManager.getSlotIndex public
- Make public
- Improved the documentation
- Rename subId to subscriptionId
- Make INVALID_SIM_SLOT_INDEX public
Test: Treehugger
Bug:
113072551
Change-Id: I61376966868f62db841ffd1b9c8ac045054e2207
Merged-In: I61376966868f62db841ffd1b9c8ac045054e2207
chen xu [Sat, 13 Oct 2018 01:27:42 +0000 (18:27 -0700)]
Telephony light grey list clean up for Q
Bug:
112477300
Test: Telehony unit test
Change-Id: I5229224fe9a65b3647a42070f287e23f67084bda
Merged-in: I5229224fe9a65b3647a42070f287e23f67084bda
Suren Baghdasaryan [Wed, 10 Oct 2018 21:22:20 +0000 (14:22 -0700)]
Request lmkd to purge its list of pids after establishing connection
lmkd keeps a list of pids registered by ActivityManager, however on rare
occasions when framework restarts and lmkd survives that list has to be
purged. Request lmkd to clear its pid list immediately after establishing
connection to it.
Bug:
116801366
Test: locally by killing zygote process
Change-Id: Id8c81e0cb0c4cf03b8faa0add5a9514fd3cd0c0c
Signed-off-by: Suren Baghdasaryan <surenb@google.com>
Steven Moreland [Mon, 15 Oct 2018 16:20:47 +0000 (16:20 +0000)]
Merge "JavaBBinder: implement getInterfaceDescriptor"
Mathew Inwood [Fri, 5 Oct 2018 14:47:29 +0000 (15:47 +0100)]
Add new "max-sdk-p blacklist".
This will contain greylist entries accessible by apps with a
targetSdkVersion of less than Q. Currently empty, will be populated in
follow up CLs.
For now, these APIs are just merged into the light greylist at build time,
pending support in the runtime for implementing the correct runtime
behavior.
Also fix a bug in sort_api.sh so it deals with empty API lists
correctly.
Bug:
115609023
Test: m
Change-Id: I213874062f393f96d120648a934ae5ad7aba93af
Neil Fuller [Mon, 15 Oct 2018 15:25:35 +0000 (16:25 +0100)]
Remove explicit dependencies on conscrypt
The dependency is unnecessary since conscrypt is
now included in the "standard libraries".
Test: build
Bug:
113148576
Change-Id: I5d6ae56af35fddb452fdd5b6abbb47178c1bfdc0
Lorenzo Colitti [Mon, 15 Oct 2018 13:36:45 +0000 (13:36 +0000)]
Merge "Change permissions checks for setAirplaneMode."
Beverly Tai [Mon, 15 Oct 2018 13:27:41 +0000 (13:27 +0000)]
Merge "Prevent NFE in SystemUI when parsing invalid int"
Chalard Jean [Fri, 8 Jun 2018 10:46:44 +0000 (19:46 +0900)]
[PT16] Simplification of sendProxyBroadcast.
sendProxyBroadcast is always called with the same argument, and
it would make no sense with another argument anyway. Remove it.
This concludes the ProxyTracker refactoring with 227 lines removed
from ConnectivityService, a lot clarified, and some bugs removed.
Things can still be improved, but presumably at a much higher cost.
Next steps are : write tests, now that ProxyTracker is both testable
and mockable. And try to pour some gasoline on the PROXY_CHANGE_ACTION
broadcast, see if it burns well.
Test: runtest
Change-Id: I66e40b4bf5cfd0b2dc4fa37ea97b3429fe1b7e6c
Chalard Jean [Fri, 8 Jun 2018 10:45:27 +0000 (19:45 +0900)]
[PT15] Tiny bugfix in setGlobalProxy
This bug has existed for a long time. If mDefaultProxyEnabled is
false, then the mDefaultProxy member should obviously not be used
in the broadcast.
Test: runtest
Change-Id: I599a2ff9f96d4667e824cf000c2125f86010bb02
Chalard Jean [Fri, 8 Jun 2018 10:39:24 +0000 (19:39 +0900)]
[PT14] No-op refactoring of sendProxyBroadcast
If mGlobalProxy is non-null, then getDefaultProxy returns mGlobalProxy
so the first change is a no-op.
If mGlobalProxy is null and mDefaultProxyEnabled is true, then
getDefaultProxy returns mDefaultProxy, which has just been set to
proxyInfo, so the second change is a no-op.
If mGlobalProxy is null and mDefaultProxyEnabled is true, then
getDefaultProxy returns mDefaultProxy ; if mGlobalProxy is null and
mDefaultProxyEnabled is false, then getDefaultProxy returns null,
therefore the third change is a no-op.
Test: runtest
Change-Id: I7c21062302bf54f4fc917c82e0175975051a55ec
Treehugger Robot [Mon, 15 Oct 2018 01:32:16 +0000 (01:32 +0000)]
Merge "Build com.android.media.remotedisplay with java_sdk_library"
Stanley Tng [Tue, 19 Jun 2018 15:48:10 +0000 (08:48 -0700)]
Add Feature Flag for Hearing Aid Profile
Using the Settings App-Developer Options-Feature Flag, allow the user to
enable or disable the Hearing Aid Profile.
Bug:
116317072
Bug:
116044083
Test: Manual testing using Settings App
Change-Id: I58a9d339941e235242c443c85b6f4194b5a296c9
Merged-In: I58a9d339941e235242c443c85b6f4194b5a296c9
(cherry picked from commit
fe8c8337edc5e9d6b61d0942873538912d523db7)
Tobias Thierer [Sat, 13 Oct 2018 13:08:13 +0000 (13:08 +0000)]
Merge "Drop unused libcore.io imports."
Tobias Thierer [Sat, 13 Oct 2018 01:06:58 +0000 (02:06 +0100)]
Drop unused libcore.io imports.
This removes the last import of libcore.io.Libcore from frameworks.
This means that it can be safely hidden from frameworks in a follow-up
CL. Both of the unused imports in this CL were already removed on the
internal master branch (commit
a05a994610a8e55b5cda1059fa816f8796135d9c),
but that commit doesn't cherry-pick cleanly onto AOSP master.
The IoUtils import also appears unused, but it wasn't touched by the
above CL so this CL also leaves it alone.
Bug:
117548625
Test: Treehugger
Change-Id: Icc68c64ef2907372af848d74d9cf96070c89d52b
Treehugger Robot [Sat, 13 Oct 2018 00:47:45 +0000 (00:47 +0000)]
Merge "Remove unused imports of libcore.io.Libcore."
Nan Zhang [Sat, 13 Oct 2018 00:19:45 +0000 (00:19 +0000)]
Merge "Enable lint_as_errors for frameworks/base docs"
Treehugger Robot [Fri, 12 Oct 2018 23:37:23 +0000 (23:37 +0000)]
Merge "Fix implicit fallthrough warnings."
Phil Weaver [Fri, 12 Oct 2018 22:48:34 +0000 (15:48 -0700)]
Grant shell permission to manage accessibility
Bug:
116118615
Test: make
Change-Id: I6caa663a09a9119cd62561ed746cd139025edf44
Chih-Hung Hsieh [Fri, 12 Oct 2018 22:05:01 +0000 (15:05 -0700)]
Fix implicit fallthrough warnings.
Test: make checkbuild
Bug:
112564944
Change-Id: Ia33bf816fb6b179ac0a5a6a20bcb50c11b47431d
Nan Zhang [Fri, 12 Oct 2018 01:06:10 +0000 (18:06 -0700)]
Enable lint_as_errors for frameworks/base docs
Add back various error/warning related args while running doclava for
frameworks/base docs.
Test: m -j docs
Bug: b/
116163454
Change-Id: I9cbe3f0bd1b6acfe0b6e2c6567c78bb70f892c77
Chen Xu [Fri, 12 Oct 2018 18:02:17 +0000 (18:02 +0000)]
Merge "refactor data/voice roaming states"
Treehugger Robot [Fri, 12 Oct 2018 17:35:14 +0000 (17:35 +0000)]
Merge "Remove BluetoothDevice.ACTION_DISAPPEARED"
Tobias Thierer [Fri, 12 Oct 2018 16:43:10 +0000 (17:43 +0100)]
Update robolectric dependency to v3.6.2.
This is required for support of v53 .class files.
Test: The following tests pass both before and after this CL:
make RunFrameworksServicesRoboTests RunBluetoothRoboTests \
RunCarMessengerRoboTests RunKeyChainRoboTests \
RunManagedProvisioningRoboTests
Test: The above tests also pass when EXPERIMENTAL_USE_OPENJDK9=true
(they didn't pass with v3.6.1).
Test: The following tests fail both before and after this CL (error
trying to mock a final class):
make RunStorageManagerRoboTests RunEmergencyInfoRoboTests
Bug:
116872534
Change-Id: I903a3448af1c0be55cc4af098521b3ba422c5579
Nandana Dutt [Fri, 12 Oct 2018 17:31:39 +0000 (17:31 +0000)]
Merge "Add DumpstateOptions java implementation"
Neil Fuller [Fri, 12 Oct 2018 09:49:03 +0000 (09:49 +0000)]
Merge "Remove explicit dependencies on "core" libraries"
Chalard Jean [Fri, 12 Oct 2018 07:57:35 +0000 (07:57 +0000)]
Merge "NetworkMonitor: add log of CaptivePortal result"
Lorenzo Colitti [Tue, 9 Oct 2018 09:55:11 +0000 (18:55 +0900)]
Change permissions checks for setAirplaneMode.
Require NETWORK_SETTINGS (or NETWORK_SETUP_WIZARD) instead of the
legacy CONNECTIVITY_INTERNAL permission. The users are as follows:
- The system callers (Phone, Settings, SystemUI, VrSettings) all
have NETWORK_SETTINGS.
- SetupWizard has NETWORK_SETUP_WIZARD
- sl4a has NETWORK_STACK
Bug:
115302596
Test: builds, boots, airplane mode via SystemUI works
Change-Id: I8ca40182bd8b5e3fd9a82296c0cc28de30ed4baf
Chalard Jean [Fri, 12 Oct 2018 07:34:43 +0000 (07:34 +0000)]
Merge "[PT13] Simple cleanup of ProxyTracker."
Treehugger Robot [Fri, 12 Oct 2018 04:26:49 +0000 (04:26 +0000)]
Merge "Fix incorrect javadoc link"
Chalard Jean [Fri, 12 Oct 2018 04:23:16 +0000 (04:23 +0000)]
Merge "[PT12] Factor some code into ProxyTracker."
Chalard Jean [Fri, 12 Oct 2018 03:14:48 +0000 (03:14 +0000)]
Merge "Add log for debugging ConnectivityManager"
Treehugger Robot [Fri, 12 Oct 2018 00:50:32 +0000 (00:50 +0000)]
Merge "Add the metalava_enabled property"
Nan Zhang [Thu, 11 Oct 2018 23:44:28 +0000 (16:44 -0700)]
Fix incorrect javadoc link
Test: m -j docs with -lerror enabled for frameworks/base docs.
Bug: b/
116163454
Change-Id: I02a164b676397dd2d9e8a52ae344c1033b1a4029
Sooraj Sasindran [Thu, 11 Oct 2018 22:58:32 +0000 (22:58 +0000)]
Merge "Introduce AlternativeNetwork APIs"
chen xu [Thu, 4 Oct 2018 02:07:09 +0000 (19:07 -0700)]
refactor data/voice roaming states
1. migrate set/get roamingType from ServiceState to
NetworkRegState.set/get roamingType
2. migrate set/get roamingStateFromRegstate from ServiceState
to NetworkRegState.regState
3. new System API for neworkRegistration.isRoaming().
Bug:
116127096
Test: ServiceStateTest, ServiceStateProviderTest
Change-Id: Ib89744089c98713819c8d313240d629ddb77d0bf