/prebuilts/go/linux-x86/src/encoding/gob/ |
encgen.go | 38 state.encodeUint(1) 40 state.encodeUint(0) 49 state.encodeUint(rpart) 50 state.encodeUint(ipart)`, 58 state.encodeUint(rpart) 59 state.encodeUint(ipart)`, 66 state.encodeUint(bits)`, 73 state.encodeUint(bits)`, 79 `state.encodeInt(int64(x))`, 85 `state.encodeInt(int64(x))` [all...] |
/prebuilts/go/linux-x86/src/vendor/golang_org/x/crypto/chacha20poly1305/ |
chacha20poly1305_amd64.go | 73 // setupState writes a ChaCha20 input matrix to state. See 75 func setupState(state *[16]uint32, key *[32]byte, nonce []byte) { 76 state[0] = 0x61707865 77 state[1] = 0x3320646e 78 state[2] = 0x79622d32 79 state[3] = 0x6b206574 81 state[4] = binary.LittleEndian.Uint32(key[:4]) 82 state[5] = binary.LittleEndian.Uint32(key[4:8]) 83 state[6] = binary.LittleEndian.Uint32(key[8:12]) 84 state[7] = binary.LittleEndian.Uint32(key[12:16] [all...] |
/system/libhwbinder/vts/performance/ |
Benchmark.cpp | 70 static void BM_sendVec(benchmark::State& state, sp<IBenchmark> service) { 73 data_vec.resize(state.range(0)); 74 for (int i = 0; i < state.range(0); i++) { 78 while (state.KeepRunning()) { 84 static void BM_sendVec_passthrough(benchmark::State& state) { 88 state.SkipWithError("Failed to retrieve benchmark service."); 91 state.SkipWithError("Benchmark service is remote."); 93 BM_sendVec(state, service) [all...] |
/external/ppp/pppd/ |
fsm.c | 2 * fsm.c - {Link, IP} Control Protocol Finite State Machine. 77 * Initialize fsm state. 83 f->state = INITIAL; 101 switch( f->state ){ 103 f->state = CLOSED; 108 f->state = STOPPED; 112 f->state = REQSENT; 117 FSMDEBUG(("%s: Up event in state %d!", PROTO_NAME(f), f->state)); 131 switch( f->state ){ [all...] |
/external/antlr/antlr-3.4/runtime/Perl5/lib/ANTLR/Runtime/ |
Lexer.pm | 26 # reset all recognizer state variables 29 # wack Lexer state variables 35 if (defined $self->state) { 36 $self->state->token(undef); 37 $self->state->type(ANTLR::Runtime::Token->INVALID_TOKEN_TYPE); 38 $self->state->channel(ANTLR::Runtime::Token->DEFAULT_CHANNEL); 39 $self->state->token_start_char_index(-1); 40 $self->state->token_start_char_position_in_line(-1); 41 $self->state->start_line(-1); 42 $self->state->text(undef) [all...] |
/external/deqp/modules/glshared/ |
glsInteractionTestUtil.cpp | 54 void computeRandomRenderState (de::Random& rnd, RenderState& state, glu::ApiType apiType, int targetWidth, int targetHeight) 149 state.scissorTestEnabled = rnd.getFloat() < scissorTestProbability; 150 state.stencilTestEnabled = rnd.getFloat() < stencilTestProbability; 151 state.depthTestEnabled = rnd.getFloat() < depthTestProbability; 152 state.blendEnabled = rnd.getFloat() < blendProbability; 153 state.ditherEnabled = rnd.getFloat() < ditherProbability; 155 if (state.scissorTestEnabled) 167 state.scissorRectangle = rr::WindowRectangle(scissorX, scissorY, scissorW, scissorH); 170 if (state.stencilTestEnabled) 174 state.stencil[ndx].function = rnd.choose<deUint32>(DE_ARRAY_BEGIN(compareFuncs), DE_ARRAY_END(compareF (…) [all...] |
/external/libopus/silk/ |
stereo_LR_to_MS.c | 37 stereo_enc_state *state, /* I/O State */ 71 silk_memcpy( mid, state->sMid, 2 * sizeof( opus_int16 ) ); 72 silk_memcpy( side, state->sSide, 2 * sizeof( opus_int16 ) ); 73 silk_memcpy( state->sMid, &mid[ frame_length ], 2 * sizeof( opus_int16 ) ); 74 silk_memcpy( state->sSide, &side[ frame_length ], 2 * sizeof( opus_int16 ) ); 101 pred_Q13[ 0 ] = silk_stereo_find_predictor( &LP_ratio_Q14, LP_mid, LP_side, &state->mid_side_amp_Q0[ 0 ], frame_length, smooth_coef_Q16 ); 102 pred_Q13[ 1 ] = silk_stereo_find_predictor( &HP_ratio_Q14, HP_mid, HP_side, &state->mid_side_amp_Q0[ 2 ], frame_length, smooth_coef_Q16 ); 131 state->smth_width_Q14 = (opus_int16)silk_SMLAWB( state->smth_width_Q14, width_Q14 - state->smth_width_Q14, smooth_coef_Q16 ) [all...] |
/external/clang/lib/StaticAnalyzer/Checkers/ |
VLASizeChecker.cpp | 37 ProgramStateRef State, 46 ProgramStateRef State, 49 ExplodedNode *N = C.generateErrorNode(State); 96 ProgramStateRef state = C.getState(); local 97 SVal sizeV = state->getSVal(SE, C.getLocationContext()); 100 reportBug(VLA_Garbage, SE, state, C); 110 if (state->isTainted(sizeV)) { 119 std::tie(stateNotZero, stateZero) = state->assume(sizeD); 127 state = stateNotZero; 139 SVal LessThanZeroVal = svalBuilder.evalBinOp(state, BO_LT, sizeD, Zero, Ty) [all...] |
/external/icu/icu4j/tools/misc/src/com/ibm/icu/dev/tool/layout/ |
ThaiStateTable.java | 36 private final static boolean isLegalHere(int state, char pairAction) 40 return state == 0; 76 ThaiStateTransition[] state = (ThaiStateTransition[]) stateTable.elementAt(s); local 79 ThaiStateTransition transition = state[c]; 90 int state = newState(); local 91 ThaiStateTransition[] stateRow = (ThaiStateTransition[]) stateTable.elementAt(state); 127 if (c != prevClass && isLegalHere(state, pairAction) && composesWithAnything(c)) { 134 return state; 146 public static ThaiStateTransition getTransition(int state, int currClass) 148 ThaiStateTransition[] row = (ThaiStateTransition[]) stateTable.elementAt(state); [all...] |
/external/robolectric/v1/src/main/java/com/xtremelabs/robolectric/shadows/ |
ShadowMediaRecorder.java | 15 // Recording machine state, as per: 25 private int state; field in class:ShadowMediaRecorder 49 state = STATE_INITIAL; 60 state = STATE_DATA_SOURCE_CONFIGURED; 76 state = STATE_INITIALIZED; 107 state = STATE_DATA_SOURCE_CONFIGURED; 113 state = STATE_DATA_SOURCE_CONFIGURED; 119 state = STATE_DATA_SOURCE_CONFIGURED; 125 state = STATE_DATA_SOURCE_CONFIGURED; 136 state = STATE_DATA_SOURCE_CONFIGURED [all...] |
/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/ |
ShadowMediaRecorder.java | 17 // Recording machine state, as per: 27 private int state; field in class:ShadowMediaRecorder 52 state = STATE_INITIAL; 63 state = STATE_DATA_SOURCE_CONFIGURED; 79 state = STATE_INITIALIZED; 110 state = STATE_DATA_SOURCE_CONFIGURED; 116 state = STATE_DATA_SOURCE_CONFIGURED; 122 state = STATE_DATA_SOURCE_CONFIGURED; 128 state = STATE_DATA_SOURCE_CONFIGURED; 139 state = STATE_DATA_SOURCE_CONFIGURED [all...] |
/packages/apps/Launcher3/src/com/android/launcher3/ |
LauncherStateManager.java | 95 // We separate the state animations into "atomic" and "non-atomic" components. The atomic 150 public void goToState(LauncherState state) { 151 goToState(state, !mLauncher.isForceInvisible() && mLauncher.isStarted() /* animated */); 157 public void goToState(LauncherState state, boolean animated) { 158 goToState(state, animated, 0, null); 162 * Changes the Launcher state to the provided state. 164 * @param animated false if the state should change immediately without any animation, 168 public void goToState(LauncherState state, boolean animated, Runnable onCompleteRunnable) { 169 goToState(state, animated, 0, onCompleteRunnable) [all...] |
/external/mesa3d/src/intel/vulkan/ |
anv_cmd_buffer.c | 38 * entrypoints. This file is concerned entirely with state emission and 118 struct anv_cmd_state *state = &cmd_buffer->state; local 120 memset(&state->descriptors, 0, sizeof(state->descriptors)); 122 if (state->push_constants[i] != NULL) { 123 vk_free(&cmd_buffer->pool->alloc, state->push_constants[i]); 124 state->push_constants[i] = NULL; 127 memset(state->binding_tables, 0, sizeof(state->binding_tables)) 591 struct anv_state state; local 609 struct anv_state state; local 643 struct anv_state state = local 678 struct anv_state state = local [all...] |
/external/mesa3d/src/compiler/nir/ |
nir_loop_analyze.c | 79 get_loop_var(nir_ssa_def *value, loop_info_state *state) 81 return &(state->loop_vars[value->index]); 85 loop_info_state *state; member in struct:__anon29319 93 nir_loop_variable *var = get_loop_var(def, loop_init_state->state); 103 list_addtail(&var->process_link, &loop_init_state->state->process_list); 112 init_loop_block(nir_block *block, loop_info_state *state, 116 .state = state }; 122 state->loop->info->num_instructions++; 150 mark_invariant(nir_ssa_def *def, loop_info_state *state) 278 loop_info_state *state = void_state; local 724 init_loop_block(nir_cf_node_as_block(node), state, false); local 784 loop_info_state *state = rzalloc(mem_ctx, loop_info_state); local 829 loop_info_state *state = initialize_loop_info_state(loop, mem_ctx, impl); local [all...] |
nir_lower_wpos_ytransform.c | 30 * gl_FbWposYTransform uniform is inserted (with the specified state-slots) 48 get_transform(lower_wpos_ytransform_state *state) 50 if (state->transform == NULL) { 54 nir_variable *var = nir_variable_create(state->shader, 62 memcpy(var->state_slots[0].tokens, state->options->state_tokens, 65 state->transform = var; 67 return nir_load_var(&state->b, state->transform); 79 emit_wpos_adjustment(lower_wpos_ytransform_state *state, 83 nir_builder *b = &state->b 344 lower_wpos_ytransform_state state = { local [all...] |
/bootable/recovery/updater/ |
install.cpp | 68 static void uiPrint(State* state, const std::string& buffer) { 69 UpdaterInfo* ui = static_cast<UpdaterInfo*>(state->cookie); 86 void uiPrintf(State* _Nonnull state, const char* _Nonnull format, ...) { 94 uiPrint(state, error_msg); 99 Value* UIPrintFn(const char* name, State* state, const std::vector<std::unique_ptr<Expr>>& argv) { 101 if (!ReadArgs(state, argv, &args)) { 102 return ErrorAbort(state, kArgsParsingFailure, "%s(): Failed to parse the argument(s)", name) [all...] |
/external/mesa3d/src/mesa/drivers/dri/i915/ |
i915_texstate.c | 135 /* Recalculate all state from scratch. Perhaps not the most 149 GLuint *state = i915->state.Tex[unit], format; local 154 memset(state, 0, sizeof(*state)); 158 if (i915->state.tex_buffer[unit] != NULL) { 159 drm_intel_bo_unreference(i915->state.tex_buffer[unit]); 160 i915->state.tex_buffer[unit] = NULL; 172 i915->state.tex_buffer[unit] = intelObj->mt->region->bo; 173 i915->state.tex_offset[unit] = intelObj->mt->offset [all...] |
/system/core/adb/ |
fdevent.cpp | 62 // Then we can avoid leaving many sockets in CLOSE_WAIT state. See http://b/23314034. 92 std::string state; local 93 if (fde->state & FDE_ACTIVE) { 94 state += "A"; 96 if (fde->state & FDE_PENDING) { 97 state += "P"; 99 if (fde->state & FDE_CREATED) { 100 state += "C"; 102 if (fde->state & FDE_READ) { 103 state += "R" [all...] |
/external/deqp/framework/randomshaders/ |
rsgBinaryOps.hpp | 47 Expression* createNextChild (GeneratorState& state); 48 void tokenize (GeneratorState& state, TokenStream& str) const; 55 static float getWeight (const GeneratorState& state, ConstValueRangeAccess valueRange); 72 BinaryVecOp (GeneratorState& state, Token::Type operatorToken, ConstValueRangeAccess valueRange); 95 MulOp (GeneratorState& state, ConstValueRangeAccess valueRange); 98 static float getWeight (const GeneratorState& state, ConstValueRangeAccess valueRange); 117 AddOp (GeneratorState& state, ConstValueRangeAccess valueRange); 120 static float getWeight (const GeneratorState& state, ConstValueRangeAccess valueRange); 139 SubOp (GeneratorState& state, ConstValueRangeAccess valueRange); 142 static float getWeight (const GeneratorState& state, ConstValueRangeAccess valueRange) [all...] |
/external/glide/library/src/main/java/com/bumptech/glide/load/resource/gif/ |
GifDrawable.java | 29 private final GifState state; field in class:GifDrawable 77 GifDrawable(GifState state) { 78 if (state == null) { 82 this.state = state; 83 this.decoder = new GifDecoder(state.bitmapProvider); 84 decoder.setData(state.gifHeader, state.data); 85 frameManager = new GifFrameManager(state.context, decoder, state.targetWidth, state.targetHeight) [all...] |
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/ |
HotspotTile.java | 105 // Immediately enter transient enabling state when turning hotspot on. 116 protected void handleUpdateState(AirplaneBooleanState state, Object arg) { 118 if (state.slash == null) { 119 state.slash = new SlashState(); 126 checkIfRestrictionEnforcedByAdminOnly(state, UserManager.DISALLOW_CONFIG_TETHERING); 130 state.value = transientEnabling || info.isHotspotEnabled; 134 state.value = transientEnabling || mHotspotController.isHotspotEnabled(); 139 state.icon = mEnabledStatic; 140 state.label = mContext.getString(R.string.quick_settings_hotspot_label); 141 state.isAirplaneMode = mAirplaneMode.getValue() != 0 [all...] |
/hardware/qcom/display/msm8998/liblight/ |
lights.c | 113 is_lit(struct light_state_t const* state) 115 return state->color & 0x00ffffff; 119 rgb_to_brightness(struct light_state_t const* state) 121 int color = state->color & 0x00ffffff; 128 struct light_state_t const* state) 131 int brightness = rgb_to_brightness(state); 133 state->brightnessMode == BRIGHTNESS_MODE_LOW_PERSISTENCE; 139 // Toggle low persistence mode state 140 if ((g_last_backlight_mode != state->brightnessMode && lpEnabled) || 152 g_last_backlight_mode = state->brightnessMode [all...] |
/prebuilts/misc/windows/sdl2/test/ |
testviewport.c | 22 static SDLTest_CommonState *state; variable 28 SDLTest_CommonQuit(state); 90 state = SDLTest_CommonCreateState(argv, SDL_INIT_VIDEO); 91 if (!state) { 98 consumed = SDLTest_CommonArg(state, i); 108 argv[0], SDLTest_CommonUsage(state)); 113 if (!SDLTest_CommonInit(state)) { 120 for (i = 0; i < state->num_windows; ++i) { 121 SDL_GetWindowSize(state->windows[i], &w, &h); 122 state->targets[i] = SDL_CreateTexture(state->renderers[i], SDL_PIXELFORMAT_RGBA8888, SDL_TEXTUREACCESS_T (…) [all...] |
/external/antlr/antlr-3.4/runtime/ObjC/Framework/examples/scopes/ |
SymbolTableLexer.m | 49 self = [super initWithCharStream:anInput State:[[ANTLRRecognizerSharedState newANTLRRecognizerSharedStateWithRuleLen:12+1] retain]]; 86 state.type = _type; 87 state.channel = _channel; 118 state.type = _type; 119 state.channel = _channel; 150 state.type = _type; 151 state.channel = _channel; 182 state.type = _type; 183 state.channel = _channel; 215 state.type = _type [all...] |
/external/elfutils/libdw/ |
dwarf_getsrclines.c | 100 run_advance_pc (struct line_state *state, unsigned int op_advance, 103 state->addr += minimum_instr_len * ((state->op_index + op_advance) 105 state->op_index = (state->op_index + op_advance) % max_ops_per_instr; 109 add_new_line (struct line_state *state, struct linelist *new_line) 115 new_line->next = state->linelist; 116 new_line->sequence = state->nlinelist; 117 state->linelist = new_line; 118 ++(state->nlinelist) 190 struct line_state state = local [all...] |