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

123

/frameworks/native/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/testing/androidtestlib/tests/src/com/android/test/runner/
H A DAndroidJUnitRunnerTest.java63 * Test {@link AndroidJUnitRunner#buildRequest(Bundle, PrintStream)} when
70 LittleMock.doNothing().when(mMockBuilder).addTestClass("ClassName");
76 * Test {@link AndroidJUnitRunner#buildRequest(Bundle, PrintStream)} when
83 LittleMock.doNothing().when(mMockBuilder).addTestClass("ClassName1");
84 LittleMock.doNothing().when(mMockBuilder).addTestClass("ClassName2");
90 * Test {@link AndroidJUnitRunner#buildRequest(Bundle, PrintStream)} when
97 LittleMock.doNothing().when(mMockBuilder).addTestMethod("ClassName1", "method");
/frameworks/base/tests/TtsTests/src/com/android/speech/tts/
H A DTextToSpeechTests.java82 // Test 2 : Tests that when the language is successfully set
85 LittleMock.doReturn(TextToSpeech.LANG_COUNTRY_AVAILABLE).when(delegate).onLoadLanguage(
103 // TEST 3 : Tests that the language that is set does not change when the
105 LittleMock.doReturn(TextToSpeech.LANG_NOT_SUPPORTED).when(
126 LittleMock.doReturn(null).when(delegate).onGetLanguage();
132 LittleMock.doReturn(new String[] {"eng", "usa"}).when(delegate).onGetLanguage();
142 LittleMock.doReturn(new String[] {"eng", "usa", ""}).when(delegate).onGetLanguage();
156 LittleMock.doReturn(TextToSpeech.LANG_COUNTRY_AVAILABLE).when(
168 doCountDown(latch).when(mock).onSynthesizeText(LittleMock.<SynthesisRequest>anyObject(),
181 doCountDown(latch).when(listene
[all...]
/frameworks/base/core/java/android/os/
H A DMessageQueue.java57 * Callback interface for discovering when a thread is going to block
62 * Called when the message queue has run out of messages and will now
74 * {@link IdleHandler#queueIdle IdleHandler.queueIdle()} when it is
144 if (now < msg.when) {
145 // Next message is not ready. Set a timeout to wake up when it is ready.
146 nextPollTimeoutMillis = (int) Math.min(msg.when - now, Integer.MAX_VALUE);
169 && (mMessages == null || now < mMessages.when)) {
227 final int enqueueSyncBarrier(long when) { argument
237 if (when != 0) {
238 while (p != null && p.when <
283 enqueueMessage(Message msg, long when) argument
[all...]
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;
441 b.append(" when=");
442 TimeUtils.formatDuration(when-now, b);
501 dest.writeLong(when);
[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/native/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/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...]
H A DNotificationData.java89 // sort first by score, then by when
96 : (int)(na.notification.when - nb.notification.when);
/frameworks/base/services/input/
H A DInputReader.h194 // The transition from PRESS to SWIPE or FREEFORM gesture mode is made when
198 // The transition from PRESS to SWIPE gesture mode can only occur when the
205 // The transition from PRESS to SWIPE gesture mode can only occur when the
212 // Movement speed applies when the fingers are moving in the same direction.
218 // Zoom speed applies when the fingers are mostly moving relative to each other
360 virtual void requestTimeoutAtTime(nsecs_t when) = 0;
427 virtual void requestTimeoutAtTime(nsecs_t when);
456 void addDeviceLocked(nsecs_t when, int32_t deviceId);
457 void removeDeviceLocked(nsecs_t when, int32_t deviceId);
459 void timeoutExpiredLocked(nsecs_t when);
[all...]
H A DInputReader.cpp65 // Maximum number of slots supported when using the slot-based Multitouch Protocol B.
176 nsecs_t when, int32_t deviceId, uint32_t source,
186 NotifyKeyArgs args(when, deviceId, source, policyFlags,
187 action, 0, keyCode, 0, context->getGlobalMetaState(), when);
193 nsecs_t when, int32_t deviceId, uint32_t source,
195 synthesizeButtonKey(context, action, when, deviceId, source, policyFlags,
198 synthesizeButtonKey(context, action, when, deviceId, source, policyFlags,
330 addDeviceLocked(rawEvent->when, rawEvent->deviceId);
333 removeDeviceLocked(rawEvent->when, rawEvent->deviceId);
336 handleConfigurationChangedLocked(rawEvent->when);
175 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
192 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
348 addDeviceLocked(nsecs_t when, int32_t deviceId) argument
374 removeDeviceLocked(nsecs_t when, int32_t deviceId) argument
475 timeoutExpiredLocked(nsecs_t when) argument
484 handleConfigurationChangedLocked(nsecs_t when) argument
550 requestTimeoutAtTimeLocked(nsecs_t when) argument
805 requestTimeoutAtTime(nsecs_t when) argument
901 configure(nsecs_t when, const InputReaderConfiguration* config, uint32_t changes) argument
938 reset(nsecs_t when) argument
988 timeoutExpired(nsecs_t when) argument
1089 notifyReset(nsecs_t when) argument
1741 configure(nsecs_t when, const InputReaderConfiguration* config, uint32_t changes) argument
1745 reset(nsecs_t when) argument
1748 timeoutExpired(nsecs_t when) argument
1836 sync(nsecs_t when) argument
1908 timeoutExpired(nsecs_t when) argument
1998 configure(nsecs_t when, const InputReaderConfiguration* config, uint32_t changes) argument
2040 reset(nsecs_t when) argument
2090 processKey(nsecs_t when, bool down, int32_t keyCode, int32_t scanCode, uint32_t policyFlags) argument
2286 configure(nsecs_t when, const InputReaderConfiguration* config, uint32_t changes) argument
2381 reset(nsecs_t when) argument
2406 sync(nsecs_t when) argument
2494 synthesizeButtonKeys(getContext(), AKEY_EVENT_ACTION_DOWN, when, getDeviceId(), mSource, local
2541 synthesizeButtonKeys(getContext(), AKEY_EVENT_ACTION_UP, when, getDeviceId(), mSource, local
2704 configure(nsecs_t when, const InputReaderConfiguration* config, uint32_t changes) argument
2870 configureSurface(nsecs_t when, bool* outResetNeeded) argument
3560 reset(nsecs_t when) argument
3610 sync(nsecs_t when) argument
3679 synthesizeButtonKeys(getContext(), AKEY_EVENT_ACTION_DOWN, when, getDeviceId(), mSource, local
3749 synthesizeButtonKeys(getContext(), AKEY_EVENT_ACTION_UP, when, getDeviceId(), mSource, local
3766 timeoutExpired(nsecs_t when) argument
3774 consumeRawTouches(nsecs_t when, uint32_t policyFlags) argument
3873 dispatchVirtualKey(nsecs_t when, uint32_t policyFlags, int32_t keyEventAction, int32_t keyEventFlags) argument
3886 dispatchTouches(nsecs_t when, uint32_t policyFlags) argument
3976 dispatchHoverExit(nsecs_t when, uint32_t policyFlags) argument
3992 dispatchHoverEnterAndMove(nsecs_t when, uint32_t policyFlags) argument
4222 dispatchPointerUsage(nsecs_t when, uint32_t policyFlags, PointerUsage pointerUsage) argument
4244 abortPointerUsage(nsecs_t when, uint32_t policyFlags) argument
4262 dispatchPointerGestures(nsecs_t when, uint32_t policyFlags, bool isTimeout) argument
4470 abortPointerGestures(nsecs_t when, uint32_t policyFlags) argument
4495 preparePointerGestures(nsecs_t when, bool* outCancelPreviousGesture, bool* outFinishPreviousGesture, bool isTimeout) argument
5246 dispatchPointerStylus(nsecs_t when, uint32_t policyFlags) argument
5276 abortPointerStylus(nsecs_t when, uint32_t policyFlags) argument
5280 dispatchPointerMouse(nsecs_t when, uint32_t policyFlags) argument
5329 abortPointerMouse(nsecs_t when, uint32_t policyFlags) argument
5335 dispatchPointerSimple(nsecs_t when, uint32_t policyFlags, bool down, bool hovering) argument
5455 abortPointerSimple(nsecs_t when, uint32_t policyFlags) argument
5462 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
5813 reset(nsecs_t when) argument
5825 syncTouch(nsecs_t when, bool* outHavePointerIds) argument
5883 reset(nsecs_t when) argument
5897 syncTouch(nsecs_t when, bool* outHavePointerIds) argument
6085 configure(nsecs_t when, const InputReaderConfiguration* config, uint32_t changes) argument
6221 reset(nsecs_t when) argument
6280 sync(nsecs_t when, bool force) argument
[all...]
/frameworks/base/services/tests/servicestests/src/com/android/server/
H A DConnectivityServiceTest.java100 doReturn(new NetworkInfo(info)).when(tracker).getNetworkInfo();
101 doReturn(new LinkProperties(link)).when(tracker).getLinkProperties();
104 doReturn("").when(tracker).getTcpBufferSizesPropName();
124 .when(mNetFactory).createTracker(anyInt(), isA(NetworkConfig.class));
127 .when(mNetFactory).createTracker(eq(TYPE_MOBILE), isA(NetworkConfig.class));
129 .when(mNetFactory).createTracker(eq(TYPE_WIFI), isA(NetworkConfig.class));
132 doNothing().when(mMobile.tracker)
193 doReturn(true).when(mMobile.tracker).teardown();
/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/native/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);
/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/support/v4/honeycomb/android/support/v4/app/
H A DNotificationCompatHoneycomb.java31 .setWhen(n.when)
/frameworks/support/v4/ics/android/support/v4/app/
H A DNotificationCompatIceCreamSandwich.java32 .setWhen(n.when)
/frameworks/base/services/java/com/android/server/
H A DAlarmManagerService.java223 alarm.when = triggerAtTime;
299 // Prevent reentrant calls from stepping on each other when writing
454 time.set(a.when);
473 if (a.when < nextAlarm) {
474 nextAlarm = a.when;
489 if (alarm.when < 0) {
493 alarmSeconds = alarm.when / 1000;
494 alarmNanoseconds = (alarm.when % 1000) * 1000 * 1000;
505 mHandler.sendMessageAtTime(msg, alarm.when);
676 if (localLOGV) Slog.v(TAG, "Checking active alarm when
746 public long when; field in class:AlarmManagerService.Alarm
[all...]
/frameworks/base/core/java/android/app/
H A DNotification.java104 * timestamped according to when the activity began.
109 * <li>Notification of a new chat message should be stamped when the message was received.</li>
110 * <li>Notification of an ongoing file download (with a progress bar, for example) should be stamped when the download started.</li>
111 * <li>Notification of a completed file download should be stamped when the download finished.</li>
118 public long when; field in class:Notification
150 * The intent to execute when the expanded status entry is clicked. If
163 * The intent to execute when the notification is explicitly dismissed by the user, either with
179 * Text to scroll across the screen when this item is added to
187 * The view to show as the ticker in the status bar when the notification
226 * The audio stream type to use when playin
513 Notification(Context context, int icon, CharSequence tickerText, long when, CharSequence contentTitle, CharSequence contentText, Intent contentIntent) argument
536 Notification(int icon, CharSequence tickerText, long when) argument
1008 setWhen(long when) 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/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/cmds/input/src/com/android/commands/input/
H A DInput.java210 * @param when the value of SystemClock.uptimeMillis() at which the event happened
215 private void injectMotionEvent(int inputSource, int action, long when, float x, float y, float pressure) { argument
222 MotionEvent event = MotionEvent.obtain(when, when, action, x, y, pressure, DEFAULT_SIZE,
/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

Completed in 2821 milliseconds

123