Home
last modified time | relevance | path

Searched refs:ptr (Results 1 – 6 of 6) sorted by relevance

/bootable/recovery/tests/
Dasn1_decoder_test.cpp68 asn1_context_t* ptr = asn1_constructed_get(ctx); in TEST_F() local
69 ASSERT_NE((asn1_context_t*)NULL, ptr); in TEST_F()
70 EXPECT_EQ(5, asn1_constructed_type(ptr)); in TEST_F()
73 EXPECT_FALSE(asn1_oid_get(ptr, &oid, &length)); in TEST_F()
74 asn1_context_free(ptr); in TEST_F()
81 asn1_context_t* ptr = asn1_constructed_get(ctx); in TEST_F() local
82 ASSERT_NE((asn1_context_t*)NULL, ptr); in TEST_F()
83 EXPECT_EQ(5, asn1_constructed_type(ptr)); in TEST_F()
86 ASSERT_TRUE(asn1_oid_get(ptr, &oid, &length)); in TEST_F()
89 asn1_context_free(ptr); in TEST_F()
[all …]
/bootable/recovery/tools/ota/
Dadd-property-tag.c36 const char *ptr; in should_tag() local
37 for (ptr = line; ptr < prop && isspace(*ptr); ++ptr) ; in should_tag()
38 if (ptr != prop) return 0; // Must be at the beginning of the line in should_tag()
40 for (ptr += strlen(propname); *ptr != '\0' && isspace(*ptr); ++ptr) ; in should_tag()
41 return (*ptr == '='); // Must be followed by a '=' in should_tag()
/bootable/recovery/minzip/
DZip.c190 const unsigned char* ptr; in parseZipArchive() local
212 ptr = pArchive->addr + pArchive->length - ENDHDR; in parseZipArchive()
214 while (ptr >= (const unsigned char*) pArchive->addr) { in parseZipArchive()
215 if (*ptr == (ENDSIG & 0xff) && get4LE(ptr) == ENDSIG) in parseZipArchive()
217 ptr--; in parseZipArchive()
219 if (ptr < (const unsigned char*) pArchive->addr) { in parseZipArchive()
229 numEntries = get2LE(ptr + ENDSUB); in parseZipArchive()
230 cdOffset = get4LE(ptr + ENDOFF); in parseZipArchive()
248 ptr = pArchive->addr + cdOffset; in parseZipArchive()
255 if (ptr + CENHDR > (const unsigned char*)pArchive->addr + pArchive->length) { in parseZipArchive()
[all …]
DHash.h32 typedef void (*HashFreeFunc)(void* ptr);
/bootable/recovery/minui/
Devents.cpp89 ev.data.ptr = &ev_fdinfo[ev_count]; in ev_init()
127 ev.data.ptr = (void *)&ev_fdinfo[ev_count]; in ev_add_fd()
159 fd_info* fdi = reinterpret_cast<fd_info*>(polledevents[n].data.ptr); in ev_dispatch()
/bootable/recovery/
Dscreen_ui.cpp520 for (const char* ptr = buf; *ptr != '\0'; ++ptr) { in Print() local
521 if (*ptr == '\n' || text_col_ >= text_cols_) { in Print()
527 if (*ptr != '\n') text_[text_row_][text_col_++] = *ptr; in Print()