summaryrefslogtreecommitdiff
path: root/test-mock/src/android/test/mock/MockContext.java
diff options
context:
space:
mode:
authorDianne Hackborn <hackbod@google.com>2018-11-20 15:58:15 -0800
committerDianne Hackborn <hackbod@google.com>2018-11-21 09:13:21 -0800
commita631d56cf37917121f26c5e70a67f1730840ef68 (patch)
tree4ea65c72521a472436e000ac9577fa5f0b888bc1 /test-mock/src/android/test/mock/MockContext.java
parentf66699ae165ce30f1cda1cfd704027a75bf457d2 (diff)
Add new API to performing grouping and ordering of bindings.
This will allow apps to better manage many isolated processes, telling the system how they are grouped together (so should be managed as one related entity within the LRU cache) and fine-tune the ordering within that group. The API is not yet tested... though in theory it is implemented. But the implementation done for that also fixes a *lot* of problems with activity LRU management that, even without groups, should make the ordering of processes in the LRU list much more consistently match how recently the user has interacted with it. Also clean up some of the new dumpsys output in the activity manager: move the new sections to before the process output (so it is still easy to see the process state at the end of the output), and add and document the command line options for controlling them. And add a new "lru" section that gives a clear view of what is going on with the raw LRU list. An upcoming change will add tests for the new grouping functionality, and probably some fixes resulting from that. Test: atest CtsAppTestCases:ServiceTest Bug: 111434506 Change-Id: I1f6b6b9de66ccde1573e1a0e9615e8c5f8e6c0d7
Diffstat (limited to 'test-mock/src/android/test/mock/MockContext.java')
-rw-r--r--test-mock/src/android/test/mock/MockContext.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/test-mock/src/android/test/mock/MockContext.java b/test-mock/src/android/test/mock/MockContext.java
index 66be6d9d9840..ae6cd29fb2de 100644
--- a/test-mock/src/android/test/mock/MockContext.java
+++ b/test-mock/src/android/test/mock/MockContext.java
@@ -591,6 +591,11 @@ public class MockContext extends Context {
}
@Override
+ public void updateServiceGroup(ServiceConnection conn, int group, int importance) {
+ throw new UnsupportedOperationException();
+ }
+
+ @Override
public void unbindService(ServiceConnection conn) {
throw new UnsupportedOperationException();
}