/external/guava/guava-tests/test/com/google/common/primitives/ |
BytesTest.java | 32 * Unit test for {@link Bytes}. 48 assertEquals(((Byte) value).hashCode(), Bytes.hashCode(value)); 53 assertFalse(Bytes.contains(EMPTY, (byte) 1)); 54 assertFalse(Bytes.contains(ARRAY1, (byte) 2)); 55 assertFalse(Bytes.contains(ARRAY234, (byte) 1)); 56 assertTrue(Bytes.contains(new byte[] {(byte) -1}, (byte) -1)); 57 assertTrue(Bytes.contains(ARRAY234, (byte) 2)); 58 assertTrue(Bytes.contains(ARRAY234, (byte) 3)); 59 assertTrue(Bytes.contains(ARRAY234, (byte) 4)); 63 assertEquals(-1, Bytes.indexOf(EMPTY, (byte) 1)) [all...] |
/external/llvm/lib/Support/ |
circular_raw_ostream.cpp | 26 unsigned Bytes = 28 memcpy(Cur, Ptr, Bytes); 29 Size -= Bytes; 30 Cur += Bytes;
|
StreamableMemoryObject.cpp | 95 // keep fetching until we run out of bytes 102 *ptr = Bytes[address + BytesSkipped]; 111 memcpy(buf, &Bytes[address + BytesSkipped], size); 125 Bytes.reserve(size); 136 Bytes(kChunkSize), Streamer(streamer), BytesRead(0), BytesSkipped(0), 138 BytesRead = streamer->GetBytes(&Bytes[0], kChunkSize);
|
/external/llvm/tools/llvm-objdump/ |
llvm-objdump.h | 24 void DumpBytes(StringRef bytes); 29 StringRef Bytes; 31 StringRefMemoryObject(StringRef bytes) : Bytes(bytes) {} 34 uint64_t getExtent() const { return Bytes.size(); } 39 *Byte = Bytes[Addr];
|
/external/llvm/include/llvm/Support/ |
StreamableMemoryObject.h | 42 /// getExtent - Returns the size of the region in bytes. (The region is 45 /// May block until all bytes in the stream have been read 51 /// May block until (address - base) bytes have been read 58 /// readBytes - Tries to read a contiguous range of bytes from the 60 /// May block until (address - base + size) bytes have 62 /// not do partial reads - if size bytes cannot be read, 67 /// @param size - The maximum number of bytes to copy. 69 /// and large enough to hold size bytes. 71 /// of bytes actually read. May be NULL. 82 /// May block until (address - base + size) bytes have been rea 157 size_t bytes = Streamer->GetBytes(&Bytes[BytesRead + BytesSkipped], local [all...] |
/external/llvm/tools/llvm-mc/ |
Disassembler.cpp | 10 // This class implements the disassembler of strings of bytes written in 39 const ByteArrayTy &Bytes; 41 VectorMemoryObject(const ByteArrayTy &bytes) : Bytes(bytes) {} 44 uint64_t getExtent() const { return Bytes.size(); } 49 *Byte = Bytes[Addr].first; 56 const ByteArrayTy &Bytes, 60 VectorMemoryObject memoryObject(Bytes); 66 for (Index = 0; Index < Bytes.size(); Index += Size) [all...] |
/external/elfutils/libelf/ |
gelf_xlate.c | 112 #define INLINE2(Bytes, FName, TName) \ 113 INLINE3 (Bytes, FName, TName) 114 #define INLINE3(Bytes, FName, TName) \ 117 switch (Bytes) \ 135 dest += Bytes; \ 136 ptr += Bytes; \ 144 ptr -= Bytes; \ 145 dest -= Bytes; \
|
/sdk/eclipse/plugins/com.android.ide.eclipse.ddms/src/com/android/ide/eclipse/ddms/systrace/ |
SystraceTask.java | 21 import com.google.common.primitives.Bytes; 72 mBuffer = Bytes.ensureCapacity(mBuffer, mDataLength + length + 1, 1024);
|
/external/llvm/lib/MC/MCDisassembler/ |
Disassembler.cpp | 113 uint8_t *Bytes; 117 DisasmMemoryObject(uint8_t *bytes, uint64_t size, uint64_t basePC) : 118 Bytes(bytes), Size(size), BasePC(basePC) {} 126 *Byte = Bytes[Addr - BasePC]; 134 // disassembler context specified in the parameter DC. The bytes of the 135 // instruction are specified in the parameter Bytes, and contains at least 136 // BytesSize number of bytes. The instruction is at the address specified by 139 // parameter OutStringSize. This function returns the number of bytes in the 141 // returns zero the caller will have to pick how many bytes they want to ste [all...] |
/external/llvm/include/llvm-c/ |
Disassembler.h | 41 * information for each operand, the bytes for the specific operand in the 155 * the parameter DC. The bytes of the instruction are specified in the 156 * parameter Bytes, and contains at least BytesSize number of bytes. The 160 * function returns the number of bytes in the instruction or zero if there was 163 size_t LLVMDisasmInstruction(LLVMDisasmContextRef DC, uint8_t *Bytes,
|
/external/guava/guava/src/com/google/common/primitives/ |
Bytes.java | 37 * bytes as neither signed nor unsigned</i>. The methods which specifically 38 * treat bytes as signed or unsigned are found in {@link SignedBytes} and {@link 47 public final class Bytes { 48 private Bytes() {} 295 && Bytes.indexOf(array, (Byte) target, start, end) != -1; 301 int i = Bytes.indexOf(array, (Byte) target, start, end); 312 int i = Bytes.lastIndexOf(array, (Byte) target, start, end); 359 result = 31 * result + Bytes.hashCode(array[i]);
|
/external/llvm/lib/Target/Mips/Disassembler/ |
MipsDisassembler.cpp | 230 /// readInstruction - read four bytes from the MemoryObject 237 uint8_t Bytes[4]; 239 // We want to read exactly 4 Bytes of data. 240 if (region.readBytes(address, 4, (uint8_t*)Bytes, NULL) == -1) { 247 insn = (Bytes[3] << 0) | 248 (Bytes[2] << 8) | 249 (Bytes[1] << 16) | 250 (Bytes[0] << 24); 254 insn = (Bytes[0] << 0) | 255 (Bytes[1] << 8) [all...] |
/external/llvm/lib/Target/ARM/ |
Thumb1RegisterInfo.cpp | 143 static unsigned calcNumMI(int Opc, int ExtraOpc, unsigned Bytes, 149 unsigned ThisVal = (Bytes > Chunk) ? Chunk : Bytes; 150 Bytes -= ThisVal; 157 NumMIs += Bytes / Chunk; 158 if ((Bytes % Chunk) != 0) 175 unsigned Bytes = (unsigned)NumBytes; 176 if (isSub) Bytes = -NumBytes; 177 bool isMul4 = (Bytes & 3) == 0; 198 Bytes &= ~3 [all...] |
ARMLoadStoreOptimizer.cpp | 530 unsigned Bytes, unsigned Limit, 548 if (Bytes == 0 || (Limit && Bytes >= Limit)) 554 (MI->getOperand(2).getImm()*Scale) == Bytes && 563 unsigned Bytes, unsigned Limit, 580 if (Bytes == 0 || (Limit && Bytes >= Limit)) 587 (MI->getOperand(2).getImm()*Scale) == Bytes && 717 unsigned Bytes = getLSMultipleTransferSize(MI); 739 isMatchingDecrement(PrevMBBI, Base, Bytes, 0, Pred, PredReg)) [all...] |
/external/guava/guava-tests/test/com/google/common/io/ |
LittleEndianDataInputStreamTest.java | 19 import com.google.common.primitives.Bytes; 73 assertEquals(Bytes.asList(data), Bytes.asList(b)); 132 out.write(new byte[] { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9}); // 10 bytes of junk to skip
|
LittleEndianDataOutputStreamTest.java | 20 import com.google.common.primitives.Bytes; 146 assertEquals(Bytes.asList(expected), Bytes.asList(actual));
|
/sdk/emulator/mksdcard/ |
mksdcard.c | 52 typedef Byte* Bytes; 54 #define BYTE_(p,i) (((Bytes)(p))[(i)]) 113 boot_sector_init( Bytes boot, Bytes info, Wide disk_size, const char* label ) 168 fat_init( Bytes fat ) 177 write_sector( FILE* file, Bytes sector ) 181 fprintf(stderr, "Failed to write sector of %d bytes: %s\n", BYTES_PER_SECTOR, strerror(errno)); 198 fprintf(stderr, "Failed to write %d bytes: %s\n", len, strerror(errno)); 211 fprintf(stderr, " if <size> is a simple integer, it specifies a size in bytes\n" ); 216 fprintf(stderr, "Maximum size is %lld bytes, %lldK, %lldM or %lldG\n" [all...] |
/external/clang/include/clang/AST/ |
Attr.h | 42 void *operator new(size_t Bytes, const clang::ASTContext &C, 46 void *operator new[](size_t Bytes, const clang::ASTContext &C, 68 void* operator new(size_t bytes) throw() { 77 void* operator new(size_t Bytes, ASTContext &C, 79 return ::operator new(Bytes, C, Alignment);
|
/external/llvm/include/llvm/MC/ |
MCContext.h | 356 /// @param Bytes The number of bytes to allocate. Calculated by the compiler. 361 inline void *operator new(size_t Bytes, llvm::MCContext &C, 363 return C.Allocate(Bytes, Alignment); 390 /// @param Bytes The number of bytes to allocate. Calculated by the compiler. 395 inline void *operator new[](size_t Bytes, llvm::MCContext& C, 397 return C.Allocate(Bytes, Alignment);
|
/external/llvm/lib/Target/NVPTX/ |
NVPTXAsmPrinter.h | 86 // We first layout the aggregate in 'buffer' in bytes, except for 95 unsigned size; // size of the buffer in bytes 117 unsigned addBytes(unsigned char *Ptr, int Num, int Bytes) { 119 assert((curpos+Bytes) <= size); 124 for ( int i=Num; i < Bytes ; ++i) { 145 // print out in bytes 152 // print out in 4-bytes or 8-bytes 277 void bufferLEByte(Constant *CPV, int Bytes, AggBuffer *aggBuffer) ;
|
NVPTXAsmPrinter.cpp | [all...] |
/external/skia/src/images/ |
SkMovie_gif.cpp | 70 const uint8_t* b = (const uint8_t*)image->ExtensionBlocks[j].Bytes; 227 bool has_transparency = ((eb->Bytes[0] & 1) == 1); 229 transparent = (unsigned char)eb->Bytes[3]; 258 int disposal = ((eb->Bytes[0] >> 2) & 7); 275 *trans = ((eb->Bytes[0] & 1) == 1); 276 *disposal = ((eb->Bytes[0] >> 2) & 7);
|
/packages/apps/Tag/src/com/android/apps/tag/record/ |
TextRecord.java | 22 import com.google.common.primitives.Bytes; 145 byte[] data = Bytes.concat(
|
/external/giflib/ |
gifalloc.c | 270 ep->Bytes = (char *)malloc(ep->ByteCount); 271 if (ep->Bytes == NULL) 275 memcpy(ep->Bytes, ExtData, Len); 292 (void)free((char *)ep->Bytes);
|
/external/valgrind/main/none/tests/x86-linux/ |
seg_override.c | 18 /*Declare as bytes to avoid alignment problems */ 21 } Bytes; 62 printf("got %d bytes\n", res );
|