/frameworks/base/include/androidfw/ |
H A D | ZipUtils.h | 70 static inline void zipTimeToTimespec(uint32_t when, struct tm* timespec) { argument 71 const uint32_t date = when >> 16; 78 timespec->tm_hour = (when >> 11) & 0x1F; 79 timespec->tm_min = (when >> 5) & 0x3F; 80 timespec->tm_sec = (when & 0x1F) << 1;
|
/frameworks/base/libs/androidfw/tests/ |
H A D | ZipUtils_test.cpp | 41 long when = 0x3EDD7514; local 43 ZipUtils::zipTimeToTimespec(when, &t);
|
/frameworks/base/tests/LocationTracker/src/com/android/locationtracker/data/ |
H A D | DateUtils.java | 38 public static String getKMLTimestamp(long when) { argument 41 c.setTimeInMillis(when);
|
/frameworks/base/core/java/com/android/internal/util/ |
H A D | WakeupMessage.java | 30 * This is useful when using the AlarmManager direct callback interface to wake up the system and 71 * the device when it goes off. If schedule is called multiple times without the message being 74 public synchronized void schedule(long when) { argument 76 AlarmManager.ELAPSED_REALTIME_WAKEUP, when, mCmdName, this, mHandler);
|
/frameworks/base/core/tests/utiltests/src/com/android/internal/util/ |
H A D | WakeupMessageTest.java | 89 when(context.getSystemService(Context.ALARM_SERVICE)).thenReturn(mAlarmManager); 91 doNothing().when(mAlarmManager).setExact(anyInt(), anyLong(), any(String.class), 106 private void scheduleAndVerifyAlarm(long when) { argument 107 mMessage.schedule(when); 108 verify(mAlarmManager).setExact(eq(AlarmManager.ELAPSED_REALTIME_WAKEUP), eq(when), 124 final long when = 1001; 125 scheduleAndVerifyAlarm(when); 140 final long when = 1010; 141 scheduleAndVerifyAlarm(when); 148 * Verify nothing happens when cance [all...] |
/frameworks/base/core/java/android/content/ |
H A D | SyncStatusInfo.java | 47 // no race conditions when accessing this list 154 public void setPeriodicSyncTime(int index, long when) { argument 155 // The list is initialized lazily when scheduling occurs so we need to make sure 158 periodicSyncTimes.set(index, when);
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/ |
H A D | KeyButtonView.java | 240 void sendEvent(int action, int flags, long when) { argument 242 final KeyEvent ev = new KeyEvent(mDownTime, when, action, mCode, repeatCount,
|
/frameworks/base/tools/aapt/ |
H A D | ZipEntry.cpp | 101 * can defer worrying about that to when we're extracting data. 339 void ZipEntry::setModWhen(time_t when) argument 350 even = (time_t)(((unsigned long)(when) + 1) & (~1));
|
/frameworks/opt/bitmap/src/com/android/bitmap/drawable/ |
H A D | TileDrawable.java | 31 * allows a background color for the "tile", and has a fade-out transition when 175 public void scheduleDrawable(Drawable who, Runnable what, long when) { argument 176 scheduleSelf(what, when);
|
H A D | BasicBitmapDrawable.java | 56 * appropriate unbind operation when the view is detached from the window. 147 * Called when the drawable's resolved layout direction changes. 305 * Called when the decode process is cancelled at any time. 469 public void scheduleDrawable(Drawable who, Runnable what, long when) { argument 470 scheduleSelf(what, when);
|
/frameworks/support/v7/appcompat/src/android/support/v7/app/ |
H A D | NotificationCompatImplBase.java | 49 boolean useChronometer, long when, List<T> actions, int[] actionsToShowInCompact, 52 number, largeIcon, subText, useChronometer, when, actions, actionsToShowInCompact, 63 boolean useChronometer, long when, List<T> actions, int[] actionsToShowInCompact, 66 number, largeIcon, subText, useChronometer, when, 103 boolean useChronometer, long when, List<T> actions, boolean showCancelButton, 106 number, largeIcon, subText, useChronometer, when, actions, showCancelButton, 116 boolean useChronometer, long when, List<T> actions, boolean showCancelButton, 120 number, largeIcon, subText, useChronometer, when, 166 int number, Bitmap largeIcon, CharSequence subText, boolean useChronometer, long when, 232 if (when ! 45 overrideContentView( NotificationBuilderWithBuilderAccessor builder, Context context, CharSequence contentTitle, CharSequence contentText, CharSequence contentInfo, int number, Bitmap largeIcon, CharSequence subText, boolean useChronometer, long when, List<T> actions, int[] actionsToShowInCompact, boolean showCancelButton, PendingIntent cancelButtonIntent) argument 60 generateContentView( Context context, CharSequence contentTitle, CharSequence contentText, CharSequence contentInfo, int number, Bitmap largeIcon, CharSequence subText, boolean useChronometer, long when, List<T> actions, int[] actionsToShowInCompact, boolean showCancelButton, PendingIntent cancelButtonIntent) argument 100 overrideBigContentView( Notification n, Context context, CharSequence contentTitle, CharSequence contentText, CharSequence contentInfo, int number, Bitmap largeIcon, CharSequence subText, boolean useChronometer, long when, List<T> actions, boolean showCancelButton, PendingIntent cancelButtonIntent) argument 113 generateBigContentView( Context context, CharSequence contentTitle, CharSequence contentText, CharSequence contentInfo, int number, Bitmap largeIcon, CharSequence subText, boolean useChronometer, long when, List<T> actions, boolean showCancelButton, PendingIntent cancelButtonIntent) argument 164 applyStandardTemplate(Context context, CharSequence contentTitle, CharSequence contentText, CharSequence contentInfo, int number, Bitmap largeIcon, CharSequence subText, boolean useChronometer, long when, int resId, boolean fitIn1U) argument [all...] |
/frameworks/base/cmds/input/src/com/android/commands/input/ |
H A D | Input.java | 254 * @param when the value of SystemClock.uptimeMillis() at which the event happened 259 private void injectMotionEvent(int inputSource, int action, long when, float x, float y, float pressure) { argument 265 MotionEvent event = MotionEvent.obtain(when, when, action, x, y, pressure, DEFAULT_SIZE,
|
/frameworks/base/core/java/android/os/ |
H A D | Message.java | 82 * This flag is set when the message is enqueued and remains set while it 83 * is delivered and afterwards when it is recycled. The flag is only cleared 84 * when a new message is created or obtained since that is the only time that 99 /*package*/ long when; field in class:Message 175 * @param callback Runnable that will execute when the message is handled. 289 * Used internally by the MessageQueue and Looper when disposing of queued Messages. 301 when = 0; 340 return when; 360 * Retrieve callback object that will execute when this message is handled. 374 * {@link #setData(Bundle)}. Note that when transferrin [all...] |
H A D | MessageQueue.java | 101 return mMessages == null || now < mMessages.when; 108 * {@link IdleHandler#queueIdle IdleHandler.queueIdle()} when it is 158 // We can assume mPtr != 0 when mQuitting is false. 163 * Adds a file descriptor listener to receive notification when file descriptor 170 * It is important to always unregister the listener when the file descriptor 180 * @param listener The listener to invoke when file descriptor events occur. 338 if (now < msg.when) { 339 // Next message is not ready. Set a timeout to wake up when it is ready. 340 nextPollTimeoutMillis = (int) Math.min(msg.when - now, Integer.MAX_VALUE); 369 && (mMessages == null || now < mMessages.when)) { 462 postSyncBarrier(long when) argument 533 enqueueMessage(Message msg, long when) argument [all...] |
/frameworks/base/core/java/android/util/ |
H A D | TimeUtils.java | 66 public static TimeZone getTimeZone(int offset, boolean dst, long when, String country) { argument 68 final Date d = new Date(when); 72 int currentOffset = current.getOffset(when); 92 if (tz.getOffset(when) == offset && 228 * when computing the UTC time for a future event, applications should be aware that 233 * <p>The time zone database may be assumed to change only when the device runtime
|
/frameworks/base/core/java/android/widget/ |
H A D | ScrollBarDrawable.java | 371 public void scheduleDrawable(@NonNull Drawable who, @NonNull Runnable what, long when) { argument 372 scheduleSelf(what, when);
|
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/ |
H A D | Shared.java | 127 public static String formatTime(Context context, long when) { argument 130 then.set(when); 145 return DateUtils.formatDateTime(context, when, flags);
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ |
H A D | GestureRecorder.java | 47 public MotionEventRecord(long when, MotionEvent event) { argument 48 this.time = when; 80 public TagRecord(long when, String tag, String info) { argument 81 this.time = when; 114 public void tag(long when, String tag, String info) { argument 115 mRecords.add(new TagRecord(when, tag, info)); 171 public void tag(long when, String tag, String info) { argument 177 mCurrentGesture.tag(when, tag, info); 182 public void tag(long when, String tag) { argument 183 tag(when, ta [all...] |
/frameworks/base/tests/notification/src/com/android/frameworks/tests/notification/ |
H A D | NotificationTests.java | 101 long when) { 144 when = System.currentTimeMillis(); 153 .setWhen(when) 165 public static Notification makeUploadNotification(Context context, int progress, long when) { argument 171 .setWhen(when) 338 + "see what my new camera feels like when shooting landscapes.") 100 makeBigTextNotification(Context context, int update, int id, long when) argument
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/drawable/ |
H A D | UserIconDrawable.java | 278 * bitmap/drawable. Use this when no more changes will be made and an intrinsic size is set. 420 public void scheduleDrawable(@NonNull Drawable who, @NonNull Runnable what, long when) { argument 421 scheduleSelf(what, when);
|
/frameworks/support/v4/donut/android/support/v4/graphics/drawable/ |
H A D | DrawableWrapperDonut.java | 243 public void scheduleDrawable(Drawable who, Runnable what, long when) { argument 244 scheduleSelf(what, when);
|
/frameworks/support/v7/appcompat/src/android/support/v7/graphics/drawable/ |
H A D | DrawableWrapper.java | 159 public void scheduleDrawable(Drawable who, Runnable what, long when) { argument 160 scheduleSelf(what, when);
|
/frameworks/base/core/java/android/text/format/ |
H A D | DateUtils.java | 314 * when showing relative times. For example, a time 3 seconds in 321 * when using {@link #WEEK_IN_MILLIS}. 417 // TODO: use icu4c when http://unicode.org/cldr/trac/ticket/3407 is fixed. 465 * @return true if the supplied when is today else false 467 public static boolean isToday(long when) { argument 469 time.set(when);
|
/frameworks/base/core/jni/ |
H A D | com_android_internal_content_NativeLibraryHelper.cpp | 186 uint32_t when; local 192 if (!zipFile->getEntryInfo(zipEntry, &method, &uncompLen, NULL, &offset, &when, &crc)) { 235 ZipUtils::zipTimeToTimespec(when, &t);
|
/frameworks/base/graphics/java/android/graphics/drawable/ |
H A D | DrawableWrapper.java | 210 public void scheduleDrawable(@NonNull Drawable who, @NonNull Runnable what, long when) { argument 213 callback.scheduleDrawable(this, what, when); 491 * Called when the constant state density changes.
|