Searched defs:from (Results 1 - 22 of 22) sorted by relevance

/system/core/toolbox/upstream-netbsd/lib/libc/string/
H A Dswab.c7 * This code is derived from software contributed to Berkeley by
19 * may be used to endorse or promote products derived from this software
48 swab(const void * __restrict from, void * __restrict to, ssize_t len) argument
57 _DIAGASSERT(from != NULL);
61 fp = (const char *)from;
/system/bt/types/
H A Draw_address.cc42 bool RawAddress::FromString(const std::string& from, RawAddress& to) { argument
44 if (from.length() != 17) return false;
47 base::SplitString(from, ":", base::TRIM_WHITESPACE, base::SPLIT_WANT_ALL);
65 size_t RawAddress::FromOctets(const uint8_t* from) { argument
66 std::copy(from, from + kLength, address);
/system/update_engine/common/
H A Daction_pipe.h30 // is based on the KSAction* classes from the Google Update Engine code at
36 // from one Action and into another Action. It's templated so that it may
71 static void Bond(FromAction* from, ToAction* to) { argument
73 from->set_out_pipe(pipe);
77 // different from the To object's InputObjectType.
91 void BondActions(FromAction* from, ToAction* to) { argument
96 ActionPipe<typename FromAction::OutputObjectType>::Bond(from, to);
/system/tpm/trunks/
H A Dbackground_command_transceiver_test.cc49 void Assign(std::string* to, const std::string& from) { argument
50 *to = from;
H A Dresource_manager_test.cc46 void Assign(std::string* to, const std::string& from) { argument
47 *to = from;
/system/extras/libperfmgr/tests/
H A DHintManagerTest.cc133 std::string from = local
135 size_t start_pos = json_doc_.find(from);
136 json_doc_.replace(start_pos, from.length(), files_[0 + 2]->path);
137 from = "/sys/devices/system/cpu/cpu4/cpufreq/scaling_min_freq";
138 start_pos = json_doc_.find(from);
139 json_doc_.replace(start_pos, from.length(), files_[1 + 2]->path);
246 std::string from = "CPUCluster0MinFreq"; local
247 size_t start_pos = json_doc_.find(from);
248 json_doc_.replace(start_pos, from.length(), "CPUCluster1MinFreq");
256 std::string from local
304 std::string from = "\\"Node\\":\\"CPUCluster0MinFreq\\""; local
[all...]
/system/timezone/distro/core/src/main/com/android/timezone/distro/
H A DFileUtils.java35 * Creates a new {@link java.io.File} from the {@code parentDir} and {@code name}, but only if
101 public static void rename(File from, File to) throws IOException { argument
103 if (!from.renameTo(to)) {
104 throw new IOException("Unable to rename " + from + " to " + to);
162 * Reads up to {@code maxBytes} bytes from the specified file. The returned array can be
/system/extras/simpleperf/
H A Dcmd_report_test.cpp299 char from[80]; local
301 if (sscanf(line.c_str(), "%*f%%%s%s", from, to) == 2) {
302 hit_set.insert(std::make_pair<std::string, std::string>(from, to));
H A Devent_fd.cpp129 PLOG(ERROR) << "ReadCounter from " << Name() << " failed";
248 // Copy records from mapped buffer. Note that records can be wrapped at the
252 char* from = mmap_data_buffer_ + read_head; local
254 memcpy(to, from, n);
256 char* from = mmap_data_buffer_ + read_head; local
258 memcpy(to, from, n);
260 from = mmap_data_buffer_;
262 memcpy(to, from, n);
H A Drecord.h112 uint64_t from; member in struct:BranchStackItemType
195 // Parse sample_id from binary format in the buffer pointed by p.
211 // Record, and hold the type specific data part in classes derived from Record.
554 // Read record from the buffer pointed by [p]. But the record doesn't own
558 // Read record from the buffer pointed by [p]. And the record owns the buffer.
562 // Read records from the buffer pointed by [buf]. None of the records own
567 // Read one record from the buffer pointed by [p]. But the record doesn't
571 // RecordCache is a cache used when receiving records from the kernel.
573 // in sorted order. Records from the kernel need to be sorted because
574 // records may come from differen
[all...]
/system/vold/
H A DMoveStorage.cpp188 static status_t moveStorageInternal(const std::shared_ptr<VolumeBase>& from, argument
195 if (from->getType() != VolumeBase::Type::kEmulated) goto fail;
202 bringOffline(from);
206 fromPath = from->getInternalPath();
224 bringOnline(from);
244 bringOnline(from);
251 void MoveStorage(const std::shared_ptr<VolumeBase>& from, const std::shared_ptr<VolumeBase>& to, argument
256 status_t res = moveStorageInternal(from, to, listener);
/system/core/include/utils/
H A DSortedVector.h147 virtual void do_copy(void* dest, const void* from, size_t num) const;
149 virtual void do_move_forward(void* dest, const void* from, size_t num) const;
150 virtual void do_move_backward(void* dest, const void* from, size_t num) const;
155 // No user serviceable parts from here...
267 UTILS_VECTOR_NO_CFI void SortedVector<TYPE>::do_copy(void* dest, const void* from, size_t num) const { argument
268 copy_type( reinterpret_cast<TYPE*>(dest), reinterpret_cast<const TYPE*>(from), num );
277 UTILS_VECTOR_NO_CFI void SortedVector<TYPE>::do_move_forward(void* dest, const void* from, size_t num) const { argument
278 move_forward_type( reinterpret_cast<TYPE*>(dest), reinterpret_cast<const TYPE*>(from), num );
282 UTILS_VECTOR_NO_CFI void SortedVector<TYPE>::do_move_backward(void* dest, const void* from, size_t num) const { argument
283 move_backward_type( reinterpret_cast<TYPE*>(dest), reinterpret_cast<const TYPE*>(from), nu
[all...]
H A DVector.h28 * Used to blacklist some functions from CFI.
99 * constructor, or removed from the end as needed.
155 //! insert one or several items initialized from a prototype item
218 virtual void do_copy(void* dest, const void* from, size_t num) const;
220 virtual void do_move_forward(void* dest, const void* from, size_t num) const;
221 virtual void do_move_backward(void* dest, const void* from, size_t num) const;
225 // No user serviceable parts from here...
409 UTILS_VECTOR_NO_CFI void Vector<TYPE>::do_copy(void* dest, const void* from, size_t num) const { argument
410 copy_type( reinterpret_cast<TYPE*>(dest), reinterpret_cast<const TYPE*>(from), num );
419 UTILS_VECTOR_NO_CFI void Vector<TYPE>::do_move_forward(void* dest, const void* from, size_ argument
424 do_move_backward(void* dest, const void* from, size_t num) const argument
[all...]
/system/core/libsparse/
H A Dbacked_block.c144 void backed_block_list_move(struct backed_block_list *from, argument
151 start = from->data_blocks;
163 from->last_used = NULL;
165 if (from->data_blocks == start) {
166 from->data_blocks = end->next;
168 for (bb = from->data_blocks; bb; bb = bb->next) {
264 pointer to the last bb that was added, and start searching from
H A Dsparse.c289 static struct backed_block *move_chunks_up_to_len(struct sparse_file *from, argument
309 start = backed_block_iter_new(from->backed_block_list);
337 backed_block_split(from->backed_block_list, bb, len - file_len);
347 backed_block_list_move(from->backed_block_list,
/system/core/libutils/include/utils/
H A DSortedVector.h147 virtual void do_copy(void* dest, const void* from, size_t num) const;
149 virtual void do_move_forward(void* dest, const void* from, size_t num) const;
150 virtual void do_move_backward(void* dest, const void* from, size_t num) const;
155 // No user serviceable parts from here...
267 UTILS_VECTOR_NO_CFI void SortedVector<TYPE>::do_copy(void* dest, const void* from, size_t num) const { argument
268 copy_type( reinterpret_cast<TYPE*>(dest), reinterpret_cast<const TYPE*>(from), num );
277 UTILS_VECTOR_NO_CFI void SortedVector<TYPE>::do_move_forward(void* dest, const void* from, size_t num) const { argument
278 move_forward_type( reinterpret_cast<TYPE*>(dest), reinterpret_cast<const TYPE*>(from), num );
282 UTILS_VECTOR_NO_CFI void SortedVector<TYPE>::do_move_backward(void* dest, const void* from, size_t num) const { argument
283 move_backward_type( reinterpret_cast<TYPE*>(dest), reinterpret_cast<const TYPE*>(from), nu
[all...]
H A DVector.h28 * Used to blacklist some functions from CFI.
99 * constructor, or removed from the end as needed.
155 //! insert one or several items initialized from a prototype item
218 virtual void do_copy(void* dest, const void* from, size_t num) const;
220 virtual void do_move_forward(void* dest, const void* from, size_t num) const;
221 virtual void do_move_backward(void* dest, const void* from, size_t num) const;
225 // No user serviceable parts from here...
409 UTILS_VECTOR_NO_CFI void Vector<TYPE>::do_copy(void* dest, const void* from, size_t num) const { argument
410 copy_type( reinterpret_cast<TYPE*>(dest), reinterpret_cast<const TYPE*>(from), num );
419 UTILS_VECTOR_NO_CFI void Vector<TYPE>::do_move_forward(void* dest, const void* from, size_ argument
424 do_move_backward(void* dest, const void* from, size_t num) const argument
[all...]
/system/tools/aidl/
H A Daidl_language.cpp106 // Converting from unsigned to signed integer.
247 AidlImport::AidlImport(const std::string& from, argument
249 : from_(from),
/system/core/libnativebridge/
H A Dnative_bridge.cc597 bool NativeBridgeLinkNamespaces(native_bridge_namespace_t* from, native_bridge_namespace_t* to, argument
601 return callbacks->linkNamespaces(from, to, shared_libs_sonames);
/system/core/adb/
H A Dfile_sync_client.cpp237 bool ReceivedError(const char* from, const char* to) { argument
459 // Check to see if we've received an error from the other side.
478 bool CopyDone(const char* from, const char* to) { argument
481 Error("failed to copy '%s' to '%s': couldn't read from device", from, to);
490 Error("failed to copy '%s' to '%s': received premature success", from, to);
495 Error("failed to copy '%s' to '%s': unknown reason %d", from, to, msg.status.id);
498 return ReportCopyFailure(from, to, msg);
501 bool ReportCopyFailure(const char* from, const char* to, const syncmsg& msg) { argument
505 from, t
590 WriteOrDie(const char* from, const char* to, const void* data, size_t data_length) argument
[all...]
/system/extras/perfprofd/tests/
H A Dperfprofd_test.cc127 // Squeeze out repeated whitespace from expected/actual logs.
149 const std::string &from,
155 size_t found = str.find(from, pos);
161 pos = found + from.size();
474 // Check return code from daemon
513 // Check return code from daemon
530 // from collecting profiles.
550 // Check return code from daemon
590 // Check return code from daemon
623 // Check return code from daemo
148 replaceAll(const std::string &str, const std::string &from, const std::string &to) argument
[all...]
/system/core/lmkd/
H A Dlmkd.c179 /* fields below are calculated rather than read from the file */
219 /* fields below are calculated rather than read from the file */
291 * Read file content from the beginning up to max_len bytes or EOF
317 * Read a new or already opened file from the beginning.
669 * the new one. This prevents inactive connections from monopolizing
1102 ALOGI("Low pressure min memory update from %" PRId64 " to %" PRId64,
1118 ALOGI("Low pressure max memory update from %" PRId64 " to %" PRId64,
1135 static inline unsigned long get_time_diff_ms(struct timeval *from, argument
1137 return (to->tv_sec - from->tv_sec) * 1000 +
1138 (to->tv_usec - from
[all...]

Completed in 547 milliseconds