summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorThe Android Open Source Project <initial-contribution@android.com>2010-06-02 08:54:47 -0700
committerThe Android Open Source Project <initial-contribution@android.com>2010-06-02 08:54:47 -0700
commit1bd7597b8cdaf39d1183077c463cb30596eb31b0 (patch)
tree46dac341fbbf03488856ef6d6975ab124ac01874 /tests
parentc8763858cfcae8be89c0f88df87bf9a3ad90ae64 (diff)
parentef367529f9c7a538d74599b37b49ac309d0a8d8c (diff)
downloadframeworks_base-1bd7597b8cdaf39d1183077c463cb30596eb31b0.zip
frameworks_base-1bd7597b8cdaf39d1183077c463cb30596eb31b0.tar.gz
frameworks_base-1bd7597b8cdaf39d1183077c463cb30596eb31b0.tar.bz2
merge from open-source master
Change-Id: I8333e295ba6b6ed8e7658ecf3fbf1ebea3537aeb
Diffstat (limited to 'tests')
-rw-r--r--tests/StatusBar/src/com/android/statusbartest/NotificationTestList.java5
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 e7a09d1..a6124bf 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();
@@ -599,7 +600,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() {