Commit Graph

375190 Commits

Author SHA1 Message Date
Nathan Harold
9ec58ff433 Merge "Move SDK Check for getNeighboringCellInfo" 2018-10-16 16:50:22 +00:00
Treehugger Robot
f943c52105 Merge "Fix issue with sort_api.sh" 2018-10-16 16:47:08 +00:00
Treehugger Robot
3e7d810a2f Merge "Start on DexBuilder" 2018-10-16 15:53:18 +00:00
Treehugger Robot
127421b2d0 Merge changes I66e40b4b,I599a2ff9,I7c210623
* changes:
  [PT16] Simplification of sendProxyBroadcast.
  [PT15] Tiny bugfix in setGlobalProxy
  [PT14] No-op refactoring of sendProxyBroadcast
2018-10-16 14:48:33 +00:00
Paul Duffin
c78bea41c6 Fix issue with sort_api.sh
Should use -ne not -neq.

Test: run script manually
Bug: 115609023
Change-Id: I337ed43be1f9250e6c2b2c88d97c68a5c9e8941c
2018-10-16 14:30:01 +01:00
Treehugger Robot
08667cc9c1 Merge "Fix flaky ScheduleCalendarTest" 2018-10-16 11:43:58 +00:00
Mathew Inwood
adbc7dfc28 Merge "Add new "max-sdk-p blacklist"." 2018-10-16 10:01:39 +00:00
Luke Huang
9b20115264 Merge "Network-related commands porting" 2018-10-16 07:44:37 +00:00
Nathan Harold
cb1c5ad25d 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
2018-10-15 20:15:51 -07:00
Ryan Prichard
f79542efd3 Merge "Change ZipArchiveHandle from void* to ZipArchive*" 2018-10-15 23:23:29 +00:00
Ryan Prichard
3addcd3965 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
2018-10-15 23:22:47 +00:00
Treehugger Robot
cc54c93376 Merge "Update robolectric dependency to v3.6.2." 2018-10-15 23:21:45 +00:00
Treehugger Robot
e4e653b8bf Merge "Add Feature Flag for Hearing Aid Profile" 2018-10-15 23:10:41 +00:00
Beverly
200a439aa6 Fix flaky ScheduleCalendarTest
Accurately get the next day.

Test: atest com.android.server.notification.ScheduleCalendarTest
Fixes: 110355145

(cherry picked from commit fe099b59ec)

Test: Treehugger
Bug: 110355145

Change-Id: Idc20944679b44b30a40eb65d958df9fffec69375
Merged-In: Idc20944679b44b30a40eb65d958df9fffec69375
2018-10-15 23:31:06 +01:00
Eric Holk
dbc36e2bcb 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
2018-10-15 15:26:11 -07:00
Selim Cinek
a3608c9116 Merge "Fix overlap between operator name and heads-up notification" 2018-10-15 22:15:19 +00:00
Treehugger Robot
b9749f750f Merge "Telephony light grey list clean up for Q" 2018-10-15 21:54:19 +00:00
Phil Weaver
cf092a87c2 Merge "Grant shell permission to manage accessibility" 2018-10-15 20:53:39 +00:00
Tetsutoki Shiozawa
f1e0f7adad 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
2018-10-15 20:52:21 +00:00
Neil Fuller
ca980ac83c Merge "Remove explicit dependencies on conscrypt" 2018-10-15 20:01:24 +00:00
Suren Baghdasaryan
287268db00 Merge "Request lmkd to purge its list of pids after establishing connection" 2018-10-15 19:47:54 +00:00
chen xu
253bdb7175 Telephony light grey list clean up for Q
Bug: 112477300
Test: Telehony unit test
Change-Id: I5229224fe9a65b3647a42070f287e23f67084bda
Merged-in: I5229224fe9a65b3647a42070f287e23f67084bda
2018-10-15 10:19:43 -07:00
Suren Baghdasaryan
2df4b03a63 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>
2018-10-15 16:22:08 +00:00
Steven Moreland
ffd40efec0 Merge "JavaBBinder: implement getInterfaceDescriptor" 2018-10-15 16:20:47 +00:00
Mathew Inwood
50dea42729 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
2018-10-15 16:38:12 +01:00
Neil Fuller
071d5b22d0 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
2018-10-15 16:25:35 +01:00
Lorenzo Colitti
3889ff53ed Merge "Change permissions checks for setAirplaneMode." 2018-10-15 13:36:45 +00:00
Beverly Tai
9d7e1fe726 Merge "Prevent NFE in SystemUI when parsing invalid int" 2018-10-15 13:27:41 +00:00
Chalard Jean
b50a276379 [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
2018-10-15 12:58:41 +09:00
Chalard Jean
534d4a9dc9 [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
2018-10-15 12:58:41 +09:00
Chalard Jean
19aa80f936 [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
2018-10-15 12:58:40 +09:00
Treehugger Robot
1ad4aed0b9 Merge "Build com.android.media.remotedisplay with java_sdk_library" 2018-10-15 01:32:16 +00:00
Stanley Tng
cbfcbd168b 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 fe8c8337ed)
2018-10-13 16:16:33 -07:00
Tobias Thierer
58d5c1e938 Merge "Drop unused libcore.io imports." 2018-10-13 13:08:13 +00:00
Tobias Thierer
eaabd9dc3e 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 a05a994610),
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
2018-10-13 02:07:02 +01:00
Treehugger Robot
2a520365da Merge "Remove unused imports of libcore.io.Libcore." 2018-10-13 00:47:45 +00:00
Nan Zhang
6622d0957d Merge "Enable lint_as_errors for frameworks/base docs" 2018-10-13 00:19:45 +00:00
Treehugger Robot
012692be3f Merge "Fix implicit fallthrough warnings." 2018-10-12 23:37:23 +00:00
Phil Weaver
1df928ff2b Grant shell permission to manage accessibility
Bug: 116118615
Test: make
Change-Id: I6caa663a09a9119cd62561ed746cd139025edf44
2018-10-12 15:48:34 -07:00
Chih-Hung Hsieh
6c5b82f7c5 Fix implicit fallthrough warnings.
Test: make checkbuild
Bug: 112564944
Change-Id: Ia33bf816fb6b179ac0a5a6a20bcb50c11b47431d
2018-10-12 15:05:01 -07:00
Nan Zhang
b03396ef2f 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
2018-10-12 14:48:12 -07:00
Chen Xu
6bd29ab2df Merge "refactor data/voice roaming states" 2018-10-12 18:02:17 +00:00
Treehugger Robot
2ac8c8a3e2 Merge "Remove BluetoothDevice.ACTION_DISAPPEARED" 2018-10-12 17:35:14 +00:00
Tobias Thierer
ee7b412c92 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
2018-10-12 18:32:08 +01:00
Nandana Dutt
52502ef1a1 Merge "Add DumpstateOptions java implementation" 2018-10-12 17:31:39 +00:00
Neil Fuller
18f9a2c24d Merge "Remove explicit dependencies on "core" libraries" 2018-10-12 09:49:03 +00:00
Chalard Jean
35d6512a5d Merge "NetworkMonitor: add log of CaptivePortal result" 2018-10-12 07:57:35 +00:00
Lorenzo Colitti
f5845d14e1 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
2018-10-12 16:35:46 +09:00
Chalard Jean
afa7fdabaa Merge "[PT13] Simple cleanup of ProxyTracker." 2018-10-12 07:34:43 +00:00
Treehugger Robot
293ab4941b Merge "Fix incorrect javadoc link" 2018-10-12 04:26:49 +00:00