Home
last modified time | relevance | path

Searched refs:offset (Results 1 – 25 of 60) sorted by relevance

123

/development/samples/browseable/MidiScope/src/com.example.android.common.midi/
DMidiFramer.java49 public void onSend(byte[] data, int offset, int count, long timestamp) in onSend() argument
51 int sysExStartOffset = (mInSysEx ? offset : -1); in onSend()
54 final byte currentByte = data[offset]; in onSend()
65 sysExStartOffset = offset; in onSend()
70 offset - sysExStartOffset + 1, timestamp); in onSend()
84 offset - sysExStartOffset, timestamp); in onSend()
85 sysExStartOffset = offset + 1; in onSend()
87 mReceiver.send(data, offset, 1, timestamp); in onSend()
102 ++offset; in onSend()
106 if (sysExStartOffset >= 0 && sysExStartOffset < offset) { in onSend()
[all …]
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()
58 private MidiEvent(byte[] msg, int offset, int count, long timestamp) { in MidiEvent() argument
61 System.arraycopy(msg, offset, data, 0, count); in MidiEvent()
78 private MidiEvent createScheduledEvent(byte[] msg, int offset, int count, in createScheduledEvent() argument
82 event = new MidiEvent(msg, offset, count, timestamp); in createScheduledEvent()
88 System.arraycopy(msg, offset, event.data, 0, count); in createScheduledEvent()
DMidiConstants.java89 public static boolean isAllActiveSensing(byte[] msg, int offset, in isAllActiveSensing() argument
94 byte b = msg[offset + i]; in isAllActiveSensing()
DMidiDispatcher.java78 public void onSend(byte[] msg, int offset, int count, long timestamp) throws IOException { in onSend() argument
81 receiver.send(msg, offset, count, timestamp); in onSend()
/development/samples/browseable/MidiSynth/src/com.example.android.common.midi/
DMidiFramer.java49 public void onSend(byte[] data, int offset, int count, long timestamp) in onSend() argument
51 int sysExStartOffset = (mInSysEx ? offset : -1); in onSend()
54 final byte currentByte = data[offset]; in onSend()
65 sysExStartOffset = offset; in onSend()
70 offset - sysExStartOffset + 1, timestamp); in onSend()
84 offset - sysExStartOffset, timestamp); in onSend()
85 sysExStartOffset = offset + 1; in onSend()
87 mReceiver.send(data, offset, 1, timestamp); in onSend()
102 ++offset; in onSend()
106 if (sysExStartOffset >= 0 && sysExStartOffset < offset) { in onSend()
[all …]
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()
58 private MidiEvent(byte[] msg, int offset, int count, long timestamp) { in MidiEvent() argument
61 System.arraycopy(msg, offset, data, 0, count); in MidiEvent()
78 private MidiEvent createScheduledEvent(byte[] msg, int offset, int count, in createScheduledEvent() argument
82 event = new MidiEvent(msg, offset, count, timestamp); in createScheduledEvent()
88 System.arraycopy(msg, offset, event.data, 0, count); in createScheduledEvent()
DMidiConstants.java89 public static boolean isAllActiveSensing(byte[] msg, int offset, in isAllActiveSensing() argument
94 byte b = msg[offset + i]; in isAllActiveSensing()
DMidiDispatcher.java78 public void onSend(byte[] msg, int offset, int count, long timestamp) throws IOException { in onSend() argument
81 receiver.send(msg, offset, count, timestamp); in onSend()
/development/vndk/tools/definition-tool/tools/
Dremove_dt_needed.py77 def _extract_buf_byte(buf, offset): argument
78 return buf[offset]
80 def _extract_buf_byte(buf, offset): argument
81 return ord(buf[offset])
84 def _extract_zero_terminated_buf_slice(buf, offset): argument
86 end = offset
92 return buf[offset:end]
96 def _extract_zero_terminated_str(buf, offset): argument
97 buf_slice = _extract_zero_terminated_buf_slice(buf, offset)
100 def _extract_zero_terminated_str(buf, offset): argument
[all …]
/development/samples/ApiDemos/src/com/example/android/apis/graphics/spritetext/
DMatrixTrackingGL.java176 public void glDeleteTextures(int n, int[] textures, int offset) { in glDeleteTextures() argument
177 mgl.glDeleteTextures(n, textures, offset); in glDeleteTextures()
236 public void glFogfv(int pname, float[] params, int offset) { in glFogfv() argument
237 mgl.glFogfv(pname, params, offset); in glFogfv()
248 public void glFogxv(int pname, int[] params, int offset) { in glFogxv() argument
249 mgl.glFogxv(pname, params, offset); in glFogxv()
274 public void glGenTextures(int n, int[] textures, int offset) { in glGenTextures() argument
275 mgl.glGenTextures(n, textures, offset); in glGenTextures()
287 public void glGetIntegerv(int pname, int[] params, int offset) { in glGetIntegerv() argument
288 mgl.glGetIntegerv(pname, params, offset); in glGetIntegerv()
[all …]
DMatrixStack.java58 public void glLoadMatrixf(float[] m, int offset) { in glLoadMatrixf() argument
59 System.arraycopy(m, offset, mMatrix, mTop, MATRIX_SIZE); in glLoadMatrixf()
66 public void glLoadMatrixx(int[] m, int offset) { in glLoadMatrixx() argument
68 mMatrix[mTop + i] = fixedToFloat(m[offset + i]); in glLoadMatrixx()
78 public void glMultMatrixf(float[] m, int offset) { in glMultMatrixf() argument
80 Matrix.multiplyMM(mMatrix, mTop, mTemp, 0, m, offset); in glMultMatrixf()
88 public void glMultMatrixx(int[] m, int offset) { in glMultMatrixx() argument
90 mTemp[MATRIX_SIZE + i] = fixedToFloat(m[offset + i]); in glMultMatrixx()
152 public void getMatrix(float[] dest, int offset) { in getMatrix() argument
153 System.arraycopy(mMatrix, mTop, dest, offset, MATRIX_SIZE); in getMatrix()
/development/tools/bugreport/src/com/android/bugreport/stacks/
DNativeStackFrameSnapshot.java26 public int offset; field in NativeStackFrameSnapshot
37 that.offset = this.offset; in clone()
/development/samples/ToyVpn/server/linux/
DToyVpnServer.cpp128 int offset = 0; in build_parameters() local
142 if (offset + length >= size) { in build_parameters()
148 parameters[offset] = delimiter; in build_parameters()
149 memcpy(&parameters[offset + 1], parameter, length); in build_parameters()
150 offset += 1 + length; in build_parameters()
154 memset(&parameters[offset], ' ', size - offset); in build_parameters()
/development/samples/browseable/MidiScope/src/com.example.android.midiscope/
DMidiPrinter.java62 public static String formatBytes(byte[] data, int offset, int count) { in formatBytes() argument
65 sb.append(String.format(" %02X", data[offset + i])); in formatBytes()
70 public static String formatMessage(byte[] data, int offset, int count) { in formatMessage() argument
72 byte statusByte = data[offset++]; in formatMessage()
85 sb.append(data[offset++]); in formatMessage()
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()
DMidiScope.java57 public void onSend(byte[] data, int offset, int count, in onSend() argument
61 mDeviceFramer.send(data, offset, count, timestamp); in onSend()
/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
159 text += String.format("0x%02X, ", data[offset + i]); in logMidiMessage()
DSynthVoice.java54 int offset = i * samplesPerFrame; in mix() local
56 outputBuffer[offset + jf] += output * level; in mix()
DSimpleAudioOutput.java76 public int write(float[] buffer, int offset, int length) { in write() argument
77 return mAudioTrack.write(buffer, offset, length, in write()
/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
159 text += String.format("0x%02X, ", data[offset + i]); in logMidiMessage()
DSynthVoice.java54 int offset = i * samplesPerFrame; in mix() local
56 outputBuffer[offset + jf] += output * level; in mix()
DSimpleAudioOutput.java76 public int write(float[] buffer, int offset, int length) { in write() argument
77 return mAudioTrack.write(buffer, offset, length, in write()
/development/vndk/tools/sourcedr/blueprint/
Dblueprint.py136 def __init__(self, buf, offset=0, path=None): argument
147 self.end = offset
206 def decode_oct(buf, offset, start, end): argument
211 raise LexerError(buf, offset, 'bad octal escape sequence')
215 raise LexerError(buf, offset, 'bad octal escape sequence')
217 raise LexerError(buf, offset, 'bad octal escape sequence')
222 def decode_hex(buf, offset, start, end): argument
227 raise LexerError(buf, offset, 'bad hex escape sequence')
231 raise LexerError(buf, offset, 'bad hex escape sequence')
235 def lex_interpreted_string(cls, buf, offset): argument
[all …]
/development/samples/browseable/CardEmulation/src/com.example.android.cardemulation/
DCardService.java166 int offset = first.length; in ConcatArrays() local
168 System.arraycopy(array, 0, result, offset, array.length); in ConcatArrays()
169 offset += array.length; in ConcatArrays()
/development/samples/TtsEngine/src/com/example/android/ttsengine/
DRobotSpeakTtsService.java281 int offset = 0; in generateOneSecondOfAudio() local
282 while (offset < mAudioBuffer.length) { in generateOneSecondOfAudio()
283 int bytesToWrite = Math.min(maxBufferSize, mAudioBuffer.length - offset); in generateOneSecondOfAudio()
284 cb.audioAvailable(mAudioBuffer, offset, bytesToWrite); in generateOneSecondOfAudio()
285 offset += bytesToWrite; in generateOneSecondOfAudio()

123