Commit Graph

80 Commits

Author SHA1 Message Date
Hai Zhang
929085f3c3 Deprecate intent action to the old changing default dialer/SMS dialogs.
Bug: 124452117
Bug: 131204827
Test: presubmit
Change-Id: Iee636cf2dbcf4bdda5fc487d6883591e9463b0af
2019-05-10 17:48:30 -07:00
TreeHugger Robot
7269961ae3 Merge "Annotate Part Uri as @NonNull" into qt-dev 2019-04-17 18:10:39 +00:00
Leland Miller
7a29ca696e Annotate Part Uri as @NonNull
This is in response to automated API feedback.

Change-Id: I6f3c7675dc09bdca6bc30e1b7a8718e46f6ff4b4
Fix: 126699938
Test: Build and existing tests pass
2019-04-15 16:17:20 -07:00
calvinpan
ef7b99adae Add NonNull in Carriers constant
Add NonNull in Carriers constant

Bug: 126699334
Test: build pass
Change-Id: I1cc3db5a4bb778e1693ebfff37dca6e136251f1b
2019-04-12 10:51:22 +00:00
SongFerngWang
3cbcf75c4a Add 5G evolution icon
This add the 5GE icon to the system UI for specific carriers
LTE CA network.

Bug: 124768697
Test: build & manually test:
fake the operator name with pattern, and check the status bar data icon.

Change-Id: Ife0401219138c7ed22e7bfbd4d5e8648c54a98a8
Merged-In: Ife0401219138c7ed22e7bfbd4d5e8648c54a98a8
(cherry picked from commit 2d178eaabb)
2019-04-09 17:54:18 +00:00
Jack Yu
2e273b2f0f Passing ServiceState as byte array into ServiceStateProvider
This allows the provider to reconstruct the service state
object correctly. Also we can get rid of all the 'set'
methods in ServiceState, which we'd like to remove in the future.

Test: Manual
Bug: 129768354
Change-Id: I835d30e544b3ed49d5d0b6b1ca981a81e3ee2039
2019-04-02 11:27:34 -07:00
chen xu
45f6621391 rename precise carrier id to specific carrier id
Bug: 126727010
Test: atest CtsTelephonyTestCases

Change-Id: I4561ae8c15c429912695e0753b2ab3137a4e1e44
2019-03-06 17:54:01 -08:00
Jack Yu
1dbd55b6b0 Merge "Add Carriers.SKIP_464XLAT and includes ApnSetting" am: a11fb3bafe am: 29ccc27713
am: 9a5c6744e2

Change-Id: I068cc9bbf401db41a551767a47427b74e6c1b386
2019-03-05 10:08:57 -08:00
Yuuki Habu
aaea4a512f Add Carriers.SKIP_464XLAT and includes ApnSetting
Add the below flag as well and they are hidden now
 - SKIP464_XLAT_DEFAULT
 - SKIP464_XLAT_DISABLE
 - SKIP464_XLAT_ENABLE

Support new flag skip464xlat in ApnSetting

Bug: 69949375
Test: run TelephonyProviderTest

Change-Id: Ia85be92a41a7c1a0b8176718d17469880a0c42cb
2019-03-05 09:46:18 +09:00
Alan Stokes
6390339290 Merge "Fix javadoc HTML escaping." am: 693e023bac am: 4514c01068
am: 555ef78e35

Change-Id: I72faadd47fcd35ed8a5fc2e9e95cadc72cac3c27
2019-03-04 08:56:40 -08:00
Treehugger Robot
693e023bac Merge "Fix javadoc HTML escaping." 2019-03-04 16:22:20 +00:00
Chen Xu
f2e5e06c2e Merge "add NonNull and Nullable annotation to APIs" am: c931e9b0c0 am: 715c2d87cc
am: 3bc4573765

Change-Id: I35e81dcc8e091e91cf335587849c596134781a7c
2019-02-28 18:54:02 -08:00
chen xu
8165386bfe add NonNull and Nullable annotation to APIs
Bug: 126699430
Bug: 126699963
Bug: 126700457
Bug: 126700771
Bug: 126702453
Bug: 123939479
Test: Build
Change-Id: Ib429d2918e63f8d272fc7842b0abd83ffd5a9090
2019-02-28 14:15:58 -08:00
Alan Stokes
a9b5b2aab0 Fix javadoc HTML escaping.
HTLM special characters ('<', '>' and '&') don't need to be escaped
inside {@code}, even though they do elsewhere in javadoc. And in fact
they shouldn't be - because if they are escaped then the escaped
version shows up verbatim in the developer docs.

See for example:
https://developer.android.com/reference/android/graphics/drawable/GradientDrawable
https://developer.android.com/reference/android/support/v13/view/inputmethod/InputConnectionCompat

This change just removes the escaping to fix the public documentation.

Test: N/A (only comment lines changed)
Change-Id: I131b3b3e26547e30cff7b67514d177c48926bb26
2019-02-28 17:42:50 +00:00
Leland Miller
65b57ac806 Merge "Add documentation for inserting RCS 1-on-1 thread" am: 4b93dd3ff7 am: 75488cbae5
am: 17a6dc1867

Change-Id: I140a3585a32a6e7c63cbc793ef636b10c3f43637
2019-02-20 16:18:11 -08:00
Leland Miller
db2337f779 Add documentation for inserting RCS 1-on-1 thread
Test: None, documentation only
Bug: 124781386
Change-Id: I1ab521aa6ceb54dc513a219b238f66a59fbfab97
2019-02-20 07:53:49 -08:00
Leland Miller
e0f0c74cf9 Merge "Move RCS table creation flag to contract class" am: 0c8bc10ab2 am: 122d78ddac
am: b280d76d1f

Change-Id: Iac5b5b7d729769cf9005391819657573ddc5271f
2019-02-15 11:08:48 -08:00
Leland Miller
bd7959dd55 Move RCS table creation flag to contract class
This will allow access to the flag outside of the test package. In
particular, we can now use this flag to disable the relevant CTS tests
when RCS tables are not created.

Test: Manually ensured the flag works using CtsRcsTestCases
Change-Id: I995f38c83d52c3a23131f223a550cf71e59b9cba
2019-02-13 10:36:15 -08:00
Leland Miller
6722dd317b Merge "Add getOrCreateCanonicalAddressId" am: efc16ab0d8 am: 5854e9312c
am: 3179ad0d40

Change-Id: Idbd353963c8dcfa245c39c8b78a48ae43fa8bc76
2019-02-12 01:28:43 -08:00
Leland Miller
7b378ab803 Add getOrCreateCanonicalAddressId
This is used exclusively for RCS message storage to retrieve canonical
address IDs for participants.

Test: CtsRcsTestCases
Change-Id: Idd935b8d7787db9597b643551714f134d63b33c0
2019-02-11 10:02:22 -08:00
Sahin Caliskan
67d3d8ba22 Merge "Implementation of RcsMessageStore APIs [base]" am: c4ed10103a am: c104c84af6
am: 15b3cf44a0

Change-Id: Ib33e25d4eae5c47a61b7dedca5c79f2b6d5bc477
2019-02-06 10:20:41 -08:00
Sahin Caliskan
f00a876893 Implementation of RcsMessageStore APIs [base]
This change adds the implementation of RcsMessageStore. Please see the
bug for the design and one-pager

Test: Added unit tests

Bug: 109759350
Change-Id: I6049dcf74ef9e19a38ce58148a89497992bc1c98
2019-02-06 15:49:16 +00:00
Leland Miller
6d2e9b8cae Merge "Add part ID reuse to API contract" am: d49a6c86f4 am: ea65fcc98a
am: c5ceebba02

Change-Id: Ide0ff27e0de513dd2687e3fc30e177cd1d5fd45c
2019-01-23 21:21:14 -08:00
Leland Miller
6c753558c3 Add part ID reuse to API contract
This make explicit that part IDs should not be reused to point to new
parts as this may cause issues in applications that expect pars to
remain consistent.

Test: Documentation change, will follow up with a CTS test
Change-Id: I990aa5848f59cc85c76d129701cba1ca27c78894
2019-01-23 22:44:06 +00:00
Leland Miller
698f366f59 Merge "Add thread ID reuse to API contract" am: a24e12b46e am: 7261b8a16c
am: 434fd829bb

Change-Id: I56e6957091b8f8b0aff6720e8b77de824a82ad33
2019-01-18 12:32:54 -08:00
Leland Miller
c445b2b98b Add thread ID reuse to API contract
This make explicit that thread IDs should not be reused to point to new
threads as this may cause issues in applications that expect threads to
remain consistent.

Test: Tested by CTS test in CtsTelephonyProviderTestCases
Bug: 122616805
Change-Id: I068943c402084c524f7e7002044a7efc59ef796d
2019-01-16 18:35:55 +00:00
Calvin Pan
5f5461ad1a Merge "Public SIM_APN_URI uri and deprecated mcc, mnc, mvno_type, mvno_data" am: d839b0d384 am: faf8c714b7
am: b000ae8707

Change-Id: I0fe486b37521df918120cca1233d299ec68ce84b
2018-12-20 18:33:19 -08:00
calvinpan
5e27237f59 Public SIM_APN_URI uri and deprecated mcc, mnc, mvno_type, mvno_data
Deprecated legacy mno and mvno columns to support carrier id and public
the SIM_APN_URI to provide app more simplier query current SIM's APN.

Bug: 120031619
Test: Build pass.
Change-Id: Ie06dfc55248b871c45ff3274de17d6eafd82d846
2018-12-20 15:16:23 +08:00
Chen Xu
18b925a7af Merge "expose Carrier Id related APIs" 2018-12-17 20:56:54 +00:00
chen xu
64c1d7649a expose Carrier Id related APIs
1. expose public API for preciseCarrierId and preciseCarrierIdName
2. expose public API for carrier id in CarrierIdentifier
3. New public broadcast for precise carrier identity changed
4. clean up

Bug: 110559381
Test: unit test & atest CtsTelephonyTestCases:TelephonyManagerTest
Change-Id: I18f8bc3252632bba699829c6c577d1041335fee9
Merged-in: I18f8bc3252632bba699829c6c577d1041335fee9
2018-12-12 14:34:09 -08:00
chen xu
d47a06836c expose Carrier Id related APIs
1. expose public API for preciseCarrierId and preciseCarrierIdName
2. expose public API for carrier id in CarrierIdentifier
3. New public broadcast for precise carrier identity changed
4. clean up

Bug: 110559381
Test: unit test & atest CtsTelephonyTestCases:TelephonyManagerTest
Change-Id: I18f8bc3252632bba699829c6c577d1041335fee9
2018-12-11 11:28:49 -08:00
chen xu
5caa18cbf8 address API council feedbacks for Telephony.Carriers
Bug: 118296421
Test: telephony unit test
Change-Id: Ib26db49e5fa6891c2176124681172c271e6cc423
2018-12-01 15:34:47 -08:00
chen xu
7ebcd78e90 address API council feedbacks for Telephony.Carriers
Bug: 118296421
Test: telephony unit test
Change-Id: Ib26db49e5fa6891c2176124681172c271e6cc423
Merged-in: Ib26db49e5fa6891c2176124681172c271e6cc423
2018-11-30 13:29:55 -08:00
Jayachandran C
32e712e0c0 Move the intent to SMS namespace for database corruption detection
Test: Simulated and verified the new intend is used
Bug: 118658558
Bug: 115990430
Merged-in: I07a58d0fe1c34106b3da85d1dfd4576b40da4bd5
Change-Id: I07a58d0fe1c34106b3da85d1dfd4576b40da4bd5
(cherry picked from commit 349b9ba16f)
2018-11-14 01:08:52 +00:00
Amit Mahajan
3b5d52c11c Adding new intent ACTION_SMS_MMS_DB_CREATED.
Test: manual (verified from logcat that intent is broadcast)
Bug: 115990430
Merged-in: I660cf2d04a1b57a58c8cefd212e5f8d73b329890
Change-Id: I660cf2d04a1b57a58c8cefd212e5f8d73b329890
(cherry picked from commit 1b26e44ce0)
2018-11-13 11:24:51 -08:00
chen xu
a8d3d48941 support parent carrier id
The parent-child relationship can be used to further differentiate a
single carrier by different networks, by prepaid v.s. postpaid
or even by 4G v.s. 3G plan. parent carrier id it's an optional field.
A carrier id with a valid parent_carrier_id is considered fine-grained carrier id,
will not be returned as API getSimCarrierId but will be returned as
new API getSimPreciseCarrierId.

Bug: 110559381
Change-Id: Ica273cbad16b4773edc41b79ff4bf7570de40ec1
2018-11-12 11:30:16 -08:00
Calvin Pan
7e74c4e431 Merge "Create new API for MNO carrier id" 2018-11-12 18:09:25 +00:00
calvinpan
354b9771aa Create new API for MNO carrier id
New telephony APIs to getSimMnoCarrierId and GET_CURRENT_APN_LIST

Bug: 115709816
Test: Build pass
Change-Id: I415ee634d8392d5120d5d8f79d927c0349d9a42e
Merged-in: I415ee634d8392d5120d5d8f79d927c0349d9a42e
2018-11-12 08:07:10 +00:00
chen xu
dd44d8132a support parent carrier id
The parent-child relationship can be used to further differentiate a
single carrier by different networks, by prepaid v.s. postpaid
or even by 4G v.s. 3G plan. parent carrier id it's an optional field.
A carrier id with a valid parent_carrier_id is considered fine-grained carrier id,
will not be returned as API getSimCarrierId but will be returned as
new API getSimPreciseCarrierId.

Bug: 110559381
Change-Id: Ica273cbad16b4773edc41b79ff4bf7570de40ec1
2018-11-10 12:01:04 -08:00
calvinpan
3689c96951 Add CarrierId column in TelephonyProvider
Add a column in provider to migrate mno and mvno to carrierid.

Bug: 115709816
Test: runtest --path tests/src/com/android/providers/telephony/TelephonyProviderTest.java
Change-Id: I9c0c0fd069acc7f182d94f422ff15f45ebf187a9
Merged-In: I9c0c0fd069acc7f182d94f422ff15f45ebf187a9
2018-11-08 23:45:23 +00:00
Calvin Pan
330f457890 Merge "Create new API for MNO carrier id" 2018-11-08 16:25:12 +00:00
sqian
1ed547ee3e Add telephony commands about SMS apps
See the other CL on the same topic for the details

Bug: 109809543
Test: See the other CL
Change-Id: I9f750a72edfc282c80f7547647bcddaf2da51d9b
Merged-In: I9f750a72edfc282c80f7547647bcddaf2da51d9b
2018-11-05 14:28:49 -08:00
calvinpan
d3b261145b Create new API for MNO carrier id
New telephony APIs to getSimMnoCarrierId and GET_CURRENT_APN_LIST

Bug: 115709816
Test: Build pass
Change-Id: I415ee634d8392d5120d5d8f79d927c0349d9a42e
2018-11-02 19:11:31 +08:00
Jayachandran C
349b9ba16f Move the intent to SMS namespace for database corruption detection
Test: Simulated and verified the new intend is used
Bug: 118658558
Bug: 115990430
Change-Id: I07a58d0fe1c34106b3da85d1dfd4576b40da4bd5
2018-11-01 19:34:02 -07:00
Chen Xu
d135468a98 Merge "Add CarrierId column in TelephonyProvider" 2018-10-29 18:04:04 +00:00
calvinpan
beb6cb3b03 Add CarrierId column in TelephonyProvider
Add a column in provider to migrate mno and mvno to carrierid.

Bug: 115709816
Test: runtest --path tests/src/com/android/providers/telephony/TelephonyProviderTest.java
Change-Id: I9c0c0fd069acc7f182d94f422ff15f45ebf187a9
2018-10-29 19:50:14 +08:00
Amit Mahajan
8c1c45a710 Adding new intent ACTION_SMS_MMS_DB_CREATED.
Test: manual (verified from logcat that intent is broadcast)
Bug: 115990430
Change-Id: I660cf2d04a1b57a58c8cefd212e5f8d73b329890
2018-10-25 13:00:36 -07:00
Nathan Harold
f5cf9f24ed Merge "Move some members to the "Q blacklist"." 2018-10-23 21:53:51 +00:00
Mathew Inwood
45d2c252b1 Move some members to the "Q blacklist".
Based on some analysis, these fields/methods are likely false positives.
Set maxTargetSdk=P so that any apps using them are required to migrate off
them in future. See the bug for more details.

Exempted-From-Owner-Approval: Automatic changes to the codebase
affecting only @UnsupportedAppUsage annotations, themselves added
without requiring owners approval earlier.

Bug: 115609023
Test: m
Merged-In: I719b5c94e5b1f4fa562dd5d655953422958ad37e
Change-Id: I719b5c94e5b1f4fa562dd5d655953422958ad37e
(cherry picked from commit 8c854f86a4)
2018-10-22 17:28:24 -07:00
Chen Xu
fccdf46adf Merge changes from topic "carrier_id_aosp_cp"
* changes:
  support mno carrier id
  support privilege access rule for carrier identification
2018-10-22 16:36:25 +00:00