/frameworks/base/libs/utils/ |
H A D | SystemClock.cpp | 44 * 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/core/java/android/os/ |
H A D | MessageQueue.java | 52 * Callback interface for discovering when a thread is going to block 57 * Called when the message queue has run out of messages and will now 69 * {@link IdleHandler#queueIdle IdleHandler.queueIdle()} when it is 126 final long when = msg.when; 127 if (now >= when) { 134 nextPollTimeoutMillis = (int) Math.min(when - now, Integer.MAX_VALUE); 185 final boolean enqueueMessage(Message msg, long when) { argument 186 if (msg.when != 0) { 204 msg.when [all...] |
H A D | IPowerManager.aidl | 30 void userActivity(long when, boolean noChangeLights); 31 void userActivityWithForce(long when, boolean noChangeLights, boolean force);
|
H A D | Message.java | 77 /*package*/ long when; field in class:Message 148 * @param callback Runnable that will execute when the message is handled. 273 return when; 293 * Retrieve callback object that will execute when this message is handled. 307 * {@link #setData(Bundle)}. Note that when transferring data across 310 * Bundle.setClassLoader()} so that it can instantiate your objects when 358 when = 0; 379 b.append(" when="); 380 TimeUtils.formatDuration(when-now, b); 439 dest.writeLong(when); [all...] |
H A D | PowerManager.java | 78 * flags have no effect when combined with a {@link #PARTIAL_WAKE_LOCK}.</i> 89 * will force the screen and/or keyboard to turn on immediately, when the WakeLock is 95 * <td>If this flag is set, the user activity timer will be reset when the WakeLock is 152 * Wake lock that turns the screen off when the proximity sensor activates. 194 * <p>Call release when you are done and don't need the lock anymore. 245 * Makes sure the device is on at the level you asked when you created 262 * Makes sure the device is on at the level you asked when you created 371 * wake lock, and {@link WakeLock#release release()} when you are done. 405 * @param when is used to order this correctly with the wake lock calls. 409 * turn on because of this event. This is set when th 414 userActivity(long when, boolean noChangeLights) argument [all...] |
/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/services/surfaceflinger/ |
H A D | MessageQueue.h | 56 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 D | MessageQueue.cpp | 81 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/core/java/android/app/ |
H A D | Notification.java | 78 public long when; field in class:Notification 94 * The intent to execute when the expanded status entry is clicked. If 104 * The intent to execute when the status entry is deleted by the user 123 * Text to scroll across the screen when this item is added to 159 * The audio stream type to use when playing the sound. 259 * set if the notification should be canceled when it is clicked by the 266 * set if the notification should not be canceled when the user clicks 285 this.when = System.currentTimeMillis(); 292 public Notification(Context context, int icon, CharSequence tickerText, long when, argument 295 this.when 312 Notification(int icon, CharSequence tickerText, long when) argument [all...] |
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ |
H A D | NotificationData.java | 69 final int index = chooseIndex(notification.notification.when); 86 private int chooseIndex(final long when) { argument 90 if (entry.notification.notification.when > when) {
|
/frameworks/base/core/java/android/ddm/ |
H A D | DdmHandleHeap.java | 66 * Called when the DDM server connects. The handler is allowed to 72 * Called when the DDM server disconnects. Can be used to disable 115 int when = in.get(); 117 Log.v("ddm-heap", "Heap segment enable: when=" + when); 119 boolean ok = DdmVmInternal.heapInfoNotify(when); 133 int when = in.get(); 136 Log.v("ddm-heap", "Heap segment enable: when=" + when 139 boolean ok = DdmVmInternal.heapSegmentNotify(when, wha [all...] |
/frameworks/base/services/java/com/android/server/ |
H A D | AlarmManagerService.java | 171 alarm.when = triggerAtTime; 263 // Prevent reentrant calls from stepping on each other when writing 393 time.set(a.when); 412 if (a.when < nextAlarm) { 413 nextAlarm = a.when; 428 if (alarm.when < 0) { 432 alarmSeconds = alarm.when / 1000; 433 alarmNanoseconds = (alarm.when % 1000) * 1000 * 1000; 444 mHandler.sendMessageAtTime(msg, alarm.when); 534 if (localLOGV) Slog.v(TAG, "Checking active alarm when 604 public long when; field in class:AlarmManagerService.Alarm [all...] |
/frameworks/base/core/java/android/util/ |
H A D | TimeUtils.java | 44 public static TimeZone getTimeZone(int offset, boolean dst, long when, String country) { argument 53 Date d = new Date(when); 57 int currentOffset = current.getOffset(when); 95 if (tz.getOffset(when) == offset && 122 * when computing the UTC time for a future event, applications should be aware that 127 * <p>The time zone database may be assumed to change only when the device runtime
|
/frameworks/base/libs/ui/tests/ |
H A D | InputDispatcher_test.cpp | 34 virtual void notifyConfigurationChanged(nsecs_t when) { argument 57 virtual void interceptKeyBeforeQueueing(nsecs_t when, int32_t deviceId, argument 62 virtual void interceptGenericBeforeQueueing(nsecs_t when, uint32_t& policyFlags) { argument 70 virtual void notifySwitch(nsecs_t when, argument
|
/frameworks/base/core/java/android/content/ |
H A D | SyncStatusInfo.java | 130 public void setPeriodicSyncTime(int index, long when) { argument 132 periodicSyncTimes.set(index, when);
|
/frameworks/base/libs/ui/ |
H A D | InputReader.cpp | 237 handleConfigurationChanged(rawEvent->when); 375 void InputReader::handleConfigurationChanged(nsecs_t when) { argument 383 mDispatcher->notifyConfigurationChanged(when); 833 processSwitch(rawEvent->when, rawEvent->scanCode, rawEvent->value); 838 void SwitchInputMapper::processSwitch(nsecs_t when, int32_t switchCode, int32_t switchValue) { argument 839 getDispatcher()->notifySwitch(when, switchCode, switchValue, 0); 903 nsecs_t when = systemTime(SYSTEM_TIME_MONOTONIC); local 904 processKey(when, false, keyCode, scanCode, 0); 916 processKey(rawEvent->when, rawEvent->value != 0, rawEvent->keyCode, scanCode, 930 void KeyboardInputMapper::processKey(nsecs_t when, boo argument 1093 nsecs_t when = systemTime(SYSTEM_TIME_MONOTONIC); local 1139 sync(nsecs_t when) argument 2038 nsecs_t when = systemTime(SYSTEM_TIME_MONOTONIC); local 2051 syncTouch(nsecs_t when, bool havePointerIds) argument 2100 consumeOffScreenTouches( nsecs_t when, uint32_t policyFlags) argument 2215 detectGestures(nsecs_t when) argument 2235 dispatchTouches(nsecs_t when, uint32_t policyFlags) argument 2328 dispatchTouch(nsecs_t when, uint32_t policyFlags, TouchData* touch, BitSet32 idBits, uint32_t changedId, uint32_t pointerCount, int32_t motionEventAction) argument 3252 sync(nsecs_t when) argument 3405 sync(nsecs_t when) argument [all...] |
/frameworks/base/include/ui/ |
H A D | InputReader.h | 265 void handleConfigurationChanged(nsecs_t when); 401 void processSwitch(nsecs_t when, int32_t switchCode, int32_t switchValue); 446 void processKey(nsecs_t when, bool down, int32_t keyCode, int32_t scanCode, 504 void sync(nsecs_t when); 781 void syncTouch(nsecs_t when, bool havePointerIds); 824 TouchResult consumeOffScreenTouches(nsecs_t when, uint32_t policyFlags); 825 void dispatchTouches(nsecs_t when, uint32_t policyFlags); 826 void dispatchTouch(nsecs_t when, uint32_t policyFlags, TouchData* touch, 829 void detectGestures(nsecs_t when); 883 void sync(nsecs_t when); [all...] |
/frameworks/base/services/jni/ |
H A D | com_android_server_InputManager.cpp | 196 virtual void notifySwitch(nsecs_t when, int32_t switchCode, int32_t switchValue, 198 virtual void notifyConfigurationChanged(nsecs_t when); 205 virtual void interceptKeyBeforeQueueing(nsecs_t when, int32_t deviceId, 208 virtual void interceptGenericBeforeQueueing(nsecs_t when, uint32_t& policyFlags); 574 void NativeInputManager::notifySwitch(nsecs_t when, int32_t switchCode, argument 577 LOGD("notifySwitch - when=%lld, switchCode=%d, switchValue=%d, policyFlags=0x%x", 578 when, switchCode, switchValue, policyFlags); 586 when, switchValue == 0); 592 void NativeInputManager::notifyConfigurationChanged(nsecs_t when) { argument 594 LOGD("notifyConfigurationChanged - when 852 interceptKeyBeforeQueueing(nsecs_t when, int32_t deviceId, int32_t action, int32_t &flags, int32_t keyCode, int32_t scanCode, uint32_t& policyFlags) argument 913 interceptGenericBeforeQueueing(nsecs_t when, uint32_t& policyFlags) argument [all...] |
/frameworks/base/graphics/java/android/graphics/drawable/ |
H A D | Drawable.java | 119 * will draw when its draw() method is called. 137 * will draw when its draw() method is called. 145 * by the caller). The bounds specify where this will draw when its draw() 221 * Set to true to have the drawable dither its colors when drawn to a device 228 * Set to true to have the drawable filter its bitmap when scaled or rotated 230 * this call is ignored. This can improve the look when scaled or rotated, 245 * Called when the drawable needs to be redrawn. A view at this point 257 * the parameters <var>(what, who, when)</var> to perform the 262 * @param when The time (in milliseconds) to run. The timebase is 265 public void scheduleDrawable(Drawable who, Runnable what, long when); argument 314 scheduleSelf(Runnable what, long when) argument [all...] |
H A D | ClipDrawable.java | 37 * <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> 119 public void scheduleDrawable(Drawable who, Runnable what, long when) { argument 121 mCallback.scheduleDrawable(this, what, when);
|
H A D | InsetDrawable.java | 32 * This is used when a View needs a background that is smaller than 139 public void scheduleDrawable(Drawable who, Runnable what, long when) { argument 141 mCallback.scheduleDrawable(this, what, when);
|
H A D | ScaleDrawable.java | 132 public void scheduleDrawable(Drawable who, Runnable what, long when) { argument 134 mCallback.scheduleDrawable(this, what, when);
|
H A D | AnimatedRotateDrawable.java | 167 public void scheduleDrawable(Drawable who, Runnable what, long when) { argument 169 mCallback.scheduleDrawable(this, what, when);
|
H A D | RotateDrawable.java | 125 public void scheduleDrawable(Drawable who, Runnable what, long when) { argument 127 mCallback.scheduleDrawable(this, what, when);
|
/frameworks/base/tools/aapt/ |
H A D | ZipEntry.h | 106 * Application-defined "mark". Can be useful when synchronizing the 191 void setModWhen(time_t when);
|