Home
last modified time | relevance | path

Searched refs:rec (Results 1 – 25 of 274) sorted by relevance

1234567891011

/external/srec/srec/crec/
Dsrec_initialize.c72 static void allocate_recognition1(srec *rec, in allocate_recognition1() argument
91rec->current_model_scores = (costdata*) CALLOC_CLR(max_model_states, sizeof(costdata), "search.sre… in allocate_recognition1()
92 rec->num_model_slots_allocated = (modelID)max_model_states; in allocate_recognition1()
94 rec->fsmarc_token_array_size = (stokenID)max_hmm_tokens; in allocate_recognition1()
96rec->fsmarc_token_array = (fsmarc_token*) CALLOC_CLR(rec->fsmarc_token_array_size , sizeof(fsmarc_… in allocate_recognition1()
97 rec->max_new_states = (stokenID)max_hmm_tokens; in allocate_recognition1()
99rec->word_token_array = (word_token*) CALLOC_CLR(max_word_tokens, sizeof(word_token), "search.srec… in allocate_recognition1()
100 rec->word_token_array_size = (wtokenID)max_word_tokens; in allocate_recognition1()
102rec->word_token_array_flags = (asr_int16_t*) CALLOC_CLR(max_word_tokens, sizeof(asr_int16_t), "sea… in allocate_recognition1()
104rec->fsmnode_token_array = (fsmnode_token*) CALLOC_CLR(max_fsmnode_tokens, sizeof(fsmnode_token), … in allocate_recognition1()
[all …]
Dsrec_tokens.c37 int count_fsmarc_token_list(srec* rec, stokenID token_index) in count_fsmarc_token_list() argument
43 fsmarc_token* stoken = &rec->fsmarc_token_array[token_index]; in count_fsmarc_token_list()
53 void initialize_free_fsmarc_tokens(srec *rec) in initialize_free_fsmarc_tokens() argument
58 for (i = 0;i < rec->fsmarc_token_array_size - 1;i++) in initialize_free_fsmarc_tokens()
60 rec->fsmarc_token_array[i].next_token_index = i + 1; in initialize_free_fsmarc_tokens()
62 rec->fsmarc_token_array[rec->fsmarc_token_array_size-1].next_token_index = MAXstokenID; in initialize_free_fsmarc_tokens()
63 rec->fsmarc_token_freelist = 0; in initialize_free_fsmarc_tokens()
67 stokenID setup_free_fsmarc_token(srec *rec, FSMarc* arc, arcID fsm_arc_index, miscdata what_to_do_i… in setup_free_fsmarc_token() argument
73 if (rec->fsmarc_token_freelist == MAXstokenID) in setup_free_fsmarc_token()
91 ASSERT(rec->fsmarc_token_freelist < rec->fsmarc_token_array_size); in setup_free_fsmarc_token()
[all …]
Dsrec.c60 static void reset_cost_offsets(multi_srec* rec, frameID current_search_frame,
62 static void update_internal_hmm_states(srec *rec, costdata *pcurrent_prune_delta,
78 static altword_token* reprune_altword_token_batch(srec* rec, in reprune_altword_token_batch() argument
88 free_altword_token(rec, batch); in reprune_altword_token_batch()
102 free_altword_token(rec, awtoken); in reprune_altword_token_batch()
125 free_altword_token(rec, awtoken); in reprune_altword_token_batch()
131 free_altword_token(rec, batch); in reprune_altword_token_batch()
137 static void reprune_altword_tokens(srec* rec) in reprune_altword_tokens() argument
142 bigcostdata current_prune_delta = rec->prune_delta; in reprune_altword_tokens()
146 for (i = rec->active_fsmarc_tokens; i != MAXstokenID; i = stoken->next_token_index) in reprune_altword_tokens()
[all …]
Dword_lattice.c111 void print_word_token_backtrace(srec* rec, wtokenID wtoken_index, char* tail) in print_word_token_backtrace() argument
122 wtoken = &rec->word_token_array[wtoken_index]; in print_word_token_backtrace()
123 if (wtoken->word < rec->context->olabels->num_words) in print_word_token_backtrace()
124 p = rec->context->olabels->words[wtoken->word]; in print_word_token_backtrace()
128 ASSERT(rec->accumulated_cost_offset[ wtoken->end_time] != 0); in print_word_token_backtrace()
129 cost = wtoken->cost + rec->accumulated_cost_offset[ wtoken->end_time]; in print_word_token_backtrace()
133 word_token* next_wtoken = &rec->word_token_array[wtoken->backtrace]; in print_word_token_backtrace()
134 … cost_for_word = cost - next_wtoken->cost - rec->accumulated_cost_offset[ next_wtoken->end_time]; in print_word_token_backtrace()
150 int sprint_bword_token_backtrace(char* buf, int buflen, srec* rec, wtokenID wtoken_index) in sprint_bword_token_backtrace() argument
158 word_token* wtoken = &rec->word_token_array[wtoken_index]; in sprint_bword_token_backtrace()
[all …]
Dsrec_results.c40 if (current_best_cost > recm->rec[i].current_best_cost) in WHICH_RECOG()
42 current_best_cost = recm->rec[i].current_best_cost; in WHICH_RECOG()
43 return_rec = &recm->rec[i]; in WHICH_RECOG()
53 srec* rec = WHICH_RECOG(recm); in srec_get_bestcost_recog_id() local
54 if (!rec) *id = -1; in srec_get_bestcost_recog_id()
55 else *id = rec->id; in srec_get_bestcost_recog_id()
78 srec* rec = WHICH_RECOG(recm); in srec_has_results() local
80 if (!rec) in srec_has_results()
82 end_frame = rec->current_search_frame; in srec_has_results()
83 if (!rec->srec_ended) in srec_has_results()
[all …]
Dsrec_debug.c26 static char* sprint_altwords(srec* rec, altword_token* awtoken, char* buf) in sprint_altwords() argument
43 void print_fsmnode_token(srec* rec, ftokenID token_index, char* msg) in print_fsmnode_token() argument
54 ftoken = &rec->fsmnode_token_array[token_index]; in print_fsmnode_token()
55 …ord %d(%s) word_backtrace %d next_token_index %d ", msg, token_index, rec->id, rec->current_search… in print_fsmnode_token()
56 sprint_altwords(rec, ftoken->aword_backtrace, buf), in print_fsmnode_token()
60 if (ftoken->word < rec->context->olabels->num_words) in print_fsmnode_token()
61 p = rec->context->olabels->words[ftoken->word]; in print_fsmnode_token()
62 …sprint_bword_token_backtrace(word_backtrace_trans, sizeof(word_backtrace_trans), rec, ftoken->word… in print_fsmnode_token()
66 void print_fsmnode_token_list(srec* rec, stokenID token_index, char* msg) in print_fsmnode_token_list() argument
72 fsmnode_token* ftoken = &rec->fsmnode_token_array[token_index]; in print_fsmnode_token_list()
[all …]
Dsrec_tokens.h34 int count_fsmarc_token_list(srec* rec, stokenID token_index);
35 void initialize_free_fsmarc_tokens(srec *rec);
36 stokenID setup_free_fsmarc_token(srec *rec, FSMarc* arc, arcID fsm_arc_index, miscdata what_to_do_i…
37 void free_fsmarc_token(srec *rec, stokenID old_token_index);
38 void sort_fsmarc_token_list(srec* rec, stokenID* ptoken_index);
44 void initialize_free_word_tokens(srec *rec);
45 wtokenID get_free_word_token(srec *rec, miscdata what_to_do_if_fails);
51 int count_fsmnode_token_list(srec* rec, ftokenID token_index);
52 void initialize_free_fsmnode_tokens(srec *rec);
53 ftokenID get_free_fsmnode_token(srec *rec, miscdata what_to_do_if_fails);
[all …]
/external/skia/src/core/
DSkMetaData.cpp54 Rec* rec = fRec; in reset() local
55 while (rec) { in reset()
56 if (kPtr_Type == rec->fType) { in reset()
57 PtrPair* pair = (PtrPair*)rec->data(); in reset()
62 Rec* next = rec->fNext; in reset()
63 Rec::Free(rec); in reset()
64 rec = next; in reset()
73 const Rec* rec = src.fRec; in operator =() local
74 while (rec) in operator =()
76 this->set(rec->name(), rec->data(), rec->fDataLen, (Type)rec->fType, rec->fDataCount); in operator =()
[all …]
DSkRefDict.cpp37 Impl* rec = fImpl; in find() local
38 while (rec) { in find()
39 if (rec->fName.equals(name)) { in find()
40 return rec->fData; in find()
42 rec = rec->fNext; in find()
52 Impl* rec = fImpl; in set() local
54 while (rec) { in set()
55 if (rec->fName.equals(name)) { in set()
59 rec->fData->unref(); in set()
60 rec->fData = data; in set()
[all …]
DSkGlobals.cpp29 Rec* rec = bootstrap.fHead; in Find() local
30 while (rec) in Find()
32 if (rec->fTag == tag) in Find()
33 return rec; in Find()
34 rec = rec->fNext; in Find()
49 rec = head; in Find()
50 while (rec) in Find()
52 if (rec->fTag == tag) in Find()
54 rec = rec->fNext; in Find()
57 if (rec == NULL && (rec = create_proc()) != NULL) in Find()
[all …]
DSkGlyphCache.cpp107 const CharGlyphRec& rec = fCharToGlyphHash[ID2HashIndex(id)]; in unicharToGlyph() local
109 if (rec.fID == id) { in unicharToGlyph()
110 return rec.fGlyph->getGlyphID(); in unicharToGlyph()
129 CharGlyphRec* rec = &fCharToGlyphHash[ID2HashIndex(id)]; in getUnicharAdvance() local
131 if (rec->fID != id) { in getUnicharAdvance()
133 rec->fID = id; in getUnicharAdvance()
136 rec->fGlyph = this->lookupMetrics(id, kJustAdvance_MetricsType); in getUnicharAdvance()
138 return *rec->fGlyph; in getUnicharAdvance()
159 CharGlyphRec* rec = &fCharToGlyphHash[ID2HashIndex(id)]; in getUnicharMetrics() local
161 if (rec->fID != id) { in getUnicharMetrics()
[all …]
/external/e2fsprogs/lib/ext2fs/
Dbb_inode.c60 struct set_badblock_record rec; in ext2fs_update_bb_inode() local
68 rec.bad_block_count = 0; in ext2fs_update_bb_inode()
69 rec.ind_blocks_size = rec.ind_blocks_ptr = 0; in ext2fs_update_bb_inode()
70 rec.max_ind_blocks = 10; in ext2fs_update_bb_inode()
71 retval = ext2fs_get_array(rec.max_ind_blocks, sizeof(blk_t), in ext2fs_update_bb_inode()
72 &rec.ind_blocks); in ext2fs_update_bb_inode()
75 memset(rec.ind_blocks, 0, rec.max_ind_blocks * sizeof(blk_t)); in ext2fs_update_bb_inode()
76 retval = ext2fs_get_mem(fs->blocksize, &rec.block_buf); in ext2fs_update_bb_inode()
79 memset(rec.block_buf, 0, fs->blocksize); in ext2fs_update_bb_inode()
80 rec.err = 0; in ext2fs_update_bb_inode()
[all …]
/external/llvm/test/CodeGen/Thumb2/
Dldr-str-imm12.ll7 %2 = type { %union.rec* }
10 %struct.LIST = type { %union.rec*, %union.rec* }
12 …FOURTH_UNION, %union.rec*, %2, %union.rec*, %union.rec*, %union.rec*, %union.rec*, %union.rec*, %u…
18 %union.rec = type { %struct.head_type }
20 @zz_hold = external global %union.rec* ; <%union.rec**> [#uses=2]
21 @zz_res = external global %union.rec* ; <%union.rec**> [#uses=1]
23rec* @Manifest(%union.rec* %x, %union.rec* %env, %struct.STYLE* %style, %union.rec** %bthr, %union…
26 %xgaps.i = alloca [32 x %union.rec*], align 4 ; <[32 x %union.rec*]*> [#uses=0]
27 %ycomp.i = alloca [32 x %union.rec*], align 4 ; <[32 x %union.rec*]*> [#uses=0]
53 store %union.rec* null, %union.rec** @zz_hold, align 4
[all …]
/external/bluetooth/bluez/lib/bluetooth/
Dsdp_lib.h155 int sdp_get_int_attr(const sdp_record_t *rec, uint16_t attr, int *value);
156 int sdp_get_string_attr(const sdp_record_t *rec, uint16_t attr, char *value, int valuelen);
164 sdp_data_t *sdp_data_get(const sdp_record_t *rec, uint16_t attr_id);
170 int sdp_attr_add(sdp_record_t *rec, uint16_t attr, sdp_data_t *data);
171 void sdp_attr_remove(sdp_record_t *rec, uint16_t attr);
172 void sdp_attr_replace(sdp_record_t *rec, uint16_t attr, sdp_data_t *data);
173 int sdp_set_uuidseq_attr(sdp_record_t *rec, uint16_t attr, sdp_list_t *seq);
174 int sdp_get_uuidseq_attr(const sdp_record_t *rec, uint16_t attr, sdp_list_t **seqp);
188 int sdp_attr_add_new(sdp_record_t *rec, uint16_t attr, uint8_t dtd, const void *p);
195 void sdp_set_info_attr(sdp_record_t *rec, const char *name, const char *prov, const char *desc);
[all …]
/external/skia/src/views/
DSkTagList.cpp24 SkTagList* SkTagList::Find(SkTagList* rec, U8CPU tag) in Find() argument
28 while (rec != NULL) in Find()
30 if (rec->fTag == tag) in Find()
32 rec = rec->fNext; in Find()
34 return rec; in Find()
41 SkTagList* rec = *head; in DeleteTag() local
44 while (rec != NULL) in DeleteTag()
46 SkTagList* next = rec->fNext; in DeleteTag()
48 if (rec->fTag == tag) in DeleteTag()
54 delete rec; in DeleteTag()
[all …]
DSkTouchGesture.cpp144 Rec* rec = fTouches.append(); in appendNewRec() local
145 rec->fOwner = owner; in appendNewRec()
146 rec->fStartX = rec->fPrevX = rec->fLastX = x; in appendNewRec()
147 rec->fStartY = rec->fPrevY = rec->fLastY = y; in appendNewRec()
148 rec->fLastT = rec->fPrevT = SkTime::GetMSecs(); in appendNewRec()
223 Rec& rec = fTouches[index]; in touchMoved() local
227 if (close_enough_for_jitter(rec.fLastX, rec.fLastY, x, y)) { in touchMoved()
233 rec.fPrevX = rec.fLastX; rec.fLastX = x; in touchMoved()
234 rec.fPrevY = rec.fLastY; rec.fLastY = y; in touchMoved()
235 rec.fPrevT = rec.fLastT; rec.fLastT = SkTime::GetMSecs(); in touchMoved()
[all …]
/external/v8/test/cctest/
Dtest-circular-queue.cc27 Record* rec = reinterpret_cast<Record*>(scq.Enqueue()); in TEST() local
28 CHECK_NE(NULL, rec); in TEST()
29 *rec = i; in TEST()
36 Record* rec = reinterpret_cast<Record*>(scq.Enqueue()); in TEST() local
37 CHECK_NE(NULL, rec); in TEST()
38 *rec = i; in TEST()
42 Record* rec = reinterpret_cast<Record*>(scq.Enqueue()); in TEST() local
43 CHECK_NE(NULL, rec); in TEST()
44 *rec = 20; in TEST()
51 Record* rec = reinterpret_cast<Record*>(scq.StartDequeue()); in TEST() local
[all …]
/external/oprofile/opjitconv/
Dparse_dump.c32 struct jr_code_load const * rec = ptr_arg; in parse_code_load() local
35 end = rec->code_addr ? ptr + size : NULL; in parse_code_load()
41 ptr += sizeof(*rec); in parse_code_load()
46 entry->code = rec->code_addr ? ptr : NULL; in parse_code_load()
47 entry->vma = rec->vma; in parse_code_load()
48 entry->code_size = rec->code_size; in parse_code_load()
50 entry->life_start = rec->timestamp; in parse_code_load()
63 rec_totalsize = sizeof(*rec) + strlen(entry->symbol_name) + 1 + entry->code_size; in parse_code_load()
88 struct jr_code_unload const * rec = ptr; in parse_code_unload() local
92 rec->vma, rec->timestamp); in parse_code_unload()
[all …]
/external/skia/src/effects/
DSkGroupShape.cpp15 const Rec& rec = fList[index]; in getShape() local
17 *mr = rec.fMatrixRef; in getShape()
19 return rec.fShape; in getShape()
33 Rec* rec; in addShape() local
35 rec = fList.append(); in addShape()
37 rec = fList.insert(index); in addShape()
39 rec->fShape = shape; in addShape()
40 rec->fMatrixRef = mr; in addShape()
45 Rec& rec = fList[index]; in removeShape() local
46 rec.fShape->unref(); in removeShape()
[all …]
DSkLayerDrawLooper.cpp21 Rec* rec = fRecs; in ~SkLayerDrawLooper() local
22 while (rec) { in ~SkLayerDrawLooper()
23 Rec* next = rec->fNext; in ~SkLayerDrawLooper()
24 SkDELETE(rec); in ~SkLayerDrawLooper()
25 rec = next; in ~SkLayerDrawLooper()
32 Rec* rec = SkNEW(Rec); in addLayer() local
33 rec->fNext = fRecs; in addLayer()
34 rec->fInfo = info; in addLayer()
35 fRecs = rec; in addLayer()
37 return &rec->fPaint; in addLayer()
[all …]
/external/oprofile/libopagent/
Dopagent.c198 struct jr_code_close rec; in op_close_agent() local
205 rec.id = JIT_CODE_CLOSE; in op_close_agent()
206 rec.total_size = sizeof(rec); in op_close_agent()
211 rec.timestamp = tv.tv_sec; in op_close_agent()
213 if (!fwrite(&rec, sizeof(rec), 1, dumpfile)) in op_close_agent()
224 struct jr_code_load rec; in op_write_native_code() local
238 rec.id = JIT_CODE_LOAD; in op_write_native_code()
239 rec.code_size = size; in op_write_native_code()
240 rec.vma = vma; in op_write_native_code()
241 rec.code_addr = (u64) (uintptr_t) code; in op_write_native_code()
[all …]
/external/openssl/ssl/
Dd1_enc.c131 SSL3_RECORD *rec; in dtls1_enc() local
146 rec= &(s->s3->wrec); in dtls1_enc()
152 if ( rec->data != rec->input) in dtls1_enc()
158 if (RAND_bytes(rec->input, EVP_CIPHER_block_size(ds->cipher)) <= 0) in dtls1_enc()
172 rec= &(s->s3->rrec); in dtls1_enc()
186 memmove(rec->data,rec->input,rec->length); in dtls1_enc()
187 rec->input=rec->data; in dtls1_enc()
191 l=rec->length; in dtls1_enc()
208 rec->input[k]=j; in dtls1_enc()
210 rec->length+=i; in dtls1_enc()
[all …]
/external/skia/gpu/src/
DGrTouchGesture.cpp51 Rec* rec = fTouches.append(); in appendNewRec() local
52 rec->fOwner = owner; in appendNewRec()
53 rec->fStartX = rec->fPrevX = rec->fLastX = x; in appendNewRec()
54 rec->fStartY = rec->fPrevY = rec->fLastY = y; in appendNewRec()
55 rec->fLastT = rec->fPrevT = SkTime::GetMSecs(); in appendNewRec()
130 Rec& rec = fTouches[index]; in touchMoved() local
134 if (close_enough_for_jitter(rec.fLastX, rec.fLastY, x, y)) { in touchMoved()
140 rec.fPrevX = rec.fLastX; rec.fLastX = x; in touchMoved()
141 rec.fPrevY = rec.fLastY; rec.fLastY = y; in touchMoved()
142 rec.fPrevT = rec.fLastT; rec.fLastT = SkTime::GetMSecs(); in touchMoved()
[all …]
/external/bluetooth/bluez/src/
Dsdpd-service.c234 int add_record_to_server(const bdaddr_t *src, sdp_record_t *rec) in add_record_to_server() argument
239 if (rec->handle == 0xffffffff) { in add_record_to_server()
240 rec->handle = sdp_next_handle(); in add_record_to_server()
241 if (rec->handle < 0x10000) in add_record_to_server()
244 if (sdp_record_find(rec->handle)) in add_record_to_server()
248 DBG("Adding record with handle 0x%05x", rec->handle); in add_record_to_server()
250 sdp_record_add(src, rec); in add_record_to_server()
252 data = sdp_data_alloc(SDP_UINT32, &rec->handle); in add_record_to_server()
253 sdp_attr_replace(rec, SDP_ATTR_RECORD_HANDLE, data); in add_record_to_server()
255 if (sdp_data_get(rec, SDP_ATTR_BROWSE_GRP_LIST) == NULL) { in add_record_to_server()
[all …]
/external/skia/src/xml/
DSkBML_XMLParser.cpp94 static void rattr(unsigned verb, SkStream& s, BMLW& rec, SkXMLWriter& writer) in rattr() argument
103 nameIndex = rec.fNextName; // record before the ++ in rattr()
104 set(rec.fNames, rec.fNextName++, s, data); in rattr()
105 valueIndex = rec.fNextValue; // record before the ++ in rattr()
106 set(rec.fValues, rec.fNextValue++, s, 31); in rattr()
109 nameIndex = rec.fNextName; // record before the ++ in rattr()
110 set(rec.fNames, rec.fNextName++, s, data); in rattr()
115 valueIndex = rec.fNextValue; // record before the ++ in rattr()
116 set(rec.fValues, rec.fNextValue++, s, 31); in rattr()
126 writer.addAttribute(rec.fNames[nameIndex], rec.fValues[valueIndex]); in rattr()
[all …]

1234567891011