Home
last modified time | relevance | path

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

12345678910>>...36

/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/services/input/
DSpriteController.cpp135 if (update.state.surfaceControl == NULL && update.state.wantSurfaceVisible()) { in doUpdateSprites()
136 update.state.surfaceWidth = update.state.icon.bitmap.width(); in doUpdateSprites()
137 update.state.surfaceHeight = update.state.icon.bitmap.height(); in doUpdateSprites()
138 update.state.surfaceDrawn = false; in doUpdateSprites()
139 update.state.surfaceVisible = false; in doUpdateSprites()
140 update.state.surfaceControl = obtainSurface( in doUpdateSprites()
141 update.state.surfaceWidth, update.state.surfaceHeight); in doUpdateSprites()
142 if (update.state.surfaceControl != NULL) { in doUpdateSprites()
153 if (update.state.surfaceControl != NULL && update.state.wantSurfaceVisible()) { in doUpdateSprites()
154 int32_t desiredWidth = update.state.icon.bitmap.width(); in doUpdateSprites()
[all …]
/frameworks/base/core/java/android/text/method/
DMetaKeyKeyListener.java346 int state = content.getSpanFlags(what); in press() local
348 if (state == PRESSED) in press()
350 else if (state == RELEASED) in press()
352 else if (state == USED) in press()
354 else if (state == LOCKED) in press()
432 public static long resetLockedMeta(long state) { in resetLockedMeta() argument
433 if ((state & META_CAP_LOCKED) != 0) { in resetLockedMeta()
434 state &= ~META_SHIFT_MASK; in resetLockedMeta()
436 if ((state & META_ALT_LOCKED) != 0) { in resetLockedMeta()
437 state &= ~META_ALT_MASK; in resetLockedMeta()
[all …]
/frameworks/base/core/java/android/nfc/
DNfcActivityManager.java161 for (NfcActivityState state : mActivities) { in findActivityState()
162 if (state.activity == activity) { in findActivityState()
163 return state; in findActivityState()
171 NfcActivityState state = findActivityState(activity); in getActivityState() local
172 if (state == null) { in getActivityState()
173 state = new NfcActivityState(activity); in getActivityState()
174 mActivities.add(state); in getActivityState()
176 return state; in getActivityState()
180 for (NfcActivityState state : mActivities) { in findResumedActivityState()
181 if (state.resumed) { in findResumedActivityState()
[all …]
/frameworks/rs/
DrsProgram.cpp30 mHal.state.inputElementsCount++; in Program()
33 mHal.state.constantsCount++; in Program()
36 mHal.state.texturesCount++; in Program()
40 mTextures = new ObjectBaseRef<Allocation>[mHal.state.texturesCount]; in Program()
41 mSamplers = new ObjectBaseRef<Sampler>[mHal.state.texturesCount]; in Program()
42 mInputElements = new ObjectBaseRef<Element>[mHal.state.inputElementsCount]; in Program()
43 mConstantTypes = new ObjectBaseRef<Type>[mHal.state.constantsCount]; in Program()
44 mConstants = new ObjectBaseRef<Allocation>[mHal.state.constantsCount]; in Program()
46 mHal.state.textures = new Allocation*[mHal.state.texturesCount]; in Program()
47 mHal.state.samplers = new Sampler*[mHal.state.texturesCount]; in Program()
[all …]
DrsType.cpp49 if (mHal.state.lodCount) { in clear()
50 delete [] mHal.state.lodDimX; in clear()
51 delete [] mHal.state.lodDimY; in clear()
52 delete [] mHal.state.lodDimZ; in clear()
66 uint32_t oldLODCount = mHal.state.lodCount; in compute()
68 uint32_t l2x = rsFindHighBit(mHal.state.dimX) + 1; in compute()
69 uint32_t l2y = rsFindHighBit(mHal.state.dimY) + 1; in compute()
70 uint32_t l2z = rsFindHighBit(mHal.state.dimZ) + 1; in compute()
72 mHal.state.lodCount = rsMax(l2x, l2y); in compute()
73 mHal.state.lodCount = rsMax(mHal.state.lodCount, l2z); in compute()
[all …]
DrsMesh.cpp26 mHal.state.primitives = NULL; in Mesh()
27 mHal.state.primitivesCount = 0; in Mesh()
28 mHal.state.indexBuffers = NULL; in Mesh()
29 mHal.state.indexBuffersCount = 0; in Mesh()
30 mHal.state.vertexBuffers = NULL; in Mesh()
31 mHal.state.vertexBuffersCount = 0; in Mesh()
42 mHal.state.primitivesCount = primitivesCount; in Mesh()
43 mHal.state.indexBuffersCount = primitivesCount; in Mesh()
44 mHal.state.primitives = new RsPrimitive[mHal.state.primitivesCount]; in Mesh()
45 mHal.state.indexBuffers = new Allocation *[mHal.state.indexBuffersCount]; 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 …]
DrsFBOCache.cpp28 mHal.state.colorTargetsCount = 1; in FBOCache()
29 mHal.state.colorTargets = new Allocation*[mHal.state.colorTargetsCount]; in FBOCache()
30 mColorTargets = new ObjectBaseRef<Allocation>[mHal.state.colorTargetsCount]; in FBOCache()
35 delete[] mHal.state.colorTargets; in ~FBOCache()
48 if (slot >= mHal.state.colorTargetsCount) { in bindColorTarget()
53 if (!(a->getIsTexture() || (a->mHal.state.usageFlags & RS_ALLOCATION_USAGE_IO_OUTPUT))) { in bindColorTarget()
59 mHal.state.colorTargets[slot] = a; in bindColorTarget()
71 mHal.state.depthTarget = a; in bindDepthTarget()
76 for (uint32_t i = 0; i < mHal.state.colorTargetsCount; i ++) { in resetAll()
78 mHal.state.colorTargets[i] = NULL; in resetAll()
[all …]
/frameworks/av/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 …]
/frameworks/rs/driver/
DrsdShader.cpp50 StateBasedKey *state = mStateBasedShaders.itemAt(i); in ~RsdShader() local
51 if (state->mShaderID) { in ~RsdShader()
52 glDeleteShader(state->mShaderID); in ~RsdShader()
54 delete state; in ~RsdShader()
81 for (uint32_t ct = 0; ct < mRSProgram->mHal.state.texturesCount; ct ++) { in getExistingState()
83 if (mRSProgram->mHal.state.textureTargets[ct] == RS_TEXTURE_2D) { in getExistingState()
84 Allocation *a = mRSProgram->mHal.state.textures[ct]; in getExistingState()
85 if (a && a->mHal.state.surfaceTextureID) { in getExistingState()
103 StateBasedKey *state = getExistingState(); in getStateBasedShaderID() local
104 if (state != NULL) { in getStateBasedShaderID()
[all …]
DrsdMeshObj.cpp55 RsDataType dt = elem->mHal.state.fields[fieldIdx]->mHal.state.dataType; in isValidGLComponent()
63 uint32_t arraySize = elem->mHal.state.fieldArraySizes[fieldIdx]; in isValidGLComponent()
77 for (uint32_t ct=0; ct < mRSMesh->mHal.state.vertexBuffersCount; ct++) { in init()
78 const Element *elem = mRSMesh->mHal.state.vertexBuffers[ct]->getType()->getElement(); in init()
79 for (uint32_t ct=0; ct < elem->mHal.state.fieldsCount; ct++) { in init()
100 for (uint32_t ct=0; ct < mRSMesh->mHal.state.vertexBuffersCount; ct++) { in init()
101 const Element *elem = mRSMesh->mHal.state.vertexBuffers[ct]->getType()->getElement(); in init()
102 uint32_t stride = elem->mHal.state.elementSizeBytes; in init()
103 for (uint32_t fieldI=0; fieldI < elem->mHal.state.fieldsCount; fieldI++) { in init()
104 const Element *f = elem->mHal.state.fields[fieldI]; in init()
[all …]
/frameworks/av/cmds/stagefright/
Dcodec.cpp111 CodecState *state = in decode() local
114 state->mNumBytesDecoded = 0; in decode()
115 state->mNumBuffersDecoded = 0; in decode()
116 state->mIsAudio = isAudio; in decode()
118 state->mCodec = MediaCodec::CreateByType( in decode()
121 CHECK(state->mCodec != NULL); in decode()
123 err = state->mCodec->configure( in decode()
130 state->mSignalledInputEOS = false; in decode()
131 state->mSawOutputEOS = false; in decode()
139 CodecState *state = &stateByTrack.editValueAt(i); in decode() local
[all …]
DSimplePlayer.cpp313 CodecState *state = in onPrepare() local
317 state->mNumFramesWritten = 0; in onPrepare()
318 state->mCodec = MediaCodec::CreateByType( in onPrepare()
321 CHECK(state->mCodec != NULL); in onPrepare()
323 err = state->mCodec->configure( in onPrepare()
334 state->mCSD.push_back(buffer); in onPrepare()
341 CodecState *state = &mStateByTrackIndex.editValueAt(i); in onPrepare() local
343 status_t err = state->mCodec->start(); in onPrepare()
346 err = state->mCodec->getInputBuffers(&state->mBuffers[0]); in onPrepare()
349 err = state->mCodec->getOutputBuffers(&state->mBuffers[1]); in onPrepare()
[all …]
/frameworks/av/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/av/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/services/java/com/android/server/pm/
DPackageSettingBase.java182 PackageUserState state = userState.get(userId); in modifyUserState() local
183 if (state == null) { in modifyUserState()
184 state = new PackageUserState(); in modifyUserState()
185 userState.put(userId, state); in modifyUserState()
187 return state; in modifyUserState()
191 PackageUserState state = userState.get(userId); in readUserState() local
192 if (state != null) { in readUserState()
193 return state; in readUserState()
198 void setEnabled(int state, int userId, String callingPackage) { in setEnabled() argument
200 st.enabled = state; in setEnabled()
[all …]
/frameworks/av/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/libs/hwui/
DDeferredDisplayList.cpp69 virtual void add(DrawOp* op, const DeferredDisplayState* state, bool opaqueOverBounds) { in add() argument
71 mBounds.unionWith(state->mBounds); in add()
73 mOps.add(OpStatePair(op, state)); in add()
80 if (rect.intersects(mOps[i].state->mBounds)) { in intersects()
83 mOps[i].state->mBounds.left, mOps[i].state->mBounds.top, in intersects()
84 mOps[i].state->mBounds.right, mOps[i].state->mBounds.bottom); in intersects()
101 const DeferredDisplayState* state = mOps[i].state; in replay() local
102 renderer.restoreDisplayState(*state); in replay()
111 const Rect& bounds = state->mBounds; in replay()
130 const Rect &r = mOps[i].state->mBounds; in coversBounds()
[all …]
/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/core/java/android/content/
DUndoManager.java176 public void restoreInstanceState(Parcelable state) { in restoreInstanceState() argument
182 ParcelableParcel pp = (ParcelableParcel)state; in restoreInstanceState()
252 UndoState state = mUndos.remove(i); in undo() local
253 state.undo(); in undo()
254 mRedos.add(state); in undo()
284 UndoState state = mRedos.remove(i); in redo() local
285 state.redo(); in redo()
286 mUndos.add(state); in redo()
312 UndoState state = mUndos.get(i); in forgetUndos() local
313 if (count > 0 && matchOwners(state, owners)) { in forgetUndos()
[all …]
/frameworks/native/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 …]

12345678910>>...36