/system/core/libcutils/ |
H A D | cpu_info.c | 32 char* chp, *end; local 55 end = chp; 56 while (*end && *end != ' ' && *end != '\t' && *end != '\n' && *end != '\r') 57 ++end; 58 *end = 0;
|
H A D | strdup8to16.c | 192 const char *end = utf8Str + length; /* This line */ local 193 while (utf8Str < end) { /* and this line changed. */
|
H A D | trace.c | 68 char* end = strchr(start, ','); local 70 if (end != NULL) { 71 *end = '\0'; 72 end++; 79 start = end;
|
/system/core/toolbox/ |
H A D | r.c | 40 char* end = strchr(argv[1], '-'); local 41 if (end) 42 endaddr = strtoptr(end + 1, 0, 16); 48 fprintf(stderr, "end address <= start address\n");
|
H A D | insmod.c | 72 char *end = opts + sizeof(opts) - 1; local 75 for (i = 2; (i < argc) && (ptr < end); i++) { 76 len = MIN(strlen(argv[i]), (size_t)(end - ptr));
|
H A D | nandread.c | 34 loff_t pos, opos, end, bpos; local 189 end = len ? (start + len) : mtdinfo.size; 190 for (pos = start, opos = 0; pos < end; pos += mtdinfo.writesize) {
|
/system/netd/server/ |
H A D | UidRanges.cpp | 24 auto iter = std::lower_bound(mRanges.begin(), mRanges.end(), Range(uid, uid)); 25 return (iter != mRanges.end() && iter->first == uid) || 48 // Unexpected end of string. 70 std::sort(mRanges.begin(), mRanges.end()); 75 auto middle = mRanges.insert(mRanges.end(), other.mRanges.begin(), other.mRanges.end()); 76 std::inplace_merge(mRanges.begin(), middle, mRanges.end()); 80 auto end = std::set_difference(mRanges.begin(), mRanges.end(), other.mRanges.begin(), local 81 other.mRanges.end(), mRange [all...] |
/system/core/libbacktrace/ |
H A D | BacktraceMap.cpp | 42 it != end(); ++it) { 43 if (addr >= it->start && addr < it->end) { 52 unsigned long int end; local 62 &start, &end, permissions, &name_pos) != 3) { 69 &start, &end, permissions, &name_pos) != 3) { 75 map->end = end; 95 ALOGV("Parsed map: start=%p, end=%p, flags=%x, name=%s", 96 reinterpret_cast<void*>(map->start), reinterpret_cast<void*>(map->end),
|
H A D | GetPss.cpp | 61 uintptr_t start, end; local 62 if (sscanf(line, "%" SCNxPTR "-%" SCNxPTR " ", &start, &end) != 2) { 66 for (size_t page = start/pagesize; page < end/pagesize; page++) {
|
H A D | map_info.c | 37 unsigned long int end; local 41 &start, &end, permissions, &name_pos) != 3) { 51 mi->end = end; 57 ALOGV("Parsed map: start=0x%08x, end=0x%08x, " 59 mi->start, mi->end, 98 unsigned long int end; local 101 if (sscanf(line, "%lx-%lx %4s %*x %*x:%*x %*d%n", &start, &end, 118 mi->end = end; [all...] |
/system/keymaster/ |
H A D | google_keymaster_messages.cpp | 29 uint8_t* KeymasterResponse::Serialize(uint8_t* buf, const uint8_t* end) const { 30 buf = append_uint32_to_buf(buf, end, static_cast<uint32_t>(error)); 32 buf = NonErrorSerialize(buf, end); 36 bool KeymasterResponse::Deserialize(const uint8_t** buf_ptr, const uint8_t* end) { argument 37 if (!copy_uint32_from_buf(buf_ptr, end, &error)) 41 return NonErrorDeserialize(buf_ptr, end); 48 uint8_t* SupportedAlgorithmsResponse::NonErrorSerialize(uint8_t* buf, const uint8_t* end) const { 49 return append_uint32_array_to_buf(buf, end, algorithms, algorithms_length); 52 bool SupportedAlgorithmsResponse::NonErrorDeserialize(const uint8_t** buf_ptr, const uint8_t* end) { argument 56 if (!copy_uint32_array_from_buf(buf_ptr, end, 77 NonErrorDeserialize(const uint8_t** buf_ptr, const uint8_t* end) argument 109 Deserialize(const uint8_t** buf_ptr, const uint8_t* end) argument 130 NonErrorDeserialize(const uint8_t** buf_ptr, const uint8_t* end) argument 152 Deserialize(const uint8_t** buf_ptr, const uint8_t* end) argument 173 NonErrorDeserialize(const uint8_t** buf_ptr, const uint8_t* end) argument 186 Deserialize(const uint8_t** buf_ptr, const uint8_t* end) argument 198 NonErrorDeserialize(const uint8_t** buf_ptr, const uint8_t* end) argument 211 Deserialize(const uint8_t** buf_ptr, const uint8_t* end) argument 223 NonErrorDeserialize(const uint8_t** buf_ptr, const uint8_t* end) argument 244 Deserialize(const uint8_t** buf_ptr, const uint8_t* end) argument 273 NonErrorDeserialize(const uint8_t** buf_ptr, const uint8_t* end) argument 302 Deserialize(const uint8_t** buf_ptr, const uint8_t* end) argument 329 NonErrorDeserialize(const uint8_t** buf_ptr, const uint8_t* end) argument [all...] |
H A D | serializable.cpp | 22 uint8_t* append_to_buf(uint8_t* buf, const uint8_t* end, const void* data, size_t data_len) { argument 23 if (buf + data_len <= end) 28 bool copy_from_buf(const uint8_t** buf_ptr, const uint8_t* end, void* dest, size_t size) { argument 29 if (end < *buf_ptr + size) 36 bool copy_size_and_data_from_buf(const uint8_t** buf_ptr, const uint8_t* end, size_t* size, argument 38 if (!copy_uint32_from_buf(buf_ptr, end, size) || *buf_ptr + *size > end) { 48 return copy_from_buf(buf_ptr, end, dest->get(), *size); 118 uint8_t* Buffer::Serialize(uint8_t* buf, const uint8_t* end) const { 119 return append_size_and_data_to_buf(buf, end, peek_rea 122 Deserialize(const uint8_t** buf_ptr, const uint8_t* end) argument [all...] |
H A D | google_keymaster_messages_test.cpp | 57 uint8_t* NonErrorSerialize(uint8_t* buf, const uint8_t* /* end */) const { 61 bool NonErrorDeserialize(const uint8_t** buf_ptr, const uint8_t* end) { argument 62 if (*buf_ptr >= end) 334 const uint8_t* end = msgbuf + array_length(msgbuf); local 338 msg.Deserialize(&p, end);
|
H A D | key_blob.cpp | 120 uint8_t* KeyBlob::Serialize(uint8_t* buf, const uint8_t* end) const { 122 buf = append_to_buf(buf, end, nonce(), NONCE_LENGTH); 123 buf = append_size_and_data_to_buf(buf, end, encrypted_key_material(), key_material_length()); 124 buf = append_to_buf(buf, end, tag(), TAG_LENGTH); 125 buf = enforced_.Serialize(buf, end); 126 buf = unenforced_.Serialize(buf, end); 131 bool KeyBlob::Deserialize(const uint8_t** buf_ptr, const uint8_t* end) { argument 133 if (!copy_from_buf(buf_ptr, end, nonce_.get(), NONCE_LENGTH) || 134 !copy_size_and_data_from_buf(buf_ptr, end, &key_material_length_, &tmp_key_ptr) || 135 !copy_from_buf(buf_ptr, end, tag 244 uint8_t* end = derivation_data + *derivation_data_length; local [all...] |
H A D | key_blob_test.cpp | 90 uint8_t* end = begin + size; local 91 EXPECT_EQ(end, std::search(begin, end, key_data, key_data + array_size(key_data))); 121 uint8_t* end = begin + size; local 122 auto nonce_ptr = std::search(begin, end, nonce, nonce + array_size(nonce)); 123 ASSERT_NE(nonce_ptr, end); 124 EXPECT_EQ(end, std::search(nonce_ptr + 1, end, nonce, nonce + array_size(nonce))); 141 uint8_t* end = begin + size; local 142 auto tag_ptr = std::search(begin, end, blob 161 uint8_t* end = begin + size; local 199 uint8_t* end = begin + size; local 224 uint8_t* end = begin + size; local 249 uint8_t* end = begin + size; local 264 uint8_t* end = begin + size; local 281 uint8_t* end = begin + size; local [all...] |
/system/core/include/backtrace/ |
H A D | BacktraceMap.h | 37 uintptr_t end; member in struct:backtrace_map_t 70 iterator end() { return maps_.end(); } function in class:BacktraceMap 74 const_iterator end() const { return maps_.end(); } function in class:BacktraceMap
|
H A D | Backtrace.h | 105 iterator end() { return frames_.end(); } function in class:Backtrace 109 const_iterator end() const { return frames_.end(); } function in class:Backtrace
|
/system/core/liblog/tests/ |
H A D | liblog_benchmark.cpp | 178 uint64_t end = log_msg.nsec(); local 179 if (end >= start) { 181 StopBenchmarkTiming(end);
|
/system/core/debuggerd/ |
H A D | backtrace.cpp | 62 _LOG(log, logtype::BACKTRACE, "\n----- end %d -----\n", pid); 125 char* end; local 126 pid_t new_tid = strtoul(de->d_name, &end, 10); 127 if (*end || new_tid == tid) {
|
H A D | utility.cpp | 143 uintptr_t p, end; local 153 end = p + 256; 154 /* catch overflow; 'end - p' has to be multiples of 16 */ 155 while (end < p) { 156 end -= 16; 166 while (p < end) {
|
/system/core/fastbootd/other/ |
H A D | gptedit.c | 179 printf("ptn start block end block name\n"); 243 unsigned start, end; local 271 end = strtoul(c2, NULL, 10); 280 data.last_lba = end; 282 fprintf(stderr, "Adding (%d,%d) %s as, [%s, %s]", start, end, name, (char *) data.type_guid, (char *) data.partition_guid);
|
/system/core/libutils/ |
H A D | PropertyMap.cpp | 84 char* end; local 85 int value = strtol(stringValue.string(), & end, 10); 86 if (*end != '\0') { 101 char* end; local 102 float value = strtof(stringValue.string(), & end); 103 if (*end != '\0') { 198 ALOGE("%s: Expected end of line, got '%s'.",
|
H A D | Tokenizer.cpp | 119 const char* end = getEnd(); local 121 while (eol != end) { 135 const char* end = getEnd(); local 137 while (mCurrent != end) { 151 const char* end = getEnd(); local 152 while (mCurrent != end) { 165 const char* end = getEnd(); local 166 while (mCurrent != end) {
|
/system/extras/tests/ext4/ |
H A D | rand_emmc_perf.c | 40 struct timeval end; member in struct:stats 73 timersub(&stats_buf[i].end, &stats_buf[i].start, &t); 100 timersub(&stats_buf[i].end, &stats_buf[i].start, &t); /* Xi */ 140 gettimeofday(&stats_buf[i].end, NULL); 148 struct timeval start, end, res; local 169 gettimeofday(&end, NULL); 170 timersub(&end, &start, &res); 176 gettimeofday(&end, NULL); 177 timersub(&end, &start, &res);
|
/system/keymaster/include/keymaster/ |
H A D | serializable.h | 42 * written. Will not write past \p end, which should point to \p buf + size of the buffer 43 * (i.e. one past the end of the buffer). 45 virtual uint8_t* Serialize(uint8_t* buf, const uint8_t* end) const = 0; 51 virtual bool Deserialize(const uint8_t** buf_ptr, const uint8_t* end) = 0; 70 uint8_t* append_to_buf(uint8_t* buf, const uint8_t* end, const void* data, size_t data_len); 79 inline uint8_t* append_uint32_to_buf(uint8_t* buf, const uint8_t* end, T value) { argument 81 return append_to_buf(buf, end, &val, sizeof(val)); 87 inline uint8_t* append_uint64_to_buf(uint8_t* buf, const uint8_t* end, uint64_t value) { argument 88 return append_to_buf(buf, end, &value, sizeof(value)); 97 inline uint8_t* append_size_and_data_to_buf(uint8_t* buf, const uint8_t* end, cons argument 110 append_uint32_array_to_buf(uint8_t* buf, const uint8_t* end, const T* data, size_t count) argument 143 copy_uint32_from_buf(const uint8_t** buf_ptr, const uint8_t* end, T* value) argument 155 copy_uint64_from_buf(const uint8_t** buf_ptr, const uint8_t* end, uint64_t* value) argument 166 copy_uint32_array_from_buf(const uint8_t** buf_ptr, const uint8_t* end, UniquePtr<T[]>* data, size_t* count) argument [all...] |