Age | Commit message (Collapse) | Author |
|
- Hold ACCESS_FINE_LOCATION: full service state
- Hold ACCESS_COARSE_LOCATION: set cellIdentity is null
- No local permission: set cellIdentity, mOperatorAlphaLong, mOperatorAlphaShort
and mOperatorNumeric are null
Bug: 165014401
Test: make
Change-Id: I9ada08a530d9b8bc8483edfad783ff3b7434faa3
|
|
Bug: 167991878
Test: atest FrameworksTelephonyTests:CellularNetworkServiceTest
Test: atest FrameworksTelephonyTests:ServiceStateTrackerTest
Test: atest CtsTelephonyTestCases:VopsSupportInfoTest
Change-Id: Ib7ee266d2fb2bbfc16b33c9c79f2ef2a576a8e81
|
|
getNrState() was exposed. However, it doesn't actually get the NR
state in most cases and it is a mixture of a couple different
concepts. This API does not provide the correct 5G NR state, so
revert it from API surface and also the related change.
Bug: 171183530
Test: make update-api ; m
Change-Id: I651ed14500be5af45dd896ae5da1da36ad249a26
|
|
~580 hits on cuttlefish boot
Bug: 139327211
Test: boot w/ Parcel.java DEBUG_RECYCLE
Change-Id: I20b7c8865c3ab1f562dfa9f19039f08cef8f0f7d
|
|
The toString() method of NetworkRegistrationInfo and
ServiceState are being abused to get info that apps
really should be using: becuase the info can be misleading.
Instead, callers should use ServiceState#getCellBandwidths() and
or the onLinkDownstreamBandwidthKbps() methods from Connectivity
that are part of LinkProperties.
Bug: 172999992
Test: wip
Change-Id: Id4658acd30a50b35d55456ecca19bd92319eeba5
|
|
|
|
ConnectivityService is going to become a mainline module which
will not able to access hidden APIs. DataConnectionStat needs
to get the NR 5G state of the mobile data network for checking
if the network type is 5G or not. API in NetworkRegistrationInfo
is suggested to replace the original one in ServiceState. Thus,
expose it as a public API to support it.
Bug: 171183530
Test: make update-api ; m
Test: atest CtsTelephonyTestCases
Change-Id: I965499792286de4f1447559be66ca4be80bd0e6f
|
|
I ran these commands:
cd frameworks/base
grep -rl '@TestApi' --include '*.java' | xargs perl -i -p0e \
's/\@SystemApi[\s\n]+(\@\w+[\s\n]+)?\@TestApi/\@SystemApi\1/gs'
grep -rl '@TestApi' --include '*.java' | xargs perl -i -p0e \
's/\@TestApi[\s\n]+(\@\w+[\s\n]+)?\@SystemApi/\1\@SystemApi/gs'
Bug: 171179806
Test: m checkapi
Change-Id: I772790b783b0a8730b8bf680c9e569a886b8d789
Merged-In: I772790b783b0a8730b8bf680c9e569a886b8d789
|
|
Test: build
Bug: 160825855
Change-Id: Ie709cad1c94ad204c46a559d316f45da16c3541c
Merged-In: Ie709cad1c94ad204c46a559d316f45da16c3541c
|
|
Migrate the isUsingCarrierAggregation flag from
DataSpecificRegistrationInfo to NetworkRegistrationInfo.
This does a few things:
-Allows LTE_CA to be properly reported even in IWLAN legacy
mode.
-Removes one additional layer of drilling up/down to store
and retrieve the boolean flag.
-Simplifies the ratcheting logic.
Bug: 156676862
Test: atest FrameworksTelephonyTests
Change-Id: Ia7d9344e590efe0dcf2c7ba6d44d925f72d1e626
|
|
Bug: 150189172
Change-Id: Icebbf1ca42aa43ffbc2c424dafbf8928e576b0a2
|
|
|
|
Test: build
Bug: 151837748
Change-Id: Ia05cb6b43a79524501821467c510f595f7a64ebe
Merged-In: Ia05cb6b43a79524501821467c510f595f7a64ebe
|
|
These APIs were exposed for mainline since they were used in SysUI code,
but the logic that was using them was moved to Telephony. Unexposing the
APIs since they no longer need to be exposed.
Test: atest FrameworksTelephonyTests
Bug: 147447171
Bug: 111498835
Bug: 149874525
Change-Id: I1930977c5345c075773d18db4eb05913038d7e7f
Merged-In: I1930977c5345c075773d18db4eb05913038d7e7f
|
|
API Council has noted an inconsistency
between setRegisteredPlmn() and getRegisteredPlmn().
Because other methods such as CellIdentity#getMncStr()
are already nullable, it's reasonable to allow the
registered PLMN to be null in the event that the device
isn't registered.
Bug: 149476549
Test: make update-api && make && atest NetworkRegistrationInfoTest
Merged-In: Ib38e72a6bdbaf4e1fd439e92f835daa6f87ceb73
Change-Id: Ib38e72a6bdbaf4e1fd439e92f835daa6f87ceb73
(cherry picked from commit 2fb0bc50f93a728c52dd729ba28005ba1061b2b3)
|
|
Add an API to get the RPLMN in network registration info.
This PLMN-ID is the one chosen from the PLMN IDs broadcast
by the cell for registration purposes.
Bug: 135921133
Test: make update-api && make offline-sdk-docs && make
&& atest FrameworksTelephonyTests
Merged-In: I82f9150e185d9809572d246b57ea42f14ad64f15
Change-Id: I82f9150e185d9809572d246b57ea42f14ad64f15
(cherry picked from commit 2b14af22daf38449c29ed0bfe2e619e991737581)
|
|
Bug: 151270999
Test: build pass.
Change-Id: I7864077df6dad9a8bf70718615e3cfeb8159a50e
Merged-In: I7864077df6dad9a8bf70718615e3cfeb8159a50e
|
|
This patch exposes WWAN and WLAN registration status
information so that callers can understand:
-Roaming status
-Searching status
-Available services, such as emergency and voice calling
Bug: 123099466
Fixes: 21208250
Test: make && make offline-sdk-docs
Change-Id: I1421b638f1835962de8e4ba18bdf75615d37ebe5
|
|
Add a callback to PhoneStateListener to indicate that
a registration procedure has failed.
Bug: 143187047
Test: make update-api && make
Merged-In: I4a4ba4479dfd465a9d8063135f3b4bf4e1323e99
Change-Id: I4a4ba4479dfd465a9d8063135f3b4bf4e1323e99
(cherry picked from commit 5e6e983cadb9c69fac91e0210308b4b62c1def7b)
|
|
Change value from -1 to 0 to match proto
Bug: 141323073
Test: atest TelephonyMetricsTest
Change-Id: I4509f22cdae656de3ad011de3a1664e27d35986a
Merged-In: I4509f22cdae656de3ad011de3a1664e27d35986a
|
|
ServiceState.getNrFrequencyRange()
NetworkRegistrationInfo.getNrState()
DataSpecificRegistrationInfo.isUsingCarrierAggregation()
Bug: 111498835
Test: make
Change-Id: I7cdfad2c221dff7cd379627e7dddedc57bb081bb
|
|
This is a preparatory work for mainline. since Intdef is hidden, so we
have to move some annotations (applied in SDK/system API) to a separate
annotation class and having other module statically link to it.
TODO: include telephony annotation in framework-non-updatable-sources
Bug: 140908357
Test: Build
Change-Id: I37f8a0624bbf27f264870ee9dbf03d3aaa5cadc1
(cherry picked from commit c9d4ee112e5441ae01502d597f6661f0feecc363)
Merged-in: I37f8a0624bbf27f264870ee9dbf03d3aaa5cadc1
(cherry picked from commit 4712711d3d91621083bf92f5a1647b92c20a8b81)
|
|
To prepare for enabling MissingNullability Metalava check this CL
works on adding missing nullability issues that metalava flags if
we tell it to flag new things since API 29.
This is not a complete CL, mostly addresses public api and
toString/equals for @SystemApi
Exempt-From-Owner-Approval: Large scale nullability clean up
Bug: 124515653
Test: make -j checkapi
Merged-In: I109260842cfc25f06e40694997fcbb4afa02c867
Change-Id: I109260842cfc25f06e40694997fcbb4afa02c867
|
|
NetworkRegistrationInfo and ServiceState are not
immutable class. Their get methods should return a new
copy of object so the caller won't modify its state.
Bug: 130538118
Test: Unit tests + manual
Merged-In: I51662a92b0b6189a8c8aa017085affedac417190
Change-Id: I51662a92b0b6189a8c8aa017085affedac417190
(cherry picked from commit 37538594e68dea9a1965ffb8307b259d8cf3717b)
|
|
The voice and data RAT are now derived from
CS and PS network registration info.
Test: Manual + unit tests
Bug: 129863444
Merged-In: I3f4cb6057a4ae821363099583eeac7c867147afb
Change-Id: I3f4cb6057a4ae821363099583eeac7c867147afb
(cherry picked from commit 5ff5ab5649644eded4f662303fdacee08aaad044)
|
|
NetworkRegistrationInfo.getAccessNetworkTechnology() should
report LTE as the network type when modem reports the RAT
LTE_CA. Fixed by adding a flag in data specific registration
info.
Test: Manual
Bug: 129707180
Merged-In: Ib152f97711441fded998a36528ef007f9e28ccbf
Change-Id: Ib152f97711441fded998a36528ef007f9e28ccbf
(cherry picked from commit 05a6543248d87ee918a9019796d5ff8c7799f604)
|
|
Renamed DataSpecificRegistrationState to
DataSpecificRegistrationInfo. And added some
APIs to test API so they can be accessed by
CTS.
Test: Manual
Bug: 127657991
Merged-In: I1a623c18f02cfd19ca1af9df912d859b363f42d1
Change-Id: I1a623c18f02cfd19ca1af9df912d859b363f42d1
(cherry picked from commit dba103204cf09187dbb0147dac39457f5993769f)
|
|
Made the follwing changes based on API council review
feedback
1. Made the class and its Builder class final
2. Removed methods that should not be in the builder
3. Changed the return type of available services
from array to list.
Test: Unit tests
Bug 127657991
Merged-In: I3c2d406fed3ddaf62dee193c7657caf8c5bc13d2
Change-Id: I3c2d406fed3ddaf62dee193c7657caf8c5bc13d2
(cherry picked from commit 20d71403b8a1950bb44ee183138dc7a83c673472)
|
|
API review changes. The class covers more information other than
registration state.
Test: Build
Bug: 127657991
Merged-In: I8af36b388182ab08257b64c37078f156d4821709
Change-Id: I8af36b388182ab08257b64c37078f156d4821709
(cherry picked from commit e27d3fde88d37332cc9970c79b25060c003e9f17)
|