HomeSort by relevance Sort by last modified time
    Searched refs:TimerObj (Results 1 - 16 of 16) sorted by null

  /packages/apps/DeskClock/src/com/android/deskclock/timer/
Timers.java 50 public static TimerObj findTimer(ArrayList<TimerObj> timers, int timerId) {
51 Iterator<TimerObj> i = timers.iterator();
53 TimerObj t = i.next();
60 public static TimerObj findExpiredTimer(ArrayList<TimerObj> timers) {
61 Iterator<TimerObj> i = timers.iterator();
63 TimerObj t = i.next();
64 if (t.mState == TimerObj.STATE_TIMESUP) {
71 public static ArrayList<TimerObj> timersInUse(ArrayList<TimerObj> timers)
    [all...]
TimerFragmentAdapter.java 30 private final ArrayList<TimerObj> mTimerList = new ArrayList<TimerObj>();
54 public void addTimer(TimerObj timer) {
60 public TimerObj getTimerAt(int position) {
65 TimerObj.putTimersInSharedPrefs(mSharedPrefs, mTimerList);
70 TimerObj.getTimersFromSharedPrefs(mSharedPrefs, mTimerList);
71 Collections.sort(mTimerList, new Comparator<TimerObj>() {
73 public int compare(TimerObj o1, TimerObj o2) {
83 TimerObj timer = mTimerList.get(i)
    [all...]
TimerFullScreenFragment.java 101 public TimerObj mTimer;
103 public ClickAction(int action, TimerObj t) {
126 ArrayList<TimerObj> mTimers = new ArrayList<TimerObj>();
151 public TimerObj getItem(int p) {
165 TimerObj t = mTimers.get(i);
191 TimerObj t = mTimers.get(i);
199 public void removeTimer(TimerObj timerObj) {
200 int position = findTimerPositionById(timerObj.mTimerId)
    [all...]
TimerObj.java 36 public class TimerObj implements Parcelable {
40 private static final String TAG = "TimerObj";
73 public static final Parcelable.Creator<TimerObj> CREATOR = new Parcelable.Creator<TimerObj>() {
75 public TimerObj createFromParcel(Parcel p) {
76 return new TimerObj(p);
80 public TimerObj[] newArray(int size) {
81 return new TimerObj[size];
165 public TimerObj(Parcel p) {
175 private TimerObj() {
    [all...]
TimerItemFragment.java 40 private TimerObj mTimerObj;
45 public static TimerItemFragment newInstance(TimerObj timerObj) {
48 args.putParcelable(TAG, timerObj);
58 mTimerObj = (TimerObj) bundle.getParcelable(TAG);
69 final boolean drawWithColor = mTimerObj.mState != TimerObj.STATE_RESTART;
72 v.setResetAddButton(mTimerObj.mState == TimerObj.STATE_RUNNING ||
73 mTimerObj.mState == TimerObj.STATE_TIMESUP, new OnClickListener() {
83 case TimerObj.STATE_RUNNING:
86 case TimerObj.STATE_TIMESUP
    [all...]
TimerReceiver.java 45 ArrayList<TimerObj> mTimers;
61 mTimers = new ArrayList<TimerObj> ();
64 TimerObj.getTimersFromSharedPrefs(prefs, mTimers);
91 TimerObj t = Timers.findTimer(mTimers, timerId);
100 t.mState = TimerObj.STATE_TIMESUP;
131 } else if (t.mState != TimerObj.STATE_TIMESUP) {
137 t.mState = t.getDeleteAfterUse() ? TimerObj.STATE_DELETED : TimerObj.STATE_RESTART;
158 } else if (t.mState != TimerObj.STATE_TIMESUP) {
164 t.mState = TimerObj.STATE_RUNNING
    [all...]
TimerFragment.java 102 final TimerObj t = mAdapter.getTimerAt(i);
103 if (t.mState == TimerObj.STATE_RUNNING || t.mState == TimerObj.STATE_TIMESUP) {
111 final boolean canAddMinute = TimerObj.MAX_TIMER_LENGTH - t.mTimeLeft
112 > TimerObj.MINUTE_IN_MILLIS;
117 if (t.mTimeLeft <= 0 && t.mState != TimerObj.STATE_DONE
118 && t.mState != TimerObj.STATE_RESTART) {
119 t.mState = TimerObj.STATE_TIMESUP;
126 if (t.mState == TimerObj.STATE_TIMESUP) {
129 if (t.mState == TimerObj.STATE_STOPPED)
    [all...]
  /developers/build/prebuilts/gradle/Timer/Wearable/src/main/java/com/example/android/wearable/timer/util/
TimerObj.java 22 public class TimerObj {
36 public TimerObj(long startTime, long timerLength) {
  /developers/samples/android/wearable/wear/Timer/Wearable/src/main/java/com/example/android/wearable/timer/util/
TimerObj.java 22 public class TimerObj {
36 public TimerObj(long startTime, long timerLength) {
  /development/samples/browseable/Timer/Wearable/src/com.example.android.wearable.timer/util/
TimerObj.java 22 public class TimerObj {
36 public TimerObj(long startTime, long timerLength) {
  /packages/apps/DeskClock/src/com/android/deskclock/
AlarmInitReceiver.java 28 import com.android.deskclock.timer.TimerObj;
59 TimerObj.resetTimersInSharedPrefs(prefs);
LabelDialogFragment.java 37 import com.android.deskclock.timer.TimerObj;
61 public static LabelDialogFragment newInstance(TimerObj timer, String label, String tag) {
83 final TimerObj timer = bundle.getParcelable(KEY_TIMER);
138 private void set(Alarm alarm, TimerObj timer, String tag) {
166 private void set(TimerObj timer, String tag, String label) {
188 void onDialogLabelSet(TimerObj timer, String label, String tag);
HandleApiCalls.java 34 import com.android.deskclock.timer.TimerObj;
180 TimerObj timer = null;
182 final ArrayList<TimerObj> timers = new ArrayList<TimerObj>();
183 TimerObj.getTimersFromSharedPrefs(prefs, timers);
184 for (TimerObj t : timers) {
186 && t.mState == TimerObj.STATE_RESTART) {
195 timer = new TimerObj(length, label, this /* context */);
200 timer.mState = TimerObj.STATE_RUNNING;
DeskClock.java 58 import com.android.deskclock.timer.TimerObj;
676 public void onDialogLabelSet(TimerObj timer, String label, String tag) {
  /external/pdfium/fpdfsdk/include/javascript/
app.h 12 /* ---------------------------- TimerObj ---------------------------- */
16 class TimerObj : public CJS_EmbedObj
19 TimerObj(CJS_Object* pJSObject);
20 virtual ~TimerObj();
  /external/pdfium/fpdfsdk/src/javascript/
app.cpp 31 /* ---------------------------- TimerObj ---------------------------- */
42 IMPLEMENT_JS_CLASS(CJS_TimerObj, TimerObj)
44 TimerObj::TimerObj(CJS_Object* pJSObject)
51 TimerObj::~TimerObj()
55 void TimerObj::SetTimer(CJS_Timer* pTimer)
60 CJS_Timer* TimerObj::GetTimer() const
537 JSFXObject pRetObj = JS_NewFxDynamicObj(*pRuntime, pContext, JS_GetObjDefnID(*pRuntime, L"TimerObj"));
542 TimerObj* pTimerObj = (TimerObj*)pJS_TimerObj->GetEmbedObject();
    [all...]

Completed in 399 milliseconds