/frameworks/av/drm/common/ |
ReadWriteUtils.cpp | 46 char* bytes = new char[length]; local 47 if (length == read(fd, (void*) bytes, length)) { 48 string.append(bytes, length); 50 delete[] bytes;
|
/frameworks/base/core/java/android/util/ |
PackageUtils.java | 59 * finally a hash is derived from these strings' bytes. 78 * derived from these strings' bytes. 92 final ByteArrayOutputStream bytes = new ByteArrayOutputStream(); local 95 bytes.write(sha256Digest.getBytes()); 100 return computeSha256Digest(bytes.toByteArray());
|
/frameworks/base/libs/hwui/utils/ |
StringUtils.h | 42 int bytes; member in struct:android::uirenderer::SizePrinter 46 double temp = d.bytes;
|
/frameworks/base/media/mca/filterfw/jni/ |
jni_vertex_frame.cpp | 77 jbyte* bytes = env->GetByteArrayElements(data, NULL); local 78 if (bytes) { 79 const bool success = frame->WriteData(reinterpret_cast<const uint8_t*>(bytes + offset), 81 env->ReleaseByteArrayElements(data, bytes, JNI_ABORT);
|
/frameworks/layoutlib/create/src/com/android/tools/layoutlib/java/ |
UnsafeByteSequence.java | 31 private byte[] bytes; field in class:UnsafeByteSequence 35 this.bytes = new byte[initialCapacity]; 51 if (count + length >= bytes.length) { 53 System.arraycopy(bytes, 0, newBytes, 0, count); 54 bytes = newBytes; 56 System.arraycopy(buffer, offset, bytes, count, length); 61 if (count == bytes.length) { 63 System.arraycopy(bytes, 0, newBytes, 0, count); 64 bytes = newBytes; 66 bytes[count++] = (byte) b [all...] |
/frameworks/native/libs/binder/ |
IpPrefix.cpp | 56 const uint8_t* bytes = reinterpret_cast<const uint8_t*>(&mUnion.mIn6Addr); local 57 byte_vector.insert(byte_vector.end(), bytes, bytes+sizeof(mUnion.mIn6Addr)); 59 const uint8_t* bytes = reinterpret_cast<const uint8_t*>(&mUnion.mInAddr); local 60 byte_vector.insert(byte_vector.end(), bytes, bytes+sizeof(mUnion.mIn6Addr));
|
/frameworks/opt/net/voip/src/jni/rtp/ |
GsmCodec.cpp | 62 unsigned char *bytes = (unsigned char *)payload; local 65 gsm_decode(mDecode, bytes, &samples[n]) == 0) { 68 bytes += 33;
|
/hardware/interfaces/automotive/vehicle/2.0/default/tests/ |
VmsUtils_test.cpp | 130 std::string bytes = "aaa"; local 131 auto message = createDataMessage(bytes); 137 EXPECT_EQ(message->value.bytes.size(), bytes.size()); 138 EXPECT_EQ(memcmp(message->value.bytes.data(), bytes.data(), bytes.size()), 0); 155 std::string bytes = "aaa"; local 156 auto message = createDataMessage(bytes); 159 EXPECT_EQ(data_str, bytes); [all...] |
/libcore/ojluni/src/main/native/ |
ObjectInputStream.c | 61 jbyte *bytes; local 73 bytes = (*env)->GetPrimitiveArrayCritical(env, src, NULL); 74 if (bytes == NULL) /* exception thrown */ 79 (*env)->ReleasePrimitiveArrayCritical(env, src, bytes, JNI_ABORT); 85 (*env)->ReleasePrimitiveArrayCritical(env, src, bytes, JNI_ABORT); 92 ival = ((bytes[srcpos + 0] & 0xFF) << 24) + 93 ((bytes[srcpos + 1] & 0xFF) << 16) + 94 ((bytes[srcpos + 2] & 0xFF) << 8) + 95 ((bytes[srcpos + 3] & 0xFF) << 0); 101 (*env)->ReleasePrimitiveArrayCritical(env, src, bytes, JNI_ABORT) 129 jbyte *bytes; local [all...] |
/packages/apps/DocumentsUI/src/com/android/documentsui/archives/ |
Proxy.java | 73 int bytes = mInputStream.read(data, size - remainingSize, remainingSize); local 74 if (bytes <= 0) { 77 remainingSize -= bytes; 78 mOffset += bytes;
|
/prebuilts/clang/host/darwin-x86/clang-4579689/include/llvm/DebugInfo/PDB/Native/ |
GSIStreamBuilder.h | 30 static ArrayRef<uint8_t> bytes(const codeview::CVSymbol &Item) { function in struct:llvm::BinaryItemTraits
|
/prebuilts/clang/host/darwin-x86/clang-4630689/include/llvm/DebugInfo/PDB/Native/ |
GSIStreamBuilder.h | 30 static ArrayRef<uint8_t> bytes(const codeview::CVSymbol &Item) { function in struct:llvm::BinaryItemTraits
|
/prebuilts/clang/host/darwin-x86/clang-4639204/include/llvm/DebugInfo/PDB/Native/ |
GSIStreamBuilder.h | 30 static ArrayRef<uint8_t> bytes(const codeview::CVSymbol &Item) { function in struct:llvm::BinaryItemTraits
|
/prebuilts/clang/host/darwin-x86/clang-4691093/include/llvm/DebugInfo/PDB/Native/ |
GSIStreamBuilder.h | 30 static ArrayRef<uint8_t> bytes(const codeview::CVSymbol &Item) { function in struct:llvm::BinaryItemTraits
|
/prebuilts/clang/host/linux-x86/clang-4579689/include/llvm/DebugInfo/PDB/Native/ |
GSIStreamBuilder.h | 30 static ArrayRef<uint8_t> bytes(const codeview::CVSymbol &Item) { function in struct:llvm::BinaryItemTraits
|
/prebuilts/clang/host/linux-x86/clang-4630689/include/llvm/DebugInfo/PDB/Native/ |
GSIStreamBuilder.h | 30 static ArrayRef<uint8_t> bytes(const codeview::CVSymbol &Item) { function in struct:llvm::BinaryItemTraits
|
/prebuilts/clang/host/linux-x86/clang-4639204/include/llvm/DebugInfo/PDB/Native/ |
GSIStreamBuilder.h | 30 static ArrayRef<uint8_t> bytes(const codeview::CVSymbol &Item) { function in struct:llvm::BinaryItemTraits
|
/prebuilts/clang/host/linux-x86/clang-4691093/include/llvm/DebugInfo/PDB/Native/ |
GSIStreamBuilder.h | 30 static ArrayRef<uint8_t> bytes(const codeview::CVSymbol &Item) { function in struct:llvm::BinaryItemTraits
|
/prebuilts/go/darwin-x86/src/bytes/ |
reader.go | 5 package bytes package 23 // Len returns the number of bytes of the unread portion of the 33 // Size is the number of bytes available for reading via ReadAt. 53 return 0, errors.New("bytes.Reader.ReadAt: negative offset") 80 return errors.New("bytes.Reader.UnreadByte: at beginning of slice") 105 return errors.New("bytes.Reader.UnreadRune: previous operation was not ReadRune") 124 return 0, errors.New("bytes.Reader.Seek: invalid whence") 127 return 0, errors.New("bytes.Reader.Seek: negative position") 142 panic("bytes.Reader.WriteTo: invalid Write count")
|
/prebuilts/go/linux-x86/src/bytes/ |
reader.go | 5 package bytes package 23 // Len returns the number of bytes of the unread portion of the 33 // Size is the number of bytes available for reading via ReadAt. 53 return 0, errors.New("bytes.Reader.ReadAt: negative offset") 80 return errors.New("bytes.Reader.UnreadByte: at beginning of slice") 105 return errors.New("bytes.Reader.UnreadRune: previous operation was not ReadRune") 124 return 0, errors.New("bytes.Reader.Seek: invalid whence") 127 return 0, errors.New("bytes.Reader.Seek: negative position") 142 panic("bytes.Reader.WriteTo: invalid Write count")
|
/system/chre/apps/chqts/src/shared/ |
nano_string.cc | 36 uint8_t *bytes = static_cast<uint8_t*>(mem); local 38 bytes[i] = static_cast<uint8_t>(val); 42 void memcpy(void *d, const void *s, size_t bytes) { 45 for (size_t i = 0; i < bytes; i++) {
|
/system/chre/platform/include/chre/platform/ |
memory_manager.h | 40 * @param bytes The size in bytes to allocate. 43 void *nanoappAlloc(Nanoapp *app, uint32_t bytes); 54 * @return current total allocated memory in bytes. 68 * @return max total allocatable memory in bytes. 87 * @param size Size of the buffer in bytes. 101 //! The amount of memory in bytes allocated (not including header). 102 uint32_t bytes; member in struct:chre::MemoryManager::AllocHeader::__anon2666 112 //! Stores total allocated memory in bytes (not including header). 118 //! The maximum allowable total allocated memory in bytes for all nanoapps [all...] |
/system/core/libunwindstack/tests/ |
ElfTestUtils.cpp | 101 ssize_t bytes = 0x100; local 113 // Assumes the file is less than 1024 bytes. 115 bytes = TEMP_FAILURE_RETRY(read(fd, buf.data(), buf.size())); 116 ASSERT_GT(bytes, 0); 118 ASSERT_NE(static_cast<size_t>(bytes), buf.size()) 121 buf.resize(bytes); 130 shdr.sh_size = bytes;
|
MemoryRemoteTest.cpp | 136 size_t bytes = local 139 ASSERT_LE(1024U, bytes); 140 for (size_t i = 0; i < bytes; i++) { 145 bytes = 147 ASSERT_EQ(1024U, bytes); 148 for (size_t i = 0; i < bytes; i++) { 329 size_t bytes = remote_ptrace.Read(reinterpret_cast<uint64_t>(mapping), &value, sizeof(value)); local 330 ASSERT_EQ(sizeof(value), bytes); local 332 bytes = remote_ptrace.Read(reinterpret_cast<uint64_t>(mapping) + page_size, &value, sizeof(value)); 333 ASSERT_EQ(sizeof(value), bytes); local 336 ASSERT_EQ(sizeof(value), bytes); local 344 ASSERT_EQ(sizeof(value), bytes); local 349 ASSERT_EQ(sizeof(value), bytes); local [all...] |
/system/keymaster/tests/ |
ckdf_test.cpp | 74 string bytes = hex2str(hex); local 75 Blob retval(reinterpret_cast<const uint8_t*>(bytes.data()), bytes.size());
|