/development/samples/browseable/MidiSynth/src/com.example.android.common.midi/synth/ |
D | EnvelopeADSR.java | 47 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/ |
D | EnvelopeADSR.java | 47 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/ |
D | chewie.py | 20 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 …]
|
D | log.py | 19 import time, sys 33 tm = time.time() 34 return "%s:%.2d" % (time.strftime('%m/%d/%Y %H:%M:%S', 35 time.localtime(tm)),
|
D | udpServer.py | 2 import time, socket, string 25 time.sleep(0.08)
|
D | axl.py | 24 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/ |
D | TimerFormat.java | 46 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/bugreport/src/com/android/bugreport/inspector/ |
D | Inspector.java | 577 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/testrunner/ |
D | run_command.py | 23 import time 81 start_time = time.time() 130 and time.time() > start_time + timeout_time): 140 time.sleep(0.1)
|
D | adb_interface.py | 25 import time 170 time.sleep(2) 435 time.sleep(wait_period) 464 time.sleep(wait_period)
|
/development/samples/ControllerSample/src/com/example/inputmanagercompat/ |
D | InputManagerV9.java | 60 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/samples/ApiDemos/src/com/example/android/apis/graphics/spritetext/ |
D | SpriteTextRenderer.java | 176 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/tools/repo_diff/service/repodiff/handlers/ |
D | http.go | 18 var globalStartTime time.Time 45 ElapsedTime: fmt.Sprintf("%s", time.Now().Sub(globalStartTime)), 60 globalStartTime = time.Now()
|
/development/vndk/tools/header-checker/utils/ |
D | create_reference_dumps.py | 7 import time 208 start = time.time() 210 end = time.time()
|
/development/tools/ |
D | monkey | 10 import time 154 time.sleep(2) 250 time.sleep(2) 253 time.sleep(2) 279 time.sleep(30) 291 time.sleep(60)
|
/development/samples/browseable/AgendaData/Application/src/com.example.android.wearable.agendadata/ |
D | CalendarQueryService.java | 109 Time time = new Time(); in onHandleIntent() local 110 time.setToNow(); in onHandleIntent() 111 long beginTime = time.toMillis(true); in onHandleIntent() 112 time.monthDay++; in onHandleIntent() 113 time.normalize(true); in onHandleIntent() 114 long endTime = time.normalize(true); in onHandleIntent()
|
/development/samples/browseable/HdrViewfinder/ |
D | _index.jd | 8 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/AndroidBeamDemo/src/com/example/android/beam/ |
D | Beam.java | 73 Time time = new Time(); in createNdefMessage() local 74 time.setToNow(); in createNdefMessage() 76 "Beam Time: " + time.format("%H:%M:%S")); in createNdefMessage()
|
/development/scripts/ |
D | add-accounts-sdk | 29 import time 81 time.sleep(3)
|
D | add-accounts | 29 import time 84 time.sleep(3)
|
/development/cmds/monkey/src/com/android/commands/monkey/ |
D | MonkeyUtils.java | 40 public static synchronized String toCalendarTime(long time) { in toCalendarTime() argument 41 DATE.setTime(time); in toCalendarTime()
|
/development/tools/bugreport/src/com/android/bugreport/logcat/ |
D | LogcatParser.java | 75 ll.time = Utils.parseCalendar(m, 2, true); in parse() 85 System.out.println("LogLine: time=" + ll.time + " pid=" + ll.pid in parse()
|
/development/samples/browseable/CustomNotifications/src/com.example.android.customnotifications/ |
D | MainActivity.java | 79 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/samples/ApiDemos/src/com/example/android/apis/content/ |
D | ChangedContacts.java | 146 private void saveLastTimestamp(long time, String key) { in saveLastTimestamp() argument 149 editor.putLong(key, time); in saveLastTimestamp() 153 private long getLastTimestamp(long time, String key) { in getLastTimestamp() argument 155 return pref.getLong(key, time); in getLastTimestamp()
|
/development/samples/VoicemailProviderDemo/src/com/example/android/voicemail/ |
D | AddVoicemailActivity.java | 73 @InjectView(R.id.time) 129 long time = DATE_FORMATTER.parse(dateStr.trim()).getTime(); in buildVoicemailObjectFromUiElements() local 131 return VoicemailImpl.createForInsertion(time, sender) in buildVoicemailObjectFromUiElements()
|