/packages/apps/UnifiedEmail/src/com/android/mail/ |
D | FormattedDateBuilder.java | 52 public CharSequence formatShortDateTime(long when) { in formatShortDateTime() argument 53 if (DateUtils.isToday(when)) { in formatShortDateTime() 54 return formatDateTime(when, DateUtils.FORMAT_SHOW_TIME); in formatShortDateTime() 55 } else if (isCurrentYear(when)) { in formatShortDateTime() 56 return formatDateTime(when, DateUtils.FORMAT_SHOW_DATE | DateUtils.FORMAT_ABBREV_MONTH); in formatShortDateTime() 58 return formatDateTime(when, DateUtils.FORMAT_SHOW_DATE | DateUtils.FORMAT_NUMERIC_DATE); in formatShortDateTime() 74 public CharSequence formatLongDateTime(long when) { in formatLongDateTime() argument 75 if (DateUtils.isToday(when)) { in formatLongDateTime() 76 return formatDateTime(when, DateUtils.FORMAT_SHOW_TIME); in formatLongDateTime() 77 } else if (isCurrentYear(when)) { in formatLongDateTime() [all …]
|
/packages/experimental/procstatlog/ |
D | procstatreport.py | 141 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] = total_cycles / total_time [all …]
|
/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/unit/ |
D | InCallWakeLockControllerTest.java | 22 import static org.mockito.Mockito.when; 52 when(mContext.getSystemService(Context.POWER_SERVICE)).thenReturn(mPowerManager); in setUp() 53 when(mPowerManager.newWakeLock(PowerManager.FULL_WAKE_LOCK, "InCallWakeLockController")) in setUp() 63 when(mCallsManager.getRingingCall()).thenReturn(mCall); in test_RingingCallAdded() 69 when(mCallsManager.getRingingCall()).thenReturn(null); in test_NonRingingCallAdded() 70 when(mWakeLock.isHeld()).thenReturn(false); in test_NonRingingCallAdded() 77 when(mCallsManager.getRingingCall()).thenReturn(mCall); in test_RingingCallTransition() 83 when(mCallsManager.getRingingCall()).thenReturn(null); in test_RingingCallRemoved() 84 when(mWakeLock.isHeld()).thenReturn(false); in test_RingingCallRemoved() 91 when(mCallsManager.getRingingCall()).thenReturn(null); in test_WakeLockReleased() [all …]
|
/packages/apps/Calendar/src/com/android/calendar/agenda/ |
D | AgendaAdapter.java | 71 TextView when; field in AgendaAdapter.ViewHolder 122 holder.when = (TextView) view.findViewById(R.id.when); in bindView() 137 holder.when.setTextColor(mWhereDeclinedColor); in bindView() 142 holder.when.setTextColor(mWhereColor); in bindView() 169 holder.when.setTextColor(mStandardColor); in bindView() 175 TextView when = holder.when; in bindView() local 225 when.setText(whenString); in bindView()
|
/packages/apps/Calendar/src/com/android/calendar/widget/ |
D | CalendarAppWidgetModel.java | 77 String when; field in CalendarAppWidgetModel.EventInfo 108 builder.append(when); in toString() 133 result = prime * result + ((when == null) ? 0 : when.hashCode()); in hashCode() 168 if (when == null) { in equals() 169 if (other.when != null) in equals() 171 } else if (!when.equals(other.when)) { in equals() 384 eventInfo.when = whenString.toString(); in populateEventInfo()
|
D | CalendarAppWidgetService.java | 260 updateTextView(views, R.id.when, eventInfo.visibWhen, eventInfo.when); 287 views.setInt(R.id.when, "setTextColor", mDeclinedColor); 298 views.setInt(R.id.when, "setTextColor", mStandardColor);
|
/packages/experimental/NotificationShowcase/src/com/android/example/notificationshowcase/ |
D | ProgressService.java | 49 UpdateRunnable(int id, long when, int progress) { in UpdateRunnable() argument 51 mWhen = when; in UpdateRunnable() 79 final long when = intent.getLongExtra("when", 0L); in onHandleIntent() local 81 handler.postDelayed(new UpdateRunnable(id, when, progress), 1000); in onHandleIntent() 84 public static void startProgressUpdater(Context context, int id, long when, int progress) { in startProgressUpdater() argument 89 progressIntent.putExtra("when", when); in startProgressUpdater()
|
D | UpdateService.java | 54 final long when = intent.getLongExtra("when", 0L); in onHandleIntent() local 55 Log.v(TAG, "id: " + id + " when: " + when + " update: " + update); in onHandleIntent() 57 NotificationService.makeBigTextNotification(this, update, id, when)); in onHandleIntent() 64 public static PendingIntent getPendingIntent(Context context, int update, int id, long when) { in getPendingIntent() argument 69 updateIntent.putExtra("when", when); in getPendingIntent()
|
D | NotificationService.java | 80 long when) { in makeBigTextNotification() argument 118 when = System.currentTimeMillis(); in makeBigTextNotification() 127 .setWhen(when) in makeBigTextNotification() 132 UpdateService.getPendingIntent(context, update + 1, id, when)) in makeBigTextNotification() 141 public static Notification makeUploadNotification(Context context, int progress, long when) { in makeUploadNotification() argument 147 .setWhen(when) in makeUploadNotification()
|
/packages/apps/UnifiedEmail/src/com/android/mail/utils/ |
D | NotificationActionUtils.java | 202 final Folder folder, final int notificationId, final long when, in addNotificationActions() argument 210 folder, notificationIntent, notificationAction, notificationId, when); in addNotificationActions() 223 folder, notificationIntent, notificationAction, notificationId, when); in addNotificationActions() 352 final NotificationActionType action, final int notificationId, final long when) { in getNotificationActionPendingIntent() argument 356 conversation, message, folder, conversation.id, message.serverId, message.id, when, in getNotificationActionPendingIntent() 421 final NotificationActionType action, final int notificationId, final long when) { in getWearNotificationActionPendingIntent() argument 425 conversation, message, folder, conversation.id, message.serverId, message.id, when, in getWearNotificationActionPendingIntent() 500 final long localMessageId, final long when, final int source, in NotificationAction() argument 510 mWhen = when; in NotificationAction()
|
D | NotificationUtils.java | 644 final long when; in validateNotifications() local 649 when = oldWhen; in validateNotifications() 651 when = System.currentTimeMillis(); in validateNotifications() 654 notification.setWhen(when); in validateNotifications() 723 folder, when, contactFetcher); in validateNotifications() 801 folder, when, unseenCount, unreadCount, clickIntent); in validateNotifications() 853 Folder folder, long when, int unseenCount, int unreadCount, PendingIntent clickIntent) { in createPublicNotification() argument 863 .setWhen(when); in createPublicNotification() 973 final Folder folder, final long when, final ContactFetcher contactFetcher) { in configureLatestEventInfoFromConversation() argument 1111 conversationCursor, notificationIntent, folder, when, res, in configureLatestEventInfoFromConversation() [all …]
|
/packages/apps/Settings/src/com/android/settings/ |
D | DateTimeSettings.java | 326 long when = c.getTimeInMillis(); in setDate() local 328 if (when / 1000 < Integer.MAX_VALUE) { in setDate() 329 ((AlarmManager) context.getSystemService(Context.ALARM_SERVICE)).setTime(when); in setDate() 340 long when = c.getTimeInMillis(); in setTime() local 342 if (when / 1000 < Integer.MAX_VALUE) { in setTime() 343 ((AlarmManager) context.getSystemService(Context.ALARM_SERVICE)).setTime(when); in setTime()
|
/packages/apps/Camera/tests/src/com/android/camera/activity/ |
D | CameraTestCase.java | 130 doReturn(getParameters()).when(mMockCamera[0]).getParameters(); in setUp() 131 doReturn(getParameters()).when(mMockCamera[1]).getParameters(); in setUp() 138 doReturn(getParameters()).when(mOneMockCamera[0]).getParameters(); in setUp() 141 doAnswer(mTakePictureCallable).when(mMockBackCamera).takePicture( in setUp() 146 doAnswer(mAutoFocusCallable).when(mMockBackCamera).autoFocus( in setUp()
|
/packages/apps/Camera2/tests_camera/src/com/android/camera/activity/ |
D | CameraTestCase.java | 130 doReturn(getParameters()).when(mMockCamera[0]).getParameters(); in setUp() 131 doReturn(getParameters()).when(mMockCamera[1]).getParameters(); in setUp() 138 doReturn(getParameters()).when(mOneMockCamera[0]).getParameters(); in setUp() 141 doAnswer(mTakePictureCallable).when(mMockBackCamera).takePicture( in setUp() 146 doAnswer(mAutoFocusCallable).when(mMockBackCamera).autoFocus( in setUp()
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/system/ |
D | DateTimeActivity.java | 144 long when = c.getTimeInMillis(); in setDate() local 146 if (when / 1000 < Integer.MAX_VALUE) { in setDate() 147 ((AlarmManager) context.getSystemService(Context.ALARM_SERVICE)).setTime(when); in setDate() 158 long when = c.getTimeInMillis(); in setTime() local 160 if (when / 1000 < Integer.MAX_VALUE) { in setTime() 161 ((AlarmManager) context.getSystemService(Context.ALARM_SERVICE)).setTime(when); in setTime()
|
/packages/apps/Calendar/src/com/android/calendar/alerts/ |
D | AlertAdapter.java | 87 TextView whenView = (TextView) view.findViewById(R.id.when); in updateView() 113 String when; in updateView() local 137 when = sb.toString(); in updateView() 138 whenView.setText(when); in updateView()
|
/packages/apps/Calendar/tests/src/com/android/calendar/widget/ |
D | CalendarAppWidgetServiceTest.java | 113 eventInfo.when = Utils.formatDateRange(getContext(), now + ONE_HOUR, now + TWO_HOURS, in testGetAppWidgetModel_1Event() 140 eventInfo.when = Utils.formatDateRange(context, now + ONE_HOUR, now + TWO_HOURS, in testGetAppWidgetModel_AllDayEventLater() 162 eventInfo.when = DateUtils.formatDateTime(context, end, in testGetAppWidgetModel_AllDayEventLater()
|
/packages/apps/Mms/src/com/android/mms/ui/ |
D | MessageUtils.java | 446 public static String formatTimeStampString(Context context, long when) { in formatTimeStampString() argument 447 return formatTimeStampString(context, when, false); in formatTimeStampString() 450 public static String formatTimeStampString(Context context, long when, boolean fullFormat) { in formatTimeStampString() argument 452 then.set(when); in formatTimeStampString() 479 return DateUtils.formatDateTime(context, when, format_flags); in formatTimeStampString()
|
/packages/apps/Bluetooth/src/com/android/bluetooth/opp/ |
D | BluetoothOppNotification.java | 415 outNoti.when = timeStamp; in updateCompletedNotification() 464 inNoti.when = timeStamp; in updateCompletedNotification() 502 n.when = timeStamp; in updateIncomingFileConfirmNotification()
|
/packages/apps/Browser/src/com/android/browser/ |
D | EventLogTags.logtags | 5 # This event is logged when a user adds a new bookmark. This could just be a boolean, 14 # This event is logged when the user navigates to a new page, sending the time spent on the current…
|
D | WebStorageSizeManager.java | 403 long when = System.currentTimeMillis(); in scheduleOutOfSpaceNotification() local 409 Notification notification = new Notification(icon, title, when); in scheduleOutOfSpaceNotification()
|
/packages/providers/DownloadProvider/src/com/android/providers/downloads/ |
D | DownloadInfo.java | 581 long when = restartTime(now); in nextActionMillis() local 582 if (when <= now) { in nextActionMillis() 585 return when - now; in nextActionMillis()
|
/packages/apps/Settings/src/com/android/settings/drawable/ |
D | DrawableWrapper.java | 154 public void scheduleDrawable(Drawable who, Runnable what, long when) { in scheduleDrawable() argument 155 scheduleSelf(what, when); in scheduleDrawable()
|
/packages/apps/UnifiedEmail/src/com/android/mail/bitmap/ |
D | FlipDrawable.java | 194 public void scheduleDrawable(final Drawable who, final Runnable what, final long when) { in scheduleDrawable() argument 195 scheduleSelf(what, when); in scheduleDrawable()
|
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/ |
D | EventLogTags.logtags | 55 # @param suggestions The suggestions shown when the user left QSB. See qsb_click above. 56 # @param num_chars The number of characters in the query text field when the user left
|