Loading src/java/com/android/internal/telephony/satellite/SatelliteController.java +20 −0 Original line number Diff line number Diff line Loading @@ -918,6 +918,17 @@ public class SatelliteController extends Handler { sendRequestAsync(CMD_IS_SATELLITE_ENABLED, result, SatelliteServiceUtils.getPhone()); } /** * Get whether the satellite modem is enabled. * This will return the cached value instead of querying the satellite modem. * * @return {@code true} if the satellite modem is enabled and {@code false} otherwise. */ public boolean isSatelliteEnabled() { if (mIsSatelliteEnabled == null) return false; return mIsSatelliteEnabled; } /** * Request to get whether the satellite service demo mode is enabled. * Loading Loading @@ -952,6 +963,15 @@ public class SatelliteController extends Handler { result.send(SatelliteManager.SATELLITE_ERROR_NONE, bundle); } /** * Get whether the satellite service demo mode is enabled. * * @return {@code true} if the satellite demo mode is enabled and {@code false} otherwise. */ public boolean isDemoModeEnabled() { return mIsDemoModeEnabled; } /** * Request to get whether the satellite service is supported on the device. * Loading Loading
src/java/com/android/internal/telephony/satellite/SatelliteController.java +20 −0 Original line number Diff line number Diff line Loading @@ -918,6 +918,17 @@ public class SatelliteController extends Handler { sendRequestAsync(CMD_IS_SATELLITE_ENABLED, result, SatelliteServiceUtils.getPhone()); } /** * Get whether the satellite modem is enabled. * This will return the cached value instead of querying the satellite modem. * * @return {@code true} if the satellite modem is enabled and {@code false} otherwise. */ public boolean isSatelliteEnabled() { if (mIsSatelliteEnabled == null) return false; return mIsSatelliteEnabled; } /** * Request to get whether the satellite service demo mode is enabled. * Loading Loading @@ -952,6 +963,15 @@ public class SatelliteController extends Handler { result.send(SatelliteManager.SATELLITE_ERROR_NONE, bundle); } /** * Get whether the satellite service demo mode is enabled. * * @return {@code true} if the satellite demo mode is enabled and {@code false} otherwise. */ public boolean isDemoModeEnabled() { return mIsDemoModeEnabled; } /** * Request to get whether the satellite service is supported on the device. * Loading