Searched refs:state (Results 51 - 75 of 749) sorted by relevance

1234567891011>>

/frameworks/base/core/java/android/bluetooth/
H A DIBluetoothHeadsetPhone.aidl38 void cdmaSetSecondCallState(boolean state);
/frameworks/base/core/java/android/os/
H A DSystemService.java42 State(String state) { argument
43 sStates.put(state, this);
76 * Return current state of given service.
80 final State state = sStates.get(rawState);
81 if (state != null) {
82 return state;
103 * Wait until given service has entered specific state.
105 public static void waitForState(String service, State state, long timeoutMillis) argument
111 if (state.equals(currentState)) {
117 + "; waited " + timeoutMillis + "ms for " + state);
[all...]
/frameworks/compile/mclinker/lib/LD/
H A DMsgHandler.cpp33 m_Engine.state().ArgumentKinds[m_NumArgs] = DiagnosticEngine::ak_std_string;
34 m_Engine.state().ArgumentStrs[m_NumArgs++] = pStr.data();
41 m_Engine.state().ArgumentKinds[m_NumArgs] = DiagnosticEngine::ak_std_string;
42 m_Engine.state().ArgumentStrs[m_NumArgs++] = pStr;
49 m_Engine.state().ArgumentKinds[m_NumArgs] = pKind;
50 m_Engine.state().ArgumentVals[m_NumArgs++] = pValue;
/frameworks/ex/camera2/portability/src/com/android/ex/camera2/portability/
H A DCameraStateHolder.java28 public CameraStateHolder(int state) { argument
29 setState(state);
32 public synchronized void setState(int state) { argument
33 if (mState != state) {
34 Log.v(TAG, "setState - state = " + Integer.toBinaryString(state));
36 mState = state;
56 * @param stateChecker The state checker to be used.
81 * Block the current thread until the state becomes one of the
99 * Block the current thread until the state become
[all...]
/frameworks/rs/driver/
H A DrsdMeshObj.cpp55 RsDataType dt = elem->mHal.state.fields[fieldIdx]->mHal.state.dataType;
63 uint32_t arraySize = elem->mHal.state.fieldArraySizes[fieldIdx];
77 for (uint32_t ct=0; ct < mRSMesh->mHal.state.vertexBuffersCount; ct++) {
78 const Element *elem = mRSMesh->mHal.state.vertexBuffers[ct]->getType()->getElement();
79 for (uint32_t ct=0; ct < elem->mHal.state.fieldsCount; ct++) {
100 for (uint32_t ct=0; ct < mRSMesh->mHal.state.vertexBuffersCount; ct++) {
101 const Element *elem = mRSMesh->mHal.state.vertexBuffers[ct]->getType()->getElement();
102 uint32_t stride = elem->mHal.state.elementSizeBytes;
103 for (uint32_t fieldI=0; fieldI < elem->mHal.state
[all...]
H A DrsdShader.cpp50 StateBasedKey *state = mStateBasedShaders.itemAt(i); local
51 if (state->mShaderID) {
52 glDeleteShader(state->mShaderID);
54 delete state;
81 for (uint32_t ct = 0; ct < mRSProgram->mHal.state.texturesCount; ct ++) {
83 if (mRSProgram->mHal.state.textureTargets[ct] == RS_TEXTURE_2D) {
84 Allocation *a = mRSProgram->mHal.state.textures[ct];
85 if (a && a->mHal.state.surfaceTextureID) {
103 StateBasedKey *state = getExistingState(); local
104 if (state !
[all...]
/frameworks/av/cmds/stagefright/
H A DSimplePlayer.cpp315 CodecState *state = local
319 state->mNumFramesWritten = 0;
320 state->mCodec = MediaCodec::CreateByType(
323 CHECK(state->mCodec != NULL);
325 err = state->mCodec->configure(
336 state->mCSD.push_back(buffer);
343 CodecState *state = &mStateByTrackIndex.editValueAt(i); local
345 status_t err = state->mCodec->start();
348 err = state->mCodec->getInputBuffers(&state
404 CodecState *state = &mStateByTrackIndex.editValueAt(i); local
423 CodecState *state = &mStateByTrackIndex.editValueAt(i); local
478 CodecState *state = &mStateByTrackIndex.editValueFor(trackIndex); local
519 CodecState *state = &mStateByTrackIndex.editValueAt(i); local
571 onOutputFormatChanged( size_t trackIndex, CodecState *state) argument
602 renderAudio( CodecState *state, BufferInfo *info, const sp<ABuffer> &buffer) argument
[all...]
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/
H A DFlashlightTile.java73 protected void handleUpdateState(BooleanState state, Object arg) { argument
74 if (state.value) {
79 state.value = (Boolean) arg;
82 if (!state.value && mWasLastOn != 0) {
93 state.visible = mWasLastOn != 0 || mFlashlightController.isAvailable();
94 state.label = mHost.getContext().getString(R.string.quick_settings_flashlight_label);
95 state.iconId = state.value
97 int onOrOffId = state.value
100 state
[all...]
H A DHotspotTile.java68 protected void handleUpdateState(BooleanState state, Object arg) { argument
69 state.visible = mController.isHotspotSupported() && mUsageTracker.isRecentlyUsed()
71 state.label = mContext.getString(R.string.quick_settings_hotspot_label);
73 state.value = mController.isHotspotEnabled();
74 state.iconId = state.visible && state.value ? R.drawable.ic_qs_hotspot_on
95 * This will catch broadcasts for changes in hotspot state so we can show
/frameworks/av/media/libstagefright/codecs/amrnb/enc/src/
H A Dgain_q.cpp135 Allocates state memory and initializes state memory
174 Word16 gainQuant_init(gainQuantState **state) argument
178 if (state == (gainQuantState **) NULL)
183 *state = NULL;
188 /* fprintf(stderr, "gainQuant_init: can not malloc state structure\n"); */
206 *state = s;
236 Initializes state memory to zero
274 Word16 gainQuant_reset(gainQuantState *state) argument
277 if (state
361 gainQuant_exit(gainQuantState **state) argument
[all...]
H A Dton_stab.cpp104 state = pointer to pointer to structure type tonStabState.
122 Purpose: Allocates state memory and initializes state memory
137 int ton_stab_init (tonStabState **state)
141 if (state == (tonStabState **) NULL){
145 *state = NULL;
149 // fprintf(stderr, "ton_stab_init: can not malloc state structure\n");
155 *state = s;
184 Word16 ton_stab_init(tonStabState **state) argument
188 if (state
381 ton_stab_exit(tonStabState **state) argument
[all...]
/frameworks/base/core/java/android/view/
H A DInputEventConsistencyVerifier.java74 // Linked list of key state objects.
77 // Current state of the trackball.
140 * Resets the state of the input event consistency verifier.
153 final KeyState state = mKeyStateList;
154 mKeyStateList = state.next;
155 state.recycle();
207 KeyState state = findKeyState(deviceId, source, keyCode, /*remove*/ false);
208 if (state != null) {
213 if (state.unhandled) {
214 state
[all...]
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/stack/
H A DStackScrollState.java34 * A state of a {@link com.android.systemui.statusbar.stack.NotificationStackScrollLayout} which
90 ViewState state = mStateMap.get(child);
91 if (state == null) {
92 Log.wtf(CHILD_NOT_FOUND_TAG, "No child state was found when applying this state " +
96 if (!state.gone) {
103 float newAlpha = state.alpha;
104 float newYTranslation = state.yTranslation;
105 float newZTranslation = state.zTranslation;
106 float newScale = state
206 performSpeedBumpAnimation(int i, SpeedBumpView speedBump, ViewState state, long delay) argument
[all...]
/frameworks/base/core/java/android/content/
H A DUndoManager.java28 * Top-level class for managing and interacting with the global undo state for
34 * a stack of undo states; each state can have one or more undo operations
72 * Never merge with the last undo state.
77 * Allow merge with the last undo state only if it contains
83 * Always allow merge with the last undo state, if possible.
122 * Flatten the current undo state into a Parcelable object, which can later be restored
127 throw new IllegalStateException("Can't save state while updating");
170 * Restore an undo state previously created with {@link #saveInstanceState()}. This will
171 * restore the UndoManager's state to almost exactly what it was at the point it had
176 public void restoreInstanceState(Parcelable state) { argument
674 matchOwners(UndoState state, UndoOwner[] owners) argument
798 setCanMerge(boolean state) argument
[all...]
/frameworks/base/core/java/android/util/
H A DBase64.java82 * this object. Will finalize the coder state and
233 * State 6 is the error state; an error has been detected
236 private int state; // state number (0 to 6) field in class:Base64.Decoder
245 state = 0;
260 * @return true if the state machine is still healthy. false if
264 if (this.state == 6) return false;
274 int state = this.state;
295 if (state
[all...]
/frameworks/base/core/java/android/printservice/
H A DPrintJob.java27 * service. It provides APIs for observing the print job state and
65 * current print job state. Every call to this method returns a fresh
66 * info object that reflects the current print job state.
144 * is successfully printed. This is a final state.
157 * not successfully printed due to an error. This is a final state.
170 * cancelled as a result of a user request. This is a final state.
193 final int state = getInfo().getState();
194 if (state == PrintJobInfo.STATE_QUEUED
195 || state == PrintJobInfo.STATE_BLOCKED) {
216 final int state
377 setState(int state, String error) argument
[all...]
/frameworks/base/graphics/java/android/graphics/drawable/
H A DNinePatchDrawable.java406 * Updates the constant state from the values in the typed array.
410 final NinePatchState state = mNinePatchState;
413 state.mChangingConfigurations |= a.getChangingConfigurations();
416 state.mThemeAttrs = a.extractThemeAttrs();
418 state.mDither = a.getBoolean(R.styleable.NinePatchDrawable_dither, state.mDither);
423 options.inDither = !state.mDither;
451 state.mNinePatch = new NinePatch(bitmap, bitmap.getNinePatchChunk());
452 state.mPadding = padding;
453 state
622 NinePatchState(@onNull NinePatchState state) argument
672 NinePatchDrawable(NinePatchState state, Resources res, Theme theme) argument
687 initializeWithState(NinePatchState state, Resources res) argument
[all...]
/frameworks/base/libs/hwui/
H A DDeferredDisplayList.cpp70 virtual void add(DrawOp* op, const DeferredDisplayState* state, bool opaqueOverBounds) { argument
72 mBounds.unionWith(state->mBounds);
74 mOps.add(OpStatePair(op, state));
81 if (rect.intersects(mOps[i].state->mBounds)) {
84 mOps[i].state->mBounds.left, mOps[i].state->mBounds.top,
85 mOps[i].state->mBounds.right, mOps[i].state->mBounds.bottom);
102 const DeferredDisplayState* state = mOps[i].state; local
184 canMergeWith(const DrawOp* op, const DeferredDisplayState* state) argument
261 add(DrawOp* op, const DeferredDisplayState* state, bool opaqueOverBounds) argument
314 StateOpBatch(const StateOp* op, const DeferredDisplayState* state) argument
335 RestoreToCountBatch(const StateOp* op, const DeferredDisplayState* state, int restoreCount) argument
502 DeferredDisplayState* const state = createState(); local
628 DeferredDisplayState* state = createState(); local
641 DeferredDisplayState* state = createState(); local
[all...]
/frameworks/rs/
H A DrsType.h55 State state; member in struct:android::renderscript::Type::Hal
68 uint32_t getDimX() const {return mHal.state.dimX;}
69 uint32_t getDimY() const {return mHal.state.dimY;}
70 uint32_t getDimZ() const {return mHal.state.dimZ;}
72 bool getDimFaces() const {return mHal.state.faces;}
73 uint32_t getDimYuv() const {return mHal.state.dimYuv;}
76 rsAssert(lod < mHal.state.lodCount);
77 return mHal.state.lodDimX[lod];
80 rsAssert(lod < mHal.state.lodCount);
81 return mHal.state
[all...]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
H A DHardwareConfig.java53 * hardware state of the resource.
78 * state - see DEV_HARDWARE_STATE_
82 public int state; field in class:HardwareConfig
130 Integer.parseInt(split[2]), /* state */
142 Integer.parseInt(split[2]), /* state */
150 public void assignModem(String id, int state, int model, int ratBits, argument
155 state = state;
167 public void assignSim(String id, int state, String link) { argument
171 state
[all...]
/frameworks/support/v7/recyclerview/src/android/support/v7/widget/
H A DScrollbarHelper.java29 static int computeScrollOffset(RecyclerView.State state, OrientationHelper orientation, argument
32 if (lm.getChildCount() == 0 || state.getItemCount() == 0 || startChild == null ||
39 ? Math.max(0, state.getItemCount() - maxPosition - 1)
57 static int computeScrollExtent(RecyclerView.State state, OrientationHelper orientation, argument
60 if (lm.getChildCount() == 0 || state.getItemCount() == 0 || startChild == null ||
76 static int computeScrollRange(RecyclerView.State state, OrientationHelper orientation, argument
79 if (lm.getChildCount() == 0 || state.getItemCount() == 0 || startChild == null ||
84 return state.getItemCount();
92 return (int) ((float) laidOutArea / laidOutRange * state.getItemCount());
H A DLinearLayoutManager.java66 * Helper class that keeps temporary layout state.
67 * It does not keep state after layout is complete but we still keep a reference to re-use
218 SavedState state = new SavedState();
221 state.mAnchorLayoutFromEnd = didLayoutFromEnd;
224 state.mAnchorOffset = mOrientationHelper.getEndAfterPadding() -
226 state.mAnchorPosition = getPosition(refChild);
229 state.mAnchorPosition = getPosition(refChild);
230 state.mAnchorOffset = mOrientationHelper.getDecoratedStart(refChild) -
234 state.invalidateAnchor();
236 return state;
240 onRestoreInstanceState(Parcelable state) argument
390 getExtraLayoutSpace(RecyclerView.State state) argument
399 smoothScrollToPosition(RecyclerView recyclerView, RecyclerView.State state, int position) argument
430 onLayoutChildren(RecyclerView.Recycler recycler, RecyclerView.State state) argument
578 onAnchorReady(RecyclerView.State state, AnchorInfo anchorInfo) argument
584 layoutForPredictiveAnimations(RecyclerView.Recycler recycler, RecyclerView.State state, int startOffset, int endOffset) argument
637 updateAnchorInfoForLayout(RecyclerView.State state, AnchorInfo anchorInfo) argument
664 updateAnchorFromChildren(RecyclerView.State state, AnchorInfo anchorInfo) argument
708 updateAnchorFromPendingData(RecyclerView.State state, AnchorInfo anchorInfo) argument
792 fixLayoutEndGap(int endOffset, RecyclerView.Recycler recycler, RecyclerView.State state, boolean canOffsetChildren) argument
817 fixLayoutStartGap(int startOffset, RecyclerView.Recycler recycler, RecyclerView.State state, boolean canOffsetChildren) argument
939 scrollHorizontallyBy(int dx, RecyclerView.Recycler recycler, RecyclerView.State state) argument
951 scrollVerticallyBy(int dy, RecyclerView.Recycler recycler, RecyclerView.State state) argument
960 computeHorizontalScrollOffset(RecyclerView.State state) argument
965 computeVerticalScrollOffset(RecyclerView.State state) argument
970 computeHorizontalScrollExtent(RecyclerView.State state) argument
975 computeVerticalScrollExtent(RecyclerView.State state) argument
980 computeHorizontalScrollRange(RecyclerView.State state) argument
985 computeVerticalScrollRange(RecyclerView.State state) argument
989 computeScrollOffset(RecyclerView.State state) argument
998 computeScrollExtent(RecyclerView.State state) argument
1007 computeScrollRange(RecyclerView.State state) argument
1048 updateLayoutState(int layoutDirection, int requiredSpace, boolean canUseExistingSpace, RecyclerView.State state) argument
1083 scrollBy(int dy, RecyclerView.Recycler recycler, RecyclerView.State state) argument
1250 fill(RecyclerView.Recycler recycler, LayoutState layoutState, RecyclerView.State state, boolean stopOnFocusable) argument
1300 layoutChunk(RecyclerView.Recycler recycler, RecyclerView.State state, LayoutState layoutState, LayoutChunkResult result) argument
1442 findReferenceChildClosestToEnd(RecyclerView.State state) argument
1458 findReferenceChildClosestToStart(RecyclerView.State state) argument
1596 onFocusSearchFailed(View focused, int focusDirection, RecyclerView.Recycler recycler, RecyclerView.State state) argument
1789 hasMore(RecyclerView.State state) argument
1946 assignFromViewIfValid(View child, RecyclerView.State state) argument
[all...]
/frameworks/base/telecomm/java/android/telecom/
H A DVideoProfile.java55 * @param videoState The video state.
64 * @param videoState The video state.
73 * The video state of the call.
106 int state = source.readInt();
110 return new VideoProfile(state, quality);
145 * The video state of the call, stored as a bit-field describing whether video transmission and
175 * Whether the video state is audio only.
176 * @param videoState The video state.
177 * @return Returns true if the video state is audio only.
185 * @param videoState The video state
227 hasState(int videoState, int state) argument
[all...]
/frameworks/rs/driver/runtime/
H A Drs_sampler.c13 return prog->mHal.state.minFilter;
22 return prog->mHal.state.magFilter;
31 return prog->mHal.state.wrapS;
40 return prog->mHal.state.wrapT;
49 return prog->mHal.state.aniso;
/frameworks/base/media/mca/filterfw/java/android/filterfw/io/
H A DTextGraphReader.java199 int state = STATE_COMMAND;
210 switch (state) {
214 state = STATE_IMPORT_PKG;
216 state = STATE_ADD_LIBRARY;
218 state = STATE_FILTER_CLASS;
220 state = STATE_SOURCE_FILTERNAME;
222 state = STATE_ASSIGNMENT;
224 state = STATE_EXTERNAL;
226 state = STATE_SETTING;
236 state
[all...]

Completed in 699 milliseconds

1234567891011>>