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

Commit 7c773171 authored by Hall Liu's avatar Hall Liu
Browse files

Remove usages of notifyOemHookRawEventForSubscriber

Remove deprecated and unused method.

Bug: 148114017
Test: atest TelephonyRegistryManagerTest
Change-Id: I1a4d99d26a7ed59a115d4b76046120536fb4e808
parent af47950a
Loading
Loading
Loading
Loading
+0 −6
Original line number Diff line number Diff line
@@ -212,12 +212,6 @@ public class DefaultPhoneNotifier implements PhoneNotifier {
            sender.getSubId(), sender.getPhoneId(), state);
    }

    @Override
    public void notifyOemHookRawEventForSubscriber(Phone sender, byte[] rawData) {
        mTelephonyRegistryMgr.notifyOemHookRawEventForSubscriber(sender.getSubId(),
            sender.getPhoneId(), rawData);
    }

    @Override
    public void notifyPhoneCapabilityChanged(PhoneCapability capability) {
        mTelephonyRegistryMgr.notifyPhoneCapabilityChanged(capability);
+1 −7
Original line number Diff line number Diff line
@@ -690,13 +690,7 @@ public abstract class Phone extends Handler implements PhoneInternalInterface {
                break;

            case EVENT_UNSOL_OEM_HOOK_RAW:
                ar = (AsyncResult)msg.obj;
                if (ar.exception == null) {
                    byte[] data = (byte[])ar.result;
                    mNotifier.notifyOemHookRawEventForSubscriber(this, data);
                } else {
                    Rlog.e(LOG_TAG, "OEM hook raw exception: " + ar.exception);
                }
                // deprecated, ignore
                break;

            case EVENT_CONFIG_LCE:
+0 −3
Original line number Diff line number Diff line
@@ -86,9 +86,6 @@ public interface PhoneNotifier {
    /** Send a notification that the users mobile data setting has changed */
    void notifyUserMobileDataStateChanged(Phone sender, boolean state);

    /** Send a notification with an OEM hook payload */
    void notifyOemHookRawEventForSubscriber(Phone sender, byte[] rawData);

    /** Send a notification that the phone capability has changed */
    void notifyPhoneCapabilityChanged(PhoneCapability capability);