Home
last modified time | relevance | path

Searched refs:Length (Results 1 – 25 of 68) sorted by relevance

123

/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/csharp/src/Google.Protobuf/
DByteString.cs102 public int Length property in Google.Protobuf.ByteString
104 get { return bytes.Length; }
112 get { return Length == 0; }
202 return encoding.GetString(bytes, 0, bytes.Length); in ToString()
261 if (lhs.bytes.Length != rhs.bytes.Length) in operator ==()
265 for (int i = 0; i < lhs.Length; i++) in operator ==()
326 outputStream.WriteRawBytes(bytes, 0, bytes.Length); in WriteRawBytesTo()
334 ByteArray.Copy(bytes, 0, array, position, bytes.Length); in CopyTo()
342 outputStream.Write(bytes, 0, bytes.Length); in WriteTo()
DCodedInputStream.cs124 …am(byte[] buffer) : this(null, ProtoPreconditions.CheckNotNull(buffer, "buffer"), 0, buffer.Length) in CodedInputStream()
134 if (offset < 0 || offset > buffer.Length) in CodedInputStream()
138 if (length < 0 || offset + length > buffer.Length) in CodedInputStream()
1031 bufferSize = (input == null) ? 0 : input.Read(buffer, 0, buffer.Length); in RefillBuffer()
1104 else if (size < buffer.Length) in ReadRawBytes()
1159 byte[] chunk = new byte[Math.Min(sizeLeft, buffer.Length)]; in ReadRawBytes()
1161 while (pos < chunk.Length) in ReadRawBytes()
1163 int n = (input == null) ? -1 : input.Read(chunk, pos, chunk.Length - pos); in ReadRawBytes()
1171 sizeLeft -= chunk.Length; in ReadRawBytes()
1185 Buffer.BlockCopy(chunk, 0, bytes, newPos, chunk.Length); in ReadRawBytes()
[all …]
DCodedOutputStream.cs80 public CodedOutputStream(byte[] flatArray) : this(flatArray, 0, flatArray.Length) in CodedOutputStream()
103 this.limit = buffer.Length; in CodedOutputStream()
275 if (length == value.Length) // Must be all ASCII... in WriteString()
284 Utf8Encoding.GetBytes(value, 0, value.Length, buffer, position); in WriteString()
313 WriteLength(value.Length); in WriteBytes()
592 WriteRawBytes(value, 0, value.Length); in WriteRawBytes()
DJsonFormatter.cs117 for (int i = 0; i < CommonRepresentations.Length; i++) in JsonFormatter()
257 for (int i = 0; i < input.Length; i++) in ToCamelCaseForFieldMask()
264 if (c == '_' && i < input.Length - 1) in ToCamelCaseForFieldMask()
284 StringBuilder result = new StringBuilder(input.Length); in ToCamelCase()
286 for (int i = 0; i < input.Length; i++, wasCap = isCap) in ToCamelCase()
292 if (result.Length != 0) in ToCamelCase()
304 if (result.Length != 0 && isCap && in ToCamelCase()
305 (!wasCap || (i + 1 < input.Length && char.IsLower(input[i + 1])))) in ToCamelCase()
735 for (int i = 0; i < text.Length; i++) in WriteString()
748 if (i == text.Length || !char.IsLowSurrogate(text[i])) in WriteString()
DCodedOutputStream.ComputeSize.cs160 return ComputeLengthSize(value.Length) + value.Length; in ComputeBytesSize()
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/csharp/src/Google.Protobuf/WellKnownTypes/
DApi.cs236 if (Name.Length != 0) hash ^= Name.GetHashCode(); in GetHashCode()
239 if (Version.Length != 0) hash ^= Version.GetHashCode(); in GetHashCode()
253 if (Name.Length != 0) { in WriteTo()
259 if (Version.Length != 0) { in WriteTo()
277 if (Name.Length != 0) { in CalculateSize()
282 if (Version.Length != 0) { in CalculateSize()
300 if (other.Name.Length != 0) { in MergeFrom()
305 if (other.Version.Length != 0) { in MergeFrom()
529 if (Name.Length != 0) hash ^= Name.GetHashCode(); in GetHashCode()
530 if (RequestTypeUrl.Length != 0) hash ^= RequestTypeUrl.GetHashCode(); in GetHashCode()
[all …]
DAny.cs212 if (TypeUrl.Length != 0) hash ^= TypeUrl.GetHashCode(); in GetHashCode()
213 if (Value.Length != 0) hash ^= Value.GetHashCode(); in GetHashCode()
224 if (TypeUrl.Length != 0) { in WriteTo()
228 if (Value.Length != 0) { in WriteTo()
237 if (TypeUrl.Length != 0) { in CalculateSize()
240 if (Value.Length != 0) { in CalculateSize()
251 if (other.TypeUrl.Length != 0) { in MergeFrom()
254 if (other.Value.Length != 0) { in MergeFrom()
DType.cs237 if (Name.Length != 0) hash ^= Name.GetHashCode(); in GetHashCode()
253 if (Name.Length != 0) { in WriteTo()
273 if (Name.Length != 0) { in CalculateSize()
293 if (other.Name.Length != 0) { in MergeFrom()
568 if (Name.Length != 0) hash ^= Name.GetHashCode(); in GetHashCode()
569 if (TypeUrl.Length != 0) hash ^= TypeUrl.GetHashCode(); in GetHashCode()
573 if (JsonName.Length != 0) hash ^= JsonName.GetHashCode(); in GetHashCode()
574 if (DefaultValue.Length != 0) hash ^= DefaultValue.GetHashCode(); in GetHashCode()
597 if (Name.Length != 0) { in WriteTo()
601 if (TypeUrl.Length != 0) { in WriteTo()
[all …]
DSourceContext.cs111 if (FileName.Length != 0) hash ^= FileName.GetHashCode(); in GetHashCode()
122 if (FileName.Length != 0) { in WriteTo()
131 if (FileName.Length != 0) { in CalculateSize()
142 if (other.FileName.Length != 0) { in MergeFrom()
DFieldMaskPartial.cs93 for (int i = 0; i < input.Length; i++) in ValidatePath()
100 if (c == '_' && i < input.Length - 1) in ValidatePath()
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/csharp/src/Google.Protobuf.Conformance/
DProgram.cs69 if (inputData.Length != size.Value) in RunTest()
71 …throw new EndOfStreamException("Read " + inputData.Length + " bytes of data when expecting " + siz… in RunTest()
76 output.Write(outputData.Length); in RunTest()
130 if (bytes.Length == 0) in ReadInt32()
135 if (bytes.Length != 4) in ReadInt32()
137 … throw new EndOfStreamException("Read " + bytes.Length + " bytes of size when expecting 4"); in ReadInt32()
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/csharp/src/Google.Protobuf/Reflection/
DDescriptor.cs517 if (Name.Length != 0) hash ^= Name.GetHashCode(); in GetHashCode()
518 if (Package.Length != 0) hash ^= Package.GetHashCode(); in GetHashCode()
528 if (Syntax.Length != 0) hash ^= Syntax.GetHashCode(); in GetHashCode()
539 if (Name.Length != 0) { in WriteTo()
543 if (Package.Length != 0) { in WriteTo()
562 if (Syntax.Length != 0) { in WriteTo()
571 if (Name.Length != 0) { in CalculateSize()
574 if (Package.Length != 0) { in CalculateSize()
590 if (Syntax.Length != 0) { in CalculateSize()
601 if (other.Name.Length != 0) { in MergeFrom()
[all …]
DDescriptorPool.cs59 for (int i = 0; i < dependencyFiles.Length; i++) in DescriptorPool()
297 scopeToTry.Length = dotpos + 1; in LookupSymbol()
310 scopeToTry.Length = dotpos + 1; in LookupSymbol()
318 scopeToTry.Length = dotpos; in LookupSymbol()
DFileDescriptor.cs79 if (Package.Length > 0) in ComputeFullName()
199 if (Package.Length > 0)
247 if (dependencies.Length != proto.Dependency.Count) in BuildFrom()
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/csharp/src/AddressBook/
DAddressbook.cs152 if (Name.Length != 0) hash ^= Name.GetHashCode(); in GetHashCode()
154 if (Email.Length != 0) hash ^= Email.GetHashCode(); in GetHashCode()
166 if (Name.Length != 0) { in WriteTo()
174 if (Email.Length != 0) { in WriteTo()
184 if (Name.Length != 0) { in CalculateSize()
190 if (Email.Length != 0) { in CalculateSize()
202 if (other.Name.Length != 0) { in MergeFrom()
208 if (other.Email.Length != 0) { in MergeFrom()
328 if (Number.Length != 0) hash ^= Number.GetHashCode(); in GetHashCode()
340 if (Number.Length != 0) { in WriteTo()
[all …]
DAddPerson.cs55 if (email.Length > 0) in PromptForAddress()
64 if (number.Length == 0) in PromptForAddress()
100 if (args.Length != 1) in Main()
DProgram.cs46 if (args.Length > 1) in Main()
52 string addressBookFile = args.Length > 0 ? args[0] : "addressbook.data"; in Main()
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/csharp/src/Google.Protobuf.Test/
DByteStringTest.cs72 Assert.AreEqual(0, ByteString.Empty.Length); in EmptyByteStringHasZeroSize()
79 Assert.AreEqual(4, bs.Length); in CopyFromStringWithExplicitEncoding()
125 Assert.AreEqual(3, bs.Length); in CopyFromUtf8UsesUtf8()
136 Assert.AreEqual(3, bs.Length); in CopyFromPortion()
DCodedInputStreamTest.cs49 byte[] bytes = new byte[bytesAsInts.Length]; in Bytes()
50 for (int i = 0; i < bytesAsInts.Length; i++) in Bytes()
84 memoryStream.Write(data, 0, data.Length); in AssertReadVarint()
88 Assert.AreEqual(data.Length, memoryStream.Position); in AssertReadVarint()
235 Assert.AreEqual(rawBytes.Length, message.CalculateSize()); in ReadWholeMessage_VaryingBlockSizes()
252 for (int i = 0; i < blob.Length; i++) in ReadHugeBlob()
406 CodedInputStream input = new CodedInputStream(ms, new byte[ms.Length / 2], 0, 0); in TestSlowPathAvoidance()
410 Assert.AreEqual(100, input.ReadBytes().Length); in TestSlowPathAvoidance()
414 Assert.AreEqual(100, input.ReadBytes().Length); in TestSlowPathAvoidance()
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/csharp/src/Google.Protobuf.Test/WellKnownTypes/
DAnyTest.cs46 Assert.AreEqual(message.CalculateSize(), any.Value.Length); in Pack()
55 Assert.AreEqual(message.CalculateSize(), any.Value.Length); in Pack_WithCustomPrefix()
64 Assert.AreEqual(message.CalculateSize(), any.Value.Length); in Pack_WithCustomPrefixTrailingSlash()
/frameworks/av/media/libstagefright/codecs/m4v_h263/enc/src/
Dbitstream_io.cpp120 PV_STATUS BitstreamPutBits(BitstreamEncVideo *stream, Int Length, UInt Value) in BitstreamPutBits() argument
124 if (stream->bitLeft > Length) in BitstreamPutBits()
126 stream->word <<= Length; in BitstreamPutBits()
128 stream->bitLeft -= Length; in BitstreamPutBits()
135 Length -= stream->bitLeft; in BitstreamPutBits()
136 stream->word |= ((UInt)Value >> Length); in BitstreamPutBits()
147 stream->bitLeft -= Length; in BitstreamPutBits()
168 PV_STATUS BitstreamPutGT16Bits(BitstreamEncVideo *stream, Int Length, ULong Value) in BitstreamPutGT16Bits() argument
175 topLength = Length - 16; in BitstreamPutGT16Bits()
192 status = BitstreamPutBits(stream, Length, (UInt)Value); in BitstreamPutGT16Bits()
Dbitstream_io.h32 PV_STATUS BitstreamPutBits(BitstreamEncVideo *stream, Int Length, UInt Value);
33 PV_STATUS BitstreamPutGT16Bits(BitstreamEncVideo *stream, Int Length, ULong Value);
/frameworks/base/media/mca/filterfw/native/core/
Dgeometry.cpp26 float Point::Length() const { in Length() function in android::filterfw::Point
31 float length = Length(); in ScaleTo()
42 return diff.Length(); in Distance()
/frameworks/base/media/mca/filterpacks/native/base/
Dgeometry.cpp27 float Point::Length() const { in Length() function in android::filterfw::Point
32 float length = Length(); in ScaleTo()
43 return diff.Length(); in Distance()
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/python/google/protobuf/pyext/
Drepeated_composite_container.cc82 static Py_ssize_t Length(RepeatedCompositeContainer* self) { in Length() function
103 Py_ssize_t message_length = Length(self); in UpdateChildMessages()
263 Py_ssize_t length = Length(self); in AssignSubscript()
344 const Py_ssize_t length = Length(self); in ReorderAttached()
405 Py_ssize_t length = Length(self); in Item()
541 (lenfunc)Length, /* sq_length */
548 (lenfunc)Length, /* mp_length */

123