Commit Graph

529013 Commits

Author SHA1 Message Date
Hall Liu
5abd8781fd Merge changes from topic "expose-call-forward" am: f0b822c8bb
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1471163

Change-Id: I12392eee398fef6be867a10cf6d627a1c4b3eea8
2020-10-22 21:26:05 +00:00
Hall Liu
84a9653e18 Expose and update the call forward/waiting APIs am: 8410239d72
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1471162

Change-Id: Icd499ce501a1b418e23a550154d642a52ccb5c3d
2020-10-22 21:22:32 +00:00
Hall Liu
4e254916f0 Merge changes from topic "telephonymanager-data-policy" am: 3a14c6bdcc
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1469718

Change-Id: I4dd5dfa39c61c04b995238f4f4dc4837871d0e58
2020-10-22 21:16:55 +00:00
Hall Liu
f784eebb36 Add new methods for setting mobile data policy am: 83bb093cc5
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1469717

Change-Id: I86ace597ffeca7bcb0bb73b2b5ea617df80627ab
2020-10-22 21:14:05 +00:00
Hall Liu
4c805f8ed6 Merge changes from topic "move-emergency-phone-update" am: 77b5c5a31b
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1470383

Change-Id: Id2974f5339afa48f40d9847cede33f184d12c612
2020-10-22 21:00:47 +00:00
Hall Liu
2c0e19cf79 Call onOutgoingEmergencyCall only once. am: 486ef8978d
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1470382

Change-Id: I3c5a098b8f22b1a032e297205684dbe4617b6e39
2020-10-22 20:58:35 +00:00
Hall Liu
f8e5b6fd6e Expose onEmergencyNumberListChanged, semantics change am: e182543791
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1469715

Change-Id: I00eef453ff044c5c5bc6878b61277c5e133b3dbe
2020-10-22 20:53:11 +00:00
Hall Liu
f0b822c8bb Merge changes from topic "expose-call-forward"
* changes:
  Move some of the call-forwarding related constants
  Expose and update the call forward/waiting APIs
2020-10-22 19:48:18 +00:00
Hall Liu
594dc4b920 Move some of the call-forwarding related constants
Move the call forwarding result constants into
CallForwardingInfoCallback and rename them to RESULT_*

Fixes: 169153246
Test: atest TelephonyManagerTest
Change-Id: I14b4d527807e92fe977b8304f8dd95e7cd93e819
Merged-In: I14b4d527807e92fe977b8304f8dd95e7cd93e819
2020-10-22 18:22:35 +00:00
Hall Liu
8410239d72 Expose and update the call forward/waiting APIs
Expose the call forwarding and call waiting APIs, update their
documentation, and convert them to async APIs due to their dependence on
network communication.

Fixes: 168655869
Test: atest android.telephony.cts.TelephonyManagerTest
Change-Id: Ic20bc99314c8538a3f75f6af9c37bc4d30781825
Merged-In: Ic20bc99314c8538a3f75f6af9c37bc4d30781825
2020-10-22 18:18:29 +00:00
Hall Liu
3a14c6bdcc Merge changes from topic "telephonymanager-data-policy"
* changes:
  Remove old methods for mobile data
  Add new methods for setting mobile data policy
2020-10-22 17:27:59 +00:00
Hall Liu
77b5c5a31b Merge changes from topic "move-emergency-phone-update"
* changes:
  Update docs for onEmergencyNumberListChanged
  Call onOutgoingEmergencyCall only once.
  Expose onEmergencyNumberListChanged, semantics change
2020-10-22 17:13:52 +00:00
Sarah Chin
8ab8d927f7 [automerger skipped] Merge "Add HANDLE_CAR_MODE_CHANGED permission" am: 2538a16428 -s ours
am skip reason: Change-Id If3ad86a2564ce3ba53afea44e8ad5bf02b8d51e0 with SHA-1 c363a3a148 is in history

Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1415309

Change-Id: I02f073be29e19a58723df4d74b0d21995f169d3e
2020-10-22 09:47:51 +00:00
Sarah Chin
2538a16428 Merge "Add HANDLE_CAR_MODE_CHANGED permission" 2020-10-22 07:15:03 +00:00
Chiachang Wang
e42b9b2b4d Merge "Use alternative PhoneStateListener formal API" am: 5d0529e6d0
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1466222

Change-Id: If80a6359b6570b5c99fcb1a5ace13f3599e5fc0d
2020-10-22 07:00:41 +00:00
Nazanin Bakhshi
fc5c95c7db Merge "initialized carrier_certificate_string_array to an empty array instead of null, so that when a certificate is removed, it is also removed in SubscriptionInfoUpdater#updateSubscriptionByCarrierConfig" am: 12231e3a46
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1469714

Change-Id: I02ca50b4067f1466728b67e8919591070ce752d4
2020-10-22 06:39:52 +00:00
Chiachang Wang
5d0529e6d0 Merge "Use alternative PhoneStateListener formal API" 2020-10-22 03:43:42 +00:00
Nazanin Bakhshi
12231e3a46 Merge "initialized carrier_certificate_string_array to an empty array instead of null, so that when a certificate is removed, it is also removed in SubscriptionInfoUpdater#updateSubscriptionByCarrierConfig" 2020-10-22 02:03:27 +00:00
Hall Liu
c4587ed1c9 Remove old methods for mobile data
Bug: 169367013
Test: builds
Change-Id: I9aa69c9bd8d31e6bbdd9a237b0aa2c3922431227
Merged-In: I9aa69c9bd8d31e6bbdd9a237b0aa2c3922431227
2020-10-22 01:08:30 +00:00
Treehugger Robot
2af9f0911e Merge "Change perf-setup.sh to perf-setup in run.sh" am: 5d1eaf9cee
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1461289

Change-Id: I207631383b632efdf8f333d37901c5c88afa7a96
2020-10-21 23:45:00 +00:00
Treehugger Robot
5d1eaf9cee Merge "Change perf-setup.sh to perf-setup in run.sh" 2020-10-21 23:42:10 +00:00
Steven Moreland
742771fdd7 Merge "Remove declaration of hidl manager -> base dep" am: 4ff4b2ee17
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1467918

Change-Id: I99696b90631ac1039058c89d1affc2eb3f57138f
2020-10-21 23:40:05 +00:00
Treehugger Robot
fbb42c3b08 Merge "Fix pointer arithmetic for ByteBuffers with non-zero positions" am: 8020e4addc
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1360889

Change-Id: Ib9830fafc1b04056386ddd076c682235eb74c17c
2020-10-21 23:31:38 +00:00
Brad Ebinger
371361d995 Merge changes from topics "cp_sip_transport_supported_api", "cp_sip_transport_supported_pipe" am: 9caec78557
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1453715

Change-Id: Iae859694e72a55c41f0bbf23bb6e5719f56bfed1
2020-10-21 23:25:50 +00:00
Hall Liu
83bb093cc5 Add new methods for setting mobile data policy
Add isMobileDataPolicyEnabled and setMobileDataPolicyEnabledStatus in
TelephonyManager. These are intended to replace the mms-always-allowed
and data-during-voice-call setters/getters.

Old methods will be removed in a follow up commit.
Fixes: 169367013
Test: atest TelephonyManagerTest

Change-Id: I6033a84f0a0163e460343ebf603d66078455fe38
Merged-In: I6033a84f0a0163e460343ebf603d66078455fe38
2020-10-21 16:23:34 -07:00
Brad Ebinger
6e0f901a04 Pipe through new SipTransport IInterface to listeners am: c50aeb319a
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1453356

Change-Id: Ifbd7c090817bbf69c2d0c2c0397d688d22e2280a
2020-10-21 23:18:34 +00:00
Steven Moreland
4ff4b2ee17 Merge "Remove declaration of hidl manager -> base dep" 2020-10-21 23:14:11 +00:00
Hall Liu
bed564c956 Update docs for onEmergencyNumberListChanged
Clarify structure of the argument for the onEmergencyNumberListChanged
callback based on API council feedback.

Bug: 166230518
Test: NA
Change-Id: I9819337da12a17dc4736ba97b00018a156274680
2020-10-21 16:10:59 -07:00
Hall Liu
486ef8978d Call onOutgoingEmergencyCall only once.
For backwards compatibility, instead of calling both the old and new
versions of onOutgoingEmergencyCall, only call the new version, and call
the old version from the default impl of the new version instead.

Change suggested by API council.

Bug: 166230518
Test: atest CtsTelecomTestCases:OutgoingCallTest
Change-Id: Ifa9276cc615d0e33d37ebc702dbc0cd155e0d489
2020-10-21 16:10:21 -07:00
Hall Liu
e182543791 Expose onEmergencyNumberListChanged, semantics change
Expose the onEmergencyNumberListChanged method, which seems to have been
left hidden inadvertently when introduced.

Add a new version of onOutgoingEmergencyCall that supplies a
subscription ID and deprecate the old one. Along with this, send
emergency call events from any subscription to all listeners regardless
of which subscription the listener specified.

Test: atest CtsTelecomTestCases:OutgoingCallTest
Bug: 162647577
bug: 165660452
Change-Id: Ia0e10bfb3376ff82d03a6dbc4bf71c22b0ace366
Merged-In: Ia0e10bfb3376ff82d03a6dbc4bf71c22b0ace366
2020-10-21 16:07:04 -07:00
Treehugger Robot
8020e4addc Merge "Fix pointer arithmetic for ByteBuffers with non-zero positions" 2020-10-21 23:03:09 +00:00
Nazanin
c4eb0d2ff0 initialized carrier_certificate_string_array to an empty array
instead of null, so that when a certificate is removed, it is also
removed in SubscriptionInfoUpdater#updateSubscriptionByCarrierConfig

Bug: 162700101
Test: manual
Change-Id: I921007498f42119581f565fcc6625c1275c59df8
Merged-In: I921007498f42119581f565fcc6625c1275c59df8
2020-10-21 15:45:00 -07:00
Brad Ebinger
9caec78557 Merge changes from topics "cp_sip_transport_supported_api", "cp_sip_transport_supported_pipe"
* changes:
  Add isSupported implementation for SipTransport
  Pipe through new SipTransport IInterface to listeners
2020-10-21 22:28:56 +00:00
Brad Ebinger
4b14954fb4 Add isSupported implementation for SipTransport
Add implementation for SipDelegateManager#isSupported as well
as CTS tests.

Bug: 154763999
Test: atest CtsTelephonyTestCases
Merged-In: I7fbd39a8ff17c4e947fdbcca148857684faa3252
Change-Id: I7fbd39a8ff17c4e947fdbcca148857684faa3252
2020-10-21 13:25:20 -07:00
Brad Ebinger
c50aeb319a Pipe through new SipTransport IInterface to listeners
Create base SipTransport implementation and make it available to
listeners.

Expose new SipDelegate creation capability to the framework from the
ImsService.

The next CL will start the integration of the SipDelegateManager
with the framework and SipTransport.

Bug: 154763999
Test: atest FrameworksTelephonyTests TeleServiceTests
Merged-In: I9a51b850f370a865c9d9109f238e8ed2eea4b6f6
Change-Id: I9a51b850f370a865c9d9109f238e8ed2eea4b6f6
2020-10-21 13:24:22 -07:00
Devin Moore
d7ddcafe52 Merge "Change error log to fatal when failing to register framework HALs" am: 7cfb31506e
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1466490

Change-Id: I9876e3fbf36b41e280168e7b98e5bef4868cb43f
2020-10-21 17:11:53 +00:00
Devin Moore
7cfb31506e Merge "Change error log to fatal when failing to register framework HALs" 2020-10-21 16:57:34 +00:00
Devin Moore
bc629a9021 Merge "system_server: Add log for skipping registration of framework service" am: ddfa46368e
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1465810

Change-Id: I75d6f44705862993de2922803c143c850af2a4f7
2020-10-21 16:19:07 +00:00
Devin Moore
ddfa46368e Merge "system_server: Add log for skipping registration of framework service" 2020-10-21 15:41:34 +00:00
Gavin Corkery
111f411617 Merge changes from topic "bugreporting-aosp-sync" am: 8fafabfed1
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1440641

Change-Id: Ie6cb1f3ca017d708c75d0d3641e2b5ea6de2799c
2020-10-21 12:10:31 +00:00
Dieter Hsu
b07a5734df Add BugreportManagerTestCases to bugreport presubmit am: 59a1d2b4aa
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1440640

Change-Id: I22323ce15962f41e91715c9f8ff469346153d5da
2020-10-21 12:09:24 +00:00
Dieter Hsu
3fcbbccd90 Enable bug report tests in pre/postsubmit am: 6765448386
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1440639

Change-Id: I1188d3101d62d630b0982804643cd022e22868a8
2020-10-21 12:06:27 +00:00
Dieter Hsu
5974c9fa91 Run bugreport unit test without script am: 31f9d09ba9
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1440638

Change-Id: I79ef712162056be9cf9909e1017f54723ea70dd1
2020-10-21 12:03:35 +00:00
Gavin Corkery
8fafabfed1 Merge changes from topic "bugreporting-aosp-sync"
* changes:
  Fix consent timed out to sharing bugreport data
  Add BugreportManagerTestCases to bugreport presubmit
  Enable bug report tests in pre/postsubmit
  Run bugreport unit test without script
2020-10-21 11:48:11 +00:00
Gavin Corkery
8d1462d5eb Merge "Fix Rescue Party observability criteria" am: 51704f4d07
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1469282

Change-Id: I702c2893aab576fd798de0d0878788e855c39801
2020-10-21 11:10:27 +00:00
Gavin Corkery
51704f4d07 Merge "Fix Rescue Party observability criteria" 2020-10-21 10:55:23 +00:00
Anton Hansson
a1e66b4d43 Merge "Dist the merged api txts for normal builds too" am: 208cdcbf3f
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1468242

Change-Id: Ia6e2c3fff4393f9351b4af905b1a2c2a1ff79c83
2020-10-21 10:10:08 +00:00
Anton Hansson
208cdcbf3f Merge "Dist the merged api txts for normal builds too" 2020-10-21 09:54:49 +00:00
Gavin Corkery
b6a3409500 Fix Rescue Party observability criteria
The previous behavior erroneously returned if the package
was not found by PackageManager#getModuleInfo, which means
the persistent process check would never be performed. This
caused packages like com.android.systemui to not be handled
by Rescue Party's mitigation logic. Instead, ensure that
both cases are checked.

Test: setprop persist.sys.enable_rescue true,
      adb shell setprop debug.crash_sysui 1,
      adb shell kill `pidof com.android.systemui`,
      ensure recovery mode is reached
Bug: 169284310
Change-Id: Ifec19b8daba1dacc7f5efcfa47ed3c3a046612e3
Merged-In: Ifec19b8daba1dacc7f5efcfa47ed3c3a046612e3
(cherry picked from commit f2abc4e6fa)
2020-10-21 10:37:41 +01:00
Treehugger Robot
0220e9b3f4 Merge "CEC: Set IO looper to control service in message validator test" am: 8c82061a05
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1463903

Change-Id: I9af41dc2ea88671abe760de8de4fb93379d7703b
2020-10-21 09:26:10 +00:00