From 4333bd145e2b964414cd343814f50684694e234c Mon Sep 17 00:00:00 2001 From: Yu Shan Emily Lau Date: Thu, 3 Sep 2009 17:07:43 -0700 Subject: [PATCH] new file: LowStorageTest/Android.mk new file: LowStorageTest/AndroidManifest.xml new file: LowStorageTest/res/layout/main.xml new file: LowStorageTest/res/values/strings.xml new file: LowStorageTest/src/com/android/lowstoragetest/LowStorageTest.java Add the test app which can eat up 100% of the data parition. This is for the low storage test. new file: LowStorageTest/Android.mk new file: LowStorageTest/src/com/android/lowstoragetest/LowStorageTest.java --- tests/LowStorageTest/Android.mk | 25 ++++ tests/LowStorageTest/AndroidManifest.xml | 13 ++ tests/LowStorageTest/res/layout/main.xml | 72 ++++++++++ tests/LowStorageTest/res/values/strings.xml | 23 +++ .../lowstoragetest/LowStorageTest.java | 132 ++++++++++++++++++ 5 files changed, 265 insertions(+) create mode 100644 tests/LowStorageTest/Android.mk create mode 100644 tests/LowStorageTest/AndroidManifest.xml create mode 100644 tests/LowStorageTest/res/layout/main.xml create mode 100644 tests/LowStorageTest/res/values/strings.xml create mode 100644 tests/LowStorageTest/src/com/android/lowstoragetest/LowStorageTest.java diff --git a/tests/LowStorageTest/Android.mk b/tests/LowStorageTest/Android.mk new file mode 100644 index 0000000000000..ab5b9e925ed62 --- /dev/null +++ b/tests/LowStorageTest/Android.mk @@ -0,0 +1,25 @@ +# Copyright (C) 2009 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) +include $(CLEAR_VARS) + +LOCAL_MODULE_TAGS := tests +LOCAL_CERTIFICATE := platform + +LOCAL_SRC_FILES := $(call all-subdir-java-files) + +LOCAL_PACKAGE_NAME := lowstoragetest + +include $(BUILD_PACKAGE) diff --git a/tests/LowStorageTest/AndroidManifest.xml b/tests/LowStorageTest/AndroidManifest.xml new file mode 100644 index 0000000000000..9d4a63ac330f1 --- /dev/null +++ b/tests/LowStorageTest/AndroidManifest.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/tests/LowStorageTest/res/layout/main.xml b/tests/LowStorageTest/res/layout/main.xml new file mode 100644 index 0000000000000..cc99102841875 --- /dev/null +++ b/tests/LowStorageTest/res/layout/main.xml @@ -0,0 +1,72 @@ + + + + + + + + + + + + + + + + + + + + +