/frameworks/rs/ |
H A D | rsProgramVertex.cpp | 38 void ProgramVertex::setup(Context *rsc, ProgramVertexState *state) { argument 39 if ((state->mLast.get() == this) && !mDirty) { 44 if (mHal.state.constants[0] == nullptr) { 50 rsc, mHal.state.constants[0])); 59 rsc->mHal.funcs.allocation.unlock1D(rsc, mHal.state.constants[0]); 62 state->mLast.set(this); 73 if (mHal.state.constants[0] == nullptr) { 79 rsc, mHal.state.constants[0])); 82 rsc->mHal.funcs.allocation.unlock1D(rsc, mHal.state.constants[0]); 91 if (mHal.state [all...] |
/frameworks/support/v7/appcompat/src/android/support/v7/app/ |
H A D | TwilightCalculator.java | 37 /** Value of {@link #state} if it is currently day */ 40 /** Value of {@link #state} if it is currently night */ 74 * Current state 76 public int state; field in class:TwilightCalculator 114 state = NIGHT; 119 state = DAY; 131 state = DAY; 133 state = NIGHT;
|
/frameworks/base/graphics/java/android/graphics/drawable/ |
H A D | ClipDrawable.java | 103 final ClipState state = mState; 104 if (state == null) { 108 if (state.mThemeAttrs != null) { 109 final TypedArray a = t.resolveAttributes(state.mThemeAttrs, R.styleable.ClipDrawable); 132 final ClipState state = mState; 133 if (state == null) { 138 state.mChangingConfigurations |= a.getChangingConfigurations(); 141 state.mThemeAttrs = a.extractThemeAttrs(); 143 state.mOrientation = a.getInt( 144 R.styleable.ClipDrawable_clipOrientation, state 234 ClipDrawable(ClipState state, Resources res) argument [all...] |
H A D | BitmapDrawable.java | 434 final BitmapState state = mBitmapState; 435 if (state.mTileModeX != xmode || state.mTileModeY != ymode) { 436 state.mTileModeX = xmode; 437 state.mTileModeY = ymode; 438 state.mRebuildShader = true; 484 final BitmapState state = mBitmapState; 485 final Paint paint = state.mPaint; 486 if (state.mRebuildShader) { 487 final Shader.TileMode tmx = state 988 BitmapDrawable(BitmapState state, Resources res) argument [all...] |
/frameworks/base/core/java/android/view/ |
H A D | InputEventConsistencyVerifier.java | 74 // Linked list of key state objects. 77 // Current state of the trackball. 143 * Resets the state of the input event consistency verifier. 157 final KeyState state = mKeyStateList; 158 mKeyStateList = state.next; 159 state.recycle(); 211 KeyState state = findKeyState(deviceId, source, keyCode, /*remove*/ false); 212 if (state != null) { 217 if (state.unhandled) { 218 state [all...] |
/frameworks/base/services/core/java/com/android/server/input/ |
H A D | PersistentDataStore.java | 58 * Manages persistent state recorded by the input manager service as an XML file. 63 * <input-mananger-state> 67 * >/input-manager-state> 73 // Input device state by descriptor. 85 mAtomicFile = new AtomicFile(new File("/data/system/input-manager-state.xml")); 96 InputDeviceState state = getInputDeviceState(inputDeviceDescriptor, false); 97 if (state == null) { 101 TouchCalibration cal = state.getTouchCalibration(surfaceRotation); 109 InputDeviceState state = getInputDeviceState(inputDeviceDescriptor, true); 111 if (state [all...] |
/frameworks/support/v7/recyclerview/tests/src/android/support/v7/widget/ |
H A D | BaseRecyclerViewAnimationsTest.java | 117 private String prepareLog(RecyclerView.Recycler recycler, RecyclerView.State state, boolean done) { argument 119 builder.append("is pre layout:").append(state.isPreLayout()).append(", done:").append(done); 129 if (state.isPreLayout() && !done) { 149 RecyclerView.State state) { 152 prepareLog(recycler, state, false); 153 if (state.isPreLayout()) { 154 validateOldPositions(recycler, state); 156 validateClearedOldPositions(recycler, state); 158 mOnLayoutCallbacks.onLayoutChildren(recycler, this, state); 159 prepareLog(recycler, state, tru 148 onLayoutChildren(RecyclerView.Recycler recycler, RecyclerView.State state) argument 165 validateClearedOldPositions(RecyclerView.Recycler recycler, RecyclerView.State state) argument 178 validateOldPositions(RecyclerView.Recycler recycler, RecyclerView.State state) argument 201 scrollVerticallyBy(int dy, RecyclerView.Recycler recycler, RecyclerView.State state) argument 239 beforePreLayout(RecyclerView.Recycler recycler, AnimationLayoutManager lm, RecyclerView.State state) argument 250 doLayout(RecyclerView.Recycler recycler, AnimationLayoutManager lm, RecyclerView.State state) argument 286 onLayoutChildren(RecyclerView.Recycler recycler, AnimationLayoutManager lm, RecyclerView.State state) argument 314 afterPreLayout(RecyclerView.Recycler recycler, AnimationLayoutManager layoutManager, RecyclerView.State state) argument 318 beforePostLayout(RecyclerView.Recycler recycler, AnimationLayoutManager layoutManager, RecyclerView.State state) argument 322 afterPostLayout(RecyclerView.Recycler recycler, AnimationLayoutManager layoutManager, RecyclerView.State state) argument 329 onScroll(int dx, RecyclerView.Recycler recycler, RecyclerView.State state) argument 593 validate(RecyclerView.State state, CollectPositionResult result, String log) argument [all...] |
/frameworks/av/cmds/stagefright/ |
H A D | mediafilter.cpp | 348 CodecState *state = local 351 vidState = state; 353 state->mNumBuffersDecoded = 0; 355 state->mCodec = MediaCodec::CreateByType( 358 CHECK(state->mCodec != NULL); 360 err = state->mCodec->configure( 365 state->mSignalledInputEOS = false; 366 state->mSawOutputEOS = false; 472 CodecState *state = &stateByTrack.editValueAt(i); local 474 sp<MediaCodec> codec = state 527 CodecState *state = &stateByTrack.editValueFor(trackIndex); local 559 CodecState *state = &stateByTrack.editValueAt(i); local 585 CodecState *state = &stateByTrack.editValueAt(i); local 647 CodecState *state = &stateByTrack.editValueAt(i); local [all...] |
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/ |
H A D | AirplaneModeTile.java | 85 protected void handleUpdateState(BooleanState state, Object arg) { argument 88 state.value = airplaneMode; 89 state.label = mContext.getString(R.string.airplane_mode); 91 state.icon = mEnable; 93 state.icon = mDisable; 95 state.contentDescription = state.label; 96 state.minimalAccessibilityClassName = state.expandedAccessibilityClassName
|
H A D | DataSaverTile.java | 96 protected void handleUpdateState(BooleanState state, Object arg) { argument 97 state.value = arg instanceof Boolean ? (Boolean) arg 99 state.label = mContext.getString(R.string.data_saver); 100 state.contentDescription = state.label; 101 state.icon = ResourceIcon.get(state.value ? R.drawable.ic_data_saver 103 state.minimalAccessibilityClassName = state.expandedAccessibilityClassName
|
H A D | RotationLockTile.java | 90 protected void handleUpdateState(BooleanState state, Object arg) { argument 95 state.value = !rotationLocked; 100 state.label = mContext.getString(label); 101 state.icon = portrait ? mAutoToPortrait : mAutoToLandscape; 103 state.label = mContext.getString(R.string.quick_settings_rotation_unlocked_label); 104 state.icon = portrait ? mPortraitToAuto : mLandscapeToAuto; 106 state.contentDescription = getAccessibilityString(rotationLocked); 107 state.minimalAccessibilityClassName = state.expandedAccessibilityClassName 129 * Get the correct accessibility string based on the state [all...] |
/frameworks/ex/camera2/public/src/com/android/ex/camera2/blocking/ |
H A D | BlockingStateCallback.java | 32 * A camera device listener that implements blocking operations on state changes. 34 * <p>Provides wait calls that block until the next unobserved state of the 55 private void setCurrentState(int state) { argument 56 if (VERBOSE) Log.v(TAG, "Camera device state now " + stateToString(state)); 58 mRecentStates.put(state); 60 throw new RuntimeException("Unable to set device state", e); 73 * Device has not reported any state yet 78 * Device is in the first-opened state (transitory) 143 * Wait until the desired state i 153 waitForState(int state, long timeout) argument 222 stateToString(int state) argument [all...] |
/frameworks/av/media/libstagefright/codecs/amrnb/dec/src/ |
H A D | dec_amr.cpp | 117 state = pointer to a pointer to structures of type Decoder_amrState 120 structure pointed to by the pointer which is pointed to by state is 123 state pointer points to the address of the memory allocated by 138 This function allocates and initializes state memory used by the Decoder_amr 139 function. It stores the pointer to the filter status structure in state. This 156 int Decoder_amr_init (Decoder_amrState **state) 161 if (state == (Decoder_amrState **) NULL){ 165 *state = NULL; 169 fprintf(stderr, "Decoder_amr_init: can not malloc state structure\n"); 200 *state 395 Decoder_amr_reset(Decoder_amrState *state, enum Mode mode) argument [all...] |
/frameworks/base/core/jni/ |
H A D | android_view_VelocityTracker.cpp | 152 VelocityTrackerState* state = reinterpret_cast<VelocityTrackerState*>(ptr); local 153 delete state; 157 VelocityTrackerState* state = reinterpret_cast<VelocityTrackerState*>(ptr); local 158 state->clear(); 169 VelocityTrackerState* state = reinterpret_cast<VelocityTrackerState*>(ptr); local 170 state->addMovement(event); 175 VelocityTrackerState* state = reinterpret_cast<VelocityTrackerState*>(ptr); local 176 state->computeCurrentVelocity(units, maxVelocity); 181 VelocityTrackerState* state = reinterpret_cast<VelocityTrackerState*>(ptr); local 183 state 189 VelocityTrackerState* state = reinterpret_cast<VelocityTrackerState*>(ptr); local 197 VelocityTrackerState* state = reinterpret_cast<VelocityTrackerState*>(ptr); local [all...] |
/frameworks/base/services/core/java/com/android/server/display/ |
H A D | DisplayPowerState.java | 32 * Controls the display power state. 37 * This mechanism enables multiple properties of the display power state to be animated 81 // so prepare to set it to a known state when the state is next applied. 123 public void setScreenState(int state) { argument 124 if (mScreenState != state) { 126 Slog.d(TAG, "setScreenState: state=" + state); 129 mScreenState = state; 136 * Gets the desired screen state 358 setState(int state, int backlight) argument [all...] |
/frameworks/base/telephony/java/com/android/internal/telephony/ |
H A D | ITelephonyRegistry.aidl | 39 void notifyCallState(int state, String incomingNumber); 40 void notifyCallStateForPhoneId(in int phoneId, in int subId, int state, String incomingNumber); 41 void notifyServiceStateForPhoneId(in int phoneId, in int subId, in ServiceState state); 47 void notifyDataActivity(int state); 48 void notifyDataActivityForSubscriber(in int subId, int state); 49 void notifyDataConnection(int state, boolean isDataConnectivityPossible, 52 void notifyDataConnectionForSubscriber(int subId, int state, boolean isDataConnectivityPossible,
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/ |
H A D | SupplicantStateTracker.java | 42 * Tracks the state changes in supplicant and provides functionality 43 * that is based on these state changes: 108 //start the state machine 129 SupplicantState supState = (SupplicantState) stateChangeResult.state; 131 if (DBG) Log.d(TAG, "Supplicant state: " + supState.toString() + "\n"); 164 Log.e(TAG, "Unknown supplicant state " + supState); 169 private void sendSupplicantStateChangedBroadcast(SupplicantState state, boolean failedAuth) { argument 171 switch (state) { 188 Slog.w(TAG, "Unknown supplicant state " + state); [all...] |
/frameworks/opt/telephony/src/java/com/android/internal/telephony/imsphone/ |
H A D | ImsExternalCallTracker.java | 49 * unknown connections, and changes to call state. 63 * Notifies of a change to call state. 71 * external call state updates from the IMS framework. 121 * received from the network. We need to know this because the pull state of a call can be 199 * Handles changes to the phone state as notified by the {@link ImsPhoneCallTracker}. 201 * @param oldState The previous phone state. 202 * @param newState The new phone state. 245 // Check to see if any call Ids are no longer present in the external call state. If they 263 // TelephonyConnection instancse to refresh their state with Telecom. 302 * @param state Externa 304 createExternalConnection(ImsExternalCallState state) argument 344 updateExistingConnection(ImsExternalConnection connection, ImsExternalCallState state) argument [all...] |
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/ |
H A D | QSTileView.java | 94 protected void handleStateChanged(QSTile.State state) { argument 95 super.handleStateChanged(state); 96 if (!Objects.equal(mLabel.getText(), state.label)) { 97 mLabel.setText(state.label); 99 mLabel.setEnabled(!state.disabledByPolicy); 100 mPadLock.setVisibility(state.disabledByPolicy ? View.VISIBLE : View.GONE);
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ |
H A D | DriverCall.java | 36 // If you add a state, make sure to look for the switch() 42 public State state; // May be null if unavail field in class:DriverCall 60 // index,isMT,state,mode,isMpty(,number,TOA)? 66 ret.state = stateFromCLCC(p.nextInt()); 108 + state + "," 120 stateFromCLCC(int state) throws ATParseEx { argument 121 switch(state) { 129 throw new ATParseEx("illegal call state " + state);
|
H A D | DefaultPhoneNotifier.java | 157 PhoneConstants.DataState state) { 158 doNotifyDataConnection(sender, reason, apnType, state); 162 PhoneConstants.DataState state) { 175 if (state == PhoneConstants.DataState.CONNECTED) { 185 convertDataState(state), 309 public static int convertCallState(PhoneConstants.State state) { argument 310 switch (state) { 324 public static PhoneConstants.State convertCallState(int state) { argument 325 switch (state) { 339 public static int convertDataState(PhoneConstants.DataState state) { argument 156 notifyDataConnection(Phone sender, String reason, String apnType, PhoneConstants.DataState state) argument 161 doNotifyDataConnection(Phone sender, String reason, String apnType, PhoneConstants.DataState state) argument 356 convertDataState(int state) argument 373 convertDataActivityState(Phone.DataActivityState state) argument 392 convertPreciseCallState(Call.State state) argument [all...] |
/frameworks/opt/telephony/src/java/com/android/internal/telephony/metrics/ |
H A D | CallSessionEventBuilder.java | 63 public CallSessionEventBuilder setCallState(int state) { argument 64 mEvent.setCallState(state); 98 public CallSessionEventBuilder setServiceState(TelephonyServiceState state) { argument 99 mEvent.serviceState = state; 103 public CallSessionEventBuilder setImsConnectionState(ImsConnectionState state) { argument 104 mEvent.imsConnectionState = state;
|
/frameworks/support/v8/renderscript/jni/ |
H A D | android_rscompat_usage_io_driver.cpp | 29 alloc->mHal.drvState.lod[0].stride = drv->wndBuffer->stride * alloc->mHal.state.elementSizeBytes; 76 !(alloc->mHal.state.usageFlags & RS_ALLOCATION_USAGE_IO_INPUT) && 77 !(alloc->mHal.state.usageFlags & RS_ALLOCATION_USAGE_IO_OUTPUT)) { 83 if ((alloc->mHal.state.usageFlags & RS_ALLOCATION_USAGE_IO_OUTPUT) && 84 (alloc->mHal.state.usageFlags & RS_ALLOCATION_USAGE_SCRIPT)) { 100 if (alloc->mHal.state.usageFlags & RS_ALLOCATION_USAGE_SCRIPT) {
|
/frameworks/native/libs/input/ |
H A D | VelocityTracker.cpp | 230 ALOGD("VelocityTracker: stopped for %0.3f ms, clearing state.", 718 State& state = mPointerState[id]; local 721 updateState(state, eventTime, position.x, position.y); 723 initState(state, eventTime, position.x, position.y); 735 const State& state = mPointerState[id]; local 736 populateEstimator(state, outEstimator); 743 void IntegratingVelocityTrackerStrategy::initState(State& state, argument 745 state.updateTime = eventTime; 746 state.degree = 0; 748 state 756 updateState(State& state, nsecs_t eventTime, float xpos, float ypos) const argument 798 populateEstimator(const State& state, VelocityTracker::Estimator* outEstimator) const argument [all...] |
/frameworks/av/media/libstagefright/codecs/amrnb/enc/src/ |
H A D | levinson.cpp | 91 state = pointer to an array of pointers to structures of type 95 pointer pointed to by state points to the newly allocated memory to 110 This function allocates and initializes the state memory used by the 126 int Levinson_init (LevinsonState **state) 130 if (state == (LevinsonState **) NULL){ 134 *state = NULL; 138 //fprint(stderr, "Levinson_init: can not malloc state structure\n"); 143 *state = s; 171 Word16 Levinson_init(LevinsonState **state) argument 175 if (state 279 Levinson_reset(LevinsonState *state) argument 375 Levinson_exit(LevinsonState **state) argument [all...] |