File tree Expand file tree Collapse file tree
app/src/main/java/us/shandian/giga Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1818import static us .shandian .giga .get .DownloadMission .ERROR_HTTP_FORBIDDEN ;
1919
2020public class DownloadInitializer extends Thread {
21- private final static String TAG = "DownloadInitializer" ;
22- final static int mId = 0 ;
23- private final static int RESERVE_SPACE_DEFAULT = 5 * 1024 * 1024 ;// 5 MiB
24- private final static int RESERVE_SPACE_MAXIMUM = 150 * 1024 * 1024 ;// 150 MiB
21+ private static final String TAG = "DownloadInitializer" ;
22+ static final int mId = 0 ;
23+ private static final int RESERVE_SPACE_DEFAULT = 5 * 1024 * 1024 ;// 5 MiB
24+ private static final int RESERVE_SPACE_MAXIMUM = 150 * 1024 * 1024 ;// 150 MiB
2525
2626 private final DownloadMission mMission ;
2727 private HttpURLConnection mConn ;
Original file line number Diff line number Diff line change 1111
1212public class CircularFileWriter extends SharpStream {
1313
14- private final static int QUEUE_BUFFER_SIZE = 8 * 1024 ;// 8 KiB
15- private final static int COPY_BUFFER_SIZE = 128 * 1024 ; // 128 KiB
16- private final static int NOTIFY_BYTES_INTERVAL = 64 * 1024 ;// 64 KiB
17- private final static int THRESHOLD_AUX_LENGTH = 15 * 1024 * 1024 ;// 15 MiB
14+ private static final int QUEUE_BUFFER_SIZE = 8 * 1024 ;// 8 KiB
15+ private static final int COPY_BUFFER_SIZE = 128 * 1024 ; // 128 KiB
16+ private static final int NOTIFY_BYTES_INTERVAL = 64 * 1024 ;// 64 KiB
17+ private static final int THRESHOLD_AUX_LENGTH = 15 * 1024 * 1024 ;// 15 MiB
1818
1919 private final OffsetChecker callback ;
2020
Original file line number Diff line number Diff line change @@ -30,9 +30,9 @@ public class DownloadManager {
3030
3131 enum NetworkState {Unavailable , Operating , MeteredOperating }
3232
33- public final static int SPECIAL_NOTHING = 0 ;
34- public final static int SPECIAL_PENDING = 1 ;
35- public final static int SPECIAL_FINISHED = 2 ;
33+ public static final int SPECIAL_NOTHING = 0 ;
34+ public static final int SPECIAL_PENDING = 1 ;
35+ public static final int SPECIAL_FINISHED = 2 ;
3636
3737 public static final String TAG_AUDIO = "audio" ;
3838 public static final String TAG_VIDEO = "video" ;
You can’t perform that action at this time.
0 commit comments