Merge "Add getter for mockability" into tm-qpr-dev am: 5b7b153349
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/22347448 Change-Id: If6ae8ea95b7aeb5d6b608955fbc50c7b14635357 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -133,6 +133,10 @@ public class Task {
|
||||
return this.baseIntent.getPackage();
|
||||
}
|
||||
|
||||
public int getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean equals(Object o) {
|
||||
if (!(o instanceof TaskKey)) {
|
||||
@@ -307,6 +311,10 @@ public class Task {
|
||||
lastSnapshotData.set(rawTask.lastSnapshotData);
|
||||
}
|
||||
|
||||
public TaskKey getKey() {
|
||||
return key;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the visible width to height ratio. Returns 0f if snapshot data is not available.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user