Commit Graph

378959 Commits

Author SHA1 Message Date
Tor Norbye
8752dedb76 Update signature files to the new format
The new format is described in tools/metalava/FORMAT.md.

Fixes: 116589402 Switch signature files over to the v2 format
Fixes: 112626813 Drop "synchronized" modifier from the signature format
Fixes: 122358225 Omit overriding methods that only differ in final [...]
Fixes: 73088715 API Review: Need doclava to output nullability
Fixes: 79739773 API Review: Metalava enforcing constants are constant
Exempt-From-Owner-Approval: Large-scale tooling change
Test: make sdk, make update-api, make checkapi
Change-Id: I8314f4e7099fa92e4f8ed7d283ccf836cc9a84a0
Merged-In: Ia248aece5250e84e47c815c601133b698bf644c2
2019-01-19 07:22:55 -08:00
Treehugger Robot
bc6e433ae4 Merge "Pass in calling UID and package to dumpstate" 2019-01-19 13:48:29 +00:00
Treehugger Robot
cd4ca49b18 Merge "Trigger PhoneStateListener onCallAttributesChanged" 2019-01-19 06:49:09 +00:00
Treehugger Robot
2e29def109 Merge "Remove the eng tag from invoke_mock_media_player" 2019-01-19 04:24:23 +00:00
Treehugger Robot
bce5b2f971 Merge "Fix potential NULL dereference errors." 2019-01-19 02:39:35 +00:00
Michele Berionne
98391daa29 Merge "Carrier restriction enhancements for Android Q" 2019-01-19 00:13:56 +00:00
Jean-Michel Trivi
36ee8e0244 Merge "[b/109850442]Fail to adjust volume when connect Ampplifier.]" 2019-01-18 23:30:27 +00:00
Treehugger Robot
a879fd8b02 Merge "Quiet SNaN inputs in Half.toFloat()" 2019-01-18 23:18:15 +00:00
Jayachandran Chinnakkannu
44631dfc26 Merge "Cellular data stall recovery based on networkStatus" 2019-01-18 22:54:38 +00:00
Jayachandran C
8ef41bf34f Cellular data stall recovery based on networkStatus
This CL introduces cellular data stall recovery based on
network validation result. It still re-uses the existing
recovery steps but the triggers are based on networkStatus
from NetworkMonitor when the network is bad. Each recovery
step is spaced by a configurable grace period (default 3 mins)
to avoid back to back recovery.

This feature is controlled by the following settings. If this
feature is enabled then the legacy data stall detection based
on TrafficStats will automatically be disabled.

Settings.Global.DATA_STALL_RECOVERY_ON_BAD_NETWORK
1 => Enabled (default)
0 => Disabled

Settings.Global.MIN_DURATION_BETWEEN_RECOVERY_STEPS_IN_MS
3 minutes is default value

Bug: 113916551
Test: atest FrameworksTelephonyTests:com.android.internal.telephony.dataconnection.DcTrackerTest

Change-Id: I738fc7ed08803de1114f7a3d79bf278449e94ea8
2019-01-18 22:52:16 +00:00
Dan Willemsen
7eccc741f0 Remove the eng tag from invoke_mock_media_player
The test using this has been suppressed for >9 years since we moved
testing from eng devices to userdebug.

Test: treehugger
Change-Id: Ie91f3b97a33a8e8e5be49ea2098f163567e2496d
2019-01-18 14:40:54 -08:00
Michele Berionne
a4a1ae499d Carrier restriction enhancements for Android Q
Add support for dual SIM to carrier restrictions.
Add support to exclude specific carriers in the list of carrier
restrictions.

Bug: 120313541
Test: Created test application to verify correct functionality.
Test: Added test cases for CarrierRestrictionRules.
Change-Id: I2723fb07db13efdafbc74471a87182e2d2a32718
Merged-In: I2723fb07db13efdafbc74471a87182e2d2a32718
2019-01-18 22:37:12 +00:00
Josh Gao
35c5160492 Merge "Avoid calling ParcelFileDescriptor.fromSocket on new Sockets." 2019-01-18 22:25:35 +00:00
Treehugger Robot
f2c0f4aadf Merge "Fix maindexclasses use of proguard" 2019-01-18 22:18:50 +00:00
Treehugger Robot
c823079843 Merge "Add SOONG_HIDDENAPI_FLAGS as hiddenapi_flags.csv dependencies" 2019-01-18 22:13:53 +00:00
Leland Miller
a24e12b46e Merge "Add thread ID reuse to API contract" 2019-01-18 19:32:37 +00:00
Nathan Harold
d9ff9597bc Merge "Remove LTE Rsrp Boost from SignalStrength" 2019-01-18 19:09:50 +00:00
Rene Mayrhofer
f0f0606365 Merge changes from topic "EnableAirplaneModeInSafeMode"
* changes:
  Add import of android.provider.Settings
  Enable airplane mode when booting in safe mode
2019-01-18 18:20:25 +00:00
Stanley Chang
b77e13d50a [b/109850442]Fail to adjust volume when connect Ampplifier.]
[Description]
Fix this issue : Don't suppress adjustments for single volume device

Test: Android TV: press vol button once
Change-Id: I2d37ce60c3e6928e00b036a805f01f281437f4ac
2019-01-18 11:56:05 -05:00
David Brazdil
4f895b2b16 Add SOONG_HIDDENAPI_FLAGS as hiddenapi_flags.csv dependencies
Hiddenapi build logic has moved to soong and list of flags.csv files
is now being passed to make files through SOONG_HIDDENAPI_FLAGS
variable. Adjust the build rule for hiddenapi_flags.csv accordingly.

Test: aosp compiles
Change-Id: I930f918fb36ce3532478035e83c2632559fd07b6
2019-01-18 16:18:06 +00:00
Jack Yu
56401a4c74 Merge "Split applyNewState into enable/disable APN" 2019-01-18 09:07:16 +00:00
Dan Willemsen
03d341adfb Fix maindexclasses use of proguard
Fixes: 122988865
Test: OUT_DIR=$HOME/out mmma frameworks/base/core/tests/hosttests/test-apps
Change-Id: I7f1f22dbe016182d2502643e45e095a5d8f60e41
2019-01-17 23:08:27 -08:00
Jayachandran Chinnakkannu
1136af9966 Merge "Update sharedPreference to false when exits new device provisioning" 2019-01-18 05:57:50 +00:00
Etan Cohen
895ef965f5 Merge "[CS] Add an option to block sensitive network specifier" 2019-01-18 05:03:44 +00:00
Fan Zhang
b576e24d73 Merge "Add Dynamic tiles for Settings" 2019-01-18 00:47:52 +00:00
Jack Yu
4810387d02 Split applyNewState into enable/disable APN
This is the preliminary work for adding handover
type for enable/disable APN.

Test: Telephony sanity tests + unit tests
Bug: 73659459

Merged-In: I51fd01d798cdf8d04fd41455126d017ac97f5f3f
Change-Id: I51fd01d798cdf8d04fd41455126d017ac97f5f3f
(cherry picked from commit ade6d1a66d)
2019-01-17 16:45:14 -08:00
chen xu
61fbefbbe9 Update sharedPreference to false when exits new device provisioning
Update sharedPreference to false when exits new device provisioning,
indicating no users modifications on the settings for new devices.
Thus carrier specific default roaming settings can be applied for new devices.

Bug: 122817867
Test: Manual test on VZW SIM in Setupwizard
Merged-in: Ic93b16f9f96ccc98d12f46c79ab1008ae0df8a07
Change-Id: Ic93b16f9f96ccc98d12f46c79ab1008ae0df8a07
2019-01-18 00:44:21 +00:00
Etan Cohen
836ad571eb [CS] Add an option to block sensitive network specifier
Network specifiers are used for 2 purposes:

- As part of network requests to specify more information on the type
  of requested networks.
- On network agents to specify information about their networks.

The network specifiers of the requests and agents are matched to each
other. However, the agent network specifier may contain sensitive
information which we do not want forwarded to any app.

This CL adds an option to strip out this agent network specifier before
the network capabilities are forwarded to the app.

Bug: 122160111
Test: atest ConnectivityServiceTest (frameworks/base/tests/net)
Test: atest frameworks/base/tests/net
Test: atest frameworks/opt/net/wifi/tests/wifitests
Test: atest frameworks/opt/telephony/tests/telephonytests
Test: atest frameworks/opt/net/ethernet/tests
Test: atest android.net.cts - some flakiness!
Test: act.py ThroughputTest
Test: act.py DataPathTest
Test: atest SingleDeviceTest (cts)
Change-Id: If08d312ff814bdde1147518f923199e6349503d5
2019-01-17 16:30:05 -08:00
Nathan Harold
b822af0022 Remove LTE Rsrp Boost from SignalStrength
The RSRP boost is no longer used in SignalStrength,
and there are no major users of this value to
justify keeping the value around even though there is
no direct alternative. Thus, removing it from
SignalStrength.

Bug: 122846268
Test: compilation (code removal)
Change-Id: I2d4409986a64aa13379e2894457d000ae43f92ca
2019-01-17 22:37:14 +00:00
Treehugger Robot
1ff7bdb095 Merge "Atom: Update BluetoothConnectionStateChanged atom" 2019-01-17 22:31:08 +00:00
Treehugger Robot
9a6046bb3b Merge "Atom: Add BluetoothLinkLayerConnectionEvent atom" 2019-01-17 22:30:43 +00:00
Brad Ebinger
1d8df63744 Merge "Use better Exception handling in IMS APIs." 2019-01-17 22:05:44 +00:00
Jayachandran Chinnakkannu
54ad67f884 Merge "Revert to previous constant value for ApnSetting.TYPE_DEFAULT." 2019-01-17 21:34:02 +00:00
yuemingw
681cba5ef5 Revert to previous constant value for ApnSetting.TYPE_DEFAULT.
Bug: 113097474
Test: m -j && atest ApnSettingTest
Change-Id: Iadbb5cde21a9f1fff77000f10cee218ca9806b2e
2019-01-17 21:31:22 +00:00
Nathan Harold
1699bb7d92 Merge "Invoke Both onDataConnectionStateChanged Methods" 2019-01-17 21:23:50 +00:00
Xin Li
7df94aba42 Merge "DO NOT MERGE - Merge pie-platform-release (PPRL.190105.001) into master" 2019-01-17 21:19:43 +00:00
Jordan Liu
b39f47fe46 Merge "EuiccManager handles multiple eUICCs using cardId" 2019-01-17 20:24:09 +00:00
Treehugger Robot
cb5f54e264 Merge "[LayoutInflater] Use precompiled layouts if available" 2019-01-17 18:39:48 +00:00
Shuo Qian
7b490e3810 Merge "Add Emergency Call Routing" 2019-01-17 18:05:45 +00:00
sqian
20799e41f4 Add Emergency Call Routing
Some countries or carriers require some emergency numbers that must
be handled with normal call routing or emergency routing.

Do not send service types from the database
as the emergency service categories

When searching for the corresponding service categories,
try to find the one that comes from the radio indication.

Test: Treehugger
Bug: 112657134
Change-Id: I95dadd07e9155c6e402a72339f307b4d7ef32fe4
Merged-In: I95dadd07e9155c6e402a72339f307b4d7ef32fe4
(cherry picked from commit a4bd738b8b)
2019-01-17 18:05:16 +00:00
Eric Holk
928bbac9c5 [LayoutInflater] Use precompiled layouts if available
This change enables the use of precompiled layouts, provided a couple of
conditions are met:

1. Precompiled layouts are enabled by the system property
   view.use_precompiled_layouts.
2. There is a file called compiled_view.dex in the application's code cache
   directory.

If these conditions are met, when a layout is inflated, the LayoutInflater will
first check if a precompiled version is available and use that. If anything goes
wrong, such as if the layout is not available or something goes wrong during the
inflation process, then the LayoutInflater will fall back on interpretting the
layout resource as before.

Bug: 111895153
Test: atest $ANDROID_BUILD_TOP/cts/tests/tests/view/src/android/view/cts/LayoutInflaterTest.java
Change-Id: Id050072c0206080322a0e876782ee2b66d03916d
2019-01-17 09:11:27 -08:00
Rene Mayrhofer
40c1196841 Add import of android.provider.Settings
One use case for changing settings during initialization is enabling airplane mode in safe mode bootup.

Test: manual
Change-Id: I846f09faca22b35f502a18348b70800d1edabb60
2019-01-17 08:32:31 -08:00
Nandana Dutt
161a44616c Pass in calling UID and package to dumpstate
BUG: 111441001
Test: builds
Change-Id: Ib623f6d4f50b81f331131cf3fda92fe2526dd6c7
2019-01-17 16:15:27 +00:00
Nikita Iashchenko
06eb53cede Merge "Switch TextClassifier implementation from native to java" 2019-01-17 15:34:02 +00:00
Treehugger Robot
1eb5db6cf0 Merge "Change the impl lib name of java_sdk_library" 2019-01-17 10:01:37 +00:00
Remi NGUYEN VAN
c37177a7d6 Merge "Add stable AIDL parcelables for LinkProperties" 2019-01-17 08:30:18 +00:00
Chiachang Wang
0a384663ed Merge "Avoid accessing proxy service if it's unavailable" 2019-01-17 07:51:00 +00:00
Remi NGUYEN VAN
4855a2e2c6 Add stable AIDL parcelables for LinkProperties
Test: atest android.net.shared.LinkPropertiesParcelableUtilTest
Bug: b/112869080
Change-Id: I2b69980e25bae9f51fb5b8cd3cafb403e6bd53da
2019-01-17 13:11:12 +09:00
Chiachang Wang
c517a6fa45 Avoid accessing proxy service if it's unavailable
In some cases, proxy service may not be available. Return
directly and avoid using it to prevent null object exception.

Bug: 122902676
Test: atest FrameworksNetTests
Change-Id: I5faec8716da168225928e8caec43086a1fbb0c3c
2019-01-17 02:43:38 +00:00
Rene Mayrhofer
0860f29a1f Enable airplane mode when booting in safe mode
Make it possible to boot in airplane mode when it was not turned on
before shutdown/reboot, either for situations where this is required by
regulation or to work around problems in normal boot. When safe mode is
engaged (Vol-Down), disabled in two stages:
1. Set Settings.Global.AIRPLANE_MODE_ON as early as possible for
   subsystems to react to it during their initialization.
2. Trigger the public ConnectiviyService API to enable airplane mode. This
   has to be done during later stages in initialization because it requires
   sending broadcasts, so some RF leakage may still happen before airplane
   mode is enabled (time window of a few seconds).

Bluetooth is not currently disabled and needs to be fixed by another
change. WiFi and NFC are turned off alongside cellular modems.

Test: manual
Bug: 120145930
Change-Id: I1d61990a9d6f7cd046d28b3e49ecf402dd485063
(cherry picked from commit afc9bc80941ea015cb591a0032e7553b5805fcc6)
2019-01-16 17:09:15 -08:00