-
Notifications
You must be signed in to change notification settings - Fork 92
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
196 additions
and
55 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
61 changes: 61 additions & 0 deletions
61
...ork/base/src/main/java/github/tornaco/android/thanos/core/app/usage/PkgCpuUsageStats.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
/* | ||
* (C) Copyright 2022 Thanox | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
* | ||
*/ | ||
|
||
package github.tornaco.android.thanos.core.app.usage; | ||
|
||
import android.os.Parcel; | ||
import android.os.Parcelable; | ||
|
||
import github.tornaco.android.thanos.core.pm.Pkg; | ||
|
||
public class PkgCpuUsageStats implements Parcelable { | ||
public Pkg pkg; | ||
public String cpuRatioString; | ||
|
||
protected PkgCpuUsageStats(Parcel in) { | ||
pkg = in.readParcelable(Pkg.class.getClassLoader()); | ||
cpuRatioString = in.readString(); | ||
} | ||
|
||
public PkgCpuUsageStats(Pkg pkg, String cpuRatioString) { | ||
this.pkg = pkg; | ||
this.cpuRatioString = cpuRatioString; | ||
} | ||
|
||
@Override | ||
public void writeToParcel(Parcel dest, int flags) { | ||
dest.writeParcelable(pkg, flags); | ||
dest.writeString(cpuRatioString); | ||
} | ||
|
||
@Override | ||
public int describeContents() { | ||
return 0; | ||
} | ||
|
||
public static final Creator<PkgCpuUsageStats> CREATOR = new Creator<PkgCpuUsageStats>() { | ||
@Override | ||
public PkgCpuUsageStats createFromParcel(Parcel in) { | ||
return new PkgCpuUsageStats(in); | ||
} | ||
|
||
@Override | ||
public PkgCpuUsageStats[] newArray(int size) { | ||
return new PkgCpuUsageStats[size]; | ||
} | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Submodule Thanox-Internal
updated
from e4a444 to a45d5d