Home
last modified time | relevance | path

Searched refs:DistroRulesVersion (Results 1 – 6 of 6) sorted by relevance

/frameworks/base/core/tests/coretests/src/android/app/timezone/
DDistroRulesVersionTest.java37 DistroRulesVersion one = new DistroRulesVersion("2016a", 2); in equalsAndHashCode()
40 DistroRulesVersion two = new DistroRulesVersion("2016a", 2); in equalsAndHashCode()
43 DistroRulesVersion three = new DistroRulesVersion("2016b", 1); in equalsAndHashCode()
49 DistroRulesVersion version = new DistroRulesVersion("2016a", 2); in parcelable()
55 DistroRulesVersion newVersion = DistroRulesVersion.CREATOR.createFromParcel(parcel); in parcelable()
62 DistroRulesVersion deviceVersion = new DistroRulesVersion("2016b", 2); in isOlderThan()
65 DistroRulesVersion sameVersion = new DistroRulesVersion("2016b", 2); in isOlderThan()
68 DistroRulesVersion sameRulesNewerRevision = new DistroRulesVersion("2016b", 3); in isOlderThan()
71 DistroRulesVersion sameRulesOlderRevision = new DistroRulesVersion("2016b", 1); in isOlderThan()
74 DistroRulesVersion newerRules = new DistroRulesVersion("2016c", 2); in isOlderThan()
[all …]
DRulesStateTest.java139 private static DistroRulesVersion rulesVersion(String rulesVersion, int revision) { in rulesVersion()
140 return new DistroRulesVersion(rulesVersion, revision); in rulesVersion()
/frameworks/base/core/java/android/app/timezone/
DDistroRulesVersion.java39 public final class DistroRulesVersion implements Parcelable { class
44 public DistroRulesVersion(String rulesVersion, int revision) { in DistroRulesVersion() method in DistroRulesVersion
49 …tic final @android.annotation.NonNull Creator<DistroRulesVersion> CREATOR = new Creator<DistroRule…
50 public DistroRulesVersion createFromParcel(Parcel in) {
53 return new DistroRulesVersion(rulesVersion, revision);
56 public DistroRulesVersion[] newArray(int size) {
57 return new DistroRulesVersion[size];
74 public boolean isOlderThan(DistroRulesVersion distroRulesVersion) { in isOlderThan()
105 DistroRulesVersion that = (DistroRulesVersion) o; in equals()
DRulesState.java105 @Nullable private final DistroRulesVersion mStagedDistroRulesVersion;
107 @Nullable private final DistroRulesVersion mInstalledDistroRulesVersion;
112 @Nullable DistroRulesVersion stagedDistroRulesVersion, in RulesState()
114 @Nullable DistroRulesVersion installedDistroRulesVersion) { in RulesState()
151 public @Nullable DistroRulesVersion getStagedDistroRulesVersion() { in getStagedDistroRulesVersion()
163 public @Nullable DistroRulesVersion getInstalledDistroRulesVersion() { in getInstalledDistroRulesVersion()
181 public boolean isBaseVersionNewerThan(DistroRulesVersion distroRulesVersion) { in isBaseVersionNewerThan()
201 DistroRulesVersion stagedDistroRulesVersion = in.readParcelable(null); in createFromParcel()
203 DistroRulesVersion installedDistroRulesVersion = in.readParcelable(null); in createFromParcel()
/frameworks/base/services/tests/servicestests/src/com/android/server/timezone/
DRulesManagerServiceTest.java40 import android.app.timezone.DistroRulesVersion;
152 DistroRulesVersion stagedDistroRulesVersion = new DistroRulesVersion( in getRulesState_stagedInstall()
154 DistroRulesVersion installedDistroRulesVersion = new DistroRulesVersion( in getRulesState_stagedInstall()
179 DistroRulesVersion installedDistroRulesVersion = new DistroRulesVersion( in getRulesState_nothingStaged()
204 DistroRulesVersion installedDistroRulesVersion = new DistroRulesVersion( in getRulesState_uninstallStaged()
248 DistroRulesVersion installedDistroRulesVersion = new DistroRulesVersion( in getRulesState_stagedRulesError()
304 DistroRulesVersion expectedInstalledDistroRulesVersion = in getRulesState_operationInProgress()
305 new DistroRulesVersion(installedRulesVersion, revision); in getRulesState_operationInProgress()
/frameworks/base/services/core/java/com/android/server/timezone/
DRulesManagerService.java29 import android.app.timezone.DistroRulesVersion;
160 DistroRulesVersion installedDistroRulesVersion = null; in getRulesStateInternal()
168 installedDistroRulesVersion = new DistroRulesVersion( in getRulesStateInternal()
179 DistroRulesVersion stagedDistroRulesVersion = null; in getRulesStateInternal()
193 stagedDistroRulesVersion = new DistroRulesVersion( in getRulesStateInternal()
481 DistroRulesVersion installedRulesVersion = in dump()
507 DistroRulesVersion stagedDistroRulesVersion = in dump()