Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0a1fde2a authored by Hyosun Kim's avatar Hyosun Kim
Browse files

Change intent name to ACTION_SATELLITE_SUBSCRIBER_ID_LIST_CHANGED

Bug: 361383526
Test: atest SatelliteManagerTest
Flag: com.android.internal.telephony.flags.carrier_roaming_nb_iot_ntn

Change-Id: I405ac21a7c440d299a664aa01caa605451467779
parent 6db10297
Loading
Loading
Loading
Loading
+7 −3
Original line number Diff line number Diff line
@@ -5724,13 +5724,17 @@ public class SatelliteController extends Handler {
                R.string.config_satellite_gateway_service_package);
        String className = getStringFromOverlayConfig(
                R.string.config_satellite_carrier_roaming_esos_provisioned_class);
        String action = getStringFromOverlayConfig(
                R.string.config_satellite_carrier_roaming_esos_provisioned_intent_action);
        if (packageName == null || className == null || packageName.isEmpty()
                || className.isEmpty()) {
            logd("sendBroadCaseToProvisionedESOSSubs: packageName or className is null or empty.");
            return;
        }
        String action = SatelliteManager.ACTION_SATELLITE_SUBSCRIBER_ID_LIST_CHANGED;

        Intent intent = new Intent(action);
        intent.setComponent(new ComponentName(packageName, className));
        mContext.sendBroadcast(intent);
        logd("sendBroadCaseToProvisionedESOSSubs");
        logd("sendBroadCaseToProvisionedESOSSubs" + intent);
    }

    private String getStringFromOverlayConfig(int resourceId) {
+0 −2
Original line number Diff line number Diff line
@@ -4357,8 +4357,6 @@ public class SatelliteControllerTest extends TelephonyTest {
                eq(R.string.config_satellite_gateway_service_package));
        doReturn("className").when(mResources).getString(
                eq(R.string.config_satellite_carrier_roaming_esos_provisioned_class));
        doReturn("action").when(mResources).getString(
                eq(R.string.config_satellite_carrier_roaming_esos_provisioned_intent_action));
    }

    private List<SatelliteSubscriberInfo> getExpectedSatelliteSubscriberInfoList() {