Searched defs:data (Results 201 - 225 of 7161) sorted by path

1234567891011>>

/external/chromium_org/base/nix/
H A Dmime_util_xdg.cc32 std::string GetDataMimeType(const std::string& data) { argument
35 return xdg_mime_get_mime_type_for_data(data.data(), data.length(), NULL);
/external/chromium_org/base/
H A Dpickle.cc111 // The source data may not be properly aligned, and unaligned float reads
112 // cause SIGBUS on some ARM platforms, so force using memcpy to copy the data
123 // The source data may not be properly aligned, and unaligned double reads
124 // cause SIGBUS on some ARM platforms, so force using memcpy to copy the data
169 bool PickleIterator::ReadData(const char** data, int* length) { argument
171 *data = 0;
176 return ReadBytes(data, *length);
179 bool PickleIterator::ReadBytes(const char** data, int length) { argument
183 *data = read_from;
209 Pickle::Pickle(const char* data, in argument
287 WriteData(const char* data, int length) argument
291 WriteBytes(const void* data, int length) argument
335 WriteBytesStatic(const void* data) argument
343 WriteBytesCommon(const void* data, size_t length) argument
[all...]
H A Dpickle.h19 // PickleIterator reads data from a Pickle. The Pickle object must remain valid
43 bool ReadData(const char** data, int* length) WARN_UNUSED_RESULT;
44 bool ReadBytes(const char** data, int length) WARN_UNUSED_RESULT;
97 // buffer is exposed as the "data" of the Pickle. This "data" can be passed
102 // not keep track of the type of data written to it.
104 // The Pickle's data has a header which contains the size of the Pickle's
119 // Initializes a Pickle from a const block of data. The data is not copied;
120 // instead the data i
142 const void* data() const { return header_; } function in class:Pickle
351 WritePOD(const T& data) argument
[all...]
H A Dpickle_unittest.cc107 int data; local
108 EXPECT_FALSE(pickle.ReadInt(&iter, &data));
118 int data; local
119 EXPECT_FALSE(pickle.ReadInt(&iter, &data));
128 int data; local
129 EXPECT_FALSE(pickle.ReadInt(&iter, &data));
175 const char* start = reinterpret_cast<const char*>(pickle.data());
246 scoped_ptr<char[]> data(new char[unit]);
247 char* data_ptr = data.get();
252 // note that any data wil
360 int data = 0x7abcd; local
[all...]
H A Dsha1_portable.cc13 // Implementation of SHA-1. Only handles data in byte-sized blocks,
23 // while(there is data to hash)
24 // sha.Update(moredata, size of data);
41 void Update(const void* data, size_t nbytes);
123 void SecureHashAlgorithm::Update(const void* data, size_t nbytes) { argument
124 const uint8* d = reinterpret_cast<const uint8*>(data);
207 void SHA1HashBytes(const unsigned char* data, size_t len, argument
210 sha.Update(data, len);
H A Dsupports_user_data.cc22 void SupportsUserData::SetUserData(const void* key, Data* data) { argument
24 user_data_[key] = linked_ptr<Data>(data);
H A Dsupports_user_data.h17 // This is a helper for classes that want to allow users to stash random data by
23 // Derive from this class and add your own data members to associate extra
31 // The user data allows the clients to associate data with this object.
32 // Multiple user data values can be stored under different keys.
33 // This object will TAKE OWNERSHIP of the given data pointer, and will
36 void SetUserData(const void* key, Data* data);
51 // Externally-defined data accessible by key.
65 UserDataAdapter* data = local
67 return data
[all...]
H A Dsync_socket_unittest.cc26 int data = 0; variable
31 &data, sizeof(data), base::TimeDelta::FromMilliseconds(
46 // Tests sending data between two SyncSockets. Uses ASSERT() and thus will exit
H A Dtracked_objects_unittest.cc123 ThreadData* data = ThreadData::Get(); local
125 ASSERT_TRUE(data);
126 EXPECT_FALSE(data->next());
127 EXPECT_EQ(data, ThreadData::Get());
131 data->SnapshotMaps(false, &birth_map, &death_map, &parent_child_set);
143 data = ThreadData::Get();
145 ASSERT_TRUE(data);
146 EXPECT_FALSE(data->next());
147 EXPECT_EQ(data, ThreadData::Get());
151 data
168 ThreadData* data = ThreadData::first(); local
[all...]
/external/chromium_org/base/process/
H A Dprocess_iterator_freebsd.cc66 std::string data; local
82 data.resize(length);
84 if (sysctl(mib, arraysize(mib), &data[0], &length, NULL, 0) < 0) {
91 Tokenize(data, delimiters, &entry_.cmd_line_args_);
93 size_t exec_name_end = data.find('\0');
95 LOG(ERROR) << "command line data didn't match expected format";
103 size_t last_slash = data.rfind('/', exec_name_end);
105 entry_.exe_file_.assign(data, 0, exec_name_end);
107 entry_.exe_file_.assign(data, last_slash + 1,
H A Dprocess_iterator_mac.cc73 std::string data; local
90 data.resize(data_len);
91 if (sysctl(mib, arraysize(mib), &data[0], &data_len, NULL, 0) < 0) {
96 // |data| contains all the command line parameters of the process, separated
97 // by blocks of one or more null characters. We tokenize |data| into a
102 Tokenize(data, delimiters, &entry_.cmd_line_args_);
104 // |data| starts with the full executable path followed by a null character.
107 size_t exec_name_end = data.find('\0');
109 DLOG(ERROR) << "command line data didn't match expected format";
116 size_t last_slash = data
[all...]
H A Dprocess_iterator_openbsd.cc66 std::string data; local
83 data.resize(data_len);
84 if (sysctl(mib, arraysize(mib), &data[0], &data_len, NULL, 0) < 0) {
89 // |data| contains all the command line parameters of the process, separated
90 // by blocks of one or more null characters. We tokenize |data| into a
95 Tokenize(data, delimiters, &entry_.cmd_line_args_);
97 // |data| starts with the full executable path followed by a null character.
100 size_t exec_name_end = data.find('\0');
102 DLOG(ERROR) << "command line data didn't match expected format";
109 size_t last_slash = data
[all...]
H A Dprocess_metrics_mac.cc332 vm_statistics_data_t data; local
334 reinterpret_cast<host_info_t>(&data),
341 return (data.active_count * PAGE_SIZE) / 1024;
/external/chromium_org/base/strings/
H A Dstring_piece.cc25 const char* const data = characters_wanted.data(); local
27 table[static_cast<unsigned char>(data[i])] = true;
43 return StringPiece::wordmemcmp(x.data(), y.data(), x.size()) == 0;
47 o.write(piece.data(), static_cast<std::streamsize>(piece.size()));
58 target->assign(self.data(), self.size());
72 target->append(self.data(), self.size());
89 memcpy(buf, self.data() + pos, ret * sizeof(typename STR::value_type));
179 if (self.data()[
[all...]
H A Dstring_piece.h10 // char*" argument, a string argument, or a StringPiece argument with no data
11 // copying. Systematic use of StringPiece for arguments reduces data
156 // Defines the types, methods, operators, and data members common to both
185 : ptr_(str.data()), length_(str.size()) {}
193 // data() may return a pointer to a buffer with embedded NULs, and the
195 // typically a mistake to pass data() to a routine that expects a NUL
197 const value_type* data() const { return ptr_; } function in class:base::BasicStringPiece
206 void set(const value_type* data, size_type len) { argument
207 ptr_ = data;
238 return empty() ? STRING_TYPE() : STRING_TYPE(data(), siz
[all...]
H A Dstring_split_unittest.cc300 } data[] = { local
315 for (size_t i = 0; i < ARRAYSIZE_UNSAFE(data); ++i) {
317 SplitStringAlongWhitespace(data[i].input, &results);
318 ASSERT_EQ(data[i].expected_result_count, results.size());
319 if (data[i].expected_result_count > 0)
320 ASSERT_EQ(data[i].output1, results[0]);
321 if (data[i].expected_result_count > 1)
322 ASSERT_EQ(data[i].output2, results[1]);
H A Dstring_util.cc218 const char* data = input.data(); local
227 CBU8_NEXT(data, char_index, truncation_length, code_point);
344 const char *src = str.data();
852 return MatchPatternT(eval.data(), eval.data() + eval.size(),
853 pattern.data(), pattern.data() + pattern.size(),
/external/chromium_org/base/test/android/javatests/src/org/chromium/base/test/util/
H A DAdvancedMockContext.java78 public void addSharedPreferences(String name, Map<String, Object> data) { argument
80 mSharedPreferences.put(name, new InMemorySharedPreferences(data));
H A DInMemorySharedPreferences.java28 public InMemorySharedPreferences(Map<String, Object> data) { argument
29 mData = data;
/external/chromium_org/base/test/
H A Dtrace_to_file.cc69 void TraceToFile::TraceOutputCallback(const std::string& data) { argument
70 int ret = AppendToFile(path_, data.c_str(), static_cast<int>(data.size()));
79 buffer->AddFragment(json_events_str->data());
/external/chromium_org/base/third_party/superfasthash/
H A Dsuperfasthash.c41 uint32_t SuperFastHash (const char * data, int len) { argument
45 if (len <= 0 || data == NULL) return 0;
52 hash += get16bits (data);
53 tmp = (get16bits (data+2) << 11) ^ hash;
55 data += 2*sizeof (uint16_t);
61 case 3: hash += get16bits (data);
63 hash ^= ((signed char)data[sizeof (uint16_t)]) << 18;
66 case 2: hash += get16bits (data);
70 case 1: hash += (signed char)*data;
/external/chromium_org/base/win/
H A Devent_trace_provider.h67 void SetField(int field, size_t size, const void *data) { argument
70 fields[field].DataPtr = reinterpret_cast<ULONG64>(data);
H A Devent_trace_provider_unittest.cc46 DWORD data = 0; local
47 dummy.SetField(0, sizeof(data), &data);
H A Dregistry.cc25 // Registry values are read as BYTE* but can have wchar_t* data whose last
310 void* data,
314 reinterpret_cast<LPBYTE>(data), dsize);
360 const void* data,
363 DCHECK(data || !dsize);
366 reinterpret_cast<LPBYTE>(const_cast<void*>(data)), dsize);
309 ReadValue(const wchar_t* name, void* data, DWORD* dsize, DWORD* dtype) const argument
359 WriteValue(const wchar_t* name, const void* data, DWORD dsize, DWORD dtype) argument
H A Dresource_util.cc14 void** data,
38 *data = resource;
45 void** data,
47 return GetResourceFromModule(module, resource_id, L"BINDATA", data, length);
11 GetResourceFromModule(HMODULE module, int resource_id, LPCTSTR resource_type, void** data, size_t* length) argument
43 GetDataResourceFromModule(HMODULE module, int resource_id, void** data, size_t* length) argument

Completed in 333 milliseconds

1234567891011>>