summaryrefslogtreecommitdiffstats
path: root/src/com/android/launcher3/testing/TestInformationHandler.java
diff options
context:
space:
mode:
authorHyunyoung Song <hyunyoungs@google.com>2019-09-12 15:22:35 -0700
committerHyunyoung Song <hyunyoungs@google.com>2019-09-12 15:22:35 -0700
commita7a1b57bc8b211ca64598aa42e83eb21789056b9 (patch)
tree71acb03e62bb1ba508ba241fb2e52a586fbe9ed9 /src/com/android/launcher3/testing/TestInformationHandler.java
parent241cd902035d05d9d7300c2f63b4f01af833d275 (diff)
parent39216c1533330a8fc0f5d86f3b8193eb85f2f195 (diff)
downloadpackages_apps_Trebuchet-a7a1b57bc8b211ca64598aa42e83eb21789056b9.tar.gz
packages_apps_Trebuchet-a7a1b57bc8b211ca64598aa42e83eb21789056b9.tar.bz2
packages_apps_Trebuchet-a7a1b57bc8b211ca64598aa42e83eb21789056b9.zip
Merging ub-launcher3-qt-qpr1-dev, build 5872416
Test: Manual Bug:121280703 P2 Finish implementation of PortraitLandscape annotation for tests Bug:135633159 P3 [QPR] Promise icons on home screen Bug:135638690 P1 [QPR] On-device app search Bug:137106918 P2 UX: Accidental NGA triggering when hitting Undo actions in apps Bug:137200188 P3 Home screen app title disappears during animation Bug:138195597 P2 Wrong icon animated on return to home screen Bug:138396187 P1 Swipe and hold from an app no longer uses spring to animate adjacent task Bug:138729157 P1 [Flaky test] java.lang.AssertionError: http://go/tapl : want to fling backwards in widgets, flung back, but the current state is not WIDGETS; Unexpected launcher object visible: workspace Bug:138729456 P1 [Flaky test] java.lang.AssertionError: http://go/tapl : Can't find an object with selector: BySelector [CLASS='\Qandroid.widget.TextView\E', PKG='\Qcom.google.android.apps.nexuslauncher\E', TEXT='\QShortcut 3\E'] (visible state: Workspace) Bug:138964490 P1 Support DeviceConfig to drive ToggleableFlags Bug:139021165 P2 [TEST TRACKER] [QPR] Promise icons on home screen Bug:139137636 P2 Create memory tests for Launcher Bug:139551306 P4 [Polish] Reduce shelf paddings in Overview Bug:139885365 P3 App open animation different between launcher suggested apps and launcher home screen/drawer Bug:139918680 P2 [a11y] Talkback shouldn't keep focusing on the background item and speak the description of the background item again after entering Widget list. Bug:140076379 P1 Launcher ub-launcher3-qt-qpr1-dev Branch Build Keeps Crashing due to Exception Bug:140252951 P2 Add widget launch test. Bug:140308849 P2 Jank during swipe up to home, especially noticeable after pausing first Bug:140311911 P2 Flake in Launcher tests: java.lang.AssertionError: Stable state != state: OverviewState, LauncherState Bug:140405990 P2 [a11y] Unable to add shortcut to Home screen by Voice access or Switch access. Bug:140819614 P1 If an install session is abandoned for an already installed app, the corresponding icon is removed Bug:140823188 P1 AppPredictionsUITests failing Bug:140837771 P1 Failing test: AddConfigWidgetTests and AddWidgetTests are failing Change-Id: I1efae6216c53b1fee3e105c9356ed43c4bf46c6e
Diffstat (limited to 'src/com/android/launcher3/testing/TestInformationHandler.java')
-rw-r--r--src/com/android/launcher3/testing/TestInformationHandler.java11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/com/android/launcher3/testing/TestInformationHandler.java b/src/com/android/launcher3/testing/TestInformationHandler.java
index 4fd0f884d..243ff6f96 100644
--- a/src/com/android/launcher3/testing/TestInformationHandler.java
+++ b/src/com/android/launcher3/testing/TestInformationHandler.java
@@ -17,6 +17,7 @@ package com.android.launcher3.testing;
import android.content.Context;
import android.os.Bundle;
+import android.os.Debug;
import com.android.launcher3.DeviceProfile;
import com.android.launcher3.InvariantDeviceProfile;
@@ -113,13 +114,13 @@ public class TestInformationHandler implements ResourceBasedOverride {
break;
}
- case TestProtocol.REQUEST_ALLOCATED_MEMORY: {
- final Runtime runtime = Runtime.getRuntime();
- response.putLong(TestProtocol.TEST_INFO_RESPONSE_FIELD,
- runtime.totalMemory() - runtime.freeMemory());
+ case TestProtocol.REQUEST_TOTAL_PSS_KB: {
+ Debug.MemoryInfo mem = new Debug.MemoryInfo();
+ Debug.getMemoryInfo(mem);
+ response.putInt(TestProtocol.TEST_INFO_RESPONSE_FIELD, mem.getTotalPss());
break;
}
}
return response;
}
-}
+} \ No newline at end of file