/device/google/contexthub/lib/nanohub/ |
rsa.c | 152 * memcpy(state->tmpB, a, RSA_BYTES); 154 * biMul(state->tmpA, state->tmpB, state->tmpB); 155 * biMod(state->tmpA, c, state->tmpB); 156 * memcpy(state->tmpB, state->tmpA, RSA_BYTES); 159 * //calculate a ^ 65537 mod c into state->tmpA [ at this point this means do state->tmpA = (state->tmpB * a) % c [all...] |
/external/antlr/antlr-3.4/runtime/JavaScript/src/org/antlr/runtime/ |
Lexer.js | 6 org.antlr.runtime.Lexer = function(input, state) { 7 if (state) { 8 org.antlr.runtime.Lexer.superclass.constructor.call(this, state); 17 // reset all recognizer state variables 22 if ( !org.antlr.lang.isValue(this.state) ) { 23 return; // no shared state work to do 25 this.state.token = null; 26 this.state.type = org.antlr.runtime.Token.INVALID_TOKEN_TYPE; 27 this.state.channel = org.antlr.runtime.Token.DEFAULT_CHANNEL; 28 this.state.tokenStartCharIndex = -1 [all...] |
/external/dhcpcd-6.8.2/ |
ipv4ll.c | 77 const struct dhcp_state *state; local 92 state = D_CSTATE(ifp); 93 if (state && state->addr.s_addr == addr) 107 struct dhcp_state *state = D_STATE(astate->iface); local 109 if (state->state == DHS_IPV4LL_BOUND) { 114 if (state->state != DHS_BOUND) { 119 offer = state->offer 132 struct dhcp_state *state = D_STATE(astate->iface); local 152 struct dhcp_state *state = D_STATE(astate->iface); local 209 struct dhcp_state *state = D_STATE(ifp); local 278 struct dhcp_state *state = D_STATE(ifp); local [all...] |
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/common/layout/relative/ |
GuidelinePainter.java | 50 GuidelineHandler state = (GuidelineHandler) feedback.userData; local 52 for (INode dragged : state.mDraggedNodes) { 60 Set<INode> horizontalDeps = state.mHorizontalDeps; 61 Set<INode> verticalDeps = state.mVerticalDeps; 69 if (state.mDraggedNodes.contains(n)) { 77 if (state.mBounds != null) { 78 if (state instanceof MoveHandler) { 82 if (state.haveSuggestions()) { 88 gc.drawRect(state.mBounds); 92 int y = state.mBounds.y + feedback.dragBaseline [all...] |
/external/mesa3d/src/compiler/glsl/ |
builtin_variables.cpp | 364 struct _mesa_glsl_parse_state *state); 417 struct _mesa_glsl_parse_state * const state; member in class:__anon29173::builtin_variable_generator 444 exec_list *instructions, struct _mesa_glsl_parse_state *state) 445 : instructions(instructions), state(state), symtab(state->symbols), 446 compatibility(!state->is_version(140, 100)), 621 add_const("gl_MaxVertexAttribs", state->Const.MaxVertexAttribs); 623 state->Const.MaxVertexTextureImageUnits); 625 state->Const.MaxCombinedTextureImageUnits) [all...] |
/external/syslinux/core/lwip/src/netif/ppp/ |
fsm.c | 2 * fsm.c - Network Control Protocol Finite State Machine program file. 34 * fsm.c - {Link, IP} Control Protocol Finite State Machine. 101 * Initialize fsm state. 106 f->state = LS_INITIAL; 123 int oldState = f->state; 127 switch( f->state ) { 129 f->state = LS_CLOSED; 134 f->state = LS_STOPPED; 138 f->state = LS_REQSENT; 143 FSMDEBUG(LOG_INFO, ("%s: Up event in state %d (%s)!\n" [all...] |
/bionic/benchmarks/ |
stdio_benchmark.cpp | 38 void ReadWriteTest(benchmark::State& state, Fn f, bool buffered) { 39 size_t chunk_size = state.range(0); 49 while (state.KeepRunning()) { 55 state.SetBytesProcessed(int64_t(state.iterations()) * int64_t(chunk_size)); 60 void BM_stdio_fread(benchmark::State& state) { 61 ReadWriteTest(state, fread, true); 65 void BM_stdio_fwrite(benchmark::State& state) [all...] |
pthread_benchmark.cpp | 25 static void BM_pthread_self(benchmark::State& state) { 26 while (state.KeepRunning()) { 32 static void BM_pthread_getspecific(benchmark::State& state) { 36 while (state.KeepRunning()) { 44 static void BM_pthread_setspecific(benchmark::State& state) { 48 while (state.KeepRunning()) { 59 static void BM_pthread_once(benchmark::State& state) [all...] |
/external/antlr/antlr-3.4/runtime/CSharp2/Sources/Antlr3.Runtime/Antlr.Runtime/ |
Lexer.cs | 54 public Lexer(ICharStream input, RecognizerSharedState state) 55 : base(state) { 63 if (state.text != null) { 64 return state.text; 66 return input.Substring(state.tokenStartCharIndex, CharIndex - state.tokenStartCharIndex); 70 state.text = value; 92 base.Reset(); // reset all recognizer state variables 93 // wack Lexer state variables 97 if (state == null) [all...] |
/external/antlr/antlr-3.4/runtime/CSharp3/Sources/Antlr3.Runtime/ |
Lexer.cs | 58 public Lexer( ICharStream input, RecognizerSharedState state ) 59 : base(state) 70 if ( state.text != null ) 72 return state.text; 74 return input.Substring( state.tokenStartCharIndex, CharIndex - state.tokenStartCharIndex ); 79 state.text = value; 108 base.Reset(); // reset all recognizer state variables 109 // wack Lexer state variables 114 if ( state == null [all...] |
/external/elfutils/libelf/ |
elf_newscn.c | 54 assert (offsetof (Elf, state.elf.scns_last) 55 == offsetof (Elf, state.elf32.scns_last)); 56 assert (offsetof (Elf, state.elf.scns_last) 57 == offsetof (Elf, state.elf64.scns_last)); 58 assert (offsetof (Elf, state.elf32.scns) 59 == offsetof (Elf, state.elf64.scns)); 64 if (elf->state.elf.scns_last->cnt < elf->state.elf.scns_last->max) 66 result = &elf->state.elf.scns_last->data[elf->state.elf.scns_last->cnt] [all...] |
/external/fio/lib/ |
rand.c | 49 static void __init_rand32(struct taus88_state *state, unsigned int seed) 55 state->s1 = __seed(LCG((2^31) + (2^17) + (2^7), seed), 1); 56 state->s2 = __seed(LCG(state->s1, seed), 7); 57 state->s3 = __seed(LCG(state->s2, seed), 15); 60 __rand32(state); 63 static void __init_rand64(struct taus258_state *state, uint64_t seed) 69 state->s1 = __seed(LCG64((2^31) + (2^17) + (2^7), seed), 1); 70 state->s2 = __seed(LCG64(state->s1, seed), 7) [all...] |
/external/libvterm/src/ |
vterm_internal.h | 58 #define SCROLLREGION_BOTTOM(state) ((state)->scrollregion_bottom > -1 ? (state)->scrollregion_bottom : (state)->rows) 60 #define SCROLLREGION_LEFT(state) ((state)->mode.leftrightmargin ? (state)->scrollregion_left : 0) 62 #define SCROLLREGION_RIGHT(state) ((state)->mode.leftrightmargin && (state)->scrollregion_right > -1 ? (state)->scrollregion_right : (state)->cols 160 VTermState *state; member in struct:VTerm [all...] |
/prebuilts/ndk/r16/sources/cxx-stl/llvm-libc++/utils/google-benchmark/test/ |
skip_with_error_test.cc | 64 void BM_error_before_running(benchmark::State& state) { 65 state.SkipWithError("error message"); 66 while (state.KeepRunning()) { 73 void BM_error_during_running(benchmark::State& state) { 75 while (state.KeepRunning()) { 76 if (state.range(0) == 1 && state.thread_index <= (state.threads / 2)) [all...] |
/external/tensorflow/tensorflow/contrib/solvers/python/ops/ |
least_squares.py | 69 output: A namedtuple representing the final state with fields: 76 # ephemeral class holding CGLS state. 80 def stopping_criterion(i, state): 81 return math_ops.logical_and(i < max_iter, state.gamma > tol) 84 def cgls_step(i, state): 85 q = operator.apply(state.p) 86 alpha = state.gamma / util.l2norm_squared(q) 87 x = state.x + alpha * state.p 88 r = state.r - alpha * [all...] |
/frameworks/base/apct-tests/perftests/core/src/android/os/ |
ParcelArrayPerfTest.java | 85 final BenchmarkState state = mPerfStatusReporter.getBenchmarkState(); local 86 while (state.keepRunning()) { 94 final BenchmarkState state = mPerfStatusReporter.getBenchmarkState(); local 95 while (state.keepRunning()) { 103 final BenchmarkState state = mPerfStatusReporter.getBenchmarkState(); local 104 while (state.keepRunning()) { 112 final BenchmarkState state = mPerfStatusReporter.getBenchmarkState(); local 113 while (state.keepRunning()) { 121 final BenchmarkState state = mPerfStatusReporter.getBenchmarkState(); local 122 while (state.keepRunning()) 130 final BenchmarkState state = mPerfStatusReporter.getBenchmarkState(); local 139 final BenchmarkState state = mPerfStatusReporter.getBenchmarkState(); local 148 final BenchmarkState state = mPerfStatusReporter.getBenchmarkState(); local 157 final BenchmarkState state = mPerfStatusReporter.getBenchmarkState(); local [all...] |
/packages/apps/Dialer/java/com/android/incallui/contactgrid/ |
BottomRow.java | 25 import com.android.incallui.call.DialerCall.State; 75 public static Info getInfo(Context context, PrimaryCallState state, PrimaryInfo primaryInfo) { 77 boolean isTimerVisible = state.state() == State.ACTIVE; 78 boolean isForwardIconVisible = state.isForwardedNumber(); 79 boolean isWorkIconVisible = state.isWorkCall(); 80 boolean isHdIconVisible = state.isHdAudioCall() && !isForwardIconVisible; 81 boolean isHdAttemptingIconVisible = state.isHdAttempting(); 85 if (isIncoming(state) && primaryInfo.isSpam()) [all...] |
/art/test/123-compiler-regressions-mt/src/ |
Main.java | 59 private volatile int state = 0; field in class:B17689750TestVolatile 63 while (state != 1) { } // Busy loop. 65 state = 2; 70 state = 1; 71 while (state != 2) { } // Busy loop. 80 private int state = 0; field in class:B17689750TestMonitor 88 s = state; 94 state = 2; 102 state = 1; 108 s = state; [all...] |
/bionic/libc/bionic/ |
c16rtomb.cpp | 45 mbstate_t* state = (ps == NULL) ? &__private_state : ps; local 46 if (mbsinit(state)) { 49 mbstate_set_byte(state, 3, (c32 & 0xff0000) >> 16); 50 mbstate_set_byte(state, 2, (c32 & 0x00ff00) >> 8); 53 return mbstate_reset_and_return_illegal(EINVAL, state); 55 return c32rtomb(s, static_cast<char32_t>(c16), state); 59 return mbstate_reset_and_return_illegal(EINVAL, state); 62 char32_t c32 = ((mbstate_get_byte(state, 3) << 16) | 63 (mbstate_get_byte(state, 2) << 8) | 65 return mbstate_reset_and_return(c32rtomb(s, c32, NULL), state); [all...] |
/device/linaro/bootloader/edk2/BaseTools/Source/C/VfrCompile/Pccts/h/ |
DLexerBase.cpp | 106 /* saves dlg state, but not what feeds dlg (such as file position) */
108 saveState(DLGState *state)
110 state->input = input;
111 state->interactive = interactive;
112 state->track_columns = track_columns;
113 state->auto_num = automaton;
114 state->add_erase = add_erase;
115 state->lookc = ch;
116 state->char_full = charfull;
117 state->begcol = _begcol; [all...] |
/external/antlr/antlr-3.4/runtime/ActionScript/project/src/org/antlr/runtime/ |
Lexer.as | 39 public function Lexer(input:CharStream = null, state:RecognizerSharedState = null) { 40 super(state); 45 super.reset(); // reset all recognizer state variables 46 // wack Lexer state variables 50 if ( state==null ) { 51 return; // no shared state work to do 53 state.token = null; 54 state.type = TokenConstants.INVALID_TOKEN_TYPE; 55 state.channel = TokenConstants.DEFAULT_CHANNEL; 56 state.tokenStartCharIndex = -1 [all...] |
/external/antlr/antlr-3.4/runtime/Java/src/main/java/org/antlr/runtime/ |
Lexer.java | 46 public Lexer(CharStream input, RecognizerSharedState state) { 47 super(state); 52 super.reset(); // reset all recognizer state variables 53 // wack Lexer state variables 57 if ( state==null ) { 58 return; // no shared state work to do 60 state.token = null; 61 state.type = Token.INVALID_TOKEN_TYPE; 62 state.channel = Token.DEFAULT_CHANNEL; 63 state.tokenStartCharIndex = -1 [all...] |
/external/mesa3d/src/gallium/drivers/radeonsi/ |
si_pm4.h | 53 /* BO's referenced by this state */ 62 void si_pm4_cmd_begin(struct si_pm4_state *state, unsigned opcode); 63 void si_pm4_cmd_add(struct si_pm4_state *state, uint32_t dw); 64 void si_pm4_cmd_end(struct si_pm4_state *state, bool predicate); 66 void si_pm4_set_reg(struct si_pm4_state *state, unsigned reg, uint32_t val); 67 void si_pm4_add_bo(struct si_pm4_state *state, 72 struct si_pm4_state *state); 74 void si_pm4_clear_state(struct si_pm4_state *state); 75 void si_pm4_free_state_simple(struct si_pm4_state *state); 77 struct si_pm4_state *state, [all...] |
/external/toolchain-utils/bestflags/examples/omnetpp/ |
test_omnetpp | 8 state=$? 10 if [ $state -eq 0 ];then 12 state=$? 13 if [ $state -eq 0 ];then 24 return $state
|
/external/v8/src/base/debug/ |
stack_trace_android.cc | 36 StackCrawlState* state = static_cast<StackCrawlState*>(arg); local 40 if (ip != 0 && !state->have_skipped_self) { 41 state->have_skipped_self = true; 45 state->frames[state->frame_count++] = ip; 46 if (state->frame_count >= state->max_depth) 73 StackCrawlState state(reinterpret_cast<uintptr_t*>(trace_), kMaxTraces); 74 _Unwind_Backtrace(&TraceStackFrame, &state); 75 count_ = state.frame_count [all...] |