summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorvadimt <vadimt@google.com>2019-08-14 17:45:45 -0700
committervadimt <vadimt@google.com>2019-09-06 16:50:51 -0700
commit2bad570b40506bab04650711db3a3155043554c8 (patch)
treecdc6929f8a646018b791ae8562ce84552959a08c /tests
parent243dd30da31df6153e255368c3cc748decd45127 (diff)
downloadandroid_packages_apps_Trebuchet-2bad570b40506bab04650711db3a3155043554c8.tar.gz
android_packages_apps_Trebuchet-2bad570b40506bab04650711db3a3155043554c8.tar.bz2
android_packages_apps_Trebuchet-2bad570b40506bab04650711db3a3155043554c8.zip
Support for getting Launcher Pss by tests
Bug: 139137636 Change-Id: I8cad7dec07ce400cf927e3fc2ba9904fef942d9a
Diffstat (limited to 'tests')
-rw-r--r--tests/tapl/com/android/launcher3/tapl/LauncherInstrumentation.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/tapl/com/android/launcher3/tapl/LauncherInstrumentation.java b/tests/tapl/com/android/launcher3/tapl/LauncherInstrumentation.java
index 0bd63623d..14f2c857e 100644
--- a/tests/tapl/com/android/launcher3/tapl/LauncherInstrumentation.java
+++ b/tests/tapl/com/android/launcher3/tapl/LauncherInstrumentation.java
@@ -957,8 +957,8 @@ public final class LauncherInstrumentation {
getTestInfo(TestProtocol.REQUEST_DISABLE_DEBUG_TRACING);
}
- public long getAllocatedMemory() {
- return getTestInfo(TestProtocol.REQUEST_ALLOCATED_MEMORY).
- getLong(TestProtocol.TEST_INFO_RESPONSE_FIELD);
+ public int getTotalPssKb() {
+ return getTestInfo(TestProtocol.REQUEST_TOTAL_PSS_KB).
+ getInt(TestProtocol.TEST_INFO_RESPONSE_FIELD);
}
} \ No newline at end of file