/frameworks/base/graphics/java/android/graphics/drawable/ |
H A D | Drawable.java | 71 * in which state it is to be drawn, such as "focused", "selected", etc. 72 * Some drawables may modify their imagery based on the selected state. 100 * drawables based on its state. 427 * Indicates whether this view will change its appearance based on state. 429 * their state and call setState. 431 * @return True if this view changes its appearance based on state, false 447 * <p>If the new state you are supplying causes the appearance of the 453 * until a new state array is given to it, so you must not modify this 458 * @return Returns true if this change in state has caused the appearance 471 * Describes the current state, a 641 onStateChange(int[] state) argument [all...] |
H A D | DrawableContainer.java | 195 protected boolean onStateChange(int[] state) { argument 197 return mLastDrawable.setState(state); 200 return mCurrDrawable.setState(state); 708 protected void setConstantState(DrawableContainerState state) argument 710 mDrawableContainerState = state;
|
H A D | LayerDrawable.java | 72 * constant state. 75 * @param state The constant drawable state. 77 LayerDrawable(Drawable[] layers, LayerState state) { argument 78 this(state, null); 98 LayerDrawable(LayerState state, Resources res) { argument 99 LayerState as = createConstantState(state, res); 106 LayerState createConstantState(LayerState state, Resources res) { argument 107 return new LayerState(state, this, res); 445 protected boolean onStateChange(int[] state) { argument [all...] |
/frameworks/base/libs/androidfw/ |
H A D | VelocityTracker.cpp | 229 ALOGD("VelocityTracker: stopped for %0.3f ms, clearing state.", 716 State& state = mPointerState[id]; local 719 updateState(state, eventTime, position.x, position.y); 721 initState(state, eventTime, position.x, position.y); 733 const State& state = mPointerState[id]; local 734 populateEstimator(state, outEstimator); 741 void IntegratingVelocityTrackerStrategy::initState(State& state, argument 743 state.updateTime = eventTime; 744 state.degree = 0; 746 state 754 updateState(State& state, nsecs_t eventTime, float xpos, float ypos) const argument 796 populateEstimator(const State& state, VelocityTracker::Estimator* outEstimator) const argument [all...] |
/frameworks/base/libs/hwui/font/ |
H A D | Font.cpp | 36 Font::Font(FontRenderer* state, uint32_t fontId, float fontSize, argument 39 mState(state), mFontId(fontId), mFontSize(fontSize), 421 Font* Font::create(FontRenderer* state, uint32_t fontId, float fontSize, argument 424 Vector<Font*> &activeFonts = state->mActiveFonts; 436 Font* newFont = new Font(state, fontId, fontSize, flags, italicStyle,
|
/frameworks/base/policy/src/com/android/internal/policy/impl/keyguard/ |
H A D | KeyguardTransportControlView.java | 143 public void setPlaybackState(int generationId, int state, long stateChangeTimeMs) { argument 146 handler.obtainMessage(MSG_UPDATE_STATE, generationId, state).sendToTarget(); 349 private void updatePlayPauseState(int state) { argument 351 "updatePlayPauseState(), old=" + mCurrentPlayState + ", state=" + state); 352 if (state == mCurrentPlayState) { 357 switch (state) { 383 mCurrentPlayState = state; 426 public void onRestoreInstanceState(Parcelable state) { argument 427 if (!(state instanceo 487 wasPlayingRecently(int state, long stateChangeTimeMs) argument [all...] |
H A D | KeyguardUpdateMonitor.java | 91 // Telephony state 100 // Device provisioning state 190 Log.v(TAG, "action " + action + " state" + 199 String state = intent.getStringExtra(TelephonyManager.EXTRA_STATE); 200 mHandler.sendMessage(mHandler.obtainMessage(MSG_PHONE_STATE_CHANGED, state)); 223 SimArgs(IccCardConstants.State state) { argument 224 simState = state; 228 IccCardConstants.State state; 239 state = IccCardConstants.State.PERM_DISABLED; 241 state 805 isSimLocked(IccCardConstants.State state) argument 815 isSimPinSecure(IccCardConstants.State state) argument [all...] |
/frameworks/base/policy/src/com/android/internal/policy/impl/keyguard_obsolete/ |
H A D | KeyguardUpdateMonitor.java | 81 // Telephony state 165 Log.v(TAG, "action " + action + " state" + 174 String state = intent.getStringExtra(TelephonyManager.EXTRA_STATE); 175 mHandler.sendMessage(mHandler.obtainMessage(MSG_PHONE_STATE_CHANGED, state)); 199 SimArgs(IccCardConstants.State state) { argument 200 simState = state; 204 IccCardConstants.State state; 215 state = IccCardConstants.State.PERM_DISABLED; 217 state = IccCardConstants.State.ABSENT; 220 state [all...] |
/frameworks/base/services/java/com/android/server/ |
H A D | TelephonyRegistry.java | 161 // we keep a copy of all of the state so we can send it out when folks 327 public void notifyCallState(int state, String incomingNumber) { argument 332 mCallState = state; 337 r.callback.onCallStateChanged(state, incomingNumber); 345 broadcastCallStateChanged(state, incomingNumber); 348 public void notifyServiceState(ServiceState state) { argument 353 mServiceState = state; 357 r.callback.onServiceStateChanged(new ServiceState(state)); 365 broadcastServiceStateChanged(state); 458 public void notifyDataActivity(int state) { argument 477 notifyDataConnection(int state, boolean isDataConnectivityPossible, String reason, String apn, String apnType, LinkProperties linkProperties, LinkCapabilities linkCapabilities, int networkType, boolean roaming) argument 642 broadcastServiceStateChanged(ServiceState state) argument 677 broadcastCallStateChanged(int state, String incomingNumber) argument 701 broadcastDataConnectionStateChanged(int state, boolean isDataConnectivityPossible, String reason, String apn, String apnType, LinkProperties linkProperties, LinkCapabilities linkCapabilities, boolean roaming) argument [all...] |
H A D | TwilightService.java | 97 * Gets the current twilight state. 99 * @return The current twilight state, or null if no information is available. 123 private void setTwilightState(TwilightState state) { argument 125 if (!Objects.equal(mTwilightState, state)) { 127 Slog.d(TAG, "Twilight state changed: " + state); 130 mTwilightState = state; 258 * Listener for changes in twilight state. 490 // set twilight state 491 TwilightState state [all...] |
/frameworks/base/services/java/com/android/server/am/ |
H A D | BatteryStatsService.java | 222 public void notePhoneState(int state) { argument 226 mStats.notePhoneStateLocked(state, simState);
|
/frameworks/base/services/java/com/android/server/usb/ |
H A D | UsbDeviceManager.java | 62 * UsbDeviceManager manages USB state in device mode. 76 "/sys/class/android_usb/android0/state"; 132 * Listens for uevent messages from the kernel to monitor the USB state 139 String state = event.get("USB_STATE"); 141 if (state != null) { 142 mHandler.updateState(state); 201 // make sure the ADB_ENABLED setting value matches the current state 300 // current USB state 345 String state = FileUtils.readTextFile(new File(STATE_PATH), 0, null).trim(); 346 updateState(state); 401 updateState(String state) argument 425 waitForState(String state) argument [all...] |
/frameworks/base/services/tests/servicestests/src/com/android/server/ |
H A D | NetworkStatsServiceTest.java | 185 // network state, and poll any existing interfaces before updating. 239 // network state, and poll any existing interfaces before updating. 330 // network state, and poll any existing interfaces before updating. 891 private void expectNetworkState(NetworkState... state) throws Exception { argument 892 expect(mConnManager.getAllNetworkState()).andReturn(state).atLeastOnce(); 894 final LinkProperties linkProp = state.length > 0 ? state[0].linkProperties : null;
|
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/android/ |
H A D | BridgeXmlBlockParser.java | 99 public void setFeature(String name, boolean state) argument 101 if (FEATURE_PROCESS_NAMESPACES.equals(name) && state) { 104 if (FEATURE_REPORT_NAMESPACE_ATTRIBUTES.equals(name) && state) {
|
/frameworks/base/wifi/java/android/net/wifi/ |
H A D | WifiConfigStore.java | 268 void updateStatus(int netId, DetailedState state) { argument 272 switch (state) { 283 //do nothing, retain the existing state 319 * state machine 338 * state machine for network removal 363 * state machine for connecting to a network
|
/frameworks/compile/libbcc/lib/Renderscript/runtime/ |
H A D | rs_structs.h | 47 } state; member in struct:Allocation::__anon1205 86 } state; member in struct:ProgramStore::__anon1207 113 } state; member in struct:ProgramRaster::__anon1209 144 } state; member in struct:Sampler::__anon1211 182 } state; member in struct:Element::__anon1213 218 } state; member in struct:Type::__anon1215 252 } state; member in struct:Mesh::__anon1217
|
/frameworks/ex/photoviewer/src/com/android/ex/photo/ |
H A D | PhotoViewActivity.java | 59 * The full screen state has changed. 128 /** The set of listeners wanting full screen state */ 130 /** The set of listeners wanting full screen state */ 358 public void onPageScrollStateChanged(int state) { argument
|
/frameworks/native/libs/gui/ |
H A D | BufferQueue.cpp | 249 ST_LOGE("requestBuffer: slot %d is not owned by the client (state=%d)", 306 const int state = mSlots[i].mBufferState; local 307 if (state == BufferSlot::DEQUEUED) { 311 if (state == BufferSlot::FREE) { 513 "(state=%d)", buf, mSlots[buf].mBufferState); 609 ST_LOGE("cancelBuffer: slot %d is not owned by the client (state=%d)", 738 const char * operator()(int state) const { 739 switch (state) { 753 "state=%-8s, crop=[%d,%d,%d,%d], " 876 // The buffer can now only be released if its in the acquired state 1047 BufferSlot::BufferState state = mSlots[i].mBufferState; local [all...] |
/frameworks/opt/photoviewer/src/com/android/ex/photo/ |
H A D | PhotoViewActivity.java | 60 * The full screen state has changed. 129 /** The set of listeners wanting full screen state */ 131 /** The set of listeners wanting full screen state */ 375 public void onPageScrollStateChanged(int state) { argument
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ |
H A D | IccCardProxy.java | 177 + " Force broadcast of current state=" + mExternalState); 240 CardState state = CardState.CARDSTATE_ABSENT; 244 state = newCard.getCardState(); 397 private String getIccStateIntentString(State state) { argument 398 switch (state) { 411 * Locked state have a reason (PIN, PUK, NETWORK, PERM_DISABLED) 414 private String getIccStateReason(State state) { argument 415 switch (state) {
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/cdma/ |
H A D | CdmaCallTracker.java | 85 PhoneConstants.State state = PhoneConstants.State.IDLE; field in class:CdmaCallTracker 141 if (state != PhoneConstants.State.IDLE) { 187 // note that this triggers call state changed notif 191 throw new CallStateException("cannot dial in current state"); 205 // didn't know the state (i.e. Generic was true) we now know 286 // ringing Call state change to idle is in CdmaCall.detach 312 throw new CallStateException("cannot be in the incoming state"); 326 // Should we be checking state? 448 PhoneConstants.State oldState = state; 451 state [all...] |
H A D | CdmaConnection.java | 140 parent = parentFromDCState (dc.state); 172 //for the three way call case, not change parent state 173 if (parent.state == CdmaCall.State.ACTIVE) { 481 // Returns true if state has changed, false if nothing changed 489 newParent = parentFromDCState(dc.state); 527 /** Some state-transition events */ 731 PostDialState state = postDialState; 734 ar.userObj = state; 750 || parent.state == CdmaCall.State.DIALING 751 || parent.state 755 parentFromDCState(DriverCall.State state) argument [all...] |
/frameworks/opt/telephony/src/java/com/android/internal/telephony/gsm/ |
H A D | GsmConnection.java | 138 parent = parentFromDCState (dc.state); 437 // Returns true if state has changed, false if nothing changed 445 newParent = parentFromDCState(dc.state); 481 /** Some state-transition events */ 666 PostDialState state = postDialState; 669 ar.userObj = state; 686 || parent.state == GsmCall.State.DIALING 687 || parent.state == GsmCall.State.ALERTING; 691 parentFromDCState (DriverCall.State state) { argument 692 switch (state) { [all...] |
/frameworks/wilhelm/tests/sandbox/ |
H A D | reverb.c | 607 // set play state to paused to enable pre-fetch so we can get a more reliable duration 647 SLuint32 state; local 649 result = (*playerPlay)->GetPlayState(playerPlay, &state); 651 if (SL_PLAYSTATE_PLAYING != state) 655 assert(SL_PLAYSTATE_PAUSED == state);
|
/frameworks/av/media/libmedia/ |
H A D | AudioSystem.cpp | 78 status_t AudioSystem::muteMicrophone(bool state) { argument 81 return af->setMicMute(state); 84 status_t AudioSystem::isMicrophoneMuted(bool* state) { argument 87 *state = af->getMicMute(); 540 audio_policy_dev_state_t state, 552 return aps->setDeviceConnectionState(device, state, address); 564 status_t AudioSystem::setPhoneState(audio_mode_t state) argument 566 if (uint32_t(state) >= AUDIO_MODE_CNT) return BAD_VALUE; 570 return aps->setPhoneState(state); 729 status_t AudioSystem::isStreamActive(audio_stream_type_t stream, bool* state, uint32_ argument 539 setDeviceConnectionState(audio_devices_t device, audio_policy_dev_state_t state, const char *device_address) argument 738 isSourceActive(audio_source_t stream, bool* state) argument [all...] |