Loading packages/SystemUI/src/com/android/keyguard/CarrierTextManager.java +19 −9 Original line number Diff line number Diff line Loading @@ -160,11 +160,18 @@ public class CarrierTextManager { * * @param separator Separator between different parts of the text */ private CarrierTextManager(Context context, CharSequence separator, boolean showAirplaneMode, boolean showMissingSim, @Nullable WifiManager wifiManager, TelephonyManager telephonyManager, TelephonyListenerManager telephonyListenerManager, WakefulnessLifecycle wakefulnessLifecycle, @Main Executor mainExecutor, @Background Executor bgExecutor, KeyguardUpdateMonitor keyguardUpdateMonitor) { private CarrierTextManager( Context context, CharSequence separator, boolean showAirplaneMode, boolean showMissingSim, @Nullable WifiManager wifiManager, TelephonyManager telephonyManager, TelephonyListenerManager telephonyListenerManager, WakefulnessLifecycle wakefulnessLifecycle, @Main Executor mainExecutor, @Background Executor bgExecutor, KeyguardUpdateMonitor keyguardUpdateMonitor) { mContext = context; mIsEmergencyCallCapable = telephonyManager.isVoiceCapable(); Loading Loading @@ -633,12 +640,15 @@ public class CarrierTextManager { private boolean mShowMissingSim; @Inject public Builder(Context context, @Main Resources resources, public Builder( Context context, @Main Resources resources, @Nullable WifiManager wifiManager, TelephonyManager telephonyManager, TelephonyListenerManager telephonyListenerManager, WakefulnessLifecycle wakefulnessLifecycle, @Main Executor mainExecutor, @Background Executor bgExecutor, @Main Executor mainExecutor, @Background Executor bgExecutor, KeyguardUpdateMonitor keyguardUpdateMonitor) { mContext = context; mSeparator = resources.getString( Loading Loading @@ -668,8 +678,8 @@ public class CarrierTextManager { public CarrierTextManager build() { return new CarrierTextManager( mContext, mSeparator, mShowAirplaneMode, mShowMissingSim, mWifiManager, mTelephonyManager, mTelephonyListenerManager, mWakefulnessLifecycle, mMainExecutor, mBgExecutor, mKeyguardUpdateMonitor); mTelephonyManager, mTelephonyListenerManager, mWakefulnessLifecycle, mMainExecutor, mBgExecutor, mKeyguardUpdateMonitor); } } /** Loading packages/SystemUI/src/com/android/systemui/telephony/TelephonyCallback.java +6 −0 Original line number Diff line number Diff line Loading @@ -28,6 +28,12 @@ import java.util.List; import javax.inject.Inject; /** * Class for use by {@link TelephonyListenerManager} to centralize TelephonyManager Callbacks. * * There are more callback interfaces defined in {@link android.telephony.TelephonyCallback} that * are not currently covered. Add them here if they ever become necessary. */ class TelephonyCallback extends android.telephony.TelephonyCallback implements ActiveDataSubscriptionIdListener, CallStateListener, ServiceStateListener { Loading packages/SystemUI/src/com/android/systemui/telephony/TelephonyListenerManager.java +3 −1 Original line number Diff line number Diff line Loading @@ -47,7 +47,9 @@ public class TelephonyListenerManager { private boolean mListening = false; @Inject public TelephonyListenerManager(TelephonyManager telephonyManager, @Main Executor executor, public TelephonyListenerManager( TelephonyManager telephonyManager, @Main Executor executor, TelephonyCallback telephonyCallback) { mTelephonyManager = telephonyManager; mExecutor = executor; Loading packages/SystemUI/tests/src/com/android/systemui/telephony/TelephonyCallbackTest.java +1 −2 Original line number Diff line number Diff line Loading @@ -27,7 +27,6 @@ import androidx.test.runner.AndroidJUnit4; import com.android.systemui.SysuiTestCase; import org.junit.Before; import org.junit.Test; import org.junit.runner.RunWith; Loading Loading
packages/SystemUI/src/com/android/keyguard/CarrierTextManager.java +19 −9 Original line number Diff line number Diff line Loading @@ -160,11 +160,18 @@ public class CarrierTextManager { * * @param separator Separator between different parts of the text */ private CarrierTextManager(Context context, CharSequence separator, boolean showAirplaneMode, boolean showMissingSim, @Nullable WifiManager wifiManager, TelephonyManager telephonyManager, TelephonyListenerManager telephonyListenerManager, WakefulnessLifecycle wakefulnessLifecycle, @Main Executor mainExecutor, @Background Executor bgExecutor, KeyguardUpdateMonitor keyguardUpdateMonitor) { private CarrierTextManager( Context context, CharSequence separator, boolean showAirplaneMode, boolean showMissingSim, @Nullable WifiManager wifiManager, TelephonyManager telephonyManager, TelephonyListenerManager telephonyListenerManager, WakefulnessLifecycle wakefulnessLifecycle, @Main Executor mainExecutor, @Background Executor bgExecutor, KeyguardUpdateMonitor keyguardUpdateMonitor) { mContext = context; mIsEmergencyCallCapable = telephonyManager.isVoiceCapable(); Loading Loading @@ -633,12 +640,15 @@ public class CarrierTextManager { private boolean mShowMissingSim; @Inject public Builder(Context context, @Main Resources resources, public Builder( Context context, @Main Resources resources, @Nullable WifiManager wifiManager, TelephonyManager telephonyManager, TelephonyListenerManager telephonyListenerManager, WakefulnessLifecycle wakefulnessLifecycle, @Main Executor mainExecutor, @Background Executor bgExecutor, @Main Executor mainExecutor, @Background Executor bgExecutor, KeyguardUpdateMonitor keyguardUpdateMonitor) { mContext = context; mSeparator = resources.getString( Loading Loading @@ -668,8 +678,8 @@ public class CarrierTextManager { public CarrierTextManager build() { return new CarrierTextManager( mContext, mSeparator, mShowAirplaneMode, mShowMissingSim, mWifiManager, mTelephonyManager, mTelephonyListenerManager, mWakefulnessLifecycle, mMainExecutor, mBgExecutor, mKeyguardUpdateMonitor); mTelephonyManager, mTelephonyListenerManager, mWakefulnessLifecycle, mMainExecutor, mBgExecutor, mKeyguardUpdateMonitor); } } /** Loading
packages/SystemUI/src/com/android/systemui/telephony/TelephonyCallback.java +6 −0 Original line number Diff line number Diff line Loading @@ -28,6 +28,12 @@ import java.util.List; import javax.inject.Inject; /** * Class for use by {@link TelephonyListenerManager} to centralize TelephonyManager Callbacks. * * There are more callback interfaces defined in {@link android.telephony.TelephonyCallback} that * are not currently covered. Add them here if they ever become necessary. */ class TelephonyCallback extends android.telephony.TelephonyCallback implements ActiveDataSubscriptionIdListener, CallStateListener, ServiceStateListener { Loading
packages/SystemUI/src/com/android/systemui/telephony/TelephonyListenerManager.java +3 −1 Original line number Diff line number Diff line Loading @@ -47,7 +47,9 @@ public class TelephonyListenerManager { private boolean mListening = false; @Inject public TelephonyListenerManager(TelephonyManager telephonyManager, @Main Executor executor, public TelephonyListenerManager( TelephonyManager telephonyManager, @Main Executor executor, TelephonyCallback telephonyCallback) { mTelephonyManager = telephonyManager; mExecutor = executor; Loading
packages/SystemUI/tests/src/com/android/systemui/telephony/TelephonyCallbackTest.java +1 −2 Original line number Diff line number Diff line Loading @@ -27,7 +27,6 @@ import androidx.test.runner.AndroidJUnit4; import com.android.systemui.SysuiTestCase; import org.junit.Before; import org.junit.Test; import org.junit.runner.RunWith; Loading