/frameworks/base/telephony/java/android/telephony/ |
H A D | ServiceState.java | 25 * Contains phone state and service related information. 30 * <li>Service state: IN_SERVICE, OUT_OF_SERVICE, EMERGENCY_ONLY, POWER_OFF 66 * RIL level registration state values from ril.h 67 * ((const char **)response)[0] is registration state 0-6, 215 * @param s Source service state 300 * Get current voice service state 307 * Get current voice service state 321 * Get current data service state 566 private void setNullState(int state) { argument 567 if (DBG) Rlog.d(LOG_TAG, "[ServiceState] setNullState=" + state); 595 setState(int state) argument 601 setVoiceRegState(int state) argument 607 setDataRegState(int state) argument [all...] |
/frameworks/base/packages/Keyguard/src/com/android/keyguard/ |
H A D | KeyguardTransportControlView.java | 110 public void onClientPlaybackStateUpdate(int state) { 111 updatePlayPauseState(state); 115 public void onClientPlaybackStateUpdate(int state, long stateChangeTimeMs, 117 updatePlayPauseState(state); 118 if (DEBUG) Log.d(TAG, "onClientPlaybackStateUpdate(state=" + state + 124 // playback state to change dramatically, wait until things become quiescent before 393 protected void onRestoreInstanceState(Parcelable state) { argument 394 if (!(state instanceof SavedState)) { 395 super.onRestoreInstanceState(state); 605 updatePlayPauseState(int state) argument [all...] |
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/ |
H A D | QSPanel.java | 252 public void onStateChanged(QSTile.State state) { 253 int visibility = state.visible ? VISIBLE : GONE; 254 if (state.visible && !mGridContentVisible) { 261 r.tileView.onStateChanged(state); 268 public void onToggleStateChanged(boolean state) { 270 fireToggleStateChanged(state); 274 public void onScanStateChanged(boolean state) { 275 r.scanState = state; 337 if ((mDetailRecord != null) == show) return; // already in right state 483 private void fireToggleStateChanged(boolean state) { argument 489 fireScanStateChanged(boolean state) argument 551 onToggleStateChanged(boolean state) argument 552 onScanStateChanged(boolean state) argument [all...] |
/frameworks/av/include/media/ |
H A D | AudioSystem.h | 45 static status_t muteMicrophone(bool state); 46 static status_t isMicrophoneMuted(bool *state); 69 // returns true in *state if tracks are active on the specified stream or have been active 71 static status_t isStreamActive(audio_stream_type_t stream, bool *state, uint32_t inPastMs); 72 // returns true in *state if tracks are active for what qualifies as remote playback 75 static status_t isStreamActiveRemotely(audio_stream_type_t stream, bool *state, 77 // returns true in *state if a recorder is currently recording with the specified source 78 static status_t isSourceActive(audio_source_t source, bool *state); 206 static status_t setDeviceConnectionState(audio_devices_t device, audio_policy_dev_state_t state, 210 static status_t setPhoneState(audio_mode_t state); [all...] |
/frameworks/base/services/core/java/com/android/server/twilight/ |
H A D | TwilightService.java | 110 * Gets the current twilight state. 112 * @return The current twilight state, or null if no information is available. 138 private void setTwilightState(TwilightState state) { argument 140 if (!Objects.equal(mTwilightState, state)) { 142 Slog.d(TAG, "Twilight state changed: " + state); 145 mTwilightState = state; 388 // set twilight state 389 TwilightState state = new TwilightState(isNight, yesterdaySunset, 392 Slog.d(TAG, "Updating twilight state [all...] |
/frameworks/base/services/tests/servicestests/src/com/android/server/ |
H A D | MountServiceTests.java | 64 public int state = -1; field in class:MountServiceTests.ObbObserver 68 public void onObbStateChange(String path, int state) { argument 69 Log.d(TAG, "Received message. path=" + path + ", state=" + state); 72 this.state = state; 79 assertTrue("Expected ObbObserver to have received a state change.", done); 84 assertTrue("Expected ObbObserver to have received a state change.", done); 85 return state; 90 this.state [all...] |
/frameworks/wilhelm/tests/sandbox/ |
H A D | multiplay.c | 26 // Describes the state of one player 236 SLuint32 state; local 237 result = (*p->mPlayerPlay)->GetPlayState(p->mPlayerPlay, &state); 239 printf("state = "); 240 switch (state) { 251 printf("%u", (unsigned) state); 255 if (state == SL_PLAYSTATE_STOPPED || state == SL_PLAYSTATE_PAUSED) { 266 if (state != SL_PLAYSTATE_STOPPED) {
|
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/ |
H A D | GraphRunner.java | 66 public synchronized boolean check(int state) { argument 67 return ((mCurrent & state) == state); 70 public synchronized boolean addState(int state) { argument 71 if ((mCurrent & state) != state) { 72 mCurrent |= state; 78 public synchronized boolean removeState(int state) { argument 79 boolean result = (mCurrent & state) == state; 220 checkState(int state) argument [all...] |
/frameworks/av/services/audiopolicy/ |
H A D | AudioPolicyInterfaceImpl.cpp | 30 audio_policy_dev_state_t state, 42 if (state != AUDIO_POLICY_DEVICE_STATE_AVAILABLE && 43 state != AUDIO_POLICY_DEVICE_STATE_UNAVAILABLE) { 50 state, device_address); 64 status_t AudioPolicyService::setPhoneState(audio_mode_t state) argument 72 if (uint32_t(state) >= AUDIO_MODE_CNT) { 79 AudioSystem::setMode(state); 82 mAudioPolicyManager->setPhoneState(state); 83 mPhoneState = state; 29 setDeviceConnectionState(audio_devices_t device, audio_policy_dev_state_t state, const char *device_address) argument
|
H A D | AudioPolicyInterfaceImplLegacy.cpp | 35 audio_policy_dev_state_t state, 47 if (state != AUDIO_POLICY_DEVICE_STATE_AVAILABLE && 48 state != AUDIO_POLICY_DEVICE_STATE_UNAVAILABLE) { 55 state, device_address); 69 status_t AudioPolicyService::setPhoneState(audio_mode_t state) argument 77 if (uint32_t(state) >= AUDIO_MODE_CNT) { 84 AudioSystem::setMode(state); 87 mpAudioPolicy->set_phone_state(mpAudioPolicy, state); 88 mPhoneState = state; 34 setDeviceConnectionState(audio_devices_t device, audio_policy_dev_state_t state, const char *device_address) argument
|
/frameworks/base/core/java/android/app/ |
H A D | LocalActivityManager.java | 58 Bundle instanceState; // Last retrieved freeze state. 59 int curState = RESTORED; // Current state the activity is in. 89 /** Current state the owner (ActivityGroup) is in */ 152 // the launching of the activity gets its state a little ahead 155 // group's state catches up. 247 * include an explicit component, we can restore the state for a different 248 * activity class than was previously running when the state was saved (if 380 * all state are removed from the group. 438 * Restore a state that was previously returned by {@link #saveInstanceState}. This 441 * user later navigates to them the correct state wil 451 dispatchCreate(Bundle state) argument [all...] |
/frameworks/base/core/tests/coretests/src/android/os/storage/ |
H A D | StorageManagerBaseTest.java | 171 public void onObbStateChange(String path, int state) { argument 172 Log.i(LOG_TAG, "Storage state changing to: " + state); 176 mState = state; 184 * Tells whether we are done or not (system told us the OBB has changed state) 186 * @return true if the system has told us this OBB's state has changed, false otherwise 193 * The last state of the OBB, according to the system 195 * @return A {@link String} representation of the state of the OBB 197 public int state() { method in class:StorageManagerBaseTest.ObbListener 301 * @param expectedState The expected state resultin [all...] |
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/ |
H A D | BluetoothControllerImpl.java | 80 pw.println("BluetoothController state:"); 155 paired.state = connectionStateToPairedDeviceState(info.connectionState); 161 private static int connectionStateToPairedDeviceState(int state) { argument 162 if (state == BluetoothAdapter.STATE_CONNECTED) return PairedDevice.STATE_CONNECTED; 163 if (state == BluetoothAdapter.STATE_CONNECTING) return PairedDevice.STATE_CONNECTING; 164 if (state == BluetoothAdapter.STATE_DISCONNECTING) return PairedDevice.STATE_DISCONNECTING; 198 + " state = " + profileStateToString(profileState)); 305 final int state = intent.getIntExtra(BluetoothAdapter.EXTRA_CONNECTION_STATE, 307 if (state != ERROR) { 308 info.connectionState = state; [all...] |
H A D | BluetoothUtil.java | 42 public static String profileStateToString(int state) { argument 43 if (state == BluetoothProfile.STATE_CONNECTED) return "STATE_CONNECTED"; 44 if (state == BluetoothProfile.STATE_CONNECTING) return "STATE_CONNECTING"; 45 if (state == BluetoothProfile.STATE_DISCONNECTED) return "STATE_DISCONNECTED"; 46 if (state == BluetoothProfile.STATE_DISCONNECTING) return "STATE_DISCONNECTING";
|
/frameworks/av/media/libstagefright/codecs/amrwb/src/ |
H A D | dec_gain2_amr_wb.cpp | 55 int16 state, (i) : State of BFH 178 int16 state, /* (i) : State of BFH */ 230 *gain_pit = mult_int16(pdown_unusable[state], *past_gain_pit); 234 *gain_pit = mult_int16(pdown_usable[state], *past_gain_pit); 247 *past_gain_code = mult_int16(cdown_unusable[state], tmp); 251 *past_gain_code = mult_int16(cdown_usable[state], tmp); 169 dec_gain2_amr_wb( int16 index, int16 nbits, int16 code[], int16 L_subfr, int16 * gain_pit, int32 * gain_cod, int16 bfi, int16 prev_bfi, int16 state, int16 unusable_frame, int16 vad_hist, int16 * mem ) argument
|
/frameworks/base/core/java/android/preference/ |
H A D | ListPreference.java | 301 // No need to save instance state since it's persistent 311 protected void onRestoreInstanceState(Parcelable state) { argument 312 if (state == null || !state.getClass().equals(SavedState.class)) { 313 // Didn't save state for us in onSaveInstanceState 314 super.onRestoreInstanceState(state); 318 SavedState myState = (SavedState) state;
|
H A D | VolumePreference.java | 155 // No need to save instance state since it's persistent 167 protected void onRestoreInstanceState(Parcelable state) { argument 168 if (state == null || !state.getClass().equals(SavedState.class)) { 169 // Didn't save state for us in onSaveInstanceState 170 super.onRestoreInstanceState(state); 174 SavedState myState = (SavedState) state;
|
/frameworks/base/core/java/com/android/internal/view/menu/ |
H A D | ListMenuPresenter.java | 211 Bundle state = new Bundle(); 212 saveHierarchyState(state); 213 return state; 217 public void onRestoreInstanceState(Parcelable state) { argument 218 restoreHierarchyState((Bundle) state);
|
/frameworks/base/native/android/ |
H A D | storage_manager.cpp | 45 const int32_t state); 105 void fireCallback(const char* filename, const int32_t nonce, const int32_t state) { argument 121 target->cb(filename, state, target->data); 166 void ObbActionListener::onObbResult(const android::String16& filename, const int32_t nonce, const int32_t state) { argument 167 mStorageManager->fireCallback(String8(filename).string(), nonce, state);
|
/frameworks/base/services/core/java/com/android/server/media/ |
H A D | MediaSessionRecord.java | 334 int state = mPlaybackState == null ? 0 : mPlaybackState.getState(); 335 if (MediaSession.isActiveState(state)) { 338 if (includeRecentlyActive && state == mPlaybackState.STATE_PAUSED) { 449 pw.println(indent + "state=" + (mPlaybackState == null ? null : mPlaybackState.toString())); 627 PlaybackState state; 630 state = mPlaybackState; 636 if (state != null) { 637 if (state.getState() == PlaybackState.STATE_PLAYING 638 || state.getState() == PlaybackState.STATE_FAST_FORWARDING 639 || state 743 setPlaybackState(PlaybackState state) argument [all...] |
/frameworks/base/telecomm/java/android/telecom/ |
H A D | Conference.java | 99 * Gets the state of the conference call. See {@link Connection} for valid values. 101 * @return A constant representing the state the conference call is currently in. 117 * @return The audio state of the conference, describing how its audio is currently 119 * does not directly know about its audio state. 181 * @param state The new call audio state. 183 public void onAudioStateChanged(AudioState state) {} argument 186 * Sets state to be on hold. 193 * Sets state to be active. 200 * Sets state t 346 setAudioState(AudioState state) argument [all...] |
/frameworks/support/v7/appcompat/src/android/support/v7/internal/view/menu/ |
H A D | ListMenuPresenter.java | 215 Bundle state = new Bundle(); 216 saveHierarchyState(state); 217 return state; 221 public void onRestoreInstanceState(Parcelable state) { argument 222 restoreHierarchyState((Bundle) state);
|
/frameworks/base/core/java/android/os/ |
H A D | StrictMode.java | 111 * propagate its state across process boundaries when doing 1804 ThreadSpanState state = mContainerState; 1805 synchronized (state) { 1818 if (state.mActiveHead == this) { 1819 state.mActiveHead = mNext; 1822 state.mActiveSize--; 1824 if (LOG_V) Log.d(TAG, "Span finished=" + mName + "; size=" + state.mActiveSize); 1833 if (state.mFreeListSize < 5) { 1834 this.mNext = state.mFreeListHead; 1835 state [all...] |
/frameworks/base/services/core/java/com/android/server/am/ |
H A D | BroadcastQueue.java | 278 // We need to reset the state if we failed to start the receiver. 279 br.state = BroadcastRecord.IDLE; 289 br.state = BroadcastRecord.IDLE; 347 final int state = r.state; 349 r.state = BroadcastRecord.IDLE; 350 if (state == BroadcastRecord.IDLE) { 351 Slog.w(TAG, "finishReceiver [" + mQueueName + "] called but state is IDLE"); 392 // special state where we hold off on continuing this broadcast until they are done. 396 r.state [all...] |
/frameworks/base/core/java/com/android/internal/widget/ |
H A D | LockPatternView.java | 432 * Reset all pattern state. 454 * timeout so user doesn't get view into messy state). 587 private void startLineEndAnimation(final CellState state, argument 594 state.lineEndX = (1 - t) * startX + t * targetX; 595 state.lineEndY = (1 - t) * startY + t * targetY; 602 state.lineAnimator = null; 608 state.lineAnimator = valueAnimator; 612 final CellState state, final Runnable endRunnable) { 617 state.size = (float) animation.getAnimatedValue(); 834 CellState state 611 startSizeAnimation(float start, float end, long duration, Interpolator interpolator, final CellState state, final Runnable endRunnable) argument 1044 onRestoreInstanceState(Parcelable state) argument [all...] |