FileDocCategorySizeDatePackage
WakeUpCall.javaAPI DocAndroid 5.1 API1431Thu Mar 12 22:22:44 GMT 2015com.android.testing.alarmservice

WakeUpCall

public class WakeUpCall extends android.content.BroadcastReceiver
The receiver for the alarm we set

Fields Summary
public static final String
WAKEUP_CALL
Constructors Summary
Methods Summary
public voidonReceive(android.content.Context context, android.content.Intent intent)


    
          
        // we acquire wakelock without release because user is supposed to manually release it
        WakeUpController.getController().getWakeLock().acquire();
        Object lock = WakeUpController.getController().getWakeSync();
        synchronized (lock) {
            // poke the lock so the service side can be woken from waiting on the lock
            lock.notifyAll();
        }