OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
full:alarmservice
(Results
1 - 25
of
29
) sorted by null
1
2
/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/testing/uiautomator/utils/SleepUtils/SleepHelper/
Android.mk
25
../
AlarmService
/src/com/android/testing/
alarmservice
/Alarm.aidl
/frameworks/testing/uiautomator/utils/SleepUtils/AlarmService/
AndroidManifest.xml
11
package="com.android.testing.
alarmservice
" >
17
<service android:name=".
AlarmService
"
27
<action android:name="com.android.testing.
alarmservice
.WAKEUP" />
Android.mk
23
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
108
new Intent(this,
AlarmService
.class), 0);
_package.html
44
<li>{@link com.android.samples.app.
AlarmService
Alarm Service}
_index.html
258
<dt><a href="
AlarmService
.html">Alarm Service</a></dt>
264
<dd> <a href="
AlarmService
.html">
AlarmService
.java</a>
/packages/apps/DeskClock/src/com/android/deskclock/alarms/
AlarmService.java
34
public class
AlarmService
extends Service {
35
// A public action send by
AlarmService
when the alarm has started.
38
// A public action sent by
AlarmService
when the alarm has stopped for any reason.
55
Intent intent = AlarmInstance.createIntent(context,
AlarmService
.class, instance.mId);
71
Intent intent = AlarmInstance.createIntent(context,
AlarmService
.class, instance.mId);
90
sendBroadcast(AlarmStateManager.createStateChangeIntent(
AlarmService
.this,
91
"
AlarmService
", mCurrentAlarm, AlarmInstance.MISSED_STATE));
97
Log.v("
AlarmService
.start with instance: " + instance.mId);
119
Log.v("
AlarmService
.stop with instance: " + mCurrentAlarm.mId);
135
Log.v("
AlarmService
.onStartCommand() with intent: " + intent.toString())
[
all
...]
AlarmActivity.java
127
} else if (action.equals(
AlarmService
.ALARM_DONE_ACTION)) {
184
IntentFilter filter = new IntentFilter(
AlarmService
.ALARM_DONE_ACTION);
AlarmStateManager.java
79
* The FIRED_STATE is used when the alarm is firing. It will start the
AlarmService
, and wait
357
AlarmService
.startAlarm(context, instance);
378
AlarmService
.stopAlarm(context, instance);
420
AlarmService
.stopAlarm(context, instance);
477
AlarmService
.stopAlarm(context, instance);
/frameworks/testing/uiautomator/utils/SleepUtils/AlarmService/src/com/android/testing/alarmservice/
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
");
AlarmService.java
17
package com.android.testing.
alarmservice
;
24
public class
AlarmService
extends Service {
WakeUpCall.java
17
package com.android.testing.
alarmservice
;
29
public static final String WAKEUP_CALL = "com.android.testing.
alarmservice
.WAKEUP";
AlarmImpl.java
17
package com.android.testing.
alarmservice
;
27
import com.android.testing.
alarmservice
.Alarm.Stub;
43
Log.d(LOG_TAG, "
AlarmService
prepared, wake lock acquired");
Alarm.aidl
17
package com.android.testing.
alarmservice
;
/development/samples/Alarm/res/values/
strings.xml
23
Repeating timer started. Starts
AlarmService
every 30 seconds.</string>
28
Repeating timer stopped.
AlarmService
will no longer be started.</string>
/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
";
/frameworks/testing/uiautomator/utils/SleepUtils/
README
3
AlarmService
- a service that client can bind to and perform:
/development/samples/Alarm/tests/
_index.html
3
sample application. It tests the application's <code>
AlarmService
</code> service.
44
test, <code>
AlarmService
.java</code>. This allows the test class to access members in the
/frameworks/testing/uiautomator/utils/SleepUtils/SleepHelper/src/com/android/testing/sleephelper/
SetAlarm.java
31
import com.android.testing.
alarmservice
.Alarm;
41
private static final String SERVICE_PKG = "com.android.testing.
alarmservice
";
/development/samples/Alarm/
_index.html
2
This sample is a revised version of the
AlarmService
functionality included in the
AndroidManifest.xml
48
android:name=".
AlarmService
"
/packages/apps/DeskClock/
AndroidManifest.xml
96
<service android:name=".alarms.
AlarmService
"
Completed in 746 milliseconds
1
2