summaryrefslogtreecommitdiff
path: root/test/MethodTypes/MethodTypes.java
diff options
context:
space:
mode:
authorNarayan Kamath <narayan@google.com>2016-08-03 12:46:58 +0100
committerNarayan Kamath <narayan@google.com>2016-10-03 09:48:50 +0100
commit25352fc06c84cdab8a2ab6d173b0514066ade2b9 (patch)
treebb8a6be0c9a144ccf33b07b3158409769a32daa2 /test/MethodTypes/MethodTypes.java
parent51cbe84ca33800c57fef9c96f1155f60bcc70bba (diff)
class_linker: Add support for resolving method types.
- Add a new fixed size dex cache array for resolved method types. The size of this array is set to 1024. - Also introduces a new runtime flag that controls this feature. Test: make test-art-host Bug: 30550796 Change-Id: I147b33398d71ee21f2e91b418d3700d4630801ff
Diffstat (limited to 'test/MethodTypes/MethodTypes.java')
-rw-r--r--test/MethodTypes/MethodTypes.java20
1 files changed, 20 insertions, 0 deletions
diff --git a/test/MethodTypes/MethodTypes.java b/test/MethodTypes/MethodTypes.java
new file mode 100644
index 0000000000..f6f8e08e2f
--- /dev/null
+++ b/test/MethodTypes/MethodTypes.java
@@ -0,0 +1,20 @@
+/*
+ * Copyright (C) 2016 The Android Open Source Project
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+public interface MethodTypes {
+ public String method1(String a);
+ public String method2(String a, String b);
+}