Home
last modified time | relevance | path

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

123

/development/tools/idegen/src/
DStopwatch.java22 long last = System.currentTimeMillis();
25 long now = System.currentTimeMillis(); in reset()
/development/samples/ApiDemos/src/com/example/android/apis/app/
DAlarmService_Service.java75 long endTime = System.currentTimeMillis() + 15*1000;
76 while (System.currentTimeMillis() < endTime) {
79 mBinder.wait(endTime - System.currentTimeMillis());
110 .setWhen(System.currentTimeMillis()) // the time stamp in showNotification()
DServiceStartArguments.java84 long endTime = System.currentTimeMillis() + 5*1000; in handleMessage()
85 while (System.currentTimeMillis() < endTime) { in handleMessage()
88 wait(endTime - System.currentTimeMillis()); in handleMessage()
185 .setWhen(System.currentTimeMillis()) // the time stamp in showNotification()
DIncomingMessage.java128 .setWhen(System.currentTimeMillis()) // the time stamp in showAppNotification()
183 .setWhen(System.currentTimeMillis()) // the time stamp in showInterstitialNotification()
DLocalService.java111 .setWhen(System.currentTimeMillis()) // the time stamp in showNotification()
DNotifyingService.java109 .setWhen(System.currentTimeMillis()) in showNotification()
/development/samples/Alarm/src/com/example/android/newalarm/
DAlarmService.java87 long waitTime = System.currentTimeMillis() + WAIT_TIME_SECONDS * MILLISECS_PER_SEC;
91 while (System.currentTimeMillis() < waitTime) {
98 mBinder.wait(waitTime - System.currentTimeMillis());
196 .setWhen(System.currentTimeMillis()) // the time stamp in showNotification()
/development/samples/Support4Demos/src/com/example/android/supportv4/widget/
DContentLoadingProgressBarActivity.java82 mShowTime = System.currentTimeMillis(); in onClick()
87 mHideTime = System.currentTimeMillis(); in onClick()
99 mVisibilityChangedTime = System.currentTimeMillis(); in onGlobalLayout()
104 + (System.currentTimeMillis() - mVisibilityChangedTime)); in onGlobalLayout()
/development/ndk/platforms/android-8/samples/bitmap-plasma/src/com/example/plasma/
DPlasma.java54 mStartTime = System.currentTimeMillis(); in PlasmaView()
59 renderPlasma(mBitmap, System.currentTimeMillis() - mStartTime); in onDraw()
/development/samples/ApiDemos/src/com/example/android/apis/graphics/
DSweep.java71 long now = System.currentTimeMillis(); in onDraw()
75 now = System.currentTimeMillis() - now; in onDraw()
/development/samples/browseable/WatchFace/Wearable/src/com.example.android.wearable.watchface/
DComplicationSimpleWatchFaceService.java161 long timeMs = System.currentTimeMillis();
312 long currentTimeMillis = System.currentTimeMillis(); in getTappedComplicationId() local
318 && (complicationData.isActive(currentTimeMillis)) in getTappedComplicationId()
526 long now = System.currentTimeMillis(); in onDraw()
546 private void drawComplications(Canvas canvas, long currentTimeMillis) { in drawComplications() argument
554 && (complicationData.isActive(currentTimeMillis)) in drawComplications()
561 mainText.getText(getApplicationContext(), currentTimeMillis); in drawComplications()
571 subText.getText(getApplicationContext(), currentTimeMillis)); in drawComplications()
/development/samples/devbytes/graphics/BitmapAllocation/src/com/example/android/bitmapallocation/
DBitmapAllocation.java83 long startTime = System.currentTimeMillis(); in onCreate()
94 (System.currentTimeMillis() - startTime)); in onCreate()
/development/apps/SettingInjectorSample/src/com/example/android/injector/
DUpdatingInjectorService.java42 return String.valueOf(System.currentTimeMillis()); in onGetSummary()
/development/cmds/monkey/src/com/android/commands/monkey/
DMonkeyGetFrameRateEvent.java128 mStartTime = System.currentTimeMillis(); in injectEvent()
131 mEndTime = System.currentTimeMillis(); in injectEvent()
DMonkeyGetAppFrameRateEvent.java141 sStartTime = System.currentTimeMillis(); in injectEvent()
144 sEndTime = System.currentTimeMillis(); in injectEvent()
/development/samples/JetBoy/src/com/example/android/jetboy/
DJetBoyView.java73 eventTime = System.currentTimeMillis(); in GameEvent()
582 long frameDelta = System.currentTimeMillis() - mLastBeatTime; in doAsteroidAnimation()
639 mPassedTime = System.currentTimeMillis(); in run()
716 mLastBeatTime = System.currentTimeMillis(); in updateGameState()
787 if (mLaserOn && System.currentTimeMillis() - mLaserFireTime > 400) { in updateLaser()
792 else if (System.currentTimeMillis() - mLaserFireTime > 300) { in updateLaser()
803 if (!mLaserOn && System.currentTimeMillis() - keyTime <= 400) { in updateLaser()
1020 _as.mStartTime = System.currentTimeMillis(); in doAsteroidCreation()
/development/samples/browseable/MessagingService/src/com.example.android.messagingservice/
DMessageLogger.java41 message = DATE_FORMAT.format(new Date(System.currentTimeMillis())) + ": " + message; in logMessage()
DConversations.java72 this.timestamp = System.currentTimeMillis(); in Conversation()
/development/samples/browseable/SpeedTracker/Application/src/com.example.android.wearable.speedtracker/
DPhoneMainActivity.java66 calendar.setTimeInMillis(System.currentTimeMillis()); in onClick()
78 calendar.setTimeInMillis(System.currentTimeMillis()); in onDateSet()
/development/samples/Support4Demos/src/com/example/android/supportv4/content/
DSimpleWakefulController.java59 calendar.setTimeInMillis(System.currentTimeMillis());
/development/samples/browseable/Timer/src/com.example.android.wearable.timer/
DSetTimerActivity.java119 long wakeupTime = System.currentTimeMillis() + duration; in registerWithAlarmManager()
151 .setWhen(System.currentTimeMillis() + duration) in buildNotification()
/development/samples/browseable/AlwaysOn/src/com.example.android.wearable.wear.alwayson/
DMainActivity.java255 long timeMs = System.currentTimeMillis(); in refreshDisplayAndSetNextUpdate()
287 long currentTimeMs = System.currentTimeMillis(); in loadDataAndUpdateScreen()
/development/samples/SupportLeanbackDemos/src/com/example/android/leanback/
DPlaybackControlSupportHelper.java221 (System.currentTimeMillis() - mStartTime) * speed; in getCurrentPosition()
255 mStartTime = System.currentTimeMillis(); in startPlayback()
DPlaybackControlHelper.java219 (System.currentTimeMillis() - mStartTime) * speed; in getCurrentPosition()
253 mStartTime = System.currentTimeMillis(); in startPlayback()
/development/samples/RenderScript/Levels/src/com/android/rs/levels/
DLevelsRSActivity.java205 long t = java.lang.System.currentTimeMillis(); in benchmark()
207 t = java.lang.System.currentTimeMillis() - t; in benchmark()

123