Home
last modified time | relevance | path

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

1234567

/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 …]
DMidiConstants.java90 int count) { in isAllActiveSensing() argument
93 for (int i = 0; i < count; i++) { in isAllActiveSensing()
/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 …]
DMidiConstants.java90 int count) { in isAllActiveSensing() argument
93 for (int i = 0; i < count; i++) { in isAllActiveSensing()
/development/tools/axl/
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
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 …]
/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/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/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/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/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/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/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/browseable/AppRestrictionEnforcer/src/com.example.android.apprestrictionenforcer/
DEasyTextWatcher.java29 public void beforeTextChanged(CharSequence s, int start, int count, int after) { in beforeTextChanged() argument
34 public void onTextChanged(CharSequence s, int start, int before, int count) { in onTextChanged() argument
/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/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/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/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/samples/browseable/NfcProvisioning/src/com.example.android.nfcprovisioning/
DTextWatcherWrapper.java37 public void beforeTextChanged(CharSequence s, int start, int count, int after) { in beforeTextChanged() argument
42 public void onTextChanged(CharSequence s, int start, int before, int count) { in onTextChanged() argument
/development/tools/bugreport/src/com/android/bugreport/util/
DArgParser.java42 public boolean hasData(int count) { in hasData() argument
43 for (int i=mPos; i<mPos+count; i++) { in hasData()
/development/tools/repo_diff/
Drepo_diff_android.py81 count = 0
82 while count < retry:
83 count += 1
85 (count, retry, workspace))
95 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/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++) {

1234567