Loading core/tests/hosttests/test-apps/MultiDexLegacyTestApp/Android.mk 0 → 100644 +68 −0 Original line number Diff line number Diff line # 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. LOCAL_PATH:= $(call my-dir) ## The application with a minimal main dex include $(CLEAR_VARS) LOCAL_STATIC_JAVA_LIBRARIES := android-support-multidex LOCAL_MODULE_TAGS := tests LOCAL_SRC_FILES := $(call all-java-files-under, src) LOCAL_SDK_VERSION := current LOCAL_PACKAGE_NAME := MultiDexLegacyTestApp mainDexList:= \ $(call intermediates-dir-for,APPS,$(LOCAL_PACKAGE_NAME),$(LOCAL_IS_HOST_MODULE),common)/maindex.list LOCAL_DX_FLAGS := --multi-dex --main-dex-list=$(mainDexList) --minimal-main-dex include $(BUILD_PACKAGE) $(mainDexList): $(full_classes_proguard_jar) | $(HOST_OUT_EXECUTABLES)/mainDexClasses $(HOST_OUT_EXECUTABLES)/mainDexClasses $< 1>$@ echo "com/android/multidexlegacytestapp/Test.class" >> $@ $(built_dex_intermediate): $(mainDexList) ## The application with a full main dex include $(CLEAR_VARS) LOCAL_STATIC_JAVA_LIBRARIES := android-support-multidex LOCAL_MODULE_TAGS := tests LOCAL_SRC_FILES := $(call all-java-files-under, src) LOCAL_SDK_VERSION := current LOCAL_PACKAGE_NAME := MultiDexLegacyTestApp2 mainDexList2:= \ $(call intermediates-dir-for,APPS,$(LOCAL_PACKAGE_NAME),$(LOCAL_IS_HOST_MODULE),common)/maindex.list LOCAL_DX_FLAGS := --multi-dex --main-dex-list=$(mainDexList2) include $(BUILD_PACKAGE) $(mainDexList2): $(full_classes_proguard_jar) | $(HOST_OUT_EXECUTABLES)/mainDexClasses $(HOST_OUT_EXECUTABLES)/mainDexClasses $< 1>$@ echo "com/android/multidexlegacytestapp/Test.class" >> $@ $(built_dex_intermediate): $(mainDexList2) core/tests/hosttests/test-apps/MultiDexLegacyTestApp/AndroidManifest.xml 0 → 100644 +27 −0 Original line number Diff line number Diff line <?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.android.multidexlegacytestapp" android:versionCode="1" android:versionName="1.0" > <uses-sdk android:minSdkVersion="8" android:targetSdkVersion="18"/> <application android:label="multidexlegacytestapp" > <activity android:name="com.android.multidexlegacytestapp.MainActivity" android:label="multidexlegacytestapp" > <intent-filter> <action android:name="android.intent.action.MAIN" /> <category android:name="android.intent.category.LAUNCHER" /> </intent-filter> </activity> <uses-library android:name="android.test.runner" /> </application> <instrumentation android:name="android.test.InstrumentationTestRunner" android:targetPackage="com.android.multidexlegacytestapp" android:label="Test for MultiDexLegacyTestApp" /> </manifest> core/tests/hosttests/test-apps/MultiDexLegacyTestApp/res/layout/activity_main.xml 0 → 100644 +13 −0 Original line number Diff line number Diff line <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="fill_parent" android:layout_height="fill_parent" tools:context=".MainActivity" > <TextView android:id="@+id/label_nb" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@string/label_nb" /> </RelativeLayout> core/tests/hosttests/test-apps/MultiDexLegacyTestApp/res/values/strings.xml 0 → 100644 +8 −0 Original line number Diff line number Diff line <?xml version="1.0" encoding="utf-8"?> <resources> <string name="app_name">MultidexLegacyTestApp</string> <string name="action_settings">Settings</string> <string name="label_nb">Here\'s the count: </string> </resources> core/tests/hosttests/test-apps/MultiDexLegacyTestApp/src/com/android/multidexlegacytestapp/IntermediateClass.java 0 → 100644 +59 −0 Original line number Diff line number Diff line /* * 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.multidexlegacytestapp; public class IntermediateClass { public static int get() { return new com.android.multidexlegacytestapp.manymethods.Big045().get45() + new com.android.multidexlegacytestapp.manymethods.Big046().get46() + new com.android.multidexlegacytestapp.manymethods.Big047().get47() + new com.android.multidexlegacytestapp.manymethods.Big048().get48() + new com.android.multidexlegacytestapp.manymethods.Big049().get49() + new com.android.multidexlegacytestapp.manymethods.Big050().get50() + new com.android.multidexlegacytestapp.manymethods.Big051().get51() + new com.android.multidexlegacytestapp.manymethods.Big052().get52() + new com.android.multidexlegacytestapp.manymethods.Big053().get53() + new com.android.multidexlegacytestapp.manymethods.Big054().get54() + new com.android.multidexlegacytestapp.manymethods.Big055().get55() + new com.android.multidexlegacytestapp.manymethods.Big056().get56() + new com.android.multidexlegacytestapp.manymethods.Big057().get57() + new com.android.multidexlegacytestapp.manymethods.Big058().get58() + new com.android.multidexlegacytestapp.manymethods.Big059().get59() + new com.android.multidexlegacytestapp.manymethods.Big060().get60() + new com.android.multidexlegacytestapp.manymethods.Big061().get61() + new com.android.multidexlegacytestapp.manymethods.Big062().get62() + new com.android.multidexlegacytestapp.manymethods.Big063().get63() + new com.android.multidexlegacytestapp.manymethods.Big064().get64() + new com.android.multidexlegacytestapp.manymethods.Big065().get65() + new com.android.multidexlegacytestapp.manymethods.Big066().get66() + new com.android.multidexlegacytestapp.manymethods.Big067().get67() + new com.android.multidexlegacytestapp.manymethods.Big068().get68() + new com.android.multidexlegacytestapp.manymethods.Big069().get69() + new com.android.multidexlegacytestapp.manymethods.Big070().get70() + new com.android.multidexlegacytestapp.manymethods.Big071().get71() + new com.android.multidexlegacytestapp.manymethods.Big072().get72() + new com.android.multidexlegacytestapp.manymethods.Big073().get73() + new com.android.multidexlegacytestapp.manymethods.Big074().get74() + new com.android.multidexlegacytestapp.manymethods.Big075().get75() + new com.android.multidexlegacytestapp.manymethods.Big076().get76() + new com.android.multidexlegacytestapp.manymethods.Big077().get77() + new com.android.multidexlegacytestapp.manymethods.Big078().get78() + new com.android.multidexlegacytestapp.manymethods.Big079().get79() + new com.android.multidexlegacytestapp.manymethods.Big080().get80(); } } Loading
core/tests/hosttests/test-apps/MultiDexLegacyTestApp/Android.mk 0 → 100644 +68 −0 Original line number Diff line number Diff line # 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. LOCAL_PATH:= $(call my-dir) ## The application with a minimal main dex include $(CLEAR_VARS) LOCAL_STATIC_JAVA_LIBRARIES := android-support-multidex LOCAL_MODULE_TAGS := tests LOCAL_SRC_FILES := $(call all-java-files-under, src) LOCAL_SDK_VERSION := current LOCAL_PACKAGE_NAME := MultiDexLegacyTestApp mainDexList:= \ $(call intermediates-dir-for,APPS,$(LOCAL_PACKAGE_NAME),$(LOCAL_IS_HOST_MODULE),common)/maindex.list LOCAL_DX_FLAGS := --multi-dex --main-dex-list=$(mainDexList) --minimal-main-dex include $(BUILD_PACKAGE) $(mainDexList): $(full_classes_proguard_jar) | $(HOST_OUT_EXECUTABLES)/mainDexClasses $(HOST_OUT_EXECUTABLES)/mainDexClasses $< 1>$@ echo "com/android/multidexlegacytestapp/Test.class" >> $@ $(built_dex_intermediate): $(mainDexList) ## The application with a full main dex include $(CLEAR_VARS) LOCAL_STATIC_JAVA_LIBRARIES := android-support-multidex LOCAL_MODULE_TAGS := tests LOCAL_SRC_FILES := $(call all-java-files-under, src) LOCAL_SDK_VERSION := current LOCAL_PACKAGE_NAME := MultiDexLegacyTestApp2 mainDexList2:= \ $(call intermediates-dir-for,APPS,$(LOCAL_PACKAGE_NAME),$(LOCAL_IS_HOST_MODULE),common)/maindex.list LOCAL_DX_FLAGS := --multi-dex --main-dex-list=$(mainDexList2) include $(BUILD_PACKAGE) $(mainDexList2): $(full_classes_proguard_jar) | $(HOST_OUT_EXECUTABLES)/mainDexClasses $(HOST_OUT_EXECUTABLES)/mainDexClasses $< 1>$@ echo "com/android/multidexlegacytestapp/Test.class" >> $@ $(built_dex_intermediate): $(mainDexList2)
core/tests/hosttests/test-apps/MultiDexLegacyTestApp/AndroidManifest.xml 0 → 100644 +27 −0 Original line number Diff line number Diff line <?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.android.multidexlegacytestapp" android:versionCode="1" android:versionName="1.0" > <uses-sdk android:minSdkVersion="8" android:targetSdkVersion="18"/> <application android:label="multidexlegacytestapp" > <activity android:name="com.android.multidexlegacytestapp.MainActivity" android:label="multidexlegacytestapp" > <intent-filter> <action android:name="android.intent.action.MAIN" /> <category android:name="android.intent.category.LAUNCHER" /> </intent-filter> </activity> <uses-library android:name="android.test.runner" /> </application> <instrumentation android:name="android.test.InstrumentationTestRunner" android:targetPackage="com.android.multidexlegacytestapp" android:label="Test for MultiDexLegacyTestApp" /> </manifest>
core/tests/hosttests/test-apps/MultiDexLegacyTestApp/res/layout/activity_main.xml 0 → 100644 +13 −0 Original line number Diff line number Diff line <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="fill_parent" android:layout_height="fill_parent" tools:context=".MainActivity" > <TextView android:id="@+id/label_nb" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@string/label_nb" /> </RelativeLayout>
core/tests/hosttests/test-apps/MultiDexLegacyTestApp/res/values/strings.xml 0 → 100644 +8 −0 Original line number Diff line number Diff line <?xml version="1.0" encoding="utf-8"?> <resources> <string name="app_name">MultidexLegacyTestApp</string> <string name="action_settings">Settings</string> <string name="label_nb">Here\'s the count: </string> </resources>
core/tests/hosttests/test-apps/MultiDexLegacyTestApp/src/com/android/multidexlegacytestapp/IntermediateClass.java 0 → 100644 +59 −0 Original line number Diff line number Diff line /* * 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.multidexlegacytestapp; public class IntermediateClass { public static int get() { return new com.android.multidexlegacytestapp.manymethods.Big045().get45() + new com.android.multidexlegacytestapp.manymethods.Big046().get46() + new com.android.multidexlegacytestapp.manymethods.Big047().get47() + new com.android.multidexlegacytestapp.manymethods.Big048().get48() + new com.android.multidexlegacytestapp.manymethods.Big049().get49() + new com.android.multidexlegacytestapp.manymethods.Big050().get50() + new com.android.multidexlegacytestapp.manymethods.Big051().get51() + new com.android.multidexlegacytestapp.manymethods.Big052().get52() + new com.android.multidexlegacytestapp.manymethods.Big053().get53() + new com.android.multidexlegacytestapp.manymethods.Big054().get54() + new com.android.multidexlegacytestapp.manymethods.Big055().get55() + new com.android.multidexlegacytestapp.manymethods.Big056().get56() + new com.android.multidexlegacytestapp.manymethods.Big057().get57() + new com.android.multidexlegacytestapp.manymethods.Big058().get58() + new com.android.multidexlegacytestapp.manymethods.Big059().get59() + new com.android.multidexlegacytestapp.manymethods.Big060().get60() + new com.android.multidexlegacytestapp.manymethods.Big061().get61() + new com.android.multidexlegacytestapp.manymethods.Big062().get62() + new com.android.multidexlegacytestapp.manymethods.Big063().get63() + new com.android.multidexlegacytestapp.manymethods.Big064().get64() + new com.android.multidexlegacytestapp.manymethods.Big065().get65() + new com.android.multidexlegacytestapp.manymethods.Big066().get66() + new com.android.multidexlegacytestapp.manymethods.Big067().get67() + new com.android.multidexlegacytestapp.manymethods.Big068().get68() + new com.android.multidexlegacytestapp.manymethods.Big069().get69() + new com.android.multidexlegacytestapp.manymethods.Big070().get70() + new com.android.multidexlegacytestapp.manymethods.Big071().get71() + new com.android.multidexlegacytestapp.manymethods.Big072().get72() + new com.android.multidexlegacytestapp.manymethods.Big073().get73() + new com.android.multidexlegacytestapp.manymethods.Big074().get74() + new com.android.multidexlegacytestapp.manymethods.Big075().get75() + new com.android.multidexlegacytestapp.manymethods.Big076().get76() + new com.android.multidexlegacytestapp.manymethods.Big077().get77() + new com.android.multidexlegacytestapp.manymethods.Big078().get78() + new com.android.multidexlegacytestapp.manymethods.Big079().get79() + new com.android.multidexlegacytestapp.manymethods.Big080().get80(); } }