Home
last modified time | relevance | path

Searched refs:state (Results 1 – 25 of 2919) sorted by relevance

12345678910>>...117

/external/zlib/src/
Dinflate.c95 local void fixedtables OF((struct inflate_state FAR *state));
106 struct inflate_state FAR *state; local
108 if (strm == Z_NULL || strm->state == Z_NULL) return Z_STREAM_ERROR;
109 state = (struct inflate_state FAR *)strm->state;
110 strm->total_in = strm->total_out = state->total = 0;
112 if (state->wrap) /* to support ill-conceived Java test suite */
113 strm->adler = state->wrap & 1;
114 state->mode = HEAD;
115 state->last = 0;
116 state->havedict = 0;
[all …]
Dgzread.c20 local int gz_load(state, buf, len, have) in gz_load() argument
21 gz_statep state; in gz_load()
30 ret = read(state->fd, buf + *have, len - *have);
36 gz_error(state, Z_ERRNO, zstrerror());
40 state->eof = 1;
51 local int gz_avail(state) in gz_avail() argument
52 gz_statep state; in gz_avail()
55 z_streamp strm = &(state->strm);
57 if (state->err != Z_OK && state->err != Z_BUF_ERROR)
59 if (state->eof == 0) {
[all …]
Dgzlib.c75 local void gz_reset(state) in gz_reset() argument
76 gz_statep state; in gz_reset()
78 state->x.have = 0; /* no output data available */
79 if (state->mode == GZ_READ) { /* for reading ... */
80 state->eof = 0; /* not at end of file */
81 state->past = 0; /* have not read past end yet */
82 state->how = LOOK; /* look for gzip header */
84 state->seek = 0; /* no seek request pending */
85 gz_error(state, Z_OK, NULL); /* clear error */
86 state->x.pos = 0; /* no uncompressed data yet */
[all …]
Dinfback.c19 local void fixedtables OF((struct inflate_state FAR *state));
35 struct inflate_state FAR *state; local
58 state = (struct inflate_state FAR *)ZALLOC(strm, 1,
60 if (state == Z_NULL) return Z_MEM_ERROR;
62 strm->state = (struct internal_state FAR *)state;
63 state->dmax = 32768U;
64 state->wbits = windowBits;
65 state->wsize = 1U << windowBits;
66 state->window = window;
67 state->wnext = 0;
[all …]
Dgzwrite.c15 local int gz_init(state) in gz_init() argument
16 gz_statep state; in gz_init()
19 z_streamp strm = &(state->strm);
22 state->in = malloc(state->want);
23 if (state->in == NULL) {
24 gz_error(state, Z_MEM_ERROR, "out of memory");
29 if (!state->direct) {
31 state->out = malloc(state->want);
32 if (state->out == NULL) {
33 free(state->in);
[all …]
/external/qemu/distrib/zlib-1.2.3/
Dinflate.c95 local void fixedtables OF((struct inflate_state FAR *state));
106 struct inflate_state FAR *state; local
108 if (strm == Z_NULL || strm->state == Z_NULL) return Z_STREAM_ERROR;
109 state = (struct inflate_state FAR *)strm->state;
110 strm->total_in = strm->total_out = state->total = 0;
113 state->mode = HEAD;
114 state->last = 0;
115 state->havedict = 0;
116 state->dmax = 32768U;
117 state->head = Z_NULL;
[all …]
Dinfback.c19 local void fixedtables OF((struct inflate_state FAR *state));
35 struct inflate_state FAR *state; local
49 state = (struct inflate_state FAR *)ZALLOC(strm, 1,
51 if (state == Z_NULL) return Z_MEM_ERROR;
53 strm->state = (struct internal_state FAR *)state;
54 state->dmax = 32768U;
55 state->wbits = windowBits;
56 state->wsize = 1U << windowBits;
57 state->window = window;
58 state->write = 0;
[all …]
/external/srtp/crypto/cipher/
Daes.c1505 aes_round(v128_t *state, const v128_t *round_key) { in aes_round() argument
1511 column0 = T0[state->v8[0]] ^ T1[state->v8[5]] in aes_round()
1512 ^ T2[state->v8[10]] ^ T3[state->v8[15]]; in aes_round()
1514 column1 = T0[state->v8[4]] ^ T1[state->v8[9]] in aes_round()
1515 ^ T2[state->v8[14]] ^ T3[state->v8[3]]; in aes_round()
1517 column2 = T0[state->v8[8]] ^ T1[state->v8[13]] in aes_round()
1518 ^ T2[state->v8[2]] ^ T3[state->v8[7]]; in aes_round()
1520 column3 = T0[state->v8[12]] ^ T1[state->v8[1]] in aes_round()
1521 ^ T2[state->v8[6]] ^ T3[state->v8[11]]; in aes_round()
1523 state->v32[0] = column0 ^ round_key->v32[0]; in aes_round()
[all …]
/external/webrtc/src/common_audio/signal_processing/
Dresample_by_2_internal.c32 WebRtc_Word32 *state) in WebRtcSpl_DownBy2IntToShort() argument
43 diff = tmp0 - state[1]; in WebRtcSpl_DownBy2IntToShort()
46 tmp1 = state[0] + diff * kResampleAllpass[1][0]; in WebRtcSpl_DownBy2IntToShort()
47 state[0] = tmp0; in WebRtcSpl_DownBy2IntToShort()
48 diff = tmp1 - state[2]; in WebRtcSpl_DownBy2IntToShort()
53 tmp0 = state[1] + diff * kResampleAllpass[1][1]; in WebRtcSpl_DownBy2IntToShort()
54 state[1] = tmp1; in WebRtcSpl_DownBy2IntToShort()
55 diff = tmp0 - state[3]; in WebRtcSpl_DownBy2IntToShort()
60 state[3] = state[2] + diff * kResampleAllpass[1][2]; in WebRtcSpl_DownBy2IntToShort()
61 state[2] = tmp0; in WebRtcSpl_DownBy2IntToShort()
[all …]
Dresample.c46 WebRtcSpl_State22khzTo16khz* state, WebRtc_Word32* tmpmem) in WebRtcSpl_Resample22khzTo16khz() argument
57 WebRtcSpl_UpBy2ShortToInt(in, 220 / SUB_BLOCKS_22_16, tmpmem + 16, state->S_22_44); in WebRtcSpl_Resample22khzTo16khz()
64 tmpmem[8] = state->S_44_32[0]; in WebRtcSpl_Resample22khzTo16khz()
65 tmpmem[9] = state->S_44_32[1]; in WebRtcSpl_Resample22khzTo16khz()
66 tmpmem[10] = state->S_44_32[2]; in WebRtcSpl_Resample22khzTo16khz()
67 tmpmem[11] = state->S_44_32[3]; in WebRtcSpl_Resample22khzTo16khz()
68 tmpmem[12] = state->S_44_32[4]; in WebRtcSpl_Resample22khzTo16khz()
69 tmpmem[13] = state->S_44_32[5]; in WebRtcSpl_Resample22khzTo16khz()
70 tmpmem[14] = state->S_44_32[6]; in WebRtcSpl_Resample22khzTo16khz()
71 tmpmem[15] = state->S_44_32[7]; in WebRtcSpl_Resample22khzTo16khz()
[all …]
Dresample_48khz.c28 WebRtcSpl_State48khzTo16khz* state, WebRtc_Word32* tmpmem) in WebRtcSpl_Resample48khzTo16khz() argument
34 WebRtcSpl_LPBy2ShortToInt(in, 480, tmpmem + 16, state->S_48_48); in WebRtcSpl_Resample48khzTo16khz()
41 memcpy(tmpmem + 8, state->S_48_32, 8 * sizeof(WebRtc_Word32)); in WebRtcSpl_Resample48khzTo16khz()
42 memcpy(state->S_48_32, tmpmem + 488, 8 * sizeof(WebRtc_Word32)); in WebRtcSpl_Resample48khzTo16khz()
49 WebRtcSpl_DownBy2IntToShort(tmpmem, 320, out, state->S_32_16); in WebRtcSpl_Resample48khzTo16khz()
53 void WebRtcSpl_ResetResample48khzTo16khz(WebRtcSpl_State48khzTo16khz* state) in WebRtcSpl_ResetResample48khzTo16khz() argument
55 memset(state->S_48_48, 0, 16 * sizeof(WebRtc_Word32)); in WebRtcSpl_ResetResample48khzTo16khz()
56 memset(state->S_48_32, 0, 8 * sizeof(WebRtc_Word32)); in WebRtcSpl_ResetResample48khzTo16khz()
57 memset(state->S_32_16, 0, 8 * sizeof(WebRtc_Word32)); in WebRtcSpl_ResetResample48khzTo16khz()
66 WebRtcSpl_State16khzTo48khz* state, WebRtc_Word32* tmpmem) in WebRtcSpl_Resample16khzTo48khz() argument
[all …]
/external/tcpdump/missing/
Dsnprintf.c66 struct state { struct
72 int (*append_char)(struct state *, unsigned char); argument
73 int (*reserve)(struct state *, size_t); argument
79 sn_reserve (struct state *state, size_t n) in sn_reserve() argument
81 return state->s + n > state->theend; in sn_reserve()
85 sn_append_char (struct state *state, unsigned char c) in sn_append_char() argument
87 if (sn_reserve (state, 1)) { in sn_append_char()
90 *state->s++ = c; in sn_append_char()
98 as_reserve (struct state *state, size_t n)
100 if (state->s + n > state->theend) {
[all …]
/external/libpcap/missing/
Dsnprintf.c66 struct state { struct
72 int (*append_char)(struct state *, unsigned char); argument
73 int (*reserve)(struct state *, size_t); argument
79 sn_reserve (struct state *state, size_t n) in sn_reserve() argument
81 return state->s + n > state->theend; in sn_reserve()
85 sn_append_char (struct state *state, unsigned char c) in sn_append_char() argument
87 if (sn_reserve (state, 1)) { in sn_append_char()
90 *state->s++ = c; in sn_append_char()
98 as_reserve (struct state *state, size_t n)
100 if (state->s + n > state->theend) {
[all …]
/external/expat/lib/
Dxmlrole.c93 #define setTopLevel(state) \ argument
94 ((state)->handler = ((state)->documentEntity \
98 #define setTopLevel(state) ((state)->handler = internalSubset) argument
101 typedef int PTRCALL PROLOG_HANDLER(PROLOG_STATE *state,
125 static int FASTCALL common(PROLOG_STATE *state, int tok);
128 prolog0(PROLOG_STATE *state, in prolog0() argument
136 state->handler = prolog1; in prolog0()
139 state->handler = prolog1; in prolog0()
142 state->handler = prolog1; in prolog0()
145 state->handler = prolog1; in prolog0()
[all …]
/external/icu4c/common/
Drbbicst.pl169 for ($state=1; $state < $num_states; $state++) {
170 if ($state_char_class[$state] ne "") {
171 if ($charClasses{$state_char_class[$state]} == 0) {
172 $charClasses{$state_char_class[$state]} = 1;
175 if ($state_func_name[$state] eq "") {
176 $state_func_name[$state] = "doNOP";
178 if ($actions{$state_action_name[$state]} == 0) {
179 $actions{$state_func_name[$state]} = 1;
188 for ($state=1; $state<$num_states; $state++) {
189 if ($states{$state_dest_state[$state]} == 0 && $state_dest_state[$state] ne "exit") {
[all …]
/external/bison/tests/
Dexisting.at47 AT_TEST_TABLES_AND_PARSE([$2[: LALR(1)]], [[LALR]], [[last-state]],
52 AT_TEST_TABLES_AND_PARSE([$2[: IELR(1)]], [[IELR]], [[last-state]],
58 [[last-state,no-xml]],
438 dnl Isocore map from LALR(1) state number to new state number plus descriptions
453 NAME shift, and go to state 9
454 - '$' shift, and go to state 24
455 + '$' shift, and go to state 320
462 NAME shift, and go to state 9
463 - '$' shift, and go to state 24
464 + '$' shift, and go to state 320
[all …]
/external/libppp/src/
Ddeflate.c58 struct deflate_state *state = (struct deflate_state *)v; in DeflateResetOutput() local
60 state->seqno = 0; in DeflateResetOutput()
61 state->uncomp_rec = 0; in DeflateResetOutput()
62 deflateReset(&state->cx); in DeflateResetOutput()
72 struct deflate_state *state = (struct deflate_state *)v; in DeflateOutput() local
98 *wp++ = state->seqno >> 8; in DeflateOutput()
99 *wp++ = state->seqno & 0377; in DeflateOutput()
100 log_Printf(LogDEBUG, "DeflateOutput: Seq %d\n", state->seqno); in DeflateOutput()
101 state->seqno++; in DeflateOutput()
104 state->cx.next_out = wp; in DeflateOutput()
[all …]
/external/icu4c/i18n/
Dregexcst.pl170 for ($state=1; $state < $num_states; $state++) {
171 if ($state_char_class[$state] ne "") {
172 if ($charClasses{$state_char_class[$state]} == 0) {
173 $charClasses{$state_char_class[$state]} = 1;
176 if ($state_func_name[$state] eq "") {
177 $state_func_name[$state] = "doNOP";
179 if ($actions{$state_action_name[$state]} == 0) {
180 $actions{$state_func_name[$state]} = 1;
189 for ($state=1; $state<$num_states; $state++) {
190 if ($states{$state_dest_state[$state]} == 0 && $state_dest_state[$state] ne "exit") {
[all …]
/external/antlr/antlr-3.4/runtime/Ruby/lib/antlr3/
Ddfa.rb173 state = 0
176 special_state = @special[ state ]
178 state = @special_block.call( special_state )
179 if state == -1
180 no_viable_alternative( state, input )
186 @accept[ state ] >= 1 and return @accept[ state ]
193 if c.between?( @min[ state ], @max[ state ] )
197 next_state = @transition[ state ][ c - @min[ state ] ]
199 if @eot[ state ] >= 0
200 state = @eot[ state ]
[all …]
/external/dropbear/libtomcrypt/src/mac/pmac/
Dpmac_done.c20 int pmac_done(pmac_state *state, unsigned char *out, unsigned long *outlen) in pmac_done() argument
24 LTC_ARGCHK(state != NULL); in pmac_done()
26 if ((err = cipher_is_valid(state->cipher_idx)) != CRYPT_OK) { in pmac_done()
30 if ((state->buflen > (int)sizeof(state->block)) || (state->buflen < 0) || in pmac_done()
31 (state->block_len > (int)sizeof(state->block)) || (state->buflen > state->block_len)) { in pmac_done()
38 if (state->buflen == state->block_len) { in pmac_done()
40 for (x = 0; x < state->block_len; x++) { in pmac_done()
41 state->checksum[x] ^= state->block[x] ^ state->Lr[x]; in pmac_done()
45 for (x = 0; x < state->buflen; x++) { in pmac_done()
46 state->checksum[x] ^= state->block[x]; in pmac_done()
[all …]
/external/chromium/net/base/
Dtransport_security_state_unittest.cc143 scoped_refptr<TransportSecurityState> state( in TEST_F() local
149 EXPECT_FALSE(state->IsEnabledForHost(&domain_state, "google.com", true)); in TEST_F()
151 state->EnableHost("google.com", domain_state); in TEST_F()
152 EXPECT_TRUE(state->IsEnabledForHost(&domain_state, "google.com", true)); in TEST_F()
156 scoped_refptr<TransportSecurityState> state( in TEST_F() local
162 EXPECT_FALSE(state->IsEnabledForHost(&domain_state, "google.com", true)); in TEST_F()
164 state->EnableHost("GOOgle.coM", domain_state); in TEST_F()
165 EXPECT_TRUE(state->IsEnabledForHost(&domain_state, "google.com", true)); in TEST_F()
169 scoped_refptr<TransportSecurityState> state( in TEST_F() local
175 EXPECT_FALSE(state->IsEnabledForHost(&domain_state, "GOOgle.coM", true)); in TEST_F()
[all …]
/external/srtp/crypto/math/
Dstat.c86 int state = 0; in stat_test_runs() local
102 if (state > 0) { in stat_test_runs()
105 state++; in stat_test_runs()
108 if (state > 25) { in stat_test_runs()
109 debug_print(mod_stat, ">25 runs: %d", state); in stat_test_runs()
113 } else if (state < 0) { in stat_test_runs()
116 if (state < -25) { in stat_test_runs()
117 debug_print(mod_stat, ">25 gaps: %d", state); in stat_test_runs()
120 if (state < -6) { in stat_test_runs()
121 state = -6; /* group together gaps > 5 */ in stat_test_runs()
[all …]
/external/speex/libspeex/
Dspeex.c61 EXPORT void speex_encoder_destroy(void *state) in speex_encoder_destroy() argument
63 (*((SpeexMode**)state))->enc_destroy(state); in speex_encoder_destroy()
66 EXPORT void speex_decoder_destroy(void *state) in speex_decoder_destroy() argument
68 (*((SpeexMode**)state))->dec_destroy(state); in speex_decoder_destroy()
73 int speex_encode_native(void *state, spx_word16_t *in, SpeexBits *bits) in speex_encode_native() argument
75 return (*((SpeexMode**)state))->enc(state, in, bits); in speex_encode_native()
78 int speex_decode_native(void *state, SpeexBits *bits, spx_word16_t *out) in speex_decode_native() argument
80 return (*((SpeexMode**)state))->dec(state, bits, out); in speex_decode_native()
88 EXPORT int speex_encode(void *state, float *in, SpeexBits *bits) in speex_encode() argument
93 speex_encoder_ctl(state, SPEEX_GET_FRAME_SIZE, &N); in speex_encode()
[all …]
/external/webkit/Source/WebCore/inspector/front-end/
DTextEditorHighlighter.js56 var state = this._textModel.getAttribute(endLine - 1, "highlight");
57 if (state && state.postConditionStringified) {
72 var state = this._textModel.getAttribute(startLine - 1, "highlight");
73 if (state && state.postConditionStringified)
88 var state = this._textModel.getAttribute(startLine - 1, "highlight");
89 if (!state || !state.postConditionStringified) {
98 var state = this._textModel.getAttribute(i, "highlight");
99 if (!state && i > endLine)
101 this._textModel.setAttribute(i, "highlight-outdated", state);
119 var state = this._textModel.getAttribute(this._requestedEndLine - 1, "highlight");
[all …]
/external/jmonkeyengine/engine/src/core/com/jme3/app/state/
DAppStateManager.java33 package com.jme3.app.state;
124 public boolean attach(AppState state){ in attach() argument
126 if (!states.contains(state) && !initializing.contains(state)){ in attach()
127 state.stateAttached(this); in attach()
128 initializing.add(state); in attach()
143 public boolean detach(AppState state){ in detach() argument
145 if (states.contains(state)){ in detach()
146 state.stateDetached(this); in detach()
147 states.remove(state); in detach()
148 terminating.add(state); in detach()
[all …]

12345678910>>...117