Loading api/system-current.txt +2 −2 Original line number Diff line number Diff line Loading @@ -6485,8 +6485,8 @@ package android.os { } public static final class UpdateEngine.AllocateSpaceResult { method public int errorCode(); method public long freeSpaceRequired(); method public int getErrorCode(); method public long getFreeSpaceRequired(); } public static final class UpdateEngine.ErrorCodeConstants { Loading core/java/android/os/UpdateEngine.java +9 −7 Original line number Diff line number Diff line Loading @@ -478,7 +478,7 @@ public class UpdateEngine { * </ul> */ @ErrorCode public int errorCode() { public int getErrorCode() { return mErrorCode; } Loading @@ -492,14 +492,15 @@ public class UpdateEngine { * * @return The following values: * <ul> * <li>zero if {@link #errorCode} returns {@link ErrorCodeConstants#SUCCESS}</li> * <li>non-zero if {@link #errorCode} returns {@link ErrorCodeConstants#NOT_ENOUGH_SPACE}. * <li>zero if {@link #getErrorCode} returns {@link ErrorCodeConstants#SUCCESS}</li> * <li>non-zero if {@link #getErrorCode} returns * {@link ErrorCodeConstants#NOT_ENOUGH_SPACE}. * Value is the estimated total space required on userdata partition.</li> * </ul> * @throws IllegalStateException if {@link #errorCode} is not one of the above. * @throws IllegalStateException if {@link #getErrorCode} is not one of the above. * */ public long freeSpaceRequired() { public long getFreeSpaceRequired() { if (mErrorCode == ErrorCodeConstants.SUCCESS) { return 0; } Loading @@ -507,7 +508,7 @@ public class UpdateEngine { return mFreeSpaceRequired; } throw new IllegalStateException(String.format( "freeSpaceRequired() is not available when error code is %d", mErrorCode)); "getFreeSpaceRequired() is not available when error code is %d", mErrorCode)); } } Loading @@ -531,7 +532,8 @@ public class UpdateEngine { * * @param payloadMetadataFilename See {@link #verifyPayloadMetadata}. * @param headerKeyValuePairs See {@link #applyPayload}. * @return See {@link AllocateSpaceResult}. * @return See {@link AllocateSpaceResult#getErrorCode} and * {@link AllocateSpaceResult#getFreeSpaceRequired}. */ @NonNull public AllocateSpaceResult allocateSpace( Loading Loading
api/system-current.txt +2 −2 Original line number Diff line number Diff line Loading @@ -6485,8 +6485,8 @@ package android.os { } public static final class UpdateEngine.AllocateSpaceResult { method public int errorCode(); method public long freeSpaceRequired(); method public int getErrorCode(); method public long getFreeSpaceRequired(); } public static final class UpdateEngine.ErrorCodeConstants { Loading
core/java/android/os/UpdateEngine.java +9 −7 Original line number Diff line number Diff line Loading @@ -478,7 +478,7 @@ public class UpdateEngine { * </ul> */ @ErrorCode public int errorCode() { public int getErrorCode() { return mErrorCode; } Loading @@ -492,14 +492,15 @@ public class UpdateEngine { * * @return The following values: * <ul> * <li>zero if {@link #errorCode} returns {@link ErrorCodeConstants#SUCCESS}</li> * <li>non-zero if {@link #errorCode} returns {@link ErrorCodeConstants#NOT_ENOUGH_SPACE}. * <li>zero if {@link #getErrorCode} returns {@link ErrorCodeConstants#SUCCESS}</li> * <li>non-zero if {@link #getErrorCode} returns * {@link ErrorCodeConstants#NOT_ENOUGH_SPACE}. * Value is the estimated total space required on userdata partition.</li> * </ul> * @throws IllegalStateException if {@link #errorCode} is not one of the above. * @throws IllegalStateException if {@link #getErrorCode} is not one of the above. * */ public long freeSpaceRequired() { public long getFreeSpaceRequired() { if (mErrorCode == ErrorCodeConstants.SUCCESS) { return 0; } Loading @@ -507,7 +508,7 @@ public class UpdateEngine { return mFreeSpaceRequired; } throw new IllegalStateException(String.format( "freeSpaceRequired() is not available when error code is %d", mErrorCode)); "getFreeSpaceRequired() is not available when error code is %d", mErrorCode)); } } Loading @@ -531,7 +532,8 @@ public class UpdateEngine { * * @param payloadMetadataFilename See {@link #verifyPayloadMetadata}. * @param headerKeyValuePairs See {@link #applyPayload}. * @return See {@link AllocateSpaceResult}. * @return See {@link AllocateSpaceResult#getErrorCode} and * {@link AllocateSpaceResult#getFreeSpaceRequired}. */ @NonNull public AllocateSpaceResult allocateSpace( Loading