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

123

/frameworks/base/libs/utils/
H A DSystemClock.cpp44 * Set the current time. This only works when running as root.
100 int64_t when = systemTime(SYSTEM_TIME_MONOTONIC); local
101 return (int64_t) nanoseconds_to_milliseconds(when);
124 int64_t when = seconds_to_nanoseconds(ts.tv_sec) + ts.tv_nsec; local
125 return (int64_t) nanoseconds_to_milliseconds(when);
130 int64_t when = systemTime(SYSTEM_TIME_MONOTONIC); local
131 return (int64_t) nanoseconds_to_milliseconds(when);
134 int64_t when = systemTime(SYSTEM_TIME_MONOTONIC);
135 return (int64_t) nanoseconds_to_milliseconds(when);
/frameworks/base/libs/utils/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/core/java/android/os/
H A DIPowerManager.aidl33 void userActivity(long when, boolean noChangeLights);
34 void userActivityWithForce(long when, boolean noChangeLights, boolean force);
H A DMessageQueue.java51 * Callback interface for discovering when a thread is going to block
56 * Called when the message queue has run out of messages and will now
68 * {@link IdleHandler#queueIdle IdleHandler.queueIdle()} when it is
125 final long when = msg.when;
126 if (now >= when) {
134 nextPollTimeoutMillis = (int) Math.min(when - now, Integer.MAX_VALUE);
185 final boolean enqueueMessage(Message msg, long when) { argument
204 msg.when = when;
[all...]
H A DMessage.java88 /*package*/ long when; field in class:Message
160 * @param callback Runnable that will execute when the message is handled.
287 return when;
307 * Retrieve callback object that will execute when this message is handled.
321 * {@link #setData(Bundle)}. Note that when transferring data across
324 * Bundle.setClassLoader()} so that it can instantiate your objects when
373 when = 0;
402 b.append(" when=");
403 TimeUtils.formatDuration(when-now, b);
462 dest.writeLong(when);
[all...]
H A DPowerManager.java76 * flags have no effect when combined with a {@link #PARTIAL_WAKE_LOCK}.</i>
87 * will force the screen and/or keyboard to turn on immediately, when the WakeLock is
93 * <td>If this flag is set, the user activity timer will be reset when the WakeLock is
162 * Wake lock that turns the screen off when the proximity sensor activates.
204 * Call release when you are done and don't need the lock anymore.
258 * Makes sure the device is on at the level you asked when you created
269 * Makes sure the device is on at the level you asked when you created
389 * wake lock, and {@link WakeLock#release release()} when you are done.
428 * @param when is used to order this correctly with the wake lock calls.
432 * turn on because of this event. This is set when th
437 userActivity(long when, boolean noChangeLights) argument
[all...]
/frameworks/base/include/utils/
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/services/surfaceflinger/
H A DMessageQueue.h56 nsecs_t when; member in class:android::MessageBase
60 MessageBase() : when(0), what(0), arg0(0) { }
62 : when(0), what(what), arg0(arg0) { }
83 return lhs.when < rhs.when;
H A DMessageQueue.cpp81 if (result->when <= now) {
86 nextEventTime = result->when;
93 mInvalidateMessage->when = now;
165 message->when = systemTime() + relTime;
168 //LOGD("MessageQueue::queueMessage time = %lld ms", message->when);
188 LOGD("%c %d: msg{.what=%08x, when=%lld}",
189 tick, c, (*cur)->what, (*cur)->when);
/frameworks/base/services/input/
H A DInputReader.h116 // The transition from PRESS to SWIPE or FREEFORM gesture mode is made when
120 // The transition from PRESS to SWIPE gesture mode can only occur when the
127 // The transition from PRESS to SWIPE gesture mode can only occur when the
134 // Movement speed applies when the fingers are moving in the same direction.
140 // Zoom speed applies when the fingers are mostly moving relative to each other
290 virtual void requestTimeoutAtTime(nsecs_t when) = 0;
355 virtual void requestTimeoutAtTime(nsecs_t when);
381 void addDeviceLocked(nsecs_t when, int32_t deviceId);
382 void removeDeviceLocked(nsecs_t when, int32_t deviceId);
384 void timeoutExpiredLocked(nsecs_t when);
[all...]
H A DInputReader.cpp62 // Maximum number of slots supported when using the slot-based Multitouch Protocol B.
173 nsecs_t when, int32_t deviceId, uint32_t source,
183 NotifyKeyArgs args(when, deviceId, source, policyFlags,
184 action, 0, keyCode, 0, context->getGlobalMetaState(), when);
190 nsecs_t when, int32_t deviceId, uint32_t source,
192 synthesizeButtonKey(context, action, when, deviceId, source, policyFlags,
195 synthesizeButtonKey(context, action, when, deviceId, source, policyFlags,
325 addDeviceLocked(rawEvent->when, rawEvent->deviceId);
328 removeDeviceLocked(rawEvent->when, rawEvent->deviceId);
331 handleConfigurationChangedLocked(rawEvent->when);
172 synthesizeButtonKey(InputReaderContext* context, int32_t action, nsecs_t when, int32_t deviceId, uint32_t source, uint32_t policyFlags, int32_t lastButtonState, int32_t currentButtonState, int32_t buttonState, int32_t keyCode) argument
189 synthesizeButtonKeys(InputReaderContext* context, int32_t action, nsecs_t when, int32_t deviceId, uint32_t source, uint32_t policyFlags, int32_t lastButtonState, int32_t currentButtonState) argument
343 addDeviceLocked(nsecs_t when, int32_t deviceId) argument
368 removeDeviceLocked(nsecs_t when, int32_t deviceId) argument
462 timeoutExpiredLocked(nsecs_t when) argument
471 handleConfigurationChangedLocked(nsecs_t when) argument
568 requestTimeoutAtTimeLocked(nsecs_t when) argument
810 requestTimeoutAtTime(nsecs_t when) argument
899 configure(nsecs_t when, const InputReaderConfiguration* config, uint32_t changes) argument
916 reset(nsecs_t when) argument
967 timeoutExpired(nsecs_t when) argument
1043 notifyReset(nsecs_t when) argument
1679 configure(nsecs_t when, const InputReaderConfiguration* config, uint32_t changes) argument
1683 reset(nsecs_t when) argument
1686 timeoutExpired(nsecs_t when) argument
1749 processSwitch(nsecs_t when, int32_t switchCode, int32_t switchValue) argument
1792 configure(nsecs_t when, const InputReaderConfiguration* config, uint32_t changes) argument
1832 reset(nsecs_t when) argument
1862 processKey(nsecs_t when, bool down, int32_t keyCode, int32_t scanCode, uint32_t policyFlags) argument
2058 configure(nsecs_t when, const InputReaderConfiguration* config, uint32_t changes) argument
2150 reset(nsecs_t when) argument
2175 sync(nsecs_t when) argument
2260 synthesizeButtonKeys(getContext(), AKEY_EVENT_ACTION_DOWN, when, getDeviceId(), mSource, local
2304 synthesizeButtonKeys(getContext(), AKEY_EVENT_ACTION_UP, when, getDeviceId(), mSource, local
2465 configure(nsecs_t when, const InputReaderConfiguration* config, uint32_t changes) argument
2630 configureSurface(nsecs_t when, bool* outResetNeeded) argument
3253 reset(nsecs_t when) argument
3303 sync(nsecs_t when) argument
3372 synthesizeButtonKeys(getContext(), AKEY_EVENT_ACTION_DOWN, when, getDeviceId(), mSource, local
3442 synthesizeButtonKeys(getContext(), AKEY_EVENT_ACTION_UP, when, getDeviceId(), mSource, local
3459 timeoutExpired(nsecs_t when) argument
3467 consumeRawTouches(nsecs_t when, uint32_t policyFlags) argument
3566 dispatchVirtualKey(nsecs_t when, uint32_t policyFlags, int32_t keyEventAction, int32_t keyEventFlags) argument
3579 dispatchTouches(nsecs_t when, uint32_t policyFlags) argument
3669 dispatchHoverExit(nsecs_t when, uint32_t policyFlags) argument
3685 dispatchHoverEnterAndMove(nsecs_t when, uint32_t policyFlags) argument
3914 dispatchPointerUsage(nsecs_t when, uint32_t policyFlags, PointerUsage pointerUsage) argument
3936 abortPointerUsage(nsecs_t when, uint32_t policyFlags) argument
3954 dispatchPointerGestures(nsecs_t when, uint32_t policyFlags, bool isTimeout) argument
4161 abortPointerGestures(nsecs_t when, uint32_t policyFlags) argument
4186 preparePointerGestures(nsecs_t when, bool* outCancelPreviousGesture, bool* outFinishPreviousGesture, bool isTimeout) argument
4937 dispatchPointerStylus(nsecs_t when, uint32_t policyFlags) argument
4967 abortPointerStylus(nsecs_t when, uint32_t policyFlags) argument
4971 dispatchPointerMouse(nsecs_t when, uint32_t policyFlags) argument
5020 abortPointerMouse(nsecs_t when, uint32_t policyFlags) argument
5026 dispatchPointerSimple(nsecs_t when, uint32_t policyFlags, bool down, bool hovering) argument
5139 abortPointerSimple(nsecs_t when, uint32_t policyFlags) argument
5146 dispatchMotion(nsecs_t when, uint32_t policyFlags, uint32_t source, int32_t action, int32_t flags, int32_t metaState, int32_t buttonState, int32_t edgeFlags, const PointerProperties* properties, const PointerCoords* coords, const uint32_t* idToIndex, BitSet32 idBits, int32_t changedId, float xPrecision, float yPrecision, nsecs_t downTime) argument
5496 reset(nsecs_t when) argument
5508 syncTouch(nsecs_t when, bool* outHavePointerIds) argument
5562 reset(nsecs_t when) argument
5576 syncTouch(nsecs_t when, bool* outHavePointerIds) argument
5757 configure(nsecs_t when, const InputReaderConfiguration* config, uint32_t changes) argument
5893 reset(nsecs_t when) argument
5952 sync(nsecs_t when, bool force) argument
[all...]
/frameworks/base/core/java/android/app/
H A DNotification.java85 public long when; field in class:Notification
111 * The intent to execute when the expanded status entry is clicked. If
121 * The intent to execute when the status entry is deleted by the user
136 * Text to scroll across the screen when this item is added to
141 * text for when the text scrolls in and when it is displayed all at once
149 * The view to show as the ticker in the status bar when the notification
181 * The audio stream type to use when playing the sound.
281 * set if the notification should be canceled when it is clicked by the
288 * set if the notification should not be canceled when th
322 Notification(Context context, int icon, CharSequence tickerText, long when, CharSequence contentTitle, CharSequence contentText, Intent contentIntent) argument
345 Notification(int icon, CharSequence tickerText, long when) argument
678 setWhen(long when) argument
[all...]
/frameworks/base/core/java/android/ddm/
H A DDdmHandleHeap.java65 * Called when the DDM server connects. The handler is allowed to
71 * Called when the DDM server disconnects. Can be used to disable
114 int when = in.get();
116 Log.v("ddm-heap", "Heap segment enable: when=" + when);
118 boolean ok = DdmVmInternal.heapInfoNotify(when);
132 int when = in.get();
135 Log.v("ddm-heap", "Heap segment enable: when=" + when
138 boolean ok = DdmVmInternal.heapSegmentNotify(when, wha
[all...]
/frameworks/base/services/java/com/android/server/
H A DAlarmManagerService.java171 alarm.when = triggerAtTime;
245 // Prevent reentrant calls from stepping on each other when writing
372 time.set(a.when);
391 if (a.when < nextAlarm) {
392 nextAlarm = a.when;
407 if (alarm.when < 0) {
411 alarmSeconds = alarm.when / 1000;
412 alarmNanoseconds = (alarm.when % 1000) * 1000 * 1000;
423 mHandler.sendMessageAtTime(msg, alarm.when);
513 if (localLOGV) Slog.v(TAG, "Checking active alarm when
583 public long when; field in class:AlarmManagerService.Alarm
[all...]
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
H A DNotificationData.java56 : (int)(na.notification.when - nb.notification.when);
/frameworks/base/core/java/android/util/
H A DTimeUtils.java45 public static TimeZone getTimeZone(int offset, boolean dst, long when, String country) { argument
54 Date d = new Date(when);
58 int currentOffset = current.getOffset(when);
96 if (tz.getOffset(when) == offset &&
123 * when computing the UTC time for a future event, applications should be aware that
128 * <p>The time zone database may be assumed to change only when the device runtime
/frameworks/base/core/tests/coretests/src/android/os/
H A DMessageQueueTest.java210 if (newMsg.when != 0) {
212 "newMsg.when is %d should be 0 after copyFrom", newMsg.when)));
227 "msg.isInUse is false should be true after when processing %d",
232 "msg.arg1 is %d should be %d when processing # %d",
237 "msg.arg2 is %d should be %d when processing # %d",
242 "msg.obj should be 'this' when processing # %d", msg.what)));
246 "msg.replyTo should be null when processing # %d", msg.what)));
251 " mBundle.getString(\"key\") which is %s when processing # %d",
254 if (msg.when !
[all...]
/frameworks/base/services/jni/
H A Dcom_android_server_InputManager.cpp198 virtual void notifySwitch(nsecs_t when, int32_t switchCode, int32_t switchValue,
200 virtual void notifyConfigurationChanged(nsecs_t when);
208 virtual void interceptMotionBeforeQueueing(nsecs_t when, uint32_t& policyFlags);
232 int32_t displayWidth, displayHeight; // -1 when not initialized
233 int32_t displayExternalWidth, displayExternalHeight; // -1 when not initialized
256 void handleInterceptActions(jint wmActions, nsecs_t when, uint32_t& policyFlags);
502 void NativeInputManager::notifySwitch(nsecs_t when, int32_t switchCode, argument
505 LOGD("notifySwitch - when=%lld, switchCode=%d, switchValue=%d, policyFlags=0x%x",
506 when, switchCode, switchValue, policyFlags);
514 when, switchValu
520 notifyConfigurationChanged(nsecs_t when) argument
760 nsecs_t when = keyEvent->getEventTime(); local
797 interceptMotionBeforeQueueing(nsecs_t when, uint32_t& policyFlags) argument
828 handleInterceptActions(jint wmActions, nsecs_t when, uint32_t& policyFlags) argument
[all...]
/frameworks/base/core/java/android/content/
H A DSyncStatusInfo.java130 public void setPeriodicSyncTime(int index, long when) { argument
132 periodicSyncTimes.set(index, when);
/frameworks/base/libs/hwui/
H A DAndroid.mk4 # Only build libhwui when USE_OPENGL_RENDERER is
/frameworks/base/services/input/tests/
H A DInputDispatcher_test.cpp49 virtual void notifyConfigurationChanged(nsecs_t when) { argument
75 virtual void interceptMotionBeforeQueueing(nsecs_t when, uint32_t& policyFlags) { argument
88 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/base/graphics/java/android/graphics/drawable/
H A DClipDrawable.java38 * <p class="note"><strong>Note:</strong> The drawable is clipped completely and not visible when
39 * the level is 0 and fully revealed when the level is 10,000.</p>
121 public void scheduleDrawable(Drawable who, Runnable what, long when) { argument
124 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);

Completed in 853 milliseconds

123