Searched refs:when (Results 1 - 24 of 24) sorted by relevance

/packages/experimental/procstatlog/
H A Dprocstatreport.py141 for when, datum in data.iteritems():
143 merged_rows.setdefault(when, {})[set_num] = datum
146 for when, values in sorted(merged_rows.iteritems()):
147 msec = "%d" % (when * 1000)
177 for when, state in sorted_history:
188 sys_jiffies[when] = (stime, all)
189 sys_user_jiffies[when] = (stime + utime, all)
190 all_jiffies[when] = all
222 for when, state in sorted_history:
234 if total_time > 0: cpu_speed[when]
[all...]
/packages/experimental/NotificationShowcase/src/com/android/example/notificationshowcase/
H A DNotificationShowcaseActivity.java76 if (i.hasExtra("id") && i.hasExtra("when")) {
82 final long when = i.getLongExtra("when", 0L);
83 Log.v(TAG, "id: " + id + " when: " + when + " update: " + update);
85 makeBigTextNotification(this, update, id, when));
89 Log.v(TAG, "when extra was " + (i.hasExtra("when") ? "present" : "missing"));
104 if (i.hasExtra("id") && i.hasExtra("when") && i.hasExtra("progress")) {
107 final long when
163 makeUpdateIntent(Context context, int update, int id, long when) argument
177 makeBigTextNotification(Context context, int update, int id, long when) argument
230 startProgressUpdater(Context context, int progress, int id, long when) argument
239 makeUploadNotification(Context context, int progress, int id, long when) argument
[all...]
/packages/apps/Calendar/src/com/android/calendar/agenda/
H A DAgendaAdapter.java71 TextView when; field in class:AgendaAdapter.ViewHolder
122 holder.when = (TextView) view.findViewById(R.id.when);
137 holder.when.setTextColor(mWhereDeclinedColor);
142 holder.when.setTextColor(mWhereColor);
169 holder.when.setTextColor(mStandardColor);
175 TextView when = holder.when;
225 when.setText(whenString);
230 when
[all...]
H A DAgendaWindowAdapter.java130 // Listview may have a bug where the index/position is not consistent when there's a header.
195 // defines if to pop-up the current event when the agenda is first shown
506 vh.when.setTextColor(mSelectedItemTextColor);
1025 // info when the view is created.
/packages/apps/Calendar/tests/src/com/android/calendar/widget/
H A DCalendarAppWidgetServiceTest.java103 eventInfo.when = "3am";
115 // TODO re-enable this test when our widget behavior is finalized
131 eventInfo.when = "2am, Tomorrow";
141 eventInfo.when = "2am, Sun";
175 eventInfo.when = "Today";
185 eventInfo.when = "3am";
216 eventInfo.when = "3am";
226 eventInfo.when = "Tomorrow";
257 eventInfo.when = "3am";
267 eventInfo.when
[all...]
/packages/apps/Calendar/src/com/android/calendar/widget/
H A DCalendarAppWidgetModel.java77 String when; field in class:CalendarAppWidgetModel.EventInfo
107 builder.append(", when=");
108 builder.append(when);
133 result = prime * result + ((when == null) ? 0 : when.hashCode());
168 if (when == null) {
169 if (other.when != null)
171 } else if (!when.equals(other.when)) {
307 // we might get some extra events when queryin
[all...]
H A DCalendarAppWidgetService.java103 * Update interval used when no next-update calculated, or bad trigger time in past.
208 // we use getCount here so that it doesn't return null when empty
259 updateTextView(views, R.id.when, eventInfo.visibWhen, eventInfo.when);
286 views.setInt(R.id.when, "setTextColor", mDeclinedColor);
297 views.setInt(R.id.when, "setTextColor", mStandardColor);
431 // We want to update widget when we enter/exit time range of an event.
/packages/apps/Camera/tests/src/com/android/camera/activity/
H A DCameraTestCase.java130 doReturn(getParameters()).when(mMockCamera[0]).getParameters();
131 doReturn(getParameters()).when(mMockCamera[1]).getParameters();
138 doReturn(getParameters()).when(mOneMockCamera[0]).getParameters();
141 doAnswer(mTakePictureCallable).when(mMockBackCamera).takePicture(
146 doAnswer(mAutoFocusCallable).when(mMockBackCamera).autoFocus(
/packages/apps/Settings/src/com/android/settings/drawable/
H A DDrawableWrapper.java154 public void scheduleDrawable(Drawable who, Runnable what, long when) { argument
155 scheduleSelf(what, when);
/packages/apps/Calendar/src/com/android/calendar/alerts/
H A DAlertAdapter.java87 TextView whenView = (TextView) view.findViewById(R.id.when);
113 String when;
137 when = sb.toString();
138 whenView.setText(when);
H A DAlertReceiver.java147 * Called back by the service when it has finished processing notifications,
476 n.when = 1;
523 * Creates a broadcast pending intent that fires to AlertReceiver when the email button
624 // Add organizer only if no attendees to email (the case when too many attendees
/packages/providers/ContactsProvider/
H A DAndroid.mk15 # The Emma tool analyzes code coverage when running unit tests on the
22 # The Emma tool analyzes code coverage when running unit tests on the
/packages/apps/Settings/src/com/android/settings/
H A DDateTimeSettings.java97 // TODO: Remove the wifiOnly test when auto-timezone is implemented based on wifi-location.
175 // We use December 31st because it's unambiguous when demonstrating the date format.
347 long when = c.getTimeInMillis();
349 if (when / 1000 < Integer.MAX_VALUE) {
350 ((AlarmManager) context.getSystemService(Context.ALARM_SERVICE)).setTime(when);
361 long when = c.getTimeInMillis();
363 if (when / 1000 < Integer.MAX_VALUE) {
364 ((AlarmManager) context.getSystemService(Context.ALARM_SERVICE)).setTime(when);
/packages/apps/Browser/src/com/android/browser/
H A DWebStorageSizeManager.java108 // Delay in ms used when resetting the notification time
218 * @param quotaUpdater The callback to run when a decision to allow or
390 // activity when clicked.
403 long when = System.currentTimeMillis();
409 Notification notification = new Notification(icon, title, when);
/packages/apps/Email/tests/src/com/android/email/
H A DNotificationControllerTest.java180 assertEquals(mMockClock.mTime, n.when);
190 assertEquals(mMockClock.mTime, n.when);
/packages/apps/Email/
H A DAndroid.mk42 # The Emma tool analyzes code coverage when running unit tests on the
/packages/apps/Mms/src/com/android/mms/ui/
H A DMessageUtils.java440 public static String formatTimeStampString(Context context, long when) { argument
441 return formatTimeStampString(context, when, false);
444 public static String formatTimeStampString(Context context, long when, boolean fullFormat) { argument
446 then.set(when);
473 return DateUtils.formatDateTime(context, when, format_flags);
/packages/apps/Bluetooth/src/com/android/bluetooth/opp/
H A DBluetoothOppNotification.java411 outNoti.when = timeStamp;
458 inNoti.when = timeStamp;
496 n.when = timeStamp;
/packages/providers/DownloadProvider/src/com/android/providers/downloads/
H A DDownloadInfo.java273 * Returns the time when a download should be restarted.
545 long when = restartTime(now);
546 if (when <= now) {
549 return when - now;
/packages/apps/Calendar/src/com/android/calendar/event/
H A DEditEventView.java482 long when = time.toMillis(false);
488 repeatArray.add(String.format(format, DateUtils.formatDateTime(mActivity, when, flags)));
956 mWhenView = (TextView) mView.findViewById(R.id.when);
1376 String when;
1391 when = DateUtils
1393 mWhenView.setText(when);
1401 * we can easily extract calendar-specific values when the value changes (the spinner's
1416 // Create an error message for the user that, when clicked,
1593 * Add a new reminder when the user hits the "add reminder" button. We use the default
1597 // TODO: when addin
[all...]
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/
H A DLatinIME.java118 // spaces happen when the user presses space, accepting the current suggestion (whether
123 // Phantom spaces happen when a user chooses a word from the suggestion strip.
162 // Whether we are expecting an onUpdateSelection event to fire. If it does when we don't
523 * This method takes an optional contacts dictionary to use when the locale hasn't changed
760 // TODO: Come up with a more comprehensive way to reset the keyboard layout when
763 // In apps like Talk, we come here when the text is sent and the field gets emptied and
795 // be replaced when the user dictionary reports back with the actual word, which ends
890 // TAKE CARE: there is a race condition when we enter this test even when the user
891 // did not explicitly move the cursor. This happens when typin
[all...]
/packages/apps/Phone/src/com/android/phone/
H A DNotificationMgr.java294 /** The projection to use when querying the phones table */
474 * @param photo picture which may be used for the notification (when photoIcon is null).
475 * This also can be null when the picture itself isn't available. If photoIcon is available
480 * should be used when non-null.
481 * @param date the time when the missed call happened
544 // Simple workaround for issue 6476275; refrain having actions when the given number seems
578 /** Returns an intent to be invoked when the missed call notification is cleared. */
732 * when we receive a "new ringing connection" event from the telephony
768 * Watch out: This should be set to true *only* when directly
891 // launch the InCallScreen immediately when whe
[all...]
/packages/apps/Calendar/src/com/android/calendar/
H A DDayView.java134 * during calendar syncs. This becomes valid when an event is selected, either by default
135 * on starting calendar or by scrolling to an event. It becomes invalid when the user
196 // TODO recreate formatter when locale changes
521 * The height of the day names/numbers when viewing a single day
581 * The initial state of the touch mode when we enter this view.
628 // Animates the current time marker when Today is pressed
757 mDeleteEventHelper = new DeleteEventHelper(context, null, false /* don't exit when done */);
916 * This is called when the popup window is pressed.
1480 // This was the first press when there was nothing selected.
1770 String when;
[all...]
/packages/providers/MediaProvider/src/com/android/providers/media/
H A DMediaProvider.java167 "CASE when grouporder=1 THEN data1 ELSE artist END AS data1",
168 "CASE when grouporder=1 THEN data2 ELSE " +
296 // set to disable sending events when the operation originates from MTP
367 * Updates the database format when a new content provider is used
391 // when the media scanner runs.
480 // synchronize on mMtpServiceConnection when accessing mMtpService
878 // Cleans up when an audio file is deleted
898 // Cleans up when an audio genre is delete
921 // Cleans up when an audio playlist is deleted
928 // Cleans up album_art table entry when a
[all...]

Completed in 5582 milliseconds