Loading src/java/com/android/internal/telephony/ServiceStateTracker.java +8 −0 Original line number Diff line number Diff line Loading @@ -16,6 +16,9 @@ package com.android.internal.telephony; import static android.provider.Telephony.ServiceStateTable.getContentValuesForServiceState; import static android.provider.Telephony.ServiceStateTable.getUriForSubId; import static com.android.internal.telephony.CarrierActionAgent.CARRIER_ACTION_SET_RADIO_ENABLED; import android.app.AlarmManager; Loading Loading @@ -2842,8 +2845,13 @@ public class ServiceStateTracker extends Handler { setRoamingType(mSS); log("Broadcasting ServiceState : " + mSS); // notify using PhoneStateListener and the legacy intent ACTION_SERVICE_STATE_CHANGED mPhone.notifyServiceStateChanged(mSS); // insert into ServiceStateProvider. This will trigger apps to wake through JobScheduler mPhone.getContext().getContentResolver().insert(getUriForSubId(mPhone.getSubId()), getContentValuesForServiceState(mSS)); TelephonyMetrics.getInstance().writeServiceStateChanged(mPhone.getPhoneId(), mSS); } Loading tests/telephonytests/src/com/android/internal/telephony/ContextFixture.java +2 −0 Original line number Diff line number Diff line Loading @@ -58,6 +58,7 @@ import android.os.UserHandle; import android.os.UserManager; import android.preference.PreferenceManager; import android.provider.Settings; import android.provider.Telephony.ServiceStateTable; import android.telephony.CarrierConfigManager; import android.telephony.SubscriptionManager; import android.telephony.TelephonyManager; Loading Loading @@ -530,6 +531,7 @@ public class ContextFixture implements TestFixture<Context> { doReturn(mConfiguration).when(mResources).getConfiguration(); mContentResolver.addProvider(Settings.AUTHORITY, mContentProvider); mContentResolver.addProvider(ServiceStateTable.AUTHORITY, mContentProvider); mPermissionTable.add(PERMISSION_ENABLE_ALL); } Loading Loading
src/java/com/android/internal/telephony/ServiceStateTracker.java +8 −0 Original line number Diff line number Diff line Loading @@ -16,6 +16,9 @@ package com.android.internal.telephony; import static android.provider.Telephony.ServiceStateTable.getContentValuesForServiceState; import static android.provider.Telephony.ServiceStateTable.getUriForSubId; import static com.android.internal.telephony.CarrierActionAgent.CARRIER_ACTION_SET_RADIO_ENABLED; import android.app.AlarmManager; Loading Loading @@ -2842,8 +2845,13 @@ public class ServiceStateTracker extends Handler { setRoamingType(mSS); log("Broadcasting ServiceState : " + mSS); // notify using PhoneStateListener and the legacy intent ACTION_SERVICE_STATE_CHANGED mPhone.notifyServiceStateChanged(mSS); // insert into ServiceStateProvider. This will trigger apps to wake through JobScheduler mPhone.getContext().getContentResolver().insert(getUriForSubId(mPhone.getSubId()), getContentValuesForServiceState(mSS)); TelephonyMetrics.getInstance().writeServiceStateChanged(mPhone.getPhoneId(), mSS); } Loading
tests/telephonytests/src/com/android/internal/telephony/ContextFixture.java +2 −0 Original line number Diff line number Diff line Loading @@ -58,6 +58,7 @@ import android.os.UserHandle; import android.os.UserManager; import android.preference.PreferenceManager; import android.provider.Settings; import android.provider.Telephony.ServiceStateTable; import android.telephony.CarrierConfigManager; import android.telephony.SubscriptionManager; import android.telephony.TelephonyManager; Loading Loading @@ -530,6 +531,7 @@ public class ContextFixture implements TestFixture<Context> { doReturn(mConfiguration).when(mResources).getConfiguration(); mContentResolver.addProvider(Settings.AUTHORITY, mContentProvider); mContentResolver.addProvider(ServiceStateTable.AUTHORITY, mContentProvider); mPermissionTable.add(PERMISSION_ENABLE_ALL); } Loading