/developers/build/prebuilts/gradle/MidiSynth/Application/src/main/java/com/example/android/common/midi/ |
D | MidiFramer.java | 49 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 …]
|
D | MidiEventScheduler.java | 40 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()
|
D | MidiConstants.java | 89 public static boolean isAllActiveSensing(byte[] msg, int offset, in isAllActiveSensing() argument 94 byte b = msg[offset + i]; in isAllActiveSensing()
|
D | MidiDispatcher.java | 78 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()
|
/developers/build/prebuilts/gradle/MidiScope/Application/src/main/java/com/example/android/common/midi/ |
D | MidiFramer.java | 49 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 …]
|
D | MidiEventScheduler.java | 40 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()
|
D | MidiConstants.java | 89 public static boolean isAllActiveSensing(byte[] msg, int offset, in isAllActiveSensing() argument 94 byte b = msg[offset + i]; in isAllActiveSensing()
|
/developers/samples/android/common/src/java/com/example/android/common/midi/ |
D | MidiFramer.java | 49 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 …]
|
D | MidiEventScheduler.java | 40 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()
|
D | MidiConstants.java | 89 public static boolean isAllActiveSensing(byte[] msg, int offset, in isAllActiveSensing() argument 94 byte b = msg[offset + i]; in isAllActiveSensing()
|
/developers/build/prebuilts/androidtv/visual-game-controller/src/com/example/android/visualgamecontroller/ |
D | ControllerView.java | 343 int offset = getWidth() / 2 - getHeight() / 2; in onDraw() local 352 canvas.drawBitmap(mGradientBitmap, offset + mLeftGradient[0] in onDraw() 357 canvas.drawBitmap(mGradientBitmap, offset + mRightGradient[0] in onDraw() 364 canvas.drawBitmap(mRightPaddleBitmap, offset + mRightPaddle[0] in onDraw() 367 canvas.drawBitmap(mRightPaddleBitmap, offset + mRightPaddlePressed[0] in onDraw() 371 canvas.drawBitmap(mLeftPaddleBitmap, offset + mLeftPaddle[0] in onDraw() 375 canvas.drawBitmap(mLeftPaddleBitmap, offset + mLeftPaddlePressed[0] in onDraw() 380 canvas.drawBitmap(mControllerBitmap, offset, 0, mImagePaint); in onDraw() 383 mAxisLeftX = offset + mLeftAxis[0] * getHeight(); in onDraw() 385 mAxisRightX = offset + mRightAxis[0] * getHeight(); in onDraw() [all …]
|
/developers/build/prebuilts/gradle/MidiScope/Application/src/main/java/com/example/android/midiscope/ |
D | MidiPrinter.java | 62 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) { in formatMessage() argument 72 byte statusByte = data[offset++]; in formatMessage() 85 sb.append(data[offset++]); in formatMessage()
|
D | LoggingReceiver.java | 45 public void onSend(byte[] data, int offset, int count, long timestamp) in onSend() argument 55 sb.append(MidiPrinter.formatBytes(data, offset, count)); in onSend() 57 sb.append(MidiPrinter.formatMessage(data, offset)); in onSend()
|
/developers/samples/android/media/MidiScope/Application/src/main/java/com/example/android/midiscope/ |
D | MidiPrinter.java | 62 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) { in formatMessage() argument 72 byte statusByte = data[offset++]; in formatMessage() 85 sb.append(data[offset++]); in formatMessage()
|
D | LoggingReceiver.java | 45 public void onSend(byte[] data, int offset, int count, long timestamp) in onSend() argument 55 sb.append(MidiPrinter.formatBytes(data, offset, count)); in onSend() 57 sb.append(MidiPrinter.formatMessage(data, offset)); in onSend()
|
/developers/build/prebuilts/gradle/MidiScope/Application/src/main/java/com/example/android/common/midi/synth/ |
D | SynthEngine.java | 70 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()
|
D | SynthVoice.java | 54 int offset = i * samplesPerFrame; in mix() local 56 outputBuffer[offset + jf] += output * level; in mix()
|
/developers/samples/android/common/src/java/com/example/android/common/midi/synth/ |
D | SynthEngine.java | 70 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()
|
D | SynthVoice.java | 54 int offset = i * samplesPerFrame; in mix() local 56 outputBuffer[offset + jf] += output * level; in mix()
|
/developers/build/prebuilts/gradle/MidiSynth/Application/src/main/java/com/example/android/common/midi/synth/ |
D | SynthEngine.java | 70 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()
|
D | SynthVoice.java | 54 int offset = i * samplesPerFrame; in mix() local 56 outputBuffer[offset + jf] += output * level; in mix()
|
/developers/build/prebuilts/gradle/ContentProviderPaging/kotlinApp/app/src/main/kotlin/com.example.android.contentproviderpaging/ |
D | ImageProvider.kt | 66 val offset = queryArgs.getInt(ContentResolver.QUERY_ARG_OFFSET, 0) in query() constant 69 uri + ", offset: " + offset + ", limit: " + limit) in query() 70 if (offset < 0) { in query() 77 if (offset >= files.size) { in query() 81 val maxIndex = Math.min(offset + limit, files.size) in query() 82 for (i in offset..maxIndex) { in query()
|
/developers/samples/android/content/documentsUi/ContentProviderPaging/kotlinApp/app/src/main/kotlin/com.example.android.contentproviderpaging/ |
D | ImageProvider.kt | 66 val offset = queryArgs.getInt(ContentResolver.QUERY_ARG_OFFSET, 0) in query() constant 69 uri + ", offset: " + offset + ", limit: " + limit) in query() 70 if (offset < 0) { in query() 77 if (offset >= files.size) { in query() 81 val maxIndex = Math.min(offset + limit, files.size) in query() 82 for (i in offset..maxIndex) { in query()
|
/developers/samples/android/connectivity/nfc/CardEmulation/Application/src/main/java/com/example/android/cardemulation/ |
D | CardService.java | 166 int offset = first.length; in ConcatArrays() local 168 System.arraycopy(array, 0, result, offset, array.length); in ConcatArrays() 169 offset += array.length; in ConcatArrays()
|
/developers/build/prebuilts/gradle/CardEmulation/Application/src/main/java/com/example/android/cardemulation/ |
D | CardService.java | 166 int offset = first.length; in ConcatArrays() local 168 System.arraycopy(array, 0, result, offset, array.length); in ConcatArrays() 169 offset += array.length; in ConcatArrays()
|