/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/asn1/ |
H A D | ASN1OutputStream.java | 20 int length) 23 if (length > 127) 26 int val = length; 37 write((byte)(length >> i)); 42 write((byte)length); 70 writeLength(bytes.length); 91 int pos = stack.length; 102 write(stack, pos, stack.length - pos); 111 writeLength(bytes.length); 19 writeLength( int length) argument
|
H A D | DERBitString.java | 193 for (int i = 0; i != data.length && i != 4; i++) 208 return 1 + StreamUtil.calculateBodyLength(data.length + 1) + data.length + 1; 215 byte[] bytes = new byte[getBytes().length + 1]; 218 System.arraycopy(getBytes(), 0, bytes, 1, bytes.length - 1); 259 for (int i = 0; i != string.length; i++) 275 if (bytes.length < 1) 281 byte[] data = new byte[bytes.length - 1]; 283 if (data.length != 0) 285 System.arraycopy(bytes, 1, data, 0, bytes.length 291 fromInputStream(int length, InputStream stream) argument [all...] |
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/crypto/ |
H A D | BufferedBlockCipher.java | 106 * @param len the length of the input. 118 leftOver = total % buf.length - (cipher.getBlockSize() + 2); 122 leftOver = total % buf.length; 130 * doFinal with an input of 'length' bytes. 132 * @param length the length of the input. 134 * with 'length' bytes of input. 137 int length) 140 return length + bufOff; 163 if (bufOff == buf.length) 136 getOutputSize( int length) argument [all...] |
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/crypto/signers/ |
H A D | RSADigestSigner.java | 133 int length) 135 digest.update(input, inOff, length); 156 return rsaEngine.processBlock(data, 0, data.length); 185 sig = rsaEngine.processBlock(signature, 0, signature.length); 193 if (sig.length == expected.length) 197 else if (sig.length == expected.length - 2) // NULL left out 199 int sigOffset = sig.length - hash.length 130 update( byte[] input, int inOff, int length) argument [all...] |
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/util/encoders/ |
H A D | Base64Encoder.java | 34 for (int i = 0; i < encodingTable.length; i++) 53 int length, 57 int modulus = length % 3; 58 int dataLength = (length - modulus); 126 int length, 133 int end = off + length; 201 int length = 0; 203 int end = data.length(); 240 length += 3; 245 length 50 encode( byte[] data, int off, int length, OutputStream out) argument 123 decode( byte[] data, int off, int length, OutputStream out) argument [all...] |
/external/chromium/base/ |
H A D | platform_file_posix.cc | 157 bool TruncatePlatformFile(PlatformFile file, int64 length) { argument 158 return ((file >= 0) && !HANDLE_EINTR(ftruncate(file, length)));
|
H A D | sync_socket_win.cc | 20 const size_t kPathMax = 28; // print length of process id + pair count. 110 size_t SyncSocket::Send(const void* buffer, size_t length) { argument 111 DCHECK(length <= kMaxMessageLength); 113 while (count < length) { 117 ((length - count) <= UINT_MAX) ? (length - count) : UINT_MAX); 127 size_t SyncSocket::Receive(void* buffer, size_t length) { argument 128 DCHECK(length <= kMaxMessageLength); 130 while (count < length) { 133 ((length [all...] |
/external/chromium/chrome/browser/chromeos/login/ |
H A D | camera.h | 141 size_t length; member in struct:chromeos::Camera::VideoBuffer
|
/external/chromium/chrome/browser/ |
H A D | session_history_uitest.cc | 536 int length; local 538 L"", L"domAutomationController.send(history.length)", &length)); 539 EXPECT_EQ(1, length); 544 L"", L"domAutomationController.send(history.length)", &length)); 545 EXPECT_EQ(2, length); 547 // Now test that history.length is updated when the navigation is committed. 551 L"", L"domAutomationController.send(history.length)", &length)); [all...] |
/external/chromium/chrome/browser/sync/util/ |
H A D | crypto_helpers.cc | 27 void MD5Calculator::AddData(const unsigned char* data, int length) { argument 29 MD5Update(&context_, data, length);
|
/external/chromium/chrome/common/extensions/docs/examples/extensions/irc/servlet/src/org/chromium/ |
H A D | IRCProxyWebSocket.java | 49 public void onMessage(byte frame, byte[] data,int offset, int length) {} argument
|
/external/chromium/chrome/common/ |
H A D | service_process_util_posix.cc | 27 int length = read(fd, &buffer, sizeof(buffer)); local 28 if ((length == sizeof(buffer)) && (buffer == kShutDownMessage)) { 31 } else if (length > 0) { 33 } else if (length == 0) { 35 } else if (length < 0) {
|
H A D | visitedlink_common.h | 87 uint32 length; member in struct:VisitedLinkCommon::SharedHeader
|
/external/chromium/googleurl/src/ |
H A D | url_canon_icu.cc | 54 int32_t length, 113 int begin_offset = output->length(); 115 output->set_length(output->length()); 139 // the length of the output will be set to the length of the new host name. 143 DCHECK(output->length() == 0); // Output buffer is assumed empty. 164 bool ReadUTFChar(const char* str, int* begin, int length, argument 167 U8_NEXT(str, *begin, length, code_point); 181 bool ReadUTFChar(const char16* str, int* begin, int length, argument 184 if (!U16_IS_SURROGATE_LEAD(str[*begin]) || *begin + 1 >= length || 51 appendURLEscapedChar(const void* context, UConverterFromUnicodeArgs* from_args, const UChar* code_units, int32_t length, UChar32 code_point, UConverterCallbackReason reason, UErrorCode* err) argument [all...] |
/external/chromium/net/disk_cache/ |
H A D | trace.cc | 128 size_t length = strlen(line); local 129 if (length) { 130 line[length] = '\n'; 131 line[length + 1] = '\0';
|
/external/chromium/net/spdy/ |
H A D | spdy_frame_builder.h | 41 int length() const { return length_; } function in class:spdy::SpdyFrameBuilder 59 bool ReadBytes(void** iter, const char** data, uint16 length) const; 60 bool ReadData(void** iter, const char** data, uint16* length) const; 94 // The caller must not write more than the length it declares it will. 100 char* BeginWriteData(uint16 length); 103 // length. If there is no room for the given data before the end of the 127 // was an error. Call EndWrite with the returned offset and the given length 129 char* BeginWrite(size_t length); 134 void EndWrite(char* dest, int length); 153 size_t length_; // current length o [all...] |
/external/chromium/net/websockets/ |
H A D | websocket_frame_handler.cc | 23 void WebSocketFrameHandler::AppendData(const char* data, int length) { argument 24 scoped_refptr<IOBufferWithSize> buffer = new IOBufferWithSize(length); 25 memcpy(buffer->data(), data, length); 99 int length = 0; local 103 if (length > std::numeric_limits<int>::max() / 128) { 104 // frame length overflow. 108 length = length * 128 + (c & 0x7f); 113 if (end - p >= length) { 115 frame.message_length = length; [all...] |
/external/chromium/testing/gtest/include/gtest/internal/ |
H A D | gtest-string.h | 227 ConstructNonNull(str.c_str(), str.length()); 230 operator ::std::string() const { return ::std::string(c_str(), length()); } 234 ConstructNonNull(str.c_str(), str.length()); 237 operator ::string() const { return ::string(c_str(), length()); } 241 bool empty() const { return (c_str() != NULL) && (length() == 0); } 268 // Returns the length of the encapsulated string, or 0 if the 270 size_t length() const { return length_; } function in class:testing::internal::String 290 ConstructNonNull(rhs.c_str(), rhs.length()); 321 for (size_t i = 0; i != str.length(); i++) {
|
/external/chromium/third_party/libjingle/source/talk/base/ |
H A D | buffer.h | 44 Buffer(const void* data, size_t length) { argument 45 Construct(data, length, length); 47 Buffer(const void* data, size_t length, size_t capacity) { argument 48 Construct(data, length, capacity); 51 Construct(buf.data(), buf.length(), buf.length()); 57 size_t length() const { return length_; } function in class:talk_base::Buffer 62 Construct(buf.data(), buf.length(), buf.length()); 74 SetData(const void* data, size_t length) argument 79 AppendData(const void* data, size_t length) argument 85 SetLength(size_t length) argument 107 Construct(const void* data, size_t length, size_t capacity) argument [all...] |
H A D | macconversion.cc | 48 unsigned length = CFStringGetLength(cfstr); local 49 char* buf = new char[1 + length]; 50 if (CFStringGetCString(cfstr, buf, 1 + length, kCFStringEncodingASCII)) { 51 if (strlen(buf) == length) {
|
/external/clang/lib/Lex/ |
H A D | TokenConcatenation.cpp | 63 unsigned length = PP.getSpelling(Tok, TokPtr); local 64 return IsStringPrefix(StringRef(TokPtr, length), LangOpts.CPlusPlus0x);
|
/external/clang/test/PCH/ |
H A D | cxx-templates.cpp | 60 static unsigned hash(const char* data, unsigned length) { argument 61 return StringHasher::createHash<char, foldCase>(data, length);
|
/external/compiler-rt/lib/sanitizer_common/ |
H A D | sanitizer_common.cc | 21 uptr length = (uptr)internal_strlen(buffer); local 22 if (length != internal_write(2, buffer, length)) {
|
/external/dexmaker/src/dx/java/com/android/dx/util/ |
H A D | Hex.java | 237 * is always newline-terminated, unless the passed-in length was zero, 242 * @param length {@code >= 0;} number of bytes to dump 249 public static String dump(byte[] arr, int offset, int length, argument 251 int end = offset + length; 254 if (((offset | length | end) < 0) || (end > arr.length)) { 255 throw new IndexOutOfBoundsException("arr.length " + 256 arr.length + "; " + 264 if (length == 0) { 268 StringBuffer sb = new StringBuffer(length * [all...] |
H A D | Output.java | 103 * @param length {@code >= 0;} number of bytes to write 105 public void write(byte[] bytes, int offset, int length); argument 109 * a convenient shorthand for {@code write(bytes, 0, bytes.length)}.
|