Home
last modified time | relevance | path

Searched refs:currentTimeMillis (Results 1 – 25 of 73) 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()
DNotificationBackgroundService.java80 .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/ToyVpn/src/com/example/android/toyvpn/
DToyVpnConnection.java198 long lastSendTime = System.currentTimeMillis(); in run()
199 long lastReceiveTime = System.currentTimeMillis(); in run()
216 lastReceiveTime = System.currentTimeMillis(); in run()
231 lastSendTime = System.currentTimeMillis(); in run()
238 final long timeNow = System.currentTimeMillis(); in run()
/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/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/samples/browseable/WatchFace/Wearable/src/com.example.android.wearable.watchface/
DComplicationSimpleWatchFaceService.java163 long timeMs = System.currentTimeMillis();
314 long currentTimeMillis = System.currentTimeMillis(); in getTappedComplicationId() local
320 && (complicationData.isActive(currentTimeMillis)) in getTappedComplicationId()
546 long now = System.currentTimeMillis(); in onDraw()
566 private void drawComplications(Canvas canvas, long currentTimeMillis) { in drawComplications() argument
574 && (complicationData.isActive(currentTimeMillis))) { in drawComplications()
587 mainText.getText(getApplicationContext(), currentTimeMillis); in drawComplications()
597 subText.getText(getApplicationContext(), currentTimeMillis)); in drawComplications()
/development/samples/ShortcutDemo/publisher/src/com/example/android/pm/shortcutdemo/
DShortcutPublishingService.java52 this, new ShortcutInfo.Builder(this, ("shortcut-" + System.currentTimeMillis()))) in addShortcut()
/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/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.java69 calendar.setTimeInMillis(System.currentTimeMillis()); in onClick()
81 calendar.setTimeInMillis(System.currentTimeMillis()); in onDateSet()
/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/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/browseable/AppShortcuts/src/com.example.android.appshortcuts/
DShortcutHelper.java121 final long now = System.currentTimeMillis(); in refreshShortcuts()
191 extras.putLong(EXTRA_LAST_REFRESH, System.currentTimeMillis()); in setExtras()
/development/samples/devbytes/graphics/ImagePixelization/src/com/example/android/imagepixelization/
DImagePixelization.java108 if ((System.currentTimeMillis() - mLastTime) > TIME_BETWEEN_TASKS) { in checkIfShouldPixelize()
262 mLastTime = System.currentTimeMillis(); in invokePixelization()
/development/samples/ShortcutSample/src/com/example/android/shortcutsample/
DShortcutHelper.java123 final long now = System.currentTimeMillis(); in refreshShortcuts()
194 extras.putLong(EXTRA_LAST_REFRESH, System.currentTimeMillis()); in setExtras()

123