/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/Reactive-Extensions/RxCpp/Ix/CPP/src/cpplinq/ |
D | linq_last.hpp | 9 template <class Cursor> 10 typename Cursor::element_type 11 linq_last_(Cursor c, onepass_cursor_tag) in linq_last_() 14 typename Cursor::element_type elem = c.get(); in linq_last_() 25 template <class Cursor> 26 typename Cursor::reference_type 27 linq_last_(Cursor c, forward_cursor_tag) in linq_last_() 30 Cursor best = c; in linq_last_() 39 template <class Cursor> 40 typename Cursor::reference_type [all …]
|
/external/swiftshader/third_party/llvm-7.0/llvm/unittests/Bitcode/ |
D | BitstreamReaderTest.cpp | 23 BitstreamCursor Cursor(Bytes); in TEST() local 25 EXPECT_FALSE(Cursor.AtEndOfStream()); in TEST() 26 (void)Cursor.Read(8); in TEST() 27 EXPECT_FALSE(Cursor.AtEndOfStream()); in TEST() 28 (void)Cursor.Read(24); in TEST() 29 EXPECT_TRUE(Cursor.AtEndOfStream()); in TEST() 31 Cursor.JumpToBit(0); in TEST() 32 EXPECT_FALSE(Cursor.AtEndOfStream()); in TEST() 34 Cursor.JumpToBit(32); in TEST() 35 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 __anonc376e4fb0111::Cursor 37 explicit Cursor(StringRef Str) { in Cursor() function in __anonc376e4fb0111::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-7.0/llvm/lib/CodeGen/MIRParser/ |
D | MILexer.cpp | 36 class Cursor { class 41 Cursor(NoneType) {} in Cursor() function in __anon0f96bb930111::Cursor 43 explicit Cursor(StringRef Str) { in Cursor() function in __anon0f96bb930111::Cursor 56 StringRef upto(Cursor C) const { in upto() 91 static Cursor skipWhitespace(Cursor C) { in skipWhitespace() 100 static Cursor skipComment(Cursor C) { in skipComment() 120 Cursor C = Cursor(Value.substr(1, Value.size() - 2)); in unescapeQuotedString() 146 static Cursor lexStringConstant(Cursor C, ErrorCallbackType ErrorCallback) { in lexStringConstant() 160 static Cursor lexName(Cursor C, MIToken &Token, MIToken::TokenKind Type, in lexName() 165 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/swiftshader/third_party/llvm-7.0/llvm/include/llvm/ProfileData/ |
D | GCOV.h | 75 Cursor = 4; in readGCNOFormat() 86 Cursor = 4; in readGCDAFormat() 92 StringRef VersionStr = Buffer->getBuffer().slice(Cursor, Cursor + 4); in readGCOVVersion() 94 Cursor += 4; in readGCOVVersion() 99 Cursor += 4; in readGCOVVersion() 104 Cursor += 4; in readGCOVVersion() 115 StringRef Tag = Buffer->getBuffer().slice(Cursor, Cursor + 4); in readFunctionTag() 120 Cursor += 4; in readFunctionTag() 127 StringRef Tag = Buffer->getBuffer().slice(Cursor, Cursor + 4); in readBlockTag() 132 Cursor += 4; in readBlockTag() [all …]
|
/external/perfetto/src/trace_processor/sqlite/ |
D | sql_stats_table.h | 44 class Cursor : public SqliteTable::Cursor { 46 Cursor(SqlStatsTable* storage); 47 ~Cursor() override; 58 Cursor(Cursor&) = delete; 59 Cursor& operator=(const Cursor&) = delete; 61 Cursor(Cursor&&) noexcept = default; 62 Cursor& operator=(Cursor&&) = default; 76 std::unique_ptr<SqliteTable::Cursor> CreateCursor() override;
|
D | stats_table.h | 36 class Cursor : public SqliteTable::Cursor { 38 Cursor(StatsTable*); 49 Cursor(Cursor&) = delete; 50 Cursor& operator=(const Cursor&) = delete; 52 Cursor(Cursor&&) noexcept = default; 53 Cursor& operator=(Cursor&&) = default; 67 std::unique_ptr<SqliteTable::Cursor> CreateCursor() override;
|
D | sql_stats_table.cc | 55 std::unique_ptr<SqliteTable::Cursor> SqlStatsTable::CreateCursor() { in CreateCursor() 56 return std::unique_ptr<SqliteTable::Cursor>(new Cursor(this)); in CreateCursor() 64 SqlStatsTable::Cursor::Cursor(SqlStatsTable* table) in Cursor() function in perfetto::trace_processor::SqlStatsTable::Cursor 65 : SqliteTable::Cursor(table), storage_(table->storage_), table_(table) {} in Cursor() 67 SqlStatsTable::Cursor::~Cursor() = default; 69 int SqlStatsTable::Cursor::Filter(const QueryConstraints&, in Filter() 72 *this = Cursor(table_); in Filter() 77 int SqlStatsTable::Cursor::Next() { in Next() 82 int SqlStatsTable::Cursor::Eof() { in Eof() 86 int SqlStatsTable::Cursor::Column(sqlite3_context* context, int col) { in Column()
|
D | db_sqlite_table.h | 71 class Cursor : public SqliteTable::Cursor { 73 Cursor(DbSqliteTable*, QueryCache*); 75 Cursor(Cursor&&) noexcept = default; 76 Cursor& operator=(Cursor&&) = default; 102 Cursor(const Cursor&) = delete; 103 Cursor& operator=(const Cursor&) = delete; 170 std::unique_ptr<SqliteTable::Cursor> CreateCursor() override;
|
D | stats_table.cc | 47 std::unique_ptr<SqliteTable::Cursor> StatsTable::CreateCursor() { in CreateCursor() 48 return std::unique_ptr<SqliteTable::Cursor>(new Cursor(this)); in CreateCursor() 55 StatsTable::Cursor::Cursor(StatsTable* table) in Cursor() function in perfetto::trace_processor::StatsTable::Cursor 56 : SqliteTable::Cursor(table), table_(table), storage_(table->storage_) {} in Cursor() 58 int StatsTable::Cursor::Filter(const QueryConstraints&, in Filter() 61 *this = Cursor(table_); in Filter() 65 int StatsTable::Cursor::Column(sqlite3_context* ctx, int N) { in Column() 115 int StatsTable::Cursor::Next() { in Next() 135 int StatsTable::Cursor::Eof() { in Eof()
|
D | window_operator_table.cc | 60 std::unique_ptr<SqliteTable::Cursor> WindowOperatorTable::CreateCursor() { in CreateCursor() 61 return std::unique_ptr<SqliteTable::Cursor>(new Cursor(this)); in CreateCursor() 102 WindowOperatorTable::Cursor::Cursor(WindowOperatorTable* table) in Cursor() function in perfetto::trace_processor::WindowOperatorTable::Cursor 103 : SqliteTable::Cursor(table), table_(table) {} in Cursor() 105 int WindowOperatorTable::Cursor::Filter(const QueryConstraints& qc, in Filter() 108 *this = Cursor(table_); in Filter() 129 int WindowOperatorTable::Cursor::Column(sqlite3_context* context, int N) { in Column() 169 int WindowOperatorTable::Cursor::Next() { in Next() 183 int WindowOperatorTable::Cursor::Eof() { in Eof()
|
D | sqlite_table.h | 78 class Cursor : public sqlite3_vtab_cursor { 93 Cursor(SqliteTable* table); 94 virtual ~Cursor(); 117 Cursor(Cursor&) = delete; 118 Cursor& operator=(const Cursor&) = delete; 120 Cursor(Cursor&&) noexcept = default; 121 Cursor& operator=(Cursor&&) = default; 203 using TCursor = typename TTable::Cursor; 268 auto* c = static_cast<Cursor*>(vc); 271 auto history = is_cached ? Cursor::FilterHistory::kSame [all …]
|
D | span_join_operator_table.h | 310 class Cursor : public SqliteTable::Cursor { 312 Cursor(SpanJoinOperatorTable*, sqlite3* db); 313 ~Cursor() override = default; 323 Cursor(Cursor&) = delete; 324 Cursor& operator=(const Cursor&) = delete; 326 Cursor(Cursor&&) noexcept = default; 327 Cursor& operator=(Cursor&&) = default; 352 std::unique_ptr<SqliteTable::Cursor> CreateCursor() override;
|
/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/rust/crates/syn/0.15.42/src/ |
D | buffer.rs | 120 pub fn begin(&self) -> Cursor { in begin() argument 121 unsafe { Cursor::create(&self.data[0], &self.data[self.data.len() - 1]) } in begin() 139 pub struct Cursor<'a> { struct 150 impl<'a> Cursor<'a> { implementation 164 Cursor { in empty() 186 Cursor { in create() 201 unsafe fn bump(self) -> Cursor<'a> { in bump() 202 Cursor::create(self.ptr.offset(1), self.scope) in bump() 217 *self = Cursor::create(&buf.data[0], self.scope); in ignore_none() 233 pub fn group(mut self, delim: Delimiter) -> Option<(Cursor<'a>, Span, Cursor<'a>)> { in group() [all …]
|
D | parse.rs | 209 use buffer::{Cursor, TokenBuffer}; 265 cell: Cell<Cursor<'static>>, 266 marker: PhantomData<Cursor<'a>>, 340 cursor: Cursor<'c>, 349 marker: PhantomData<fn(Cursor<'c>) -> Cursor<'a>>, 353 type Target = Cursor<'c>; 371 pub fn advance_step_cursor<'c, 'a>(proof: StepCursor<'c, 'a>, to: Cursor<'c>) -> Cursor<'a> { in advance_step_cursor() 377 unsafe { mem::transmute::<Cursor<'c>, Cursor<'a>>(to) } in advance_step_cursor() 398 cursor: Cursor, in new_parse_buffer() argument 404 cell: Cell::new(unsafe { mem::transmute::<Cursor, Cursor<'static>>(cursor) }), in new_parse_buffer() [all …]
|
/external/rust/crates/syn/1.0.7/src/ |
D | buffer.rs | 119 pub fn begin(&self) -> Cursor { in begin() argument 120 unsafe { Cursor::create(&self.data[0], &self.data[self.data.len() - 1]) } in begin() 138 pub struct Cursor<'a> { struct 149 impl<'a> Cursor<'a> { impl 163 Cursor { in empty() 185 Cursor { in create() 200 unsafe fn bump(self) -> Cursor<'a> { in bump() 201 Cursor::create(self.ptr.offset(1), self.scope) in bump() 216 *self = Cursor::create(&buf.data[0], self.scope); in ignore_none() 232 pub fn group(mut self, delim: Delimiter) -> Option<(Cursor<'a>, Span, Cursor<'a>)> { in group() [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() 124 : Cursor(Data.Cursor), StartBit(Data.StartBit) in NaClBitcodeData() 129 return *Cursor.getBitStreamReader(); in GetReader() 134 return Cursor; in GetCursor() 155 NaClBitstreamCursor &Cursor; 173 NaClBitcodeBlock(unsigned BlockID, NaClBitstreamCursor &Cursor) in NaClBitcodeBlock() argument 174 : NaClBitcodeData(Cursor), in NaClBitcodeBlock() 416 NaClBitstreamCursor &Cursor): in ErrorHandler() argument 417 NaClBitstreamCursor::ErrorHandler(Cursor), Parser(Parser) {} in ErrorHandler() [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/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/crosvm/p9/src/protocol/ |
D | wire_format.rs | 207 use std::io::Cursor; 226 WireFormat::decode(&mut Cursor::new(&buf)).unwrap() in integer_decode() 230 WireFormat::decode(&mut Cursor::new(&buf)).unwrap() in integer_decode() 234 WireFormat::decode(&mut Cursor::new(&buf)).unwrap() in integer_decode() 238 WireFormat::decode(&mut Cursor::new(&buf)).unwrap() in integer_decode() 250 (value as u8).encode(&mut Cursor::new(&mut *buf)).unwrap(); in integer_encode() 253 (value as u16).encode(&mut Cursor::new(&mut *buf)).unwrap(); in integer_encode() 256 (value as u32).encode(&mut Cursor::new(&mut *buf)).unwrap(); in integer_encode() 259 value.encode(&mut Cursor::new(&mut *buf)).unwrap(); in integer_encode() 289 s.encode(&mut Cursor::new(&mut buf[..])) in zero_length_string() [all …]
|