Home
last modified time | relevance | path

Searched refs:now (Results 1 – 23 of 23) sorted by relevance

/development/tools/emulator/opengl/shared/OpenglCodecCommon/
DTimeUtils.cpp47 struct timespec now; in GetCurrentTimeMS()
48 clock_gettime(CLOCK_MONOTONIC, &now); in GetCurrentTimeMS()
49 long long iDiff = (now.tv_sec * 1000LL) + now.tv_nsec/1000000LL; in GetCurrentTimeMS()
54 struct timeval now; in GetCurrentTimeMS()
55 gettimeofday(&now, NULL); in GetCurrentTimeMS()
56 long long iDiff = (now.tv_sec * 1000LL) + now.tv_usec/1000LL; in GetCurrentTimeMS()
/development/tools/idegen/src/
DStopwatch.java25 long now = System.currentTimeMillis(); in reset() local
26 Log.info(label + ": " + (now - last) + "ms"); in reset()
27 last = now; in reset()
/development/ndk/platforms/android-4/samples/san-angeles/jni/
Dapp-android.c38 struct timeval now; in _getTime() local
40 gettimeofday(&now, NULL); in _getTime()
41 return (long)(now.tv_sec*1000 + now.tv_usec/1000); in _getTime()
/development/samples/ApiDemos/src/com/example/android/apis/graphics/
DSweep.java70 long now = System.currentTimeMillis(); in onDraw() local
74 now = System.currentTimeMillis() - now; in onDraw()
75 android.util.Log.d("skia", "sweep ms = " + (now/20.)); in onDraw()
DBitmapDecode.java127 long now = android.os.SystemClock.uptimeMillis(); in onDraw() local
129 mMovieStart = now; in onDraw()
136 int relTime = (int)((now - mMovieStart) % dur); in onDraw()
DSensorTest.java105 long now = android.os.SystemClock.uptimeMillis();
106 if (now - mLastGestureTime > 1000) {
128 mLastGestureTime = now;
/development/ndk/platforms/android-8/samples/bitmap-plasma/jni/
Dplasma.c306 double now = now_ms(); in stats_endFrame() local
307 double renderTime = now - s->frameTime; in stats_endFrame()
308 double frameTime = now - s->lastTime; in stats_endFrame()
311 if (now - s->firstTime >= MAX_PERIOD_MS) { in stats_endFrame()
343 s->firstTime = now; in stats_endFrame()
361 s->lastTime = now; in stats_endFrame()
/development/apps/NinePatchLab/src/com/android/ninepatch/
DNinePatchLab.java119 long now = 0; in onDraw() local
121 now = SystemClock.uptimeMillis(); in onDraw()
147 mFPSTime += (int)(SystemClock.uptimeMillis() - now); in onDraw()
/development/ndk/platforms/android-9/samples/native-plasma/jni/
Dplasma.c315 double now = now_ms(); in stats_endFrame() local
316 double renderTime = now - s->frameTime; in stats_endFrame()
317 double frameTime = now - s->lastTime; in stats_endFrame()
320 if (now - s->firstTime >= MAX_PERIOD_MS) { in stats_endFrame()
352 s->firstTime = now; in stats_endFrame()
370 s->lastTime = now; in stats_endFrame()
/development/testrunner/
Dlogger.py63 return "# %s: %s" % (datetime.datetime.now().strftime("%m/%d/%y %H:%M:%S"),
/development/samples/AccelerometerPlay/src/com/example/android/accelerometerplay/
DAccelerometerPlayActivity.java264 public void update(float sx, float sy, long now) { in update() argument
266 updatePositions(sx, sy, now); in update()
428 final long now = mSensorTimeStamp + (System.nanoTime() - mCpuTimeStamp); in onDraw() local
432 particleSystem.update(sx, sy, now); in onDraw()
/development/samples/CubeLiveWallpaper/src/com/example/android/livecubes/cube1/
DCubeWallpaper1.java203 long now = SystemClock.elapsedRealtime(); in drawLine() local
204 float xrot = ((float)(now - mStartTime)) / 1000; in drawLine()
/development/samples/BrowserPlugin/jni/background/
DBackgroundPlugin.cpp288 uint32_t now = getMSecs(); in timer_latency() local
289 uint32_t interval = now - obj->mPrevTime; in timer_latency()
290 uint32_t dur = now - obj->mStartTime; in timer_latency()
295 obj->mPrevTime = now; in timer_latency()
/development/samples/Snake/src/com/example/android/snake/
DSnakeView.java412 long now = System.currentTimeMillis(); in update() local
414 if (now - mLastMove > mMoveDelay) { in update()
419 mLastMove = now; in update()
/development/samples/NotePad/src/com/example/android/notepad/
DNotePadProvider.java519 Long now = Long.valueOf(System.currentTimeMillis()); in insert() local
523 values.put(NotePad.Notes.COLUMN_NAME_CREATE_DATE, now); in insert()
529 values.put(NotePad.Notes.COLUMN_NAME_MODIFICATION_DATE, now); in insert()
/development/samples/CubeLiveWallpaper/src/com/example/android/livecubes/cube2/
DCubeWallpaper2.java245 long now = SystemClock.elapsedRealtime(); in drawCube() local
246 float xrot = ((float)(now - mStartTime)) / 1000; in drawCube()
/development/tools/emulator/system/gps/
Dgps_qemu.c197 time_t now = time(NULL); in nmea_reader_update_utc_diff() local
202 gmtime_r( &now, &tm_utc ); in nmea_reader_update_utc_diff()
203 localtime_r( &now, &tm_local ); in nmea_reader_update_utc_diff()
263 time_t now = time(NULL); in nmea_reader_update_time() local
264 gmtime_r( &now, &tm ); in nmea_reader_update_time()
/development/samples/LunarLander/src/com/example/android/lunarlander/
DLunarView.java676 long now = System.currentTimeMillis(); in updatePhysics() local
681 if (mLastTime > now) return; in updatePhysics()
683 double elapsed = (now - mLastTime) / 1000.0; in updatePhysics()
736 mLastTime = now; in updatePhysics()
/development/samples/SoftKeyboard/src/com/example/android/softkeyboard/
DSoftKeyboard.java633 long now = System.currentTimeMillis(); in checkToggleCapsLock() local
634 if (mLastShiftTime + 800 > now) { in checkToggleCapsLock()
638 mLastShiftTime = now; in checkToggleCapsLock()
/development/tools/jdwpspy/
DNet.cpp456 time_t now; in getCurrentTime() local
459 now = time(NULL); in getCurrentTime()
460 ptm = localtime(&now); in getCurrentTime()
/development/tools/findunused/
Dfind_unused_resources.rb206 title = "Unused resources as of #{Time.now.localtime}"
/development/samples/ApiDemos/src/com/example/android/apis/app/
DDeviceAdminSample.java611 long now = System.currentTimeMillis(); in getExpirationStatus() local
618 localExpiration -= now; in getExpirationStatus()
632 globalExpiration -= now; in getExpirationStatus()
/development/build/
Dsdk.atree134 # Note: the kernel image is handled by sdk-android-<abi>.atree now.