438455 Commits

Author SHA1 Message Date
Brad Ebinger
f51c917af3 Add CarrierConfig for roaming PLMNS that will need emer DDS switch
When roaming, we assume that the roaming operator will support
control plane fallback for emergency SUPL. For roaming operators
that we know do not support control plane fallback, we must perform
a DDS switch before dialing an emergency number on that operator.

Bug: 144383368
Test: atest TeleServiceTests; manual
Merged-In: I4a033f89610fd409ea81c40230938720ca76541c
Change-Id: I4a033f89610fd409ea81c40230938720ca76541c
2019-12-10 22:47:17 +00:00
Treehugger Robot
e31b09c825 Merge "Fix to handle duplicate call id for conference call" 2019-12-10 22:28:24 +00:00
Treehugger Robot
e280c89075 Merge "Do not cache enabled tags in Java." 2019-12-10 22:26:16 +00:00
Meng Wang
b9d73629d1 Merge "Remove hidden API usage PhoneConstants.SUBSCRIPTION_KEY/SLOT_KEY" 2019-12-10 21:53:26 +00:00
David Su
0c472adb0d Expose CloseGuard as a public API
Wrap dalvik.system.CloseGuard and expose it as a
public API from android.util.

Bug: 145831809
Test: atest CloseGuardTest
Change-Id: Ia44c84a69a5fb693fb8bb1a075c18a60253cedfc
2019-12-10 13:46:24 -08:00
Chen Xu
20e05a4660 Merge "expose datafail cause used in telephony-sdk annotation class" 2019-12-10 21:39:35 +00:00
Jayachandran Chinnakkannu
b181ba61e2 Merge "Remove usage of IccCardConstants hidden APIs" 2019-12-10 21:31:17 +00:00
Yan Yan
48384c744f Merge "IKE API: Add getters for SessionParams, ConfigRequests" 2019-12-10 20:52:15 +00:00
Anton Hansson
12b972168f Whitelist new lint errors
These typedefs were incorrectly made public since the linter
wasn't catching the errors.

Bug: 145982314
Test: m
Change-Id: Id89b15ba34df01584d3d5afe9d4112fad9613dbc
Merged-In: Id89b15ba34df01584d3d5afe9d4112fad9613dbc
(cherry picked from commit 3e8f84f82f09c20b01a254d75c7d16f163c91d4e)
2019-12-10 20:42:02 +00:00
Treehugger Robot
1d23994a5a Merge "Add reset-all option to adb command" 2019-12-10 20:36:25 +00:00
Treehugger Robot
0f0a97368a Merge "Remove hidden API usage: PhoneConstants.PHONE_KEY" 2019-12-10 20:21:30 +00:00
atrost
a2498086cf Add reset-all option to adb command
Test: adb shell am compat reset-all com.android.compat.testapp
Bug: 140910281
Change-Id: Ife7c02d3db669a032f887c12a1dd0b921e51e7e4
2019-12-10 19:33:09 +00:00
Neil Fuller
19b4e5ac63 Rename SimpleTimeZoneDetectorStrategy
Rename SimpleTimeZoneDetectorStrategy to TimeZoneDetectorStrategyImpl.
Its defining characteristic is not simplicity - it's currently the
only implementation.

There are also some small cleanups around the
TimeDetectorStrategy.Callback not being needed by TimeDetectorService.

Bug: 140712361
Test: treehugger only
Change-Id: Icdf365a6a123574fb2cd21b89a9749a2f386c5fd
2019-12-10 19:15:38 +00:00
Neil Fuller
312da9b9fc Handle multiple phoneIds in time detection
Android has dual sim devices, which means multiple "phone" time
signals. NITZ is generally trusted and considered "good enough" in the
absence of better signals, but it is provided by carriers and it's not
unusual for the signals to be incorrect by minutes. We don't want the
device system clock just flicking to the latest signal received.

The changes to the SimpleTimeDetectorStrategy try to balance recency and
provide some consistency / determinism. See comments in the code for
details. The time zone detection works in a similar way, particularly
with respect to choosing the lowest phoneId in the event of a tie.

There will be a follow-up change to remove the word "Simple" from
SimpleTimeDetectorStrategy as it no longer applies.

Test: atest services/tests/servicestests/src/com/android/server/timedetector/SimpleTimeDetectorStrategyTest.java
Test: atest android.app.timedetector
Bug: 140712361
Change-Id: I228aff8709eabfcec910af22f7ab08fee32d566a
2019-12-10 19:15:38 +00:00
Treehugger Robot
b8c3662e72 Merge "Whitelist telephony-common, ims-common." 2019-12-10 18:52:38 +00:00
Anton Hansson
3f19841dc2 Merge "Migrate sdkext tests to CTS" 2019-12-10 18:36:56 +00:00
Treehugger Robot
2d9c3071d9 Merge "Do not clean up ART profiles during OTAs" 2019-12-10 18:30:03 +00:00
Meng Wang
4c18a3a5a6 Remove hidden API usage PhoneConstants.SUBSCRIPTION_KEY/SLOT_KEY
The two constants are hidden APIs and used as extra keys for a few
legacy broadcasts. No new external users are expected. So making a local
copy of them to keep backward compatibility, until the broadcasts are
removed in the future.

Also move ACTION_SUBSCRIPTION_PHONE_STATE_CHANGED constant out of
PhoneConstants since it's only used in TelephonyRegistry for backward
compatibility.

Bug: 140908357
Test: make
Change-Id: Ic7f15851377dcba5353dc6dade61b1dec96bcea5
2019-12-10 10:28:13 -08:00
Shuo Qian
8763091019 Merge "Integrate Signal Threshold for 5G" 2019-12-10 18:03:32 +00:00
Anton Hansson
370add0c6a Merge "Expose SdkExtension in the system SDK" 2019-12-10 17:43:38 +00:00
Jack Yu
9be4d11abb Merge "CarrierConfigManager: Adds API for persistent override of values" 2019-12-10 17:35:20 +00:00
Treehugger Robot
78b90b3a76 Merge "Remove broadcast of NETWORK_SET_TIMEZONE intent" 2019-12-10 16:54:49 +00:00
Charles Munger
49d17aa440 Deprecate incorrect year constant
Bug: 144042891
Test: No behavior changes
Change-Id: I5c92f371a49bac3adc4d0174505998b15537a0aa
2019-12-10 08:24:17 -08:00
Charles Munger
ea4916dac7 Merge "Deprecate AlteredCharSequence" 2019-12-10 16:20:40 +00:00
Treehugger Robot
3850162da5 Merge "BtHelper: Do not broadcast on CONNECTING" 2019-12-10 14:44:58 +00:00
Treehugger Robot
2bf6bf92c6 Merge "InterfaceConfiguration: Don't use @hide Sets class" 2019-12-10 13:52:48 +00:00
Florian Mayer
dd025de034 Do not cache enabled tags in Java.
As we are elimating the Binder notifications for the sysprop update for
atrace, we no longer have a callback that can be used to read the new
value of the enabled tags.

@CritivalNative calls are very fast (25 ns) so the overhead of always
going to native code to read the tags is negligible.

Test: flash & boot
Test: adb shell su root atrace -t 10 ss
Test: adb shell su root atrace -t 10 wm

Bug: 137366208

This is a cherry-pick of 9fd210224a9da04d043ca356a0829e82795ec6a4

Change-Id: I1a07fefd751ee28ca9a632a3d78a2925e8827b9c
Merged-In: I1a07fefd751ee28ca9a632a3d78a2925e8827b9c
2019-12-10 13:17:23 +00:00
Neil Fuller
9436134056 Merge "Extend LocalLog to enable UTC timestamps" 2019-12-10 09:42:38 +00:00
Anton Hansson
65596f4dd2 Merge "Revert "Add genrule for the current sdk proto"" 2019-12-10 07:50:42 +00:00
Torbjorn Eklund
074e97d45e CarrierConfigManager: Adds API for persistent override of values
Adds an API in CarrierConfigManager for persistent override of carrier
config values.

Bug: 144544956
Test: Manual
Merged-In: I50618921d1ec522d5cd0bd71a5f8e0b1877f1ce1
Change-Id: I50618921d1ec522d5cd0bd71a5f8e0b1877f1ce1
2019-12-10 06:51:38 +00:00
Treehugger Robot
69cad8ffbb Merge "Remove hidden APIs for callState and dataState." 2019-12-10 06:21:07 +00:00
Chen Xu
3c963e27b4 expose datafail cause used in telephony-sdk annotation class
1. expose one hidden dataFailCause used in telephony-sdk annotation
class
2. remove unused hidden dataFailCause referened in telephny-sdk
annotation

Bug: 140908357
Test: Build
Change-Id: Ia7ca9a2a354937946ba57017f4bd03fe880aeb6d
2019-12-09 21:18:59 -08:00
Chalard Jean
a6f315a358 [NS A23.1] Minor cleanup
The argument is always true.

Test: ConnectivityServiceTest
Change-Id: Ibebdae14e63e6baf74db054038ee575ec462f6d5
2019-12-10 14:15:15 +09:00
Chalard Jean
7ec1ff6414 [NS A23] Move a synchronized block in a central place
As the calls to this apparently need to be synchronized, let's
do it all in the same place instead of in all callers

Test: FrameworksNetTests
Change-Id: I0c097e7756fc155ba0243834b84626e86c68340e
2019-12-10 14:15:14 +09:00
Chalard Jean
1892115a76 [NS A22] Small refactoring
The point of this is to be able to move parts of processListenRequests
independently.

Test: FrameworksNetTests
Change-Id: I6c889b15696123c1120221977b0f36fa3d91de56
2019-12-10 14:15:14 +09:00
Chalard Jean
3cf4e7f161 [NS A21] More cleanup
Test: FrameworksNetTests NetworkStackTests
Change-Id: I4771f2e9151ff16a7045d9c3025ac686f244b22d
2019-12-10 14:15:14 +09:00
Chalard Jean
11becab648 [NS A20] Cleanup
A lot of this code can't be triggered at all.
• newNetwork.created in l.6488 is implied by newNetwork.everConnected
  in l.6357
• !newNetwork.isVPN() in l.6488 is implied by the fact that VPNs are
  always foreground, so oldPermission can't != newPermission in l.6488
• updateUids in l.6502 is useless because uids can't change during a
  rematch (because there is no code doing that). Metered state and
  roaming state similarly can't change during a rematch, so
  meteredChanged and roamingChanged are always false
• updateAllVpnCapabilities in l.6537 is useless because VPN do not
  inherit the foreground state of their underlying networks, which
  would be the only reason to call that in l.6537
• Object.equals() in l.6480 is necessary false because at this line
  it is known that the foreground state has changed, which must have
  caused the NET_CAPABILITY_FOREGROUND to be different, so the objects
  can't be equal

Test: FrameworksNetTests NetworkStackTest
Change-Id: I2a52f7f4a085f3eea22a1dd170af8f04671250ff
2019-12-10 14:14:57 +09:00
zoey chen
a65fe478b9 [TelephonyMainline] Cannot use UnsupportedAppUsage API, use appropriate method to replace it.
Bug: 145583708
Test: make
Change-Id: Ie2b330e23911198bd6a1aaaa3e03c0ff1ed12ac9
Merged-In: Ie2b330e23911198bd6a1aaaa3e03c0ff1ed12ac9
2019-12-10 11:26:01 +08:00
Calin Juravle
2227b5ae10 Do not clean up ART profiles during OTAs
Test: manual, upgrade & test for profiles
Bug: 135299330

(cherry picked from commit 86b6bbd4c593aedb3c5e27995727fb2cb55c604b)

Merged-In: I39d3376fc845ec5f2b474ea6f39a3c534ed2ce69
Change-Id: I29833113f7d0806733be669cfbc6fe2b206a982f
2019-12-10 03:04:35 +00:00
Betty Chang
04872c7b6b Merge "[Telephony MainLine] Add PackageChangeReceiver to replace PackageMonitor" 2019-12-10 02:14:10 +00:00
Chiachang Wang
afd43e48c6 Add TetherConfigParcel to improve startTetheringWithConfiguration
In order to support extensibility, update the interface between
netd to take a configuration parcel, instead of fixed
parameters.

Bug: 145777247
Test: atest FrameworksNetTests
Test: build, flash, on/off tethering
Change-Id: I3dbccc46ce4ddccfb6d518de240e4604b7f95eed
2019-12-10 10:07:12 +08:00
Treehugger Robot
888c3b0347 Merge "Convert apct/framework/presubmit-cloud-tf to Test Mapping Suite." 2019-12-10 01:59:36 +00:00
Victor Hsieh
6beab1fe53 Change fs-verity setup to the new format
This is due to upstream kernel API change.  With simpler API, many setup
code can now be removed.

Test: atest com.android.cts.apkverity.ApkVerityTest
Bug: 112037636
Change-Id: Ie88d55630b5d20ddbcbea4be7af9cf1fee47e44a
Merged-In: Ie88d55630b5d20ddbcbea4be7af9cf1fee47e44a
(cherry picked from commit 40ed1b4abd6abbf422fed44f648a06f6e73d65f6)
2019-12-09 17:48:59 -08:00
Myles Watson
866b1bbcd4 BtHelper: Do not broadcast on CONNECTING
Bug: 145575361
Test: 1. connect to the Teams meeting when BT connected
      2. switch to the earpiece
      3. switch back to BT
Change-Id: I3fba738289f6ed362e5be67bf37cd5fd4a22474e
2019-12-10 00:54:44 +00:00
Rahul Sabnis
4fee78ed6d Resolve BluetoothHearingAid API usages by Settings
Bug: 143244535
Test: Manual
Change-Id: Ide243e05166f03d465a50a7f2bdb82dbfd6815d0
2019-12-09 16:26:04 -08:00
Meng Wang
d4e90d2e09 Merge "Style fix." 2019-12-10 00:24:32 +00:00
Meng Wang
6213c3dbd2 Remove hidden APIs for callState and dataState.
Bug: 140908357
Test: make
Merged-In: I008f47447f15ac556c8a88297a8706543e25b3e8
Change-Id: I008f47447f15ac556c8a88297a8706543e25b3e8
2019-12-09 16:14:14 -08:00
Meng Wang
92bc49b463 Remove hidden API usage: PhoneConstants.PHONE_KEY
Broadcast ACTION_DEFAULT_SUBSCRIPTION_CHANGED keyed phoneId in extra
SubscriptionManager.EXTRA_SLOT_INDEX too.

Bug: 140908357
Test: make
Change-Id: Ib501050f8393471ffe5185670fa6b3dfb69c21f1
2019-12-09 16:06:51 -08:00
Benedict Wong
0d0bfc92e8 Merge "Add message template support for checkStringNotEmpty" 2019-12-09 23:59:30 +00:00
Meng Wang
3c97f033c5 Style fix.
To avoid merge conflict with internal branch.

Test: make
Change-Id: I04636443ea70f0cbac784a910c3d57fa80bd6bcc
Merged-In: I1b750751148925b4a7bd94553318907654012fc1
2019-12-09 23:30:16 +00:00