/frameworks/base/core/tests/coretests/src/android/text/method/ |
BackspaceTest.java | 58 // Sync the state to the TextView and call onKeyDown with KEYCODE_DEL key event. 59 // Then update the state to the result of TextView. 60 private void backspace(final EditorState state, int modifiers) { 61 mTextView.setText(state.mText, BufferType.EDITABLE); 63 mTextView.setSelection(state.mSelectionStart, state.mSelectionEnd); 69 state.mText = mTextView.getText(); 70 state.mSelectionStart = mTextView.getSelectionStart(); 71 state.mSelectionEnd = mTextView.getSelectionEnd(); 76 EditorState state = new EditorState() local 104 EditorState state = new EditorState(); local 168 EditorState state = new EditorState(); local 248 EditorState state = new EditorState(); local 310 EditorState state = new EditorState(); local 339 EditorState state = new EditorState(); local [all...] |
ForwardDeleteTest.java | 56 // Sync the state to the TextView and call onKeyDown with KEYCODE_FORWARD_DEL key event. 57 // Then update the state to the result of TextView. 58 private void forwardDelete(final EditorState state, int modifiers) { 59 mTextView.setText(state.mText, BufferType.EDITABLE); 61 mTextView.setSelection(state.mSelectionStart, state.mSelectionEnd); 67 state.mText = mTextView.getText(); 68 state.mSelectionStart = mTextView.getSelectionStart(); 69 state.mSelectionEnd = mTextView.getSelectionEnd(); 74 EditorState state = new EditorState() local 94 EditorState state = new EditorState(); local 142 EditorState state = new EditorState(); local 185 EditorState state = new EditorState(); local 242 EditorState state = new EditorState(); local 271 EditorState state = new EditorState(); local [all...] |
/cts/tests/tests/text/src/android/text/method/cts/ |
ForwardDeleteTest.java | 43 // Sync the state to the TextView and call onKeyDown with KEYCODE_FORWARD_DEL key event. 44 // Then update the state to the result of TextView. 45 private void forwardDelete(final EditorState state, int modifiers) throws Throwable { 47 mTextView.setText(state.mText, BufferType.EDITABLE); 49 mTextView.setSelection(state.mSelectionStart, state.mSelectionEnd); 58 state.mText = mTextView.getText(); 59 state.mSelectionStart = mTextView.getSelectionStart(); 60 state.mSelectionEnd = mTextView.getSelectionEnd(); 65 EditorState state = new EditorState() local 89 EditorState state = new EditorState(); local 106 EditorState state = new EditorState(); local 143 EditorState state = new EditorState(); local 157 EditorState state = new EditorState(); local 172 EditorState state = new EditorState(); local [all...] |
BackspaceTest.java | 43 // Sync the state to the TextView and call onKeyDown with KEYCODE_DEL key event. 44 // Then update the state to the result of TextView. 45 private void backspace(final EditorState state, int modifiers) throws Throwable { 47 mTextView.setText(state.mText, BufferType.EDITABLE); 49 mTextView.setSelection(state.mSelectionStart, state.mSelectionEnd); 58 state.mText = mTextView.getText(); 59 state.mSelectionStart = mTextView.getSelectionStart(); 60 state.mSelectionEnd = mTextView.getSelectionEnd(); 65 EditorState state = new EditorState() local 90 EditorState state = new EditorState(); local 105 EditorState state = new EditorState(); local 147 EditorState state = new EditorState(); local 162 EditorState state = new EditorState(); local 177 EditorState state = new EditorState(); local [all...] |
/external/vboot_reference/firmware/lib/ |
stateful_util.c | 13 void StatefulInit(MemcpyState *state, void *buf, uint64_t len) 15 state->remaining_buf = buf; 16 state->remaining_len = len; 17 state->overrun = 0; 20 void *StatefulSkip(MemcpyState *state, uint64_t len) 22 if (state->overrun) 24 if (len > state->remaining_len) { 25 state->overrun = 1; 28 state->remaining_buf += len; 29 state->remaining_len -= len [all...] |
/external/libdrm/ |
xf86drmRandom.c | 84 RandomState *state; local 86 state = drmMalloc(sizeof(*state)); 87 if (!state) return NULL; 88 state->magic = RANDOM_MAGIC; 91 state->a = 16807; 92 state->m = 2147483647; 93 state->check = 1043618065; /* After 10000 iterations */ 96 state->a = 48271; 97 state->m = 2147483647 [all...] |
/external/lzma/Java/Tukaani/src/org/tukaani/xz/lzma/ |
State.java | 2 * State 13 final class State { 31 private int state; field in class:State 33 State() {} 35 State(State other) { 36 state = other.state; 40 state = LIT_LIT; 44 return state; [all...] |
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Modules/zlib/ |
gzread.c | 17 state->fd, and update state->eof, state->err, and state->msg as appropriate.
20 local int gz_load(state, buf, len, have)
21 gz_statep state;
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)
294 gz_statep state; local 392 gz_statep state; local 427 gz_statep state; local 491 gz_statep state; local 550 gz_statep state; local 571 gz_statep state; local [all...] |
inflate.c | 26 * - Change strm->next_out[-state->offset] to *(strm->next_out - state->offset)
30 * - Add comments on state->bits assertion in inffast.c
95 local void fixedtables OF((struct inflate_state FAR *state));
107 struct inflate_state FAR *state;
local 109 if (strm == Z_NULL || strm->state == Z_NULL) return Z_STREAM_ERROR;
110 state = (struct inflate_state FAR *)strm->state;
111 strm->total_in = strm->total_out = state->total = 0;
113 if (state->wrap) /* to support ill-conceived Java test suite */ 132 struct inflate_state FAR *state; local 147 struct inflate_state FAR *state; local 187 struct inflate_state FAR *state; local 235 struct inflate_state FAR *state; local 328 struct inflate_state state; local 384 struct inflate_state FAR *state; local 609 struct inflate_state FAR *state; local [all...] |
/external/python/cpython2/Modules/zlib/ |
gzread.c | 17 state->fd, and update state->eof, state->err, and state->msg as appropriate. 20 local int gz_load(state, buf, len, have) 21 gz_statep state; 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) 294 gz_statep state; local 392 gz_statep state; local 427 gz_statep state; local 491 gz_statep state; local 550 gz_statep state; local 571 gz_statep state; local [all...] |
inflate.c | 26 * - Change strm->next_out[-state->offset] to *(strm->next_out - state->offset) 30 * - Add comments on state->bits assertion in inffast.c 95 local void fixedtables OF((struct inflate_state FAR *state)); 107 struct inflate_state FAR *state; local 109 if (strm == Z_NULL || strm->state == Z_NULL) return Z_STREAM_ERROR; 110 state = (struct inflate_state FAR *)strm->state; 111 strm->total_in = strm->total_out = state->total = 0; 113 if (state->wrap) /* to support ill-conceived Java test suite * 132 struct inflate_state FAR *state; local 147 struct inflate_state FAR *state; local 187 struct inflate_state FAR *state; local 235 struct inflate_state FAR *state; local 328 struct inflate_state state; local 384 struct inflate_state FAR *state; local 609 struct inflate_state FAR *state; local [all...] |
/toolchain/binutils/binutils-2.27/zlib/ |
gzread.c | 17 state->fd, and update state->eof, state->err, and state->msg as appropriate. 20 local int gz_load(state, buf, len, have) 21 gz_statep state; 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) 294 gz_statep state; local 392 gz_statep state; local 427 gz_statep state; local 491 gz_statep state; local 550 gz_statep state; local 571 gz_statep state; local [all...] |
inflate.c | 26 * - Change strm->next_out[-state->offset] to *(strm->next_out - state->offset) 30 * - Add comments on state->bits assertion in inffast.c 95 local void fixedtables OF((struct inflate_state FAR *state)); 107 struct inflate_state FAR *state; local 109 if (strm == Z_NULL || strm->state == Z_NULL) return Z_STREAM_ERROR; 110 state = (struct inflate_state FAR *)strm->state; 111 strm->total_in = strm->total_out = state->total = 0; 113 if (state->wrap) /* to support ill-conceived Java test suite * 132 struct inflate_state FAR *state; local 147 struct inflate_state FAR *state; local 187 struct inflate_state FAR *state; local 235 struct inflate_state FAR *state; local 328 struct inflate_state state; local 384 struct inflate_state FAR *state; local 609 struct inflate_state FAR *state; local [all...] |
/external/libvterm/src/ |
pen.c | 36 static void lookup_colour_ansi(const VTermState *state, long index, VTermColor *col) 39 *col = state->colors[index]; 43 static void lookup_colour_palette(const VTermState *state, long index, VTermColor *col) 47 lookup_colour_ansi(state, index, col); 67 static int lookup_colour(const VTermState *state, int palette, const long args[], int argcount, VTermColor *col, int *index) 84 lookup_colour_palette(state, argcount ? CSI_ARG_OR(args[0], -1) : -1, col); 96 static void setpenattr(VTermState *state, VTermAttr attr, VTermValueType type, VTermValue *val) 105 if(state->callbacks && state->callbacks->setpenattr) 106 (*state->callbacks->setpenattr)(attr, val, state->cbdata) [all...] |
state.c | 20 static void putglyph(VTermState *state, const uint32_t chars[], int width, VTermPos pos) 25 .protected_cell = state->protected_cell, 26 .dwl = state->lineinfo[pos.row].doublewidth, 27 .dhl = state->lineinfo[pos.row].doubleheight, 30 if(state->callbacks && state->callbacks->putglyph) 31 if((*state->callbacks->putglyph)(&info, pos, state->cbdata)) 37 static void updatecursor(VTermState *state, VTermPos *oldpos, int cancel_phantom) 39 if(state->pos.col == oldpos->col && state->pos.row == oldpos->row 59 VTermState *state = vterm_allocator_malloc(vt, sizeof(VTermState)); local 203 VTermState *state = user; local 351 VTermState *state = user; local 486 VTermState *state = data; local 574 VTermState *state = user; local 901 VTermState *state = user; local 1432 VTermState *state = user; local 1505 VTermState *state = user; local 1517 VTermState *state = user; local [all...] |
/external/skia/src/core/ |
SkVertState.cpp | 10 bool VertState::Triangles(VertState* state) { 11 int index = state->fCurrIndex; 12 if (index + 3 > state->fCount) { 15 state->f0 = index + 0; 16 state->f1 = index + 1; 17 state->f2 = index + 2; 18 state->fCurrIndex = index + 3; 22 bool VertState::TrianglesX(VertState* state) { 23 const uint16_t* indices = state->fIndices; 24 int index = state->fCurrIndex [all...] |
/external/skqp/src/core/ |
SkVertState.cpp | 10 bool VertState::Triangles(VertState* state) { 11 int index = state->fCurrIndex; 12 if (index + 3 > state->fCount) { 15 state->f0 = index + 0; 16 state->f1 = index + 1; 17 state->f2 = index + 2; 18 state->fCurrIndex = index + 3; 22 bool VertState::TrianglesX(VertState* state) { 23 const uint16_t* indices = state->fIndices; 24 int index = state->fCurrIndex [all...] |
/external/python/cpython3/Modules/_sha3/kcp/ |
KeccakP-1600-SnP-opt32.h | 27 void KeccakP1600_Initialize(void *state); 28 void KeccakP1600_AddByte(void *state, unsigned char data, unsigned int offset); 29 void KeccakP1600_AddBytes(void *state, const unsigned char *data, unsigned int offset, unsigned int length); 30 void KeccakP1600_OverwriteBytes(void *state, const unsigned char *data, unsigned int offset, unsigned int length); 31 void KeccakP1600_OverwriteWithZeroes(void *state, unsigned int byteCount); 32 void KeccakP1600_Permute_12rounds(void *state); 33 void KeccakP1600_Permute_24rounds(void *state); 34 void KeccakP1600_ExtractBytes(const void *state, unsigned char *data, unsigned int offset, unsigned int length); 35 void KeccakP1600_ExtractAndAddBytes(const void *state, const unsigned char *input, unsigned char *output, unsigned int offset, unsigned int length);
|
/external/freetype/src/lzw/ |
ftzopen.c | 29 ft_lzwstate_refill( FT_LzwState state ) 34 if ( state->in_eof ) 37 count = FT_Stream_TryRead( state->source, 38 state->buf_tab, 39 state->num_bits ); /* WHY? */ 41 state->buf_size = (FT_UInt)count; 42 state->buf_total += count; 43 state->in_eof = FT_BOOL( count < state->num_bits ); 44 state->buf_offset = 0 [all...] |
/frameworks/av/media/libstagefright/codecs/amrnb/common/src/ |
q_plsf.cpp | 74 * Purpose : Allocates memory and initializes state variables 78 Word16 Q_plsf_init(Q_plsfState **state) 82 if (state == (Q_plsfState **) NULL) 87 *state = NULL; 92 /* fprintf(stderr, "Q_plsf_init: can not malloc state structure\n"); */ 97 *state = s; 106 * Purpose : Resets state memory 110 Word16 Q_plsf_reset(Q_plsfState *state) 114 if (state == (Q_plsfState *) NULL) 121 state->past_rq[i] = 0 [all...] |
/external/libxml2/ |
xzlib.c | 50 /* internal lzma file state data structure */ 89 xz_error(xz_statep state, int err, const char *msg) 92 if (state->msg != NULL) { 93 if (state->err != LZMA_MEM_ERROR) 94 xmlFree(state->msg); 95 state->msg = NULL; 99 state->err = err; 105 state->msg = (char *) msg; 110 if ((state->msg = 111 xmlMalloc(strlen(state->path) + strlen(msg) + 3)) == NULL) 141 xz_statep state; local 189 xz_statep state; local 692 xz_statep state; local 781 xz_statep state; local [all...] |
/external/jmdns/src/javax/jmdns/impl/tasks/state/ |
package-info.java | 1 package javax.jmdns.impl.tasks.state;
|
/external/toybox/toys/android/ |
setenforce.c | 23 int state, ret; local 26 else if (!strcmp(new, "1") || !strcasecmp(new, "enforcing")) state = 1; 27 else if (!strcmp(new, "0") || !strcasecmp(new, "permissive")) state = 0; 28 else error_exit("Invalid state: %s", new); 30 ret = security_setenforce(state);
|
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/ |
PackageVerificationStateTest.java | 32 PackageVerificationState state = new PackageVerificationState(REQUIRED_UID, null); local 35 state.isVerificationComplete()); 37 state.setVerifierResponse(REQUIRED_UID, PackageManager.VERIFICATION_ALLOW); 40 state.isVerificationComplete()); 43 state.isInstallAllowed()); 47 PackageVerificationState state = new PackageVerificationState(REQUIRED_UID, null); local 50 state.isVerificationComplete()); 52 state.setVerifierResponse(REQUIRED_UID, PackageManager.VERIFICATION_REJECT); 55 state.isVerificationComplete()); 58 state.isInstallAllowed()) 62 PackageVerificationState state = new PackageVerificationState(REQUIRED_UID, null); local 87 PackageVerificationState state = new PackageVerificationState(REQUIRED_UID, null); local 112 PackageVerificationState state = new PackageVerificationState(REQUIRED_UID, null); local 138 PackageVerificationState state = new PackageVerificationState(REQUIRED_UID, null); local 169 PackageVerificationState state = new PackageVerificationState(REQUIRED_UID, null); local [all...] |
/prebuilts/ndk/r16/sources/cxx-stl/llvm-libc++/utils/google-benchmark/test/ |
cxx03_test.cc | 11 void BM_empty(benchmark::State& state) { 12 while (state.KeepRunning()) { 13 volatile std::size_t x = state.iterations(); 21 void BM_old_arg_range_interface(benchmark::State& state) { 22 assert((state.range(0) == 1 && state.range(1) == 2) || 23 (state.range(0) == 5 && state.range(1) == 6)) [all...] |