Home
last modified time | relevance | path

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

12

/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/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.java76 buildLocalOnlyNotification(getString(R.string.phone_only), now(), in onOptionsItemSelected()
80 buildWearableOnlyNotification(getString(R.string.wear_only), now(), in onOptionsItemSelected()
85 getString(R.string.phone_both), getString(R.string.watch_both), now()); in onOptionsItemSelected()
193 private String now() { in now() method in SynchronizedNotificationsFragment
/development/samples/browseable/MidiSynth/src/com.example.android.common.midi/
DEventScheduler.java220 long now = System.nanoTime(); in waitNextEvent() local
223 if (lowestTime <= now) { in waitNextEvent()
228 long nanosToWait = lowestTime - now; in waitNextEvent()
/development/samples/browseable/MidiScope/src/com.example.android.common.midi/
DEventScheduler.java220 long now = System.nanoTime(); in waitNextEvent() local
223 if (lowestTime <= now) { in waitNextEvent()
228 long nanosToWait = lowestTime - now; in waitNextEvent()
/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/samples/browseable/MidiScope/src/com.example.android.common.midi/synth/
DSynthEngine.java169 long now = System.nanoTime(); // TODO use audio presentation time in processMidiEvents() local
170 MidiEvent event = (MidiEvent) mEventScheduler.getNextEvent(now); in processMidiEvents()
174 event = (MidiEvent) mEventScheduler.getNextEvent(now); in processMidiEvents()
/development/samples/browseable/MidiSynth/src/com.example.android.common.midi/synth/
DSynthEngine.java169 long now = System.nanoTime(); // TODO use audio presentation time in processMidiEvents() local
170 MidiEvent event = (MidiEvent) mEventScheduler.getNextEvent(now); in processMidiEvents()
174 event = (MidiEvent) mEventScheduler.getNextEvent(now); in processMidiEvents()
/development/testrunner/
Dlogger.py63 return "# %s: %s" % (datetime.datetime.now().strftime("%m/%d/%y %H:%M:%S"),
/development/samples/browseable/AppShortcuts/src/com.example.android.appshortcuts/
DShortcutHelper.java121 final long now = System.currentTimeMillis(); in refreshShortcuts() local
122 final long staleThreshold = force ? now : now - REFRESH_INTERVAL_MS; in refreshShortcuts()
/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/ActiveNotifications/
D_index.jd8 Notifications can now be grouped in Android N. Since Android M, the
/development/samples/ShortcutSample/src/com/example/android/shortcutsample/
DShortcutHelper.java123 final long now = System.currentTimeMillis(); in refreshShortcuts() local
124 final long staleThreshold = force ? now : now - REFRESH_INTERVAL_MS; in refreshShortcuts()
/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/tools/logblame/
Dlogs.py92 endTime = datetime.datetime.now() + datetime.timedelta(seconds=duration)
97 if duration and endTime <= datetime.datetime.now():
Danalyze_logs.py176 startTime = datetime.datetime.now()
190 endTime = datetime.datetime.now()
/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.java486 Long now = Long.valueOf(System.currentTimeMillis()); in insert() local
490 values.put(NotePad.Notes.COLUMN_NAME_CREATE_DATE, now); in insert()
496 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/tools/
Dmonkey184 return datetime.datetime.now().strftime("%Y-%m-%d-%H-%M-%S")
272 datetime.datetime.now().strftime("%A, %B %d %Y %I:%M %p")))
/development/samples/SoftKeyboard/src/com/example/android/softkeyboard/
DSoftKeyboard.java699 long now = System.currentTimeMillis(); in checkToggleCapsLock() local
700 if (mLastShiftTime + 800 > now) { in checkToggleCapsLock()
704 mLastShiftTime = now; in checkToggleCapsLock()
/development/tools/findunused/
Dfind_unused_resources.rb206 title = "Unused resources as of #{Time.now.localtime}"

12