summaryrefslogtreecommitdiffstats
path: root/jack-tests
diff options
context:
space:
mode:
authorBenoit Lamarche <benoitlamarche@google.com>2014-09-04 14:51:54 +0200
committerBenoit Lamarche <benoitlamarche@google.com>2014-09-04 14:51:54 +0200
commitc49d97f637f08f4b6ed91bc2acc0856a1f7503a6 (patch)
treec2df223b036a551b17247661ae1d7f928318c038 /jack-tests
parent6ddab7a762dcaeb857d00c95ef5cd1942b7ee017 (diff)
downloadtoolchain_jack-c49d97f637f08f4b6ed91bc2acc0856a1f7503a6.zip
toolchain_jack-c49d97f637f08f4b6ed91bc2acc0856a1f7503a6.tar.gz
toolchain_jack-c49d97f637f08f4b6ed91bc2acc0856a1f7503a6.tar.bz2
Fix Preprocessor and Multidex tests
Change-Id: If62d7b07b5a57132f2d63ad7cc101c24aeb82172
Diffstat (limited to 'jack-tests')
-rw-r--r--jack-tests/tests/com/android/jack/annotations/ForceInMainDex.java31
-rw-r--r--jack-tests/tests/com/android/jack/annotations/MultiDexInstaller.java32
2 files changed, 63 insertions, 0 deletions
diff --git a/jack-tests/tests/com/android/jack/annotations/ForceInMainDex.java b/jack-tests/tests/com/android/jack/annotations/ForceInMainDex.java
new file mode 100644
index 0000000..e37c392
--- /dev/null
+++ b/jack-tests/tests/com/android/jack/annotations/ForceInMainDex.java
@@ -0,0 +1,31 @@
+/*
+ * Copyright (C) 2014 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.
+ */
+
+package com.android.jack.annotations;
+
+import java.lang.annotation.ElementType;
+import java.lang.annotation.Retention;
+import java.lang.annotation.RetentionPolicy;
+import java.lang.annotation.Target;
+
+/**
+ * Indicate that the type must always be in the main dex.
+ */
+@Retention(RetentionPolicy.SOURCE)
+@Target(ElementType.TYPE)
+public @interface ForceInMainDex {
+
+}
diff --git a/jack-tests/tests/com/android/jack/annotations/MultiDexInstaller.java b/jack-tests/tests/com/android/jack/annotations/MultiDexInstaller.java
new file mode 100644
index 0000000..b8d03dc
--- /dev/null
+++ b/jack-tests/tests/com/android/jack/annotations/MultiDexInstaller.java
@@ -0,0 +1,32 @@
+/*
+ * Copyright (C) 2014 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.
+ */
+
+package com.android.jack.annotations;
+
+import java.lang.annotation.ElementType;
+import java.lang.annotation.Retention;
+import java.lang.annotation.RetentionPolicy;
+import java.lang.annotation.Target;
+
+/**
+ * Indicate that the element may be used during the multidex legacy support installation. As such it
+ * must be kept in main dex along with its dependencies.
+ */
+@Retention(RetentionPolicy.SOURCE)
+@Target({ElementType.TYPE, ElementType.METHOD, ElementType.FIELD, ElementType.CONSTRUCTOR})
+public @interface MultiDexInstaller {
+
+} \ No newline at end of file