summaryrefslogtreecommitdiff
path: root/core/java/android/telephony/TelephonyCallback.java
Commit message (Collapse)AuthorAgeFilesLines
* Merge "Create new DataEnabledReasons for for DataSettingsManager"TreeHugger Robot2021-12-231-2/+3
|\
| * Create new DataEnabledReasons for for DataSettingsManagerSarah Chin2021-12-221-2/+3
| | | | | | | | | | | | | | | | | | | | | | DataEnabledSettings used an internal DataEnabledChangedReason when notifying data enabled was changed. For DataSettingsManager, sync the reasons with TelephonyManager#DataEnabledReasons and remove the internal reaons. Test: atest FrameworksTelephonyTests Bug: 204309297 Change-Id: I8d6fd13e319ce165e25f2afd93bf9884fbf22667
* | Telephony data refactoring API changesJack Yu2021-12-211-0/+1
|/ | | | | | | | | | | | | DataProfile is the parameters used for setup data, but DataProfile is almost identical as ApnSetting. So move ApnSetting into DataProfile, also add TrafficDescriptor, which is specific to 5G SA network. Also added a new state for data handover between IWLAN and cellular. Bug: 196597630 Test: CTS && atest FrameworksTelephonyTests Change-Id: I3f188921b92b4a14c323819ff58ab9ae57488937
* [Telephony] Add more javadoc for carrier privilegesZoey Chen2021-10-151-3/+52
| | | | | | Bug: 192252210 Change-Id: I9f43b7ba2e0184d48149a3496559a4be6d07cf6a Test: manual
* [Telephony] Add description about location permissionZoey Chen2021-06-291-1/+6
| | | | | | | | | | | - 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
* [Telephony] TelephonyCallback API updateZoey Chen2021-04-071-74/+51
| | | | | | | | | | | | | | | | | | | | | | | | | - Keep the permission consistency 1. PhoneStateListener.LISTEN_XXX 2. PhoneStateListener.onXxxxx 3. TelephonyCallback.EVENT_XXX 4. XxxListener.onXxxx - Remove the permission to keep the consistency with PSL 1. DataConnectionSTateListener 2. DataActivityListener, 3. SignalStrengthListener, 4. DataActivationStateListener 5. UserMobileDataStateListener 6. PhoneCapabilityListener - Remove AlwaysReportedSignalStengthListener - onCellInfoChanged and onActiveDataSubscriptionIdChanged: Should add READ_PHONE_STATE in TelephonyCallback and PSL, target SDK to check the permission Bug: 182478738 Test: make Change-Id: I0b477e5f53f4187223808258b45f0b5f0c1d5578
* Enforce READ_PHONE_STATE for APIs involving call stateBrad Ebinger2021-03-251-0/+1
| | | | | | | | | For API version 31+, ensure that READ_PHONE_STATE is checked on APIs that retrieve/notify the call state of the device. Bug: 157233955 Test: atest CtsTelecomTestCases2 CtsTelephony2TestCases Change-Id: I9f8674a3075d3e0f75ee4f41eefce328c0fa6b91
* [Telephony] Remove the permission from TelephonyDisplayInfoZoey Chen2021-03-241-1/+0
| | | | | | Bug: 183164979 Test: make Change-Id: I5b1b4fea5feef3ba53603f24d88246d40322e2ff
* Merge "[Telephony] Exposed PhysicalChannelConfigListener as public API ↵Zoey Chen2021-03-171-3/+0
|\ | | | | | | | | | | | | | | instead of system" am: dd68ace7e0 am: dd7fe097ae am: 8e339fca8a Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1629270 Change-Id: I1cecbeddbcdeee6a19b4ebc5f9372c7e461e01f6
| * [Telephony] Exposed PhysicalChannelConfigListener as public API instead of ↵Zoey Chen2021-03-121-3/+0
| | | | | | | | | | | | | | | | system Bug: 182408018 Test: make Change-Id: I294453b0c28b79e309063a1cd2f57644b3a6242c
| * [PhoneStateListener] Redesign PhoneStateListener: Use TelephonyCallbackZoey Chen2021-03-081-0/+1710
| | | | | | | | | | | | | To avoid the IDE does not have the warn if developers implement callback: 1. Revert PhoneStateListener to Android 11 version. 2. New TelephonyCallback 3. Deprecate the old PhoneStateListener.onXx() callbacks Bug: 167684594 Test: make and PhoneStateListenerTest and TelephonyCallbackTest Change-Id: I0fdd7fc3c3d67310197862c84d02f30164ec80d1 Merged-In: I0fdd7fc3c3d67310197862c84d02f30164ec80d1
* Revert "Revert "Add the LCE system API""Kai Shi2021-03-161-1/+47
| | | | | | | | | This reverts commit 8d60c5ceb4fdc0458d30b527c45651fb002561df. Reason for revert: <this CL doesn't break error prone build. Will redo the CTS one which does break the build> Change-Id: I5899acf02006a164e31f9b82aeaa7974dd6d2869 Bug: 182869926
* Revert "Add the LCE system API"Martijn Coenen2021-03-161-47/+1
| | | | | | | | | | | | | | | | | | | | Revert "Add CTS test for onLinkCapacityEstimateChanged" Revert "[Telephony] Notify onLinkCapacityEstimateChanged" Revert "Remove the system API of getCarrierBandwidth()" Revert submission 13662828-LceApi Reason for revert: b/182869926, breaks errorprone Reverted Changes: I1998c7e49:Add CTS test for onLinkCapacityEstimateChanged Id69fa8b7a:Integrate New LCE Api I0cc020ba3:Remove the system API of getCarrierBandwidth() Id613dc152:Add the LCE system API If7cede0f4:[Telephony] Notify onLinkCapacityEstimateChanged Change-Id: I30813c321509ac44fa0119b0ce905fd28b0f139c
* Add the LCE system APIKai Shi2021-03-151-1/+47
| | | | | | | | | | | | Add the link capacity estimate system API. Remove the system API of getCarrierBandwidth() and CarrierBandwidth as they are replaced by the new LCE system API in PhoneStateListener. Bug: 180434672 Bug: 176814680 Test: manual test of the new LCE system API in LinkBandwidthEstimator Test: atest -c PhoneStateListenerTest Change-Id: Id613dc152e524045a89295e5dd03171b22377e16
* Merge "The phone didn't reload the allowed Network Type" into sc-devSongFerng Wang2021-03-121-19/+21
|\
| * The phone didn't reload the allowed Network TypeSongFerngWang2021-03-101-20/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | Reload the allowed Network after device insert SIM card. Change the behavior of notifyAllowedNetworkTypesChanged. Log print String representation of the allowed network types. Bug: 180903931 Bug: 179814490 Test: atest cts/tests/tests/telephony/current/src/android/telephony/cts/TelephonyManagerTest.java#testSetAllowedNetworkTypesForReason_moreReason atest cts/tests/tests/telephony/current/src/android/telephony/cts/TelephonyManagerTest.java#testSetAllowedNetworkTypesForReason atest android.telephony.cts.TelephonyCallbackTest Change-Id: Icfffea3c74ecf6938455d841da9d6175f6aa07de
* | Remove phone number from the "new" CallStateListener.Tyler Gunn2021-03-081-19/+29
|/ | | | | | | | | | | | | When the legacy PhoneStateListener was migrated to the new TelephonyCallback class, the onCallStateChanged listener was copied over as is. This CL removes the phone number parameter from the new listener. Under the hood, both the old PhoneStateListener and the new one use the same IPhoneStateListener.aidl file, so the onCallStateChanged method for the legacy listener is changed to onLegacyCallStateListener. Test: See CTS test CL; added a bunch of CTS tests for this. Fixes: 165831812 Change-Id: Ia67968b5235954b606c6bd2890cc6f46c468e041
* [PhoneStateListener] Redesign PhoneStateListener: Use TelephonyCallbackZoey Chen2021-03-031-0/+1710
To avoid the IDE does not have the warn if developers implement callback: 1. Revert PhoneStateListener to Android 11 version. 2. New TelephonyCallback 3. Deprecate the old PhoneStateListener.onXx() callbacks Bug: 167684594 Test: make and PhoneStateListenerTest and TelephonyCallbackTest Change-Id: I0fdd7fc3c3d67310197862c84d02f30164ec80d1