Searched refs:state (Results 26 - 50 of 84) sorted by relevance

1234

/system/vold/
H A DVolume.cpp86 static const char *stateToStr(int state) { argument
87 if (state == Volume::State_Init)
89 else if (state == Volume::State_NoMedia)
91 else if (state == Volume::State_Idle)
93 else if (state == Volume::State_Pending)
95 else if (state == Volume::State_Mounted)
97 else if (state == Volume::State_Unmounting)
99 else if (state == Volume::State_Checking)
101 else if (state == Volume::State_Formatting)
103 else if (state
169 setState(int state) argument
[all...]
H A DVolume.h85 void setState(int state);
H A DDirectVolume.cpp291 int state; local
301 state = getState();
302 if (state != Volume::State_Mounted && state != Volume::State_Shared) {
327 } else if (state == Volume::State_Shared) {
/system/media/wilhelm/src/itf/
H A DIDynamicInterfaceManagement.c41 // check interface state
43 SLuint8 state = *interfaceStateP; local
44 switch (state) {
48 // change state to indicate we are now adding the interface
64 // re-lock mutex to update state
69 state = INTERFACE_ADDED;
71 state = INTERFACE_INITIALIZED;
78 state = INTERFACE_INITIALIZED;
88 // mutex is locked, update state
89 *interfaceStateP = state;
299 SLuint8 state = *interfaceStateP; local
[all...]
H A DIPlay.c22 static SLresult IPlay_SetPlayState(SLPlayItf self, SLuint32 state) argument
26 switch (state) {
40 if (state != oldState) {
44 // We are comparing the old state (left) vs. new state (right).
45 // Note that the old state is 3 bits wide, but new state is only 2 bits wide.
46 // That is why the old state is on the left and new state is on the right.
47 switch ((oldState << 2) | state) {
126 SLuint32 state = thiz->mState; local
[all...]
H A DIRecord.c22 static SLresult IRecord_SetRecordState(SLRecordItf self, SLuint32 state) argument
26 switch (state) {
33 thiz->mState = state;
35 android_audioRecorder_setRecordState(InterfaceToCAudioRecorder(thiz), state); local
59 SLuint32 state = thiz->mState; local
61 *pState = state;
H A DIAndroidBufferQueue.c26 * Determine the state of the audio player or audio recorder associated with a buffer queue.
32 SLuint32 state; local
35 state = ((CMediaPlayer *) thiz->mThis)->mPlay.mState;
38 state = ((CAudioPlayer *) thiz->mThis)->mPlay.mState;
43 state = SL_PLAYSTATE_STOPPED;
46 return state;
233 // verify pre-condition that media object is in the SL_PLAYSTATE_STOPPED state
273 // reset the queue state
394 // set enqueue attribute if state is PLAYING and the first buffer is enqueued
/system/media/wilhelm/src/android/
H A DAudioRecorder_to_android.h54 extern void android_audioRecorder_setRecordState(CAudioRecorder* ar, SLuint32 state);
/system/core/liblog/
H A Dfake_log_device.c59 * Log driver state.
346 static void showLog(LogState *state, argument
387 switch (state->outputFormat) {
544 LogState* state; local
552 state = fdToLogState(fd);
553 if (state == NULL) {
558 if (state->isBinary) {
559 TRACE("%s: ignoring binary log\n", state->debugName);
565 state->debugName, count);
576 int minPrio = state
[all...]
/system/core/libpixelflinger/
H A Dtrap.cpp140 if (c->state.needs.p & GGL_NEED_MASK(P_AA)) {
141 if (c->state.enables & GGL_ENABLE_POINT_AA_NICE) {
216 if (l < GGLint(c->state.scissor.left)) {
217 xstart += TRI_FROM_INT(c->state.scissor.left-l);
218 l = GGLint(c->state.scissor.left);
220 if (t < GGLint(c->state.scissor.top)) {
221 ystart += TRI_FROM_INT(c->state.scissor.top-t);
222 t = GGLint(c->state.scissor.top);
224 if (r > GGLint(c->state.scissor.right)) {
225 r = GGLint(c->state
[all...]
H A Dbuffer.cpp46 texture_t& t = c->state.texture[i];
55 c->activeTMU = &(c->state.texture[0]);
87 surface_t& s = c->state.texture[i].surface;
88 if ((!c->state.texture[i].enable) || (!s.dirty))
102 surface_t& s = c->state.buffers.color;
168 if (c->state.enables & GGL_ENABLE_DITHER) {
188 if (h && (c->state.mask.color & component_mask)) {
200 if ((c->state.mask.color != 0xF) ||
201 (c->state.enables & GGL_ENABLE_LOGIC_OP)) {
209 if (c->state
[all...]
H A Dscanline.cpp287 if (c->state.buffers.coverage)
288 free(c->state.buffers.coverage);
309 // c->state.needs.n, c->state.needs.p,
310 // c->state.needs.t[0], c->state.needs.t[1]);
313 const uint32_t cb_format = GGL_READ_NEEDS(CB_FORMAT, c->state.needs.n);
314 if (GGL_READ_NEEDS(T_FORMAT, c->state.needs.t[0]) == cb_format) {
315 if (c->state.needs.match(noblend1to1)) {
316 // this will match regardless of dithering state, sinc
[all...]
/system/bluetooth/bluez-clean-headers/bluetooth/
H A Drfcomm.h72 uint16_t state; member in struct:rfcomm_dev_info
/system/core/adb/
H A Dfdevent.h75 unsigned short state; member in struct:fdevent
H A Dtransport_usb.c112 void init_usb_transport(atransport *t, usb_handle *h, int state) argument
120 t->connection_state = state;
H A Dcommandline.c158 " adb get-state - prints: offline | bootloader | device\n"
278 int state = 0; local
298 state = 1;
301 state = 1;
304 if(state == 1) state++;
307 if(state == 2) {
315 state = 0;
373 char *state = 0; local
386 format_host_command(command, sizeof command, "get-state", ttyp
[all...]
/system/core/sh/
H A Djobs.h48 #define SHOW_CHANGED 0x08 /* only jobs whose state has changed */
73 char state; member in struct:job
H A Djobs.c314 if (curjob != -1 && jobtab[curjob].state == JOBSTOPPED) {
319 if (jp2->state != JOBSTOPPED)
363 if (jp->state == JOBDONE)
374 jp->state = JOBRUNNING;
426 if (jp->state == JOBDONE && !(mode & SHOW_NO_FREE)) {
495 if (jp->state == JOBDONE && !(mode & SHOW_NO_FREE))
620 if (!jp->used || jp->state != JOBRUNNING) {
637 while (job->state == JOBRUNNING) {
811 jp->state = JOBRUNNING;
991 while (jp->state
1080 int state = done ? JOBDONE : JOBSTOPPED; local
[all...]
/system/media/audio_utils/
H A Decho_reference.c28 // echo reference state: bit field indicating if read, write or both are active.
29 enum state { enum
38 uint32_t state; // active state: reading, writing or both member in struct:echo_reference
132 er->state &= ~ECHOREF_WRITING;
150 if ((er->state & ECHOREF_WRITING) == 0) {
155 er->state |= ECHOREF_WRITING;
158 if ((er->state & ECHOREF_READING) == 0) {
276 er->state &= ~ECHOREF_READING;
283 if ((er->state
[all...]
/system/media/wilhelm/tests/sandbox/
H A Dmultiplay.c26 // Describes the state of one player
236 SLuint32 state; local
237 result = (*p->mPlayerPlay)->GetPlayState(p->mPlayerPlay, &state);
239 printf("state = ");
240 switch (state) {
251 printf("%u", (unsigned) state);
255 if (state == SL_PLAYSTATE_STOPPED || state == SL_PLAYSTATE_PAUSED) {
266 if (state != SL_PLAYSTATE_STOPPED) {
/system/extras/ext4_utils/
H A Dsha1.c124 void SHA1Transform(state, buffer)
125 u_int32_t state[5];
136 assert(state != 0);
145 /* Copy context->state[] to working vars */
146 a = state[0];
147 b = state[1];
148 c = state[2];
149 d = state[3];
150 e = state[4];
181 /* Add the working vars back into context.state[] */
[all...]
/system/core/debuggerd/arm/
H A Dunwind.c120 except when actually manipulating coprocessor state. This allows
124 During unwinding we hold the coprocessor state in the actual hardware
574 unwind_pr_common_with_ptrace (_Unwind_State state, argument
584 state &= _US_ACTION_MASK;
605 if (state == _US_UNWIND_FRAME_RESUME)
643 unwind_cpp_pr0_with_ptrace (_Unwind_State state, argument
648 return unwind_pr_common_with_ptrace (state, ucbp, context, 0, pid);
652 unwind_cpp_pr1_with_ptrace (_Unwind_State state, argument
657 return unwind_pr_common_with_ptrace (state, ucbp, context, 1, pid);
661 unwind_cpp_pr2_with_ptrace (_Unwind_State state, argument
[all...]
/system/core/libcutils/
H A Dtztime.c141 struct state { struct
182 static void gmtload P((struct state * sp));
186 struct tm * tmp, const struct state *sp));
197 long, struct tm *, const struct state* sp)),
198 long offset, const struct state * sp));
201 long, struct tm*, const struct state* sp)),
202 long offset, int * okayp, const struct state * sp));
204 struct tm * (*funcp) P((const time_t*, long, struct tm*,const struct state *sp)),
206 const struct state *sp));
208 const struct state * s
[all...]
/system/media/wilhelm/tests/examples/
H A DslesTestSawtoothBufferQueue.cpp124 SLBufferQueueState state; local
254 res = (*bufferQueueItf)->GetState(bufferQueueItf, &state);
257 // while (state.playIndex < 100) {
258 while (state.count) {
260 (*bufferQueueItf)->GetState(bufferQueueItf, &state);
/system/core/libnetutils/
H A Ddhcpclient.c395 unsigned int state; local
411 state = STATE_SELECTING;
440 switch(state) {
485 if (state == STATE_SELECTING) {
497 switch(state) {
500 state = STATE_REQUESTING;
516 printerr("ignoring %s message in state %d\n",
517 dhcp_type_to_name(info.type), state);

Completed in 632 milliseconds

1234