Home
last modified time | relevance | path

Searched refs:count (Results 1 – 25 of 153) sorted by relevance

1234567

/development/samples/browseable/MidiScope/src/com.example.android.common.midi/
DMidiEventScheduler.java40 public void onSend(byte[] msg, int offset, int count, long timestamp) in onSend() argument
42 MidiEvent event = createScheduledEvent(msg, offset, count, timestamp); in onSend()
50 public int count = 0; field in MidiEventScheduler.MidiEvent
53 private MidiEvent(int count) { in MidiEvent() argument
55 data = new byte[count]; in MidiEvent()
58 private MidiEvent(byte[] msg, int offset, int count, long timestamp) { in MidiEvent() argument
60 data = new byte[count]; in MidiEvent()
61 System.arraycopy(msg, offset, data, 0, count); in MidiEvent()
62 this.count = count; in MidiEvent()
68 for (int i = 0; i < count; i++) { in toString()
[all …]
/development/samples/browseable/MidiSynth/src/com.example.android.common.midi/
DMidiEventScheduler.java40 public void onSend(byte[] msg, int offset, int count, long timestamp) in onSend() argument
42 MidiEvent event = createScheduledEvent(msg, offset, count, timestamp); in onSend()
50 public int count = 0; field in MidiEventScheduler.MidiEvent
53 private MidiEvent(int count) { in MidiEvent() argument
55 data = new byte[count]; in MidiEvent()
58 private MidiEvent(byte[] msg, int offset, int count, long timestamp) { in MidiEvent() argument
60 data = new byte[count]; in MidiEvent()
61 System.arraycopy(msg, offset, data, 0, count); in MidiEvent()
62 this.count = count; in MidiEvent()
68 for (int i = 0; i < count; i++) { in toString()
[all …]
/development/tools/axl/
Daxl.py188 self.count = 0
192 self.count += len(data)
193 if self.count == 190890:
201 self.count = 0
205 if self.count == 0: self.write("HTTP/1.1 200 OK\r\n\r\n")
206 self.count += 1
213 self.count = 0
217 if self.count == 0: self.write("HTTP/1.1 200 OK\r\n\r\n")
220 def sendPack(self, count): argument
221 if count > 10:
[all …]
DudpServer.py21 count = 0
22 while count < 500:
23 print 'Sending packet', count, 'to', address[0]
24 svrsocket.sendto("%3.3s%s" % (count, buf), address)
26 count += 1
DudpEater.py38 count = 0
39 while count < 400:
41 print 'Received packet', count, data[:34]
42 count += 1
/development/samples/ApiDemos/src/com/example/android/apis/animation/
DFixedGridLayout.java62 int count = getChildCount(); in onMeasure() local
63 for (int index=0; index<count; index++) { in onMeasure()
69 int minCount = count > 3 ? count : 3; in onMeasure()
85 int count = getChildCount(); in onLayout() local
86 for (int index=0; index<count; index++) { in onLayout()
/development/tools/idegen/src/
DEclipse.java123 int count = 0; in constructExcluding() local
126 if (count == 0) { in constructExcluding()
127 count++; in constructExcluding()
136 if (count > 1) { in constructExcluding()
142 count++; in constructExcluding()
153 if (count > 1) { in constructExcluding()
159 count++; in constructExcluding()
/development/samples/FixedGridLayout/src/com/example/android/fixedgridlayout/
DFixedGridLayout.java75 int count = getChildCount(); in onMeasure() local
76 for (int index=0; index<count; index++) { in onMeasure()
81 setMeasuredDimension(resolveSize(mCellWidth*count, widthMeasureSpec), in onMeasure()
82 resolveSize(mCellHeight*count, heightMeasureSpec)); in onMeasure()
96 int count = getChildCount(); in onLayout() local
97 for (int index=0; index<count; index++) { in onLayout()
/development/samples/browseable/MidiScope/src/com.example.android.common.midi/synth/
DSynthEngine.java70 public void onSend(byte[] data, int offset, int count, long timestamp) in onSend() argument
73 if (!MidiConstants.isAllActiveSensing(data, offset, count)) { in onSend()
74 mEventScheduler.getReceiver().send(data, offset, count, in onSend()
82 public void onSend(byte[] data, int offset, int count, long timestamp) in onSend() argument
102 logMidiMessage(data, offset, count); in onSend()
156 public void logMidiMessage(byte[] data, int offset, int count) { in logMidiMessage() argument
158 for (int i = 0; i < count; i++) { in logMidiMessage()
172 mFramer.send(event.data, 0, event.count, event.getTimestamp()); in processMidiEvents()
/development/samples/browseable/MidiSynth/src/com.example.android.common.midi/synth/
DSynthEngine.java70 public void onSend(byte[] data, int offset, int count, long timestamp) in onSend() argument
73 if (!MidiConstants.isAllActiveSensing(data, offset, count)) { in onSend()
74 mEventScheduler.getReceiver().send(data, offset, count, in onSend()
82 public void onSend(byte[] data, int offset, int count, long timestamp) in onSend() argument
102 logMidiMessage(data, offset, count); in onSend()
156 public void logMidiMessage(byte[] data, int offset, int count) { in logMidiMessage() argument
158 for (int i = 0; i < count; i++) { in logMidiMessage()
172 mFramer.send(event.data, 0, event.count, event.getTimestamp()); in processMidiEvents()
/development/samples/browseable/SwipeRefreshLayoutBasic/src/com.example.android.common/dummydata/
DCheeses.java173 public static ArrayList<String> randomList(int count) { in randomList() argument
178 count = Math.min(count, CHEESES.length); in randomList()
180 while (items.size() < count) { in randomList()
/development/samples/browseable/SwipeRefreshMultipleViews/src/com.example.android.common/dummydata/
DCheeses.java173 public static ArrayList<String> randomList(int count) { in randomList() argument
178 count = Math.min(count, CHEESES.length); in randomList()
180 while (items.size() < count) { in randomList()
/development/samples/browseable/SwipeRefreshListFragment/src/com.example.android.common/dummydata/
DCheeses.java173 public static ArrayList<String> randomList(int count) { in randomList() argument
178 count = Math.min(count, CHEESES.length); in randomList()
180 while (items.size() < count) { in randomList()
/development/samples/browseable/BasicSyncAdapter/src/com.example.android.basicsyncadapter/provider/
DFeedProvider.java152 int count; in delete() local
155 count = builder.table(FeedContract.Entry.TABLE_NAME) in delete()
161 count = builder.table(FeedContract.Entry.TABLE_NAME) in delete()
173 return count; in delete()
184 int count; in update() local
187 count = builder.table(FeedContract.Entry.TABLE_NAME) in update()
193 count = builder.table(FeedContract.Entry.TABLE_NAME) in update()
204 return count; in update()
/development/tools/findunused/
Dfindunusedstrings7 -p option prints out unused strings, otherwise a total count is printed
41 count=$(wc -l)
42 if [ "$count" != "0" ]
44 echo $app: $count unused strings
/development/tools/logblame/
Danalyze_logs.py17 self.count = 0
22 return "(%s,%s)" % (self.count, self.memory)
35 bucket.count += 1
47 result.sort(lambda a, b: -cmp(a[1].count, b[1].count))
114 print "%7d (%2d%%) %s (%2d%%) %s" % (bucket.count, (100 * bucket.count / totalCount),
/development/apps/Development/src/com/android/development/
DDetails.java84 int count = mData.size(); in addDataViews() local
85 for (int i=0; i<count; i++) { in addDataViews()
89 contents.setPadding(3, 0, 0, i==count-1?0:3); in addDataViews()
143 int count = mData.size();
144 for (int i=0; i<count; i++) {
/development/tools/repo_diff/
Drepo_diff_android.py90 count = 0
91 while count < retry:
92 count += 1
94 (count, retry, workspace))
104 if count == retry and not ignore_error:
/development/samples/ApiDemos/src/com/example/android/apis/graphics/
DMeasureText.java74 int count = mPaint.getTextWidths(text, 0, text.length(), widths); in showText() local
83 float[] pts = new float[2 + count*2]; in showText()
88 for (int i = 0; i < count; i++) { in showText()
97 canvas.drawPoints(pts, 0, (count + 1) << 1, mPaint); in showText()
/development/samples/ApiDemos/src/com/example/android/apis/app/
DLoaderThrottle.java309 int count; in delete() local
314 count = db.delete(MainTable.TABLE_NAME, where, whereArgs); in delete()
325 count = db.delete(MainTable.TABLE_NAME, finalWhere, whereArgs); in delete()
334 return count; in delete()
343 int count; in update() local
349 count = db.update(MainTable.TABLE_NAME, values, where, whereArgs); in update()
357 count = db.update(MainTable.TABLE_NAME, values, finalWhere, whereArgs); in update()
366 return count; in update()
/development/samples/NotePad/src/com/example/android/notepad/
DNotePadProvider.java556 int count; in delete() local
564 count = db.delete( in delete()
593 count = db.delete( in delete()
612 return count; in delete()
640 int count; in update() local
651 count = db.update( in update()
684 count = db.update( in update()
705 return count; in update()
/development/samples/Vault/src/com/example/android/vault/
DUtils.java63 int count; in readFully() local
64 while ((count = in.read(buffer)) != -1) { in readFully()
65 bytes.write(buffer, 0, count); in readFully()
/development/samples/browseable/MidiScope/src/com.example.android.midiscope/
DLoggingReceiver.java44 public void onSend(byte[] data, int offset, int count, long timestamp) in onSend() argument
54 sb.append(MidiPrinter.formatBytes(data, offset, count)); in onSend()
56 sb.append(MidiPrinter.formatMessage(data, offset, count)); in onSend()
/development/samples/USB/AdbTest/src/com/android/adb/
DAdbTestActivity.java95 int count = 0; in appendLog() local
96 while (index > 0 && count <= maxLines) { in appendLog()
97 count++; in appendLog()
163 int count = device.getInterfaceCount(); in findAdbInterface() local
164 for (int i = 0; i < count; i++) { in findAdbInterface()
/development/samples/ApiDemos/src/com/example/android/apis/content/
DTextUndoActivity.java84 public void beforeTextChanged(CharSequence s, int start, int count, int after) { in beforeTextChanged() argument
88 public void onTextChanged(CharSequence s, int start, int before, int count) { in onTextChanged() argument
124 for (int i = 0, count = cc.length(); i < count; ++i) { in getNumbers()

1234567