/external/tensorflow/tensorflow/java/src/main/native/ |
graph_jni.cc | 91 jbyte* bytes = env->GetByteArrayElements(graph_def, &is_copy); local 93 TF_NewBufferFromString(bytes, env->GetArrayLength(graph_def)); 102 env->ReleaseByteArrayElements(graph_def, bytes, JNI_ABORT);
|
/external/toybox/toys/other/ |
nsenter.c | 83 int bytes = sprintf(toybuf, "0 %u 1", eugid), fd = xopen(map, O_WRONLY); local 85 xwrite(fd, toybuf, bytes);
|
/external/toybox/toys/posix/ |
xargs.c | 21 -s Size in bytes per command line 50 long entries, bytes; 54 // If out==NULL count TT.bytes and TT.entries, stopping at max. 82 TT.bytes += sizeof(char *); 85 if (++TT.bytes >= TT.max_bytes && TT.max_bytes) return save; 100 TT.bytes += sizeof(char *)+strlen(data)+1; 101 if (TT.max_bytes && TT.bytes >= TT.max_bytes) return data; 113 int entries, bytes, done = 0, status; local 119 // with -s. POSIX also says we have to reserve 2048 bytes "to guarantee 136 for (entries = 0, bytes = -1; entries < toys.optc; entries++, bytes++ [all...] |
/external/turbine/java/com/google/turbine/bytecode/ |
ByteReader.java | 28 private final byte[] bytes; field in class:ByteReader 32 public ByteReader(byte[] bytes, int pos) { 33 this.bytes = bytes; 34 this.indexed = new IndexedByteArrayInputStream(bytes, pos, bytes.length); 39 return ByteStreams.newDataInput(bytes, i); 62 /** Skips n bytes of input. */
|
/external/v8/src/arm64/ |
utils-arm64.h | 63 uint8_t bytes[8]; local 66 bytes[i] = (static_cast<uint64_t>(value) & mask) >> (i * 8); 81 result |= bytes[permute_table[block_bytes_log2 - 1][i]];
|
/external/webp/include/webp/ |
mux_types.h | 60 const uint8_t* bytes; member in struct:WebPData 75 free((void*)webp_data->bytes); 85 if (src->bytes != NULL && src->size != 0) { 86 dst->bytes = (uint8_t*)malloc(src->size); 87 if (dst->bytes == NULL) return 0; 88 memcpy((void*)dst->bytes, src->bytes, src->size);
|
/external/webp/src/webp/ |
mux_types.h | 60 const uint8_t* bytes; member in struct:WebPData 75 free((void*)webp_data->bytes); 85 if (src->bytes != NULL && src->size != 0) { 86 dst->bytes = (uint8_t*)malloc(src->size); 87 if (dst->bytes == NULL) return 0; 88 memcpy((void*)dst->bytes, src->bytes, src->size);
|
/external/webrtc/webrtc/base/ |
bitbuffer_unittest.cc | 20 const uint8_t bytes[64] = {0}; local 21 BitBuffer buffer(bytes, 32); 42 const uint8_t bytes[] = {0x0A, 0xBC, 0xDE, 0xF1, 0x23, 0x45, 0x67, 0x89}; local 46 BitBuffer buffer(bytes, 8); 58 const uint8_t bytes[] = {0x0A, 0xBC, 0xDE, 0xF1, 0x23, local 63 BitBuffer buffer(bytes, 9); 91 // The bytes. It almost looks like counting down by two at a time, except the 93 const uint8_t bytes[] = {0x1F, 0xDB, 0x97, 0x53, 0x0E, 0xCA, 0x86, 0x42}; local 98 BitBuffer buffer(bytes, 8); 115 const uint8_t bytes[] = {0x4D, 0x32} local 141 uint8_t bytes[4] = {0}; local 230 const uint8_t bytes[] = {0x00, 0xFF, 0xFF}; local 248 uint8_t bytes[16] = {0}; local 280 uint8_t bytes[16] = {0}; local 303 uint8_t bytes[64] = {0}; local 318 uint8_t bytes[] = {0xFF, 0xFF}; local [all...] |
/frameworks/base/cmds/statsd/tests/ |
StatsLogProcessor_test.cpp | 157 vector<uint8_t> bytes; local 158 p.onDumpReport(key, 1, false, ADB_DUMP, &bytes); 161 output.ParseFromArray(bytes.data(), bytes.size()); 182 vector<uint8_t> bytes; local 183 p.onDumpReport(key, 1, false, ADB_DUMP, &bytes); 186 output.ParseFromArray(bytes.data(), bytes.size()); 208 vector<uint8_t> bytes; local 209 p.onDumpReport(key, 1, false, ADB_DUMP, &bytes); [all...] |
/frameworks/base/core/java/com/android/internal/util/ |
BitwiseInputStream.java | 96 int bytes = (bits >>> 3) + ((bits & 0x07) > 0 ? 1 : 0); // &7==%8 local 97 byte[] arr = new byte[bytes]; 98 for (int i = 0; i < bytes; i++) {
|
/frameworks/base/libs/hwui/renderstate/ |
TextureState.cpp | 70 unsigned char bytes[SHADOW_LUT_SIZE]; local 73 bytes[i] = computeShadowOpacity(inputRatio) * 255; 75 mShadowLutTexture->upload(GL_ALPHA, SHADOW_LUT_SIZE, 1, GL_ALPHA, GL_UNSIGNED_BYTE, &bytes);
|
/frameworks/base/tests/net/java/com/android/internal/util/ |
BitUtilsTest.java | 89 assertEquals(0x00000000, bytesToBEInt(bytes(0, 0, 0, 0))); 90 assertEquals(0xffffffff, bytesToBEInt(bytes(255, 255, 255, 255))); 91 assertEquals(0x0a000001, bytesToBEInt(bytes(10, 0, 0, 1))); 92 assertEquals(0x0a000002, bytesToBEInt(bytes(10, 0, 0, 2))); 93 assertEquals(0x0a001fff, bytesToBEInt(bytes(10, 0, 31, 255))); 94 assertEquals(0xe0000001, bytesToBEInt(bytes(224, 0, 0, 1))); 96 assertEquals(0x00000000, bytesToLEInt(bytes(0, 0, 0, 0))); 97 assertEquals(0x01020304, bytesToLEInt(bytes(4, 3, 2, 1))); 98 assertEquals(0xffff0000, bytesToLEInt(bytes(0, 0, 255, 255))); 119 static byte[] bytes(int b1, int b2, int b3, int b4) method in class:BitUtilsTest [all...] |
/frameworks/rs/ |
rsThreadIO.h | 70 uint32_t bytes; member in struct:android::renderscript::ThreadIO::CoreCmdHeaderRec 74 uint32_t bytes; member in struct:android::renderscript::ThreadIO::ClientCmdHeaderRec
|
/libcore/ojluni/src/main/native/ |
ObjectOutputStream.c | 60 jbyte *bytes; local 83 bytes = (*env)->GetPrimitiveArrayCritical(env, dst, NULL); 84 if (bytes == NULL) { /* exception thrown */ 99 bytes[dstpos++] = (ival >> 24) & 0xFF; 100 bytes[dstpos++] = (ival >> 16) & 0xFF; 101 bytes[dstpos++] = (ival >> 8) & 0xFF; 102 bytes[dstpos++] = (ival >> 0) & 0xFF; 106 (*env)->ReleasePrimitiveArrayCritical(env, dst, bytes, 0); 132 jbyte *bytes; local 155 bytes = (*env)->GetPrimitiveArrayCritical(env, dst, NULL) [all...] |
/libcore/ojluni/src/test/java/time/tck/java/time/serial/ |
TCKOffsetDateTimeSerialization.java | 109 byte[] bytes = baos.toByteArray(); 111 assertSerializedBySer(OffsetDateTime.of(ldt, ZoneOffset.ofHours(1)), bytes); local
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/ |
DictionaryStats.java | 63 BigDecimal bytes = new BigDecimal(mDictFileSize); local 64 BigDecimal kb = bytes.divide(new BigDecimal(1024), 2, BigDecimal.ROUND_HALF_UP); 66 return bytes.toString() + " bytes";
|
/prebuilts/clang/host/darwin-x86/clang-4053586/prebuilt_include/llvm/include/llvm/DebugInfo/PDB/Native/ |
TpiStreamBuilder.h | 31 static ArrayRef<uint8_t> bytes(const codeview::CVType &Item) { function in struct:llvm::BinaryItemTraits
|
/prebuilts/clang/host/linux-x86/clang-4053586/prebuilt_include/llvm/include/llvm/DebugInfo/PDB/Native/ |
TpiStreamBuilder.h | 31 static ArrayRef<uint8_t> bytes(const codeview::CVType &Item) { function in struct:llvm::BinaryItemTraits
|
/system/core/fastboot/ |
socket_test.cpp | 72 ssize_t bytes = sock->ReceiveAll(&received[0], received.length(), kTestTimeoutMs); local 73 return static_cast<size_t>(bytes) == received.length() && received == message; 165 ssize_t bytes = server->Receive(buffer, 5, kTestTimeoutMs); local 166 if (bytes == 5) { 169 EXPECT_EQ(-1, bytes); 242 // number of bytes indicated by the next entry in |test|. 254 // Count the bytes we've sent to find where the next buffer should start and how many 255 // bytes should be left in it. 356 EXPECT_NONFATAL_FAILURE(mock->Receive(&c, 1, 0), "not enough bytes (1) for foo");
|
/system/core/libbacktrace/ |
backtrace_benchmarks.cpp | 56 ssize_t bytes = read(fd, buffer, sizeof(buffer)); local 57 if (bytes <= 0) { 61 for (size_t i = 0; i < static_cast<size_t>(bytes); i++) {
|
/system/nfc/utils/test/ |
config_test.cc | 80 auto bytes = config.getBytes("BYTES_VALUE"); local 81 EXPECT_EQ(bytes.size(), 5u); 82 EXPECT_EQ(bytes[0], 10); 83 EXPECT_EQ(bytes[1], 11); 84 EXPECT_EQ(bytes[2], 12); 85 EXPECT_EQ(bytes[3], 255); 86 EXPECT_EQ(bytes[4], 0); 128 auto bytes = config.getBytes("BYTES_VALUE"); local 129 EXPECT_EQ(bytes.size(), 5u); 130 EXPECT_EQ(bytes[0], 10) [all...] |
/system/update_engine/payload_consumer/ |
extent_writer_unittest.cc | 70 const string bytes = "1234"; local 74 EXPECT_TRUE(direct_writer.Write(bytes.data(), bytes.size())); 77 EXPECT_EQ(static_cast<off_t>(kBlockSize + bytes.size()), 85 bytes.data(), bytes.data() + bytes.size());
|
/toolchain/binutils/binutils-2.27/bfd/ |
i386dynix.c | 62 struct external_exec *bytes = (struct external_exec *)raw_bytes; local 69 /* Now fill in fields in the execp, from the bytes in the raw data. */ 70 execp->a_info = H_GET_32 (abfd, bytes->e_info); 71 execp->a_text = GET_WORD (abfd, bytes->e_text); 72 execp->a_data = GET_WORD (abfd, bytes->e_data); 73 execp->a_bss = GET_WORD (abfd, bytes->e_bss); 74 execp->a_syms = GET_WORD (abfd, bytes->e_syms); 75 execp->a_entry = GET_WORD (abfd, bytes->e_entry); 76 execp->a_trsize = GET_WORD (abfd, bytes->e_trsize); 77 execp->a_drsize = GET_WORD (abfd, bytes->e_drsize) [all...] |
/external/annotation-tools/annotation-file-utilities/src/annotator/ |
Source.java | 89 ByteArrayOutputStream bytes = new ByteArrayOutputStream(); local 92 bytes.write(c); 95 source.append(bytes.toString()); 96 bytes.close();
|
/external/volley/src/main/java/com/android/volley/toolbox/ |
BasicNetwork.java | 270 PoolingByteArrayOutputStream bytes = local 280 bytes.write(buffer, 0, count); 282 return bytes.toByteArray(); 295 bytes.close();
|