/openjdk7/jdk/src/share/classes/com/sun/media/sound/ |
H A D | SoftChannelProxy.java | 31 * channel objects. 37 private MidiChannel channel = null; field in class:SoftChannelProxy 40 return channel; 43 public void setChannel(MidiChannel channel) { argument 44 this.channel = channel; 48 if (channel == null) 50 channel.allNotesOff(); 54 if (channel == null) 56 channel [all...] |
H A D | SoftShortMessage.java | 37 int channel = 0; field in class:SoftShortMessage 40 return channel; 43 public void setMessage(int command, int channel, int data1, int data2) argument 45 this.channel = channel; 46 super.setMessage(command, channel & 0xF, data1, data2);
|
/openjdk7/jdk/test/javax/sound/midi/Gervill/SoftChannel/ |
H A D | ResetAllControllers.java | 95 MidiChannel channel = soft.synth.getChannels()[0]; 99 channel.setPolyPressure(i, 10); 100 channel.setChannelPressure(10); 101 channel.setPitchBend(2192); 103 channel.controlChange(i, 1); 104 channel.resetAllControllers(); 109 assertEquals(channel.getPolyPressure(i), 0); 110 assertEquals(channel.getChannelPressure(), 0); 111 assertEquals(channel.getPitchBend(),8192); 114 assertEquals(channel [all...] |
H A D | ChannelPressure.java | 50 MidiChannel channel = soft.synth.getChannels()[0]; 52 channel.setChannelPressure(10); 53 assertEquals(channel.getChannelPressure(), 10); 54 channel.setChannelPressure(90); 55 assertEquals(channel.getChannelPressure(), 90);
|
H A D | Mono.java | 50 MidiChannel channel = soft.synth.getChannels()[0]; 52 channel.setMono(true); 53 assertEquals(channel.getMono(), true); 54 channel.setMono(false); 55 assertEquals(channel.getMono(), false);
|
H A D | Mute.java | 50 MidiChannel channel = soft.synth.getChannels()[0]; 52 channel.setMute(true); 53 assertEquals(channel.getMute(), true); 54 channel.setMute(false); 55 assertEquals(channel.getMute(), false);
|
H A D | Omni.java | 50 MidiChannel channel = soft.synth.getChannels()[0]; 52 channel.setOmni(true); 55 assertEquals(channel.getOmni(), false); 56 channel.setOmni(false); 57 assertEquals(channel.getOmni(), false);
|
H A D | PitchBend.java | 50 MidiChannel channel = soft.synth.getChannels()[0]; 52 channel.setPitchBend(10); 53 assertEquals(channel.getPitchBend(), 10); 54 channel.setPitchBend(9000); 55 assertEquals(channel.getPitchBend(), 9000);
|
H A D | ProgramChange.java | 50 MidiChannel channel = soft.synth.getChannels()[0]; 52 channel.programChange(36); 53 assertEquals(channel.getProgram(), 36); 54 channel.programChange(48); 55 assertEquals(channel.getProgram(), 48);
|
H A D | Solo.java | 50 MidiChannel channel = soft.synth.getChannels()[0]; 52 channel.setSolo(true); 53 assertEquals(channel.getSolo(), true); 54 channel.setSolo(false); 55 assertEquals(channel.getSolo(), false);
|
H A D | Controller.java | 50 MidiChannel channel = soft.synth.getChannels()[0]; 54 channel.controlChange(i, 10); 55 assertEquals(channel.getController(i), 10); 56 channel.controlChange(i, 100); 57 assertEquals(channel.getController(i), 100);
|
H A D | PolyPressure.java | 50 MidiChannel channel = soft.synth.getChannels()[0]; 53 channel.setPolyPressure(i, 10); 54 assertEquals(channel.getPolyPressure(i),10); 55 channel.setPolyPressure(i, 100); 56 assertEquals(channel.getPolyPressure(i),100);
|
H A D | LocalControl.java | 50 MidiChannel channel = soft.synth.getChannels()[0]; 55 assertEquals(channel.localControl(true), false); 56 assertEquals(channel.localControl(false), false);
|
/openjdk7/jdk/test/javax/sound/midi/Gervill/SoftReceiver/ |
H A D | Send_ResetAllControllers.java | 95 MidiChannel channel = soft.synth.getChannels()[0]; 100 channel.setPolyPressure(i, 10); 101 channel.setChannelPressure(10); 102 channel.setPitchBend(2192); 104 channel.controlChange(i, 1); 113 assertEquals(channel.getPolyPressure(i), 0); 114 assertEquals(channel.getChannelPressure(), 0); 115 assertEquals(channel.getPitchBend(),8192); 118 assertEquals(channel.getController(i), 0); 119 assertEquals(channel [all...] |
/openjdk7/jdk/test/java/nio/channels/FileChannel/ |
H A D | ClosedChannelTransfer.java | 37 FileChannel channel = (new RandomAccessFile("aaa","rw")).getChannel(); 38 test1(channel); 39 test2(channel); 40 channel.close(); 44 static void test1(FileChannel channel) throws Exception { argument 51 channel.transferFrom(rbc, 0, 2); 58 static void test2(FileChannel channel) throws Exception { argument 63 channel.transferTo(0, 2, wbc);
|
H A D | TransferToNonWritable.java | 40 FileChannel channel = fis.getChannel(); 42 channel.transferTo((long)0, (long)2, channel); 47 channel.close();
|
/openjdk7/jdk/src/share/classes/javax/sound/midi/ |
H A D | VoiceStatus.java | 74 * provides fields that reveal the voice's current MIDI channel, bank and 99 * The MIDI channel on which this voice is playing. The value is a 100 * zero-based channel number if the voice is active, or 106 public int channel = 0; field in class:VoiceStatus
|
/openjdk7/jdk/src/share/classes/java/nio/channels/ |
H A D | FileLock.java | 43 * channel that was used to acquire it, or by the termination of the Java 63 * <p> A file-lock object records the file channel upon whose file the lock is 100 * <p> On some systems, closing a channel releases all locks held by the Java 102 * acquired via that channel or via another channel open on the same file. It 103 * is strongly recommended that, within a program, a unique channel be used to 121 private final Channel channel; field in class:FileLock 129 * @param channel 130 * The file channel upon whose file this lock is held 147 protected FileLock(FileChannel channel, argument 185 FileLock(AsynchronousFileChannel channel, long position, long size, boolean shared) argument 209 public final FileChannel channel() { method in class:FileLock [all...] |
/openjdk7/jdk/src/share/classes/sun/nio/ch/ |
H A D | SelectionKeyImpl.java | 41 final SelChImpl channel; // package-private field in class:SelectionKeyImpl 51 channel = ch; 55 public SelectableChannel channel() { method in class:SelectionKeyImpl 56 return (SelectableChannel)channel; 103 if ((ops & ~channel().validOps()) != 0) 105 channel.translateAndSetInterestOps(ops, this);
|
/openjdk7/jdk/test/java/nio/channels/ |
H A D | ConfigureBlocking.java | 40 SelectableChannel channel = channels[i]; 41 channel.close(); 43 channel.configureBlocking(true);
|
/openjdk7/jdk/test/com/sun/nio/sctp/SctpChannel/ |
H A D | Bind.java | 77 SctpChannel channel = null; 79 channel = SctpChannel.open(); 81 /* TEST 1: empty set if channel is not bound */ 82 check(channel.getAllLocalAddresses().isEmpty(), 83 "getAllLocalAddresses returned non empty set for unbound channel"); 85 /* TEST 2: null to bind the channel to an automatically assigned 87 channel.bind(null); 89 /* TEST 3: non empty set if the channel is bound */ 90 check(!channel.getAllLocalAddresses().isEmpty(), 91 "getAllLocalAddresses returned empty set for bound channel"); 270 boundAddress(SctpChannel channel, InetAddress addr) argument 279 connectChannel(SctpChannel channel) argument [all...] |
H A D | Connect.java | 63 SctpChannel channel = null; 67 /* Create a server channel to connect to */ 74 channel = SctpChannel.open(); 76 /* TEST 0.5 Verify default values for new/unconnected channel */ 77 check(channel.getRemoteAddresses().isEmpty(), 78 "non empty set for unconnected channel"); 79 check(channel.association() == null, 80 "non-null association for unconnected channel"); 81 check(!channel.isConnectionPending(), 85 channel [all...] |
/openjdk7/jdk/test/java/io/RandomAccessFile/ |
H A D | Close.java | 37 FileChannel channel = raf.getChannel(); 39 if (channel.isOpen()) {
|
/openjdk7/jdk/test/java/nio/channels/AsynchronousSocketChannel/ |
H A D | StressLoopback.java | 84 * Writes bytes to a channel until "done". When done the channel is closed. 87 private final AsynchronousByteChannel channel; field in class:StressLoopback.Source 92 Source(AsynchronousByteChannel channel) { argument 93 this.channel = channel; 102 channel.write(sentBuffer, (Void)null, new CompletionHandler<Integer,Void> () { 106 closeUnchecked(channel); 110 channel.write(sentBuffer, (Void)null, this); 115 closeUnchecked(channel); 131 private final AsynchronousByteChannel channel; field in class:StressLoopback.Sink 135 Sink(AsynchronousByteChannel channel) argument [all...] |
/openjdk7/jdk/test/sun/security/smartcardio/ |
H A D | TestConnectAgain.java | 44 CardChannel channel = card.getBasicChannel(); 45 transmitTestCommand(channel); 60 transmitTestCommand(channel); 70 transmitTestCommand(channel); 82 transmitTestCommand(channel); 88 channel = card.getBasicChannel(); 89 transmitTestCommand(channel);
|