Searched defs:batch (Results 1 - 25 of 69) sorted by relevance

123

/external/chromium_org/third_party/leveldatabase/src/db/
H A Dwrite_batch_internal.h18 // Return the number of entries in the batch.
19 static int Count(const WriteBatch* batch);
21 // Set the count for the number of entries in the batch.
22 static void SetCount(WriteBatch* batch, int n);
24 // Return the seqeunce number for the start of this batch.
25 static SequenceNumber Sequence(const WriteBatch* batch);
28 // this batch.
29 static void SetSequence(WriteBatch* batch, SequenceNumber seq);
31 static Slice Contents(const WriteBatch* batch) { argument
32 return Slice(batch
35 ByteSize(const WriteBatch* batch) argument
[all...]
H A Dwrite_batch_test.cc58 WriteBatch batch; local
59 ASSERT_EQ("", PrintContents(&batch));
60 ASSERT_EQ(0, WriteBatchInternal::Count(&batch));
64 WriteBatch batch; local
65 batch.Put(Slice("foo"), Slice("bar"));
66 batch.Delete(Slice("box"));
67 batch.Put(Slice("baz"), Slice("boo"));
68 WriteBatchInternal::SetSequence(&batch, 100);
69 ASSERT_EQ(100, WriteBatchInternal::Sequence(&batch));
70 ASSERT_EQ(3, WriteBatchInternal::Count(&batch));
78 WriteBatch batch; local
[all...]
/external/chromium_org/third_party/mesa/src/src/gallium/drivers/i915/
H A Di915_flush.c49 if (!fence && i915->batch && (i915->batch->map == i915->batch->ptr)) {
71 struct i915_winsys_batchbuffer *batch = i915->batch; local
73 batch->iws->batchbuffer_flush(batch, fence);
H A Di915_batchbuffer.h37 i915_winsys_batchbuffer_space(struct i915_winsys_batchbuffer *batch) argument
39 return batch->size - (batch->ptr - batch->map);
43 i915_winsys_batchbuffer_check(struct i915_winsys_batchbuffer *batch, argument
46 return dwords * 4 <= i915_winsys_batchbuffer_space(batch);
50 i915_winsys_batchbuffer_dword_unchecked(struct i915_winsys_batchbuffer *batch, argument
53 *(unsigned *)batch->ptr = dword;
54 batch->ptr += 4;
58 i915_winsys_batchbuffer_float(struct i915_winsys_batchbuffer *batch, argument
68 i915_winsys_batchbuffer_dword(struct i915_winsys_batchbuffer *batch, unsigned dword) argument
76 i915_winsys_batchbuffer_write(struct i915_winsys_batchbuffer *batch, void *data, size_t size) argument
87 i915_winsys_validate_buffers(struct i915_winsys_batchbuffer *batch, struct i915_winsys_buffer **buffers, int num_of_buffers) argument
95 i915_winsys_batchbuffer_reloc(struct i915_winsys_batchbuffer *batch, struct i915_winsys_buffer *buffer, enum i915_winsys_buffer_usage usage, size_t offset, boolean fenced) argument
[all...]
/external/mesa3d/src/gallium/drivers/i915/
H A Di915_flush.c49 if (!fence && i915->batch && (i915->batch->map == i915->batch->ptr)) {
71 struct i915_winsys_batchbuffer *batch = i915->batch; local
73 batch->iws->batchbuffer_flush(batch, fence);
H A Di915_batchbuffer.h37 i915_winsys_batchbuffer_space(struct i915_winsys_batchbuffer *batch) argument
39 return batch->size - (batch->ptr - batch->map);
43 i915_winsys_batchbuffer_check(struct i915_winsys_batchbuffer *batch, argument
46 return dwords * 4 <= i915_winsys_batchbuffer_space(batch);
50 i915_winsys_batchbuffer_dword_unchecked(struct i915_winsys_batchbuffer *batch, argument
53 *(unsigned *)batch->ptr = dword;
54 batch->ptr += 4;
58 i915_winsys_batchbuffer_float(struct i915_winsys_batchbuffer *batch, argument
68 i915_winsys_batchbuffer_dword(struct i915_winsys_batchbuffer *batch, unsigned dword) argument
76 i915_winsys_batchbuffer_write(struct i915_winsys_batchbuffer *batch, void *data, size_t size) argument
87 i915_winsys_validate_buffers(struct i915_winsys_batchbuffer *batch, struct i915_winsys_buffer **buffers, int num_of_buffers) argument
95 i915_winsys_batchbuffer_reloc(struct i915_winsys_batchbuffer *batch, struct i915_winsys_buffer *buffer, enum i915_winsys_buffer_usage usage, size_t offset, boolean fenced) argument
[all...]
/external/javasqlite/src/main/java/SQLite/JDBC2z/
H A DJDBCPreparedStatement.java27 private ArrayList<BatchArg> batch; field in class:JDBCPreparedStatement
35 this.batch = null;
386 if (batch == null) {
387 batch = new ArrayList<BatchArg>(args.length);
390 batch.add(new BatchArg(args[i], blobs[i]));
395 if (batch == null) {
398 int[] ret = new int[batch.size() / args.length];
406 BatchArg b = (BatchArg) batch.get(index++);
418 throw new BatchUpdateException("batch failed", ret);
424 if (batch !
[all...]
/external/chromium_org/extensions/browser/api/storage/
H A Dstorage_api_unittest.cc113 leveldb::WriteBatch batch; local
114 batch.Put(kKey, "[{(.*+\"\'\\");
115 EXPECT_TRUE(leveldb_store->WriteToDbForTest(&batch));
/external/chromium_org/third_party/leveldatabase/src/issues/
H A Dissue178_test.cc45 leveldb::WriteBatch batch; local
47 batch.Put(Key1(i), "value for range 1 key");
49 ASSERT_OK(db->Write(leveldb::WriteOptions(), &batch));
52 batch.Clear();
54 batch.Put(Key2(i), "value for range 2 key");
56 ASSERT_OK(db->Write(leveldb::WriteOptions(), &batch));
59 batch.Clear();
61 batch.Delete(Key2(i));
63 ASSERT_OK(db->Write(leveldb::WriteOptions(), &batch));
/external/chromium_org/third_party/mesa/src/src/mesa/drivers/dri/i965/
H A Dbrw_state_batch.c43 struct intel_batchbuffer *batch = &brw->intel.batch; local
50 batch->bo->size / 32);
73 * Generate a set of aub file annotations for the current batch buffer, and
76 * The "used" section of the batch buffer (the portion containing batch
78 * batch buffer (which contains data structures pointed to by batch commands)
90 4*intel->batch.used);
101 drm_intel_bufmgr_gem_set_aub_annotations(intel->batch
126 struct intel_batchbuffer *batch = &brw->intel.batch; local
[all...]
/external/mesa3d/src/mesa/drivers/dri/i965/
H A Dbrw_state_batch.c43 struct intel_batchbuffer *batch = &brw->intel.batch; local
50 batch->bo->size / 32);
73 * Generate a set of aub file annotations for the current batch buffer, and
76 * The "used" section of the batch buffer (the portion containing batch
78 * batch buffer (which contains data structures pointed to by batch commands)
90 4*intel->batch.used);
101 drm_intel_bufmgr_gem_set_aub_annotations(intel->batch
126 struct intel_batchbuffer *batch = &brw->intel.batch; local
[all...]
/external/chromium_org/chrome/browser/sync_file_system/drive_backend/
H A Dmetadata_db_migration_util_unittest.cc82 leveldb::WriteBatch batch; local
83 batch.Put(kDatabaseVersionKey, "4");
84 batch.Put(kServiceMetadataKey, "service_metadata");
85 batch.Put(kFileMetadataKeyPrefix, "file_metadata");
86 batch.Put(kFileTrackerKeyPrefix, "file_tracker");
87 batch.Put(kAppRootIDByAppIDKeyPrefix, "app_root_id");
88 batch.Put(kActiveTrackerIDByFileIDKeyPrefix, "active_id_by_file");
89 batch.Put(kTrackerIDByFileIDKeyPrefix, "tracker_id_by_file");
90 batch.Put(kMultiTrackerByFileIDKeyPrefix, "multi_tracker_by_file");
91 batch
[all...]
H A Dleveldb_wrapper.cc186 leveldb::WriteBatch batch; local
193 batch.Put(key, transaction.second);
196 batch.Delete(key);
201 leveldb::Status status = db_->Write(leveldb::WriteOptions(), &batch);
/external/chromium_org/extensions/browser/value_store/
H A Dleveldb_value_store_unittest.cc75 leveldb::WriteBatch batch; local
76 batch.Put(kCorruptKey, "[{(.*+\"\'\\");
77 ASSERT_TRUE(store()->WriteToDbForTest(&batch));
118 leveldb::WriteBatch batch; local
119 batch.Put(kCorruptKey1, kCorruptValue);
120 batch.Put(kCorruptKey2, kCorruptValue);
121 ASSERT_TRUE(store()->WriteToDbForTest(&batch));
/external/chromium_org/third_party/mesa/src/src/gallium/winsys/i915/sw/
H A Di915_sw_batchbuffer.c25 i915_sw_batchbuffer(struct i915_winsys_batchbuffer *batch) argument
27 return (struct i915_sw_batchbuffer *)batch;
31 i915_sw_batchbuffer_reset(struct i915_sw_batchbuffer *batch) argument
33 memset(batch->base.map, 0, batch->actual_size);
34 batch->base.ptr = batch->base.map;
35 batch->base.size = batch->actual_size - BATCH_RESERVED;
36 batch
43 struct i915_sw_batchbuffer *batch = CALLOC_STRUCT(i915_sw_batchbuffer); local
61 i915_sw_batchbuffer_validate_buffers(struct i915_winsys_batchbuffer *batch, struct i915_winsys_buffer **buffer, int num_of_buffers) argument
74 struct i915_sw_batchbuffer *batch = i915_sw_batchbuffer(ibatch); local
105 struct i915_sw_batchbuffer *batch = i915_sw_batchbuffer(ibatch); local
145 struct i915_sw_batchbuffer *batch = i915_sw_batchbuffer(ibatch); local
[all...]
/external/compiler-rt/lib/tsan/rtl/
H A Dtsan_dense_alloc.h106 T *batch = (T*)MmapOrDie(kL2Size * sizeof(T), "DenseSlabAllocator"); local
110 new(batch + i) T();
111 *(IndexT*)(batch + i) = i + 1 + fillpos_ * kL2Size;
113 *(IndexT*)(batch + kL2Size - 1) = 0;
115 map_[fillpos_++] = batch;
/external/jsoncpp/src/lib_json/
H A Djson_batchallocator.h18 * This memory allocator allocates memory for a batch of object (specified by
46 for ( BatchInfo *batch = batches_; batch; )
48 BatchInfo *nextBatch = batch->next_;
49 free( batch );
50 batch = nextBatch;
70 if ( !currentBatch_ ) // no free batch found, allocate a new one
108 BatchInfo *batch = static_cast<BatchInfo*>( malloc( mallocSize ) ); local
109 batch->next_ = 0;
110 batch
[all...]
/external/mesa3d/src/gallium/winsys/i915/sw/
H A Di915_sw_batchbuffer.c25 i915_sw_batchbuffer(struct i915_winsys_batchbuffer *batch) argument
27 return (struct i915_sw_batchbuffer *)batch;
31 i915_sw_batchbuffer_reset(struct i915_sw_batchbuffer *batch) argument
33 memset(batch->base.map, 0, batch->actual_size);
34 batch->base.ptr = batch->base.map;
35 batch->base.size = batch->actual_size - BATCH_RESERVED;
36 batch
43 struct i915_sw_batchbuffer *batch = CALLOC_STRUCT(i915_sw_batchbuffer); local
61 i915_sw_batchbuffer_validate_buffers(struct i915_winsys_batchbuffer *batch, struct i915_winsys_buffer **buffer, int num_of_buffers) argument
74 struct i915_sw_batchbuffer *batch = i915_sw_batchbuffer(ibatch); local
105 struct i915_sw_batchbuffer *batch = i915_sw_batchbuffer(ibatch); local
145 struct i915_sw_batchbuffer *batch = i915_sw_batchbuffer(ibatch); local
[all...]
/external/chromium_org/third_party/mesa/src/src/gallium/winsys/i915/drm/
H A Di915_drm_batchbuffer.c30 i915_drm_batchbuffer(struct i915_winsys_batchbuffer *batch) argument
32 return (struct i915_drm_batchbuffer *)batch;
36 i915_drm_batchbuffer_reset(struct i915_drm_batchbuffer *batch) argument
38 struct i915_drm_winsys *idws = i915_drm_winsys(batch->base.iws);
40 if (batch->bo)
41 drm_intel_bo_unreference(batch->bo);
42 batch->bo = drm_intel_bo_alloc(idws->gem_manager,
44 batch->actual_size,
47 memset(batch->base.map, 0, batch
57 struct i915_drm_batchbuffer *batch = CALLOC_STRUCT(i915_drm_batchbuffer); local
75 i915_drm_batchbuffer_validate_buffers(struct i915_winsys_batchbuffer *batch, struct i915_winsys_buffer **buffer, int num_of_buffers) argument
100 struct i915_drm_batchbuffer *batch = i915_drm_batchbuffer(ibatch); local
164 struct i915_drm_batchbuffer *batch = i915_drm_batchbuffer(ibatch); local
219 struct i915_drm_batchbuffer *batch = i915_drm_batchbuffer(ibatch); local
[all...]
/external/chromium_org/third_party/mesa/src/src/mesa/drivers/dri/intel/
H A Dintel_batchbuffer.h15 * Number of bytes to reserve for commands necessary to complete a batch.
19 * - Optional MI_NOOP for ensuring the batch length is qword aligned (4 bytes)
83 return (intel->batch.state_batch_offset - intel->batch.reserved_space)
84 - intel->batch.used*4;
94 intel->batch.map[intel->batch.used++] = dword;
109 intel->batch.is_blit != is_blit && intel->batch.used) {
113 intel->batch
137 struct intel_batchbuffer *batch = &intel->batch; local
[all...]
/external/iproute2/ip/
H A Dip.c45 " ip [ -force ] -batch filename\n"
105 static int batch(const char *name) function
224 } else if (matches(opt, "-batch") == 0) {
257 return batch(batch_file);
/external/mesa3d/src/gallium/winsys/i915/drm/
H A Di915_drm_batchbuffer.c30 i915_drm_batchbuffer(struct i915_winsys_batchbuffer *batch) argument
32 return (struct i915_drm_batchbuffer *)batch;
36 i915_drm_batchbuffer_reset(struct i915_drm_batchbuffer *batch) argument
38 struct i915_drm_winsys *idws = i915_drm_winsys(batch->base.iws);
40 if (batch->bo)
41 drm_intel_bo_unreference(batch->bo);
42 batch->bo = drm_intel_bo_alloc(idws->gem_manager,
44 batch->actual_size,
47 memset(batch->base.map, 0, batch
57 struct i915_drm_batchbuffer *batch = CALLOC_STRUCT(i915_drm_batchbuffer); local
75 i915_drm_batchbuffer_validate_buffers(struct i915_winsys_batchbuffer *batch, struct i915_winsys_buffer **buffer, int num_of_buffers) argument
100 struct i915_drm_batchbuffer *batch = i915_drm_batchbuffer(ibatch); local
164 struct i915_drm_batchbuffer *batch = i915_drm_batchbuffer(ibatch); local
219 struct i915_drm_batchbuffer *batch = i915_drm_batchbuffer(ibatch); local
[all...]
/external/mesa3d/src/mesa/drivers/dri/intel/
H A Dintel_batchbuffer.h15 * Number of bytes to reserve for commands necessary to complete a batch.
19 * - Optional MI_NOOP for ensuring the batch length is qword aligned (4 bytes)
83 return (intel->batch.state_batch_offset - intel->batch.reserved_space)
84 - intel->batch.used*4;
94 intel->batch.map[intel->batch.used++] = dword;
109 intel->batch.is_blit != is_blit && intel->batch.used) {
113 intel->batch
137 struct intel_batchbuffer *batch = &intel->batch; local
[all...]
/external/chromium_org/base/test/launcher/
H A Dunit_test_launcher.cc32 // This constant controls how many tests are run in a single batch by default.
42 "Runs tests using the gtest framework, each batch of tests being\n"
63 " --test-launcher-batch-limit=N\n"
64 " Sets the limit of test batch to run in a single process to N.\n"
133 std::vector<std::string> batch; variable
135 batch.push_back(test_names[i]);
137 if (batch.size() >= batch_limit_) {
138 RunBatch(test_launcher, batch);
139 batch.clear();
143 RunBatch(test_launcher, batch);
257 std::vector<std::string> batch; local
[all...]
/external/chromium_org/chrome/browser/chromeos/drive/
H A Dresource_metadata_storage_unittest.cc293 leveldb::WriteBatch batch; local
301 batch.Put("file:abcd", serialized_entry);
305 batch.Put(std::string("file:abcd") + '\0' + "CACHE", serialized_entry);
307 EXPECT_TRUE(resource_map()->Write(leveldb::WriteOptions(), &batch).ok());
342 leveldb::WriteBatch batch; local
351 batch.Put(local_id, serialized_entry);
355 batch.Put(local_id + '\0' + "CACHE", serialized_entry);
357 batch.Put('\0' + std::string("ID") + '\0' + resource_id, local_id);
359 EXPECT_TRUE(resource_map()->Write(leveldb::WriteOptions(), &batch).ok());
396 leveldb::WriteBatch batch; local
476 leveldb::WriteBatch batch; local
[all...]

Completed in 540 milliseconds

123