Home
last modified time | relevance | path

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

12345678910>>...24

/frameworks/base/services/tests/servicestests/src/com/android/server/pm/
DPackageVerificationStateTest.java32 PackageVerificationState state = new PackageVerificationState(REQUIRED_UID, null); in testPackageVerificationState_OnlyRequiredVerifier_AllowedInstall() local
35 state.isVerificationComplete()); in testPackageVerificationState_OnlyRequiredVerifier_AllowedInstall()
37 state.setVerifierResponse(REQUIRED_UID, PackageManager.VERIFICATION_ALLOW); in testPackageVerificationState_OnlyRequiredVerifier_AllowedInstall()
40 state.isVerificationComplete()); in testPackageVerificationState_OnlyRequiredVerifier_AllowedInstall()
43 state.isInstallAllowed()); in testPackageVerificationState_OnlyRequiredVerifier_AllowedInstall()
47 PackageVerificationState state = new PackageVerificationState(REQUIRED_UID, null); in testPackageVerificationState_OnlyRequiredVerifier_DeniedInstall() local
50 state.isVerificationComplete()); in testPackageVerificationState_OnlyRequiredVerifier_DeniedInstall()
52 state.setVerifierResponse(REQUIRED_UID, PackageManager.VERIFICATION_REJECT); in testPackageVerificationState_OnlyRequiredVerifier_DeniedInstall()
55 state.isVerificationComplete()); in testPackageVerificationState_OnlyRequiredVerifier_DeniedInstall()
58 state.isInstallAllowed()); in testPackageVerificationState_OnlyRequiredVerifier_DeniedInstall()
[all …]
/frameworks/base/core/java/android/nfc/
DNfcActivityManager.java71 NfcActivityState state = mNfcState.get(activity); in onResume() local
72 if (DBG) Log.d(TAG, "onResume() for " + activity + " " + state); in onResume()
73 if (state != null) { in onResume()
74 state.resumed = true; in onResume()
75 updateNfcService(state); in onResume()
83 NfcActivityState state = mNfcState.get(activity); in onPause() local
84 if (DBG) Log.d(TAG, "onPause() for " + activity + " " + state); in onPause()
85 if (state != null) { in onPause()
86 state.resumed = false; in onPause()
87 updateNfcService(state); in onPause()
[all …]
/frameworks/base/core/java/android/text/method/
DMetaKeyKeyListener.java287 int state = content.getSpanFlags(what); in press() local
289 if (state == PRESSED) in press()
291 else if (state == RELEASED) in press()
293 else if (state == USED) in press()
295 else if (state == LOCKED) in press()
373 public static long resetLockedMeta(long state) { in resetLockedMeta() argument
374 if ((state & META_CAP_LOCKED) != 0) { in resetLockedMeta()
375 state &= ~META_SHIFT_MASK; in resetLockedMeta()
377 if ((state & META_ALT_LOCKED) != 0) { in resetLockedMeta()
378 state &= ~META_ALT_MASK; in resetLockedMeta()
[all …]
/frameworks/base/services/input/
DSpriteController.cpp133 if (update.state.surfaceControl == NULL && update.state.wantSurfaceVisible()) { in doUpdateSprites()
134 update.state.surfaceWidth = update.state.icon.bitmap.width(); in doUpdateSprites()
135 update.state.surfaceHeight = update.state.icon.bitmap.height(); in doUpdateSprites()
136 update.state.surfaceDrawn = false; in doUpdateSprites()
137 update.state.surfaceVisible = false; in doUpdateSprites()
138 update.state.surfaceControl = obtainSurface( in doUpdateSprites()
139 update.state.surfaceWidth, update.state.surfaceHeight); in doUpdateSprites()
140 if (update.state.surfaceControl != NULL) { in doUpdateSprites()
151 if (update.state.surfaceControl != NULL && update.state.wantSurfaceVisible()) { in doUpdateSprites()
152 int32_t desiredWidth = update.state.icon.bitmap.width(); in doUpdateSprites()
[all …]
/frameworks/base/libs/rs/
DrsProgram.cpp30 mHal.state.inputElementsCount++; in Program()
33 mHal.state.constantsCount++; in Program()
36 mHal.state.texturesCount++; in Program()
40 mHal.state.textures = new ObjectBaseRef<Allocation>[mHal.state.texturesCount]; in Program()
41 mHal.state.samplers = new ObjectBaseRef<Sampler>[mHal.state.texturesCount]; in Program()
42 mHal.state.textureTargets = new RsTextureTarget[mHal.state.texturesCount]; in Program()
43 mHal.state.inputElements = new ObjectBaseRef<Element>[mHal.state.inputElementsCount]; in Program()
44 mHal.state.constantTypes = new ObjectBaseRef<Type>[mHal.state.constantsCount]; in Program()
45 mHal.state.constants = new ObjectBaseRef<Allocation>[mHal.state.constantsCount]; in Program()
52 mHal.state.inputElements[input++].set(reinterpret_cast<Element *>(params[ct+1])); in Program()
[all …]
DrsMesh.cpp24 mHal.state.primitives = NULL; in Mesh()
25 mHal.state.primitivesCount = 0; in Mesh()
26 mHal.state.vertexBuffers = NULL; in Mesh()
27 mHal.state.vertexBuffersCount = 0; in Mesh()
35 mHal.state.primitivesCount = primitivesCount; in Mesh()
36 mHal.state.primitives = new Primitive_t *[mHal.state.primitivesCount]; in Mesh()
37 for (uint32_t i = 0; i < mHal.state.primitivesCount; i ++) { in Mesh()
38 mHal.state.primitives[i] = new Primitive_t; in Mesh()
40 mHal.state.vertexBuffersCount = vertexBuffersCount; in Mesh()
41 mHal.state.vertexBuffers = new ObjectBaseRef<Allocation>[mHal.state.vertexBuffersCount]; in Mesh()
[all …]
DrsProgramStore.cpp31 mHal.state.ditherEnable = ditherEnable; in ProgramStore()
33 mHal.state.colorRWriteEnable = colorMaskR; in ProgramStore()
34 mHal.state.colorGWriteEnable = colorMaskG; in ProgramStore()
35 mHal.state.colorBWriteEnable = colorMaskB; in ProgramStore()
36 mHal.state.colorAWriteEnable = colorMaskA; in ProgramStore()
37 mHal.state.blendSrc = srcFunc; in ProgramStore()
38 mHal.state.blendDst = destFunc; in ProgramStore()
40 mHal.state.depthWriteEnable = depthMask; in ProgramStore()
41 mHal.state.depthFunc = depthFunc; in ProgramStore()
57 void ProgramStore::setup(const Context *rsc, ProgramStoreState *state) { in setup() argument
[all …]
/frameworks/base/media/libstagefright/codecs/amrnb/dec/src/
Dph_disp.cpp208 Word16 ph_disp_reset(ph_dispState *state) in ph_disp_reset() argument
212 if (state == (ph_dispState *) NULL) in ph_disp_reset()
219 state->gainMem[i] = 0; in ph_disp_reset()
221 state->prevState = 0; in ph_disp_reset()
222 state->prevCbGain = 0; in ph_disp_reset()
223 state->lockFull = 0; in ph_disp_reset()
224 state->onset = 0; /* assume no onset in start */ in ph_disp_reset()
299 void ph_disp_lock(ph_dispState *state) in ph_disp_lock() argument
301 state->lockFull = 1; in ph_disp_lock()
376 void ph_disp_release(ph_dispState *state) in ph_disp_release() argument
[all …]
Ddec_amr.cpp395 Word16 Decoder_amr_reset(Decoder_amrState *state, enum Mode mode) in Decoder_amr_reset() argument
399 if (state == (Decoder_amrState *) NULL) in Decoder_amr_reset()
406 state->exc = state->old_exc + PIT_MAX + L_INTERPOL; in Decoder_amr_reset()
409 memset(state->old_exc, 0, sizeof(Word16)*(PIT_MAX + L_INTERPOL)); in Decoder_amr_reset()
413 memset(state->mem_syn, 0, sizeof(Word16)*M); in Decoder_amr_reset()
416 state->sharp = SHARPMIN; in Decoder_amr_reset()
417 state->old_T0 = 40; in Decoder_amr_reset()
421 state->overflow = 0; in Decoder_amr_reset()
427 state->lsp_old[0] = 30000; in Decoder_amr_reset()
428 state->lsp_old[1] = 26000; in Decoder_amr_reset()
[all …]
Dec_gains.cpp199 Word16 ec_gain_code_reset(ec_gain_codeState *state) in ec_gain_code_reset() argument
203 if (state == (ec_gain_codeState *) NULL) in ec_gain_code_reset()
210 state->gbuf[i] = 1; in ec_gain_code_reset()
211 state->past_gain_code = 0; in ec_gain_code_reset()
212 state->prev_gc = 1; in ec_gain_code_reset()
318 Word16 state, /* i : state of the state machine */ in ec_gain_code() argument
341 tmp = mult(tmp, cdown[state], pOverflow); in ec_gain_code()
579 Word16 state, /* i : state of the state machine */ in ec_gain_pitch() argument
600 *gain_pitch = mult(tmp, pdown[state], pOverflow); in ec_gain_pitch()
686 Word16 ec_gain_pitch_reset(ec_gain_pitchState *state) in ec_gain_pitch_reset() argument
[all …]
/frameworks/base/media/libstagefright/codecs/amrnb/enc/src/
Dpre_proc.cpp212 Word16 Pre_Process_init(Pre_ProcessState **state) in Pre_Process_init() argument
216 if (state == (Pre_ProcessState **) NULL) in Pre_Process_init()
221 *state = NULL; in Pre_Process_init()
232 *state = s; in Pre_Process_init()
320 Word16 Pre_Process_reset(Pre_ProcessState *state) in Pre_Process_reset() argument
322 if (state == (Pre_ProcessState *) NULL) in Pre_Process_reset()
328 state->y2_hi = 0; in Pre_Process_reset()
329 state->y2_lo = 0; in Pre_Process_reset()
330 state->y1_hi = 0; in Pre_Process_reset()
331 state->y1_lo = 0; in Pre_Process_reset()
[all …]
Dsid_sync.cpp166 Word16 sid_sync_init(void **state) in sid_sync_init() argument
170 if (state == NULL) in sid_sync_init()
176 *state = NULL; in sid_sync_init()
189 *state = (void *)s; in sid_sync_init()
260 sid_syncState *state = (sid_syncState *) st; in sid_sync_reset() local
262 state->sid_update_counter = 3; in sid_sync_reset()
263 state->sid_handover_debt = 0; in sid_sync_reset()
264 state->prev_ft = TX_SPEECH_GOOD; in sid_sync_reset()
335 void sid_sync_exit(void **state) in sid_sync_exit() argument
337 sid_syncState **st = (sid_syncState **) state; in sid_sync_exit()
[all …]
Dgain_q.cpp174 Word16 gainQuant_init(gainQuantState **state) in gainQuant_init() argument
178 if (state == (gainQuantState **) NULL) in gainQuant_init()
183 *state = NULL; in gainQuant_init()
206 *state = s; in gainQuant_init()
274 Word16 gainQuant_reset(gainQuantState *state) in gainQuant_reset() argument
277 if (state == (gainQuantState *) NULL) in gainQuant_reset()
283 state->sf0_exp_gcode0 = 0; in gainQuant_reset()
284 state->sf0_frac_gcode0 = 0; in gainQuant_reset()
285 state->sf0_exp_target_en = 0; in gainQuant_reset()
286 state->sf0_frac_target_en = 0; in gainQuant_reset()
[all …]
Dlpc.cpp183 Word16 lpc_init(lpcState **state) in lpc_init() argument
187 if (state == (lpcState **) NULL) in lpc_init()
192 *state = NULL; in lpc_init()
211 *state = s; in lpc_init()
286 Word16 lpc_reset(lpcState *state) in lpc_reset() argument
289 if (state == (lpcState *) NULL) in lpc_reset()
295 Levinson_reset(state->levinsonSt); in lpc_reset()
374 void lpc_exit(lpcState **state) in lpc_exit() argument
376 if (state == NULL || *state == NULL) in lpc_exit()
379 Levinson_exit(&(*state)->levinsonSt); in lpc_exit()
[all …]
/frameworks/base/media/libstagefright/codecs/amrnb/common/src/
Dq_plsf.cpp78 Word16 Q_plsf_init(Q_plsfState **state) in Q_plsf_init() argument
82 if (state == (Q_plsfState **) NULL) in Q_plsf_init()
87 *state = NULL; in Q_plsf_init()
97 *state = s; in Q_plsf_init()
110 Word16 Q_plsf_reset(Q_plsfState *state) in Q_plsf_reset() argument
114 if (state == (Q_plsfState *) NULL) in Q_plsf_reset()
121 state->past_rq[i] = 0; in Q_plsf_reset()
134 void Q_plsf_exit(Q_plsfState **state) in Q_plsf_exit() argument
136 if (state == NULL || *state == NULL) in Q_plsf_exit()
140 free(*state); in Q_plsf_exit()
[all …]
/frameworks/base/telephony/java/com/android/internal/telephony/test/
DSimulatedGsmCallState.java46 State state; field in CallInfo
51 CallInfo (boolean isMT, State state, boolean isMpty, String number) { in CallInfo() argument
53 this.state = state; in CallInfo()
79 + state.value() + ",0," + (isMpty ? "1" : "0") in toCLCCLine()
93 ret.state = DriverCall.stateFromCLCC(state.value()); in toDriverCall()
110 return state == State.ACTIVE || state == State.HOLDING; in isActiveOrHeld()
115 return state == State.DIALING || state == State.ALERTING; in isConnecting()
120 return state == State.INCOMING || state == State.WAITING; in isRinging()
189 && (call.state == CallInfo.State.INCOMING in triggerRing()
190 || call.state == CallInfo.State.WAITING) in triggerRing()
[all …]
/frameworks/base/core/java/android/server/
DBluetoothA2dpService.java76 int state = intent.getIntExtra(BluetoothAdapter.EXTRA_STATE,
78 switch (state) {
89 int state = mAudioDevices.get(device);
90 handleSinkStateChange(device, state, BluetoothA2dp.STATE_DISCONNECTED);
120 int state = i.getIntExtra(Intent.EXTRA_DOCK_STATE, Intent.EXTRA_DOCK_STATE_UNDOCKED); in isPhoneDocked() local
121 if (state != Intent.EXTRA_DOCK_STATE_UNDOCKED) { in isPhoneDocked()
221 int state = getConnectionState(device); in onBluetoothDisable() local
222 switch (state) { in onBluetoothDisable()
228 handleSinkStateChange(device, state, BluetoothA2dp.STATE_DISCONNECTED); in onBluetoothDisable()
283 int state = mAudioDevices.get(device); in connectSinkInternal() local
[all …]
/frameworks/base/media/libstagefright/codecs/amrwb/src/
Dphase_dispersion.cpp160 int16 i, j, state; in phase_dispersion() local
173 state = 0; in phase_dispersion()
177 state = 1; in phase_dispersion()
181 state = 2; in phase_dispersion()
193 if (state < 2) in phase_dispersion()
195 state++; in phase_dispersion()
211 state = 0; in phase_dispersion()
213 if (state > *prev_state + 1) in phase_dispersion()
215 state--; in phase_dispersion()
220 *prev_state = state; in phase_dispersion()
[all …]
/frameworks/base/telephony/tests/telephonymockriltests/src/com/android/telephonymockriltests/functional/
DSimpleTestUsingMockRil.java45 int state = mMockRilCtrl.getRadioState(); in testGetRadioState() local
46 Log.v(TAG, "testGetRadioState: " + state); in testGetRadioState()
47 assertTrue(state >= 0 && state <= 9); in testGetRadioState()
55 for (int state = 0; state <= 9; state++) { in testSetRadioState()
56 Log.v(TAG, "set radio state to be " + state); in testSetRadioState()
57 assertTrue("set radio state: " + state + " failed.", in testSetRadioState()
58 mMockRilCtrl.setRadioState(state)); in testSetRadioState()
/frameworks/base/core/java/android/view/
DInputEventConsistencyVerifier.java153 final KeyState state = mKeyStateList; in reset() local
154 mKeyStateList = state.next; in reset()
155 state.recycle(); in reset()
207 KeyState state = findKeyState(deviceId, source, keyCode, /*remove*/ false); in onKeyEvent() local
208 if (state != null) { in onKeyEvent()
213 if (state.unhandled) { in onKeyEvent()
214 state.unhandled = false; in onKeyEvent()
226 KeyState state = findKeyState(deviceId, source, keyCode, /*remove*/ true); in onKeyEvent() local
227 if (state == null) { in onKeyEvent()
230 state.recycle(); in onKeyEvent()
[all …]
/frameworks/base/telephony/java/com/android/internal/telephony/cdma/
DCdmaCall.java36 /*package*/ State state = State.IDLE; field in CdmaCall
73 return state; in getState()
96 return state.toString(); in toString()
105 state = stateFromDCState (dc.state); in attach()
109 attachFake(Connection conn, State state) { in attachFake() argument
112 this.state = state; in attachFake()
120 if (state != State.DISCONNECTED) { in connectionDisconnected()
135 state = State.DISCONNECTED; in connectionDisconnected()
146 state = State.IDLE; in detach()
155 newState = stateFromDCState(dc.state); in update()
[all …]
/frameworks/base/core/java/android/util/
DBase64.java236 private int state; // state number (0 to 6) field in Base64.Decoder
245 state = 0; in Decoder()
264 if (this.state == 6) return false; in process()
274 int state = this.state; in process() local
295 if (state == 0) { in process()
317 switch (state) { in process()
321 ++state; in process()
323 this.state = 6; in process()
331 ++state; in process()
333 this.state = 6; in process()
[all …]
/frameworks/base/cmds/ip-up-vpn/
Dip-up-vpn.c68 FILE *state = fopen(DIR ".tmp", "wb"); in main() local
69 if (!state) { in main()
76 fprintf(state, "%s\n", argv[1]); in main()
77 fprintf(state, "%s/32\n", argv[4]); in main()
78 fprintf(state, "0.0.0.0/0\n"); in main()
79 fprintf(state, "%s %s\n", env("DNS1"), env("DNS2")); in main()
80 fprintf(state, "\n"); in main()
137 fprintf(state, "%s\n", interface); in main()
138 fprintf(state, "%s/%s\n", address, env("INTERNAL_CIDR4")); in main()
139 fprintf(state, "%s\n", routes[0] ? routes : "0.0.0.0/0"); in main()
[all …]
/frameworks/opt/calendar/src/com/android/calendarcommon/
DICalendar.java431 ParserState state = new ParserState(); in parseComponentImpl() local
432 state.index = 0; in parseComponentImpl()
441 current = parseLine(line, state, current); in parseComponentImpl()
466 private static Component parseLine(String line, ParserState state, in parseLine() argument
469 state.line = line; in parseLine()
470 int len = state.line.length(); in parseLine()
474 for (state.index = 0; state.index < len; ++state.index) { in parseLine()
475 c = line.charAt(state.index); in parseLine()
480 String name = line.substring(0, state.index); in parseLine()
491 String componentName = extractValue(state); in parseLine()
[all …]
/frameworks/base/core/tests/coretests/src/android/util/
DStateSetTest.java124 int state; in testSingleStatePositiveMatches() local
127 state = 1; in testSingleStatePositiveMatches()
128 assertTrue(StateSet.stateSetMatches(stateSpec, state)); in testSingleStatePositiveMatches()
130 state = 2; in testSingleStatePositiveMatches()
131 assertFalse(StateSet.stateSetMatches(stateSpec, state)); in testSingleStatePositiveMatches()
134 assertFalse(StateSet.stateSetMatches(stateSpec, state)); in testSingleStatePositiveMatches()
140 int state; in testSingleStateNegativeMatches() local
143 state = 1; in testSingleStateNegativeMatches()
144 assertFalse(StateSet.stateSetMatches(stateSpec, state)); in testSingleStateNegativeMatches()
146 state = 2; in testSingleStateNegativeMatches()
[all …]

12345678910>>...24