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

1234

/frameworks/base/include/androidfw/
H A DZipUtils.h66 static inline void zipTimeToTimespec(long when, struct tm* timespec) { argument
67 const long date = when >> 16;
72 timespec->tm_hour = (when >> 11) & 0x1F;
73 timespec->tm_min = (when >> 5) & 0x3F;
74 timespec->tm_sec = (when & 0x1F) << 1;
/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 DZipUtils_test.cpp41 long when = 0x3EDD7514; local
43 ZipUtils::zipTimeToTimespec(when, &t);
/frameworks/base/tests/TtsTests/src/com/android/speech/tts/
H A DTextToSpeechTests.java70 LittleMock.doReturn(TextToSpeech.LANG_COUNTRY_VAR_AVAILABLE).when(delegate).onIsLanguageAvailable(
72 LittleMock.doReturn(TextToSpeech.LANG_COUNTRY_VAR_AVAILABLE).when(delegate).onLoadLanguage(
89 // Test 2 : Tests that when the language is successfully set
92 LittleMock.doReturn(TextToSpeech.LANG_COUNTRY_AVAILABLE).when(delegate).onIsLanguageAvailable(
94 LittleMock.doReturn(TextToSpeech.LANG_COUNTRY_AVAILABLE).when(delegate).onIsLanguageAvailable(
96 LittleMock.doReturn(TextToSpeech.LANG_COUNTRY_AVAILABLE).when(delegate).onLoadLanguage(
115 // TEST 3 : Tests that the language that is set does not change when the
117 LittleMock.doReturn(TextToSpeech.LANG_NOT_SUPPORTED).when(
119 LittleMock.doReturn(TextToSpeech.LANG_NOT_SUPPORTED).when(
139 LittleMock.doReturn(TextToSpeech.LANG_COUNTRY_AVAILABLE).when(
[all...]
/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 DMessageQueue.java58 * Callback interface for discovering when a thread is going to block
63 * Called when the message queue has run out of messages and will now
75 * {@link IdleHandler#queueIdle IdleHandler.queueIdle()} when it is
158 if (now < msg.when) {
159 // Next message is not ready. Set a timeout to wake up when it is ready.
160 nextPollTimeoutMillis = (int) Math.min(msg.when - now, Integer.MAX_VALUE);
188 && (mMessages == null || now < mMessages.when)) {
254 int enqueueSyncBarrier(long when) { argument
261 msg.when = when;
315 enqueueMessage(Message msg, long when) argument
[all...]
H A DMessage.java82 * This flag is set when the message is enqueued and remains set while it
83 * is delivered and afterwards when it is recycled. The flag is only cleared
84 * when a new message is created or obtained since that is the only time that
99 /*package*/ long when; field in class:Message
175 * @param callback Runnable that will execute when the message is handled.
289 * Used internally by the MessageQueue and Looper when disposing of queued Messages.
301 when = 0;
340 return when;
360 * Retrieve callback object that will execute when this message is handled.
374 * {@link #setData(Bundle)}. Note that when transferrin
[all...]
H A DPowerManager.java78 * <i>These flags have no effect when combined with a {@link #PARTIAL_WAKE_LOCK}.</i></p>
86 * will force the screen and/or keyboard to turn on immediately, when the WakeLock is
92 * <td>If this flag is set, the user activity timer will be reset when the WakeLock is
173 * Wake lock level: Turns the screen off when the proximity sensor activates.
215 * Wake lock flag: Turn the screen on when the wake lock is acquired.
298 * a little longer without causing a visible change such as when
308 * user activity power hints when interacting with the device indirectly
440 * wake lock, and {@link WakeLock#release release()} when you are done.
505 * is not asleep. This is what happens normally when a key or the touch
506 * screen is pressed or when som
529 userActivity(long when, boolean noChangeLights) argument
559 userActivity(long when, int event, int flags) argument
[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...]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/
H A DNetworkControllerBaseTest.java5 import static org.mockito.Mockito.when;
69 when(mMockCm.isNetworkSupported(ConnectivityManager.TYPE_MOBILE)).thenReturn(true);
70 when(mMockCm.getDefaultNetworkCapabilitiesForUser(0)).thenReturn(
89 when(subscription.getSubscriptionId()).thenReturn(subId);
139 when(mServiceState.getRoaming()).thenReturn(isRoaming);
144 when(mServiceState.getCdmaEriIconIndex()).thenReturn(isRoaming ?
146 when(mServiceState.getCdmaEriIconMode()).thenReturn(isRoaming ?
152 when(mServiceState.getVoiceRegState()).thenReturn(voiceRegState);
157 when(mServiceState.getDataRegState()).thenReturn(dataRegState);
162 when(mServiceStat
[all...]
H A DNetworkControllerSignalTest.java25 Mockito.when(mMockCm.isNetworkSupported(ConnectivityManager.TYPE_MOBILE)).thenReturn(false);
45 Mockito.when(mMockCm.isNetworkSupported(ConnectivityManager.TYPE_MOBILE)).thenReturn(false);
171 Mockito.when(mockSubInfo.getSubscriptionId()).thenReturn(testSubscriptions[i]);
178 Mockito.when(mockSubInfo.getSubscriptionId()).thenReturn(notTestSubscription);
207 Mockito.when(mockSubInfo.getSubscriptionId()).thenReturn(testSubscriptions[i]);
208 Mockito.when(mockSubInfo.getSimSlotIndex()).thenReturn(testSubscriptions[i]);
/frameworks/native/services/inputflinger/
H A DInputReader.h198 // The transition from PRESS to SWIPE or FREEFORM gesture mode is made when
202 // The transition from PRESS to SWIPE gesture mode can only occur when the
209 // The transition from PRESS to SWIPE gesture mode can only occur when the
216 // Movement speed applies when the fingers are moving in the same direction.
222 // Zoom speed applies when the fingers are mostly moving relative to each other
392 virtual void requestTimeoutAtTime(nsecs_t when) = 0;
459 virtual void requestTimeoutAtTime(nsecs_t when);
488 void addDeviceLocked(nsecs_t when, int32_t deviceId);
489 void removeDeviceLocked(nsecs_t when, int32_t deviceId);
491 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,
341 addDeviceLocked(rawEvent->when, rawEvent->deviceId);
344 removeDeviceLocked(rawEvent->when, rawEvent->deviceId);
347 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
359 addDeviceLocked(nsecs_t when, int32_t deviceId) argument
386 removeDeviceLocked(nsecs_t when, int32_t deviceId) argument
487 timeoutExpiredLocked(nsecs_t when) argument
496 handleConfigurationChangedLocked(nsecs_t when) argument
562 requestTimeoutAtTimeLocked(nsecs_t when) argument
817 requestTimeoutAtTime(nsecs_t when) argument
914 configure(nsecs_t when, const InputReaderConfiguration* config, uint32_t changes) argument
951 reset(nsecs_t when) argument
1001 timeoutExpired(nsecs_t when) argument
1103 notifyReset(nsecs_t when) argument
1755 configure(nsecs_t when, const InputReaderConfiguration* config, uint32_t changes) argument
1759 reset(nsecs_t when) argument
1762 timeoutExpired(nsecs_t when) argument
1852 sync(nsecs_t when) argument
1928 timeoutExpired(nsecs_t when) argument
2018 configure(nsecs_t when, const InputReaderConfiguration* config, uint32_t changes) argument
2066 reset(nsecs_t when) argument
2116 processKey(nsecs_t when, bool down, int32_t keyCode, int32_t scanCode, uint32_t policyFlags) argument
2314 configure(nsecs_t when, const InputReaderConfiguration* config, uint32_t changes) argument
2409 reset(nsecs_t when) argument
2434 sync(nsecs_t when) argument
2522 synthesizeButtonKeys(getContext(), AKEY_EVENT_ACTION_DOWN, when, getDeviceId(), mSource, local
2569 synthesizeButtonKeys(getContext(), AKEY_EVENT_ACTION_UP, when, getDeviceId(), mSource, local
2748 configure(nsecs_t when, const InputReaderConfiguration* config, uint32_t changes) argument
2934 configureSurface(nsecs_t when, bool* outResetNeeded) argument
3685 reset(nsecs_t when) argument
3735 sync(nsecs_t when) argument
3800 synthesizeButtonKeys(getContext(), AKEY_EVENT_ACTION_DOWN, when, getDeviceId(), mSource, local
3870 synthesizeButtonKeys(getContext(), AKEY_EVENT_ACTION_UP, when, getDeviceId(), mSource, local
3887 timeoutExpired(nsecs_t when) argument
3895 consumeRawTouches(nsecs_t when, uint32_t policyFlags) argument
3994 dispatchVirtualKey(nsecs_t when, uint32_t policyFlags, int32_t keyEventAction, int32_t keyEventFlags) argument
4007 dispatchTouches(nsecs_t when, uint32_t policyFlags) argument
4097 dispatchHoverExit(nsecs_t when, uint32_t policyFlags) argument
4113 dispatchHoverEnterAndMove(nsecs_t when, uint32_t policyFlags) argument
4390 dispatchPointerUsage(nsecs_t when, uint32_t policyFlags, PointerUsage pointerUsage) argument
4412 abortPointerUsage(nsecs_t when, uint32_t policyFlags) argument
4430 dispatchPointerGestures(nsecs_t when, uint32_t policyFlags, bool isTimeout) argument
4638 abortPointerGestures(nsecs_t when, uint32_t policyFlags) argument
4663 preparePointerGestures(nsecs_t when, bool* outCancelPreviousGesture, bool* outFinishPreviousGesture, bool isTimeout) argument
5426 dispatchPointerStylus(nsecs_t when, uint32_t policyFlags) argument
5456 abortPointerStylus(nsecs_t when, uint32_t policyFlags) argument
5460 dispatchPointerMouse(nsecs_t when, uint32_t policyFlags) argument
5509 abortPointerMouse(nsecs_t when, uint32_t policyFlags) argument
5515 dispatchPointerSimple(nsecs_t when, uint32_t policyFlags, bool down, bool hovering) argument
5635 abortPointerSimple(nsecs_t when, uint32_t policyFlags) argument
5642 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
5993 reset(nsecs_t when) argument
6005 syncTouch(nsecs_t when, bool* outHavePointerIds) argument
6063 reset(nsecs_t when) argument
6077 syncTouch(nsecs_t when, bool* outHavePointerIds) argument
6292 configure(nsecs_t when, const InputReaderConfiguration* config, uint32_t changes) argument
6431 reset(nsecs_t when) argument
6490 sync(nsecs_t when, bool force) argument
[all...]
/frameworks/base/core/tests/coretests/src/android/net/
H A DNetworkScorerAppManagerTest.java55 Mockito.when(mMockContext.getPackageManager()).thenReturn(mMockPm);
100 Mockito.when(mMockPm.queryIntentActivities(
114 Mockito.when(mMockPm.queryBroadcastReceivers(
128 Mockito.when(mMockPm.checkPermission(permission.SCORE_NETWORKS, packageName))
/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/tests/Camera2Tests/CameraToo/tests/src/com/example/android/camera2/cameratoo/
H A DCameraTooTest.java22 import static org.mockito.Mockito.when;
155 when(plane.getBuffer()).thenReturn(buf);
156 when(plane.getPixelStride()).thenReturn(1);
157 when(plane.getRowStride()).thenReturn(5);
161 when(image.getPlanes()).thenReturn(onlyPlaneThatMatters);
162 when(image.getWidth()).thenReturn(5);
163 when(image.getHeight()).thenReturn(5);
/frameworks/base/services/core/java/com/android/server/job/controllers/
H A DIdleController.java100 * Idle state tracking, and messaging with the task manager when
164 // when the screen goes off or dreaming starts, we schedule the
165 // alarm that will tell us when we have decided the device is
168 final long when = nowElapsed + INACTIVITY_IDLE_THRESHOLD;
170 Slog.v(TAG, "Scheduling idle : " + action + " now:" + nowElapsed + " when="
171 + when);
174 when, IDLE_WINDOW_SLOP, mIdleTriggerIntent);
/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.h64 virtual void onDispSyncEvent(nsecs_t when) = 0;
88 // event timestamps, and finally calling endResync when addResyncSample
100 // value. This should be used to prime the model when a display is first
124 // computeNextRefresh computes when the next refresh is expected to begin.
/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/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/bitmap/src/com/android/bitmap/drawable/
H A DTileDrawable.java31 * allows a background color for the "tile", and has a fade-out transition when
175 public void scheduleDrawable(Drawable who, Runnable what, long when) { argument
176 scheduleSelf(what, when);
/frameworks/opt/telephony/
H A DAndroid.mk15 # enable this build only when platform library is available

Completed in 1112 milliseconds

1234