/external/chromium_org/base/memory/ |
H A D | discardable_memory_manager_unittest.cc | 79 void SetMemoryLimit(size_t bytes) { manager_.SetMemoryLimit(bytes); } argument 81 void SetSoftMemoryLimit(size_t bytes) { manager_.SetSoftMemoryLimit(bytes); } argument 87 void Register(TestAllocationImpl* allocation, size_t bytes) { argument 88 manager_.Register(allocation, bytes); 110 LockStatus RegisterAndLock(TestAllocationImpl* allocation, size_t bytes) { argument 111 manager_.Register(allocation, bytes); 125 void ReduceMemoryUsageUntilWithinLimit(size_t bytes) { argument 126 manager_.ReduceMemoryUsageUntilWithinLimit(bytes); [all...] |
H A D | shared_memory.h | 165 bool Map(size_t bytes) { argument 166 return MapAt(0, bytes); 172 bool MapAt(off_t offset, size_t bytes);
|
H A D | shared_memory_posix.cc | 282 bool SharedMemory::MapAt(off_t offset, size_t bytes) { argument 286 if (bytes > static_cast<size_t>(std::numeric_limits<int>::max())) 295 if (bytes == 0) { 300 bytes = ashmem_bytes; 304 memory_ = mmap(NULL, bytes, PROT_READ | (read_only_ ? 0 : PROT_WRITE), 309 mapped_size_ = bytes;
|
/external/chromium_org/base/ |
H A D | pickle_unittest.cc | 233 int bytes = sizeof(int) * 2; local 238 EXPECT_TRUE(PickleIterator(pickle).GetReadPointerAndAdvance(bytes)); 239 EXPECT_FALSE(PickleIterator(pickle).GetReadPointerAndAdvance(bytes + 1)); 344 // Check we can write zero bytes of data and 'data' can be NULL.
|
/external/chromium_org/build/android/rezip/ |
H A D | rezip.cc | 61 int bytes = 0; local 63 bytes = unzReadCurrentFile(in_file, buf, sizeof(buf)); 64 if (bytes < 0) { 70 if (bytes == 0) { 74 if (ZIP_OK != zipWriteInFileInZip(out_file, buf, bytes)) {
|
/external/chromium_org/cc/layers/ |
H A D | texture_layer_impl.cc | 117 size_t bytes = texture_mailbox_.SharedMemorySizeInBytes(); local 118 swizzled.resize(bytes); 119 for (size_t i = 0; i < bytes; i += 4) {
|
/external/chromium_org/cc/resources/ |
H A D | prioritized_resource.h | 46 size_t bytes() const { return bytes_; } function in class:cc::PrioritizedResource 98 void SetToSelfManagedMemoryPlaceholder(size_t bytes);
|
H A D | prioritized_resource_manager.h | 58 // MemoryUseBytes() describes the number of bytes used by existing allocated 61 // MemoryAboveCutoffBytes() describes the number of bytes that 65 // MaxMemoryNeededBytes() describes the number of bytes that would be used 72 void SetMaxMemoryLimitBytes(size_t bytes) { max_memory_limit_bytes_ = bytes; } argument 92 // limit_bytes bytes. This may be called on the impl thread while the main
|
/external/chromium_org/chrome/android/java/src/org/chromium/chrome/browser/ |
H A D | CertificateViewer.java | 187 private static String formatBytes(byte[] bytes, char separator) { argument 189 for (int i = 0; i < bytes.length; i++) { 190 sb.append(String.format("%02X", bytes[i])); 191 if (i != bytes.length - 1) { 198 private static byte[] getDigest(byte[] bytes, String algorithm) { argument 201 md.update(bytes);
|
/external/chromium_org/chrome/browser/chromeos/login/supervised/ |
H A D | supervised_user_creation_controller_new.cc | 50 int bytes = base::WriteFile(token_file, token.c_str(), token.length()); local 51 return bytes >= 0;
|
/external/chromium_org/chrome/browser/printing/ |
H A D | print_view_manager_base.cc | 168 scoped_refptr<base::RefCountedBytes> bytes = new base::RefCountedBytes( local 172 document->DebugDumpData(bytes, FILE_PATH_LITERAL(".pdf")); 174 bytes, params.page_size, params.content_area);
|
/external/chromium_org/chrome/browser/sync_file_system/local/ |
H A D | syncable_file_system_operation.cc | 381 int64 bytes, 385 callback.Run(result, bytes, complete); 390 callback.Run(result, bytes, complete); 378 DidWrite( const WriteCallback& callback, base::File::Error result, int64 bytes, bool complete) argument
|
/external/chromium_org/chromeos/dbus/ |
H A D | bluetooth_gatt_characteristic_service_provider.cc | 256 const uint8* bytes = NULL; local 258 if (!variant_reader.PopArrayOfBytes(&bytes, &length)) { 268 std::vector<uint8> value(bytes, bytes + length);
|
H A D | bluetooth_gatt_descriptor_service_provider.cc | 253 const uint8* bytes = NULL; local 255 if (!variant_reader.PopArrayOfBytes(&bytes, &length)) { 265 std::vector<uint8> value(bytes, bytes + length);
|
H A D | cryptohome_client.cc | 367 const uint8* bytes = NULL; variable 369 if (!reader.PopArrayOfBytes(&bytes, &length) || 372 value->assign(bytes, bytes + length); 921 const uint8* bytes = NULL; local 923 if (!reader.PopArrayOfBytes(&bytes, &length)) { 928 std::vector<uint8>(bytes, bytes + length));
|
H A D | fake_bluetooth_gatt_characteristic_client.cc | 432 // Return the bytes in an array. 433 uint8* bytes = reinterpret_cast<uint8*>(&value); local 435 return_value.assign(bytes, bytes + sizeof(value));
|
/external/chromium_org/components/cronet/android/ |
H A D | url_request_adapter.cc | 55 void URLRequestAdapter::SetUploadContent(const char* bytes, int bytes_len) { argument 56 std::vector<char> data(bytes, bytes + bytes_len); 74 void URLRequestAdapter::AppendChunk(const char* bytes, int bytes_len, argument 78 memcpy(buf.get(), bytes, bytes_len); 116 void URLRequestAdapter::OnAppendChunk(const scoped_ptr<char[]> bytes, argument 118 url_request_->AppendChunkToUpload(bytes.get(), bytes_len, is_last_chunk); 220 VLOG(1) << "Synchronously read: " << bytes_read << " bytes"; 225 VLOG(1) << "Flushing buffer: " << bytes_read_ << " bytes"; 242 VLOG(1) << "Asynchronously read: " << bytes_read << " bytes"; [all...] |
/external/chromium_org/components/nacl/loader/ |
H A D | nacl_listener.cc | 54 void FatalLogHandler(const char* data, size_t bytes) { argument 57 uint32_t copy_bytes = std::min<uint32_t>(static_cast<uint32_t>(bytes),
|
/external/chromium_org/components/rappor/ |
H A D | byte_vector_utils.cc | 125 ByteVector bytes(byte_count_); 126 crypto::RandBytes(&bytes[0], bytes.size()); 127 return bytes; 132 ByteVector bytes = GetRandomByteVector(); local 135 return *ByteVectorOr(GetRandomByteVector(), &bytes); 137 return bytes; 139 return *ByteVectorAnd(GetRandomByteVector(), &bytes); 142 return bytes; 197 // Streams bytes fro [all...] |
H A D | rappor_service.cc | 64 16 /* Bloom filter size bytes */, 188 ByteVector bytes = metric->GetReport(secret_); local 189 report->set_bits(std::string(bytes.begin(), bytes.end()));
|
/external/chromium_org/components/web_cache/browser/ |
H A D | web_cache_manager.cc | 138 void WebCacheManager::SetGlobalSizeLimit(size_t bytes) { argument 139 global_size_limit_ = bytes;
|
/external/chromium_org/content/browser/fileapi/ |
H A D | file_system_operation_impl_write_unittest.cc | 99 void add_bytes_written(int64 bytes, bool complete) { argument 100 bytes_written_ += bytes; 132 void DidWrite(base::File::Error status, int64 bytes, bool complete) { argument 134 add_bytes_written(bytes, complete);
|
H A D | file_writer_delegate_unittest.cc | 57 void DidWrite(base::File::Error status, int64 bytes, argument 61 bytes_written_ += bytes; 391 // Writing kDataSize (=45) bytes data while allowed_growth is 100. 411 // Trying to overwrite kDataSize bytes data while allowed_growth is 20. 427 // Trying to write kDataSize bytes data from offset 25 while 446 // Trying to overwrite 45 bytes data while allowed_growth is -20. 465 // Trying to overwrite 45 bytes data with offset pre_write_usage - 20,
|
/external/chromium_org/content/browser/speech/ |
H A D | audio_encoder.cc | 35 size_t bytes, 49 size_t bytes, 55 me->encoded_audio_buffer_.Enqueue(buffer, bytes); 70 // Initializing the encoder will cause sync bytes to be written to 46 WriteCallback( const FLAC__StreamEncoder* encoder, const FLAC__byte buffer[], size_t bytes, unsigned samples, unsigned current_frame, void* client_data) argument
|
/external/chromium_org/content/child/fileapi/ |
H A D | webfilewriter_base_unittest.cc | 142 virtual void didWrite(long long bytes, bool complete) { argument 145 received_did_write_bytes_total_ += bytes;
|