Searched refs:length (Results 701 - 725 of 6515) sorted by relevance

<<21222324252627282930>>

/openjdk7/jdk/src/share/classes/com/sun/jmx/snmp/IPAcl/
H A DSimpleNode.java70 } else if (i >= children.length) {
72 System.arraycopy(children, 0, c, 0, children.length);
83 return (children == null) ? 0 : children.length;
95 for (int i = 0; i < children.length; ++i) {
108 for (int i = 0; i < children.length; ++i) {
122 for (int i = 0; i < children.length; ++i) {
147 for (int i = 0; i < children.length; ++i) {
/openjdk7/jdk/src/share/classes/com/sun/media/sound/
H A DDirectAudioDeviceProvider.java81 if (infos == null || infos.length != numDevices) {
88 for (int i = 0; i < infos.length; i++) {
97 Mixer.Info[] localArray = new Mixer.Info[infos.length];
98 System.arraycopy(infos, 0, localArray, 0, infos.length);
109 for (int i = 0; i < infos.length; i++) {
111 if (mixer.getSourceLineInfo().length > 0) {
118 for (int i = 0; i < infos.length; i++) {
H A DMidiOutDevice.java107 final int length = message.getLength();
109 if (length <= 3 && status != 0xF0 && status != 0xF7) {
123 if (length>0) {
125 if (length>1) {
128 because it's length is only 1. So if we see
135 if (length>2) {
149 final int dataLength = Math.min(length, data.length);
/openjdk7/jdk/src/share/classes/com/sun/tools/jdi/
H A DPacket.java54 int len = data.length + 11;
72 if (data.length > 0) {
73 System.arraycopy(data, 0, b, 11, data.length);
82 if (b.length < 11) {
91 if (len != b.length) {
92 throw new IOException("length size mis-match");
114 p.data = new byte[b.length - 11];
115 System.arraycopy(b, 11, p.data, 0, p.data.length);
/openjdk7/hotspot/test/compiler/8010927/
H A DTest8010927.java122 for (int i = 0; i < cache.length; ++i) {
124 System.arraycopy(masterA, 0, o, 0, masterA.length);
132 for (int i = 0; i < cache.length; ++i) {
133 System.arraycopy(masterA, 0, cache[i], 0, masterA.length);
137 for (int i = 0; i < cache.length; ++i) {
138 System.arraycopy(masterB, 0, cache[i], 0, masterB.length);
144 for (int i = 0; i < cache.length; ++i) {
/openjdk7/jaxws/src/share/jaxws_classes/com/sun/xml/internal/rngom/parse/compact/
H A DParseException.java139 for (int i = 0; i < expectedTokenSequences.length; i++) {
140 if (maxSize < expectedTokenSequences[i].length) {
141 maxSize = expectedTokenSequences[i].length;
143 for (int j = 0; j < expectedTokenSequences[i].length; j++) {
146 if (expectedTokenSequences[i][expectedTokenSequences[i].length - 1] != 0) {
167 if (expectedTokenSequences.length == 1) {
189 for (int i = 0; i < str.length(); i++) {
221 retval.append("\\u" + s.substring(s.length() - 4, s.length()));
/openjdk7/jdk/test/java/lang/Runtime/exec/
H A DExecCommand.java45 int length = (str == null)
47 : str.length();
49 if (length > 1
51 && str.charAt(length - 1) == '\"')
53 return str.substring(1, length - 1);
154 for (int i = 0; i < doCmdCopy.length; ++i) {
181 for (int i = 0; i < TEST_RTE_ARG.length; ++i) {
/openjdk7/jdk/src/share/classes/sun/security/krb5/internal/crypto/dk/
H A DArcFourCrypto.java54 public ArcFourCrypto(int length) { argument
55 keyLength = length;
79 if (opaque != null && opaque.length > 0) {
113 IvParameterSpec encIv = new IvParameterSpec(ivec, 0, ivec.length);
158 byte[] new_ss = new byte[ss.length+1];
159 System.arraycopy(ss, 0, new_ss, 0, ss.length);
188 traceOutput("hmac", hmac, 0, hmac.length);
190 if (hmac.length == getChecksumLength()) {
192 } else if (hmac.length > getChecksumLength()) {
194 System.arraycopy(hmac, 0, buf, 0, buf.length);
[all...]
/openjdk7/jdk/src/share/classes/sun/security/krb5/internal/ktab/
H A DKeyTabInputStream.java70 if (index < 0) { //in native implementation, when one of the entries is deleted, the entry length turns to be negative, and
120 byte[] readKey(int length) throws IOException { argument
121 byte[] bytes = new byte[length];
122 read(bytes, 0, length);
133 int length = read(2); //length of the realm name or service name
135 byte[] bytes = new byte[length];
136 read(bytes, 0, length);
137 index -= length;
/openjdk7/jdk/src/share/classes/sun/security/pkcs11/
H A DP11SecureRandom.java123 if ((bytes == null) || (bytes.length == 0)) {
126 if (bytes.length <= IBUFFER_SIZE) {
129 while (ofs < bytes.length) {
139 while ((ofs < bytes.length) && (ibuffered > 0)) {
166 int len = b.length;
170 buffered = mixBuffer.length;
172 b[ofs++] ^= mixBuffer[mixBuffer.length - buffered];
/openjdk7/jdk/src/share/classes/sun/security/provider/
H A DSecureRandom.java139 for (int i = 0; i < state.length; i++)
152 for (int i = 0; i < state.length; i++) {
211 todo = (result.length - index) < (DIGEST_SIZE - r) ?
212 (result.length - index) : (DIGEST_SIZE - r);
223 while (index < result.length) {
230 todo = (result.length - index) > DIGEST_SIZE ?
231 DIGEST_SIZE : result.length - index;
/openjdk7/jdk/test/java/rmi/reliability/benchmark/bench/serial/
H A DProxyClassDesc.java91 new ObjectStreamClass[a.length * b.length * c.length];
93 for (int i = 0; i < a.length; i++) {
95 for (int j = 0; j < b.length; j++) {
97 for (int k = 0; k < c.length; k++) {
114 int ndescs = descs.length;
/openjdk7/jdk/test/java/text/Bidi/
H A DBidiEmbeddingTest.java43 if (args.length > 0) {
58 int limit = start + target.length();
79 byte[] embs = new byte[str.length() + 3];
84 Bidi bidi2 = new Bidi(str.toCharArray(), 0, embs, 1, str.length(), Bidi.DIRECTION_DEFAULT_LEFT_TO_RIGHT);
105 int length = str.length();
107 int limit = start + target.length();
/openjdk7/jdk/test/sun/net/www/protocol/jar/
H A DB4957695.java67 int length = fin.available();
68 byte[] b = new byte[length-10];
69 fin.read(b, 0, length-10);
72 // Note: The client expects length bytes.
73 ow.write("Content-Length: " + length + "\r\n");
77 // Note: The (buggy) server only sends length-10 bytes.
128 if (list1.length != list2.length) {
131 for (int i=0; i<list1.length; i++) {
/openjdk7/jdk/src/share/classes/sun/reflect/generics/reflectiveObjects/
H A DWildcardTypeImpl.java126 Type[] ts = new Type[fts.length];
128 for ( int j = 0; j < fts.length; j++) {
144 * In this case, a zero length array is returned.
168 Type[] ts = new Type[fts.length];
170 for ( int j = 0; j < fts.length; j++) {
187 if (lowerBounds.length > 0)
191 if (upperBounds.length > 0 && !upperBounds[0].equals(Object.class) ) {
198 assert bounds.length > 0;
/openjdk7/jdk/src/share/demo/nio/zipfs/src/com/sun/nio/zipfs/
H A DZipPath.java90 int count = offsets.length;
96 int len = path.length - lastOffset;
105 int count = offsets.length;
119 return offsets.length;
125 if (index < 0 || index >= offsets.length)
129 if (index == (offsets.length-1))
130 len = path.length - begin;
143 beginIndex >= offsets.length ||
144 endIndex > offsets.length ||
148 // starting offset and length
[all...]
/openjdk7/jdk/src/macosx/native/sun/awt/
H A DCTextPipe.m98 // if we have a zero length string we can just return NULL for the string
107 *charCount = ctps->length;
134 (const QuartzSDOps *qsdo, const AWTStrike *strike, const BOOL useSubstituion, const int uniChars[], const CGGlyph glyphs[], CGSize advances[], const jint g_gvTXIndicesAsInts[], const jdouble g_gvTransformsAsDoubles[], const CFIndex length)
152 for (i = 0; i < length; i++)
229 void JavaCT_DrawTextUsingQSD(JNIEnv *env, const QuartzSDOps *qsdo, const AWTStrike *strike, const jchar *chars, const jsize length)
247 NSString *string = [NSString stringWithCharacters:chars length:length];
265 CFRange range = {0, length};
281 (JNIEnv *env, QuartzSDOps *qsdo, const AWTStrike *strike, const jchar *chars, const jsize length, const jdouble x, const jdouble y)
283 if (length
[all...]
/openjdk7/jaxp/src/com/sun/org/apache/bcel/internal/util/
H A DMethodHTML.java89 for(int i=0; i < fields.length; i++)
96 for(int i=0; i < methods.length; i++)
124 for(int i=0; i < attributes.length; i++)
127 for(int i=0; i < attributes.length; i++) {
168 for(int i=0; i < args.length; i++) {
170 if(i < args.length - 1)
177 for(int i=0; i < attributes.length; i++) {
186 for(int j=0; j < exceptions.length; j++) {
189 if(j < exceptions.length - 1)
196 for(int j=0; j < c_a.length;
[all...]
/openjdk7/jaxp/src/com/sun/org/apache/xerces/internal/impl/dtd/
H A DBalancedDTDGrammar.java194 final int length = fGroupIndexStackSizes[fDepth];
195 final int group = length > 0 ? addContentSpecNodes(0, length - 1) : addUniqueLeafNode(null);
252 else if (fDepth == fOpStack.length) {
274 int length = fGroupIndexStackSizes[fDepth]++;
279 else if (length == currentGroup.length) {
280 int [] newGroup = new int[currentGroup.length * 2];
281 System.arraycopy(currentGroup, 0, newGroup, 0, currentGroup.length);
285 currentGroup[length]
[all...]
/openjdk7/jaxp/src/com/sun/org/apache/xerces/internal/impl/xpath/regex/
H A DRangeToken.java65 pos = this.ranges.length;
101 //System.err.println("Do sorting: "+this.ranges.length);
106 for (int i = this.ranges.length-4; i >= 0; i -= 2) {
128 if (this.ranges == null || this.ranges.length <= 2)
135 while (target < this.ranges.length) {
142 while (target < this.ranges.length) {
190 if (base != this.ranges.length) {
207 this.ranges = new int[tok.ranges.length];
208 System.arraycopy(tok.ranges, 0, this.ranges, 0, tok.ranges.length);
211 int[] result = new int[this.ranges.length
[all...]
/openjdk7/corba/src/share/classes/com/sun/tools/corba/se/idl/
H A DArguments.java81 if (args.length > 0)
115 for (i = 0; i < args.length - 1; ++i) {
166 if (i + 1 >= args.length)
179 while (i < (args.length - 1) &&
191 throw new InvalidArgument (args[args.length - 1]);
197 if (i == args.length - 1) {
236 int end = -separator.length (); // so the first pass paths == original paths
239 paths = paths.substring (end + separator.length ());
242 end = paths.length ();
245 while (end != paths.length ());
[all...]
H A DComment.java122 int iTextEnd = text.length () - 1;
129 iLineStart = iLineEnd + _eol.length ();
144 String text = _text.substring (3, (_text.length () - 2)).trim () + _eol;
149 int iTextEnd = text.length () - 1; // index of last text character
157 stream.println (indent + " * " + line.substring (1, line.length ()).trim ());
160 iLineStart = iLineEnd + _eol.length ();
170 String text = _text.substring (2, (_text.length () - 2)).trim () + _eol;
175 int iTextEnd = text.length () - 1; // index of last text character
183 stream.println (indent + " * " + line.substring (1, line.length ()).trim ());
186 iLineStart = iLineEnd + _eol.length ();
[all...]
/openjdk7/jaxws/src/share/jaxws_classes/com/sun/xml/internal/bind/v2/runtime/output/
H A DSAXOutput.java89 if(p.length()==0)
108 if(uri.length()==0 && ns.getBase()==1)
129 if(uri.length()==0 && ns.getBase()==1)
139 if(p.length()==0)
147 int vlen = value.length();
148 if(buf.length<=vlen) {
149 buf = new char[Math.max(buf.length*2,vlen+1)];
161 int vlen = value.length();
162 if(buf.length<=vlen) {
163 buf = new char[Math.max(buf.length*
[all...]
/openjdk7/jaxws/src/share/jaxws_classes/com/sun/xml/internal/fastinfoset/algorithm/
H A DShortEncodingAlgorithm.java62 public final Object decodeFromBytes(byte[] b, int start, int length) throws EncodingAlgorithmException { argument
63 short[] data = new short[getPrimtiveLengthFromOctetLength(length)];
64 decodeFromBytesToShortArray(data, 0, b, start, length);
85 public final Object convertFromCharacters(char[] ch, int start, int length) { argument
86 final CharBuffer cb = CharBuffer.wrap(ch, start, length);
112 public final void decodeFromBytesToShortArray(short[] sdata, int istart, byte[] b, int start, int length) { argument
113 final int size = length / SHORT_SIZE;
150 for (int i = 0; i < idata.length; i++) {
172 final int end = sdata.length - 1;
184 for (int i = 0; i < sdata.length;
[all...]
/openjdk7/jaxws/src/share/jaxws_classes/com/sun/xml/internal/fastinfoset/tools/
H A DSAX2StAXWriter.java82 public void characters(char[] ch, int start, int length) argument
86 _writer.writeCharacters(ch, start, length);
101 int length = _namespaces.size();
102 for (int i = 0; i < length; i++) {
108 length = atts.getLength();
109 for (int i = 0; i < length; i++) {
149 public void ignorableWhitespace(char[] ch, int start, int length) argument
152 characters(ch, start, length);
172 public void comment(char[] ch, int start, int length) argument
176 _writer.writeComment(new String(ch, start, length));
[all...]

Completed in 62 milliseconds

<<21222324252627282930>>