Home
last modified time | relevance | path

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

/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.c40 struct timeval now; in _getTime() local
42 gettimeofday(&now, NULL); in _getTime()
43 return (long)(now.tv_sec*1000 + now.tv_usec/1000); in _getTime()
/development/samples/ApiDemos/src/com/example/android/apis/graphics/
DSweep.java71 long now = System.currentTimeMillis(); in onDraw() local
75 now = System.currentTimeMillis() - now; in onDraw()
76 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/samples/browseable/SynchronizedNotifications/Application/src/com.example.android.wearable.synchronizednotifications/
DSynchronizedNotificationsFragment.java82 buildLocalOnlyNotification(getString(R.string.phone_only), now(), in onOptionsItemSelected()
86 buildWearableOnlyNotification(getString(R.string.wear_only), now(), in onOptionsItemSelected()
90 … buildMirroredNotifications(getString(R.string.phone_both), getString(R.string.watch_both), now()); in onOptionsItemSelected()
193 private String now() { in now() method in SynchronizedNotificationsFragment
/development/ndk/platforms/android-8/samples/bitmap-plasma/jni/
Dplasma.c305 double now = now_ms(); in stats_endFrame() local
306 double renderTime = now - s->frameTime; in stats_endFrame()
307 double frameTime = now - s->lastTime; in stats_endFrame()
310 if (now - s->firstTime >= MAX_PERIOD_MS) { in stats_endFrame()
342 s->firstTime = now; in stats_endFrame()
360 s->lastTime = now; in stats_endFrame()
/development/ndk/platforms/android-18/samples/gles3jni/jni/
Dgles3jni.cpp194 timespec now; in step() local
195 clock_gettime(CLOCK_MONOTONIC, &now); in step()
196 uint64_t nowNs = now.tv_sec*1000000000ull + now.tv_nsec; in step()
/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.c314 double now = now_ms(); in stats_endFrame() local
315 double renderTime = now - s->frameTime; in stats_endFrame()
316 double frameTime = now - s->lastTime; in stats_endFrame()
319 if (now - s->firstTime >= MAX_PERIOD_MS) { in stats_endFrame()
351 s->firstTime = now; in stats_endFrame()
369 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/browseable/WatchFace/Wearable/src/com.example.android.wearable.watchface/
DSweepWatchFaceService.java176 long now = System.currentTimeMillis(); in onDraw() local
177 mTime.set(now); in onDraw()
178 int milliseconds = (int) (now % 1000); 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/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/samples/LunarLander/src/com/example/android/lunarlander/
DLunarView.java688 long now = System.currentTimeMillis(); in updatePhysics() local
693 if (mLastTime > now) return; in updatePhysics()
695 double elapsed = (now - mLastTime) / 1000.0; in updatePhysics()
748 mLastTime = now; in updatePhysics()
/development/samples/SoftKeyboard/src/com/example/android/softkeyboard/
DSoftKeyboard.java659 long now = System.currentTimeMillis(); in checkToggleCapsLock() local
660 if (mLastShiftTime + 800 > now) { in checkToggleCapsLock()
664 mLastShiftTime = now; in checkToggleCapsLock()
/development/tools/findunused/
Dfind_unused_resources.rb206 title = "Unused resources as of #{Time.now.localtime}"
/development/samples/ApiDemos/src/com/example/android/apis/security/
DKeyStoreUsage.java312 Date now = cal.getTime(); in doInBackground() local
319 .setStartDate(now) in doInBackground()
/development/samples/ApiDemos/src/com/example/android/apis/app/
DDeviceAdminSample.java742 long now = System.currentTimeMillis(); in getExpirationStatus() local
749 localExpiration -= now; in getExpirationStatus()
763 globalExpiration -= now; in getExpirationStatus()
/development/build/
Dsdk.atree206 # Note: the kernel image is handled by sdk-android-<abi>.atree now.
237 # this will be copied in automatically via a templating system. For now,
/development/sdk/
Dsdk_files_NOTICE.txt3526 1.10.1. "Patent Claims" means any patent claim(s), now owned or
13602 is now a host of the W3C, includes references to this specific dated version of
/development/perftests/panorama/input/
Dtest_007.ppm5979 …���������������������������������������������������������������������������now'(0).5&*1"(/"(/!*0(…