Searched refs:pad (Results 1 - 25 of 42) sorted by relevance

12

/openjdk7/jdk/src/share/classes/sun/tools/jstat/
H A DAlignment.java56 int pad = width - length;
57 int pad2 = pad / 2;
58 int padr = pad % 2;
60 // only 0 or 1 character to pad
63 // pad on both sides
79 int pad = width - length;
80 return s+blanks.substring(0, pad);
93 int pad = width - length;
94 return blanks.substring(0, pad) + s;
/openjdk7/jdk/test/java/lang/Float/
H A DParseFloat.java157 String pad = " \t\n\r\f\u0001\u000b\u001f";
160 paddedBadStrings[i] = pad + badStrings[i] + pad;
164 paddedGoodStrings[i] = pad + goodStrings[i] + pad;
/openjdk7/langtools/src/share/classes/com/sun/tools/classfile/
H A DInstruction.java221 int pad = align(pc + 1) - pc;
222 int low = getInt(pad + 4);
223 int high = getInt(pad + 8);
224 return pad + 12 + 4 * (high - low + 1);
227 int pad = align(pc + 1) - pc;
228 int npairs = getInt(pad + 4);
229 return pad + 8 + 8 * npairs;
277 int pad = align(pc + 1) - pc;
278 int default_ = getInt(pad);
279 int low = getInt(pad
[all...]
/openjdk7/jdk/src/share/classes/com/sun/media/sound/
H A DSoftAbstractResampler.java63 int pad; field in class:SoftAbstractResampler.ModelAbstractResamplerStream
71 pad = getPadding();
128 ix[0] = pad;
131 ix[0] = sector_size + pad;
153 if (ix[0] < pad) {
169 if (ix[0] >= sector_size + pad) {
176 if (ix[0] >= sector_size * 4 + pad) {
177 int skips = (int)((ix[0] - sector_size * 4 + pad) / sector_size);
184 while (ix[0] >= sector_size + pad) {
277 float ixend = sector_size + pad;
[all...]
H A DSoftMixingDataLine.java80 private final int pad; field in class:SoftMixingDataLine.AudioFloatInputStreamResampler
125 pad = resampler.getPadding();
126 pad2 = pad * 2;
129 ibuffer_index = buffer_len + pad;
223 if (ibuffer_index >= (ibuffer_len + pad))
225 in_end = ibuffer_len + pad;
H A DAudioFloatFormatConverter.java253 private final int pad; field in class:AudioFloatFormatConverter.AudioFloatInputStreamResampler
298 pad = resampler.getPadding();
299 pad2 = pad * 2;
302 ibuffer_index = buffer_len + pad;
397 if (ibuffer_index >= (ibuffer_len + pad))
399 in_end = ibuffer_len + pad;
/openjdk7/jdk/test/java/rmi/reliability/benchmark/bench/
H A DTextReporter.java73 p.println(pad('-', title.length()));
85 p.println(pad('-', INDEX_WIDTH + NAME_WIDTH + TIME_WIDTH +
104 p.println(pad('-', INDEX_WIDTH + NAME_WIDTH + TIME_WIDTH +
129 private static String pad(char c, int len) { method in class:TextReporter
/openjdk7/jdk/test/java/lang/Double/
H A DParseDouble.java434 String pad = " \t\n\r\f\u0001\u000b\u001f";
437 paddedBadStrings[i] = pad + badStrings[i] + pad;
441 paddedGoodStrings[i] = pad + goodStrings[i] + pad;
/openjdk7/jdk/src/share/classes/sun/security/krb5/internal/crypto/
H A DDesCbcEType.java95 byte pad;
99 *of pad bytes. For example, if new_size = 10, blockSize is 8, we should pad 2 bytes,
101 *If plaintext data is a multiple of blocksize, we pad a 8 bytes of 8.
105 pad = (byte)8;
109 pad = (byte)(blockSize() - new_size % blockSize());
112 new_data[i] = pad;
H A DDes.java257 // pad data
258 byte[] passwdBytes = pad(cbytes);
348 static byte[] pad(byte[] data) { method in class:Des
/openjdk7/hotspot/src/cpu/sparc/vm/
H A Druntime_sparc.cpp72 int pad = VerifyThread ? 256 : 0;// Extra slop space for more verify code local
77 CodeBuffer buffer("exception_blob", 600+pad, 512);
/openjdk7/jdk/src/solaris/native/sun/awt/
H A Drobot_common.c61 colors[i].pad = 0;
94 colors[i].pad = 0;
/openjdk7/jdk/src/share/classes/com/sun/java/swing/plaf/motif/
H A DMotifSplitPaneDivider.java61 protected static final int pad = 6; field in class:MotifSplitPaneDivider
82 setDividerSize(hThumbWidth + pad);
101 if (newSize < pad + minimumThumbSize + borderSize) {
102 setDividerSize(pad + minimumThumbSize + borderSize);
104 vThumbHeight = hThumbWidth = newSize - pad - borderSize;
/openjdk7/jdk/src/share/classes/com/sun/tools/example/debug/gui/
H A DSourceModel.java244 int pad = (8 - (col % 8));
245 for (int j = 0; j < pad; j++) {
248 col += pad;
/openjdk7/jdk/src/share/classes/sun/security/ssl/
H A DCipherBox.java536 byte pad;
543 pad = (byte) (newlen - len);
546 throw new IllegalArgumentException("no space to pad buffer");
552 for (i = 0, offset += len; i < pad; i++) {
553 buf [offset++] = (byte) (pad - 1);
570 byte pad;
577 pad = (byte) (newlen - len);
587 for (i = 0, offset += len; i < pad; i++) {
588 bb.put(offset++, (byte) (pad - 1));
605 byte[] buf, int offset, int len, byte pad) {
604 checkPadding( byte[] buf, int offset, int len, byte pad) argument
634 checkPadding(ByteBuffer bb, byte pad) argument
[all...]
/openjdk7/jdk/src/share/classes/javax/crypto/
H A DCipher.java346 final String pad; field in class:Cipher.Transform
347 Transform(String alg, String suffix, String mode, String pad) { argument
351 this.pad = pad;
359 if (pad != null) {
360 spi.engineSetPadding(pad);
381 return supports(s, ATTR_PAD, pad);
416 String pad = parts[2];
420 if ((pad != null) && (pad
[all...]
/openjdk7/hotspot/src/share/vm/asm/
H A Dassembler.cpp110 int pad = -(intptr_t)end & (required_align-1); local
111 if (cs->maybe_expand_to_ensure_remaining(pad + required_space)) {
115 if (pad > 0) {
116 while (--pad >= 0) { *end++ = 0; }
/openjdk7/jdk/src/share/classes/javax/swing/plaf/synth/
H A DSynthSliderUI.java388 int pad = 0;
415 // Calculate the pad necessary for the labels at the first
417 pad = getPadForLabel(firstLblIdx);
418 pad = Math.max(pad, getPadForLabel(lastLblIdx));
424 (insetCache.left + pad);
426 labelRect.width = (contentRect.width - (pad * 2));
512 * Calculates the pad for the label at the specified index.
514 * @param i index of the label to calculate pad for.
518 int pad
[all...]
/openjdk7/jdk/src/share/classes/javax/imageio/stream/
H A DMemoryCache.java181 private void pad(long pos) throws IOException { method in class:MemoryCache
223 pad(lastPos);
259 pad(pos);
/openjdk7/hotspot/src/share/vm/runtime/
H A Drelocator.cpp222 int pad = get_orig_switch_pad(bci, is_opcode_lookupswitch(bc)); local
223 if (pad == -1) {
229 int lo = int_at(bci + 1 + pad + 4 * 1);
230 int hi = int_at(bci + 1 + pad + 4 * 2);
232 return 1 + pad + 4*(3 + n);
237 int npairs = int_at(bci + 1 + pad + 4 * 1);
238 return 1 + pad + 4*(2 + 2*npairs);
766 memset(addr_at(bci + 1), 0, new_pad); // pad must be 0
/openjdk7/jdk/src/share/native/sun/awt/image/jpeg/
H A Djquant1.c341 int i,j,k, nci, blksize, val, pad; local
343 /* For ordered dither, we pad the color index tables by MAXJSAMPLE in
349 pad = MAXJSAMPLE*2;
352 pad = 0;
358 (JDIMENSION) (MAXJSAMPLE+1 + pad),
370 if (pad)
385 if (pad)
/openjdk7/jdk/src/share/classes/sun/security/rsa/
H A DRSAPadding.java226 public byte[] pad(byte[] data, int ofs, int len) method in class:RSAPadding
228 return pad(RSACore.convert(data, ofs, len));
234 public byte[] pad(byte[] data) throws BadPaddingException { method in class:RSAPadding
/openjdk7/jdk/src/share/classes/com/sun/security/sasl/digest/
H A DDigestMD5Base.java605 StringBuffer pad = new StringBuffer();
609 pad.append("0");
613 return pad.toString() + str;
1333 int pad = bs - ((len + 10) % bs); // add 10 for HMAC[0..9]
1334 padding = new byte[pad];
1335 for (int i=0; i < pad; i++) {
1336 padding[i] = (byte)pad;
1344 /* {msg, pad, HMAC(Ki, {SeqNum, msg}[0..9])} */
1351 "DIGEST31:{msg, pad, KicMAC}: ", toBeEncrypted);
1354 /* CIPHER(Kc, {msg, pad, HMA
[all...]
/openjdk7/jdk/test/tools/pack200/pack200-verifier/src/xmlkit/
H A DInstructionAssembler.java326 for (int pad = switchBase(pc) - (pc + 1); pad > 0; pad--) {
/openjdk7/jdk/src/share/classes/com/sun/crypto/provider/
H A DRSACipher.java344 data = padding.pad(buffer, 0, bufOfs);
351 data = padding.pad(buffer, 0, bufOfs);

Completed in 95 milliseconds

12