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

1234567891011>>

/frameworks/rs/driver/
H A DrsdFrameBuffer.cpp36 if (fb->mHal.state.depthTarget != nullptr) {
37 depth = (DrvAllocation *)fb->mHal.state.depthTarget->mHal.drv;
40 rsdAllocationSyncAll(rsc, fb->mHal.state.depthTarget,
50 for (uint32_t i = 0; i < fb->mHal.state.colorTargetsCount; i ++) {
52 if (fb->mHal.state.colorTargets[i] != nullptr) {
53 color = (DrvAllocation *)fb->mHal.state.colorTargets[i]->mHal.drv;
56 rsdAllocationSyncAll(rsc, fb->mHal.state.colorTargets[i],
82 if (fb->mHal.state.colorTargets[0]) {
83 fbo->setDimensions(fb->mHal.state.colorTargets[0]->getType()->getDimX(),
84 fb->mHal.state
[all...]
/frameworks/base/graphics/java/android/graphics/drawable/
H A DColorDrawable.java197 final ColorState state = mColorState;
198 if (state.mTint != null && state.mTintMode != null) {
199 mTintFilter = updateTintFilter(mTintFilter, state.mTint, state.mTintMode);
244 * Updates the constant state from the values in the typed array.
247 final ColorState state = mColorState;
250 state.mChangingConfigurations |= a.getChangingConfigurations();
253 state.mThemeAttrs = a.extractThemeAttrs();
255 state
304 ColorState(ColorState state) argument
336 ColorDrawable(ColorState state, Resources res) argument
[all...]
H A DInsetDrawable.java116 final InsetState state = mState;
117 if (state == null) {
121 if (state.mThemeAttrs != null) {
122 final TypedArray a = t.resolveAttributes(state.mThemeAttrs, R.styleable.InsetDrawable);
145 final InsetState state = mState;
146 if (state == null) {
151 state.mChangingConfigurations |= a.getChangingConfigurations();
154 state.mThemeAttrs = a.extractThemeAttrs();
159 state.mInsetLeft = inset;
160 state
321 InsetDrawable(@onNull InsetState state, @Nullable Resources res) argument
[all...]
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/
H A DHotspotTile.java116 protected void handleUpdateState(AirplaneBooleanState state, Object arg) { argument
117 state.label = mContext.getString(R.string.quick_settings_hotspot_label);
119 checkIfRestrictionEnforcedByAdminOnly(state, UserManager.DISALLOW_CONFIG_TETHERING);
121 state.value = (boolean) arg;
123 state.value = mController.isHotspotEnabled();
125 state.icon = state.value ? mEnable : mDisable;
126 boolean wasAirplane = state.isAirplaneMode;
127 state.isAirplaneMode = mAirplaneMode.getValue() != 0;
128 if (state
[all...]
H A DWorkModeTile.java92 protected void handleUpdateState(BooleanState state, Object arg) { argument
94 state.value = (Boolean) arg;
96 state.value = mProfileController.isWorkModeEnabled();
99 state.label = mContext.getString(R.string.quick_settings_work_mode_label);
100 if (state.value) {
101 state.icon = mEnable;
102 state.contentDescription = mContext.getString(
105 state.icon = mDisable;
106 state.contentDescription = mContext.getString(
109 state
[all...]
/frameworks/ex/camera2/public/src/com/android/ex/camera2/utils/
H A DStateWaiter.java31 * Block until a specific state change occurs.
33 * <p>Provides wait calls that block until the next unobserved state of the
58 * Create a new state waiter.
60 * <p>All {@code state}/{@code states} arguments used in other methods must be
72 public void onStateChanged(int state) {
73 queueStateTransition(checkStateInRange(state));
83 * Wait until the desired state is observed, checking all state
84 * transitions since the last time a state was waited on.
86 * <p>Any intermediate state transition
97 waitForState(int state, long timeoutMs) argument
173 getStateName(int state) argument
194 queueStateTransition(int state) argument
204 checkStateInRange(int state) argument
[all...]
/frameworks/support/v17/leanback/src/android/support/v17/leanback/util/
H A DStateMachine.java37 * Somebody wants to run the state but not yet executed because either the condition is
80 void addPriorState(State state) { argument
84 if (!mPriorStates.contains(state)) {
85 mPriorStates.add(state);
119 * @param state The state to add.
121 public void addState(State state) { argument
122 if (!mSortedList.contains(state)) {
123 state.updateStatus(STATUS_ZERO);
124 mSortedList.add(state);
148 runState(State state) argument
[all...]
/frameworks/av/cmds/stagefright/
H A Dcodec.cpp116 CodecState *state = local
119 state->mNumBytesDecoded = 0;
120 state->mNumBuffersDecoded = 0;
121 state->mIsAudio = isAudio;
123 state->mCodec = MediaCodec::CreateByType(
126 CHECK(state->mCodec != NULL);
128 err = state->mCodec->configure(
135 state->mSignalledInputEOS = false;
136 state->mSawOutputEOS = false;
145 CodecState *state local
169 CodecState *state = &stateByTrack.editValueFor(trackIndex); local
204 CodecState *state = &stateByTrack.editValueAt(i); local
233 CodecState *state = &stateByTrack.editValueAt(i); local
245 CodecState *state = &stateByTrack.editValueAt(i); local
311 CodecState *state = &stateByTrack.editValueAt(i); local
[all...]
/frameworks/base/media/jni/
H A Dandroid_media_AmrInputStream.cpp63 GsmAmrEncoderState *state = (GsmAmrEncoderState *) gae; local
64 int32_t nResult = AMREncodeInit(&state->mEncState, &state->mSidState, false);
79 GsmAmrEncoderState *state = (GsmAmrEncoderState *) gae; local
80 int32_t length = AMREncode(state->mEncState, state->mSidState,
84 (Frame_Type_3GPP*) &state->mLastModeUsed,
109 GsmAmrEncoderState *state = (GsmAmrEncoderState *) gae; local
110 AMREncodeExit(&state->mEncState, &state
[all...]
/frameworks/base/telecomm/java/android/telecom/
H A DAudioState.java26 * Encapsulates the telecom audio state, including the current audio routing, supported audio
66 public AudioState(AudioState state) { argument
67 isMuted = state.isMuted();
68 route = state.getRoute();
69 supportedRouteMask = state.getSupportedRouteMask();
72 public AudioState(CallAudioState state) { argument
73 isMuted = state.isMuted();
74 route = state.getRoute();
75 supportedRouteMask = state.getSupportedRouteMask();
86 AudioState state
[all...]
H A DCallAudioState.java25 * Encapsulates the telecom audio state, including the current audio routing, supported audio
79 public CallAudioState(CallAudioState state) { argument
80 isMuted = state.isMuted();
81 route = state.getRoute();
82 supportedRouteMask = state.getSupportedRouteMask();
87 public CallAudioState(AudioState state) { argument
88 isMuted = state.isMuted();
89 route = state.getRoute();
90 supportedRouteMask = state.getSupportedRouteMask();
101 CallAudioState state
[all...]
/frameworks/av/media/libstagefright/codecs/amrnb/dec/src/
H A Dlsp_avg.h118 lsp_avgState *state
H A Dpost_pro.cpp141 state = pointer to a structure of type Post_ProcessState
144 structure pointed to by state will have all its fields initialized
159 This function initializes state memory to zero.
174 int Post_Process_reset (Post_ProcessState *state)
176 if (state == (Post_ProcessState *) NULL){
181 state->y2_hi = 0;
182 state->y2_lo = 0;
183 state->y1_hi = 0;
184 state->y1_lo = 0;
185 state
213 Post_Process_reset(Post_ProcessState *state) argument
[all...]
/frameworks/base/core/java/android/os/storage/
H A DOnObbStateChangeListener.java80 * @param path path to the OBB file the state change has happened on
81 * @param state the current state of the OBB
83 public void onObbStateChange(String path, int state) { argument
/frameworks/base/core/tests/coretests/src/android/util/
H A DStateSetTest.java39 // Add another state to the spec which the stateSet doesn't match
45 // Add an irrelevent state to the stateSpec
63 // Add another matching state to the the stateSet. We still fail
80 // Add another arrelevent state to the stateSet
86 // Add another state to the spec which the stateSet doesn't match
89 // Add an irrelevent state to the stateSet
124 int state;
127 state = 1;
128 assertTrue(StateSet.stateSetMatches(stateSpec, state));
130 state
[all...]
/frameworks/base/libs/hwui/tests/microbench/
H A DDisplayListCanvasBench.cpp135 CanvasState state(client);
136 state.initializeSaveStack(100, 100, 0, 0, 100, 100, Vector3());
139 state.save(SaveFlags::MatrixClip);
140 state.save(SaveFlags::MatrixClip);
141 benchmark::DoNotOptimize(&state);
142 state.restore();
143 state.restore();
150 CanvasState state(client);
151 state.initializeSaveStack(100, 100, 0, 0, 100, 100, Vector3());
154 state
[all...]
H A DFrameBuilderBench.cpp61 void BM_FrameBuilder_defer(benchmark::State& state) { argument
62 TestUtils::runOnRenderThread([&state](RenderThread& thread) {
64 while (state.KeepRunning()) {
74 void BM_FrameBuilder_deferAndRender(benchmark::State& state) { argument
75 TestUtils::runOnRenderThread([&state](RenderThread& thread) {
81 while (state.KeepRunning()) {
114 void BM_FrameBuilder_defer_scene(benchmark::State& state) { argument
115 TestUtils::runOnRenderThread([&state](RenderThread& thread) {
116 const char* sceneName = *(SCENES.begin() + state.range_x());
117 state
130 BM_FrameBuilder_deferAndRender_scene(benchmark::State& state) argument
[all...]
H A DPathParserBench.cpp29 void BM_PathParser_parseStringPathForSkPath(benchmark::State& state) { argument
33 while (state.KeepRunning()) {
41 void BM_PathParser_parseStringPathForPathData(benchmark::State& state) { argument
45 while (state.KeepRunning()) {
/frameworks/rs/driver/runtime/
H A Drs_element.c13 return element->mHal.state.fieldsCount;
19 if (element == NULL || index >= element->mHal.state.fieldsCount) {
23 rs_element returnElem = {element->mHal.state.fields[index]};
32 if (element == NULL || index >= element->mHal.state.fieldsCount) {
35 return element->mHal.state.fieldNameLengths[index];
41 if (element == NULL || index >= element->mHal.state.fieldsCount ||
46 uint32_t numToCopy = element->mHal.state.fieldNameLengths[index];
53 const char *nameSource = element->mHal.state.fieldNames[index];
63 if (element == NULL || index >= element->mHal.state.fieldsCount) {
66 return element->mHal.state
[all...]
H A Drs_program.c16 return prog->mHal.state.depthFunc;
25 return prog->mHal.state.depthWriteEnable;
34 return prog->mHal.state.colorRWriteEnable;
43 return prog->mHal.state.colorGWriteEnable;
52 return prog->mHal.state.colorBWriteEnable;
61 return prog->mHal.state.colorAWriteEnable;
70 return prog->mHal.state.blendSrc;
79 return prog->mHal.state.blendDst;
88 return prog->mHal.state.ditherEnable;
100 return prog->mHal.state
[all...]
H A Drs_mesh.c16 return mesh->mHal.state.vertexBuffersCount;
25 return mesh->mHal.state.primitivesCount;
31 if (mesh == NULL || index >= mesh->mHal.state.vertexBuffersCount) {
35 rs_allocation returnAlloc = {mesh->mHal.state.vertexBuffers[index]};
44 if (mesh == NULL || index >= mesh->mHal.state.primitivesCount) {
48 rs_allocation returnAlloc = {mesh->mHal.state.indexBuffers[index]};
57 if (mesh == NULL || index >= mesh->mHal.state.primitivesCount) {
60 return mesh->mHal.state.primitives[index];
/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/base/core/java/android/print/
H A DPrintJob.java27 * on it as well as methods for querying its state. A snapshot of the
28 * print job state is represented by the {@link PrintJobInfo} class.
29 * The state of a print job may change over time. An application receives
57 * current print job state. Every call to this method returns a fresh
58 * info object that reflects the current print job state.
84 final int state = getInfo().getState();
85 if (state == PrintJobInfo.STATE_QUEUED
86 || state == PrintJobInfo.STATE_STARTED
87 || state == PrintJobInfo.STATE_BLOCKED
88 || state
[all...]
/frameworks/base/services/core/java/com/android/server/pm/
H A DIntentFilterVerificationState.java53 public void setState(int state) { argument
54 if (state > STATE_VERIFICATION_FAILURE || state < STATE_UNDEFINED) {
57 mState = state;
106 int state = STATE_UNDEFINED;
108 state = STATE_VERIFICATION_SUCCESS;
110 state = STATE_VERIFICATION_FAILURE;
113 setState(state);

Completed in 4310 milliseconds

1234567891011>>