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

Commit 98ab83c3 authored by Neil Fuller's avatar Neil Fuller Committed by Gerrit Code Review
Browse files

Merge "Tidy up module-lib API and locks"

parents 402674f2 6a0664d7
Loading
Loading
Loading
Loading
+4 −4
Original line number Original line Diff line number Diff line
@@ -102,18 +102,18 @@ package android.timezone {
    method @NonNull public String getTimeZoneId();
    method @NonNull public String getTimeZoneId();
  }
  }


  public class TelephonyLookup {
  public final class TelephonyLookup {
    method @NonNull public static android.timezone.TelephonyLookup getInstance();
    method @NonNull public static android.timezone.TelephonyLookup getInstance();
    method @Nullable public android.timezone.TelephonyNetworkFinder getTelephonyNetworkFinder();
    method @Nullable public android.timezone.TelephonyNetworkFinder getTelephonyNetworkFinder();
  }
  }


  public class TelephonyNetwork {
  public final class TelephonyNetwork {
    method @NonNull public String getCountryIsoCode();
    method @NonNull public String getCountryIsoCode();
    method @NonNull public String getMcc();
    method @NonNull public String getMcc();
    method @NonNull public String getMnc();
    method @NonNull public String getMnc();
  }
  }


  public class TelephonyNetworkFinder {
  public final class TelephonyNetworkFinder {
    method @Nullable public android.timezone.TelephonyNetwork findNetworkByMccMnc(@NonNull String, @NonNull String);
    method @Nullable public android.timezone.TelephonyNetwork findNetworkByMccMnc(@NonNull String, @NonNull String);
  }
  }


@@ -134,7 +134,7 @@ package android.timezone {
    method @NonNull public static android.timezone.TzDataSetVersion read() throws java.io.IOException, android.timezone.TzDataSetVersion.TzDataSetException;
    method @NonNull public static android.timezone.TzDataSetVersion read() throws java.io.IOException, android.timezone.TzDataSetVersion.TzDataSetException;
  }
  }


  public static class TzDataSetVersion.TzDataSetException extends java.lang.Exception {
  public static final class TzDataSetVersion.TzDataSetException extends java.lang.Exception {
    ctor public TzDataSetVersion.TzDataSetException(String);
    ctor public TzDataSetVersion.TzDataSetException(String);
    ctor public TzDataSetVersion.TzDataSetException(String, Throwable);
    ctor public TzDataSetVersion.TzDataSetException(String, Throwable);
  }
  }
+2 −2
Original line number Original line Diff line number Diff line
@@ -30,9 +30,9 @@ import java.util.Objects;
 * @hide
 * @hide
 */
 */
@SystemApi(client = SystemApi.Client.MODULE_LIBRARIES)
@SystemApi(client = SystemApi.Client.MODULE_LIBRARIES)
public class TelephonyLookup {
public final class TelephonyLookup {


    private static Object sLock = new Object();
    private static final Object sLock = new Object();
    @GuardedBy("sLock")
    @GuardedBy("sLock")
    private static TelephonyLookup sInstance;
    private static TelephonyLookup sInstance;


+1 −1
Original line number Original line Diff line number Diff line
@@ -27,7 +27,7 @@ import java.util.Objects;
 * @hide
 * @hide
 */
 */
@SystemApi(client = SystemApi.Client.MODULE_LIBRARIES)
@SystemApi(client = SystemApi.Client.MODULE_LIBRARIES)
public class TelephonyNetwork {
public final class TelephonyNetwork {


    @NonNull
    @NonNull
    private final libcore.timezone.TelephonyNetwork mDelegate;
    private final libcore.timezone.TelephonyNetwork mDelegate;
+1 −1
Original line number Original line Diff line number Diff line
@@ -28,7 +28,7 @@ import java.util.Objects;
 * @hide
 * @hide
 */
 */
@SystemApi(client = SystemApi.Client.MODULE_LIBRARIES)
@SystemApi(client = SystemApi.Client.MODULE_LIBRARIES)
public class TelephonyNetworkFinder {
public final class TelephonyNetworkFinder {


    @NonNull
    @NonNull
    private final libcore.timezone.TelephonyNetworkFinder mDelegate;
    private final libcore.timezone.TelephonyNetworkFinder mDelegate;
+1 −1
Original line number Original line Diff line number Diff line
@@ -32,7 +32,7 @@ import java.util.Objects;
@SystemApi(client = SystemApi.Client.MODULE_LIBRARIES)
@SystemApi(client = SystemApi.Client.MODULE_LIBRARIES)
public final class TimeZoneFinder {
public final class TimeZoneFinder {


    private static Object sLock = new Object();
    private static final Object sLock = new Object();
    @GuardedBy("sLock")
    @GuardedBy("sLock")
    private static TimeZoneFinder sInstance;
    private static TimeZoneFinder sInstance;


Loading