Commit Graph

378687 Commits

Author SHA1 Message Date
Jack Yu
26ebccdcff Merge "Stop exposing reasons through phone state listener" 2019-01-07 15:25:38 +00:00
Jack Yu
f05919ab76 Stop exposing reasons through phone state listener
The data connection reasons are implementation details
of telephony and should not be exposed externally. The
data connection fail cause, which is different from
reasons, are still available.

Test: Telephony sanity tests + unit tests
Bug: 73659459

Merged-In: Ia005abf19664e6213118ee932495950af118456d
Change-Id: Ia005abf19664e6213118ee932495950af118456d
(cherry picked from commit 4d1c945000)
2019-01-07 06:39:38 +00:00
Jack Yu
d14ed44c52 Merge "Cleaned up dead code" 2019-01-07 06:37:30 +00:00
Treehugger Robot
179f30a443 Merge "Null locale causing the VTS fail." 2019-01-07 04:19:22 +00:00
Jack Yu
239aa0ae0a Cleaned up dead code
Renamed the scanning state to retrying. Removed the
old retrying dead code.

Test: Telephony sanity tests
Bug: 73659459

Merged-In: I54849bafbd0d05206e67636f0717b4b833a5e229
Change-Id: I54849bafbd0d05206e67636f0717b4b833a5e229
(cherry picked from commit 5de4a2d869)
2019-01-06 11:48:32 -08:00
Sahin Caliskan
7ec9e6849e Merge "Implement RcsThread querying (base)" 2019-01-05 21:19:09 +00:00
Nathan Harold
3ada51469a Merge "Fix WCDMA Level Calculation for Default CC" 2019-01-05 01:25:14 +00:00
Treehugger Robot
aa8f1b7033 Merge "Add tryCreateView to LayoutInflater" 2019-01-05 01:02:28 +00:00
Sahin Caliskan
424945e010 Implement RcsThread querying (base)
This change does a first pass to introduce RcsThread querying. We can
now insert threads and query them back.

Test: Added unit test

Bug: 109759350
Change-Id: Ib116cd533a19ce4d099864a095f585ac47cdc9f6
2019-01-04 23:53:58 +00:00
Treehugger Robot
6a3d45c4b2 Merge "Deprecate Android beam APIs and create a feature flag to gate them" 2019-01-04 21:49:14 +00:00
Ruchi Kandoi
96fe50bc1b Deprecate Android beam APIs and create a feature flag to gate them
Test: Test application trying to invoke the API
Bug: 117519147
Change-Id: Icd3187e4f3e0f180cb42d36011f60895fb395002
2019-01-04 21:49:00 +00:00
Nathan Harold
549c3ba3b5 Fix WCDMA Level Calculation for Default CC
The default carrier config was setting the level
calculation method to an empty string, which caused
the level to be set forcibly to NONE/UNKNOWN due to
the logic failing to account for empty strings. This
patch sets the default to something sane "rssi" that
matches legacy behavior and also adds guards so that
an empty string will be considered default, and a non
empty but otherwise invalid string will also try to
use RSSI instead of simply failing to display signal
bars.

-Add protection against invalid array sizes
-Fix a bug where RSCP could use RSSI thresholds
-Add fallback for RSCP thresholds being null when the
 measurement type is set to RSCP.
-Define RSCP thresholds as constants.

Bug: 118800169
Test: atest CellSignalStrengthWcdmaTest
Change-Id: I8d6261bc5adab6bf9b0a88f7d59b259d338a49e9
2019-01-04 13:34:02 -08:00
Eric Holk
29d0cd6fa1 Add tryCreateView to LayoutInflater
This method is needed so that precompiled layouts can reuse the factory logic
from the LayoutInflater.

Bug: 111895153
Test: atest android.view.cts.LayoutInflaterTest
Change-Id: Ifd1028906b655af2bd14247d586dc16b35550c82
2019-01-04 12:57:14 -08:00
Ruchi Kandoi
54502d68ea Merge changes from topic "multi-se-support"
* changes:
  Add a mechanism to register AIDs to specific off-host SE
  Add Off-Host Card Emulation Features
2019-01-04 19:56:41 +00:00
Treehugger Robot
cdf6be573f Merge "Fix/suppress aapt/aapt2 google-explicit-constructor warnings" 2019-01-04 19:34:30 +00:00
Chih-Hung Hsieh
1fc78e1814 Fix/suppress aapt/aapt2 google-explicit-constructor warnings
* Add explicit to conversion constructors/operators
* Use NOLINT or NOLINTNEXTLINE to suppress warnings on intended converters

Bug: 28341362
Test: make with WITH_TIDY=1 DEFAULT_GLOBAL_TIDY_CHECKS=-*,google-explicit-constructor
Change-Id: Ie02101ea7c422e8add535c111a30a2f21ead0ace
2019-01-04 17:38:13 +00:00
Junyu Lai
bd73798585 Merge "Ignore ipv6 tx traffic on clat uid." 2019-01-04 09:29:10 +00:00
Ruchi Kandoi
44bb579621 Add a mechanism to register AIDs to specific off-host SE
Test: manual
Bug: 117253962
Change-Id: Id34bf84dcff7789548eac19478010838bebd9758
2019-01-04 01:14:50 +00:00
Sahin Caliskan
94d92dc3cf Merge "Skeleton implementation of RCS APIs" 2019-01-04 00:04:43 +00:00
Ruchi Kandoi
ebf267a2a4 Add Off-Host Card Emulation Features
Test: CTS test; manual
Bug: 117253962
Change-Id: I7c35b1bffbc57870bb8c67704811a2649854d94e
2019-01-03 23:00:59 +00:00
Sahin Caliskan
ec851b1f98 Skeleton implementation of RCS APIs
This change adds the classes for RCS Storage APIs. There
is no business logic implemented yet, and the parcelable boilerplate
code doesn't really do anything.

This was needed as these APIs are meant to be interconnected, i.e. to
use an RcsPart, the app developer will need an RcsMessage, and for
that they will need the RcsThread etc.

Test: Builds fine. Tests will be added as I add business logic.

Bug: 109759350
Change-Id: I20897946dc1d9218f60274c7e3242194c7e2ac32
2019-01-03 14:18:06 -08:00
Treehugger Robot
5432355d0c Merge "Update sound/vibrate notification key only when it actually buzz/beep." 2019-01-03 20:51:22 +00:00
Julia Reynolds
172458e014 Merge "Check if notification is valid before it finally vibrates because it can be canceled as soon as enqeued" 2019-01-03 19:43:36 +00:00
Treehugger Robot
ffb51ba0f0 Merge "Fix/suppress services/core google-explicit-constructor warnings" 2019-01-02 23:48:35 +00:00
Treehugger Robot
645a9d1253 Merge "Fix @NonNull -> Nullable for Intent.replaceExtras()." 2019-01-02 22:49:30 +00:00
Chih-Hung Hsieh
f32ace5d56 Fix/suppress services/core google-explicit-constructor warnings
* Add explicit to conversion constructors/operators

Bug: 28341362
Test: make with WITH_TIDY=1 DEFAULT_GLOBAL_TIDY_CHECKS=-*,google-explicit-constructor
Change-Id: Id2493c1e248e774042dc67f39ada6bb3a4521d0c
2019-01-02 14:25:32 -08:00
Treehugger Robot
3a0fe2cdab Merge "[LayoutInflater] Cleanup - remove some nesting" 2019-01-02 21:51:19 +00:00
Chih-hung Hsieh
50ee220126 Merge "Fix/suppress bootanimation google-explicit-constructor warnings" 2019-01-02 19:34:29 +00:00
Treehugger Robot
ff77ea8d58 Merge "[view-compiler] Better namespacing of util functions" 2019-01-02 19:19:00 +00:00
Eric Holk
bfc687007c [LayoutInflater] Cleanup - remove some nesting
The parseInclude method had some deep nesting that could be improved by
rearranging things a little.

Test: atest android.view.cts.LayoutInflaterTest
Change-Id: I2ee13c2ee80bcb220371d39a5a6da6044cfa245c
2019-01-02 11:11:24 -08:00
Eric Holk
ddc8990f09 [view-compiler] Better namespacing of util functions
This moves some helper functions into our own namespace to avoid conflicting
with other util.h files.

Bug: 111895153
Change-Id: I2b4c77732a97b34a8528d69867c15ed802686703
2019-01-02 18:02:31 +00:00
Treehugger Robot
abe06f9138 Merge "[view compiler] Re-enable host-side tests" 2019-01-02 15:43:40 +00:00
Mathew Inwood
aeda49d185 Merge "Limit access to suspected false positives." 2019-01-02 12:30:32 +00:00
Chih-Hung Hsieh
a08d2c2ee7 Fix/suppress bootanimation google-explicit-constructor warnings
* Add explicit to conversion constructors/operators

Bug: 28341362
Test: make with WITH_TIDY=1 DEFAULT_GLOBAL_TIDY_CHECKS=-*,google-explicit-constructor
Change-Id: Ia6ada49250973d507ae8b10d8f0d7c2d47ee805c
2019-01-02 02:43:37 +00:00
Shuo Qian
99f6957f2e Merge "Do not use default to get TelephonyManager" 2018-12-28 20:59:16 +00:00
Shuo Qian
8336204f99 Merge "Add Emergency Dial into RIL and Remove PhoneNumberUtils Ecclist check" 2018-12-28 20:14:44 +00:00
sqian
3e8647c8ad Do not use default to get TelephonyManager
Bug: 112657134
Test: Manual
Change-Id: I4ffe5e3284478a6337136dbc79ec5eed72013cc4
Merged-In: I4ffe5e3284478a6337136dbc79ec5eed72013cc4
(cherry picked from commit b0ae02b646)
2018-12-28 11:55:44 -08:00
sqian
c18b326a5b Add Emergency Dial into RIL and Remove PhoneNumberUtils Ecclist check
Bug: 112657134
Test: Treehugger
Change-Id: I297334be370688fd9a9d46920a09152f57152039
Merged-In: I297334be370688fd9a9d46920a09152f57152039
(cherry picked from commit 6279e97c43)
2018-12-28 11:00:26 -08:00
Shuo Qian
b158b12cbb Merge "EmergencyNumber enhancement" 2018-12-28 18:07:23 +00:00
Mathew Inwood
55418eada5 Limit access to suspected false positives.
Members modified herein are suspected to be false positives: i.e. things
that were added to the greylist in P, but subsequent data analysis
suggests that they are not, in fact, used after all.

Add a maxTargetSdk=P to these APIs. This is lower-risk that simply
removing these things from the greylist, as none of out data sources are
perfect nor complete.

For APIs that are not supported yet by annotations, move them to
hiddenapi-greylist-max-p.txt instead which has the same effect.

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

Bug: 115609023
Test: m
Change-Id: Ia937d8c41512e7f1b6e7f67b9104c1878b5cc3a0
Merged-In: I020a9c09672ebcae64c5357abc4993e07e744687
2018-12-28 14:26:35 +00:00
sqian
46c0c303fa EmergencyNumber enhancement
1) Add Database source for EmergencyNumber
2) add mergeEmergencyNumber for merging two emergency numbers
3) enable Listener.EmergencyNumber enhancement
4) no need to pass any parameter to PhoneNotifier
5) modify API documentation
6) deprecate PhoneNumberUtils.isEmergencyNumber
7) modify API documentation for security exception and backward
compatibility
9) introduce some utils in EmergencyNumber for merging number purposes
10) add mnc into EmergencyNumber

Bug: 112657134
Test: Treehugger
Change-Id: I0dcd01bdad7d9c37294cd8b87eda54b4ac9d0a0b
Merged-In: I0dcd01bdad7d9c37294cd8b87eda54b4ac9d0a0b
(cherry picked from commit 9f93a12e1f)
2018-12-27 22:16:25 +00:00
Shuo Qian
cfc6518c48 Merge "Add Emergency service categories in ImsCallProfile" 2018-12-27 22:03:45 +00:00
Shuo Qian
755f2a38ac Merge "Make some SubscriptionManager APIs system APIs" 2018-12-27 21:58:00 +00:00
Treehugger Robot
4ec239d760 Merge "Update api/current.txt for setuid deprecation" 2018-12-27 19:44:28 +00:00
Treehugger Robot
ffee7d8ce0 Merge "Adding check for HMAC/EC key size for StrongBox" 2018-12-27 01:58:05 +00:00
Nathan Harold
7d615aae59 Merge "Fix BSIC Check in CellIdentityGsm" 2018-12-27 01:44:14 +00:00
Nathan Harold
b635fb8eb3 Fix BSIC Check in CellIdentityGsm
Because Java uses signed bytes, a comparison between
a byte and 0xFF will always fail after integer
promotion. Fix this by forcing 0xFF to be treated as
a byte for comparison.

Bug: 119224773
Test: fixes build breakage

Change-Id: I9615667a6b442060f1d43084d56bc9c3fdb3ba35
2018-12-27 01:40:40 +00:00
Nathan Harold
bd9da6de04 Merge "Refactor CellInfo Constructors" 2018-12-26 23:07:53 +00:00
Nathan Harold
7ce5baf9a9 Refactor CellInfo Constructors
Bug: 119224773
Test: atest FrameworksTelephonyTests
Change-Id: Ibf56797b5be2508656409a3437ff79210334bfd6
2018-12-26 09:45:31 -08:00
Jordan Liu
8acece0441 Merge "Add UiccCardInfo APIs" 2018-12-26 16:16:02 +00:00