summaryrefslogtreecommitdiff
path: root/test-runner/src
diff options
context:
space:
mode:
authorDianne Hackborn <hackbod@google.com>2018-11-12 15:01:40 -0800
committerDianne Hackborn <hackbod@google.com>2018-11-13 16:03:02 -0800
commit27b4d94a07ac00367ad12b667c983a89153537d8 (patch)
tree6e7786697585c7cbefe705c79ddc83f7eeb85109 /test-runner/src
parent59805434784886d79c6bdb8253b0aae5351be8d3 (diff)
Implement naming of isolated service bindings.
This allows clients to run multiple instances of the same manifest service declaration. It only works for isolated services, to avoid too much abuse temptation. This is part of the "Chrome site isolation" work, to allow chrome to have many more render processes running and help it manage them. Bug: 111434506 Test: atest CtsAppTestCases:ServiceTest Change-Id: I22e65758678a07075ed32ed6463082ddf846d3a4
Diffstat (limited to 'test-runner/src')
-rw-r--r--test-runner/src/android/test/IsolatedContext.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/test-runner/src/android/test/IsolatedContext.java b/test-runner/src/android/test/IsolatedContext.java
index 6e4c41eef81c..73db4517e130 100644
--- a/test-runner/src/android/test/IsolatedContext.java
+++ b/test-runner/src/android/test/IsolatedContext.java
@@ -75,6 +75,12 @@ public class IsolatedContext extends ContextWrapper {
}
@Override
+ public boolean bindIsolatedService(Intent service, ServiceConnection conn, int flags,
+ String instanceName) {
+ return false;
+ }
+
+ @Override
public Intent registerReceiver(BroadcastReceiver receiver, IntentFilter filter) {
return null;
}