OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:AlarmService
(Results
1 - 11
of
11
) sorted by null
/development/samples/Alarm/tests/src/com/example/android/newalarm/
AlarmServiceTest.java
21
import com.example.android.newalarm.
AlarmService
;
24
* Test class for the Alarm sample test package. This test class tests the
AlarmService
27
public class AlarmServiceTest extends ServiceTestCase<
AlarmService
> {
32
AlarmService
mService;
40
super(
AlarmService
.class);
52
mStartServiceIntent = new Intent(this.getSystemContext(),
AlarmService
.class);
/frameworks/base/tests/utils/SleepUtils/SleepHelper/
Android.mk
25
../
AlarmService
/src/com/android/testing/
alarmservice
/Alarm.aidl
/development/samples/ApiDemos/src/com/example/android/apis/app/
AlarmService.java
40
public class
AlarmService
extends Activity {
49
mAlarmSender = PendingIntent.getService(
AlarmService
.this,
50
0, new Intent(
AlarmService
.this, AlarmService_Service.class), 0);
72
Toast.makeText(
AlarmService
.this, R.string.repeating_scheduled,
84
Toast.makeText(
AlarmService
.this, R.string.repeating_unscheduled,
AlarmService_Service.java
39
* @see
AlarmService
104
new Intent(this,
AlarmService
.class), 0);
/frameworks/base/tests/utils/SleepUtils/AlarmService/src/com/android/testing/alarmservice/
AlarmService.java
17
package com.android.testing.
alarmservice
;
24
public class
AlarmService
extends Service {
WakeUpController.java
17
package com.android.testing.
alarmservice
;
49
(PowerManager)
AlarmService
.sContext.getSystemService(Context.POWER_SERVICE);
50
mWakeLock = pm.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, "testing-
alarmservice
");
/development/samples/Alarm/src/com/example/android/newalarm/
AlarmActivity.java
31
* This is the activity that controls
AlarmService
.
34
* timer. Every thirty seconds, the timer starts
AlarmService
, which then runs for 15 seconds
46
// An intent for
AlarmService
, to trigger it as if the Activity called startService().
62
// Create a PendingIntent to trigger a startService() for
AlarmService
66
new Intent(AlarmActivity.this,
AlarmService
.class), // A new Service intent
99
// Sets a repeating countdown timer that triggers
AlarmService
AlarmService.java
52
public class
AlarmService
extends Service {
54
private static final String ALARM_SERVICE_THREAD = "
AlarmService
";
/packages/apps/DeskClock/src/com/android/deskclock/alarms/
AlarmService.java
42
public class
AlarmService
extends Service {
44
* AlarmActivity and
AlarmService
(when unbound) listen for this broadcast intent
51
* AlarmActivity and
AlarmService
listen for this broadcast intent so that other
56
/** A public action sent by
AlarmService
when the alarm has started. */
59
/** A public action sent by
AlarmService
when the alarm has stopped for any reason. */
94
final Intent intent = AlarmInstance.createIntent(context,
AlarmService
.class, instance.mId)
113
startService(AlarmStateManager.createStateChangeIntent(
AlarmService
.this,
114
"
AlarmService
", mCurrentAlarm, AlarmInstance.MISSED_STATE));
120
LogUtils.v("
AlarmService
.start with instance: " + instance.mId);
143
LogUtils.v("
AlarmService
.stop with instance: %s", instanceId)
[
all
...]
AlarmActivity.java
90
case
AlarmService
.ALARM_SNOOZE_ACTION:
93
case
AlarmService
.ALARM_DISMISS_ACTION:
96
case
AlarmService
.ALARM_DONE_ACTION:
112
LogUtils.i("Finished binding to
AlarmService
");
117
LogUtils.i("Disconnected from
AlarmService
");
126
/** Whether the
AlarmService
is currently bound */
256
final IntentFilter filter = new IntentFilter(
AlarmService
.ALARM_DONE_ACTION);
257
filter.addAction(
AlarmService
.ALARM_SNOOZE_ACTION);
258
filter.addAction(
AlarmService
.ALARM_DISMISS_ACTION);
494
* Bind
AlarmService
if not yet bound
[
all
...]
AlarmStateManager.java
86
* The FIRED_STATE is used when the alarm is firing. It will start the
AlarmService
, and wait
306
// This intent is directed to
AlarmService
, though the actual handling of it occurs here
308
// broadcast receiver (AlarmStateManager) and service (
AlarmService
) can be thwarted by the
310
// occur. To be safer, the call begins in
AlarmService
, which has the power to display the
312
Intent intent = AlarmInstance.createIntent(context,
AlarmService
.class, instance.mId);
480
AlarmService
.stopAlarm(context, instance);
537
AlarmService
.stopAlarm(context, instance);
634
AlarmService
.stopAlarm(context, instance);
[
all
...]
Completed in 242 milliseconds