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

Commit d2d851b5 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
Merged-In: I1a4d99d26a7ed59a115d4b76046120536fb4e808
parent fe2b8076
Loading
Loading
Loading
Loading
+0 −6
Original line number Diff line number Diff line
@@ -207,12 +207,6 @@ public class DefaultPhoneNotifier implements PhoneNotifier {
                sender.getSubId(), state);
    }

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

    @Override
    public void notifyDisplayInfoChanged(Phone sender, DisplayInfo displayInfo) {
        mTelephonyRegistryMgr.notifyDisplayInfoChanged(sender.getPhoneId(), sender.getSubId(),
+1 −7
Original line number Diff line number Diff line
@@ -715,13 +715,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
@@ -87,9 +87,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 display info has changed */
    void notifyDisplayInfoChanged(Phone sender, DisplayInfo displayInfo);