Loading core/tests/coretests/Android.mk +3 −0 Original line number Diff line number Diff line Loading @@ -7,6 +7,8 @@ LOCAL_MODULE_TAGS := tests # Include all test java files. LOCAL_SRC_FILES := \ $(call all-java-files-under, src) \ $(call all-java-files-under, DisabledTestApp/src) \ $(call all-java-files-under, EnabledTestApp/src) \ src/android/os/IAidlTest.aidl LOCAL_STATIC_JAVA_LIBRARIES += android-common Loading @@ -18,3 +20,4 @@ LOCAL_CERTIFICATE := platform include $(BUILD_PACKAGE) include $(call all-makefiles-under,$(LOCAL_PATH)) core/tests/coretests/AndroidManifest.xml +2 −1 Original line number Diff line number Diff line Loading @@ -16,7 +16,8 @@ <manifest xmlns:android="http://schemas.android.com/apk/res/android" android:installLocation="internalOnly" package="com.android.frameworks.coretests"> package="com.android.frameworks.coretests" android:sharedUserId="com.android.uid.test"> <permission android:name="com.android.frameworks.coretests.permission.TEST_GRANTED" android:protectionLevel="normal" Loading tests/AndroidTests/DisabledTestApp/Android.mk→core/tests/coretests/DisabledTestApp/Android.mk +0 −0 File moved. View file tests/AndroidTests/res/values/bools.xml→core/tests/coretests/DisabledTestApp/AndroidManifest.xml +12 −4 Original line number Diff line number Diff line Loading @@ -13,8 +13,16 @@ See the License for the specific language governing permissions and limitations under the License. --> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.android.frameworks.coretests.disabled_app" android:sharedUserId="com.android.uid.test"> <resources> <bool name="trueRes">true</bool> <bool name="falseRes">false</bool> </resources> <application enabled="false"> <!-- Used to test package component enabling and disabling --> <activity android:name=".DisabledActivity" android:enabled="false" > </activity> <activity android:name=".EnabledActivity" > </activity> </application> </manifest> tests/AndroidTests/DisabledTestApp/src/com/android/unit_tests/disabled_app/EnabledActivity.java→core/tests/coretests/DisabledTestApp/src/com/android/frameworks/coretests/disabled_app/EnabledActivity.java +1 −1 Original line number Diff line number Diff line Loading @@ -14,7 +14,7 @@ * limitations under the License. */ package com.android.unit_tests.disabled_app; package com.android.frameworks.coretests.disabled_app; import android.app.Activity; Loading Loading
core/tests/coretests/Android.mk +3 −0 Original line number Diff line number Diff line Loading @@ -7,6 +7,8 @@ LOCAL_MODULE_TAGS := tests # Include all test java files. LOCAL_SRC_FILES := \ $(call all-java-files-under, src) \ $(call all-java-files-under, DisabledTestApp/src) \ $(call all-java-files-under, EnabledTestApp/src) \ src/android/os/IAidlTest.aidl LOCAL_STATIC_JAVA_LIBRARIES += android-common Loading @@ -18,3 +20,4 @@ LOCAL_CERTIFICATE := platform include $(BUILD_PACKAGE) include $(call all-makefiles-under,$(LOCAL_PATH))
core/tests/coretests/AndroidManifest.xml +2 −1 Original line number Diff line number Diff line Loading @@ -16,7 +16,8 @@ <manifest xmlns:android="http://schemas.android.com/apk/res/android" android:installLocation="internalOnly" package="com.android.frameworks.coretests"> package="com.android.frameworks.coretests" android:sharedUserId="com.android.uid.test"> <permission android:name="com.android.frameworks.coretests.permission.TEST_GRANTED" android:protectionLevel="normal" Loading
tests/AndroidTests/DisabledTestApp/Android.mk→core/tests/coretests/DisabledTestApp/Android.mk +0 −0 File moved. View file
tests/AndroidTests/res/values/bools.xml→core/tests/coretests/DisabledTestApp/AndroidManifest.xml +12 −4 Original line number Diff line number Diff line Loading @@ -13,8 +13,16 @@ See the License for the specific language governing permissions and limitations under the License. --> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.android.frameworks.coretests.disabled_app" android:sharedUserId="com.android.uid.test"> <resources> <bool name="trueRes">true</bool> <bool name="falseRes">false</bool> </resources> <application enabled="false"> <!-- Used to test package component enabling and disabling --> <activity android:name=".DisabledActivity" android:enabled="false" > </activity> <activity android:name=".EnabledActivity" > </activity> </application> </manifest>
tests/AndroidTests/DisabledTestApp/src/com/android/unit_tests/disabled_app/EnabledActivity.java→core/tests/coretests/DisabledTestApp/src/com/android/frameworks/coretests/disabled_app/EnabledActivity.java +1 −1 Original line number Diff line number Diff line Loading @@ -14,7 +14,7 @@ * limitations under the License. */ package com.android.unit_tests.disabled_app; package com.android.frameworks.coretests.disabled_app; import android.app.Activity; Loading