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. */
97
final Intent intent = AlarmInstance.createIntent(context,
AlarmService
.class, instance.mId)
113
final Intent intent = AlarmInstance.createIntent(context,
AlarmService
.class, instance.mId)
132
sendBroadcast(AlarmStateManager.createStateChangeIntent(
AlarmService
.this,
133
"
AlarmService
", mCurrentAlarm, AlarmInstance.MISSED_STATE));
139
LogUtils.v("
AlarmService
.start with instance: " + instance.mId)
[
all
...]
AlarmActivity.java
92
case
AlarmService
.ALARM_SNOOZE_ACTION:
95
case
AlarmService
.ALARM_DISMISS_ACTION:
98
case
AlarmService
.ALARM_DONE_ACTION:
114
LogUtils.i("Finished binding to
AlarmService
");
119
LogUtils.i("Disconnected from
AlarmService
");
128
/** Whether the
AlarmService
is currently bound */
240
// Bind to
AlarmService
241
bindService(new Intent(this,
AlarmService
.class), mConnection, Context.BIND_AUTO_CREATE);
268
final IntentFilter filter = new IntentFilter(
AlarmService
.ALARM_DONE_ACTION);
269
filter.addAction(
AlarmService
.ALARM_SNOOZE_ACTION)
[
all
...]
AlarmStateManager.java
86
* The FIRED_STATE is used when the alarm is firing. It will start the
AlarmService
, and wait
451
AlarmService
.startAlarm(context, instance);
474
AlarmService
.stopAlarm(context, instance);
531
AlarmService
.stopAlarm(context, instance);
616
AlarmService
.stopAlarm(context, instance);
[
all
...]
Completed in 541 milliseconds