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

Commit 3a81af1c authored by Sasha Kuznetsov's avatar Sasha Kuznetsov
Browse files

Add @TestApi to SystemApis in SystemProperties

Test: build and flash Android
Bug: 143620678

This is needed because these APIs are used by CTS tests.
parent 6209f7f5
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -2063,6 +2063,8 @@ package android.os {
    method @NonNull public static String get(@NonNull String);
    method @NonNull public static String get(@NonNull String, @Nullable String);
    method public static boolean getBoolean(@NonNull String, boolean);
    method public static int getInt(@NonNull String, int);
    method public static long getLong(@NonNull String, long);
  }

  public final class UserHandle implements android.os.Parcelable {
+2 −0
Original line number Diff line number Diff line
@@ -151,6 +151,7 @@ public class SystemProperties {
     * @hide
     */
    @SystemApi
    @TestApi
    public static int getInt(@NonNull String key, int def) {
        if (TRACK_KEY_ACCESS) onKeyAccess(key);
        return native_get_int(key, def);
@@ -166,6 +167,7 @@ public class SystemProperties {
     * @hide
     */
    @SystemApi
    @TestApi
    public static long getLong(@NonNull String key, long def) {
        if (TRACK_KEY_ACCESS) onKeyAccess(key);
        return native_get_long(key, def);