Searched defs:when (Results 1 - 25 of 40) sorted by relevance

12

/frameworks/base/libs/androidfw/tests/
H A DZipFileRO_test.cpp41 long when = 0x3EDD7514; local
43 ZipFileRO::zipTimeToTimespec(when, &t);
/frameworks/base/tests/LocationTracker/src/com/android/locationtracker/data/
H A DDateUtils.java38 public static String getKMLTimestamp(long when) { argument
41 c.setTimeInMillis(when);
/frameworks/base/include/androidfw/
H A DZipFileRO.h61 * To speed comparisons when doing a lookup by name, we could make the mapping
180 static inline void zipTimeToTimespec(long when, struct tm* timespec) { argument
181 const long date = when >> 16;
186 timespec->tm_hour = (when >> 11) & 0x1F;
187 timespec->tm_min = (when >> 5) & 0x3F;
188 timespec->tm_sec = (when & 0x1F) << 1;
/frameworks/base/core/java/android/content/
H A DSyncStatusInfo.java47 // 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/tools/aapt/
H A DZipEntry.cpp101 * can defer worrying about that to when we're extracting data.
357 void ZipEntry::setModWhen(time_t when) argument
368 even = (time_t)(((unsigned long)(when) + 1) & (~1));
/frameworks/base/cmds/input/src/com/android/commands/input/
H A DInput.java242 * @param when the value of SystemClock.uptimeMillis() at which the event happened
247 private void injectMotionEvent(int inputSource, int action, long when, float x, float y, float pressure) { argument
254 MotionEvent event = MotionEvent.obtain(when, when, action, x, y, pressure, DEFAULT_SIZE,
/frameworks/base/core/java/android/os/
H A DMessage.java85 /*package*/ long when; field in class:Message
157 * @param callback Runnable that will execute when the message is handled.
284 return when;
304 * Retrieve callback object that will execute when this message is handled.
318 * {@link #setData(Bundle)}. Note that when transferring data across
321 * Bundle.setClassLoader()} so that it can instantiate your objects when
412 when = 0;
438 b.append("{ when=");
439 TimeUtils.formatDuration(when - now, b);
513 dest.writeLong(when);
[all...]
H A DMessageQueue.java59 * Callback interface for discovering when a thread is going to block
64 * Called when the message queue has run out of messages and will now
76 * {@link IdleHandler#queueIdle IdleHandler.queueIdle()} when it is
153 if (now < msg.when) {
154 // Next message is not ready. Set a timeout to wake up when it is ready.
155 nextPollTimeoutMillis = (int) Math.min(msg.when - now, Integer.MAX_VALUE);
184 && (mMessages == null || now < mMessages.when)) {
250 int enqueueSyncBarrier(long when) { argument
256 msg.when = when;
310 enqueueMessage(Message msg, long when) argument
[all...]
H A DPowerManager.java76 * <i>These flags have no effect when combined with a {@link #PARTIAL_WAKE_LOCK}.</i></p>
84 * will force the screen and/or keyboard to turn on immediately, when the WakeLock is
90 * <td>If this flag is set, the user activity timer will be reset when the WakeLock is
171 * Wake lock level: Turns the screen off when the proximity sensor activates.
201 * Wake lock flag: Turn the screen on when the wake lock is acquired.
371 * wake lock, and {@link WakeLock#release release()} when you are done.
434 * is not asleep. This is what happens normally when a key or the touch
435 * screen is pressed or when some other user activity occurs.
441 * @param when The time of the user activity, in the {@link SystemClock#uptimeMillis()}
446 * because of this event. This is set when th
454 userActivity(long when, boolean noChangeLights) argument
[all...]
/frameworks/base/core/java/android/util/
H A DTimeUtils.java63 public static TimeZone getTimeZone(int offset, boolean dst, long when, String country) { argument
68 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/graphics/java/android/graphics/drawable/
H A DClipDrawable.java37 * <p class="note"><strong>Note:</strong> The drawable is clipped completely and not visible when
38 * the level is 0 and fully revealed when the level is 10,000.</p>
120 public void scheduleDrawable(Drawable who, Runnable what, long when) { argument
123 callback.scheduleDrawable(this, what, when);
H A DInsetDrawable.java32 * This is used when a View needs a background that is smaller than
140 public void scheduleDrawable(Drawable who, Runnable what, long when) { argument
143 callback.scheduleDrawable(this, what, when);
H A DRotateDrawable.java131 public void scheduleDrawable(Drawable who, Runnable what, long when) { argument
134 callback.scheduleDrawable(this, what, when);
H A DScaleDrawable.java135 public void scheduleDrawable(Drawable who, Runnable what, long when) { argument
137 getCallback().scheduleDrawable(this, what, when);
H A DAnimatedRotateDrawable.java177 public void scheduleDrawable(Drawable who, Runnable what, long when) { argument
180 callback.scheduleDrawable(this, what, when);
H A DDrawable.java140 * will draw when its draw() method is called.
162 * will draw when its draw() method is called.
170 * by the caller). The bounds specify where this will draw when its draw()
246 * Set to true to have the drawable dither its colors when drawn to a device
253 * Set to true to have the drawable filter its bitmap when scaled or rotated
255 * this call is ignored. This can improve the look when scaled or rotated,
270 * Called when the drawable needs to be redrawn. A view at this point
282 * the parameters <var>(what, who, when)</var> to perform the
287 * @param when The time (in milliseconds) to run. The timebase is
290 public void scheduleDrawable(Drawable who, Runnable what, long when); argument
358 scheduleSelf(Runnable what, long when) argument
[all...]
H A DLayerDrawable.java328 public void scheduleDrawable(Drawable who, Runnable what, long when) { argument
331 callback.scheduleDrawable(this, what, when);
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/stress/
H A DVideoEditorStressTest.java148 private void getAfterMemory_updateLog(String[] loggingInfo, boolean when, argument
154 if(when == false){
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
H A DGestureRecorder.java47 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/packages/SystemUI/src/com/android/systemui/statusbar/policy/
H A DKeyButtonView.java305 void sendEvent(int action, int flags, long when) { argument
307 final KeyEvent ev = new KeyEvent(mDownTime, when, action, mCode, repeatCount,
/frameworks/base/services/input/tests/
H A DInputDispatcher_test.cpp49 virtual void notifyConfigurationChanged(nsecs_t when) { argument
76 virtual void interceptMotionBeforeQueueing(nsecs_t when, uint32_t& policyFlags) { argument
89 virtual void notifySwitch(nsecs_t when, argument
/frameworks/base/core/jni/
H A Dcom_android_internal_content_NativeLibraryHelper.cpp172 long when; local
176 if (!zipFile->getEntryInfo(zipEntry, NULL, &uncompLen, NULL, NULL, &when, &crc)) {
181 ZipFileRO::zipTimeToTimespec(when, &t);
/frameworks/native/services/surfaceflinger/
H A DDispSync.cpp42 // This is the threshold used to determine when hardware vsync events are
290 virtual void onDispSyncEvent(nsecs_t when) { argument
/frameworks/base/core/java/android/text/format/
H A DDateUtils.java372 * when showing relative times. For example, a time 3 seconds in
379 * when using {@link #WEEK_IN_MILLIS}.
542 // TODO: use icu4c when http://unicode.org/cldr/trac/ticket/3407 is fixed.
590 * @return true if the supplied when is today else false
592 public static boolean isToday(long when) { argument
594 time.set(when);
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/
H A DDirectoryFragment.java239 // Hide titles when showing recents for picking images/videos
757 // when setting back later.
824 // Always throw MIME icon into place, even when a thumbnail is being
1056 private static String formatTime(Context context, long when) { argument
1059 then.set(when);
1074 return DateUtils.formatDateTime(context, when, flags);
1122 // Read-only files are disabled when creating

Completed in 865 milliseconds

12