/external/llvm/unittests/Bitcode/ |
D | BitstreamReaderTest.cpp | 40 BitstreamCursor Cursor(Reader); in TEST() local 42 EXPECT_FALSE(Cursor.AtEndOfStream()); in TEST() 43 (void)Cursor.Read(8); in TEST() 44 EXPECT_FALSE(Cursor.AtEndOfStream()); in TEST() 45 (void)Cursor.Read(24); in TEST() 46 EXPECT_TRUE(Cursor.AtEndOfStream()); in TEST() 48 Cursor.JumpToBit(0); in TEST() 49 EXPECT_FALSE(Cursor.AtEndOfStream()); in TEST() 51 Cursor.JumpToBit(32); in TEST() 52 EXPECT_TRUE(Cursor.AtEndOfStream()); in TEST() [all …]
|
/external/llvm/lib/CodeGen/MIRParser/ |
D | MILexer.cpp | 30 class Cursor { class 35 Cursor(NoneType) : Ptr(nullptr), End(nullptr) {} in Cursor() function in __anon76bad3b50111::Cursor 37 explicit Cursor(StringRef Str) { in Cursor() function in __anon76bad3b50111::Cursor 50 StringRef upto(Cursor C) const { in upto() 85 static Cursor skipWhitespace(Cursor C) { in skipWhitespace() 94 static Cursor skipComment(Cursor C) { in skipComment() 114 Cursor C = Cursor(Value.substr(1, Value.size() - 2)); in unescapeQuotedString() 140 static Cursor lexStringConstant(Cursor C, ErrorCallbackType ErrorCallback) { in lexStringConstant() 154 static Cursor lexName(Cursor C, MIToken &Token, MIToken::TokenKind Type, in lexName() 159 if (Cursor R = lexStringConstant(C, ErrorCallback)) { in lexName() [all …]
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/MIRParser/ |
D | MILexer.cpp | 35 class Cursor { class 40 Cursor(NoneType) {} in Cursor() function in __anone4b878570111::Cursor 42 explicit Cursor(StringRef Str) { in Cursor() function in __anone4b878570111::Cursor 55 StringRef upto(Cursor C) const { in upto() 90 static Cursor skipWhitespace(Cursor C) { in skipWhitespace() 99 static Cursor skipComment(Cursor C) { in skipComment() 119 Cursor C = Cursor(Value.substr(1, Value.size() - 2)); in unescapeQuotedString() 145 static Cursor lexStringConstant(Cursor C, ErrorCallbackType ErrorCallback) { in lexStringConstant() 159 static Cursor lexName(Cursor C, MIToken &Token, MIToken::TokenKind Type, in lexName() 164 if (Cursor R = lexStringConstant(C, ErrorCallback)) { in lexName() [all …]
|
/external/llvm/include/llvm/Support/ |
D | GCOV.h | 56 GCOVBuffer(MemoryBuffer *B) : Buffer(B), Cursor(0) {} in GCOVBuffer() 65 Cursor = 4; in readGCNOFormat() 76 Cursor = 4; in readGCDAFormat() 82 StringRef VersionStr = Buffer->getBuffer().slice(Cursor, Cursor + 4); in readGCOVVersion() 84 Cursor += 4; in readGCOVVersion() 89 Cursor += 4; in readGCOVVersion() 94 Cursor += 4; in readGCOVVersion() 105 StringRef Tag = Buffer->getBuffer().slice(Cursor, Cursor + 4); in readFunctionTag() 110 Cursor += 4; in readFunctionTag() 117 StringRef Tag = Buffer->getBuffer().slice(Cursor, Cursor + 4); in readBlockTag() [all …]
|
/external/rust/crates/syn/src/ |
D | buffer.rs | 90 pub fn begin(&self) -> Cursor { in begin() argument 92 unsafe { Cursor::create(ptr, ptr.add(self.entries.len() - 1)) } in begin() 109 pub struct Cursor<'a> { struct 120 impl<'a> Cursor<'a> { implementation 134 Cursor { in empty() 156 Cursor { in create() 174 unsafe fn bump_ignore_group(self) -> Cursor<'a> { in bump_ignore_group() 175 Cursor::create(self.ptr.offset(1), self.scope) in bump_ignore_group() 202 pub fn group(mut self, delim: Delimiter) -> Option<(Cursor<'a>, Span, Cursor<'a>)> { in group() 213 let inside_of_group = unsafe { Cursor::create(self.ptr.add(1), end_of_group) }; in group() [all …]
|
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/ProfileData/ |
D | GCOV.h | 78 Cursor = 4; in readGCNOFormat() 89 Cursor = 4; in readGCDAFormat() 95 StringRef VersionStr = Buffer->getBuffer().slice(Cursor, Cursor + 4); in readGCOVVersion() 97 Cursor += 4; in readGCOVVersion() 102 Cursor += 4; in readGCOVVersion() 107 Cursor += 4; in readGCOVVersion() 118 StringRef Tag = Buffer->getBuffer().slice(Cursor, Cursor + 4); in readFunctionTag() 123 Cursor += 4; in readFunctionTag() 130 StringRef Tag = Buffer->getBuffer().slice(Cursor, Cursor + 4); in readBlockTag() 135 Cursor += 4; in readBlockTag() [all …]
|
/external/perfetto/src/trace_processor/sqlite/ |
D | sql_stats_table.h | 45 class Cursor final : public SqliteTable::BaseCursor { 47 explicit Cursor(SqlStatsTable* storage); 48 ~Cursor() final; 59 Cursor(Cursor&) = delete; 60 Cursor& operator=(const Cursor&) = delete; 62 Cursor(Cursor&&) noexcept = default; 63 Cursor& operator=(Cursor&&) = default;
|
D | stats_table.h | 37 class Cursor final : public SqliteTable::BaseCursor { 39 explicit Cursor(StatsTable*); 40 ~Cursor() final; 51 Cursor(Cursor&) = delete; 52 Cursor& operator=(const Cursor&) = delete; 54 Cursor(Cursor&&) noexcept = default; 55 Cursor& operator=(Cursor&&) = default;
|
D | sql_stats_table.cc | 52 return std::unique_ptr<SqliteTable::BaseCursor>(new Cursor(this)); in CreateCursor() 59 SqlStatsTable::Cursor::Cursor(SqlStatsTable* table) in Cursor() function in perfetto::trace_processor::SqlStatsTable::Cursor 63 SqlStatsTable::Cursor::~Cursor() = default; 65 base::Status SqlStatsTable::Cursor::Filter(const QueryConstraints&, in Filter() 68 *this = Cursor(table_); in Filter() 73 base::Status SqlStatsTable::Cursor::Next() { in Next() 78 bool SqlStatsTable::Cursor::Eof() { in Eof() 82 base::Status SqlStatsTable::Cursor::Column(sqlite3_context* context, int col) { in Column()
|
D | db_sqlite_table.h | 57 class Cursor final : public SqliteTable::BaseCursor { 59 Cursor(DbSqliteTable*, QueryCache*); 60 ~Cursor() final; 62 Cursor(Cursor&&) noexcept = default; 63 Cursor& operator=(Cursor&&) = default; 89 Cursor(const Cursor&) = delete; 90 Cursor& operator=(const Cursor&) = delete;
|
D | stats_table.cc | 49 return std::unique_ptr<SqliteTable::BaseCursor>(new Cursor(this)); in CreateCursor() 56 StatsTable::Cursor::Cursor(StatsTable* table) in Cursor() function in perfetto::trace_processor::StatsTable::Cursor 61 StatsTable::Cursor::~Cursor() = default; 63 base::Status StatsTable::Cursor::Filter(const QueryConstraints&, in Filter() 66 *this = Cursor(table_); in Filter() 70 base::Status StatsTable::Cursor::Column(sqlite3_context* ctx, int N) { in Column() 123 base::Status StatsTable::Cursor::Next() { in Next() 143 bool StatsTable::Cursor::Eof() { in Eof()
|
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/ |
D | ShadowMergeCursorTest.java | 5 import android.database.Cursor; 64 Cursor cursor = database.rawQuery(selectSql, null); in setupTable() 78 cursor = new MergeCursor( new Cursor[1] ); in testEmptyCursors() 84 Cursor[] cursors = new Cursor[2]; in testEmptyCursors() 95 Cursor[] cursors = new Cursor[2]; in testMoveToPositionEmptyCursor() 110 Cursor[] cursors = new Cursor[1]; in testBoundsSingleCursor() 118 Cursor[] cursors = new Cursor[2]; in testBoundsMultipleCursor() 125 private void assertBounds( Cursor[] cursors, int expectedLength ) { in assertBounds() 142 Cursor[] cursors = new Cursor[1]; in testGetDataSingleCursor() 152 Cursor[] cursors = new Cursor[2]; in testGetDataMultipleCursor() [all …]
|
D | ShadowCursorAdapterTest.java | 6 import android.database.Cursor; 20 private Cursor curs; 62 Cursor oldCursor = adapter.swapCursor(null); in testSwapCursor() 91 public TestAdapter(Cursor curs) { in TestAdapter() 96 public void bindView(View view, Context context, Cursor cursor) { in bindView() 100 public View newView(Context context, Cursor cursor, ViewGroup parent) { in newView() 106 public TestAdapterWithFlags(Cursor c, int flags) { in TestAdapterWithFlags() 110 @Override public View newView(Context context, Cursor cursor, ViewGroup parent) { in newView() 114 @Override public void bindView(View view, Context context, Cursor cursor) { in bindView()
|
/external/robolectric/robolectric/src/test/java/org/robolectric/shadows/ |
D | ShadowMergeCursorTest.java | 6 import android.database.Cursor; 75 Cursor cursor = database.rawQuery(selectSql, null); in setupTable() 96 cursor = new MergeCursor( new Cursor[1] ); in testEmptyCursors() 103 Cursor[] cursors = new Cursor[2]; in testEmptyCursors() 114 Cursor[] cursors = new Cursor[2]; in testMoveToPositionEmptyCursor() 129 Cursor[] cursors = new Cursor[1]; in testBoundsSingleCursor() 137 Cursor[] cursors = new Cursor[2]; in testBoundsMultipleCursor() 144 private void assertBounds( Cursor[] cursors, int expectedLength ) { in assertBounds() 161 Cursor[] cursors = new Cursor[1]; in testGetDataSingleCursor() 171 Cursor[] cursors = new Cursor[2]; in testGetDataMultipleCursor() [all …]
|
D | ShadowCursorAdapterTest.java | 6 import android.database.Cursor; 21 private Cursor curs; 69 Cursor oldCursor = adapter.swapCursor(null); in testSwapCursor() 91 try (Cursor newCursor = database.rawQuery("SELECT * FROM table_name;", null)) { in shouldNotErrorOnCursorChangeWhenNoFlagsAreSet() 100 public TestAdapter(Cursor curs) { in TestAdapter() 105 public void bindView(View view, Context context, Cursor cursor) { in bindView() 109 public View newView(Context context, Cursor cursor, ViewGroup parent) { in newView() 115 public TestAdapterWithFlags(Cursor c, int flags) { in TestAdapterWithFlags() 119 @Override public View newView(Context context, Cursor cursor, ViewGroup parent) { in newView() 123 @Override public void bindView(View view, Context context, Cursor cursor) { in bindView()
|
/external/rust/crates/proc-macro2/src/ |
D | parse.rs | 10 pub(crate) struct Cursor<'a> { struct 16 impl<'a> Cursor<'a> { argument 17 pub fn advance(&self, bytes: usize) -> Cursor<'a> { in advance() 19 Cursor { in advance() 54 fn parse(&self, tag: &str) -> Result<Cursor<'a>, Reject> { in parse() 64 type PResult<'a, O> = Result<(Cursor<'a>, O), Reject>; 66 fn skip_whitespace(input: Cursor) -> Cursor { in skip_whitespace() argument 114 fn block_comment(input: Cursor) -> PResult<&str> { in block_comment() 146 fn word_break(input: Cursor) -> Result<Cursor, Reject> { in word_break() argument 153 pub(crate) fn token_stream(mut input: Cursor) -> Result<TokenStream, LexError> { in token_stream() [all …]
|
/external/swiftshader/third_party/subzero/pnacl-llvm/include/llvm/Bitcode/NaCl/ |
D | NaClBitcodeParser.h | 118 explicit NaClBitcodeData(NaClBitstreamCursor &Cursor) in NaClBitcodeData() argument 119 : Cursor(Cursor), StartBit(Cursor.GetCurrentBitNo()) {} in NaClBitcodeData() 123 : Cursor(Data.Cursor), StartBit(Data.StartBit) {} in NaClBitcodeData() 127 return *Cursor.getBitStreamReader(); in GetReader() 131 NaClBitstreamCursor &GetCursor() const { return Cursor; } in GetCursor() 147 NaClBitstreamCursor &Cursor; 165 NaClBitcodeBlock(unsigned BlockID, NaClBitstreamCursor &Cursor) in NaClBitcodeBlock() argument 166 : NaClBitcodeData(Cursor), BlockID(BlockID), EnclosingBlock(0) { in NaClBitcodeBlock() 381 ErrorHandler(NaClBitcodeParser *Parser, NaClBitstreamCursor &Cursor) in ErrorHandler() argument 382 : NaClBitstreamCursor::ErrorHandler(Cursor), Parser(Parser) {} in ErrorHandler() [all …]
|
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Support/ |
D | DataExtractor.h | 54 class Cursor { 62 explicit Cursor(uint64_t Offset) : Offset(Offset), Err(Error::success()) {} in Cursor() function 180 uint64_t getUnsigned(Cursor &C, uint32_t Size) const { in getUnsigned() 233 uint64_t getAddress(Cursor &C) const { return getUnsigned(C, AddressSize); } in getAddress() 260 uint8_t getU8(Cursor &C) const { return getU8(&C.Offset, &C.Err); } in getU8() 291 uint8_t *getU8(Cursor &C, uint8_t *Dst, uint32_t Count) const; 298 void getU8(Cursor &C, SmallVectorImpl<uint8_t> &Dst, uint32_t Count) const { in getU8() 334 uint16_t getU16(Cursor &C) const { return getU16(&C.Offset, &C.Err); } in getU16() 403 uint32_t getU32(Cursor &C) const { return getU32(&C.Offset, &C.Err); } in getU32() 455 uint64_t getU64(Cursor &C) const { return getU64(&C.Offset, &C.Err); } in getU64() [all …]
|
/external/rust/crates/futures-util/src/io/ |
D | cursor.rs | 25 pub struct Cursor<T> { struct 26 inner: io::Cursor<T>, argument 29 impl<T> Cursor<T> { impl 46 Self { inner: io::Cursor::new(inner) } in new() 148 impl<T> AsyncSeek for Cursor<T> implementation 161 impl<T: AsRef<[u8]> + Unpin> AsyncRead for Cursor<T> { implementation 185 impl<T> AsyncBufRead for Cursor<T> implementation 226 impl AsyncWrite for Cursor<&mut [u8]> { implementation 230 impl AsyncWrite for Cursor<&mut Vec<u8>> { implementation 234 impl AsyncWrite for Cursor<Vec<u8>> { implementation [all …]
|
/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/ |
D | ShadowCursorWindow.java | 8 import android.database.Cursor; 50 case Cursor.FIELD_TYPE_NULL: in nativeGetBlob() 52 case Cursor.FIELD_TYPE_BLOB: in nativeGetBlob() 56 case Cursor.FIELD_TYPE_STRING: in nativeGetBlob() 71 if (val.type == Cursor.FIELD_TYPE_BLOB) { in nativeGetString() 135 … return WINDOW_DATA.get(windowPtr).putValue(new Value(value, Cursor.FIELD_TYPE_BLOB), row, column); in nativePutBlob() 145 …return WINDOW_DATA.get(windowPtr).putValue(new Value(value, Cursor.FIELD_TYPE_STRING), row, column… in nativePutString() 155 …return WINDOW_DATA.get(windowPtr).putValue(new Value(value, Cursor.FIELD_TYPE_INTEGER), row, colum… in nativePutLong() 165 …return WINDOW_DATA.get(windowPtr).putValue(new Value(value, Cursor.FIELD_TYPE_FLOAT), row, column); in nativePutDouble() 175 … return WINDOW_DATA.get(windowPtr).putValue(new Value(null, Cursor.FIELD_TYPE_NULL), row, column); in nativePutNull() [all …]
|
/external/robolectric/shadows/framework/src/main/java/org/robolectric/shadows/ |
D | ShadowLegacyCursorWindow.java | 8 import android.database.Cursor; 53 case Cursor.FIELD_TYPE_NULL: in nativeGetBlob() 55 case Cursor.FIELD_TYPE_BLOB: in nativeGetBlob() 59 case Cursor.FIELD_TYPE_STRING: in nativeGetBlob() 77 if (val.type == Cursor.FIELD_TYPE_BLOB) { in nativeGetString() 144 … return WINDOW_DATA.get(windowPtr).putValue(new Value(value, Cursor.FIELD_TYPE_BLOB), row, column); in nativePutBlob() 156 …return WINDOW_DATA.get(windowPtr).putValue(new Value(value, Cursor.FIELD_TYPE_STRING), row, column… in nativePutString() 166 …return WINDOW_DATA.get(windowPtr).putValue(new Value(value, Cursor.FIELD_TYPE_INTEGER), row, colum… in nativePutLong() 176 …return WINDOW_DATA.get(windowPtr).putValue(new Value(value, Cursor.FIELD_TYPE_FLOAT), row, column); in nativePutDouble() 186 … return WINDOW_DATA.get(windowPtr).putValue(new Value(null, Cursor.FIELD_TYPE_NULL), row, column); in nativePutNull() [all …]
|
/external/clang/lib/Frontend/ |
D | SerializedDiagnosticReader.cpp | 69 enum class SerializedDiagnosticReader::Cursor { enum in SerializedDiagnosticReader 75 llvm::ErrorOr<SerializedDiagnosticReader::Cursor> 86 return Cursor::BlockBegin; in skipUntilRecordOrBlock() 91 return Cursor::BlockEnd; in skipUntilRecordOrBlock() 103 return Cursor::Record; in skipUntilRecordOrBlock() 119 llvm::ErrorOr<Cursor> Res = skipUntilRecordOrBlock(Stream, BlockOrCode); in readMetaBlock() 124 case Cursor::Record: in readMetaBlock() 126 case Cursor::BlockBegin: in readMetaBlock() 129 case Cursor::BlockEnd: in readMetaBlock() 160 llvm::ErrorOr<Cursor> Res = skipUntilRecordOrBlock(Stream, BlockOrCode); in readDiagnosticBlock() [all …]
|
/external/clang/bindings/python/clang/ |
D | cindex.py | 1162 class Cursor(Structure): class 1581 assert isinstance(res, Cursor) 1605 assert isinstance(res, Cursor) 2888 cursor = Cursor() 2899 callbacks['cursor_visit'] = CFUNCTYPE(c_int, Cursor, Cursor, py_object) 2900 callbacks['fields_visit'] = CFUNCTYPE(c_int, Cursor, py_object) 2905 [TranslationUnit, POINTER(Token), c_uint, POINTER(Cursor)]), 2976 [Cursor], 2980 [Cursor], 2984 [Cursor], [all …]
|
/external/skia/experimental/sktext/editor/ |
D | Cursor.cpp | 9 std::unique_ptr<Cursor> Cursor::Make() { return std::make_unique<Cursor>(); } in Make() 11 Cursor::Cursor() { in Cursor() function in skia::editor::Cursor 25 void Cursor::paint(SkCanvas* canvas) { in paint()
|
/external/crosvm/common/p9/src/protocol/ |
D | wire_format.rs | 208 use std::io::Cursor; 226 assert_eq!(0xef_u8, WireFormat::decode(&mut Cursor::new(&buf)).unwrap()); in integer_decode() 227 assert_eq!(0xbeef_u16, u16::decode(&mut Cursor::new(&buf)).unwrap()); in integer_decode() 228 assert_eq!(0xdeadbeef_u32, u32::decode(&mut Cursor::new(&buf)).unwrap()); in integer_decode() 231 u64::decode(&mut Cursor::new(&buf)).unwrap() in integer_decode() 242 (value as u8).encode(&mut Cursor::new(&mut *buf)).unwrap(); in integer_encode() 245 (value as u16).encode(&mut Cursor::new(&mut *buf)).unwrap(); in integer_encode() 248 (value as u32).encode(&mut Cursor::new(&mut *buf)).unwrap(); in integer_encode() 251 value.encode(&mut Cursor::new(&mut *buf)).unwrap(); in integer_encode() 281 s.encode(&mut Cursor::new(&mut buf[..])) in zero_length_string() [all …]
|