diff options
author | Christian Mehlmauer <FireFart@gmail.com> | 2010-05-31 23:08:30 +0200 |
---|---|---|
committer | Christian Mehlmauer <FireFart@gmail.com> | 2010-05-31 23:08:30 +0200 |
commit | ef367529f9c7a538d74599b37b49ac309d0a8d8c (patch) | |
tree | 135c2f1710bc394e1d55c2096acaed5e09d76523 /tests/StatusBar | |
parent | d6c1919779acb042392615637b9007e0c4b89023 (diff) | |
download | frameworks_base-ef367529f9c7a538d74599b37b49ac309d0a8d8c.zip frameworks_base-ef367529f9c7a538d74599b37b49ac309d0a8d8c.tar.gz frameworks_base-ef367529f9c7a538d74599b37b49ac309d0a8d8c.tar.bz2 |
Replaced raw string arguments for Context.getSystemService() with final Context variables
Change-Id: If5139a1526101292e5da557bfad3f4db80fb64a8
Diffstat (limited to 'tests/StatusBar')
-rw-r--r-- | tests/StatusBar/src/com/android/statusbartest/NotificationTestList.java | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/StatusBar/src/com/android/statusbartest/NotificationTestList.java b/tests/StatusBar/src/com/android/statusbartest/NotificationTestList.java index 4fd7e65..65c7dcb 100644 --- a/tests/StatusBar/src/com/android/statusbartest/NotificationTestList.java +++ b/tests/StatusBar/src/com/android/statusbartest/NotificationTestList.java @@ -21,6 +21,7 @@ import android.app.PendingIntent; import android.widget.ArrayAdapter; import android.view.View; import android.widget.ListView; +import android.content.Context; import android.content.ContentResolver; import android.content.Intent; import android.app.Notification; @@ -60,7 +61,7 @@ public class NotificationTestList extends TestActivity private Test[] mTests = new Test[] { new Test("Off and sound") { public void run() { - PowerManager pm = (PowerManager)NotificationTestList.this.getSystemService("power"); + PowerManager pm = (PowerManager)NotificationTestList.this.getSystemService(Context.POWER_SERVICE); PowerManager.WakeLock wl = pm.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, "sound"); wl.acquire(); @@ -549,7 +550,7 @@ public class NotificationTestList extends TestActivity public void run() { PowerManager.WakeLock wl - = ((PowerManager)NotificationTestList.this.getSystemService("power")) + = ((PowerManager)NotificationTestList.this.getSystemService(Context.POWER_SERVICE)) .newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, "crasher"); wl.acquire(); mHandler.postDelayed(new Runnable() { |