438369 Commits

Author SHA1 Message Date
Treehugger Robot
938bc05883 Merge "Add new UnsupportedAppUsage annotation as lib dependency." 2019-12-12 12:10:55 +00:00
Neil Fuller
51c61e8bdb Merge "Handle multiple phoneIds in time detection" 2019-12-12 11:33:13 +00:00
Treehugger Robot
ad60ef88e0 Merge "Make getNetworkSpecifier() public API." 2019-12-12 11:29:24 +00:00
Jeongik Cha
ea1b85a5eb Merge "Declare ParceledListSlice as generic type" 2019-12-12 06:00:34 +00:00
Chalard Jean
7412d7aa61 Make getNetworkSpecifier() public API.
The builder lets clients set it, and this may be useful for
unit tests of apps. It should be public.
The need arises from uses of this in WiFi and Telephony
network factories.

Test: build
Bug: 135998869
Change-Id: I57279cac139c28e8654d2066ba0c60edd1e6cd98
2019-12-12 13:10:55 +09:00
Treehugger Robot
ceeb04aeaf Merge "Use new api to disconnect all bt profiles" 2019-12-12 03:18:05 +00:00
Brad Ebinger
7de7f018e8 Merge "Add CarrierConfig for roaming PLMNS that will need emer DDS switch" 2019-12-12 02:10:10 +00:00
Meng Wang
6fce89f8b6 Merge "Remove ACTION_PRECISE_DATA_CONNECTION_STATE_CHANGED" 2019-12-11 21:23:43 +00:00
Artur Satayev
700e08b291 Add new UnsupportedAppUsage annotation as lib dependency.
Bug: 145132366
Test: m
Change-Id: Ibb7f8424186149365354a96249c06c9fccde66bd
Merged-In: Ibb7f8424186149365354a96249c06c9fccde66bd
2019-12-11 19:44:16 +00:00
Meng Wang
ce7d2e8fe3 Merge "Remove hidden API usage: CallQuality no-argument constructor." 2019-12-11 19:13:39 +00:00
Meng Wang
52a4a79b8c Remove ACTION_PRECISE_DATA_CONNECTION_STATE_CHANGED
and extra keys only used by the intent.

Those hidden constants are only used by TelephonyRegistry, blocking
telephony mainline. Remove them since no one uses the broadcast.

Bug: 140908357
Test: make
Change-Id: I8fffe2996f233f2422173e9823810523ce80f2e5
2019-12-11 10:10:55 -08:00
Meng Wang
79c83587c3 Merge "Remove ACTION_PRECISE_CALL_STATE_CHANGED and its extras." 2019-12-11 17:49:32 +00:00
Anton Hansson
c410209ec3 Merge "Use ro.build.version.extensions.r" 2019-12-11 16:49:02 +00:00
Anton Hansson
d8ac5fa1b2 Use ro.build.version.extensions.r
The sdk_info prop is mostly there as a communication channel
if we need to channel more information in the future. For now,
using ro.build.version.extensions.r (which is "stable") is sufficient.

Bug: 137191822
Test: boot and getprop ro.build.version.extensions.r
Change-Id: I630c235fd98eaeda9086fa490914e56556b18706
2019-12-11 13:26:15 +00:00
Chiachang Wang
67dfdbc94f Merge "Add TetherConfigParcel to improve startTetheringWithConfiguration" 2019-12-11 06:28:25 +00:00
Chalard Jean
b24e34c19b Merge changes Ibebdae14,I0c097e77,I6c889b15,I4771f2e9,I2a52f7f4
* changes:
  [NS A23.1] Minor cleanup
  [NS A23] Move a synchronized block in a central place
  [NS A22] Small refactoring
  [NS A21] More cleanup
  [NS A20] Cleanup
2019-12-11 04:08:46 +00:00
Zoey Chen
a9ef0e9bb4 Merge "[TelephonyMainline] Cannot use UnsupportedAppUsage API, use appropriate method to replace it." 2019-12-11 03:10:33 +00:00
Meng Wang
b857ba95e8 Remove ACTION_PRECISE_CALL_STATE_CHANGED and its extras.
Those hidden constants are only used in TelephonyRegistry, blocking
telephony mainline. Remove them since no one uses the broadcast.

Bug: 140908357
Test: make
Change-Id: I2425c157d9d24a8ec18cb66a2ce12c12e0fe49e1
2019-12-10 18:22:10 -08:00
Meng Wang
be15dbaee5 Remove hidden API usage: CallQuality no-argument constructor.
Bug: 140908357
Test: make
Change-Id: I4ad0aec7db8d588e8260479bdf4039a025903320
2019-12-10 15:17:22 -08:00
Anton Hansson
be64b53449 Merge "Whitelist new lint errors" 2019-12-10 22:51:55 +00:00
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
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
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
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