Searched defs:buffers (Results 1 - 14 of 14) sorted by relevance

/openjdk7/jdk/test/java/lang/instrument/
H A DBufferClassLoader.java37 NamedBuffer[] buffers)
40 fBuffers = buffers; // maybe should copy
36 BufferClassLoader( ClassLoader parent, NamedBuffer[] buffers) argument
/openjdk7/jdk/test/java/lang/management/BufferPoolMXBean/
H A DBasic.java45 // static fields to ensure buffers aren't GC'ed
46 static List<ByteBuffer> buffers; field in class:Basic
73 // allocate a few direct buffers
75 buffers = new ArrayList<ByteBuffer>(bufferCount);
79 buffers.add( ByteBuffer.allocateDirect(cap) );
/openjdk7/jdk/test/java/lang/ClassLoader/defineClass/
H A DDefineClassByteBuffer.java84 static ByteBuffer[] buffers = new ByteBuffer[MAX_TYPE + 1]; field in class:DefineClassByteBuffer.DummyClassLoader
103 buffers. */
104 buffers[MAPPED_BUFFER] = readClassFile(CLASS_NAME + ".class");
105 byte[] array = new byte[buffers[MAPPED_BUFFER].limit()];
106 buffers[MAPPED_BUFFER].get(array).flip();
108 buffers[DIRECT_BUFFER] = ByteBuffer.allocateDirect(array.length);
109 buffers[DIRECT_BUFFER].put(array).flip();
111 buffers[ARRAY_BUFFER] = ByteBuffer.allocate(array.length);
112 buffers[ARRAY_BUFFER].put(array).flip();
114 buffers[WRAPPED_BUFFE
[all...]
/openjdk7/jdk/test/java/security/SecureClassLoader/
H A DDefineClassByteBuffer.java82 static ByteBuffer[] buffers = new ByteBuffer[MAX_TYPE + 1]; field in class:DefineClassByteBuffer.DummyClassLoader
101 buffers. */
102 buffers[MAPPED_BUFFER] = readClassFile(CLASS_NAME + ".class");
103 byte[] array = new byte[buffers[MAPPED_BUFFER].limit()];
105 buffers[DIRECT_BUFFER] = ByteBuffer.allocateDirect(array.length);
106 buffers[DIRECT_BUFFER].put(array);
108 buffers[ARRAY_BUFFER] = ByteBuffer.allocate(array.length);
109 buffers[ARRAY_BUFFER].put(array);
111 buffers[WRAPPED_BUFFER] = ByteBuffer.wrap(array);
113 buffers[READ_ONLY_ARRAY_BUFFE
[all...]
/openjdk7/jdk/test/sun/misc/
H A DCopyMemory.java77 private static final List<ByteBuffer> buffers = new ArrayList<ByteBuffer>(); field in class:CopyMemory
84 buffers.add(b); // make sure the buffer does not get GCed
/openjdk7/jdk/src/share/classes/com/sun/media/sound/
H A DSoftJitterCorrector.java50 byte[][] buffers; field in class:SoftJitterCorrector.JitterStream
73 return buffers[buffpos % buffers.length];
92 return buffers[buffpos % buffers.length];
100 return buffers[writepos % buffers.length];
107 if ((writepos - readpos) > buffers.length) {
109 newsize = Math.max(buffers.length * 2, newsize);
110 buffers
[all...]
H A DSoftMixingMainMixer.java70 private final SoftAudioBuffer[] buffers; field in class:SoftMixingMainMixer
91 for (int i = 0; i < buffers.length; i++) {
92 buffers[i].clear();
106 openLines[i].processAudioLogic(buffers);
125 buffers = new SoftAudioBuffer[16];
126 for (int i = 0; i < buffers.length; i++) {
127 buffers[i] = new SoftAudioBuffer(buffersize, mixer.getFormat());
145 chorus.setInput(0, buffers[CHANNEL_EFFECT2]);
146 chorus.setOutput(0, buffers[CHANNEL_LEFT]);
148 chorus.setOutput(1, buffers[CHANNEL_RIGH
[all...]
H A DSoftMixingSourceDataLine.java213 protected void processAudioLogic(SoftAudioBuffer[] buffers) { argument
215 float[] left = buffers[SoftMixingMainMixer.CHANNEL_LEFT].array();
216 float[] right = buffers[SoftMixingMainMixer.CHANNEL_RIGHT].array();
217 int bufferlen = buffers[SoftMixingMainMixer.CHANNEL_LEFT].getSize();
249 float[] eff1 = buffers[SoftMixingMainMixer.CHANNEL_EFFECT1]
262 float[] eff2 = buffers[SoftMixingMainMixer.CHANNEL_EFFECT2]
H A DSoftMixingClip.java206 protected void processAudioLogic(SoftAudioBuffer[] buffers) { argument
208 float[] left = buffers[SoftMixingMainMixer.CHANNEL_LEFT].array();
209 float[] right = buffers[SoftMixingMainMixer.CHANNEL_RIGHT].array();
210 int bufferlen = buffers[SoftMixingMainMixer.CHANNEL_LEFT].getSize();
248 float[] eff1 = buffers[SoftMixingMainMixer.CHANNEL_EFFECT1]
261 float[] eff2 = buffers[SoftMixingMainMixer.CHANNEL_EFFECT2]
H A DSoftMixingDataLine.java430 protected abstract void processAudioLogic(SoftAudioBuffer[] buffers); argument
H A DSoftMainMixer.java48 // A private class thats contains a ModelChannelMixer and it's private buffers.
49 // This becomes necessary when we want to have separate delay buffers for each channel mixer.
53 SoftAudioBuffer[] buffers; field in class:SoftMainMixer.SoftChannelMixerContainer
81 private SoftAudioBuffer[] buffers; field in class:SoftMainMixer
449 for (int i = 0; i < buffers.length; i++) {
455 buffers[i].clear();
458 if(!buffers[CHANNEL_DELAY_LEFT].isSilent())
460 buffers[CHANNEL_LEFT].swap(buffers[CHANNEL_DELAY_LEFT]);
462 if(!buffers[CHANNEL_DELAY_RIGH
[all...]
H A DSoftSynthesizer.java245 List<ModelByteBuffer> buffers) {
253 buffers.add(buff);
256 buffers.add(buff);
266 List<ModelByteBuffer> buffers = new ArrayList<ModelByteBuffer>();
268 getBuffers(instrument, buffers);
270 ModelByteBuffer.loadAll(buffers);
1092 // Tell mixer not fill read buffers fully.
244 getBuffers(ModelInstrument instrument, List<ModelByteBuffer> buffers) argument
/openjdk7/jdk/src/share/classes/sun/nio/ch/
H A DUtil.java47 // The number of temp buffers in our pool
50 // Per-thread cache of temporary direct buffers
61 * A simple cache of direct buffers.
64 // the array of buffers
65 private ByteBuffer[] buffers; field in class:Util.BufferCache
67 // the number of buffers in the cache
78 buffers = new ByteBuffer[TEMP_BUF_POOL_SIZE];
89 ByteBuffer[] buffers = this.buffers;
92 ByteBuffer buf = buffers[star
[all...]
/openjdk7/jdk/test/java/nio/channels/
H A DAsyncCloseAndInterrupt.java235 static ByteBuffer[] buffers = new ByteBuffer[] { field in class:AsyncCloseAndInterrupt
241 buffers[0].clear();
242 buffers[1].clear();
278 int n = (int)sbc.read(buffers);
337 int d = (int)gbc.write(buffers);

Completed in 86 milliseconds