Home
last modified time | relevance | path

Searched refs:seconds (Results 1 – 12 of 12) sorted by relevance

/development/samples/browseable/Timer/src/com.example.android.wearable.timer/util/
DTimerFormat.java54 long seconds = time / 1000; in setTime() local
55 long hundreds = (time - seconds * 1000) / 10; in setTime()
56 long minutes = seconds / 60; in setTime()
57 seconds = seconds - minutes * 60; in setTime()
66 if (hours == 0 && minutes == 0 && seconds == 0) { in setTime()
72 seconds++; in setTime()
73 if (seconds == 60) { in setTime()
74 seconds = 0; in setTime()
104 mSeconds = String.format(TWO_DIGITS, seconds); in setTime()
/development/tools/logblame/
Danalyze_logs.py70 seconds = make_int(10)
71 return (weeks * 604800) + (days * 86400) + (hours * 3600) + (minutes * 60) + seconds
87 seconds = (td.days * 86400) + (td.seconds) + int(td.microseconds / 1000000)
88 if seconds == 0:
91 if seconds >= 604800:
92 weeks = int(seconds / 604800)
93 seconds -= weeks * 604800
95 if seconds >= 86400:
96 days = int(seconds / 86400)
97 seconds -= days * 86400
[all …]
Dlogs.py92 endTime = datetime.datetime.now() + datetime.timedelta(seconds=duration)
/development/samples/training/notify-user/src/com/example/android/pingme/
DMainActivity.java44 int seconds; in onPingClick() local
60 seconds = R.string.seconds_default; in onPingClick()
62 seconds = Integer.parseInt(input); in onPingClick()
64 int milliseconds = (seconds * 1000); in onPingClick()
/development/samples/browseable/MidiScope/src/com.example.android.midiscope/
DLoggingReceiver.java51 double seconds = (double) monoTime / NANOS_PER_SECOND; in onSend() local
52 sb.append(String.format("%10.3f: ", seconds)); in onSend()
/development/samples/browseable/WatchFace/Wearable/src/com.example.android.wearable.watchface/
DOpenGLWatchFaceService.java442 float seconds = in onDraw() local
444 float minutes = mCalendar.get(Calendar.MINUTE) + seconds / 60f; in onDraw()
446 final int secIndex = (int) (seconds / 60f * 360f); in onDraw()
DSweepWatchFaceService.java352 final float seconds = in onDraw() local
354 final float secondsRotation = seconds * 6f; in onDraw()
DAnalogWatchFaceService.java387 final float seconds = in onDraw() local
389 final float secondsRotation = seconds * 6f; in onDraw()
DComplicationSimpleWatchFaceService.java651 final float seconds = in drawWatchFace() local
653 final float secondsRotation = seconds * 6f; in drawWatchFace()
/development/samples/browseable/WatchFace/Application/src/com.example.android.wearable.watchface/
DDigitalWatchFaceCompanionConfigActivity.java162 setUpColorPickerSelection(R.id.seconds, KEY_SECONDS_COLOR, config, R.string.color_gray); in setUpAllPickers()
167 setUpColorPickerListener(R.id.seconds, KEY_SECONDS_COLOR); in setUpAllPickers()
/development/samples/browseable/BluetoothAdvertisements/src/com.example.android.bluetoothadvertisements/
DScannerFragment.java155 + getString(R.string.seconds); in startScanning()
/development/tools/bugreport/src/com/android/bugreport/inspector/
DInspector.java790 int seconds = (int)(f / 1000); in markAnrLogcatRegions() local
793 begin.add(Calendar.SECOND, -seconds); in markAnrLogcatRegions()