/external/libvncserver/common/ |
H A D | vncauth.c | 151 * Generate CHALLENGESIZE random bytes for use in challenge-response 156 rfbRandomBytes(unsigned char *bytes) argument 167 bytes[i] = (unsigned char)(random() & 255); 174 * Encrypt CHALLENGESIZE bytes in memory using a password. 178 rfbEncryptBytes(unsigned char *bytes, char *passwd) argument 196 rfbDes(bytes+i, bytes+i);
|
/external/ltp/testcases/kernel/syscalls/setrlimit/ |
H A D | setrlimit01.c | 54 static int nofiles, fd, bytes, i, status; variable 121 * Since its filesize is truncated to only 10 bytes, the 152 bytes = write(fd, buf, 26); 153 if (bytes != 10) { 154 if (write(pipefd[1], &bytes, sizeof(bytes)) 155 < sizeof(bytes)) { 180 if (read(pipefd[0], &bytes, sizeof(bytes)) < sizeof(bytes)) [all...] |
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/mq_close/ |
H A D | 2-1.c | 218 ssize_t bytes; local 221 bytes = write(write_pipe, &send, 1); 222 if (bytes == -1) { 229 bytes = read(read_pipe, reply, 1); 230 if (bytes == -1) { 233 } else if (bytes == 0) {
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/mq_unlink/ |
H A D | 2-1.c | 164 ssize_t bytes; local 167 bytes = write(write_pipe, &send, 1); 168 if (bytes == -1) { 174 bytes = read(read_pipe, reply, 1); 175 if (bytes == -1) { 178 } else if (bytes == 0) {
|
H A D | 2-2.c | 180 ssize_t bytes; local 182 bytes = write(write_pipe, &send, 1); 183 if (bytes == -1) { 189 bytes = read(read_pipe, reply, 1); 190 if (bytes == -1) { 193 } else if (bytes == 0) {
|
/external/ltp/utils/ffsb-6.0-rc2/ |
H A D | ffsb_op.h | 81 uint64_t bytes[FFSB_NUMOPS]; member in struct:ffsb_op_results
|
H A D | rand.c | 90 uint8_t bytes[4]; local 93 bytes[0] = genrand8(state); 94 bytes[1] = genrand8(state); 95 bytes[2] = genrand8(state); 96 bytes[3] = genrand8(state); 98 ret = *((uint32_t *) bytes); /* !!! hack */ 141 uint8_t bytes[4] = { 0, 0, 0, 0 }; local 157 bytes[i] = genrand8(state); 159 ret = (bytes[3] << 24) + (bytes[ [all...] |
/external/lzma/CPP/7zip/UI/Common/ |
H A D | ArchiveOpenCallback.cpp | 16 STDMETHODIMP COpenCallbackImp::SetTotal(const UInt64 *files, const UInt64 *bytes)
argument 20 return ReOpenCallback->SetTotal(files, bytes);
23 return Callback->Open_SetTotal(files, bytes);
27 STDMETHODIMP COpenCallbackImp::SetCompleted(const UInt64 *files, const UInt64 *bytes)
argument 31 return ReOpenCallback->SetCompleted(files, bytes);
34 return Callback->Open_SetCompleted(files, bytes);
|
/external/mdnsresponder/mDNSWindows/DLLX/ |
H A D | TXTRecord.cpp | 362 const unsigned char * bytes, 370 check ( bytes != NULL ); 378 m_byteArray.assign( bytes, bytes + len ); 358 SetBytes( const unsigned char * bytes, uint16_t len ) argument
|
/external/mesa3d/src/compiler/glsl/glcpp/ |
H A D | glcpp.c | 53 size_t bytes; local 64 bytes = fread (text + total_read, 1, CHUNK, fp); 65 total_read += bytes; 67 if (bytes < CHUNK) {
|
/external/mesa3d/src/gallium/drivers/i915/ |
H A D | i915_resource_buffer.c | 149 unsigned bytes, 164 buf->b.b.width0 = bytes; 147 i915_user_buffer_create(struct pipe_screen *screen, void *ptr, unsigned bytes, unsigned bind) argument
|
/external/mesa3d/src/gallium/state_trackers/omx/ |
H A D | vid_dec_mpeg12.c | 157 unsigned bytes = priv->bytes_left - (vl_vlc_bits_left(vlc) / 8); local 159 1, &priv->slice, &bytes); 345 unsigned bytes = (vl_vlc_valid_bits(vlc) / 8) + 4; local 357 for (i = 4; i < bytes; ++i) 361 1, &ptr, &bytes);
|
/external/mesa3d/src/mesa/drivers/dri/i915/ |
H A D | intel_batchbuffer.c | 245 const void *data, GLuint bytes) 247 assert((bytes & 3) == 0); 248 intel_batchbuffer_require_space(intel, bytes); 249 memcpy(intel->batch.map + intel->batch.used, data, bytes); 250 intel->batch.used += bytes >> 2; 244 intel_batchbuffer_data(struct intel_context *intel, const void *data, GLuint bytes) argument
|
/external/mesa3d/src/mesa/main/ |
H A D | imports.c | 75 * \param bytes number of bytes to allocate. 84 _mesa_align_malloc(size_t bytes, unsigned long alignment) argument 88 int err = posix_memalign(& mem, alignment, bytes); 93 return _aligned_malloc(bytes, alignment); 99 ptr = (uintptr_t)malloc(bytes + alignment + sizeof(void *)); 123 _mesa_align_calloc(size_t bytes, unsigned long alignment) argument 128 mem = _mesa_align_malloc(bytes, alignment); 130 (void) memset(mem, 0, bytes); 137 mem = _aligned_malloc(bytes, alignmen [all...] |
/external/mp4parser/isoparser/src/main/java/com/googlecode/mp4parser/boxes/piff/ |
H A D | PlayReadyHeader.java | 33 * The sample Id is used as the IV in CTR mode. Block offset, starting at 0 and incremented by 1 after every 16 bytes, from the beginning of the sample is used as the Counter. 35 * The sample ID for each sample (media object) is stored as an ASF payload extension system with the ID of ASF_Payload_Extension_Encryption_SampleID = {6698B84E-0AFA-4330-AEB2-1C0A98D7A44D}. The payload extension can be stored as a fixed size extension of 8 bytes. 141 public abstract void parse(ByteBuffer bytes); argument 164 public void parse(ByteBuffer bytes) { argument 166 byte[] str = new byte[bytes.slice().limit()]; 167 bytes.get(str); 212 public void parse(ByteBuffer bytes) { argument 213 this.value = bytes.duplicate(); 240 public void parse(ByteBuffer bytes) { argument 241 this.value = bytes [all...] |
/external/nanopb-c/tests/decode_unittests/ |
H A D | decode_unittests.c | 33 if (byte != ref->bytes[i]) 171 struct { size_t size; uint8_t bytes[5]; } d; member in struct:__anon17390 176 TEST((s = S("\x01\xFF"), pb_dec_bytes(&s, &f, &d) && d.size == 1 && d.bytes[0] == 0xFF)) 180 /* Note: the size limit on bytes-fields is not strictly obeyed, as 185 * 6 bytes should error out. 252 struct { size_t size; uint8_t bytes[10]; } ref; member in struct:__anon17391 258 ref.size = 1; ref.bytes[0] = 0x55; 261 ref.size = 3; ref.bytes[0] = ref.bytes[1] = ref.bytes[ [all...] |
/external/nanopb-c/tests/encode_unittests/ |
H A D | encode_unittests.c | 39 * Y is a string, which may contain null bytes. Null terminator is ignored. 172 struct { size_t size; uint8_t bytes[5]; } value = {5, {'x', 'y', 'z', 'z', 'y'}}; member in struct:__anon17392 266 COMMENT("Test pb_encode with bytes message.")
|
/external/oj-libjdwp/src/solaris/npt/ |
H A D | utf_md.c | 98 iconvConvert(iconv_t ic, char *bytes, int len, char *output, int outputMaxLen) argument 102 UTF_ASSERT(bytes); 117 inbuf = bytes; 132 /* Just copy bytes */ 134 (void)memcpy(output, bytes, len);
|
/external/okhttp/okhttp/src/main/java/com/squareup/okhttp/internal/framed/ |
H A D | Huffman.java | 115 int encodedLength(byte[] bytes) { argument 118 for (int i = 0; i < bytes.length; i++) { 119 int b = bytes[i] & 0xFF;
|
/external/pcre/dist2/src/ |
H A D | pcre2_serialize.c | 76 uint8_t *bytes; local 109 bytes = memctl->malloc(total_size + sizeof(pcre2_memctl), memctl->memory_data); 110 if (bytes == NULL) return PCRE2_ERROR_NOMEMORY; 113 memcpy(bytes, memctl, sizeof(pcre2_memctl)); 114 bytes += sizeof(pcre2_memctl); 116 data = (pcre2_serialized_data *)bytes; 123 dst_bytes = bytes + sizeof(pcre2_serialized_data); 134 *serialized_bytes = bytes; 146 const uint8_t *bytes, pcre2_general_context *gcontext) 148 const pcre2_serialized_data *data = (const pcre2_serialized_data *)bytes; 145 pcre2_serialize_decode(pcre2_code **codes, int32_t number_of_codes, const uint8_t *bytes, pcre2_general_context *gcontext) argument 238 pcre2_serialize_get_number_of_codes(const uint8_t *bytes) argument 256 pcre2_serialize_free(uint8_t *bytes) argument [all...] |
/external/perfetto/src/perfetto_cmd/ |
H A D | rate_limiter.cc | 111 bool RateLimiter::OnTraceDone(const Args& args, bool success, size_t bytes) { argument 129 state_.set_total_bytes_uploaded(state_.total_bytes_uploaded() + bytes); 166 ssize_t bytes = PERFETTO_EINTR(read(in_fd.get(), &buf, sizeof(buf))); local 167 if (bytes <= 0) 169 return state->ParseFromArray(&buf, static_cast<int>(bytes));
|
/external/protobuf/conformance/ |
H A D | conformance_cpp.cc | 159 uint32_t bytes; local 161 if (!CheckedRead(STDIN_FILENO, &bytes, sizeof(uint32_t))) { 166 serialized_input.resize(bytes); 168 if (!CheckedRead(STDIN_FILENO, (char*)serialized_input.c_str(), bytes)) { 181 bytes = serialized_output.size(); 182 CheckedWrite(STDOUT_FILENO, &bytes, sizeof(uint32_t)); 183 CheckedWrite(STDOUT_FILENO, serialized_output.c_str(), bytes);
|
/external/protobuf/java/core/src/main/java/com/google/protobuf/ |
H A D | LazyField.java | 55 ExtensionRegistryLite extensionRegistry, ByteString bytes) { 56 super(extensionRegistry, bytes); 54 LazyField(MessageLite defaultInstance, ExtensionRegistryLite extensionRegistry, ByteString bytes) argument
|
/external/protobuf/javamicro/src/main/java/com/google/protobuf/micro/ |
H A D | ByteStringMicro.java | 36 * Immutable array of bytes. 42 private final byte[] bytes; field in class:ByteStringMicro 44 private ByteStringMicro(final byte[] bytes) { argument 45 this.bytes = bytes; 54 return bytes[index]; 58 * Gets the number of bytes. 61 return bytes.length; 68 return bytes.length == 0; 80 * Copies the given bytes int 82 copyFrom(final byte[] bytes, final int offset, final int size) argument 92 copyFrom(final byte[] bytes) argument [all...] |
/external/python/cpython2/Modules/_ctypes/libffi/src/ |
H A D | prep_cif.c | 113 unsigned bytes = 0; local 159 bytes = STACK_ARG_SIZE(sizeof(void*)); 179 bytes += sizeof(void*); 184 if (((*ptr)->alignment - 1) & bytes) 185 bytes = (unsigned)ALIGN(bytes, (*ptr)->alignment); 188 if (bytes < 10 * FFI_SIZEOF_ARG && 189 bytes + STACK_ARG_SIZE((*ptr)->size) > 10 * FFI_SIZEOF_ARG) 193 bytes = 10 * FFI_SIZEOF_ARG; 197 if (bytes < [all...] |