blob: 4ff313abdc06e0616449ad44635e280d0bcd2ab9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
package com.android.providers.downloads;
import android.net.ConnectivityManager;
public class FakeSystemFacade implements SystemFacade {
long mTimeMillis = 0;
Integer mActiveNetworkType = ConnectivityManager.TYPE_WIFI;
boolean mIsRoaming = false;
Integer mMaxBytesOverMobile = null;
void incrementTimeMillis(long delta) {
mTimeMillis += delta;
}
public long currentTimeMillis() {
return mTimeMillis;
}
public Integer getActiveNetworkType() {
return mActiveNetworkType;
}
public boolean isNetworkRoaming() {
return mIsRoaming;
}
public Integer getMaxBytesOverMobile() {
return mMaxBytesOverMobile ;
}
}
|