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

1234

/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/unit/
H A DCameraUtilsBinderDecoratorTest.java74 when(mock.doNothing()).thenReturn(SOME_ARBITRARY_DOUBLE);
75 when(mock.doSomethingPositive()).thenReturn(SOME_ARBITRARY_POSITIVE_INT);
76 when(mock.doSomethingNoError()).thenReturn(NO_ERROR);
77 when(mock.doSomethingPermissionDenied()).thenReturn(PERMISSION_DENIED);
78 when(mock.doSomethingAlreadyExists()).thenReturn(ALREADY_EXISTS);
79 when(mock.doSomethingBadValue()).thenReturn(BAD_VALUE);
80 when(mock.doSomethingDeadObject()).thenReturn(DEAD_OBJECT);
81 when(mock.doSomethingBadPolicy()).thenReturn(EACCES);
82 when(mock.doSomethingDeviceBusy()).thenReturn(EBUSY);
83 when(moc
[all...]
H A DImageReaderTest.java81 * Return null when there is nothing in the image queue.
85 when(mReader.acquireNextImage()).thenReturn(null);
86 when(mReader.acquireNextImageNoThrowISE()).thenReturn(null);
95 when(mReader.acquireNextImage()).thenReturn(mImage1);
96 when(mReader.acquireNextImageNoThrowISE()).thenReturn(null);
106 when(mReader.acquireNextImage()).thenReturn(mImage1);
107 when(mReader.acquireNextImageNoThrowISE()).thenReturn(mImage2).thenReturn(null);
118 when(mReader.acquireNextImage()).thenReturn(mImage1);
119 when(mReader.acquireNextImageNoThrowISE()).thenReturn(mImage2).
133 when(mReade
[all...]
/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/tests/TtsTests/src/com/android/speech/tts/
H A DTextToSpeechTests.java84 // Test 2 : Tests that when the language is successfully set
87 LittleMock.doReturn(TextToSpeech.LANG_COUNTRY_AVAILABLE).when(delegate).onIsLanguageAvailable(
89 LittleMock.doReturn(TextToSpeech.LANG_COUNTRY_AVAILABLE).when(delegate).onLoadLanguage(
107 // TEST 3 : Tests that the language that is set does not change when the
109 LittleMock.doReturn(TextToSpeech.LANG_NOT_SUPPORTED).when(
111 LittleMock.doReturn(TextToSpeech.LANG_NOT_SUPPORTED).when(
130 LittleMock.doReturn(TextToSpeech.LANG_COUNTRY_AVAILABLE).when(
142 doCountDown(latch).when(mock).onSynthesizeText(LittleMock.<SynthesisRequest>anyObject(),
155 doCountDown(latch).when(listener).onInit(errorCode);
171 public <T> T when(
[all...]
/frameworks/base/core/java/android/os/
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 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...]
/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.java69 // sort first by score, then by when
79 return (int) (na.getNotification().when - nb.getNotification().when);
/frameworks/base/services/tests/servicestests/src/com/android/server/
H A DConnectivityServiceTest.java103 doReturn(new NetworkInfo(info)).when(tracker).getNetworkInfo();
104 doReturn(new LinkProperties(link)).when(tracker).getLinkProperties();
107 doReturn("").when(tracker).getTcpBufferSizesPropName();
127 .when(mNetFactory).createTracker(anyInt(), isA(NetworkConfig.class));
130 .when(mNetFactory).createTracker(eq(TYPE_MOBILE), isA(NetworkConfig.class));
132 .when(mNetFactory).createTracker(eq(TYPE_WIFI), isA(NetworkConfig.class));
135 doNothing().when(mMobile.tracker)
196 doReturn(true).when(mMobile.tracker).teardown();
/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
375 removeDeviceLocked(nsecs_t when, int32_t deviceId) argument
476 timeoutExpiredLocked(nsecs_t when) argument
485 handleConfigurationChangedLocked(nsecs_t when) argument
551 requestTimeoutAtTimeLocked(nsecs_t when) argument
806 requestTimeoutAtTime(nsecs_t when) argument
903 configure(nsecs_t when, const InputReaderConfiguration* config, uint32_t changes) argument
940 reset(nsecs_t when) argument
990 timeoutExpired(nsecs_t when) argument
1092 notifyReset(nsecs_t when) argument
1744 configure(nsecs_t when, const InputReaderConfiguration* config, uint32_t changes) argument
1748 reset(nsecs_t when) argument
1751 timeoutExpired(nsecs_t when) argument
1839 sync(nsecs_t when) argument
1911 timeoutExpired(nsecs_t when) argument
2001 configure(nsecs_t when, const InputReaderConfiguration* config, uint32_t changes) argument
2043 reset(nsecs_t when) argument
2093 processKey(nsecs_t when, bool down, int32_t keyCode, int32_t scanCode, uint32_t policyFlags) argument
2288 configure(nsecs_t when, const InputReaderConfiguration* config, uint32_t changes) argument
2383 reset(nsecs_t when) argument
2408 sync(nsecs_t when) argument
2496 synthesizeButtonKeys(getContext(), AKEY_EVENT_ACTION_DOWN, when, getDeviceId(), mSource, local
2543 synthesizeButtonKeys(getContext(), AKEY_EVENT_ACTION_UP, when, getDeviceId(), mSource, local
2721 configure(nsecs_t when, const InputReaderConfiguration* config, uint32_t changes) argument
2895 configureSurface(nsecs_t when, bool* outResetNeeded) argument
3627 reset(nsecs_t when) argument
3677 sync(nsecs_t when) argument
3746 synthesizeButtonKeys(getContext(), AKEY_EVENT_ACTION_DOWN, when, getDeviceId(), mSource, local
3816 synthesizeButtonKeys(getContext(), AKEY_EVENT_ACTION_UP, when, getDeviceId(), mSource, local
3833 timeoutExpired(nsecs_t when) argument
3841 consumeRawTouches(nsecs_t when, uint32_t policyFlags) argument
3940 dispatchVirtualKey(nsecs_t when, uint32_t policyFlags, int32_t keyEventAction, int32_t keyEventFlags) argument
3953 dispatchTouches(nsecs_t when, uint32_t policyFlags) argument
4043 dispatchHoverExit(nsecs_t when, uint32_t policyFlags) argument
4059 dispatchHoverEnterAndMove(nsecs_t when, uint32_t policyFlags) argument
4330 dispatchPointerUsage(nsecs_t when, uint32_t policyFlags, PointerUsage pointerUsage) argument
4352 abortPointerUsage(nsecs_t when, uint32_t policyFlags) argument
4370 dispatchPointerGestures(nsecs_t when, uint32_t policyFlags, bool isTimeout) argument
4578 abortPointerGestures(nsecs_t when, uint32_t policyFlags) argument
4603 preparePointerGestures(nsecs_t when, bool* outCancelPreviousGesture, bool* outFinishPreviousGesture, bool isTimeout) argument
5366 dispatchPointerStylus(nsecs_t when, uint32_t policyFlags) argument
5396 abortPointerStylus(nsecs_t when, uint32_t policyFlags) argument
5400 dispatchPointerMouse(nsecs_t when, uint32_t policyFlags) argument
5449 abortPointerMouse(nsecs_t when, uint32_t policyFlags) argument
5455 dispatchPointerSimple(nsecs_t when, uint32_t policyFlags, bool down, bool hovering) argument
5575 abortPointerSimple(nsecs_t when, uint32_t policyFlags) argument
5582 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
5933 reset(nsecs_t when) argument
5945 syncTouch(nsecs_t when, bool* outHavePointerIds) argument
6003 reset(nsecs_t when) argument
6017 syncTouch(nsecs_t when, bool* outHavePointerIds) argument
6232 configure(nsecs_t when, const InputReaderConfiguration* config, uint32_t changes) argument
6371 reset(nsecs_t when) argument
6430 sync(nsecs_t when, bool force) 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/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/native/services/surfaceflinger/
H A DDispSync.h52 virtual void onDispSyncEvent(nsecs_t when) = 0;
75 // event timestamps, and finally calling endResync when addResyncSample
87 // value. This should be used to prime the model when a display is first
/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.java117 public long when; field in class:AlarmManagerService.WakeupEvent
122 when = theTime;
324 static long convertToElapsed(long when, int type) { argument
327 when -= System.currentTimeMillis() - SystemClock.elapsedRealtime();
329 return when;
387 long whenElapsed = convertToElapsed(a.when, a.type);
400 setImplLocked(a.type, a.when, whenElapsed, a.windowLength, maxElapsed,
573 private void setImplLocked(int type, long when, long whenElapsed, long windowLength, argument
576 Alarm a = new Alarm(type, when, whenElapsed, windowLength, maxWhen, interval,
597 Slog.v(TAG, "Tipping-point operation: type=" + type + " when
797 setLocked(int type, long when) argument
1084 public long when; field in class:AlarmManagerService.Alarm
[all...]
/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/opt/telephony/
H A DAndroid.mk15 # enable this build only when platform library is available
/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
676 Notification(Context context, int icon, CharSequence tickerText, long when, CharSequence contentTitle, CharSequence contentText, Intent contentIntent) argument
699 Notification(int icon, CharSequence tickerText, long when) argument
1211 setWhen(long when) 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/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/services/jni/
H A Dcom_android_server_input_InputManagerService.cpp191 virtual void notifySwitch(nsecs_t when, uint32_t switchValues, uint32_t switchMask,
193 virtual void notifyConfigurationChanged(nsecs_t when);
202 virtual void interceptMotionBeforeQueueing(nsecs_t when, uint32_t& policyFlags);
249 void handleInterceptActions(jint wmActions, nsecs_t when, uint32_t& policyFlags);
532 void NativeInputManager::notifySwitch(nsecs_t when, argument
535 ALOGD("notifySwitch - when=%lld, switchValues=0x%08x, switchMask=0x%08x, policyFlags=0x%x",
536 when, switchValues, switchMask, policyFlags);
542 when, switchValues, switchMask);
546 void NativeInputManager::notifyConfigurationChanged(nsecs_t when) { argument
548 ALOGD("notifyConfigurationChanged - when
783 nsecs_t when = keyEvent->getEventTime(); local
820 interceptMotionBeforeQueueing(nsecs_t when, uint32_t& policyFlags) argument
851 handleInterceptActions(jint wmActions, nsecs_t when, uint32_t& policyFlags) argument
[all...]

Completed in 4919 milliseconds

1234