Home
last modified time | relevance | path

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

1234

/development/samples/browseable/MidiSynth/src/com.example.android.common.midi/synth/
DEnvelopeADSR.java47 public void setAttackTime(float time) { in setAttackTime() argument
48 if (time < MIN_TIME) in setAttackTime()
49 time = MIN_TIME; in setAttackTime()
50 mAttackRate = 1.0f / (SynthEngine.FRAME_RATE * time); in setAttackTime()
53 public void setDecayTime(float time) { in setDecayTime() argument
54 if (time < MIN_TIME) in setDecayTime()
55 time = MIN_TIME; in setDecayTime()
56 mDecayRate = 1.0f / (SynthEngine.FRAME_RATE * time); in setDecayTime()
65 public void setReleaseTime(float time) { in setReleaseTime() argument
66 if (time < MIN_TIME) in setReleaseTime()
[all …]
/development/samples/browseable/MidiScope/src/com.example.android.common.midi/synth/
DEnvelopeADSR.java47 public void setAttackTime(float time) { in setAttackTime() argument
48 if (time < MIN_TIME) in setAttackTime()
49 time = MIN_TIME; in setAttackTime()
50 mAttackRate = 1.0f / (SynthEngine.FRAME_RATE * time); in setAttackTime()
53 public void setDecayTime(float time) { in setDecayTime() argument
54 if (time < MIN_TIME) in setDecayTime()
55 time = MIN_TIME; in setDecayTime()
56 mDecayRate = 1.0f / (SynthEngine.FRAME_RATE * time); in setDecayTime()
65 public void setReleaseTime(float time) { in setReleaseTime() argument
66 if (time < MIN_TIME) in setReleaseTime()
[all …]
/development/tools/axl/
Dchewie.py20 def add(self, url, time): argument
21 self.queue.append([url, time])
94 time, url = x[0], x[3]
95 queued.add(url, time)
98 time, thread, host = x[0], x[1], x[4]
99 opened[thread] = [time, host, connectionCount]
102 time, thread, url = x[0], x[1], x[3]
105 record = [thread, qtime, opentime, time, None, None, None, url, host, connection]
108 time, thread = x[0], x[1]
110 record[4] = time
[all …]
Dlog.py19 import time, sys
33 tm = time.time()
34 return "%s:%.2d" % (time.strftime('%m/%d/%Y %H:%M:%S',
35 time.localtime(tm)),
DudpServer.py2 import time, socket, string
25 time.sleep(0.08)
Daxl.py24 import sys, time
87 time.sleep(1)
97 time.sleep(1)
99 time.sleep(1)
/development/samples/browseable/Timer/src/com.example.android.wearable.timer/util/
DTimerFormat.java46 private static void setTime(long time) { in setTime() argument
50 if (time < 0) { in setTime()
51 time = -time; in setTime()
54 long seconds = time / 1000; in setTime()
55 long hundreds = (time - seconds * 1000) / 10; in setTime()
113 public static String getTimeString(long time) { in getTimeString() argument
114 setTime(time); in getTimeString()
/development/tools/winscope/src/traces/
DProtoLog.ts41 time: String; property in LogMessage
47 constructor({ text, time, tag, level, at, timestamp }) {
49 this.time = time;
65 time: nanos_to_string(entry.elapsedRealtimeNanos),
78 time: nanos_to_string(entry.elapsedRealtimeNanos),
/development/testrunner/
Drun_command.py23 import time
81 start_time = time.time()
130 and time.time() > start_time + timeout_time):
140 time.sleep(0.1)
/development/tools/bugreport/src/com/android/bugreport/inspector/
DInspector.java577 GregorianCalendar time = null; in inventLogcatTimes() local
585 if (line.time == null) { in inventLogcatTimes()
586 line.time = time; in inventLogcatTimes()
588 time = line.time; in inventLogcatTimes()
596 if (line.time != null) { in inventLogcatTimes()
597 time = line.time; in inventLogcatTimes()
603 line.time = time; in inventLogcatTimes()
639 if (systemLine.time == null) { in mergeLogcat()
646 if (eventLine.time == null) { in mergeLogcat()
654 if (systemLine.time.compareTo(eventLine.time) <= 0) { in mergeLogcat()
[all …]
/development/samples/ControllerSample/src/com/example/inputmanagercompat/
DInputManagerV9.java60 long time = SystemClock.elapsedRealtime(); in handleMessage() local
65 if (time - lastContact[0] > CHECK_ELAPSED_TIME) { in handleMessage()
74 lastContact[0] = time; in handleMessage()
107 long time = SystemClock.elapsedRealtime(); in getInputDeviceIds() local
112 mDevices.put(id, new long[] { time }); in getInputDeviceIds()
197 long time = SystemClock.elapsedRealtime(); in onGenericMotionEvent() local
198 timeArray[0] = time; in onGenericMotionEvent()
/development/tools/repo_diff/service/repodiff/handlers/
Dhttp.go18 var globalStartTime time.Time
45 ElapsedTime: fmt.Sprintf("%s", time.Now().Sub(globalStartTime)),
60 globalStartTime = time.Now()
/development/tools/winscope/src/
Dtransform_transaction.js44 const time = nanos_to_string(timestamp);
56 time, property
70 time, property
DLogEntry.vue25 <div class="time-column">
26 <a @click="setTimelineTime(source.timestamp)" class="time-link">
27 {{source.time}}
87 .time-column {
92 .time-column .time-link {
DTransactionEntry.vue19 <div class="time-column">
20 <a @click="e => setTimelineTime(e, source.timestamp)" class="time-link">
21 {{source.time}}
179 .time-column {
184 .time-column .time-link {
/development/samples/browseable/HdrViewfinder/
D_index.jd8 This demo implements a real-time high-dynamic-range camera viewfinder, by alternating
9 the sensor\'s exposure time between two exposure values on even and odd frames, and then
/development/samples/ApiDemos/src/com/example/android/apis/graphics/spritetext/
DSpriteTextRenderer.java176 long time = SystemClock.uptimeMillis(); in onDrawFrame() local
178 long delta = time - mLastTime; in onDrawFrame()
181 mLastTime = time; in onDrawFrame()
184 long time = SystemClock.uptimeMillis() % 4000L; in onDrawFrame() local
185 float angle = 0.090f * ((int) time); in onDrawFrame()
205 long time = SystemClock.uptimeMillis(); in drawMsPF() local
207 mStartTime = time; in drawMsPF()
211 long delta = time - mStartTime; in drawMsPF()
212 mStartTime = time; in drawMsPF()
/development/vndk/tools/header-checker/utils/
Dcreate_reference_dumps.py7 import time
207 start = time.time()
209 end = time.time()
/development/tools/
Dmonkey10 import time
154 time.sleep(2)
250 time.sleep(2)
253 time.sleep(2)
279 time.sleep(30)
291 time.sleep(60)
/development/samples/AndroidBeamDemo/src/com/example/android/beam/
DBeam.java73 Time time = new Time(); in createNdefMessage() local
74 time.setToNow(); in createNdefMessage()
76 "Beam Time: " + time.format("%H:%M:%S")); in createNdefMessage()
/development/cmds/monkey/src/com/android/commands/monkey/
DMonkeyUtils.java40 public static synchronized String toCalendarTime(long time) { in toCalendarTime() argument
41 DATE.setTime(time); in toCalendarTime()
/development/scripts/
Dadd-accounts-sdk29 import time
81 time.sleep(3)
Dadd-accounts29 import time
84 time.sleep(3)
/development/samples/browseable/CustomNotifications/src/com.example.android.customnotifications/
DMainActivity.java79 final String time = DateFormat.getTimeInstance().format(new Date()).toString(); in createNotification() local
80 final String text = getResources().getString(R.string.collapsed, time); in createNotification()
/development/tools/bugreport/src/com/android/bugreport/logcat/
DLogcatParser.java75 ll.time = Utils.parseCalendar(m, 2, true); in parse()
85 System.out.println("LogLine: time=" + ll.time + " pid=" + ll.pid in parse()

1234