summaryrefslogtreecommitdiff
path: root/tests/LowStorageTest
diff options
context:
space:
mode:
authorAlan Viverette <alanv@google.com>2017-04-05 10:00:01 -0400
committerAlan Viverette <alanv@google.com>2017-04-14 11:15:50 -0400
commit51efddbd3bb304de2dd47fa8cd1114ac555958bb (patch)
tree0c9fe7e2f2263b7757ec8e96084d1f2701119c47 /tests/LowStorageTest
parent5879aa4b03f17753eca3419a13db0ecbf2075e62 (diff)
Remove unnecessary casts on calls to findViewById
Just frameworks/ this time. More paths to come. Bug: 24137209 Test: make -j32 Change-Id: Iff27abd26fa43296ac2fff8f534fc6742d2ae80c
Diffstat (limited to 'tests/LowStorageTest')
-rw-r--r--tests/LowStorageTest/src/com/android/lowstoragetest/LowStorageTest.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/LowStorageTest/src/com/android/lowstoragetest/LowStorageTest.java b/tests/LowStorageTest/src/com/android/lowstoragetest/LowStorageTest.java
index 9f297aa13e90..c0091ad7b03f 100644
--- a/tests/LowStorageTest/src/com/android/lowstoragetest/LowStorageTest.java
+++ b/tests/LowStorageTest/src/com/android/lowstoragetest/LowStorageTest.java
@@ -52,9 +52,9 @@ public class LowStorageTest extends Activity {
StatFs stat = new StatFs(path.getPath());
int totalBlocks = stat.getBlockCount();
mBlockSize = (int) (stat.getBlockSize());
- TextView startSizeTextView = (TextView) findViewById(R.id.totalsize);
+ TextView startSizeTextView = findViewById(R.id.totalsize);
startSizeTextView.setText(Long.toString((totalBlocks * mBlockSize) / BYTE_SIZE));
- Button button = (Button) findViewById(R.id.button_run);
+ Button button = findViewById(R.id.button_run);
button.setOnClickListener(mStartListener);
}
@@ -121,9 +121,9 @@ public class LowStorageTest extends Activity {
File path = Environment.getDataDirectory();
StatFs stat = new StatFs(path.getPath());
long availableBlocks = stat.getAvailableBlocks();
- TextView freeSizeTextView = (TextView) findViewById(R.id.freesize);
+ TextView freeSizeTextView = findViewById(R.id.freesize);
freeSizeTextView.setText(Long.toString((availableBlocks * mBlockSize) / BYTE_SIZE));
- TextView statusTextView = (TextView) findViewById(R.id.status);
+ TextView statusTextView = findViewById(R.id.status);
statusTextView.setText("Finished. You can start the test now.");
} catch (Exception e) {
Log.v(TAG, e.toString());